Lines Matching refs:vfdb
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))
345 #define bnx2x_vf_sp(bp, vf, field) ((bp)->vfdb->sp_dma.addr + \
348 #define bnx2x_vf_sp_map(bp, vf, field) ((bp)->vfdb->sp_dma.mapping + \
540 return bp->vfdb->sriov.nr_virtfn * BNX2X_CIDS_PER_VF; in bnx2x_vf_headroom()