Lines Matching refs:vfdb
950 bp->vfdb->flrd_vfs[0], bp->vfdb->flrd_vfs[1]); in bnx2x_vf_flr_clnup()
953 bp->vfdb->flrd_vfs[i]); in bnx2x_vf_flr_clnup()
970 bp->vfdb->flrd_vfs[i] = SHMEM2_RD(bp, mcp_vf_disabled[i]); in bnx2x_vf_handle_flr_event()
974 bp->vfdb->flrd_vfs[0], bp->vfdb->flrd_vfs[1]); in bnx2x_vf_handle_flr_event()
981 reset = bp->vfdb->flrd_vfs[0] & (1 << vf->abs_vfid); in bnx2x_vf_handle_flr_event()
983 reset = bp->vfdb->flrd_vfs[1] & in bnx2x_vf_handle_flr_event()
1055 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_bus()
1064 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_devfn()
1073 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_set_bars()
1115 if (bp->vfdb) { in __bnx2x_iov_free_vfdb()
1116 kfree(bp->vfdb->vfqs); in __bnx2x_iov_free_vfdb()
1117 kfree(bp->vfdb->vfs); in __bnx2x_iov_free_vfdb()
1118 kfree(bp->vfdb); in __bnx2x_iov_free_vfdb()
1120 bp->vfdb = NULL; in __bnx2x_iov_free_vfdb()
1184 bp->vfdb = NULL; in bnx2x_iov_init_one()
1230 bp->vfdb = kzalloc(sizeof(*(bp->vfdb)), GFP_KERNEL); in bnx2x_iov_init_one()
1231 if (!bp->vfdb) { in bnx2x_iov_init_one()
1242 iov = &(bp->vfdb->sriov); in bnx2x_iov_init_one()
1257 bp->vfdb->vfs = kcalloc(BNX2X_NR_VIRTFN(bp), in bnx2x_iov_init_one()
1260 if (!bp->vfdb->vfs) { in bnx2x_iov_init_one()
1285 bp->vfdb->vfqs = kcalloc(BNX2X_MAX_NUM_VF_QUEUES, in bnx2x_iov_init_one()
1289 if (!bp->vfdb->vfqs) { in bnx2x_iov_init_one()
1296 mutex_init(&bp->vfdb->event_mutex); in bnx2x_iov_init_one()
1298 mutex_init(&bp->vfdb->bulletin_mutex); in bnx2x_iov_init_one()
1321 for (vf_idx = 0; vf_idx < bp->vfdb->sriov.total; vf_idx++) { in bnx2x_iov_remove_one()
1324 bp->vfdb->sriov.first_vf_in_pf + in bnx2x_iov_remove_one()
1327 bp->vfdb->sriov.first_vf_in_pf + vf_idx); in bnx2x_iov_remove_one()
1345 struct hw_dma *cxt = &bp->vfdb->context[i]; in bnx2x_iov_free_mem()
1470 mutex_lock(&bp->vfdb->bulletin_mutex); in bnx2x_iov_link_update_vf()
1516 mutex_unlock(&bp->vfdb->bulletin_mutex); in bnx2x_iov_link_update_vf()
1557 DP(BNX2X_MSG_IOV, "num of vfs: %d\n", (bp)->vfdb->sriov.nr_virtfn); in bnx2x_iov_nic_init()
2463 first_vf = bp->vfdb->sriov.first_vf_in_pf; in bnx2x_enable_sriov()
2476 bp->vfdb->vf_sbs_pool = 0; in bnx2x_enable_sriov()
2505 vf->vfqs = &bp->vfdb->vfqs[qcount]; in bnx2x_enable_sriov()
2650 mutex_lock(&bp->vfdb->bulletin_mutex); in bnx2x_get_vf_config()
2667 mutex_unlock(&bp->vfdb->bulletin_mutex); in bnx2x_get_vf_config()
2707 mutex_lock(&bp->vfdb->bulletin_mutex); in bnx2x_set_vf_mac()
2719 mutex_unlock(&bp->vfdb->bulletin_mutex); in bnx2x_set_vf_mac()
2846 mutex_lock(&bp->vfdb->bulletin_mutex); in bnx2x_set_vf_vlan()
2858 mutex_unlock(&bp->vfdb->bulletin_mutex); in bnx2x_set_vf_vlan()