| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_main.c | 47 nfp_net_get_mac_addr(struct nfp_pf *pf, struct net_device *netdev, in nfp_net_get_mac_addr() argument 74 static int nfp_net_pf_get_num_ports(struct nfp_pf *pf) in nfp_net_pf_get_num_ports() argument 76 return nfp_pf_rtsym_read_optional(pf, "nfd_cfg_pf%u_num_ports", 1); in nfp_net_pf_get_num_ports() 79 static void nfp_net_pf_free_vnic(struct nfp_pf *pf, struct nfp_net *nn) in nfp_net_pf_free_vnic() argument 82 nfp_app_vnic_free(pf->app, nn); in nfp_net_pf_free_vnic() 85 pf->num_vnics--; in nfp_net_pf_free_vnic() 89 static void nfp_net_pf_free_vnics(struct nfp_pf *pf) in nfp_net_pf_free_vnics() argument 93 list_for_each_entry_safe(nn, next, &pf->vnics, vnic_list) in nfp_net_pf_free_vnics() 95 nfp_net_pf_free_vnic(pf, nn); in nfp_net_pf_free_vnics() 99 nfp_net_pf_alloc_vnic(struct nfp_pf *pf, bool needs_netdev, in nfp_net_pf_alloc_vnic() argument [all …]
|
| H A D | nfp_shared_buf.c | 13 static u32 nfp_shared_buf_pool_unit(struct nfp_pf *pf, unsigned int sb) in nfp_shared_buf_pool_unit() argument 18 for (i = 0; i < pf->num_shared_bufs; i++) in nfp_shared_buf_pool_unit() 19 if (pf->shared_bufs[i].id == sb_id) in nfp_shared_buf_pool_unit() 20 return le32_to_cpu(pf->shared_bufs[i].pool_size_unit); in nfp_shared_buf_pool_unit() 26 int nfp_shared_buf_pool_get(struct nfp_pf *pf, unsigned int sb, u16 pool_index, in nfp_shared_buf_pool_get() argument 37 unit_size = nfp_shared_buf_pool_unit(pf, sb); in nfp_shared_buf_pool_get() 41 n = nfp_mbox_cmd(pf, NFP_MBOX_POOL_GET, &id, sizeof(id), in nfp_shared_buf_pool_get() 56 int nfp_shared_buf_pool_set(struct nfp_pf *pf, unsigned int sb, in nfp_shared_buf_pool_set() argument 69 unit_size = nfp_shared_buf_pool_unit(pf, sb); in nfp_shared_buf_pool_set() 74 return nfp_mbox_cmd(pf, NFP_MBOX_POOL_SET, &set_data, sizeof(set_data), in nfp_shared_buf_pool_set() [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_irq.c | 15 ice_init_irq_tracker(struct ice_pf *pf, unsigned int max_vectors, in ice_init_irq_tracker() argument 18 pf->irq_tracker.num_entries = max_vectors; in ice_init_irq_tracker() 19 pf->irq_tracker.num_static = num_static; in ice_init_irq_tracker() 20 xa_init_flags(&pf->irq_tracker.entries, XA_FLAGS_ALLOC); in ice_init_irq_tracker() 24 ice_init_virt_irq_tracker(struct ice_pf *pf, u32 base, u32 num_entries) in ice_init_virt_irq_tracker() argument 26 pf->virt_irq_tracker.bm = bitmap_zalloc(num_entries, GFP_KERNEL); in ice_init_virt_irq_tracker() 27 if (!pf->virt_irq_tracker.bm) in ice_init_virt_irq_tracker() 30 pf->virt_irq_tracker.num_entries = num_entries; in ice_init_virt_irq_tracker() 31 pf->virt_irq_tracker.base = base; in ice_init_virt_irq_tracker() 40 static void ice_deinit_irq_tracker(struct ice_pf *pf) in ice_deinit_irq_tracker() argument [all …]
|
| H A D | ice_eswitch.c | 20 static int ice_eswitch_setup_env(struct ice_pf *pf) in ice_eswitch_setup_env() argument 22 struct ice_vsi *uplink_vsi = pf->eswitch.uplink_vsi; in ice_eswitch_setup_env() 31 ice_remove_vsi_fltr(&pf->hw, uplink_vsi->idx); in ice_eswitch_setup_env() 89 ice_eswitch_release_repr(struct ice_pf *pf, struct ice_repr *repr) in ice_eswitch_release_repr() argument 109 static int ice_eswitch_setup_repr(struct ice_pf *pf, struct ice_repr *repr) in ice_eswitch_setup_repr() argument 111 struct ice_vsi *uplink_vsi = pf->eswitch.uplink_vsi; in ice_eswitch_setup_repr() 178 struct ice_pf *pf = vsi->back; in ice_eswitch_update_repr() local 182 if (!ice_is_switchdev_running(pf)) in ice_eswitch_update_repr() 185 repr = xa_load(&pf->eswitch.reprs, *repr_id); in ice_eswitch_update_repr() 197 dev_err(ice_pf_to_dev(pf), "Failed to update VSI of port representor %d", in ice_eswitch_update_repr() [all …]
|
| H A D | ice_dpll.c | 98 static bool ice_dpll_is_sw_pin(struct ice_pf *pf, u8 index, bool input) in ice_dpll_is_sw_pin() argument 100 if (input && pf->hw.device_id == ICE_DEV_ID_E810C_QSFP) in ice_dpll_is_sw_pin() 123 static bool ice_dpll_is_reset(struct ice_pf *pf, struct netlink_ext_ack *extack) in ice_dpll_is_reset() argument 125 if (ice_is_reset_in_progress(pf->state)) { in ice_dpll_is_reset() 148 ice_dpll_pin_freq_set(struct ice_pf *pf, struct ice_dpll_pin *pin, in ice_dpll_pin_freq_set() argument 158 ret = ice_aq_set_input_pin_cfg(&pf->hw, pin->idx, flags, in ice_dpll_pin_freq_set() 163 ret = ice_aq_set_output_pin_cfg(&pf->hw, pin->idx, flags, in ice_dpll_pin_freq_set() 173 libie_aq_str(pf->hw.adminq.sq_last_status), in ice_dpll_pin_freq_set() 208 struct ice_pf *pf = d->pf; in ice_dpll_frequency_set() local 211 if (ice_dpll_is_reset(pf, extack)) in ice_dpll_frequency_set() [all …]
|
| H A D | ice_dcb_nl.c | 16 struct ice_pf *pf = ice_netdev_to_pf(netdev); in ice_dcbnl_devreset() local 18 while (ice_is_reset_in_progress(pf->state)) in ice_dcbnl_devreset() 35 struct ice_pf *pf; in ice_dcbnl_getets() local 37 pf = ice_netdev_to_pf(netdev); in ice_dcbnl_getets() 38 dcbxcfg = &pf->hw.port_info->qos_cfg.local_dcbx_cfg; in ice_dcbnl_getets() 64 struct ice_pf *pf = ice_netdev_to_pf(netdev); in ice_dcbnl_setets() local 69 if ((pf->dcbx_cap & DCB_CAP_DCBX_LLD_MANAGED) || in ice_dcbnl_setets() 70 !(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE)) in ice_dcbnl_setets() 73 if (pf->lag && pf->lag->bonded) { in ice_dcbnl_setets() 78 new_cfg = &pf->hw.port_info->qos_cfg.desired_dcbx_cfg; in ice_dcbnl_setets() [all …]
|
| H A D | ice_idc.c | 38 void ice_send_event_to_aux(struct ice_pf *pf, struct iidc_rdma_event *event) in ice_send_event_to_aux() argument 46 cdev = pf->cdev_info; in ice_send_event_to_aux() 50 mutex_lock(&pf->adev_mutex); in ice_send_event_to_aux() 60 mutex_unlock(&pf->adev_mutex); in ice_send_event_to_aux() 76 struct ice_pf *pf; in ice_add_rdma_qset() local 85 pf = pci_get_drvdata(cdev->pdev); in ice_add_rdma_qset() 86 dev = ice_pf_to_dev(pf); in ice_add_rdma_qset() 88 if (!ice_is_rdma_ena(pf)) in ice_add_rdma_qset() 91 vsi = ice_get_main_vsi(pf); in ice_add_rdma_qset() 133 struct ice_pf *pf; in ice_del_rdma_qset() local [all …]
|
| H A D | ice_gnss.c | 20 ice_gnss_do_write(struct ice_pf *pf, const unsigned char *buf, unsigned int size) in ice_gnss_do_write() argument 23 struct ice_hw *hw = &pf->hw; in ice_gnss_do_write() 72 dev_err(ice_pf_to_dev(pf), "GNSS failed to write, offset=%u, size=%u, err=%d\n", in ice_gnss_do_write() 91 struct ice_pf *pf; in ice_gnss_read() local 98 pf = gnss->back; in ice_gnss_read() 99 if (!pf || !test_bit(ICE_FLAG_GNSS, pf->flags)) in ice_gnss_read() 102 hw = &pf->hw; in ice_gnss_read() 147 count = gnss_insert_raw(pf->gnss_dev, buf, i); in ice_gnss_read() 149 dev_warn(ice_pf_to_dev(pf), in ice_gnss_read() 158 dev_dbg(ice_pf_to_dev(pf), "GNSS failed to read err=%d\n", err); in ice_gnss_read() [all …]
|
| H A D | ice_dcb_lib.c | 31 bool ice_is_pfc_causing_hung_q(struct ice_pf *pf, unsigned int txqueue) in ice_is_pfc_causing_hung_q() argument 38 vsi = ice_get_main_vsi(pf); in ice_is_pfc_causing_hung_q() 56 up2tc = rd32(&pf->hw, PRTDCB_TUP2TC); in ice_is_pfc_causing_hung_q() 70 ref_prio_xoff[i] = pf->stats.priority_xoff_rx[i]; in ice_is_pfc_causing_hung_q() 72 ice_update_dcb_stats(pf); in ice_is_pfc_causing_hung_q() 76 if (pf->stats.priority_xoff_rx[i] > ref_prio_xoff[i]) in ice_is_pfc_causing_hung_q() 283 static void ice_dcb_ena_dis_vsi(struct ice_pf *pf, bool ena, bool locked) in ice_dcb_ena_dis_vsi() argument 287 ice_for_each_vsi(pf, i) { in ice_dcb_ena_dis_vsi() 288 struct ice_vsi *vsi = pf->vsi[i]; in ice_dcb_ena_dis_vsi() 312 int ice_dcb_bwchk(struct ice_pf *pf, struct ice_dcbx_cfg *dcbcfg) in ice_dcb_bwchk() argument [all …]
|
| H A D | ice_dcb_lib.h | 17 void ice_dcb_rebuild(struct ice_pf *pf); 18 int ice_dcb_sw_dflt_cfg(struct ice_pf *pf, bool ets_willing, bool locked); 21 bool ice_is_pfc_causing_hung_q(struct ice_pf *pf, unsigned int txqueue); 24 ice_pf_dcb_cfg(struct ice_pf *pf, struct ice_dcbx_cfg *new_cfg, bool locked); 25 int ice_dcb_bwchk(struct ice_pf *pf, struct ice_dcbx_cfg *dcbcfg); 26 void ice_pf_dcb_recfg(struct ice_pf *pf, bool locked); 28 int ice_init_pf_dcb(struct ice_pf *pf, bool locked); 29 void ice_update_dcb_stats(struct ice_pf *pf); 34 ice_setup_dcb_qos_info(struct ice_pf *pf, 37 ice_dcb_process_lldp_set_mib_change(struct ice_pf *pf, [all …]
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_ptp.c | 141 static int i40e_ptp_set_pins(struct i40e_pf *pf, 152 struct i40e_pf *pf = container_of(work, struct i40e_pf, in i40e_ptp_extts0_work() local 154 struct i40e_hw *hw = &pf->hw; in i40e_ptp_extts0_work() 172 ptp_clock_event(pf->ptp_clock, &event); in i40e_ptp_extts0_work() 196 static enum i40e_can_set_pins i40e_can_set_pins(struct i40e_pf *pf) in i40e_can_set_pins() argument 198 if (!i40e_is_ptp_pin_dev(&pf->hw)) { in i40e_can_set_pins() 199 dev_warn(&pf->pdev->dev, in i40e_can_set_pins() 204 if (!pf->ptp_pins) { in i40e_can_set_pins() 205 dev_warn(&pf->pdev->dev, in i40e_can_set_pins() 210 if (pf->hw.pf_id) { in i40e_can_set_pins() [all …]
|
| H A D | i40e_dcb_nl.c | 37 struct i40e_pf *pf = i40e_netdev_to_pf(dev); in i40e_dcbnl_ieee_getets() local 40 if (!(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE)) in i40e_dcbnl_ieee_getets() 43 dcbxcfg = &pf->hw.local_dcbx_config; in i40e_dcbnl_ieee_getets() 75 struct i40e_pf *pf = i40e_netdev_to_pf(dev); in i40e_dcbnl_ieee_getpfc() local 77 struct i40e_hw *hw = &pf->hw; in i40e_dcbnl_ieee_getpfc() 80 if (!(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE)) in i40e_dcbnl_ieee_getpfc() 91 pfc->requests[i] = pf->stats.priority_xoff_tx[i]; in i40e_dcbnl_ieee_getpfc() 92 pfc->indications[i] = pf->stats.priority_xoff_rx[i]; in i40e_dcbnl_ieee_getpfc() 108 struct i40e_pf *pf = i40e_netdev_to_pf(netdev); in i40e_dcbnl_ieee_setets() local 112 if (!(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE) || in i40e_dcbnl_ieee_setets() [all …]
|
| H A D | i40e_debugfs.c | 25 static struct i40e_vsi *i40e_dbg_find_vsi(struct i40e_pf *pf, int seid) in i40e_dbg_find_vsi() argument 28 dev_info(&pf->pdev->dev, "%d: bad seid\n", seid); in i40e_dbg_find_vsi() 33 return i40e_pf_get_vsi_by_seid(pf, seid); in i40e_dbg_find_vsi() 58 static void i40e_dbg_dump_vsi_seid(struct i40e_pf *pf, int seid) in i40e_dbg_dump_vsi_seid() argument 65 vsi = i40e_dbg_find_vsi(pf, seid); in i40e_dbg_dump_vsi_seid() 67 dev_info(&pf->pdev->dev, in i40e_dbg_dump_vsi_seid() 71 dev_info(&pf->pdev->dev, "vsi seid %d\n", seid); in i40e_dbg_dump_vsi_seid() 75 dev_info(&pf->pdev->dev, " netdev: name = %s, state = %lu, flags = 0x%08x\n", in i40e_dbg_dump_vsi_seid() 77 dev_info(&pf->pdev->dev, " features = 0x%08lx\n", in i40e_dbg_dump_vsi_seid() 79 dev_info(&pf->pdev->dev, " hw_features = 0x%08lx\n", in i40e_dbg_dump_vsi_seid() [all …]
|
| H A D | i40e_main.c | 36 static void i40e_handle_reset_warning(struct i40e_pf *pf, bool lock_acquired); 39 static int i40e_setup_pf_switch(struct i40e_pf *pf, bool reinit, bool lock_acquired); 40 static int i40e_setup_misc_vector(struct i40e_pf *pf); 41 static void i40e_determine_queue_usage(struct i40e_pf *pf); 42 static int i40e_setup_pf_filter_control(struct i40e_pf *pf); 43 static void i40e_prep_for_reset(struct i40e_pf *pf); 44 static void i40e_reset_and_rebuild(struct i40e_pf *pf, bool reinit, 46 static int i40e_reset(struct i40e_pf *pf); 47 static void i40e_rebuild(struct i40e_pf *pf, bool reinit, bool lock_acquired); 48 static int i40e_setup_misc_vector_for_recovery_mode(struct i40e_pf *pf); [all …]
|
| H A D | i40e_client.c | 84 struct i40e_pf *pf = vsi->back; in i40e_notify_client_of_vf_msg() local 85 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_vf_msg() 90 dev_dbg(&pf->pdev->dev, in i40e_notify_client_of_vf_msg() 95 dev_dbg(&pf->pdev->dev, "Client is not open, abort virtchnl_receive\n"); in i40e_notify_client_of_vf_msg() 108 void i40e_notify_client_of_l2_param_changes(struct i40e_pf *pf) in i40e_notify_client_of_l2_param_changes() argument 110 struct i40e_vsi *vsi = i40e_pf_get_main_vsi(pf); in i40e_notify_client_of_l2_param_changes() 111 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_l2_param_changes() 117 dev_dbg(&pf->pdev->dev, in i40e_notify_client_of_l2_param_changes() 122 dev_dbg(&pf->pdev->dev, in i40e_notify_client_of_l2_param_changes() 147 struct i40e_pf *pf = ldev->pf; in i40e_client_release_qvlist() local [all …]
|
| H A D | i40e_virtchnl_pf.c | 20 static void i40e_vc_vf_broadcast(struct i40e_pf *pf, in i40e_vc_vf_broadcast() argument 25 struct i40e_hw *hw = &pf->hw; in i40e_vc_vf_broadcast() 26 struct i40e_vf *vf = pf->vf; in i40e_vc_vf_broadcast() 29 for (i = 0; i < pf->num_alloc_vfs; i++, vf++) { in i40e_vc_vf_broadcast() 113 struct i40e_pf *pf = vf->pf; in i40e_vc_notify_vf_link_state() local 114 struct i40e_hw *hw = &pf->hw; in i40e_vc_notify_vf_link_state() 115 struct i40e_link_status *ls = &pf->hw.phy.link_info; in i40e_vc_notify_vf_link_state() 133 void i40e_vc_notify_link_state(struct i40e_pf *pf) in i40e_vc_notify_link_state() argument 137 for (i = 0; i < pf->num_alloc_vfs; i++) in i40e_vc_notify_link_state() 138 i40e_vc_notify_vf_link_state(&pf->vf[i]); in i40e_vc_notify_link_state() [all …]
|
| H A D | i40e.h | 37 #define i40e_default_queues_per_vmdq(pf) \ argument 38 (test_bit(I40E_HW_CAP_RSS_AQ, (pf)->hw.caps) ? 4 : 1) 41 #define i40e_pf_get_max_q_per_tc(pf) \ argument 42 (test_bit(I40E_HW_CAP_128_QP_RSS, (pf)->hw.caps) ? 128 : 64) 706 __i40e_pf_next_vsi(struct i40e_pf *pf, int *idx) in __i40e_pf_next_vsi() argument 708 while (*idx < pf->num_alloc_vsi) { in __i40e_pf_next_vsi() 709 if (pf->vsi[*idx]) in __i40e_pf_next_vsi() 710 return pf->vsi[*idx]; in __i40e_pf_next_vsi() 730 __i40e_pf_next_veb(struct i40e_pf *pf, int *idx) in __i40e_pf_next_veb() argument 733 if (pf->veb[*idx]) in __i40e_pf_next_veb() [all …]
|
| /linux/net/lapb/ |
| H A D | lapb_in.c | 44 lapb_dbg(1, "(%p) S0 RX SABM(%d)\n", lapb->dev, frame->pf); in lapb_state0_machine() 47 lapb->dev, frame->pf); in lapb_state0_machine() 48 lapb_send_control(lapb, LAPB_DM, frame->pf, in lapb_state0_machine() 52 lapb->dev, frame->pf); in lapb_state0_machine() 54 lapb_send_control(lapb, LAPB_UA, frame->pf, in lapb_state0_machine() 69 lapb_dbg(1, "(%p) S0 RX SABME(%d)\n", lapb->dev, frame->pf); in lapb_state0_machine() 72 lapb->dev, frame->pf); in lapb_state0_machine() 74 lapb_send_control(lapb, LAPB_UA, frame->pf, in lapb_state0_machine() 87 lapb->dev, frame->pf); in lapb_state0_machine() 88 lapb_send_control(lapb, LAPB_DM, frame->pf, in lapb_state0_machine() [all …]
|
| /linux/tools/perf/util/ |
| H A D | probe-finder.c | 72 const struct probe_finder *pf, in convert_variable_location() argument 182 regs = get_dwarf_regstr(regn, pf->e_machine, pf->e_flags); in convert_variable_location() 458 static int convert_variable(Dwarf_Die *vr_die, struct probe_finder *pf) in convert_variable() argument 466 ret = convert_variable_location(vr_die, pf->addr, pf->fb_ops, in convert_variable() 467 &pf->sp_die, pf, pf->tvar); in convert_variable() 468 if (ret == -ENOENT && pf->skip_empty_arg) in convert_variable() 472 print_var_not_found(pf->pvar->var); in convert_variable() 475 else if (ret == 0 && pf->pvar->field) { in convert_variable() 476 ret = convert_variable_fields(vr_die, pf->pvar->var, in convert_variable() 477 pf->pvar->field, &pf->tvar->ref, in convert_variable() [all …]
|
| /linux/drivers/net/ethernet/intel/ice/devlink/ |
| H A D | port.c | 51 static void ice_devlink_port_options_print(struct ice_pf *pf) in ice_devlink_port_options_print() argument 55 struct device *dev = ice_pf_to_dev(pf); in ice_devlink_port_options_print() 71 status = ice_aq_get_port_options(&pf->hw, opt, &options_count, in ice_devlink_port_options_print() 126 ice_devlink_aq_set_port_option(struct ice_pf *pf, u8 option_idx, in ice_devlink_aq_set_port_option() argument 129 struct device *dev = ice_pf_to_dev(pf); in ice_devlink_aq_set_port_option() 132 status = ice_aq_set_port_option(&pf->hw, 0, true, option_idx); in ice_devlink_aq_set_port_option() 135 status, pf->hw.adminq.sq_last_status); in ice_devlink_aq_set_port_option() 140 status = ice_acquire_nvm(&pf->hw, ICE_RES_WRITE); in ice_devlink_aq_set_port_option() 143 status, pf->hw.adminq.sq_last_status); in ice_devlink_aq_set_port_option() 148 status = ice_nvm_write_activate(&pf->hw, ICE_AQC_NVM_ACTIV_REQ_EMPR, NULL); in ice_devlink_aq_set_port_option() [all …]
|
| /linux/drivers/gpu/drm/xe/tests/ |
| H A D | xe_sriov_pf_service_kunit.c | 33 KUNIT_ASSERT_NE(test, 0, xe->sriov.pf.service.version.base.major); in pf_service_test_init() 34 KUNIT_ASSERT_NE(test, 0, xe->sriov.pf.service.version.latest.major); in pf_service_test_init() 35 KUNIT_ASSERT_LE(test, xe->sriov.pf.service.version.base.major, in pf_service_test_init() 36 xe->sriov.pf.service.version.latest.major); in pf_service_test_init() 37 if (xe->sriov.pf.service.version.base.major == xe->sriov.pf.service.version.latest.major) in pf_service_test_init() 38 KUNIT_ASSERT_LE(test, xe->sriov.pf.service.version.base.minor, in pf_service_test_init() 39 xe->sriov.pf.service.version.latest.minor); in pf_service_test_init() 52 KUNIT_ASSERT_EQ(test, major, xe->sriov.pf.service.version.latest.major); in pf_negotiate_any() 53 KUNIT_ASSERT_EQ(test, minor, xe->sriov.pf.service.version.latest.minor); in pf_negotiate_any() 63 xe->sriov.pf.service.version.base.major, in pf_negotiate_base_match() [all …]
|
| /linux/drivers/net/ethernet/amd/pds_core/ |
| H A D | auxbus.c | 17 int pds_client_register(struct pdsc *pf, char *devname) in pds_client_register() argument 28 err = pdsc_adminq_post(pf, &cmd, &comp, false); in pds_client_register() 30 dev_info(pf->dev, "register dev_name %s with DSC failed, status %d: %pe\n", in pds_client_register() 37 dev_err(pf->dev, "%s: device returned null client_id\n", in pds_client_register() 42 dev_dbg(pf->dev, "%s: device returned client_id %d for %s\n", in pds_client_register() 57 int pds_client_unregister(struct pdsc *pf, u16 client_id) in pds_client_unregister() argument 66 err = pdsc_adminq_post(pf, &cmd, &comp, false); in pds_client_unregister() 68 dev_info(pf->dev, "unregister client_id %d failed, status %d: %pe\n", in pds_client_unregister() 100 struct pdsc *pf; in pds_client_adminq_cmd() local 105 pf = pci_get_drvdata(pf_pdev); in pds_client_adminq_cmd() [all …]
|
| /linux/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc_pf.c | 34 static struct phylink_pcs *enetc_pf_create_pcs(struct enetc_pf *pf, in enetc_pf_create_pcs() argument 53 static void enetc_enable_si_vlan_promisc(struct enetc_pf *pf, int si_idx) in enetc_enable_si_vlan_promisc() argument 55 pf->vlan_promisc_simap |= BIT(si_idx); in enetc_enable_si_vlan_promisc() 56 enetc_set_vlan_promisc(&pf->si->hw, pf->vlan_promisc_simap); in enetc_enable_si_vlan_promisc() 59 static void enetc_disable_si_vlan_promisc(struct enetc_pf *pf, int si_idx) in enetc_disable_si_vlan_promisc() argument 61 pf->vlan_promisc_simap &= ~BIT(si_idx); in enetc_disable_si_vlan_promisc() 62 enetc_set_vlan_promisc(&pf->si->hw, pf->vlan_promisc_simap); in enetc_disable_si_vlan_promisc() 114 static void enetc_sync_mac_filters(struct enetc_pf *pf) in enetc_sync_mac_filters() argument 116 struct enetc_mac_filter *f = pf->mac_filter; in enetc_sync_mac_filters() 117 struct enetc_si *si = pf->si; in enetc_sync_mac_filters() [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_pagefault.c | 157 static int xe_pagefault_service(struct xe_pagefault *pf) in xe_pagefault_service() argument 159 struct xe_gt *gt = pf->gt; in xe_pagefault_service() 167 if (pf->consumer.fault_level == XE_PAGEFAULT_LEVEL_NACK) in xe_pagefault_service() 170 vm = xe_pagefault_asid_to_vm(xe, pf->consumer.asid); in xe_pagefault_service() 184 vma = xe_vm_find_vma_by_addr(vm, pf->consumer.page_addr); in xe_pagefault_service() 190 atomic = xe_pagefault_access_is_atomic(pf->consumer.access_type); in xe_pagefault_service() 194 pf->consumer.page_addr, atomic); in xe_pagefault_service() 208 struct xe_pagefault *pf) in xe_pagefault_queue_pop() argument 214 memcpy(pf, pf_queue->data + pf_queue->tail, sizeof(*pf)); in xe_pagefault_queue_pop() 224 static void xe_pagefault_print(struct xe_pagefault *pf) in xe_pagefault_print() argument [all …]
|
| /linux/net/ax25/ |
| H A D | ax25_std_in.c | 39 static int ax25_std_state1_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int t… in ax25_std_state1_machine() argument 45 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_std_state1_machine() 51 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_std_state1_machine() 55 ax25_send_control(ax25, AX25_DM, pf, AX25_RESPONSE); in ax25_std_state1_machine() 59 if (pf) { in ax25_std_state1_machine() 81 if (pf) { in ax25_std_state1_machine() 103 static int ax25_std_state2_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int t… in ax25_std_state2_machine() argument 108 ax25_send_control(ax25, AX25_DM, pf, AX25_RESPONSE); in ax25_std_state2_machine() 112 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_std_state2_machine() 118 if (pf) in ax25_std_state2_machine() [all …]
|