Home
last modified time | relevance | path

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

1234

/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.h67 s16 vf_id; member
118 int i40e_vc_process_vf_msg(struct i40e_pf *pf, s16 vf_id, u32 v_opcode,
126 int i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac);
127 int i40e_ndo_set_vf_port_vlan(struct net_device *netdev, int vf_id,
129 int i40e_ndo_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate,
131 int i40e_ndo_set_vf_trust(struct net_device *netdev, int vf_id, bool setting);
133 int vf_id, struct ifla_vf_info *ivi);
134 int i40e_ndo_set_vf_link_state(struct net_device *netdev, int vf_id, int link);
135 int i40e_ndo_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool enable);
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()
114 if (!vf || vf->vf_id >= vf->pf->num_alloc_vfs) in i40e_vc_notify_vf_reset()
122 abs_vf_id = vf->vf_id + (int)vf->pf->hw.func_caps.vf_base_id; in i40e_vc_notify_vf_reset()
157 vf->vf_id); in i40e_vc_disable_vf()
172 return (vsi && (vsi->vf_id == vf->vf_id)); in i40e_vc_isvalid_vsi_id()
292 reg_idx = I40E_VPINT_LNKLST0(vf->vf_id); in i40e_config_irq_link_list()
295 ((pf->hw.func_caps.num_msix_vectors_vf - 1) * vf->vf_id) + in i40e_config_irq_link_list()
408 reg_idx = (msix_vf - 1) * vf->vf_id + qv_info->ceq_idx; in i40e_release_iwarp_qvlist()
415 reg_idx = ((msix_vf - 1) * vf->vf_id) + (v_idx - 1); in i40e_release_iwarp_qvlist()
[all …]
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 …]
/Linux-v4.19/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);
1814 static void i40iw_vf_reset(struct i40e_info *ldev, struct i40e_client *client, u32 vf_id) in i40iw_vf_reset() argument
1833 if (!dev->vf_dev[i] || (dev->vf_dev[i]->vf_id != vf_id)) in i40iw_vf_reset()
1843 hmc_fcn_info.vf_id = vf_id; in i40iw_vf_reset()
1891 u32 vf_id) in i40iw_vf_capable() argument
1904 if (!dev->vf_dev[i] || (dev->vf_dev[i]->vf_id == vf_id)) in i40iw_vf_capable()
1924 u32 vf_id, in i40iw_virtchnl_receive() argument
1944 ret_code = dev->vchnl_if.vchnl_recv(dev, vf_id, msg, len); in i40iw_virtchnl_receive()
1997 u32 vf_id, in i40iw_virtchnl_send() argument
2011 return ldev->ops->virtchnl_send(ldev, &i40iw_client, vf_id, msg, len); in i40iw_virtchnl_send()
/Linux-v4.19/drivers/scsi/bfa/
Dbfad_bsg.h184 u16 vf_id; member
300 u16 vf_id; member
308 u16 vf_id; member
316 u16 vf_id; member
324 u16 vf_id; member
334 u16 vf_id; member
345 u16 vf_id; member
354 u16 vf_id; member
366 u16 vf_id; member
374 u16 vf_id; member
[all …]
Dbfa_fcs.h194 u16 vf_id; /* virtual fabric ID */ member
298 u16 vf_id, wwn_t lpwwn);
324 u16 vf_id, struct bfa_fcs_vport_s *vport);
376 struct bfa_fcs_s *fcs, u16 vf_id,
380 struct bfa_fcs_s *fcs, u16 vf_id,
390 u16 vf_id, wwn_t vpwwn);
805 bfa_fcs_vf_t *bfa_fcs_vf_lookup(struct bfa_fcs_s *fcs, u16 vf_id);
Dbfa_fcs.c1132 bfa_trc(fabric->fcs, fabric->vf_id); in bfa_fcs_fabric_addvport()
1351 bfa_fcxp_send(fcxp, NULL, fabric->vf_id, fabric->lps->bfa_tag, in bfa_fcs_fabric_send_flogi_acc()
1445 bfa_fcs_vf_lookup(struct bfa_fcs_s *fcs, u16 vf_id) in bfa_fcs_vf_lookup() argument
1447 bfa_trc(fcs, vf_id); in bfa_fcs_vf_lookup()
1448 if (vf_id == FC_VF_ID_NULL) in bfa_fcs_vf_lookup()
1476 bfa_trc(fcs, vf->vf_id); in bfa_fcs_vf_get_ports()
1545 if (fcs->port_vfid == vft->vf_id) in bfa_fcs_uf_recv()
1548 fabric = bfa_fcs_vf_lookup(fcs, (u16) vft->vf_id); in bfa_fcs_uf_recv()
1566 bfa_trc(fcs, vft->vf_id); in bfa_fcs_uf_recv()
Dbfa_fcs_lport.c371 aen_entry->aen_data.lport.vf_id = port->fabric->vf_id; in bfa_fcs_lport_aen_post()
405 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_send_ls_rjt()
439 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_send_fcgs_rjt()
584 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_echo()
641 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_rnid()
749 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_abts_acc()
1083 u16 vf_id, struct bfa_fcs_vport_s *vport) in bfa_fcs_lport_attach() argument
1086 lport->fabric = bfa_fcs_vf_lookup(fcs, vf_id); in bfa_fcs_lport_attach()
1899 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_fdmi_send_rhba()
2232 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_fdmi_send_rprt()
[all …]
Dbfad_bsg.c462 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_attr()
486 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_stats()
513 iocmd->vf_id, iocmd->vpwwn); in bfad_iocmd_lport_reset_stats()
544 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_iostats()
584 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_rports()
611 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_attr()
650 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_addr()
698 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_stats()
740 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_clr_stats()
775 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_set_speed()
[all …]
Dbfad_drv.h297 bfa_status_t bfad_vport_create(struct bfad_s *bfad, u16 vf_id,
300 bfa_status_t bfad_vf_create(struct bfad_s *bfad, u16 vf_id,
Dbfa_fcs_rport.c1731 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_plogi()
1853 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_plogiacc()
1883 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_adisc()
1953 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_nsdisc()
2104 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_logo()
2138 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_logo_acc()
2208 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_process_prli()
2245 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_process_rpsc()
2280 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, in bfa_fcs_rport_process_adisc()
2300 rport_info.vf_id = port->fabric->vf_id; in bfa_fcs_rport_hal_online()
[all …]
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c63 static int bnxt_vf_ndo_prep(struct bnxt *bp, int vf_id) in bnxt_vf_ndo_prep() argument
73 if (vf_id >= bp->pf.active_vfs) { in bnxt_vf_ndo_prep()
74 netdev_err(bp->dev, "Invalid VF id %d\n", vf_id); in bnxt_vf_ndo_prep()
80 int bnxt_set_vf_spoofchk(struct net_device *dev, int vf_id, bool setting) in bnxt_set_vf_spoofchk() argument
92 rc = bnxt_vf_ndo_prep(bp, vf_id); in bnxt_set_vf_spoofchk()
96 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_spoofchk()
124 int bnxt_set_vf_trust(struct net_device *dev, int vf_id, bool trusted) in bnxt_set_vf_trust() argument
129 if (bnxt_vf_ndo_prep(bp, vf_id)) in bnxt_set_vf_trust()
132 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_trust()
141 int bnxt_get_vf_config(struct net_device *dev, int vf_id, in bnxt_get_vf_config() argument
[all …]
Dbnxt_sriov.h37 int bnxt_set_vf_trust(struct net_device *dev, int vf_id, bool trust);
/Linux-v4.19/drivers/net/ethernet/cavium/thunder/
Dnic.h288 u8 vf_id; member
426 u8 vf_id; member
462 u8 vf_id; member
469 u8 vf_id; member
476 u8 vf_id; member
484 u8 vf_id; member
491 u8 vf_id; member
501 u8 vf_id; member
519 u8 vf_id; member
525 u8 vf_id; member
[all …]
Dnic_main.c174 mbx.nic_cfg.vf_id = vf; in nic_mbx_send_ready()
245 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats()
246 lmac = NIC_GET_LMAC_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats()
249 mbx.bgx_stats.vf_id = bgx->vf_id; in nic_get_bgx_stats()
258 nic_send_msg_to_vf(nic, bgx->vf_id, &mbx); in nic_get_bgx_stats()
489 vnic = cfg->vf_id; in nic_config_cpi()
513 qset = cfg->vf_id; in nic_config_cpi()
554 nic->cpi_base[cfg->vf_id] = cpi_base; in nic_config_cpi()
555 nic->rssi_base[cfg->vf_id] = rssi_base; in nic_config_cpi()
580 rssi_base = nic->rssi_base[cfg->vf_id] + cfg->tbl_offset; in nic_config_rss()
[all …]
Dnicvf_main.c141 (mbx->msg.msg & 0xFF), nic->vf_id); in nicvf_send_msg_to_pf()
151 (mbx->msg.msg & 0xFF), nic->vf_id); in nicvf_send_msg_to_pf()
203 nic->vf_id = mbx.nic_cfg.vf_id & 0x7F; in nicvf_handle_mbx_intr()
287 mbx.mac.vf_id = nic->vf_id; in nicvf_hw_set_mac_addr()
298 mbx.cpi_cfg.vf_id = nic->vf_id; in nicvf_config_cpi()
310 mbx.rss_size.vf_id = nic->vf_id; in nicvf_get_rss_size()
321 mbx.rss_cfg.vf_id = nic->vf_id; in nicvf_config_rss()
394 mbx.sqs_alloc.vf_id = nic->vf_id; in nicvf_request_sqs()
416 mbx.nicvf.vf_id = nic->vf_id; in nicvf_request_sqs()
1408 mbx.frs.vf_id = nic->vf_id; in nicvf_update_hw_max_frs()
[all …]
Dthunder_bgx.c261 static void bgx_lmac_remove_filters(struct lmac *lmac, u8 vf_id) in bgx_lmac_remove_filters() argument
274 lmac->dmacs[i].vf_map &= ~BIT_ULL(vf_id); in bgx_lmac_remove_filters()
283 static int bgx_lmac_save_filter(struct lmac *lmac, u64 dmac, u8 vf_id) in bgx_lmac_save_filter() argument
299 lmac->dmacs[i].vf_map |= BIT_ULL(vf_id); in bgx_lmac_save_filter()
309 lmac->dmacs[lmac->dmacs_cfg].vf_map = BIT_ULL(vf_id); in bgx_lmac_save_filter()
335 u64 cam_dmac, u8 vf_id) in bgx_set_dmac_cam_filter() argument
353 bgx_lmac_save_filter(lmac, cam_dmac, vf_id); in bgx_set_dmac_cam_filter()
391 void bgx_reset_xcast_mode(int node, int bgx_idx, int lmacid, u8 vf_id) in bgx_reset_xcast_mode() argument
398 bgx_lmac_remove_filters(&bgx->lmac[lmacid], vf_id); in bgx_reset_xcast_mode()
/Linux-v4.19/include/linux/qed/
Dqed_iov_if.h46 int (*get_config) (struct qed_dev *cdev, int vf_id,
49 int (*set_link_state) (struct qed_dev *cdev, int vf_id,
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns/
Dhns_ae_adapt.c105 for (ae_handle->vf_id = 0; in hns_ae_get_handle()
106 ae_handle->vf_id < vfnum_per_port; ae_handle->vf_id++) { in hns_ae_get_handle()
111 if (ae_handle->vf_id >= vfnum_per_port) { in hns_ae_get_handle()
228 ret = hns_mac_change_vf_addr(mac_cb, handle->vf_id, p); in hns_ae_set_mac_address()
246 return hns_mac_add_uc_addr(mac_cb, handle->vf_id, addr); in hns_ae_add_uc_address()
257 return hns_mac_rm_uc_addr(mac_cb, handle->vf_id, addr); in hns_ae_rm_uc_address()
280 ret = hns_mac_get_inner_port_num(mac_cb, handle->vf_id, &port_num); in hns_ae_set_multicast_one()
300 return hns_mac_clr_multicast(mac_cb, handle->vf_id); in hns_ae_clr_multicast()
/Linux-v4.19/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_vfpf.h127 u8 vf_id; /* ME register value */ member
355 u16 vf_id; /* for debug */ member
362 u16 vf_id; member
Dbnx2x_vfpf.c196 static int bnx2x_get_vf_id(struct bnx2x *bp, u32 *vf_id) in bnx2x_get_vf_id() argument
220 *vf_id = (me_reg & ME_REG_VF_NUM_MASK) >> ME_REG_VF_NUM_SHIFT; in bnx2x_get_vf_id()
232 u32 vf_id; in bnx2x_vfpf_acquire() local
238 if (bnx2x_get_vf_id(bp, &vf_id)) { in bnx2x_vfpf_acquire()
243 req->vfdev_info.vf_id = vf_id; in bnx2x_vfpf_acquire()
402 u32 rc, vf_id; in bnx2x_vfpf_release() local
407 if (bnx2x_get_vf_id(bp, &vf_id)) { in bnx2x_vfpf_release()
412 req->vf_id = vf_id; in bnx2x_vfpf_release()
496 u32 vf_id; in bnx2x_vfpf_close_vf() local
501 if (bnx2x_get_vf_id(bp, &vf_id)) in bnx2x_vfpf_close_vf()
[all …]
/Linux-v4.19/drivers/pci/
Diov.c21 int pci_iov_virtfn_bus(struct pci_dev *dev, int vf_id) in pci_iov_virtfn_bus() argument
26 dev->sriov->stride * vf_id) >> 8); in pci_iov_virtfn_bus()
29 int pci_iov_virtfn_devfn(struct pci_dev *dev, int vf_id) in pci_iov_virtfn_devfn() argument
34 dev->sriov->stride * vf_id) & 0xff; in pci_iov_virtfn_devfn()

1234