Lines Matching refs:vfdb
929 bp->vfdb->flrd_vfs[0], bp->vfdb->flrd_vfs[1]); in bnx2x_vf_flr_clnup()
932 bp->vfdb->flrd_vfs[i]); in bnx2x_vf_flr_clnup()
949 bp->vfdb->flrd_vfs[i] = SHMEM2_RD(bp, mcp_vf_disabled[i]); in bnx2x_vf_handle_flr_event()
953 bp->vfdb->flrd_vfs[0], bp->vfdb->flrd_vfs[1]); in bnx2x_vf_handle_flr_event()
960 reset = bp->vfdb->flrd_vfs[0] & (1 << vf->abs_vfid); in bnx2x_vf_handle_flr_event()
962 reset = bp->vfdb->flrd_vfs[1] & in bnx2x_vf_handle_flr_event()
1034 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_bus()
1043 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_devfn()
1052 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_set_bars()
1094 if (bp->vfdb) { in __bnx2x_iov_free_vfdb()
1095 kfree(bp->vfdb->vfqs); in __bnx2x_iov_free_vfdb()
1096 kfree(bp->vfdb->vfs); in __bnx2x_iov_free_vfdb()
1097 kfree(bp->vfdb); in __bnx2x_iov_free_vfdb()
1099 bp->vfdb = NULL; in __bnx2x_iov_free_vfdb()
1163 bp->vfdb = NULL; in bnx2x_iov_init_one()
1209 bp->vfdb = kzalloc(sizeof(*(bp->vfdb)), GFP_KERNEL); in bnx2x_iov_init_one()
1210 if (!bp->vfdb) { in bnx2x_iov_init_one()
1221 iov = &(bp->vfdb->sriov); in bnx2x_iov_init_one()
1236 bp->vfdb->vfs = kcalloc(BNX2X_NR_VIRTFN(bp), in bnx2x_iov_init_one()
1239 if (!bp->vfdb->vfs) { in bnx2x_iov_init_one()
1264 bp->vfdb->vfqs = kcalloc(BNX2X_MAX_NUM_VF_QUEUES, in bnx2x_iov_init_one()
1268 if (!bp->vfdb->vfqs) { in bnx2x_iov_init_one()
1275 mutex_init(&bp->vfdb->event_mutex); in bnx2x_iov_init_one()
1277 mutex_init(&bp->vfdb->bulletin_mutex); in bnx2x_iov_init_one()
1300 for (vf_idx = 0; vf_idx < bp->vfdb->sriov.total; vf_idx++) { in bnx2x_iov_remove_one()
1303 bp->vfdb->sriov.first_vf_in_pf + in bnx2x_iov_remove_one()
1306 bp->vfdb->sriov.first_vf_in_pf + vf_idx); in bnx2x_iov_remove_one()
1324 struct hw_dma *cxt = &bp->vfdb->context[i]; in bnx2x_iov_free_mem()
1449 mutex_lock(&bp->vfdb->bulletin_mutex); in bnx2x_iov_link_update_vf()
1495 mutex_unlock(&bp->vfdb->bulletin_mutex); in bnx2x_iov_link_update_vf()
1536 DP(BNX2X_MSG_IOV, "num of vfs: %d\n", (bp)->vfdb->sriov.nr_virtfn); in bnx2x_iov_nic_init()
2448 first_vf = bp->vfdb->sriov.first_vf_in_pf; in bnx2x_enable_sriov()
2461 bp->vfdb->vf_sbs_pool = 0; in bnx2x_enable_sriov()
2490 vf->vfqs = &bp->vfdb->vfqs[qcount]; in bnx2x_enable_sriov()
2635 mutex_lock(&bp->vfdb->bulletin_mutex); in bnx2x_get_vf_config()
2652 mutex_unlock(&bp->vfdb->bulletin_mutex); in bnx2x_get_vf_config()
2692 mutex_lock(&bp->vfdb->bulletin_mutex); in bnx2x_set_vf_mac()
2704 mutex_unlock(&bp->vfdb->bulletin_mutex); in bnx2x_set_vf_mac()
2831 mutex_lock(&bp->vfdb->bulletin_mutex); in bnx2x_set_vf_vlan()
2843 mutex_unlock(&bp->vfdb->bulletin_mutex); in bnx2x_set_vf_vlan()