Lines Matching defs:bp
212 #define BNX2X_NR_VIRTFN(bp) ((bp)->vfdb->sriov.nr_virtfn) argument
214 #define for_each_vf(bp, var) \ argument
225 #define HW_VF_HANDLE(bp, abs_vfid) \ argument
301 #define BP_VFDB(bp) ((bp)->vfdb) argument
304 #define BP_VF(bp, idx) ((BP_VFDB(bp) && (bp)->vfdb->vfs) ? \ argument
306 #define bnx2x_vf(bp, idx, var) ((bp)->vfdb->vfs[idx].var) argument
313 #define BP_VF_CXT_PAGE(bp, i) (&(bp)->vfdb->context[i]) argument
318 #define BP_VF_MBX_DMA(bp) (&((bp)->vfdb->mbx_dma)) argument
320 #define BP_VF_MBX(bp, vfid) (&((bp)->vfdb->mbxs[vfid])) argument
323 #define BP_VF_BULLETIN_DMA(bp) (&((bp)->vfdb->bulletin_dma)) argument
324 #define BP_VF_BULLETIN(bp, vf) \ argument
329 #define bnx2x_vf_sp(bp, vf, field) ((bp)->vfdb->sp_dma.addr + \ argument
332 #define bnx2x_vf_sp_map(bp, vf, field) ((bp)->vfdb->sp_dma.mapping + \ argument
501 static inline void bnx2x_vf_fill_fw_str(struct bnx2x *bp, char *buf, in bnx2x_vf_fill_fw_str()
507 static inline int bnx2x_vf_ustorm_prods_offset(struct bnx2x *bp, in bnx2x_vf_ustorm_prods_offset()
522 static inline int bnx2x_vf_headroom(struct bnx2x *bp) in bnx2x_vf_headroom()
541 static inline void bnx2x_iov_set_queue_sp_obj(struct bnx2x *bp, int vf_cid, in bnx2x_iov_set_queue_sp_obj()
543 static inline void bnx2x_vf_handle_flr_event(struct bnx2x *bp) {} in bnx2x_vf_handle_flr_event()
544 static inline int bnx2x_iov_eq_sp_event(struct bnx2x *bp, in bnx2x_iov_eq_sp_event()
546 static inline void bnx2x_vf_mbx(struct bnx2x *bp) {} in bnx2x_vf_mbx()
547 static inline void bnx2x_vf_mbx_schedule(struct bnx2x *bp, in bnx2x_vf_mbx_schedule()
549 static inline int bnx2x_iov_init_ilt(struct bnx2x *bp, u16 line) {return line; } in bnx2x_iov_init_ilt()
550 static inline void bnx2x_iov_init_dq(struct bnx2x *bp) {} in bnx2x_iov_init_dq()
551 static inline int bnx2x_iov_alloc_mem(struct bnx2x *bp) {return 0; } in bnx2x_iov_alloc_mem()
552 static inline void bnx2x_iov_free_mem(struct bnx2x *bp) {} in bnx2x_iov_free_mem()
553 static inline int bnx2x_iov_chip_cleanup(struct bnx2x *bp) {return 0; } in bnx2x_iov_chip_cleanup()
554 static inline void bnx2x_iov_init_dmae(struct bnx2x *bp) {} in bnx2x_iov_init_dmae()
555 static inline int bnx2x_iov_init_one(struct bnx2x *bp, int int_mode_param, in bnx2x_iov_init_one()
557 static inline void bnx2x_iov_remove_one(struct bnx2x *bp) {} in bnx2x_iov_remove_one()
558 static inline int bnx2x_enable_sriov(struct bnx2x *bp) {return 0; } in bnx2x_enable_sriov()
559 static inline void bnx2x_disable_sriov(struct bnx2x *bp) {} in bnx2x_disable_sriov()
560 static inline int bnx2x_vfpf_acquire(struct bnx2x *bp, in bnx2x_vfpf_acquire()
562 static inline int bnx2x_vfpf_release(struct bnx2x *bp) {return 0; } in bnx2x_vfpf_release()
563 static inline int bnx2x_vfpf_init(struct bnx2x *bp) {return 0; } in bnx2x_vfpf_init()
564 static inline void bnx2x_vfpf_close_vf(struct bnx2x *bp) {} in bnx2x_vfpf_close_vf()
565 static inline int bnx2x_vfpf_setup_q(struct bnx2x *bp, struct bnx2x_fastpath *fp, bool is_leading) … in bnx2x_vfpf_setup_q()
566 static inline int bnx2x_vfpf_config_mac(struct bnx2x *bp, u8 *addr, in bnx2x_vfpf_config_mac()
568 static inline int bnx2x_vfpf_config_rss(struct bnx2x *bp, in bnx2x_vfpf_config_rss()
571 static inline int bnx2x_vfpf_storm_rx_mode(struct bnx2x *bp) {return 0; } in bnx2x_vfpf_storm_rx_mode()
572 static inline int bnx2x_iov_nic_init(struct bnx2x *bp) {return 0; } in bnx2x_iov_nic_init()
573 static inline int bnx2x_vf_headroom(struct bnx2x *bp) {return 0; } in bnx2x_vf_headroom()
574 static inline void bnx2x_iov_adjust_stats_req(struct bnx2x *bp) {} in bnx2x_iov_adjust_stats_req()
575 static inline void bnx2x_vf_fill_fw_str(struct bnx2x *bp, char *buf, in bnx2x_vf_fill_fw_str()
577 static inline int bnx2x_vf_ustorm_prods_offset(struct bnx2x *bp, in bnx2x_vf_ustorm_prods_offset()
579 static inline enum sample_bulletin_result bnx2x_sample_bulletin(struct bnx2x *bp) in bnx2x_sample_bulletin()
583 static inline void bnx2x_timer_sriov(struct bnx2x *bp) {} in bnx2x_timer_sriov()
585 static inline void __iomem *bnx2x_vf_doorbells(struct bnx2x *bp) in bnx2x_vf_doorbells()
590 static inline void bnx2x_vf_pci_dealloc(struct bnx2x *bp) {} in bnx2x_vf_pci_dealloc()
591 static inline int bnx2x_vf_pci_alloc(struct bnx2x *bp) {return 0; } in bnx2x_vf_pci_alloc()
592 static inline void bnx2x_pf_set_vfs_vlan(struct bnx2x *bp) {} in bnx2x_pf_set_vfs_vlan()
594 static inline void bnx2x_iov_channel_down(struct bnx2x *bp) {} in bnx2x_iov_channel_down()
597 static inline void bnx2x_schedule_iov_task(struct bnx2x *bp, enum bnx2x_iov_flag flag) {} in bnx2x_schedule_iov_task()
598 static inline void bnx2x_iov_link_update(struct bnx2x *bp) {} in bnx2x_iov_link_update()
599 static inline int bnx2x_iov_link_update_vf(struct bnx2x *bp, int idx) {return 0; } in bnx2x_iov_link_update_vf()