Lines Matching refs:vf_idx
28 static int hwrm_cfa_vfr_alloc(struct bnxt *bp, u16 vf_idx, in hwrm_cfa_vfr_alloc() argument
37 req->vf_id = cpu_to_le16(vf_idx); in hwrm_cfa_vfr_alloc()
38 sprintf(req->vfr_name, "vfr%d", vf_idx); in hwrm_cfa_vfr_alloc()
55 static int hwrm_cfa_vfr_free(struct bnxt *bp, u16 vf_idx) in hwrm_cfa_vfr_free() argument
62 sprintf(req->vfr_name, "vfr%d", vf_idx); in hwrm_cfa_vfr_free()
82 req->fid = cpu_to_le16(bp->pf.vf[vf_rep->vf_idx].fw_fid); in bnxt_hwrm_vfr_qcfg()
154 int vf_fid = bp->pf.vf[vf_rep->vf_idx].fw_fid; in bnxt_vf_rep_setup_tc_block_cb()
188 u16 vf_idx; in bnxt_get_vf_rep() local
191 vf_idx = bp->cfa_code_map[cfa_code]; in bnxt_get_vf_rep()
192 if (vf_idx != VF_IDX_INVALID) in bnxt_get_vf_rep()
193 return bp->vf_reps[vf_idx]->dev; in bnxt_get_vf_rep()
216 vf_rep->vf_idx); in bnxt_vf_rep_get_phys_port_name()
308 hwrm_cfa_vfr_free(bp, vf_rep->vf_idx); in __bnxt_free_one_vf_rep()
392 if (hwrm_cfa_vfr_alloc(bp, vf_rep->vf_idx, &vf_rep->tx_cfa_action, in bnxt_alloc_vf_rep()
396 cfa_code_map[vf_rep->rx_cfa_code] = vf_rep->vf_idx; in bnxt_alloc_vf_rep()
430 vf_rep->vf_idx = i; in bnxt_vf_reps_alloc()
448 static void bnxt_vf_rep_eth_addr_gen(u8 *src_mac, u16 vf_idx, u8 *mac) in bnxt_vf_rep_eth_addr_gen() argument
454 addr = jhash(src_mac, ETH_ALEN, 0) + vf_idx; in bnxt_vf_rep_eth_addr_gen()
476 bnxt_vf_rep_eth_addr_gen(bp->pf.mac_addr, vf_rep->vf_idx, in bnxt_vf_rep_netdev_init()
520 vf_rep->vf_idx = i; in bnxt_vf_reps_create()