/drivers/net/ethernet/netronome/nfp/ |
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 int nfp_net_pf_get_app_id(struct nfp_pf *pf) in nfp_net_pf_get_app_id() argument 81 return nfp_pf_rtsym_read_optional(pf, "_pf%u_net_app_id", in nfp_net_pf_get_app_id() 85 static void nfp_net_pf_free_vnic(struct nfp_pf *pf, struct nfp_net *nn) in nfp_net_pf_free_vnic() argument 88 nfp_app_vnic_free(pf->app, nn); in nfp_net_pf_free_vnic() 91 pf->num_vnics--; in nfp_net_pf_free_vnic() 95 static void nfp_net_pf_free_vnics(struct nfp_pf *pf) in nfp_net_pf_free_vnics() argument 99 list_for_each_entry_safe(nn, next, &pf->vnics, vnic_list) in nfp_net_pf_free_vnics() [all …]
|
D | nfp_main.c | 51 int nfp_pf_rtsym_read_optional(struct nfp_pf *pf, const char *format, in nfp_pf_rtsym_read_optional() argument 58 snprintf(name, sizeof(name), format, nfp_cppcore_pcie_unit(pf->cpp)); in nfp_pf_rtsym_read_optional() 60 val = nfp_rtsym_read_le(pf->rtbl, name, &err); in nfp_pf_rtsym_read_optional() 64 nfp_err(pf->cpp, "Unable to read symbol %s\n", name); in nfp_pf_rtsym_read_optional() 72 nfp_pf_map_rtsym(struct nfp_pf *pf, const char *name, const char *sym_fmt, in nfp_pf_map_rtsym() argument 78 nfp_cppcore_pcie_unit(pf->cpp)); in nfp_pf_map_rtsym() 80 return nfp_rtsym_map(pf->rtbl, pf_symbol, name, min_size, area); in nfp_pf_map_rtsym() 84 int nfp_mbox_cmd(struct nfp_pf *pf, u32 cmd, void *in_data, u64 in_length, in nfp_mbox_cmd() argument 92 if (!pf->mbox) in nfp_mbox_cmd() 95 max_data_sz = nfp_rtsym_size(pf->mbox) - NFP_MBOX_SYM_MIN_SIZE; in nfp_mbox_cmd() [all …]
|
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 …]
|
D | nfp_devlink.c | 29 nfp_devlink_fill_eth_port_from_id(struct nfp_pf *pf, unsigned int port_index, in nfp_devlink_fill_eth_port_from_id() argument 34 port = nfp_port_from_id(pf, NFP_PORT_PHYS_PORT, port_index); in nfp_devlink_fill_eth_port_from_id() 40 nfp_devlink_set_lanes(struct nfp_pf *pf, unsigned int idx, unsigned int lanes) in nfp_devlink_set_lanes() argument 45 nsp = nfp_eth_config_start(pf->cpp, idx); in nfp_devlink_set_lanes() 61 return nfp_net_refresh_port_table_sync(pf); in nfp_devlink_set_lanes() 68 struct nfp_pf *pf = devlink_priv(devlink); in nfp_devlink_port_split() local 73 mutex_lock(&pf->lock); in nfp_devlink_port_split() 76 ret = nfp_devlink_fill_eth_port_from_id(pf, port_index, ð_port); in nfp_devlink_port_split() 91 ret = nfp_devlink_set_lanes(pf, eth_port.index, lanes); in nfp_devlink_port_split() 93 mutex_unlock(&pf->lock); in nfp_devlink_port_split() [all …]
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_pf.c | 68 static void otx2_disable_flr_me_intr(struct otx2_nic *pf) in otx2_disable_flr_me_intr() argument 70 int irq, vfs = pf->total_vfs; in otx2_disable_flr_me_intr() 73 otx2_write64(pf, RVU_PF_VFME_INT_ENA_W1CX(0), INTR_MASK(vfs)); in otx2_disable_flr_me_intr() 74 irq = pci_irq_vector(pf->pdev, RVU_PF_INT_VEC_VFME0); in otx2_disable_flr_me_intr() 75 free_irq(irq, pf); in otx2_disable_flr_me_intr() 78 otx2_write64(pf, RVU_PF_VFFLR_INT_ENA_W1CX(0), INTR_MASK(vfs)); in otx2_disable_flr_me_intr() 79 irq = pci_irq_vector(pf->pdev, RVU_PF_INT_VEC_VFFLR0); in otx2_disable_flr_me_intr() 80 free_irq(irq, pf); in otx2_disable_flr_me_intr() 85 otx2_write64(pf, RVU_PF_VFME_INT_ENA_W1CX(1), INTR_MASK(vfs - 64)); in otx2_disable_flr_me_intr() 86 irq = pci_irq_vector(pf->pdev, RVU_PF_INT_VEC_VFME1); in otx2_disable_flr_me_intr() [all …]
|
D | otx2_dmac_flt.c | 10 static int otx2_dmacflt_do_add(struct otx2_nic *pf, const u8 *mac, in otx2_dmacflt_do_add() argument 17 mutex_lock(&pf->mbox.lock); in otx2_dmacflt_do_add() 19 req = otx2_mbox_alloc_msg_cgx_mac_addr_add(&pf->mbox); in otx2_dmacflt_do_add() 21 mutex_unlock(&pf->mbox.lock); in otx2_dmacflt_do_add() 26 err = otx2_sync_mbox_msg(&pf->mbox); in otx2_dmacflt_do_add() 30 otx2_mbox_get_rsp(&pf->mbox.mbox, 0, &req->hdr); in otx2_dmacflt_do_add() 34 mutex_unlock(&pf->mbox.lock); in otx2_dmacflt_do_add() 38 static int otx2_dmacflt_add_pfmac(struct otx2_nic *pf) in otx2_dmacflt_add_pfmac() argument 43 mutex_lock(&pf->mbox.lock); in otx2_dmacflt_add_pfmac() 45 req = otx2_mbox_alloc_msg_cgx_mac_addr_set(&pf->mbox); in otx2_dmacflt_add_pfmac() [all …]
|
/drivers/block/paride/ |
D | pf.c | 248 static int pf_identify(struct pf_unit *pf); 249 static void pf_lock(struct pf_unit *pf, int func); 250 static void pf_eject(struct pf_unit *pf); 290 struct pf_unit *pf; in pf_init_units() local 294 for (unit = 0, pf = units; unit < PF_UNITS; unit++, pf++) { in pf_init_units() 297 if (blk_mq_alloc_sq_tag_set(&pf->tag_set, &pf_mq_ops, 1, in pf_init_units() 301 disk = blk_mq_alloc_disk(&pf->tag_set, pf); in pf_init_units() 303 blk_mq_free_tag_set(&pf->tag_set); in pf_init_units() 307 INIT_LIST_HEAD(&pf->rq_list); in pf_init_units() 310 pf->disk = disk; in pf_init_units() [all …]
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_debugfs.c | 24 static struct i40e_vsi *i40e_dbg_find_vsi(struct i40e_pf *pf, int seid) in i40e_dbg_find_vsi() argument 29 dev_info(&pf->pdev->dev, "%d: bad seid\n", seid); in i40e_dbg_find_vsi() 31 for (i = 0; i < pf->num_alloc_vsi; i++) in i40e_dbg_find_vsi() 32 if (pf->vsi[i] && (pf->vsi[i]->seid == seid)) in i40e_dbg_find_vsi() 33 return pf->vsi[i]; in i40e_dbg_find_vsi() 43 static struct i40e_veb *i40e_dbg_find_veb(struct i40e_pf *pf, int seid) in i40e_dbg_find_veb() argument 48 if (pf->veb[i] && pf->veb[i]->seid == seid) in i40e_dbg_find_veb() 49 return pf->veb[i]; in i40e_dbg_find_veb() 72 struct i40e_pf *pf = filp->private_data; in i40e_dbg_command_read() local 89 pf->vsi[pf->lan_vsi]->netdev->name, in i40e_dbg_command_read() [all …]
|
D | i40e_dcb_nl.c | 38 struct i40e_pf *pf = i40e_netdev_to_pf(dev); in i40e_dcbnl_ieee_getets() local 41 if (!(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE)) in i40e_dcbnl_ieee_getets() 44 dcbxcfg = &pf->hw.local_dcbx_config; in i40e_dcbnl_ieee_getets() 76 struct i40e_pf *pf = i40e_netdev_to_pf(dev); in i40e_dcbnl_ieee_getpfc() local 78 struct i40e_hw *hw = &pf->hw; in i40e_dcbnl_ieee_getpfc() 81 if (!(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE)) in i40e_dcbnl_ieee_getpfc() 92 pfc->requests[i] = pf->stats.priority_xoff_tx[i]; in i40e_dcbnl_ieee_getpfc() 93 pfc->indications[i] = pf->stats.priority_xoff_rx[i]; in i40e_dcbnl_ieee_getpfc() 109 struct i40e_pf *pf = i40e_netdev_to_pf(netdev); in i40e_dcbnl_ieee_setets() local 113 if (!(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE) || in i40e_dcbnl_ieee_setets() [all …]
|
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_t 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 …]
|
D | i40e_main.c | 32 static void i40e_handle_reset_warning(struct i40e_pf *pf, bool lock_acquired); 35 static int i40e_setup_pf_switch(struct i40e_pf *pf, bool reinit, bool lock_acquired); 36 static int i40e_setup_misc_vector(struct i40e_pf *pf); 37 static void i40e_determine_queue_usage(struct i40e_pf *pf); 38 static int i40e_setup_pf_filter_control(struct i40e_pf *pf); 39 static void i40e_prep_for_reset(struct i40e_pf *pf); 40 static void i40e_reset_and_rebuild(struct i40e_pf *pf, bool reinit, 42 static int i40e_reset(struct i40e_pf *pf); 43 static void i40e_rebuild(struct i40e_pf *pf, bool reinit, bool lock_acquired); 44 static int i40e_setup_misc_vector_for_recovery_mode(struct i40e_pf *pf); [all …]
|
D | i40e_client.c | 85 struct i40e_pf *pf = vsi->back; in i40e_notify_client_of_vf_msg() local 86 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_vf_msg() 91 dev_dbg(&pf->pdev->dev, in i40e_notify_client_of_vf_msg() 96 dev_dbg(&pf->pdev->dev, "Client is not open, abort virtchnl_receive\n"); in i40e_notify_client_of_vf_msg() 111 struct i40e_pf *pf = vsi->back; in i40e_notify_client_of_l2_param_changes() local 112 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_l2_param_changes() 147 struct i40e_pf *pf = ldev->pf; in i40e_client_release_qvlist() local 155 wr32(&pf->hw, reg_idx, I40E_PFINT_LNKLSTN_FIRSTQ_INDX_MASK); in i40e_client_release_qvlist() 170 struct i40e_pf *pf = vsi->back; in i40e_notify_client_of_netdev_close() local 171 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_netdev_close() [all …]
|
D | i40e_virtchnl_pf.c | 18 static void i40e_vc_vf_broadcast(struct i40e_pf *pf, in i40e_vc_vf_broadcast() argument 23 struct i40e_hw *hw = &pf->hw; in i40e_vc_vf_broadcast() 24 struct i40e_vf *vf = pf->vf; in i40e_vc_vf_broadcast() 27 for (i = 0; i < pf->num_alloc_vfs; i++, vf++) { in i40e_vc_vf_broadcast() 111 struct i40e_pf *pf = vf->pf; in i40e_vc_notify_vf_link_state() local 112 struct i40e_hw *hw = &pf->hw; in i40e_vc_notify_vf_link_state() 113 struct i40e_link_status *ls = &pf->hw.phy.link_info; in i40e_vc_notify_vf_link_state() 131 void i40e_vc_notify_link_state(struct i40e_pf *pf) in i40e_vc_notify_link_state() argument 135 for (i = 0; i < pf->num_alloc_vfs; i++) in i40e_vc_notify_link_state() 136 i40e_vc_notify_vf_link_state(&pf->vf[i]); in i40e_vc_notify_link_state() [all …]
|
D | i40e_ethtool.c | 472 static void i40e_partition_setting_complaint(struct i40e_pf *pf) in i40e_partition_setting_complaint() argument 474 dev_info(&pf->pdev->dev, in i40e_partition_setting_complaint() 484 static void i40e_phy_type_to_ethtool(struct i40e_pf *pf, in i40e_phy_type_to_ethtool() argument 487 struct i40e_link_status *hw_link_info = &pf->hw.phy.link_info; in i40e_phy_type_to_ethtool() 488 u64 phy_types = pf->hw.phy.phy_types; in i40e_phy_type_to_ethtool() 499 if (pf->hw_features & I40E_HW_100M_SGMII_CAPABLE) { in i40e_phy_type_to_ethtool() 598 !(pf->hw_features & I40E_HW_HAVE_CRT_RETIMER)) { in i40e_phy_type_to_ethtool() 606 !(pf->hw_features & I40E_HW_HAVE_CRT_RETIMER)) { in i40e_phy_type_to_ethtool() 766 struct i40e_pf *pf) in i40e_get_settings_link_up() argument 914 if (pf->hw_features & I40E_HW_100M_SGMII_CAPABLE) { in i40e_get_settings_link_up() [all …]
|
/drivers/net/ethernet/intel/ice/ |
D | ice_main.c | 52 static void ice_rebuild(struct ice_pf *pf, enum ice_reset_req reset_type); 54 static void ice_vsi_release_all(struct ice_pf *pf); 82 static void ice_check_for_hang_subtask(struct ice_pf *pf) in ice_check_for_hang_subtask() argument 90 ice_for_each_vsi(pf, v) in ice_check_for_hang_subtask() 91 if (pf->vsi[v] && pf->vsi[v]->type == ICE_VSI_PF) { in ice_check_for_hang_subtask() 92 vsi = pf->vsi[v]; in ice_check_for_hang_subtask() 140 static int ice_init_mac_fltr(struct ice_pf *pf) in ice_init_mac_fltr() argument 146 vsi = ice_get_main_vsi(pf); in ice_init_mac_fltr() 267 struct ice_pf *pf = vsi->back; in ice_vsi_sync_fltr() local 268 struct ice_hw *hw = &pf->hw; in ice_vsi_sync_fltr() [all …]
|
D | ice_idc.c | 16 static struct iidc_auxiliary_drv *ice_get_auxiliary_drv(struct ice_pf *pf) in ice_get_auxiliary_drv() argument 20 adev = pf->adev; in ice_get_auxiliary_drv() 33 void ice_send_event_to_aux(struct ice_pf *pf, struct iidc_event *event) in ice_send_event_to_aux() argument 40 mutex_lock(&pf->adev_mutex); in ice_send_event_to_aux() 41 if (!pf->adev) in ice_send_event_to_aux() 44 device_lock(&pf->adev->dev); in ice_send_event_to_aux() 45 iadrv = ice_get_auxiliary_drv(pf); in ice_send_event_to_aux() 47 iadrv->event_handler(pf, event); in ice_send_event_to_aux() 48 device_unlock(&pf->adev->dev); in ice_send_event_to_aux() 50 mutex_unlock(&pf->adev_mutex); in ice_send_event_to_aux() [all …]
|
D | ice_ptp.c | 14 static void ice_set_tx_tstamp(struct ice_pf *pf, bool on) in ice_set_tx_tstamp() argument 20 vsi = ice_get_main_vsi(pf); in ice_set_tx_tstamp() 32 val = rd32(&pf->hw, PFINT_OICR_ENA); in ice_set_tx_tstamp() 37 wr32(&pf->hw, PFINT_OICR_ENA, val); in ice_set_tx_tstamp() 45 static void ice_set_rx_tstamp(struct ice_pf *pf, bool on) in ice_set_rx_tstamp() argument 50 vsi = ice_get_main_vsi(pf); in ice_set_rx_tstamp() 70 static void ice_ptp_cfg_timestamp(struct ice_pf *pf, bool ena) in ice_ptp_cfg_timestamp() argument 72 ice_set_tx_tstamp(pf, ena); in ice_ptp_cfg_timestamp() 73 ice_set_rx_tstamp(pf, ena); in ice_ptp_cfg_timestamp() 76 pf->ptp.tstamp_config.rx_filter = HWTSTAMP_FILTER_ALL; in ice_ptp_cfg_timestamp() [all …]
|
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 new_cfg = &pf->hw.port_info->qos_cfg.desired_dcbx_cfg; in ice_dcbnl_setets() 75 mutex_lock(&pf->tc_mutex); in ice_dcbnl_setets() [all …]
|
D | ice_devlink.c | 28 static void ice_info_get_dsn(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_get_dsn() argument 33 put_unaligned_be64(pci_get_dsn(pf->pdev), dsn); in ice_info_get_dsn() 38 static int ice_info_pba(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_pba() argument 40 struct ice_hw *hw = &pf->hw; in ice_info_pba() 46 dev_dbg(ice_pf_to_dev(pf), "Failed to read Product Board Assembly string, status %s\n", in ice_info_pba() 52 static int ice_info_fw_mgmt(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_fw_mgmt() argument 54 struct ice_hw *hw = &pf->hw; in ice_info_fw_mgmt() 62 static int ice_info_fw_api(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_fw_api() argument 64 struct ice_hw *hw = &pf->hw; in ice_info_fw_api() 72 static int ice_info_fw_build(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_fw_build() argument [all …]
|
D | ice_dcb_lib.c | 15 struct ice_pf *pf = vsi->back; in ice_vsi_cfg_netdev_tc() local 31 dcbcfg = &pf->hw.port_info->qos_cfg.local_dcbx_cfg; in ice_vsi_cfg_netdev_tc() 72 bool ice_is_pfc_causing_hung_q(struct ice_pf *pf, unsigned int txqueue) in ice_is_pfc_causing_hung_q() argument 79 vsi = ice_get_main_vsi(pf); in ice_is_pfc_causing_hung_q() 97 up2tc = rd32(&pf->hw, PRTDCB_TUP2TC); in ice_is_pfc_causing_hung_q() 111 ref_prio_xoff[i] = pf->stats.priority_xoff_rx[i]; in ice_is_pfc_causing_hung_q() 113 ice_update_dcb_stats(pf); in ice_is_pfc_causing_hung_q() 117 if (pf->stats.priority_xoff_rx[i] > ref_prio_xoff[i]) in ice_is_pfc_causing_hung_q() 234 int ice_dcb_bwchk(struct ice_pf *pf, struct ice_dcbx_cfg *dcbcfg) in ice_dcb_bwchk() argument 259 dev_err(ice_pf_to_dev(pf), "Invalid config, total bandwidth must equal 100\n"); in ice_dcb_bwchk() [all …]
|
D | ice_virtchnl_pf.c | 256 return vf->pf->vsi[vf->lan_vsi_idx]; in ice_get_vf_vsi() 264 static int ice_validate_vf_id(struct ice_pf *pf, u16 vf_id) in ice_validate_vf_id() argument 267 if (vf_id >= pf->num_alloc_vfs) { in ice_validate_vf_id() 268 dev_err(ice_pf_to_dev(pf), "Invalid VF ID: %u\n", vf_id); in ice_validate_vf_id() 279 static int ice_check_vf_init(struct ice_pf *pf, struct ice_vf *vf) in ice_check_vf_init() argument 282 dev_err(ice_pf_to_dev(pf), "VF ID: %u in reset. Try again.\n", in ice_check_vf_init() 329 ice_vc_vf_broadcast(struct ice_pf *pf, enum virtchnl_ops v_opcode, in ice_vc_vf_broadcast() argument 332 struct ice_hw *hw = &pf->hw; in ice_vc_vf_broadcast() 335 ice_for_each_vf(pf, i) { in ice_vc_vf_broadcast() 336 struct ice_vf *vf = &pf->vf[i]; in ice_vc_vf_broadcast() [all …]
|
D | ice_lag.c | 24 struct ice_pf *pf = lag->pf; in ice_lag_set_primary() local 26 if (!pf) in ice_lag_set_primary() 30 dev_warn(ice_pf_to_dev(pf), "%s: Attempt to be Primary, but incompatible state.\n", in ice_lag_set_primary() 44 struct ice_pf *pf = lag->pf; in ice_lag_set_backup() local 46 if (!pf) in ice_lag_set_backup() 50 dev_dbg(ice_pf_to_dev(pf), "%s: Attempt to be Backup, but incompatible state\n", in ice_lag_set_backup() 65 struct device *dev = &lag->pf->pdev->dev; in ice_display_lag_info() 144 struct ice_pf *pf = lag->pf; in ice_lag_link() local 148 dev_warn(ice_pf_to_dev(pf), "%s Already part of a bond\n", in ice_lag_link() 161 ice_clear_sriov_cap(pf); in ice_lag_link() [all …]
|
D | ice_dcb_lib.h | 17 void ice_dcb_rebuild(struct ice_pf *pf); 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_dcb_process_lldp_set_mib_change(struct ice_pf *pf, 57 static inline bool ice_is_dcb_active(struct ice_pf *pf) in ice_is_dcb_active() argument 59 return (test_bit(ICE_FLAG_FW_LLDP_AGENT, pf->flags) || in ice_is_dcb_active() [all …]
|
D | ice_lib.c | 70 struct ice_pf *pf = vsi->back; in ice_vsi_alloc_arrays() local 73 dev = ice_pf_to_dev(pf); in ice_vsi_alloc_arrays() 167 struct ice_pf *pf = vsi->back; in ice_vsi_set_num_qs() local 181 vsi->alloc_txq = min3(pf->num_lan_msix, in ice_vsi_set_num_qs() 182 ice_get_avail_txq_count(pf), in ice_vsi_set_num_qs() 186 pf->num_lan_tx = vsi->alloc_txq; in ice_vsi_set_num_qs() 189 if (!test_bit(ICE_FLAG_RSS_ENA, pf->flags)) { in ice_vsi_set_num_qs() 196 vsi->alloc_rxq = min3(pf->num_lan_msix, in ice_vsi_set_num_qs() 197 ice_get_avail_rxq_count(pf), in ice_vsi_set_num_qs() 202 pf->num_lan_rx = vsi->alloc_rxq; in ice_vsi_set_num_qs() [all …]
|
/drivers/net/ethernet/freescale/enetc/ |
D | enetc_pf.c | 57 static void enetc_enable_si_vlan_promisc(struct enetc_pf *pf, int si_idx) in enetc_enable_si_vlan_promisc() argument 59 pf->vlan_promisc_simap |= BIT(si_idx); in enetc_enable_si_vlan_promisc() 60 enetc_set_vlan_promisc(&pf->si->hw, pf->vlan_promisc_simap); in enetc_enable_si_vlan_promisc() 63 static void enetc_disable_si_vlan_promisc(struct enetc_pf *pf, int si_idx) in enetc_disable_si_vlan_promisc() argument 65 pf->vlan_promisc_simap &= ~BIT(si_idx); in enetc_disable_si_vlan_promisc() 66 enetc_set_vlan_promisc(&pf->si->hw, pf->vlan_promisc_simap); in enetc_disable_si_vlan_promisc() 152 static void enetc_sync_mac_filters(struct enetc_pf *pf) in enetc_sync_mac_filters() argument 154 struct enetc_mac_filter *f = pf->mac_filter; in enetc_sync_mac_filters() 155 struct enetc_si *si = pf->si; in enetc_sync_mac_filters() 199 struct enetc_pf *pf = enetc_si_priv(priv->si); in enetc_pf_set_rx_mode() local [all …]
|