Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.h76 u16 vf_id; member
114 int i40e_vc_process_vf_msg(struct i40e_pf *pf, u16 vf_id, u32 v_opcode,
121 int i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac);
123 int vf_id, u16 vlan_id, u8 qos);
124 int i40e_ndo_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate,
127 int vf_id, struct ifla_vf_info *ivi);
128 int i40e_ndo_set_vf_link_state(struct net_device *netdev, int vf_id, int link);
129 int i40e_ndo_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool enable);
Di40e_virtchnl_pf.c51 int abs_vf_id = vf->vf_id + hw->func_caps.vf_base_id; in i40e_vc_vf_broadcast()
77 int abs_vf_id = vf->vf_id + hw->func_caps.vf_base_id; in i40e_vc_notify_vf_link_state()
136 if (!vf || vf->vf_id >= vf->pf->num_alloc_vfs) in i40e_vc_notify_vf_reset()
144 abs_vf_id = vf->vf_id + vf->pf->hw.func_caps.vf_base_id; in i40e_vc_notify_vf_reset()
179 return (vsi && (vsi->vf_id == vf->vf_id)); in i40e_vc_isvalid_vsi_id()
267 reg_idx = I40E_VPINT_LNKLST0(vf->vf_id); in i40e_config_irq_link_list()
270 ((pf->hw.func_caps.num_msix_vectors_vf - 1) * vf->vf_id) + in i40e_config_irq_link_list()
413 qtx_ctl |= (((vf->vf_id + hw->func_caps.vf_base_id) in i40e_config_vsi_tx_queue()
528 vsi = i40e_vsi_setup(pf, type, pf->vsi[pf->lan_vsi]->seid, vf->vf_id); in i40e_alloc_vsi_res()
533 vf->vf_id, pf->hw.aq.asq_last_status); in i40e_alloc_vsi_res()
[all …]
Di40e_ethtool.c2088 fsp->h_ext.data[1] = htonl(vsi->vf_id); in i40e_get_ethtool_fdir_entry()
2386 u16 vf_id; in i40e_add_fdir_ethtool() local
2452 vf_id = ntohl(fsp->h_ext.data[1]); in i40e_add_fdir_ethtool()
2454 input->dest_vsi = pf->vf[vf_id].lan_vsi_id; in i40e_add_fdir_ethtool()
2455 if (input->q_index >= pf->vf[vf_id].num_queue_pairs) { in i40e_add_fdir_ethtool()
Di40e.h531 u16 vf_id; /* Virtual function ID for SRIOV VSIs */ member
Di40e_main.c5716 u16 vf_id; in i40e_handle_lan_overflow_event() local
5724 vf_id = (u16)((qtx_ctl & I40E_QTX_CTL_VFVM_INDX_MASK) in i40e_handle_lan_overflow_event()
5726 vf_id -= hw->func_caps.vf_base_id; in i40e_handle_lan_overflow_event()
5727 vf = &pf->vf[vf_id]; in i40e_handle_lan_overflow_event()
8892 ctxt.vf_num = vsi->vf_id + hw->func_caps.vf_base_id; in i40e_add_vsi()
8909 if (pf->vf[vsi->vf_id].spoofchk) { in i40e_add_vsi()
9318 vsi->vf_id = param1; in i40e_vsi_setup()
Di40e_adminq_cmd.h699 u8 vf_id; member
Di40e_common.c1922 cmd->vf_id = vsi_ctx->vf_num; in i40e_aq_add_vsi()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c22 static int bnxt_vf_ndo_prep(struct bnxt *bp, int vf_id) in bnxt_vf_ndo_prep() argument
32 if (vf_id >= bp->pf.max_vfs) { in bnxt_vf_ndo_prep()
33 netdev_err(bp->dev, "Invalid VF id %d\n", vf_id); in bnxt_vf_ndo_prep()
39 int bnxt_set_vf_spoofchk(struct net_device *dev, int vf_id, bool setting) in bnxt_set_vf_spoofchk() argument
48 rc = bnxt_vf_ndo_prep(bp, vf_id); in bnxt_set_vf_spoofchk()
52 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_spoofchk()
67 req.vf_id = cpu_to_le16(vf->fw_fid); in bnxt_set_vf_spoofchk()
80 int bnxt_get_vf_config(struct net_device *dev, int vf_id, in bnxt_get_vf_config() argument
87 rc = bnxt_vf_ndo_prep(bp, vf_id); in bnxt_get_vf_config()
91 ivi->vf = vf_id; in bnxt_get_vf_config()
[all …]
Dbnxt_hsi.h734 __le16 vf_id; member
761 __le16 vf_id; member
947 __le16 vf_id; member
1106 __le16 vf_id; member
1131 __le16 vf_id; member
1230 __le16 vf_id; member
Dbnxt.c1232 u16 cmpl_type = TX_CMP_TYPE(txcmp), vf_id, seq_id; in bnxt_hwrm_handler() local
1247 vf_id = le16_to_cpu(fwd_req_cmpl->source_id); in bnxt_hwrm_handler()
1249 if ((vf_id < bp->pf.first_vf_id) || in bnxt_hwrm_handler()
1250 (vf_id >= bp->pf.first_vf_id + bp->pf.active_vfs)) { in bnxt_hwrm_handler()
1252 vf_id); in bnxt_hwrm_handler()
1256 set_bit(vf_id - bp->pf.first_vf_id, bp->pf.vf_event_bmap); in bnxt_hwrm_handler()
/linux-4.4.14/drivers/scsi/bfa/
Dbfad_bsg.h183 u16 vf_id; member
299 u16 vf_id; member
307 u16 vf_id; member
315 u16 vf_id; member
323 u16 vf_id; member
333 u16 vf_id; member
344 u16 vf_id; member
353 u16 vf_id; member
365 u16 vf_id; member
373 u16 vf_id; member
[all …]
Dbfa_fcs.h193 u16 vf_id; /* virtual fabric ID */ member
297 u16 vf_id, wwn_t lpwwn);
323 u16 vf_id, struct bfa_fcs_vport_s *vport);
375 struct bfa_fcs_s *fcs, u16 vf_id,
379 struct bfa_fcs_s *fcs, u16 vf_id,
389 u16 vf_id, wwn_t vpwwn);
804 bfa_fcs_vf_t *bfa_fcs_vf_lookup(struct bfa_fcs_s *fcs, u16 vf_id);
Dbfa_fcs_lport.c359 aen_entry->aen_data.lport.vf_id = port->fabric->vf_id; in bfa_fcs_lport_aen_post()
393 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_send_ls_rjt()
427 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_send_fcgs_rjt()
572 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_echo()
629 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_rnid()
737 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_abts_acc()
1071 u16 vf_id, struct bfa_fcs_vport_s *vport) in bfa_fcs_lport_attach() argument
1074 lport->fabric = bfa_fcs_vf_lookup(fcs, vf_id); in bfa_fcs_lport_attach()
1887 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_fdmi_send_rhba()
2220 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_fdmi_send_rprt()
[all …]
Dbfad_bsg.c461 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_attr()
485 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_stats()
512 iocmd->vf_id, iocmd->vpwwn); in bfad_iocmd_lport_reset_stats()
543 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_iostats()
583 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_rports()
610 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_attr()
649 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_addr()
697 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_stats()
739 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_clr_stats()
774 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_set_speed()
[all …]
Dbfa_fcs.c1250 bfa_trc(fabric->fcs, fabric->vf_id); in bfa_fcs_fabric_addvport()
1469 bfa_fcxp_send(fcxp, NULL, fabric->vf_id, fabric->lps->bfa_tag, in bfa_fcs_fabric_send_flogi_acc()
1563 bfa_fcs_vf_lookup(struct bfa_fcs_s *fcs, u16 vf_id) in bfa_fcs_vf_lookup() argument
1565 bfa_trc(fcs, vf_id); in bfa_fcs_vf_lookup()
1566 if (vf_id == FC_VF_ID_NULL) in bfa_fcs_vf_lookup()
1594 bfa_trc(fcs, vf->vf_id); in bfa_fcs_vf_get_ports()
1669 if (fcs->port_vfid == vft->vf_id) in bfa_fcs_uf_recv()
1672 fabric = bfa_fcs_vf_lookup(fcs, (u16) vft->vf_id); in bfa_fcs_uf_recv()
1690 bfa_trc(fcs, vft->vf_id); in bfa_fcs_uf_recv()
Dbfad_drv.h296 bfa_status_t bfad_vport_create(struct bfad_s *bfad, u16 vf_id,
299 bfa_status_t bfad_vf_create(struct bfad_s *bfad, u16 vf_id,
Dbfa_fcs_rport.c1730 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_plogi()
1852 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_plogiacc()
1882 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_adisc()
1952 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_nsdisc()
2103 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_logo()
2137 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_send_logo_acc()
2207 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_process_prli()
2244 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_rport_process_rpsc()
2279 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, in bfa_fcs_rport_process_adisc()
2299 rport_info.vf_id = port->fabric->vf_id; in bfa_fcs_rport_hal_online()
[all …]
Dbfa_svc.h147 u16 vf_id; /* vsan tag if applicable */ member
290 u16 vf_id; /* virtual fabric ID */ member
329 u16 vf_id; member
635 u16 vf_id, u8 lp_tag,
Dbfa_fcpim.h418 bfa_status_t bfa_fcpim_lunmask_delete(struct bfa_s *bfa, u16 vf_id,
420 bfa_status_t bfa_fcpim_lunmask_add(struct bfa_s *bfa, u16 vf_id,
Dbfi_ms.h354 __be16 vf_id; /* vsan tag if applicable */ member
517 u16 vf_id; /* virtual fabric ID */ member
Dbfa_fcs_fcpim.c436 aen_entry->aen_data.itnim.vf_id = rport->port->fabric->vf_id; in bfa_fcs_itnim_aen_post()
472 bfa_fcxp_send(fcxp, rport->bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_itnim_send_prli()
Dbfa_defs.h499 u16 vf_id; /* vf_id of this logical port */ member
514 u16 vf_id; /* vf_id of the IT nexus */ member
Dbfa_svc.c864 send_req->vf_id = cpu_to_be16(reqi->vf_id); in bfa_fcxp_queue()
1056 u16 vf_id, u8 lp_tag, bfa_boolean_t cts, enum fc_cos cos, in bfa_fcxp_send() argument
1071 reqi->vf_id = vf_id; in bfa_fcxp_send()
5018 m->vf_id = rp->rport_info.vf_id; in bfa_rport_send_fwcreate()
Dbfa_fc.h1050 u32 vf_id:12; member
Dbfad.c647 bfad_vport_create(struct bfad_s *bfad, u16 vf_id, in bfad_vport_create() argument
663 rc = bfa_fcs_vport_create(&vport->fcs_vport, &bfad->bfa_fcs, vf_id, in bfad_vport_create()
Dbfa_fcpim.c2279 bfa_fcpim_lunmask_add(struct bfa_s *bfa, u16 vf_id, wwn_t *pwwn, in bfa_fcpim_lunmask_add() argument
2293 vf_id, *pwwn); in bfa_fcpim_lunmask_add()
2341 bfa_fcpim_lunmask_delete(struct bfa_s *bfa, u16 vf_id, wwn_t *pwwn, in bfa_fcpim_lunmask_delete() argument
2362 vf_id, *pwwn); in bfa_fcpim_lunmask_delete()
Dbfa_defs_svc.h1430 u16 vf_id; /* vf_id of this logical port */ member
/linux-4.4.14/drivers/net/ethernet/cavium/thunder/
Dnic.h263 u8 vf_id; member
353 u8 vf_id; member
389 u8 vf_id; member
396 u8 vf_id; member
403 u8 vf_id; member
411 u8 vf_id; member
418 u8 vf_id; member
428 u8 vf_id; member
445 u8 vf_id; member
451 u8 vf_id; member
[all …]
Dnic_main.c148 mbx.nic_cfg.vf_id = vf; in nic_mbx_send_ready()
219 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats()
220 lmac = NIC_GET_LMAC_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats()
223 mbx.bgx_stats.vf_id = bgx->vf_id; in nic_get_bgx_stats()
232 nic_send_msg_to_vf(nic, bgx->vf_id, &mbx); in nic_get_bgx_stats()
358 vnic = cfg->vf_id; in nic_config_cpi()
382 qset = cfg->vf_id; in nic_config_cpi()
423 nic->cpi_base[cfg->vf_id] = cpi_base; in nic_config_cpi()
424 nic->rssi_base[cfg->vf_id] = rssi_base; in nic_config_cpi()
452 rssi_base = nic->rssi_base[cfg->vf_id] + cfg->tbl_offset; in nic_config_rss()
[all …]
Dnicvf_main.c146 (mbx->msg.msg & 0xFF), nic->vf_id); in nicvf_send_msg_to_pf()
198 nic->vf_id = mbx.nic_cfg.vf_id & 0x7F; in nicvf_handle_mbx_intr()
276 mbx.mac.vf_id = nic->vf_id; in nicvf_hw_set_mac_addr()
287 mbx.cpi_cfg.vf_id = nic->vf_id; in nicvf_config_cpi()
299 mbx.rss_size.vf_id = nic->vf_id; in nicvf_get_rss_size()
310 mbx.rss_cfg.vf_id = nic->vf_id; in nicvf_config_rss()
389 mbx.sqs_alloc.vf_id = nic->vf_id; in nicvf_request_sqs()
409 mbx.nicvf.vf_id = nic->vf_id; in nicvf_request_sqs()
901 nic->vf_id, irq); in nicvf_register_interrupts()
905 nic->vf_id, irq - NICVF_INTR_ID_SQ); in nicvf_register_interrupts()
[all …]
Dnicvf_queues.c705 qs->vnic_id = nic->vf_id; in nicvf_qset_config()
/linux-4.4.14/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
Dbnx2x_hsi.h5217 u8 vf_id; member
5228 u8 vf_id; member
5239 u8 vf_id; member
5536 u8 vf_id; member
5542 u8 vf_id;
Dbnx2x_sriov.c1763 abs_vfid = elem->message.data.vf_flr_event.vf_id; in bnx2x_iov_eq_sp_event()
1768 abs_vfid = elem->message.data.malicious_vf_event.vf_id; in bnx2x_iov_eq_sp_event()
Dbnx2x_main.c954 sp_sb_data.p_func.vf_id, in bnx2x_panic_dump()
1050 sb_data_e2.common.p_func.vf_id, in bnx2x_panic_dump()
1058 sb_data_e1x.common.p_func.vf_id, in bnx2x_panic_dump()
5959 sb_data_e2.common.p_func.vf_id = vfid; in bnx2x_init_sb()
5974 sb_data_e1x.common.p_func.vf_id = 0xff; in bnx2x_init_sb()
6089 sp_sb_data.p_func.vf_id = 0xff; in bnx2x_init_def_sb()
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/
Dhns_ae_adapt.c143 for (ae_handle->vf_id = 0; in hns_ae_get_handle()
144 ae_handle->vf_id < vfnum_per_port; ae_handle->vf_id++) { in hns_ae_get_handle()
149 if (ae_handle->vf_id >= vfnum_per_port) { in hns_ae_get_handle()
234 ret = hns_mac_change_vf_addr(mac_cb, handle->vf_id, p); in hns_ae_set_mac_address()
Dhnae.h470 int vf_id; member
/linux-4.4.14/drivers/pci/
Diov.c22 int pci_iov_virtfn_bus(struct pci_dev *dev, int vf_id) in pci_iov_virtfn_bus() argument
27 dev->sriov->stride * vf_id) >> 8); in pci_iov_virtfn_bus()
30 int pci_iov_virtfn_devfn(struct pci_dev *dev, int vf_id) in pci_iov_virtfn_devfn() argument
35 dev->sriov->stride * vf_id) & 0xff; in pci_iov_virtfn_devfn()
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
Dqed_hw.h252 u8 vf_id; member
Dqed_hsi.h1688 #define USTORM_VF_PF_CHANNEL_READY_OFFSET(vf_id) (IRO[2].base + \ argument
1689 ((vf_id) * \
/linux-4.4.14/drivers/scsi/csiostor/
Dt4fw_api_stor.h356 __be32 vf_id; member
519 __be16 vf_id; member
Dcsio_lnode.h75 uint16_t vf_id; member
Dcsio_lnode.c785 fcf_info->vf_id = ntohs(rsp->vf_id); in csio_ln_read_fcf_cbfn()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_common.c120 static int qlcnic_sriov_virtid_fn(struct qlcnic_adapter *adapter, int vf_id) in qlcnic_sriov_virtid_fn() argument
133 return (dev->devfn + offset + stride * vf_id) & 0xff; in qlcnic_sriov_virtid_fn()
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_fw.h1415 uint16_t vf_id; member
Dqla_sup.c1115 le16_to_cpu(entry->vf_id), in qla2xxx_flash_npiv_conf()
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/
Di40e_adminq_cmd.h696 u8 vf_id; member
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c6622 unsigned short vf_id; in ixgbe_check_for_bad_vf() local
6644 pci_read_config_word(pdev, pos + PCI_SRIOV_VF_DID, &vf_id); in ixgbe_check_for_bad_vf()
6647 vfdev = pci_get_device(pdev->vendor, vf_id, NULL); in ixgbe_check_for_bad_vf()
6658 vfdev = pci_get_device(pdev->vendor, vf_id, vfdev); in ixgbe_check_for_bad_vf()