Lines Matching refs:vf

166 #define vf_rxq_count(vf)		((vf)->alloc_resc.num_rxqs)  argument
167 #define vf_txq_count(vf) ((vf)->alloc_resc.num_txqs) argument
168 #define vf_sb_count(vf) ((vf)->alloc_resc.num_sbs) argument
169 #define vf_mac_rules_cnt(vf) ((vf)->alloc_resc.num_mac_filters) argument
170 #define vf_vlan_rules_cnt(vf) ((vf)->alloc_resc.num_vlan_filters) argument
171 #define vf_mc_rules_cnt(vf) ((vf)->alloc_resc.num_mc_filters) argument
179 #define bnx2x_vfq(vf, nr, var) ((vf)->vfqs[(nr)].var) argument
180 #define bnx2x_leading_vfq(vf, var) ((vf)->vfqs[LEADING_IDX].var) argument
224 #define for_each_vfq(vf, var) \ argument
225 for ((var) = 0; (var) < vf_rxq_count(vf); (var)++)
227 #define for_each_vf_sb(vf, var) \ argument
228 for ((var) = 0; (var) < vf_sb_count(vf); (var)++)
230 #define is_vf_multi(vf) (vf_rxq_count(vf) > 1) argument
247 void bnx2x_lock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf,
250 void bnx2x_unlock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf,
341 #define BP_VF_BULLETIN(bp, vf) \ argument
343 + (vf))
346 #define bnx2x_vf_sp(bp, vf, field) ((bp)->vfdb->sp_dma.addr + \ argument
347 (vf)->index * sizeof(struct bnx2x_vf_sp) + \
349 #define bnx2x_vf_sp_map(bp, vf, field) ((bp)->vfdb->sp_dma.mapping + \ argument
350 (vf)->index * sizeof(struct bnx2x_vf_sp) + \
369 static inline struct bnx2x_vf_queue *vfq_get(struct bnx2x_virtf *vf, u8 index) in vfq_get() argument
371 return &(vf->vfqs[index]); in vfq_get()
375 static inline u8 vf_igu_sb(struct bnx2x_virtf *vf, u16 sb_idx) in vf_igu_sb() argument
377 return vf->igu_base_id + sb_idx; in vf_igu_sb()
380 static inline u8 vf_hc_qzone(struct bnx2x_virtf *vf, u16 sb_idx) in vf_hc_qzone() argument
382 return vf_igu_sb(vf, sb_idx); in vf_hc_qzone()
385 static u8 vfq_cl_id(struct bnx2x_virtf *vf, struct bnx2x_vf_queue *q) in vfq_cl_id() argument
387 return vf->igu_base_id + q->index; in vfq_cl_id()
390 static inline u8 vfq_stat_id(struct bnx2x_virtf *vf, struct bnx2x_vf_queue *q) in vfq_stat_id() argument
392 if (vf->cfg_flags & VF_CFG_STATS_COALESCE) in vfq_stat_id()
393 return vf->leading_rss; in vfq_stat_id()
395 return vfq_cl_id(vf, q); in vfq_stat_id()
398 static inline u8 vfq_qzone_id(struct bnx2x_virtf *vf, struct bnx2x_vf_queue *q) in vfq_qzone_id() argument
400 return vfq_cl_id(vf, q); in vfq_qzone_id()
428 int bnx2x_vf_acquire(struct bnx2x *bp, struct bnx2x_virtf *vf,
431 int bnx2x_vf_init(struct bnx2x *bp, struct bnx2x_virtf *vf,
435 void bnx2x_vfop_qctor_dump_tx(struct bnx2x *bp, struct bnx2x_virtf *vf,
440 void bnx2x_vfop_qctor_dump_rx(struct bnx2x *bp, struct bnx2x_virtf *vf,
446 struct bnx2x_virtf *vf,
451 int bnx2x_vf_mac_vlan_config_list(struct bnx2x *bp, struct bnx2x_virtf *vf,
455 int bnx2x_vf_queue_setup(struct bnx2x *bp, struct bnx2x_virtf *vf, int qid,
458 int bnx2x_vf_queue_teardown(struct bnx2x *bp, struct bnx2x_virtf *vf, int qid);
460 int bnx2x_vf_mcast(struct bnx2x *bp, struct bnx2x_virtf *vf,
463 int bnx2x_vf_rxmode(struct bnx2x *bp, struct bnx2x_virtf *vf,
466 int bnx2x_vf_close(struct bnx2x *bp, struct bnx2x_virtf *vf);
468 int bnx2x_vf_free(struct bnx2x *bp, struct bnx2x_virtf *vf);
470 int bnx2x_vf_rss_update(struct bnx2x *bp, struct bnx2x_virtf *vf,
473 int bnx2x_vf_tpa_update(struct bnx2x *bp, struct bnx2x_virtf *vf,
482 int bnx2x_vf_release(struct bnx2x *bp, struct bnx2x_virtf *vf);
484 u8 bnx2x_vf_max_queue_cnt(struct bnx2x *bp, struct bnx2x_virtf *vf);
498 int bnx2x_post_vf_bulletin(struct bnx2x *bp, int vf);
554 int bnx2x_set_vf_link_state(struct net_device *dev, int vf, int link_state);
624 static inline int bnx2x_set_vf_link_state(struct net_device *dev, int vf, in bnx2x_set_vf_link_state() argument