Home
last modified time | relevance | path

Searched refs:vf_id (Results 1 – 25 of 88) sorted by relevance

1234

/drivers/net/ethernet/intel/ice/
Dice_virtchnl_pf.c63 ice_aq_send_msg_to_vf(hw, vf->vf_id, v_opcode, v_retval, msg, in ice_vc_vf_broadcast()
141 ice_aq_send_msg_to_vf(hw, vf->vf_id, VIRTCHNL_OP_EVENT, in ice_vc_notify_vf_link_state()
193 wr32(hw, VPINT_ALLOC(vf->vf_id), 0); in ice_dis_vf_mappings()
194 wr32(hw, VPINT_ALLOC_PCI(vf->vf_id), 0); in ice_dis_vf_mappings()
209 wr32(hw, VPLAN_TX_QBASE(vf->vf_id), 0); in ice_dis_vf_mappings()
215 wr32(hw, VPLAN_RX_QBASE(vf->vf_id), 0); in ice_dis_vf_mappings()
281 ice_vsi_stop_lan_tx_rings(vsi, ICE_NO_RESET, vf->vf_id); in ice_dis_vf_qs()
339 int vf_id; in ice_free_vfs() local
344 for (vf_id = 0; vf_id < tmp; vf_id++) { in ice_free_vfs()
347 reg_idx = (hw->func_caps.vf_base_id + vf_id) / 32; in ice_free_vfs()
[all …]
Dice_virtchnl_pf.h63 s16 vf_id; /* VF ID in the PF space */ member
101 int ice_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac);
103 ice_get_vf_cfg(struct net_device *netdev, int vf_id, struct ifla_vf_info *ivi);
112 ice_set_vf_port_vlan(struct net_device *netdev, int vf_id, u16 vlan_id, u8 qos,
115 int ice_set_vf_trust(struct net_device *netdev, int vf_id, bool trusted);
117 int ice_set_vf_link_state(struct net_device *netdev, int vf_id, int link_state);
119 int ice_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool ena);
148 int __always_unused vf_id, u8 __always_unused *mac) in ice_set_vf_mac() argument
155 int __always_unused vf_id, in ice_get_vf_cfg() argument
163 int __always_unused vf_id, bool __always_unused trusted) in ice_set_vf_trust() argument
[all …]
Dice_lib.c147 tlan_ctx->vmvf_num = hw->func_caps.vf_base_id + vsi->vf_id; in ice_setup_tx_ctx()
336 static void ice_vsi_set_num_qs(struct ice_vsi *vsi, u16 vf_id) in ice_vsi_set_num_qs() argument
342 vsi->vf_id = vf_id; in ice_vsi_set_num_qs()
363 vf = &pf->vf[vsi->vf_id]; in ice_vsi_set_num_qs()
429 ctxt->vf_num = vsi->vf_id; in ice_vsi_delete()
540 ice_vsi_alloc(struct ice_pf *pf, enum ice_vsi_type type, u16 vf_id) in ice_vsi_alloc() argument
567 ice_vsi_set_num_qs(vsi, vf_id); in ice_vsi_alloc()
1050 ctxt->vf_num = vsi->vf_id + hw->func_caps.vf_base_id; in ice_vsi_init()
1069 if (vsi->type == ICE_VSI_VF && pf->vf[vsi->vf_id].spoofchk) { in ice_vsi_init()
2389 struct ice_vf *vf = &vsi->back->vf[vsi->vf_id]; in ice_vsi_set_q_vectors_reg_idx()
[all …]
/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.c28 int abs_vf_id = vf->vf_id + (int)hw->func_caps.vf_base_id; in i40e_vc_vf_broadcast()
54 int abs_vf_id = vf->vf_id + (int)hw->func_caps.vf_base_id; in i40e_vc_notify_vf_link_state()
120 if (!vf || vf->vf_id >= vf->pf->num_alloc_vfs) in i40e_vc_notify_vf_reset()
128 abs_vf_id = vf->vf_id + (int)vf->pf->hw.func_caps.vf_base_id; in i40e_vc_notify_vf_reset()
163 vf->vf_id); in i40e_vc_disable_vf()
178 return (vsi && (vsi->vf_id == vf->vf_id)); in i40e_vc_isvalid_vsi_id()
298 reg_idx = I40E_VPINT_LNKLST0(vf->vf_id); in i40e_config_irq_link_list()
301 ((pf->hw.func_caps.num_msix_vectors_vf - 1) * vf->vf_id) + in i40e_config_irq_link_list()
414 reg_idx = (msix_vf - 1) * vf->vf_id + qv_info->ceq_idx; in i40e_release_iwarp_qvlist()
421 reg_idx = ((msix_vf - 1) * vf->vf_id) + (v_idx - 1); in i40e_release_iwarp_qvlist()
[all …]
Di40e_virtchnl_pf.h69 s16 vf_id; member
121 int i40e_vc_process_vf_msg(struct i40e_pf *pf, s16 vf_id, u32 v_opcode,
129 int i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac);
130 int i40e_ndo_set_vf_port_vlan(struct net_device *netdev, int vf_id,
132 int i40e_ndo_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate,
134 int i40e_ndo_set_vf_trust(struct net_device *netdev, int vf_id, bool setting);
136 int vf_id, struct ifla_vf_info *ivi);
137 int i40e_ndo_set_vf_link_state(struct net_device *netdev, int vf_id, int link);
138 int i40e_ndo_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool enable);
Di40e_client.h120 u32 vf_id, u8 *msg, u16 len);
133 bool is_vf, u32 vf_id,
156 struct i40e_client *client, u32 vf_id,
161 struct i40e_client *client, u32 vf_id);
169 struct i40e_client *client, u32 vf_id);
Di40e_client.c18 u32 vf_id, u8 *msg, u16 len);
30 bool is_vf, u32 vf_id,
84 i40e_notify_client_of_vf_msg(struct i40e_vsi *vsi, u32 vf_id, u8 *msg, u16 len) in i40e_notify_client_of_vf_msg() argument
101 vf_id, msg, len); in i40e_notify_client_of_vf_msg()
193 void i40e_notify_client_of_vf_reset(struct i40e_pf *pf, u32 vf_id) in i40e_notify_client_of_vf_reset() argument
208 cdev->client->ops->vf_reset(&cdev->lan_info, cdev->client, vf_id); in i40e_notify_client_of_vf_reset()
245 int i40e_vf_client_capable(struct i40e_pf *pf, u32 vf_id) in i40e_vf_client_capable() argument
262 vf_id); in i40e_vf_client_capable()
550 u32 vf_id, u8 *msg, u16 len) in i40e_client_virtchnl_send() argument
556 err = i40e_aq_send_msg_to_vf(hw, vf_id, VIRTCHNL_OP_IWARP, in i40e_client_virtchnl_send()
[all …]
/drivers/infiniband/hw/i40iw/
Di40iw_virtchnl.c202 u32 vf_id, in vchnl_pf_send_get_ver_resp() argument
214 ret_code = dev->vchnl_if.vchnl_send(dev, vf_id, resp_buffer, sizeof(resp_buffer)); in vchnl_pf_send_get_ver_resp()
227 u32 vf_id, in vchnl_pf_send_get_hmc_fcn_resp() argument
240 ret_code = dev->vchnl_if.vchnl_send(dev, vf_id, resp_buffer, sizeof(resp_buffer)); in vchnl_pf_send_get_hmc_fcn_resp()
255 u32 vf_id, in vchnl_pf_send_get_pe_stats_resp() argument
268 ret_code = dev->vchnl_if.vchnl_send(dev, vf_id, resp_buffer, sizeof(resp_buffer)); in vchnl_pf_send_get_pe_stats_resp()
280 static void vchnl_pf_send_error_resp(struct i40iw_sc_dev *dev, u32 vf_id, in vchnl_pf_send_error_resp() argument
292 ret_code = dev->vchnl_if.vchnl_send(dev, vf_id, resp_buffer, sizeof(resp_buffer)); in vchnl_pf_send_error_resp()
314 vchnl_pf_send_error_resp(dev, vf_dev->vf_id, &vf_dev->vf_msg_buffer.vchnl_msg, in pf_cqp_get_hmc_fcn_callback()
326 vf_dev->vf_id, in pf_cqp_get_hmc_fcn_callback()
[all …]
Di40iw_virtchnl.h86 u32 vf_id,
91 u32 vf_id,
99 u32 vf_id; member
Di40iw_main.c88 u32 vf_id, u8 *msg, u16 len);
1819 static void i40iw_vf_reset(struct i40e_info *ldev, struct i40e_client *client, u32 vf_id) in i40iw_vf_reset() argument
1838 if (!dev->vf_dev[i] || (dev->vf_dev[i]->vf_id != vf_id)) in i40iw_vf_reset()
1848 hmc_fcn_info.vf_id = vf_id; in i40iw_vf_reset()
1896 u32 vf_id) in i40iw_vf_capable() argument
1909 if (!dev->vf_dev[i] || (dev->vf_dev[i]->vf_id == vf_id)) in i40iw_vf_capable()
1929 u32 vf_id, in i40iw_virtchnl_receive() argument
1949 ret_code = dev->vchnl_if.vchnl_recv(dev, vf_id, msg, len); in i40iw_virtchnl_receive()
2002 u32 vf_id, in i40iw_virtchnl_send() argument
2016 return ldev->ops->virtchnl_send(ldev, &i40iw_client, vf_id, msg, len); in i40iw_virtchnl_send()
/drivers/scsi/bfa/
Dbfad_bsg.h176 u16 vf_id; member
292 u16 vf_id; member
300 u16 vf_id; member
308 u16 vf_id; member
316 u16 vf_id; member
326 u16 vf_id; member
337 u16 vf_id; member
346 u16 vf_id; member
358 u16 vf_id; member
366 u16 vf_id; member
[all …]
Dbfa_fcs.h186 u16 vf_id; /* virtual fabric ID */ member
290 u16 vf_id, wwn_t lpwwn);
316 u16 vf_id, struct bfa_fcs_vport_s *vport);
368 struct bfa_fcs_s *fcs, u16 vf_id,
372 struct bfa_fcs_s *fcs, u16 vf_id,
382 u16 vf_id, wwn_t vpwwn);
797 bfa_fcs_vf_t *bfa_fcs_vf_lookup(struct bfa_fcs_s *fcs, u16 vf_id);
Dbfa_fcs.c1124 bfa_trc(fabric->fcs, fabric->vf_id); in bfa_fcs_fabric_addvport()
1343 bfa_fcxp_send(fcxp, NULL, fabric->vf_id, fabric->lps->bfa_tag, in bfa_fcs_fabric_send_flogi_acc()
1437 bfa_fcs_vf_lookup(struct bfa_fcs_s *fcs, u16 vf_id) in bfa_fcs_vf_lookup() argument
1439 bfa_trc(fcs, vf_id); in bfa_fcs_vf_lookup()
1440 if (vf_id == FC_VF_ID_NULL) in bfa_fcs_vf_lookup()
1468 bfa_trc(fcs, vf->vf_id); in bfa_fcs_vf_get_ports()
1537 if (fcs->port_vfid == vft->vf_id) in bfa_fcs_uf_recv()
1540 fabric = bfa_fcs_vf_lookup(fcs, (u16) vft->vf_id); in bfa_fcs_uf_recv()
1558 bfa_trc(fcs, vft->vf_id); in bfa_fcs_uf_recv()
Dbfa_fcs_lport.c363 aen_entry->aen_data.lport.vf_id = port->fabric->vf_id; in bfa_fcs_lport_aen_post()
397 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_send_ls_rjt()
431 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_send_fcgs_rjt()
576 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_echo()
633 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_rnid()
741 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_abts_acc()
1075 u16 vf_id, struct bfa_fcs_vport_s *vport) in bfa_fcs_lport_attach() argument
1078 lport->fabric = bfa_fcs_vf_lookup(fcs, vf_id); in bfa_fcs_lport_attach()
1891 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_fdmi_send_rhba()
2224 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_fdmi_send_rprt()
[all …]
Dbfad_bsg.c454 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_attr()
478 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_stats()
505 iocmd->vf_id, iocmd->vpwwn); in bfad_iocmd_lport_reset_stats()
536 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_iostats()
576 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_rports()
603 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_attr()
642 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_addr()
690 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_stats()
732 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_clr_stats()
767 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_set_speed()
[all …]
Dbfa_fcs_rport.c1718 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_plogi()
1840 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_plogiacc()
1870 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_adisc()
1940 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_nsdisc()
2091 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_logo()
2125 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_logo_acc()
2195 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_process_prli()
2232 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_process_rpsc()
2267 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, in bfa_fcs_rport_process_adisc()
2287 rport_info.vf_id = port->fabric->vf_id; in bfa_fcs_rport_hal_online()
[all …]
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c49 static int bnxt_vf_ndo_prep(struct bnxt *bp, int vf_id) in bnxt_vf_ndo_prep() argument
59 if (vf_id >= bp->pf.active_vfs) { in bnxt_vf_ndo_prep()
60 netdev_err(bp->dev, "Invalid VF id %d\n", vf_id); in bnxt_vf_ndo_prep()
66 int bnxt_set_vf_spoofchk(struct net_device *dev, int vf_id, bool setting) in bnxt_set_vf_spoofchk() argument
78 rc = bnxt_vf_ndo_prep(bp, vf_id); in bnxt_set_vf_spoofchk()
82 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_spoofchk()
156 int bnxt_set_vf_trust(struct net_device *dev, int vf_id, bool trusted) in bnxt_set_vf_trust() argument
161 if (bnxt_vf_ndo_prep(bp, vf_id)) in bnxt_set_vf_trust()
164 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_trust()
174 int bnxt_get_vf_config(struct net_device *dev, int vf_id, in bnxt_get_vf_config() argument
[all …]
/drivers/net/ethernet/cavium/thunder/
Dnic.h285 u8 vf_id; member
427 u8 vf_id; member
463 u8 vf_id; member
470 u8 vf_id; member
477 u8 vf_id; member
485 u8 vf_id; member
492 u8 vf_id; member
502 u8 vf_id; member
520 u8 vf_id; member
526 u8 vf_id; member
[all …]
Dnic_main.c165 mbx.nic_cfg.vf_id = vf; in nic_mbx_send_ready()
236 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats()
237 lmac = NIC_GET_LMAC_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats()
240 mbx.bgx_stats.vf_id = bgx->vf_id; in nic_get_bgx_stats()
249 nic_send_msg_to_vf(nic, bgx->vf_id, &mbx); in nic_get_bgx_stats()
480 vnic = cfg->vf_id; in nic_config_cpi()
504 qset = cfg->vf_id; in nic_config_cpi()
545 nic->cpi_base[cfg->vf_id] = cpi_base; in nic_config_cpi()
546 nic->rssi_base[cfg->vf_id] = rssi_base; in nic_config_cpi()
571 rssi_base = nic->rssi_base[cfg->vf_id] + cfg->tbl_offset; in nic_config_rss()
[all …]
Dnicvf_main.c145 (mbx->msg.msg & 0xFF), nic->vf_id); in nicvf_send_msg_to_pf()
156 (mbx->msg.msg & 0xFF), nic->vf_id); in nicvf_send_msg_to_pf()
221 nic->vf_id = mbx.nic_cfg.vf_id & 0x7F; in nicvf_handle_mbx_intr()
308 mbx.mac.vf_id = nic->vf_id; in nicvf_hw_set_mac_addr()
319 mbx.cpi_cfg.vf_id = nic->vf_id; in nicvf_config_cpi()
331 mbx.rss_size.vf_id = nic->vf_id; in nicvf_get_rss_size()
342 mbx.rss_cfg.vf_id = nic->vf_id; in nicvf_config_rss()
415 mbx.sqs_alloc.vf_id = nic->vf_id; in nicvf_request_sqs()
437 mbx.nicvf.vf_id = nic->vf_id; in nicvf_request_sqs()
1435 mbx.frs.vf_id = nic->vf_id; in nicvf_update_hw_max_frs()
[all …]
Dthunder_bgx.c258 static void bgx_lmac_remove_filters(struct lmac *lmac, u8 vf_id) in bgx_lmac_remove_filters() argument
271 lmac->dmacs[i].vf_map &= ~BIT_ULL(vf_id); in bgx_lmac_remove_filters()
280 static int bgx_lmac_save_filter(struct lmac *lmac, u64 dmac, u8 vf_id) in bgx_lmac_save_filter() argument
296 lmac->dmacs[i].vf_map |= BIT_ULL(vf_id); in bgx_lmac_save_filter()
306 lmac->dmacs[lmac->dmacs_cfg].vf_map = BIT_ULL(vf_id); in bgx_lmac_save_filter()
332 u64 cam_dmac, u8 vf_id) in bgx_set_dmac_cam_filter() argument
350 bgx_lmac_save_filter(lmac, cam_dmac, vf_id); in bgx_set_dmac_cam_filter()
388 void bgx_reset_xcast_mode(int node, int bgx_idx, int lmacid, u8 vf_id) in bgx_reset_xcast_mode() argument
395 bgx_lmac_remove_filters(&bgx->lmac[lmacid], vf_id); in bgx_reset_xcast_mode()
/drivers/net/ethernet/freescale/enetc/
Denetc_pf.c578 int vf_id) in enetc_msg_pf_set_vf_primary_mac_addr() argument
580 struct enetc_vf_state *vf_state = &pf->vf_state[vf_id]; in enetc_msg_pf_set_vf_primary_mac_addr()
581 struct enetc_msg_swbd *msg = &pf->rxmsg[vf_id]; in enetc_msg_pf_set_vf_primary_mac_addr()
595 vf_id); in enetc_msg_pf_set_vf_primary_mac_addr()
597 enetc_pf_set_primary_mac_addr(&pf->si->hw, vf_id + 1, addr); in enetc_msg_pf_set_vf_primary_mac_addr()
602 void enetc_msg_handle_rxmsg(struct enetc_pf *pf, int vf_id, u16 *status) in enetc_msg_handle_rxmsg() argument
604 struct enetc_msg_swbd *msg = &pf->rxmsg[vf_id]; in enetc_msg_handle_rxmsg()
615 *status = enetc_msg_pf_set_vf_primary_mac_addr(pf, vf_id); in enetc_msg_handle_rxmsg()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_vfpf.c194 static int bnx2x_get_vf_id(struct bnx2x *bp, u32 *vf_id) in bnx2x_get_vf_id() argument
218 *vf_id = (me_reg & ME_REG_VF_NUM_MASK) >> ME_REG_VF_NUM_SHIFT; in bnx2x_get_vf_id()
230 u32 vf_id; in bnx2x_vfpf_acquire() local
236 if (bnx2x_get_vf_id(bp, &vf_id)) { in bnx2x_vfpf_acquire()
241 req->vfdev_info.vf_id = vf_id; in bnx2x_vfpf_acquire()
400 u32 rc, vf_id; in bnx2x_vfpf_release() local
405 if (bnx2x_get_vf_id(bp, &vf_id)) { in bnx2x_vfpf_release()
410 req->vf_id = vf_id; in bnx2x_vfpf_release()
494 u32 vf_id; in bnx2x_vfpf_close_vf() local
499 if (bnx2x_get_vf_id(bp, &vf_id)) in bnx2x_vfpf_close_vf()
[all …]
Dbnx2x_vfpf.h127 u8 vf_id; /* ME register value */ member
355 u16 vf_id; /* for debug */ member
362 u16 vf_id; member
/drivers/net/ethernet/hisilicon/hns/
Dhns_ae_adapt.c101 for (ae_handle->vf_id = 0; in hns_ae_get_handle()
102 ae_handle->vf_id < vfnum_per_port; ae_handle->vf_id++) { in hns_ae_get_handle()
107 if (ae_handle->vf_id >= vfnum_per_port) { in hns_ae_get_handle()
222 ret = hns_mac_change_vf_addr(mac_cb, handle->vf_id, p); in hns_ae_set_mac_address()
240 return hns_mac_add_uc_addr(mac_cb, handle->vf_id, addr); in hns_ae_add_uc_address()
251 return hns_mac_rm_uc_addr(mac_cb, handle->vf_id, addr); in hns_ae_rm_uc_address()
274 ret = hns_mac_get_inner_port_num(mac_cb, handle->vf_id, &port_num); in hns_ae_set_multicast_one()
294 return hns_mac_clr_multicast(mac_cb, handle->vf_id); in hns_ae_clr_multicast()

1234