Lines Matching refs:cfa_code_map
190 if (cfa_code && bp->cfa_code_map && BNXT_PF(bp)) { in bnxt_get_vf_rep()
191 vf_idx = bp->cfa_code_map[cfa_code]; in bnxt_get_vf_rep()
357 kfree(bp->cfa_code_map); in bnxt_vf_reps_destroy()
358 bp->cfa_code_map = NULL; in bnxt_vf_reps_destroy()
389 u16 *cfa_code_map) in bnxt_alloc_vf_rep() argument
396 cfa_code_map[vf_rep->rx_cfa_code] = vf_rep->vf_idx; in bnxt_alloc_vf_rep()
415 u16 *cfa_code_map = bp->cfa_code_map, num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_alloc() local
422 if (!cfa_code_map) in bnxt_vf_reps_alloc()
426 cfa_code_map[i] = VF_IDX_INVALID; in bnxt_vf_reps_alloc()
432 rc = bnxt_alloc_vf_rep(bp, vf_rep, cfa_code_map); in bnxt_vf_reps_alloc()
487 u16 *cfa_code_map = NULL, num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_create() local
500 cfa_code_map = kmalloc_array(MAX_CFA_CODE, sizeof(*bp->cfa_code_map), in bnxt_vf_reps_create()
502 if (!cfa_code_map) { in bnxt_vf_reps_create()
507 cfa_code_map[i] = VF_IDX_INVALID; in bnxt_vf_reps_create()
523 rc = bnxt_alloc_vf_rep(bp, vf_rep, cfa_code_map); in bnxt_vf_reps_create()
537 bp->cfa_code_map = cfa_code_map; in bnxt_vf_reps_create()
544 kfree(cfa_code_map); in bnxt_vf_reps_create()