Home
last modified time | relevance | path

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

/linux-5.19.10/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.c938 bp->vfdb->flrd_vfs[0], bp->vfdb->flrd_vfs[1]); in bnx2x_vf_flr_clnup()
941 bp->vfdb->flrd_vfs[i]); in bnx2x_vf_flr_clnup()
958 bp->vfdb->flrd_vfs[i] = SHMEM2_RD(bp, mcp_vf_disabled[i]); in bnx2x_vf_handle_flr_event()
962 bp->vfdb->flrd_vfs[0], bp->vfdb->flrd_vfs[1]); in bnx2x_vf_handle_flr_event()
969 reset = bp->vfdb->flrd_vfs[0] & (1 << vf->abs_vfid); in bnx2x_vf_handle_flr_event()
971 reset = bp->vfdb->flrd_vfs[1] & in bnx2x_vf_handle_flr_event()
1043 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_bus()
1052 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_devfn()
1061 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_set_bars()
1103 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()