/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_main.c | 39 * @pf: NFP PF handle 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() [all …]
|
H A D | nfp_main.c | 72 int nfp_pf_rtsym_read_optional(struct nfp_pf *pf, const char *format, in nfp_pf_rtsym_read_optional() argument 79 snprintf(name, sizeof(name), format, nfp_cppcore_pcie_unit(pf->cpp)); in nfp_pf_rtsym_read_optional() 81 val = nfp_rtsym_read_le(pf->rtbl, name, &err); in nfp_pf_rtsym_read_optional() 85 nfp_err(pf->cpp, "Unable to read symbol %s\n", name); in nfp_pf_rtsym_read_optional() 93 nfp_pf_map_rtsym(struct nfp_pf *pf, const char *name, const char *sym_fmt, in nfp_pf_map_rtsym() argument 99 nfp_cppcore_pcie_unit(pf->cpp)); in nfp_pf_map_rtsym() 101 return nfp_rtsym_map(pf->rtbl, pf_symbol, name, min_size, area); in nfp_pf_map_rtsym() 105 int nfp_mbox_cmd(struct nfp_pf *pf, u32 cmd, void *in_data, u64 in_length, in nfp_mbox_cmd() argument 113 if (!pf->mbox) in nfp_mbox_cmd() 116 max_data_sz = nfp_rtsym_size(pf->mbox) - NFP_MBOX_SYM_MIN_SIZE; in nfp_mbox_cmd() [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_idc.c | 13 * @pf: pointer to PF struct 16 * pf->adev.dev to avoid race conditions. 18 static struct iidc_auxiliary_drv *ice_get_auxiliary_drv(struct ice_pf *pf) in ice_get_auxiliary_drv() argument 22 adev = pf->adev; in ice_get_auxiliary_drv() 32 * @pf: pointer to PF struct 35 void ice_send_event_to_aux(struct ice_pf *pf, struct iidc_event *event) in ice_send_event_to_aux() argument 42 mutex_lock(&pf->adev_mutex); in ice_send_event_to_aux() 43 if (!pf->adev) in ice_send_event_to_aux() 46 device_lock(&pf->adev->dev); in ice_send_event_to_aux() 47 iadrv = ice_get_auxiliary_drv(pf); in ice_send_event_to_aux() [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() 84 * @pf: poiner to PF struct 88 ice_eswitch_release_repr(struct ice_pf *pf, struct ice_repr *repr) in ice_eswitch_release_repr() argument 105 * @pf: pointer to PF struct 108 static int ice_eswitch_setup_repr(struct ice_pf *pf, struct ice_repr *repr) in ice_eswitch_setup_repr() argument 110 struct ice_vsi *uplink_vsi = pf->eswitch.uplink_vsi; in ice_eswitch_setup_repr() 177 struct ice_pf *pf = vsi->back; in ice_eswitch_update_repr() local [all …]
|
H A D | ice_irq.c | 10 * @pf: board private structure 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() 25 * @pf: board private structure 27 static void ice_deinit_irq_tracker(struct ice_pf *pf) in ice_deinit_irq_tracker() argument 29 xa_destroy(&pf->irq_tracker.entries); in ice_deinit_irq_tracker() 34 * @pf: board private structure 37 static void ice_free_irq_res(struct ice_pf *pf, u16 index) in ice_free_irq_res() argument [all …]
|
H A D | ice_dpll.c | 41 * @pf: private board structure 50 static bool ice_dpll_is_reset(struct ice_pf *pf, struct netlink_ext_ack *extack) in ice_dpll_is_reset() argument 52 if (ice_is_reset_in_progress(pf->state)) { in ice_dpll_is_reset() 53 NL_SET_ERR_MSG(extack, "PF reset in progress"); in ice_dpll_is_reset() 61 * @pf: private board structure 69 * Context: Called under pf->dplls.lock 75 ice_dpll_pin_freq_set(struct ice_pf *pf, struct ice_dpll_pin *pin, in ice_dpll_pin_freq_set() argument 85 ret = ice_aq_set_input_pin_cfg(&pf->hw, pin->idx, flags, in ice_dpll_pin_freq_set() 90 ret = ice_aq_set_output_pin_cfg(&pf->hw, pin->idx, flags, in ice_dpll_pin_freq_set() 100 ice_aq_str(pf->hw.adminq.sq_last_status), in ice_dpll_pin_freq_set() [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 76 wr32(&pf->hw, GLINT_DYN_CTL(i), GLINT_DYN_CTL_CLEARPBA_M); in ice_free_vf_res() 77 ice_flush(&pf->hw); in ice_free_vf_res() 90 struct ice_pf *pf = vf->pf; in ice_dis_vf_mappings() local 96 hw = &pf->hw; in ice_dis_vf_mappings() 101 dev = ice_pf_to_dev(pf); in ice_dis_vf_mappings() 128 * @pf: pointer to the PF structure [all …]
|
H A D | ice_main.c | 65 struct ice_pf *pf = container_of(hw, struct ice_pf, hw); in ice_hw_to_dev() local 67 return &pf->pdev->dev; in ice_hw_to_dev() 75 static void ice_rebuild(struct ice_pf *pf, enum ice_reset_req reset_type); 77 static void ice_vsi_release_all(struct ice_pf *pf); 79 static int ice_rebuild_channels(struct ice_pf *pf); 113 * @pf: pointer to PF struct 115 static void ice_check_for_hang_subtask(struct ice_pf *pf) in ice_check_for_hang_subtask() argument 123 ice_for_each_vsi(pf, v) in ice_check_for_hang_subtask() 124 if (pf->vsi[v] && pf->vsi[v]->type == ICE_VSI_PF) { in ice_check_for_hang_subtask() 125 vsi = pf->vsi[v]; in ice_check_for_hang_subtask() [all …]
|
H A D | ice_ptp.c | 60 static struct ice_pf *ice_get_ctrl_pf(struct ice_pf *pf) in ice_get_ctrl_pf() argument 62 return !pf->adapter ? NULL : pf->adapter->ctrl_pf; in ice_get_ctrl_pf() 65 static struct ice_ptp *ice_get_ctrl_ptp(struct ice_pf *pf) in ice_get_ctrl_ptp() argument 67 struct ice_pf *ctrl_pf = ice_get_ctrl_pf(pf); in ice_get_ctrl_ptp() 74 * @pf: Board private structure 80 static int ice_ptp_find_pin_idx(struct ice_pf *pf, enum ptp_pin_function func, in ice_ptp_find_pin_idx() argument 83 const struct ptp_clock_info *info = &pf->ptp.info; in ice_ptp_find_pin_idx() 97 * @pf: Board private structure 101 static void ice_ptp_update_sma_data(struct ice_pf *pf, unsigned int sma_pins[], in ice_ptp_update_sma_data() argument 147 dev_dbg(ice_pf_to_dev(pf), "%s, %s\n", state1, state2); in ice_ptp_update_sma_data() [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_dcb_lib.c | 26 * @pf: pointer to PF structure 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() 256 * PF queues) should be the first drop TC of the main VSI in ice_vsi_cfg_dcb_rings() 274 * @pf: pointer to the PF instance 278 * Before a new DCB configuration can be applied, VSIs of type PF, SWITCHDEV [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_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() 104 * @pf: PF device pointer 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() [all …]
|
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() 189 * @pf: board private structure 192 * Return CAN_SET_PINS if pins can be set on a specific PF or 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() [all …]
|
H A D | i40e_main.c | 35 static void i40e_handle_reset_warning(struct i40e_pf *pf, bool lock_acquired); 38 static int i40e_setup_pf_switch(struct i40e_pf *pf, bool reinit, bool lock_acquired); 39 static int i40e_setup_misc_vector(struct i40e_pf *pf); 40 static void i40e_determine_queue_usage(struct i40e_pf *pf); 41 static int i40e_setup_pf_filter_control(struct i40e_pf *pf); 42 static void i40e_prep_for_reset(struct i40e_pf *pf); 43 static void i40e_reset_and_rebuild(struct i40e_pf *pf, bool reinit, 45 static int i40e_reset(struct i40e_pf *pf); 46 static void i40e_rebuild(struct i40e_pf *pf, bool reinit, bool lock_acquired); 47 static int i40e_setup_misc_vector_for_recovery_mode(struct i40e_pf *pf); [all …]
|
H A D | i40e_devlink.c | 8 static void i40e_info_get_dsn(struct i40e_pf *pf, char *buf, size_t len) in i40e_info_get_dsn() argument 12 put_unaligned_be64(pci_get_dsn(pf->pdev), dsn); in i40e_info_get_dsn() 70 struct i40e_pf *pf = devlink_priv(dl); in i40e_devlink_info_get() local 71 struct i40e_hw *hw = &pf->hw; in i40e_devlink_info_get() 75 i40e_info_get_dsn(pf, buf, sizeof(buf)); in i40e_devlink_info_get() 149 * @pf: the PF structure 153 void i40e_free_pf(struct i40e_pf *pf) in i40e_free_pf() argument 155 struct devlink *devlink = priv_to_devlink(pf); in i40e_free_pf() 161 * i40e_devlink_register - Register devlink interface for this PF 162 * @pf: the PF to register the devlink for. [all …]
|
/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc4_pf.c | 14 static void enetc4_get_port_caps(struct enetc_pf *pf) in enetc4_get_port_caps() argument 16 struct enetc_hw *hw = &pf->si->hw; in enetc4_get_port_caps() 20 pf->caps.num_vsi = (val & ECAPR1_NUM_VSI) >> 24; in enetc4_get_port_caps() 21 pf->caps.num_msix = ((val & ECAPR1_NUM_MSIX) >> 12) + 1; in enetc4_get_port_caps() 24 pf->caps.num_rx_bdr = (val & ECAPR2_NUM_RX_BDR) >> 16; in enetc4_get_port_caps() 25 pf->caps.num_tx_bdr = val & ECAPR2_NUM_TX_BDR; in enetc4_get_port_caps() 28 pf->caps.half_duplex = (val & PMCAPR_HD) ? 1 : 0; in enetc4_get_port_caps() 66 struct enetc_pf *pf = enetc_si_priv(si); in enetc4_pf_struct_init() local 68 pf->si = si; in enetc4_pf_struct_init() 69 pf->total_vfs = pci_sriov_get_totalvfs(si->pdev); in enetc4_pf_struct_init() [all …]
|
H A D | enetc_pf.c | 13 #define ENETC_DRV_NAME_STR "ENETC PF driver" 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() 148 static void enetc_sync_mac_filters(struct enetc_pf *pf) in enetc_sync_mac_filters() argument 150 struct enetc_mac_filter *f = pf->mac_filter; in enetc_sync_mac_filters() [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hclge_mbx.h | 11 HCLGE_MBX_RESET = 0x01, /* (VF -> PF) assert reset */ 12 HCLGE_MBX_ASSERTING_RESET, /* (PF -> VF) PF is asserting reset */ 13 HCLGE_MBX_SET_UNICAST, /* (VF -> PF) set UC addr */ 14 HCLGE_MBX_SET_MULTICAST, /* (VF -> PF) set MC addr */ 15 HCLGE_MBX_SET_VLAN, /* (VF -> PF) set VLAN */ 16 HCLGE_MBX_MAP_RING_TO_VECTOR, /* (VF -> PF) map ring-to-vector */ 17 HCLGE_MBX_UNMAP_RING_TO_VECTOR, /* (VF -> PF) unamp ring-to-vector */ 18 HCLGE_MBX_SET_PROMISC_MODE, /* (VF -> PF) set promiscuous mode */ 19 HCLGE_MBX_SET_MACVLAN, /* (VF -> PF) set unicast filter */ 20 HCLGE_MBX_API_NEGOTIATE, /* (VF -> PF) negotiate API version */ [all …]
|
/linux/drivers/gpu/drm/xe/tests/ |
H A D | xe_gt_sriov_pf_service_test.c | 33 * - all supported platforms VF/PF ABI versions must be defined in pf_service_test_init() 36 KUNIT_ASSERT_NE(test, 0, gt->sriov.pf.service.version.base.major); in pf_service_test_init() 37 KUNIT_ASSERT_NE(test, 0, gt->sriov.pf.service.version.latest.major); in pf_service_test_init() 38 KUNIT_ASSERT_LE(test, gt->sriov.pf.service.version.base.major, in pf_service_test_init() 39 gt->sriov.pf.service.version.latest.major); in pf_service_test_init() 40 if (gt->sriov.pf.service.version.base.major == gt->sriov.pf.service.version.latest.major) in pf_service_test_init() 41 KUNIT_ASSERT_LE(test, gt->sriov.pf.service.version.base.minor, in pf_service_test_init() 42 gt->sriov.pf.service.version.latest.minor); in pf_service_test_init() 57 KUNIT_ASSERT_EQ(test, major, gt->sriov.pf.service.version.latest.major); in pf_negotiate_any() 58 KUNIT_ASSERT_EQ(test, minor, gt->sriov.pf.service.version.latest.minor); in pf_negotiate_any() [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 …]
|
/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/drivers/net/ethernet/amd/pds_core/ |
H A D | auxbus.c | 11 * @pf: ptr to the PF driver's private data struct 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() 51 * @pf: ptr to the PF driver's private data struct 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() [all …]
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_cgx.c | 44 bool is_mac_feature_supported(struct rvu *rvu, int pf, int feature) in is_mac_feature_supported() argument 49 if (!is_pf_cgxmapped(rvu, pf)) in is_mac_feature_supported() 52 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in is_mac_feature_supported() 71 /* Assumes only one pf mapped to a cgx lmac port */ in cgxlmac_to_pf() 107 /* Based on P2X connectivity find mapped NIX block for a PF */ 108 static void rvu_map_cgx_nix_block(struct rvu *rvu, int pf, in rvu_map_cgx_nix_block() argument 111 struct rvu_pfvf *pfvf = &rvu->pf[pf]; in rvu_map_cgx_nix_block() 125 int pf = PF_CGXMAP_BASE; in rvu_map_cgx_lmac_pf() local 138 * An additional entry is required since PF id starts from 1 and in rvu_map_cgx_lmac_pf() 167 rvu->pf2cgxlmac_map[pf] = cgxlmac_id_to_bmap(cgx, lmac); in rvu_map_cgx_lmac_pf() [all …]
|