Searched refs:vfdb (Results 1 – 5 of 5) sorted by relevance
218 #define BNX2X_NR_VIRTFN(bp) ((bp)->vfdb->sriov.nr_virtfn)240 #define GET_NUM_VFS_PER_PF(bp) ((bp)->vfdb ? (bp)->vfdb->sriov.total \317 #define BP_VFDB(bp) ((bp)->vfdb)320 #define BP_VF(bp, idx) ((BP_VFDB(bp) && (bp)->vfdb->vfs) ? \321 &((bp)->vfdb->vfs[idx]) : NULL)322 #define bnx2x_vf(bp, idx, var) ((bp)->vfdb->vfs[idx].var)329 #define BP_VF_CXT_PAGE(bp, i) (&(bp)->vfdb->context[i])334 #define BP_VF_MBX_DMA(bp) (&((bp)->vfdb->mbx_dma))336 #define BP_VF_MBX(bp, vfid) (&((bp)->vfdb->mbxs[vfid]))339 #define BP_VF_BULLETIN_DMA(bp) (&((bp)->vfdb->bulletin_dma))[all …]
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()[all …]
2213 struct bnx2x_vfdb *vfdb = BP_VFDB(bp); in bnx2x_vf_mbx() local2218 if (!vfdb) in bnx2x_vf_mbx()2221 mutex_lock(&vfdb->event_mutex); in bnx2x_vf_mbx()2222 events = vfdb->event_occur; in bnx2x_vf_mbx()2223 vfdb->event_occur = 0; in bnx2x_vf_mbx()2224 mutex_unlock(&vfdb->event_mutex); in bnx2x_vf_mbx()
1762 struct bnx2x_vfdb *vfdb; member1763 #define IS_SRIOV(bp) ((bp)->vfdb)
3398 ether_stat->vf_cnt = IS_SRIOV(bp) ? bp->vfdb->sriov.nr_virtfn : 0; in bnx2x_drv_info_ether_stat()