Lines Matching refs:vfdb
219 #define BNX2X_NR_VIRTFN(bp) ((bp)->vfdb->sriov.nr_virtfn)
241 #define GET_NUM_VFS_PER_PF(bp) ((bp)->vfdb ? (bp)->vfdb->sriov.total \
318 #define BP_VFDB(bp) ((bp)->vfdb)
321 #define BP_VF(bp, idx) ((BP_VFDB(bp) && (bp)->vfdb->vfs) ? \
322 &((bp)->vfdb->vfs[idx]) : NULL)
323 #define bnx2x_vf(bp, idx, var) ((bp)->vfdb->vfs[idx].var)
330 #define BP_VF_CXT_PAGE(bp, i) (&(bp)->vfdb->context[i])
335 #define BP_VF_MBX_DMA(bp) (&((bp)->vfdb->mbx_dma))
337 #define BP_VF_MBX(bp, vfid) (&((bp)->vfdb->mbxs[vfid]))
340 #define BP_VF_BULLETIN_DMA(bp) (&((bp)->vfdb->bulletin_dma))
346 #define bnx2x_vf_sp(bp, vf, field) ((bp)->vfdb->sp_dma.addr + \
349 #define bnx2x_vf_sp_map(bp, vf, field) ((bp)->vfdb->sp_dma.mapping + \
541 return bp->vfdb->sriov.nr_virtfn * BNX2X_CIDS_PER_VF; in bnx2x_vf_headroom()