Home
last modified time | relevance | path

Searched refs:vfdb (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.h219 #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))
[all …]
Dbnx2x_sriov.c942 bp->vfdb->flrd_vfs[0], bp->vfdb->flrd_vfs[1]); in bnx2x_vf_flr_clnup()
945 bp->vfdb->flrd_vfs[i]); in bnx2x_vf_flr_clnup()
962 bp->vfdb->flrd_vfs[i] = SHMEM2_RD(bp, mcp_vf_disabled[i]); in bnx2x_vf_handle_flr_event()
966 bp->vfdb->flrd_vfs[0], bp->vfdb->flrd_vfs[1]); in bnx2x_vf_handle_flr_event()
973 reset = bp->vfdb->flrd_vfs[0] & (1 << vf->abs_vfid); in bnx2x_vf_handle_flr_event()
975 reset = bp->vfdb->flrd_vfs[1] & in bnx2x_vf_handle_flr_event()
1047 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_bus()
1056 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_devfn()
1065 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_set_bars()
1107 if (bp->vfdb) { in __bnx2x_iov_free_vfdb()
[all …]
Dbnx2x_vfpf.c2224 struct bnx2x_vfdb *vfdb = BP_VFDB(bp); in bnx2x_vf_mbx() local
2229 if (!vfdb) in bnx2x_vf_mbx()
2232 mutex_lock(&vfdb->event_mutex); in bnx2x_vf_mbx()
2233 events = vfdb->event_occur; in bnx2x_vf_mbx()
2234 vfdb->event_occur = 0; in bnx2x_vf_mbx()
2235 mutex_unlock(&vfdb->event_mutex); in bnx2x_vf_mbx()
Dbnx2x.h1762 struct bnx2x_vfdb *vfdb; member
1763 #define IS_SRIOV(bp) ((bp)->vfdb)
Dbnx2x_main.c3419 ether_stat->vf_cnt = IS_SRIOV(bp) ? bp->vfdb->sriov.nr_virtfn : 0; in bnx2x_drv_info_ether_stat()