Lines Matching refs:bp

214 #define BNX2X_NR_VIRTFN(bp)	((bp)->vfdb->sriov.nr_virtfn)  argument
216 #define for_each_vf(bp, var) \ argument
217 for ((var) = 0; (var) < BNX2X_NR_VIRTFN(bp); (var)++)
227 #define HW_VF_HANDLE(bp, abs_vfid) \ argument
228 (u16)(BP_ABS_FUNC((bp)) | (1<<3) | ((u16)(abs_vfid) << 4))
235 #define GET_NUM_VFS_PER_PATH(bp) 64 /* use max possible value */ argument
236 #define GET_NUM_VFS_PER_PF(bp) ((bp)->vfdb ? (bp)->vfdb->sriov.total \ argument
242 void bnx2x_lock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf,
245 void bnx2x_unlock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf,
313 #define BP_VFDB(bp) ((bp)->vfdb) argument
316 #define BP_VF(bp, idx) ((BP_VFDB(bp) && (bp)->vfdb->vfs) ? \ argument
317 &((bp)->vfdb->vfs[idx]) : NULL)
318 #define bnx2x_vf(bp, idx, var) ((bp)->vfdb->vfs[idx].var) argument
325 #define BP_VF_CXT_PAGE(bp, i) (&(bp)->vfdb->context[i]) argument
330 #define BP_VF_MBX_DMA(bp) (&((bp)->vfdb->mbx_dma)) argument
332 #define BP_VF_MBX(bp, vfid) (&((bp)->vfdb->mbxs[vfid])) argument
335 #define BP_VF_BULLETIN_DMA(bp) (&((bp)->vfdb->bulletin_dma)) argument
336 #define BP_VF_BULLETIN(bp, vf) \ argument
337 (((struct pf_vf_bulletin_content *)(BP_VF_BULLETIN_DMA(bp)->addr)) \
341 #define bnx2x_vf_sp(bp, vf, field) ((bp)->vfdb->sp_dma.addr + \ argument
344 #define bnx2x_vf_sp_map(bp, vf, field) ((bp)->vfdb->sp_dma.mapping + \ argument
399 int bnx2x_iov_init_ilt(struct bnx2x *bp, u16 line);
400 int bnx2x_iov_init_one(struct bnx2x *bp, int int_mode_param, int num_vfs_param);
401 void bnx2x_iov_remove_one(struct bnx2x *bp);
402 void bnx2x_iov_free_mem(struct bnx2x *bp);
403 int bnx2x_iov_alloc_mem(struct bnx2x *bp);
404 int bnx2x_iov_nic_init(struct bnx2x *bp);
405 int bnx2x_iov_chip_cleanup(struct bnx2x *bp);
406 void bnx2x_iov_init_dq(struct bnx2x *bp);
407 void bnx2x_iov_init_dmae(struct bnx2x *bp);
408 void bnx2x_iov_set_queue_sp_obj(struct bnx2x *bp, int vf_cid,
410 int bnx2x_iov_eq_sp_event(struct bnx2x *bp, union event_ring_elem *elem);
411 void bnx2x_iov_adjust_stats_req(struct bnx2x *bp);
412 void bnx2x_iov_storm_stats_update(struct bnx2x *bp);
414 void bnx2x_vf_mbx(struct bnx2x *bp);
415 void bnx2x_vf_mbx_schedule(struct bnx2x *bp,
417 void bnx2x_vf_enable_mbx(struct bnx2x *bp, u8 abs_vfid);
423 int bnx2x_vf_acquire(struct bnx2x *bp, struct bnx2x_virtf *vf,
426 int bnx2x_vf_init(struct bnx2x *bp, struct bnx2x_virtf *vf,
430 void bnx2x_vfop_qctor_dump_tx(struct bnx2x *bp, struct bnx2x_virtf *vf,
435 void bnx2x_vfop_qctor_dump_rx(struct bnx2x *bp, struct bnx2x_virtf *vf,
440 void bnx2x_vfop_qctor_prep(struct bnx2x *bp,
446 int bnx2x_vf_mac_vlan_config_list(struct bnx2x *bp, struct bnx2x_virtf *vf,
450 int bnx2x_vf_queue_setup(struct bnx2x *bp, struct bnx2x_virtf *vf, int qid,
453 int bnx2x_vf_queue_teardown(struct bnx2x *bp, struct bnx2x_virtf *vf, int qid);
455 int bnx2x_vf_mcast(struct bnx2x *bp, struct bnx2x_virtf *vf,
458 int bnx2x_vf_rxmode(struct bnx2x *bp, struct bnx2x_virtf *vf,
461 int bnx2x_vf_close(struct bnx2x *bp, struct bnx2x_virtf *vf);
463 int bnx2x_vf_free(struct bnx2x *bp, struct bnx2x_virtf *vf);
465 int bnx2x_vf_rss_update(struct bnx2x *bp, struct bnx2x_virtf *vf,
468 int bnx2x_vf_tpa_update(struct bnx2x *bp, struct bnx2x_virtf *vf,
477 int bnx2x_vf_release(struct bnx2x *bp, struct bnx2x_virtf *vf);
478 int bnx2x_vf_idx_by_abs_fid(struct bnx2x *bp, u16 abs_vfid);
479 u8 bnx2x_vf_max_queue_cnt(struct bnx2x *bp, struct bnx2x_virtf *vf);
484 int bnx2x_vf_flr_clnup_epilog(struct bnx2x *bp, u8 abs_vfid);
485 void bnx2x_vf_enable_access(struct bnx2x *bp, u8 abs_vfid);
488 void bnx2x_vf_handle_flr_event(struct bnx2x *bp);
493 int bnx2x_post_vf_bulletin(struct bnx2x *bp, int vf);
497 enum sample_bulletin_result bnx2x_sample_bulletin(struct bnx2x *bp);
500 int bnx2x_vfpf_acquire(struct bnx2x *bp, u8 tx_count, u8 rx_count);
501 int bnx2x_vfpf_release(struct bnx2x *bp);
502 int bnx2x_vfpf_release(struct bnx2x *bp);
503 int bnx2x_vfpf_init(struct bnx2x *bp);
504 void bnx2x_vfpf_close_vf(struct bnx2x *bp);
505 int bnx2x_vfpf_setup_q(struct bnx2x *bp, struct bnx2x_fastpath *fp,
507 int bnx2x_vfpf_config_mac(struct bnx2x *bp, u8 *addr, u8 vf_qid, bool set);
508 int bnx2x_vfpf_config_rss(struct bnx2x *bp,
511 int bnx2x_vfpf_storm_rx_mode(struct bnx2x *bp);
513 static inline void bnx2x_vf_fill_fw_str(struct bnx2x *bp, char *buf, in bnx2x_vf_fill_fw_str() argument
516 strlcpy(buf, bp->acquire_resp.pfdev_info.fw_ver, buf_len); in bnx2x_vf_fill_fw_str()
519 static inline int bnx2x_vf_ustorm_prods_offset(struct bnx2x *bp, in bnx2x_vf_ustorm_prods_offset() argument
523 bp->acquire_resp.resc.hw_qid[fp->index] * in bnx2x_vf_ustorm_prods_offset()
527 enum sample_bulletin_result bnx2x_sample_bulletin(struct bnx2x *bp);
528 void bnx2x_timer_sriov(struct bnx2x *bp);
529 void __iomem *bnx2x_vf_doorbells(struct bnx2x *bp);
530 void bnx2x_vf_pci_dealloc(struct bnx2x *bp);
531 int bnx2x_vf_pci_alloc(struct bnx2x *bp);
532 int bnx2x_enable_sriov(struct bnx2x *bp);
533 void bnx2x_disable_sriov(struct bnx2x *bp);
534 static inline int bnx2x_vf_headroom(struct bnx2x *bp) in bnx2x_vf_headroom() argument
536 return bp->vfdb->sriov.nr_virtfn * BNX2X_CIDS_PER_VF; in bnx2x_vf_headroom()
538 void bnx2x_pf_set_vfs_vlan(struct bnx2x *bp);
540 void bnx2x_iov_channel_down(struct bnx2x *bp);
544 void bnx2x_schedule_iov_task(struct bnx2x *bp, enum bnx2x_iov_flag flag);
546 void bnx2x_iov_link_update(struct bnx2x *bp);
547 int bnx2x_iov_link_update_vf(struct bnx2x *bp, int idx);
551 int bnx2x_vfpf_update_vlan(struct bnx2x *bp, u16 vid, u8 vf_qid, bool add);
554 #define GET_NUM_VFS_PER_PATH(bp) 0 argument
555 #define GET_NUM_VFS_PER_PF(bp) 0 argument
559 static inline void bnx2x_iov_set_queue_sp_obj(struct bnx2x *bp, int vf_cid, in bnx2x_iov_set_queue_sp_obj() argument
561 static inline void bnx2x_vf_handle_flr_event(struct bnx2x *bp) {} in bnx2x_vf_handle_flr_event() argument
562 static inline int bnx2x_iov_eq_sp_event(struct bnx2x *bp, in bnx2x_iov_eq_sp_event() argument
564 static inline void bnx2x_vf_mbx(struct bnx2x *bp) {} in bnx2x_vf_mbx() argument
565 static inline void bnx2x_vf_mbx_schedule(struct bnx2x *bp, in bnx2x_vf_mbx_schedule() argument
567 static inline int bnx2x_iov_init_ilt(struct bnx2x *bp, u16 line) {return line; } in bnx2x_iov_init_ilt() argument
568 static inline void bnx2x_iov_init_dq(struct bnx2x *bp) {} in bnx2x_iov_init_dq() argument
569 static inline int bnx2x_iov_alloc_mem(struct bnx2x *bp) {return 0; } in bnx2x_iov_alloc_mem() argument
570 static inline void bnx2x_iov_free_mem(struct bnx2x *bp) {} in bnx2x_iov_free_mem() argument
571 static inline int bnx2x_iov_chip_cleanup(struct bnx2x *bp) {return 0; } in bnx2x_iov_chip_cleanup() argument
572 static inline void bnx2x_iov_init_dmae(struct bnx2x *bp) {} in bnx2x_iov_init_dmae() argument
573 static inline int bnx2x_iov_init_one(struct bnx2x *bp, int int_mode_param, in bnx2x_iov_init_one() argument
575 static inline void bnx2x_iov_remove_one(struct bnx2x *bp) {} in bnx2x_iov_remove_one() argument
576 static inline int bnx2x_enable_sriov(struct bnx2x *bp) {return 0; } in bnx2x_enable_sriov() argument
577 static inline void bnx2x_disable_sriov(struct bnx2x *bp) {} in bnx2x_disable_sriov() argument
578 static inline int bnx2x_vfpf_acquire(struct bnx2x *bp, in bnx2x_vfpf_acquire() argument
580 static inline int bnx2x_vfpf_release(struct bnx2x *bp) {return 0; } in bnx2x_vfpf_release() argument
581 static inline int bnx2x_vfpf_init(struct bnx2x *bp) {return 0; } in bnx2x_vfpf_init() argument
582 static inline void bnx2x_vfpf_close_vf(struct bnx2x *bp) {} in bnx2x_vfpf_close_vf() argument
583 static inline int bnx2x_vfpf_setup_q(struct bnx2x *bp, struct bnx2x_fastpath *fp, bool is_leading) … in bnx2x_vfpf_setup_q() argument
584 static inline int bnx2x_vfpf_config_mac(struct bnx2x *bp, u8 *addr, in bnx2x_vfpf_config_mac() argument
586 static inline int bnx2x_vfpf_config_rss(struct bnx2x *bp, in bnx2x_vfpf_config_rss() argument
589 static inline int bnx2x_vfpf_storm_rx_mode(struct bnx2x *bp) {return 0; } in bnx2x_vfpf_storm_rx_mode() argument
590 static inline int bnx2x_iov_nic_init(struct bnx2x *bp) {return 0; } in bnx2x_iov_nic_init() argument
591 static inline int bnx2x_vf_headroom(struct bnx2x *bp) {return 0; } in bnx2x_vf_headroom() argument
592 static inline void bnx2x_iov_adjust_stats_req(struct bnx2x *bp) {} in bnx2x_iov_adjust_stats_req() argument
593 static inline void bnx2x_vf_fill_fw_str(struct bnx2x *bp, char *buf, in bnx2x_vf_fill_fw_str() argument
595 static inline int bnx2x_vf_ustorm_prods_offset(struct bnx2x *bp, in bnx2x_vf_ustorm_prods_offset() argument
597 static inline enum sample_bulletin_result bnx2x_sample_bulletin(struct bnx2x *bp) in bnx2x_sample_bulletin() argument
601 static inline void bnx2x_timer_sriov(struct bnx2x *bp) {} in bnx2x_timer_sriov() argument
603 static inline void __iomem *bnx2x_vf_doorbells(struct bnx2x *bp) in bnx2x_vf_doorbells() argument
608 static inline void bnx2x_vf_pci_dealloc(struct bnx2x *bp) {} in bnx2x_vf_pci_dealloc() argument
609 static inline int bnx2x_vf_pci_alloc(struct bnx2x *bp) {return 0; } in bnx2x_vf_pci_alloc() argument
610 static inline void bnx2x_pf_set_vfs_vlan(struct bnx2x *bp) {} in bnx2x_pf_set_vfs_vlan() argument
612 static inline void bnx2x_iov_channel_down(struct bnx2x *bp) {} in bnx2x_iov_channel_down() argument
615 static inline void bnx2x_schedule_iov_task(struct bnx2x *bp, enum bnx2x_iov_flag flag) {} in bnx2x_schedule_iov_task() argument
616 static inline void bnx2x_iov_link_update(struct bnx2x *bp) {} in bnx2x_iov_link_update() argument
617 static inline int bnx2x_iov_link_update_vf(struct bnx2x *bp, int idx) {return 0; } in bnx2x_iov_link_update_vf() argument
625 static inline int bnx2x_vfpf_update_vlan(struct bnx2x *bp, u16 vid, u8 vf_qid, bool add) {return 0;… in bnx2x_vfpf_update_vlan() argument