| /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 …]
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_pf.c | 58 struct otx2_nic *pf = netdev_priv(netdev); in otx2_change_mtu() local 62 if (pf->xdp_prog && new_mtu > MAX_XDP_MTU) { in otx2_change_mtu() 80 static void otx2_disable_flr_me_intr(struct otx2_nic *pf) in otx2_disable_flr_me_intr() argument 82 int irq, vfs = pf->total_vfs; in otx2_disable_flr_me_intr() 85 otx2_write64(pf, RVU_PF_VFME_INT_ENA_W1CX(0), INTR_MASK(vfs)); in otx2_disable_flr_me_intr() 86 irq = pci_irq_vector(pf->pdev, RVU_PF_INT_VEC_VFME0); in otx2_disable_flr_me_intr() 87 free_irq(irq, pf); in otx2_disable_flr_me_intr() 90 otx2_write64(pf, RVU_PF_VFFLR_INT_ENA_W1CX(0), INTR_MASK(vfs)); in otx2_disable_flr_me_intr() 91 irq = pci_irq_vector(pf->pdev, RVU_PF_INT_VEC_VFFLR0); in otx2_disable_flr_me_intr() 92 free_irq(irq, pf); in otx2_disable_flr_me_intr() [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_ptp.c | 58 static struct ice_ptp *ice_get_ctrl_ptp(struct ice_pf *pf) in ice_get_ctrl_ptp() argument 60 struct ice_pf *ctrl_pf = ice_get_ctrl_pf(pf); in ice_get_ctrl_ptp() 73 static int ice_ptp_find_pin_idx(struct ice_pf *pf, enum ptp_pin_function func, in ice_ptp_find_pin_idx() argument 76 const struct ptp_clock_info *info = &pf->ptp.info; in ice_ptp_find_pin_idx() 95 static void ice_ptp_cfg_tx_interrupt(struct ice_pf *pf) in ice_ptp_cfg_tx_interrupt() argument 97 struct ice_hw *hw = &pf->hw; in ice_ptp_cfg_tx_interrupt() 101 switch (pf->ptp.tx_interrupt_mode) { in ice_ptp_cfg_tx_interrupt() 114 enable = pf->ptp.tstamp_config.tx_type == HWTSTAMP_TX_ON; in ice_ptp_cfg_tx_interrupt() 132 static void ice_set_rx_tstamp(struct ice_pf *pf, bool on) in ice_set_rx_tstamp() argument 137 vsi = ice_get_main_vsi(pf); in ice_set_rx_tstamp() [all …]
|
| H A D | ice_dpll.c | 108 static bool ice_dpll_is_sw_pin(struct ice_pf *pf, u8 index, bool input) in ice_dpll_is_sw_pin() argument 110 if (input && pf->hw.device_id == ICE_DEV_ID_E810C_QSFP) in ice_dpll_is_sw_pin() 133 static bool ice_dpll_is_reset(struct ice_pf *pf, struct netlink_ext_ack *extack) in ice_dpll_is_reset() argument 135 if (ice_is_reset_in_progress(pf->state)) { in ice_dpll_is_reset() 158 ice_dpll_pin_freq_set(struct ice_pf *pf, struct ice_dpll_pin *pin, in ice_dpll_pin_freq_set() argument 168 ret = ice_aq_set_input_pin_cfg(&pf->hw, pin->idx, flags, in ice_dpll_pin_freq_set() 173 ret = ice_aq_set_output_pin_cfg(&pf->hw, pin->idx, flags, in ice_dpll_pin_freq_set() 183 libie_aq_str(pf->hw.adminq.sq_last_status), in ice_dpll_pin_freq_set() 218 struct ice_pf *pf = d->pf; in ice_dpll_frequency_set() local 221 if (ice_dpll_is_reset(pf, extack)) in ice_dpll_frequency_set() [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_main.c | 69 struct ice_pf *pf = container_of(hw, struct ice_pf, hw); in ice_hw_to_dev() local 71 return &pf->pdev->dev; in ice_hw_to_dev() 79 static void ice_rebuild(struct ice_pf *pf, enum ice_reset_req reset_type); 81 static void ice_vsi_release_all(struct ice_pf *pf); 83 static int ice_rebuild_channels(struct ice_pf *pf); 119 static void ice_check_for_hang_subtask(struct ice_pf *pf) in ice_check_for_hang_subtask() argument 127 ice_for_each_vsi(pf, v) in ice_check_for_hang_subtask() 128 if (pf->vsi[v] && pf->vsi[v]->type == ICE_VSI_PF) { in ice_check_for_hang_subtask() 129 vsi = pf->vsi[v]; in ice_check_for_hang_subtask() 187 static int ice_init_mac_fltr(struct ice_pf *pf) in ice_init_mac_fltr() argument [all …]
|
| H A D | ice_eswitch.c | 15 * @pf: pointer to PF struct 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() 85 * @pf: poiner to PF struct 89 ice_eswitch_release_repr(struct ice_pf *pf, struct ice_repr *repr) in ice_eswitch_release_repr() argument 106 * @pf: pointer to PF struct 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() 176 struct ice_pf *pf in ice_eswitch_update_repr() local 268 ice_eswitch_release_env(struct ice_pf * pf) ice_eswitch_release_env() argument 291 ice_eswitch_enable_switchdev(struct ice_pf * pf) ice_eswitch_enable_switchdev() argument 328 ice_eswitch_disable_switchdev(struct ice_pf * pf) ice_eswitch_disable_switchdev() argument 346 struct ice_pf *pf = devlink_priv(devlink); ice_eswitch_mode_set() local 394 struct ice_pf *pf = devlink_priv(devlink); ice_eswitch_mode_get() local 407 ice_is_eswitch_mode_switchdev(struct ice_pf * pf) ice_is_eswitch_mode_switchdev() argument 416 ice_eswitch_start_all_tx_queues(struct ice_pf * pf) ice_eswitch_start_all_tx_queues() argument 432 ice_eswitch_stop_all_tx_queues(struct ice_pf * pf) ice_eswitch_stop_all_tx_queues() argument 444 ice_eswitch_stop_reprs(struct ice_pf * pf) ice_eswitch_stop_reprs() argument 449 ice_eswitch_start_reprs(struct ice_pf * pf) ice_eswitch_start_reprs() argument 455 ice_eswitch_attach(struct ice_pf * pf,struct ice_repr * repr,unsigned long * id) ice_eswitch_attach() argument 509 ice_eswitch_attach_vf(struct ice_pf * pf,struct ice_vf * vf) ice_eswitch_attach_vf() argument 537 ice_eswitch_attach_sf(struct ice_pf * pf,struct ice_dynamic_port * sf) ice_eswitch_attach_sf() argument 552 ice_eswitch_detach(struct ice_pf * pf,struct ice_repr * repr) ice_eswitch_detach() argument 583 ice_eswitch_detach_vf(struct ice_pf * pf,struct ice_vf * vf) ice_eswitch_detach_vf() argument 601 ice_eswitch_detach_sf(struct ice_pf * pf,struct ice_dynamic_port * sf) ice_eswitch_detach_sf() argument [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_sriov.c | 19 * @pf: pointer to the PF structure 24 static void ice_free_vf_entries(struct ice_pf *pf) in ice_free_vf_entries() argument 26 struct ice_vfs *vfs = &pf->vfs; in ice_free_vf_entries() 50 struct ice_pf *pf = vf->pf; in ice_free_vf_res() local 77 wr32(&pf->hw, GLINT_DYN_CTL(i), GLINT_DYN_CTL_CLEARPBA_M); in ice_free_vf_res() 78 ice_flush(&pf->hw); in ice_free_vf_res() 91 struct ice_pf *pf = vf->pf; in ice_dis_vf_mappings() local 97 hw = &pf in ice_dis_vf_mappings() 131 ice_free_vfs(struct ice_pf * pf) ice_free_vfs() argument 200 struct ice_pf *pf = vf->pf; ice_vf_vsi_setup() local 234 struct ice_pf *pf = vf->pf; ice_ena_vf_msix_mappings() local 371 ice_set_per_vf_res(struct ice_pf * pf,u16 num_vfs) ice_set_per_vf_res() argument 440 struct ice_pf *pf = vf->pf; ice_init_vf_vsi_res() local 467 ice_start_vfs(struct ice_pf * pf) ice_start_vfs() argument 554 struct ice_pf *pf = vf->pf; ice_sriov_clear_mbx_register() local 569 struct ice_pf *pf = vf->pf; ice_sriov_trigger_reset_register() local 616 struct ice_pf *pf = vf->pf; ice_sriov_poll_reset_status() local 685 ice_create_vf_entries(struct ice_pf * pf,u16 num_vfs) ice_create_vf_entries() argument 744 ice_ena_vfs(struct ice_pf * pf,u16 num_vfs) ice_ena_vfs() argument 812 ice_pci_sriov_ena(struct ice_pf * pf,int num_vfs) ice_pci_sriov_ena() argument 843 ice_check_sriov_allowed(struct ice_pf * pf) ice_check_sriov_allowed() argument 873 struct ice_pf *pf = pci_get_drvdata(pdev); ice_sriov_get_vf_total_msix() local 878 ice_sriov_remap_vectors(struct ice_pf * pf,u16 restricted_id) ice_sriov_remap_vectors() argument 933 struct ice_pf *pf = pci_get_drvdata(pdev); ice_sriov_set_msix_vec_count() local 1043 struct ice_pf *pf = pci_get_drvdata(pdev); ice_sriov_configure() local 1075 ice_process_vflr_event(struct ice_pf * pf) ice_process_vflr_event() argument 1113 ice_get_vf_from_pfq(struct ice_pf * pf,u16 pfq) ice_get_vf_from_pfq() argument 1149 ice_globalq_to_pfq(struct ice_pf * pf,u32 globalq) ice_globalq_to_pfq() argument 1164 ice_vf_lan_overflow_event(struct ice_pf * pf,struct ice_rq_event_info * event) ice_vf_lan_overflow_event() argument 1195 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_set_vf_spoofchk() local 1255 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_get_vf_cfg() local 1301 __ice_set_vf_mac(struct ice_pf * pf,u16 vf_id,const u8 * mac) __ice_set_vf_mac() argument 1379 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_set_vf_trust() local 1429 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_set_vf_link_state() local 1469 ice_calc_all_vfs_min_tx_rate(struct ice_pf * pf) ice_calc_all_vfs_min_tx_rate() argument 1533 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_set_vf_bw() local 1602 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_get_vf_stats() local 1684 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_set_vf_port_vlan() local 1745 struct ice_pf *pf = vf->pf; ice_print_vf_rx_mdd_event() local 1763 struct ice_pf *pf = vf->pf; ice_print_vf_tx_mdd_event() local 1781 ice_print_vfs_mdd_events(struct ice_pf * pf) ice_print_vfs_mdd_events() argument 1822 ice_restore_all_vfs_msi_state(struct ice_pf * pf) ice_restore_all_vfs_msi_state() argument [all...] |
| H A D | ice_gnss.c | 21 ice_gnss_do_write(struct ice_pf *pf, const unsigned char *buf, unsigned int size) in ice_gnss_do_write() argument 24 struct ice_hw *hw = &pf->hw; in ice_gnss_do_write() 73 dev_err(ice_pf_to_dev(pf), "GNSS failed to write, offset=%u, size=%u, err=%d\n", in ice_gnss_do_write() 92 struct ice_pf *pf; in ice_gnss_read() local 99 pf = gnss->back; in ice_gnss_read() 100 if (!pf || !test_bit(ICE_FLAG_GNSS, pf->flags)) in ice_gnss_read() 103 hw = &pf->hw; in ice_gnss_read() 148 count = gnss_insert_raw(pf->gnss_dev, buf, i); in ice_gnss_read() 150 dev_warn(ice_pf_to_dev(pf), in ice_gnss_read() 159 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_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 | 12 * @pf: pointer to the PF structure 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() 129 * @pf 133 i40e_vc_notify_link_state(struct i40e_pf * pf) i40e_vc_notify_link_state() argument 147 i40e_vc_notify_reset(struct i40e_pf * pf) i40e_vc_notify_reset() argument 221 struct i40e_pf *pf = vf->pf; i40e_vc_reset_vf() local 262 struct i40e_pf *pf = vf->pf; i40e_vc_isvalid_vsi_id() local 279 struct i40e_pf *pf = vf->pf; i40e_vc_isvalid_queue_id() local 294 struct i40e_pf *pf = vf->pf; i40e_vc_isvalid_vector_id() local 312 struct i40e_pf *pf = vf->pf; i40e_vc_get_pf_queue_id() local 374 struct i40e_pf *pf = vf->pf; i40e_config_irq_link_list() local 478 struct i40e_pf *pf = vf->pf; i40e_release_rdma_qvlist() local 530 struct i40e_pf *pf = vf->pf; i40e_config_rdma_qvlist() local 632 struct i40e_pf *pf = vf->pf; i40e_config_vsi_tx_queue() local 715 struct i40e_pf *pf = vf->pf; i40e_config_vsi_rx_queue() local 813 struct i40e_pf *pf = vf->pf; i40e_alloc_vsi_res() local 902 struct i40e_pf *pf = vf->pf; i40e_map_pf_queues_to_vsi() local 949 struct i40e_pf *pf = vf->pf; i40e_map_pf_to_vf_queues() local 987 struct i40e_pf *pf = vf->pf; i40e_enable_vf_mappings() local 1016 struct i40e_pf *pf = vf->pf; i40e_disable_vf_mappings() local 1036 struct i40e_pf *pf = vf->pf; i40e_free_vf_res() local 1117 struct i40e_pf *pf = vf->pf; i40e_alloc_vf_res() local 1192 struct i40e_pf *pf = vf->pf; i40e_quiesce_vf_pci() local 1292 struct i40e_pf *pf = vf->pf; i40e_set_vsi_promisc() local 1382 struct i40e_pf *pf = vf->pf; i40e_config_vf_promiscuous_mode() local 1451 struct i40e_pf *pf = vf->pf; i40e_trigger_vf_reset() local 1512 struct i40e_pf *pf = vf->pf; i40e_cleanup_reset_vf() local 1566 struct i40e_pf *pf = vf->pf; i40e_reset_vf() local 1635 i40e_reset_all_vfs(struct i40e_pf * pf,bool flr) i40e_reset_all_vfs() argument 1751 i40e_free_vfs(struct i40e_pf * pf) i40e_free_vfs() argument 1829 i40e_alloc_vfs(struct i40e_pf * pf,u16 num_alloc_vfs) i40e_alloc_vfs() argument 1894 struct i40e_pf *pf = pci_get_drvdata(pdev); i40e_pci_sriov_enable() local 1943 struct i40e_pf *pf = pci_get_drvdata(pdev); i40e_pci_sriov_configure() local 1989 struct i40e_pf *pf; i40e_vc_send_msg_to_vf() local 2083 struct i40e_pf *pf = vf->pf; i40e_del_qch() local 2127 struct i40e_pf *pf = vf->pf; i40e_vc_get_vf_resources_msg() local 2263 struct i40e_pf *pf = vf->pf; i40e_vc_config_promiscuous_mode_msg() local 2350 struct i40e_pf *pf = vf->pf; i40e_vc_config_queues_msg() local 2555 struct i40e_pf *pf = vsi->back; i40e_ctrl_vf_tx_rings() local 2578 struct i40e_pf *pf = vsi->back; i40e_ctrl_vf_rx_rings() local 2618 struct i40e_pf *pf = vf->pf; i40e_vc_enable_queues_msg() local 2684 struct i40e_pf *pf = vf->pf; i40e_vc_disable_queues_msg() local 2730 struct i40e_pf *pf = vf->pf; i40e_check_enough_queue() local 2788 struct i40e_pf *pf = vf->pf; i40e_vc_request_queues_msg() local 2834 struct i40e_pf *pf = vf->pf; i40e_vc_get_stats_msg() local 2900 struct i40e_pf *pf = vf->pf; i40e_check_vf_permission() local 3063 struct i40e_pf *pf = vf->pf; i40e_vc_add_mac_addr_msg() local 3132 struct i40e_pf *pf = vf->pf; i40e_vc_del_mac_addr_msg() local 3219 struct i40e_pf *pf = vf->pf; i40e_vc_add_vlan_msg() local 3290 struct i40e_pf *pf = vf->pf; i40e_vc_remove_vlan_msg() local 3346 struct i40e_pf *pf = vf->pf; i40e_vc_rdma_msg() local 3413 struct i40e_pf *pf = vf->pf; i40e_vc_config_rss_key() local 3443 struct i40e_pf *pf = vf->pf; i40e_vc_config_rss_lut() local 3479 struct i40e_pf *pf = vf->pf; i40e_vc_get_rss_hashcfg() local 3515 struct i40e_pf *pf = vf->pf; i40e_vc_set_rss_hashcfg() local 3597 struct i40e_pf *pf = vf->pf; i40e_validate_cloud_filter() local 3725 struct i40e_pf *pf = vf->pf; i40e_find_vsi_from_seid() local 3746 struct i40e_pf *pf = vf->pf; i40e_del_all_cloud_filters() local 3791 struct i40e_pf *pf = vf->pf; i40e_vc_del_cloud_filter() local 3925 struct i40e_pf *pf = vf->pf; i40e_vc_add_cloud_filter() local 4043 struct i40e_pf *pf = vf->pf; i40e_vc_add_qch_msg() local 4157 struct i40e_pf *pf = vf->pf; i40e_vc_del_qch_msg() local 4201 i40e_vc_process_vf_msg(struct i40e_pf * pf,s16 vf_id,u32 v_opcode,u32 __always_unused v_retval,u8 * msg,u16 msglen) i40e_vc_process_vf_msg() argument 4332 i40e_vc_process_vflr_event(struct i40e_pf * pf) i40e_vc_process_vflr_event() argument 4379 i40e_validate_vf(struct i40e_pf * pf,int vf_id) i40e_validate_vf() argument 4443 struct i40e_pf *pf = vsi->back; i40e_ndo_set_vf_mac() local 4535 struct i40e_pf *pf = np->vsi->back; i40e_ndo_set_vf_port_vlan() local 4690 struct i40e_pf *pf = np->vsi->back; i40e_ndo_set_vf_bw() local 4742 struct i40e_pf *pf = vsi->back; i40e_ndo_get_vf_config() local 4798 struct i40e_pf *pf = np->vsi->back; i40e_ndo_set_vf_link_state() local 4900 struct i40e_pf *pf = vsi->back; i40e_ndo_set_vf_spoofchk() local 4957 struct i40e_pf *pf = np->vsi->back; i40e_ndo_set_vf_trust() local 5018 struct i40e_pf *pf = np->vsi->back; i40e_get_vf_stats() local [all...] |
| /linux/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc_pf_common.c | 10 void enetc_set_si_hw_addr(struct enetc_pf *pf, int si, const u8 *mac_addr) in enetc_set_si_hw_addr() argument 12 struct enetc_hw *hw = &pf->si->hw; in enetc_set_si_hw_addr() 14 pf->ops->set_si_primary_mac(hw, si, mac_addr); in enetc_set_si_hw_addr() 18 static void enetc_get_si_hw_addr(struct enetc_pf *pf, int si, u8 *mac_addr) in enetc_get_si_hw_addr() argument 20 struct enetc_hw *hw = &pf->si->hw; in enetc_get_si_hw_addr() 22 pf->ops->get_si_primary_mac(hw, si, mac_addr); in enetc_get_si_hw_addr() 28 struct enetc_pf *pf = enetc_si_priv(priv->si); in enetc_pf_set_mac_addr() local 35 enetc_set_si_hw_addr(pf, 0, saddr->sa_data); in enetc_pf_set_mac_addr() 41 static int enetc_setup_mac_address(struct device_node *np, struct enetc_pf *pf, in enetc_setup_mac_address() argument 44 struct device *dev = &pf->si->pdev->dev; in enetc_setup_mac_address() [all …]
|
| H A D | enetc4_pf.c | 20 static void enetc4_get_port_caps(struct enetc_pf *pf) in enetc4_get_port_caps() argument 22 struct enetc_hw *hw = &pf->si->hw; in enetc4_get_port_caps() 26 pf->caps.num_msix = ((val & ECAPR1_NUM_MSIX) >> 12) + 1; in enetc4_get_port_caps() 29 pf->caps.num_rx_bdr = (val & ECAPR2_NUM_RX_BDR) >> 16; in enetc4_get_port_caps() 30 pf->caps.num_tx_bdr = val & ECAPR2_NUM_TX_BDR; in enetc4_get_port_caps() 86 static void enetc4_pf_clear_maft_entries(struct enetc_pf *pf) in enetc4_pf_clear_maft_entries() argument 88 struct ntmp_user *user = &pf->si->ntmp_user; in enetc4_pf_clear_maft_entries() 98 static int enetc4_pf_add_maft_entries(struct enetc_pf *pf, in enetc4_pf_add_maft_entries() argument 101 struct ntmp_user *user = &pf->si->ntmp_user; in enetc4_pf_add_maft_entries() 132 enetc4_pf_clear_maft_entries(pf); in enetc4_pf_add_maft_entries() [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 185 regs = get_dwarf_regstr(regn, pf->e_machine, pf->e_flags); in convert_variable_location() 472 static int convert_variable(Dwarf_Die *vr_die, struct probe_finder *pf) in convert_variable() 480 ret = convert_variable_location(vr_die, pf->addr, pf->fb_ops, in convert_variable() 481 &pf->sp_die, pf, pf->tvar); in convert_variable() 482 if (ret == -ENOENT && pf in convert_variable() 458 convert_variable(Dwarf_Die * vr_die,struct probe_finder * pf) convert_variable() argument 489 find_variable(Dwarf_Die * sc_die,struct probe_finder * pf) find_variable() argument 585 call_probe_finder(Dwarf_Die * sc_die,struct probe_finder * pf) call_probe_finder() argument 692 find_best_scope(struct probe_finder * pf,Dwarf_Die * die_mem) find_best_scope() argument 713 verify_representive_line(struct probe_finder * pf,const char * fname,int lineno,Dwarf_Addr addr) verify_representive_line() argument 749 struct probe_finder *pf = data; probe_point_line_walker() local 773 find_probe_point_by_line(struct probe_finder * pf) find_probe_point_by_line() argument 821 struct probe_finder *pf = data; probe_point_lazy_walker() local 849 find_probe_point_lazy(Dwarf_Die * sp_die,struct probe_finder * pf) find_probe_point_lazy() argument 882 skip_prologue(Dwarf_Die * sp_die,struct probe_finder * pf) skip_prologue() argument 916 struct probe_finder *pf = data; probe_point_inline_cb() local 956 struct probe_finder *pf = param->data; probe_point_search_cb() local 1017 find_probe_point_by_func(struct probe_finder * pf) find_probe_point_by_func() argument 1061 debuginfo__find_probe_location(struct debuginfo * dbg,struct probe_finder * pf) debuginfo__find_probe_location() argument 1135 debuginfo__find_probes(struct debuginfo * dbg,struct probe_finder * pf) debuginfo__find_probes() argument 1170 struct probe_finder *pf; global() member 1182 struct probe_finder *pf = vf->pf; copy_variables_cb() local 1221 expand_probe_args(Dwarf_Die * sc_die,struct probe_finder * pf,struct perf_probe_arg * args) expand_probe_args() argument 1265 add_probe_trace_event(Dwarf_Die * sc_die,struct probe_finder * pf) add_probe_trace_event() argument 1497 add_available_vars(Dwarf_Die * sc_die,struct probe_finder * pf) add_available_vars() argument [all...] |
| /linux/drivers/net/ethernet/intel/ice/devlink/ |
| H A D | devlink.c | 34 static void ice_info_get_dsn(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_get_dsn() argument 39 put_unaligned_be64(pci_get_dsn(pf->pdev), dsn); in ice_info_get_dsn() 44 static void ice_info_pba(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_pba() argument 46 struct ice_hw *hw = &pf->hw; in ice_info_pba() 52 dev_dbg(ice_pf_to_dev(pf), "Failed to read Product Board Assembly string, status %d\n", in ice_info_pba() 56 static void ice_info_fw_mgmt(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_fw_mgmt() argument 58 struct ice_hw *hw = &pf->hw; in ice_info_fw_mgmt() 64 static void ice_info_fw_api(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_fw_api() argument 66 struct ice_hw *hw = &pf->hw; in ice_info_fw_api() 72 static void ice_info_fw_build(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_fw_build() argument [all …]
|
| H A D | port.c | 47 * @pf: the PF to print split port options 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() 118 * @pf: the PF to print split port options 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 in ice_devlink_aq_set_port_option() 187 struct ice_pf *pf = devlink_priv(devlink); ice_devlink_port_split() local 269 ice_devlink_set_port_split_options(struct ice_pf * pf,struct devlink_port_attrs * attrs) ice_devlink_set_port_split_options() argument 305 ice_devlink_set_switch_id(struct ice_pf * pf,struct netdev_phys_item_id * ppid) ice_devlink_set_switch_id() argument 325 ice_devlink_create_pf_port(struct ice_pf * pf) ice_devlink_create_pf_port() argument 375 ice_devlink_destroy_pf_port(struct ice_pf * pf) ice_devlink_destroy_pf_port() argument 421 struct ice_pf *pf; ice_devlink_port_set_vf_fn_mac() local 451 struct ice_pf *pf; ice_devlink_create_vf_port() local 587 struct ice_pf *pf = dyn_port->pf; ice_dealloc_dynamic_port() local 602 ice_dealloc_all_dynamic_ports(struct ice_pf * pf) ice_dealloc_all_dynamic_ports() argument 623 ice_devlink_port_new_check_attr(struct ice_pf * pf,const struct devlink_port_new_attrs * new_attr,struct netlink_ext_ack * extack) ice_devlink_port_new_check_attr() argument 827 ice_reserve_sf_num(struct ice_pf * pf,const struct devlink_port_new_attrs * new_attr,struct netlink_ext_ack * extack,u32 * sfnum) ice_reserve_sf_num() argument 866 struct ice_pf *pf; ice_devlink_create_sf_port() local 909 ice_alloc_dynamic_port(struct ice_pf * pf,const struct devlink_port_new_attrs * new_attr,struct netlink_ext_ack * extack,struct devlink_port ** devlink_port) ice_alloc_dynamic_port() argument 987 struct ice_pf *pf = devlink_priv(devlink); ice_devlink_port_new() local [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 …]
|