Lines Matching refs:fp

126 int bnx2x_setup_queue(struct bnx2x *bp, struct bnx2x_fastpath *fp,
432 void bnx2x_sp_event(struct bnx2x_fastpath *fp, union eth_rx_cqe *rr_cqe);
498 struct bnx2x_fastpath *fp, in bnx2x_update_rx_prod() argument
520 REG_WR(bp, fp->ustorm_rx_prods_offset + i*4, in bnx2x_update_rx_prod()
527 fp->index, bd_prod, rx_comp_prod, rx_sge_prod); in bnx2x_update_rx_prod()
625 static inline void bnx2x_update_fpsb_idx(struct bnx2x_fastpath *fp) in bnx2x_update_fpsb_idx() argument
628 fp->fp_hc_idx = fp->sb_running_index[SM_RX_ID]; in bnx2x_update_fpsb_idx()
762 static inline bool bnx2x_has_tx_work(struct bnx2x_fastpath *fp) in bnx2x_has_tx_work() argument
765 for_each_cos_in_tx_queue(fp, cos) in bnx2x_has_tx_work()
766 if (bnx2x_tx_queue_has_work(fp->txdata_ptr[cos])) in bnx2x_has_tx_work()
773 static inline int bnx2x_has_rx_work(struct bnx2x_fastpath *fp) in bnx2x_has_rx_work() argument
779 cons = RCQ_BD(fp->rx_comp_cons); in bnx2x_has_rx_work()
780 cqe = &fp->rx_comp_ring[cons]; in bnx2x_has_rx_work()
797 struct bnx2x_fastpath *fp, u16 index) in bnx2x_free_rx_sge() argument
799 struct sw_rx_page *sw_buf = &fp->rx_page_ring[index]; in bnx2x_free_rx_sge()
801 struct eth_rx_sge *sge = &fp->rx_sge_ring[index]; in bnx2x_free_rx_sge()
849 static inline void bnx2x_clear_sge_mask_next_elems(struct bnx2x_fastpath *fp) in bnx2x_clear_sge_mask_next_elems() argument
857 BIT_VEC64_CLEAR_BIT(fp->sge_mask, idx); in bnx2x_clear_sge_mask_next_elems()
863 static inline void bnx2x_init_sge_ring_bit_mask(struct bnx2x_fastpath *fp) in bnx2x_init_sge_ring_bit_mask() argument
866 memset(fp->sge_mask, 0xff, sizeof(fp->sge_mask)); in bnx2x_init_sge_ring_bit_mask()
872 bnx2x_clear_sge_mask_next_elems(fp); in bnx2x_init_sge_ring_bit_mask()
880 static inline void bnx2x_reuse_rx_data(struct bnx2x_fastpath *fp, in bnx2x_reuse_rx_data() argument
883 struct sw_rx_bd *cons_rx_buf = &fp->rx_buf_ring[cons]; in bnx2x_reuse_rx_data()
884 struct sw_rx_bd *prod_rx_buf = &fp->rx_buf_ring[prod]; in bnx2x_reuse_rx_data()
885 struct eth_rx_bd *cons_bd = &fp->rx_desc_ring[cons]; in bnx2x_reuse_rx_data()
886 struct eth_rx_bd *prod_bd = &fp->rx_desc_ring[prod]; in bnx2x_reuse_rx_data()
968 struct bnx2x_fastpath *fp, int last) in bnx2x_free_rx_sge_range() argument
972 if (fp->mode == TPA_MODE_DISABLED) in bnx2x_free_rx_sge_range()
976 bnx2x_free_rx_sge(bp, fp, i); in bnx2x_free_rx_sge_range()
979 static inline void bnx2x_set_next_page_rx_bd(struct bnx2x_fastpath *fp) in bnx2x_set_next_page_rx_bd() argument
986 rx_bd = &fp->rx_desc_ring[RX_DESC_CNT * i - 2]; in bnx2x_set_next_page_rx_bd()
988 cpu_to_le32(U64_HI(fp->rx_desc_mapping + in bnx2x_set_next_page_rx_bd()
991 cpu_to_le32(U64_LO(fp->rx_desc_mapping + in bnx2x_set_next_page_rx_bd()
999 static inline u8 bnx2x_stats_id(struct bnx2x_fastpath *fp) in bnx2x_stats_id() argument
1001 struct bnx2x *bp = fp->bp; in bnx2x_stats_id()
1004 if (IS_FCOE_FP(fp)) in bnx2x_stats_id()
1006 return fp->cl_id; in bnx2x_stats_id()
1008 return fp->cl_id + BP_PORT(bp) * FP_SB_MAX_E1x; in bnx2x_stats_id()
1011 static inline void bnx2x_init_vlan_mac_fp_objs(struct bnx2x_fastpath *fp, in bnx2x_init_vlan_mac_fp_objs() argument
1014 struct bnx2x *bp = fp->bp; in bnx2x_init_vlan_mac_fp_objs()
1017 bnx2x_init_mac_obj(bp, &bnx2x_sp_obj(bp, fp).mac_obj, fp->cl_id, in bnx2x_init_vlan_mac_fp_objs()
1018 fp->cid, BP_FUNC(bp), bnx2x_sp(bp, mac_rdata), in bnx2x_init_vlan_mac_fp_objs()
1071 bnx2x_init_mcast_obj(bp, &bp->mcast_obj, bp->fp->cl_id, bp->fp->cid, in bnx2x_init_bp_objs()
1086 bnx2x_init_rss_config_obj(bp, &bp->rss_conf_obj, bp->fp->cl_id, in bnx2x_init_bp_objs()
1087 bp->fp->cid, BP_FUNC(bp), BP_FUNC(bp), in bnx2x_init_bp_objs()
1094 static inline u8 bnx2x_fp_qzone_id(struct bnx2x_fastpath *fp) in bnx2x_fp_qzone_id() argument
1096 if (CHIP_IS_E1x(fp->bp)) in bnx2x_fp_qzone_id()
1097 return fp->cl_id + BP_PORT(fp->bp) * ETH_MAX_RX_CLIENTS_E1H; in bnx2x_fp_qzone_id()
1099 return fp->cl_id; in bnx2x_fp_qzone_id()
1105 struct bnx2x_fastpath *fp) in bnx2x_init_txdata() argument
1110 txdata->parent_fp = fp; in bnx2x_init_txdata()
1111 txdata->tx_ring_size = IS_FCOE_FP(fp) ? MAX_TX_AVAIL : bp->tx_ring_size; in bnx2x_init_txdata()