• Home
  • Raw
  • Download

Lines Matching refs:vf

107 typedef void (*vfop_handler_t)(struct bnx2x *bp, struct bnx2x_virtf *vf);
231 #define vf_rxq_count(vf) ((vf)->alloc_resc.num_rxqs) argument
232 #define vf_txq_count(vf) ((vf)->alloc_resc.num_txqs) argument
233 #define vf_sb_count(vf) ((vf)->alloc_resc.num_sbs) argument
234 #define vf_mac_rules_cnt(vf) ((vf)->alloc_resc.num_mac_filters) argument
235 #define vf_vlan_rules_cnt(vf) ((vf)->alloc_resc.num_vlan_filters) argument
236 #define vf_mc_rules_cnt(vf) ((vf)->alloc_resc.num_mc_filters) argument
242 #define bnx2x_vfq(vf, nr, var) ((vf)->vfqs[(nr)].var) argument
285 #define for_each_vfq(vf, var) \ argument
286 for ((var) = 0; (var) < vf_rxq_count(vf); (var)++)
288 #define for_each_vf_sb(vf, var) \ argument
289 for ((var) = 0; (var) < vf_sb_count(vf); (var)++)
291 #define is_vf_multi(vf) (vf_rxq_count(vf) > 1) argument
302 void bnx2x_lock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf,
305 void bnx2x_unlock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf,
392 #define BP_VF_BULLETIN(bp, vf) \ argument
394 + (vf))
397 #define bnx2x_vf_sp(bp, vf, field) ((bp)->vfdb->sp_dma.addr + \ argument
398 (vf)->index * sizeof(struct bnx2x_vf_sp) + \
400 #define bnx2x_vf_sp_map(bp, vf, field) ((bp)->vfdb->sp_dma.mapping + \ argument
401 (vf)->index * sizeof(struct bnx2x_vf_sp) + \
409 static inline struct bnx2x_vf_queue *vfq_get(struct bnx2x_virtf *vf, u8 index) in vfq_get() argument
411 return &(vf->vfqs[index]); in vfq_get()
420 static inline u8 vf_igu_sb(struct bnx2x_virtf *vf, u16 sb_idx) in vf_igu_sb() argument
422 return vf->igu_base_id + sb_idx; in vf_igu_sb()
425 static inline u8 vf_hc_qzone(struct bnx2x_virtf *vf, u16 sb_idx) in vf_hc_qzone() argument
427 return vf_igu_sb(vf, sb_idx); in vf_hc_qzone()
430 static u8 vfq_cl_id(struct bnx2x_virtf *vf, struct bnx2x_vf_queue *q) in vfq_cl_id() argument
432 return vf->igu_base_id + q->index; in vfq_cl_id()
435 static inline u8 vfq_stat_id(struct bnx2x_virtf *vf, struct bnx2x_vf_queue *q) in vfq_stat_id() argument
437 return vfq_cl_id(vf, q); in vfq_stat_id()
440 static inline u8 vfq_qzone_id(struct bnx2x_virtf *vf, struct bnx2x_vf_queue *q) in vfq_qzone_id() argument
442 return vfq_cl_id(vf, q); in vfq_qzone_id()
470 int bnx2x_vf_acquire(struct bnx2x *bp, struct bnx2x_virtf *vf,
473 int bnx2x_vf_init(struct bnx2x *bp, struct bnx2x_virtf *vf,
489 #define bnx2x_vfop_finalize(vf, rc, next) do { \ argument
500 atomic_set(&vf->op_in_progress, 1); \
509 vfop->op_p = &vf->op_params; \
515 struct bnx2x_virtf *vf) in bnx2x_vfop_cur() argument
517 …WARN(!mutex_is_locked(&vf->op_mutex), "about to access vf op linked list but mutex was not locked!… in bnx2x_vfop_cur()
518 WARN_ON(list_empty(&vf->op_list_head)); in bnx2x_vfop_cur()
519 return list_first_entry(&vf->op_list_head, struct bnx2x_vfop, link); in bnx2x_vfop_cur()
523 struct bnx2x_virtf *vf) in bnx2x_vfop_add() argument
527 …WARN(!mutex_is_locked(&vf->op_mutex), "about to access vf op linked list but mutex was not locked!… in bnx2x_vfop_add()
530 list_add(&vfop->link, &vf->op_list_head); in bnx2x_vfop_add()
535 static inline void bnx2x_vfop_end(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_vfop_end() argument
547 WARN(!mutex_is_locked(&vf->op_mutex), in bnx2x_vfop_end()
551 if (list_empty(&vf->op_list_head)) { in bnx2x_vfop_end()
553 vf->op_rc = vfop->rc; in bnx2x_vfop_end()
555 vf->op_rc, vfop->rc); in bnx2x_vfop_end()
560 cur_vfop = bnx2x_vfop_cur(bp, vf); in bnx2x_vfop_end()
563 vf->op_rc, vfop->rc); in bnx2x_vfop_end()
569 vfop->done(bp, vf); in bnx2x_vfop_end()
574 bnx2x_unlock_vf_pf_channel(bp, vf, CHANNEL_TLV_PF_RELEASE_VF); in bnx2x_vfop_end()
578 vf->op_rc, vfop->rc); in bnx2x_vfop_end()
583 if (list_empty(&vf->op_list_head)) { in bnx2x_vfop_end()
585 vf->op_wait_blocking = false; in bnx2x_vfop_end()
592 struct bnx2x_virtf *vf) in bnx2x_vfop_wait_blocking() argument
599 if (vf->op_wait_blocking == false) { in bnx2x_vfop_wait_blocking()
620 struct bnx2x_virtf *vf, in bnx2x_vfop_transition() argument
625 vf->op_wait_blocking = true; in bnx2x_vfop_transition()
626 transition(bp, vf); in bnx2x_vfop_transition()
628 return bnx2x_vfop_wait_blocking(bp, vf); in bnx2x_vfop_transition()
633 void bnx2x_vfop_qctor_dump_tx(struct bnx2x *bp, struct bnx2x_virtf *vf,
638 void bnx2x_vfop_qctor_dump_rx(struct bnx2x *bp, struct bnx2x_virtf *vf,
644 struct bnx2x_virtf *vf,
649 struct bnx2x_virtf *vf,
655 struct bnx2x_virtf *vf,
660 struct bnx2x_virtf *vf,
666 struct bnx2x_virtf *vf,
671 struct bnx2x_virtf *vf,
676 struct bnx2x_virtf *vf,
682 struct bnx2x_virtf *vf,
687 struct bnx2x_virtf *vf,
691 struct bnx2x_virtf *vf,
699 void bnx2x_vf_release(struct bnx2x *bp, struct bnx2x_virtf *vf, bool block);
701 u8 bnx2x_vf_max_queue_cnt(struct bnx2x *bp, struct bnx2x_virtf *vf);
723 int bnx2x_post_vf_bulletin(struct bnx2x *bp, int vf);