Lines Matching full:u16

94 	u16  max;		/* Max resource id or count */
100 u16 *fn_map; /* LF to pcifunc mapping */
185 u16 bmap_entries; /* Number of unreserved MCAM entries */
186 u16 bmap_fcnt; /* MCAM entries free count */
187 u16 *entry2pfvf_map;
188 u16 *entry2cntr_map;
189 u16 *cntr2pfvf_map;
190 u16 *cntr_refcnt;
191 u16 *entry2target_pffunc;
195 u16 banksize; /* Number of MCAM entries in each bank */
196 u16 total_entries; /* Total number of MCAM entries */
197 u16 nixlf_offset; /* Offset of nixlf rsvd uncast entries */
198 u16 pf_offset; /* Offset of PF's rsvd bcast, promisc entries */
199 u16 lprio_count;
200 u16 lprio_start;
201 u16 hprio_count;
202 u16 hprio_end;
203 u16 rx_miss_act_cntr; /* Counter for RX MISS action */
216 u16 sso;
217 u16 ssow;
218 u16 cptlfs;
219 u16 timlfs;
220 u16 cpt1_lfs;
226 u16 *msix_lfmap; /* Vector to block LF mapping */
246 u16 rx_chan_base;
247 u16 tx_chan_base;
250 u16 maxlen;
251 u16 minlen;
258 u16 bcast_mce_idx;
259 u16 mcast_mce_idx;
260 u16 promisc_mce_idx;
320 u16 tl1_schq;
321 u16 tl2_schq;
344 u16 *entry2pfvf_map;
350 u16 *pfvf_map;
351 u16 *match_id;
352 u16 *ref_count;
376 u16 nix_txsch_per_cgx_lmac; /* Max Q's transmitting to CGX LMAC */
377 u16 nix_txsch_per_lbk_lmac; /* Max Q's transmitting to LBK LMAC */
378 u16 nix_txsch_per_sdp_lmac; /* Max Q's transmitting to SDP LMAC */
395 u16 total_vfs; /* Max RVU VFs HW supports */
396 u16 max_vfs_per_pf; /* Max VFs that can be attached to a PF */
399 u16 cgx_chan_base; /* CGX base channel number */
400 u16 lbk_chan_base; /* LBK base channel number */
401 u16 sdp_chan_base; /* SDP base channel number */
402 u16 cpt_chan_base; /* CPT base channel number */
411 u16 npc_counters; /* No of match stats counters */
490 u16 *entry2pcifunc;
491 u16 mode;
492 u16 start_entry;
518 u16 num_vec;
526 u16 cgx_mapped_vfs; /* maximum CGX mapped VFs */
680 static inline u16 rvu_nix_chan_cgx(struct rvu *rvu, u8 cgxid, in rvu_nix_chan_cgx()
684 u16 cgx_chans = nix_const & 0xFFULL; in rvu_nix_chan_cgx()
694 static inline u16 rvu_nix_chan_lbk(struct rvu *rvu, u8 lbkid, in rvu_nix_chan_lbk()
698 u16 lbk_chans = (nix_const >> 16) & 0xFFULL; in rvu_nix_chan_lbk()
707 static inline u16 rvu_nix_chan_sdp(struct rvu *rvu, u8 chan) in rvu_nix_chan_sdp()
717 static inline u16 rvu_nix_chan_cpt(struct rvu *rvu, u8 chan) in rvu_nix_chan_cpt()
735 static inline bool is_afvf(u16 pcifunc) in is_afvf()
740 static inline bool is_vf(u16 pcifunc) in is_vf()
746 static inline bool is_pffunc_af(u16 pcifunc) in is_pffunc_af()
766 u16 rvu_get_rsrc_mapcount(struct rvu_pfvf *pfvf, int blkaddr);
767 int rvu_get_pf(u16 pcifunc);
771 bool is_pffunc_map_valid(struct rvu *rvu, u16 pcifunc, int blktype);
772 int rvu_get_lf(struct rvu *rvu, struct rvu_block *block, u16 pcifunc, u16 slot);
774 int rvu_get_blkaddr(struct rvu *rvu, int blktype, u16 pcifunc);
777 int rvu_get_blkaddr_from_slot(struct rvu *rvu, int blktype, u16 pcifunc,
778 u16 global_slot, u16 *slot_in_block);
795 bool is_sdp_pfvf(u16 pcifunc);
796 bool is_sdp_pf(u16 pcifunc);
797 bool is_sdp_vf(u16 pcifunc);
812 static inline bool is_cgx_vf(struct rvu *rvu, u16 pcifunc) in is_cgx_vf()
826 int rvu_cgx_config_rxtx(struct rvu *rvu, u16 pcifunc, bool start);
828 int rvu_cgx_start_stop_io(struct rvu *rvu, u16 pcifunc, bool start);
831 void rvu_cgx_disable_dmac_entries(struct rvu *rvu, u16 pcifunc);
836 void rvu_npa_lf_teardown(struct rvu *rvu, u16 pcifunc, int npalf);
841 bool is_nixlf_attached(struct rvu *rvu, u16 pcifunc);
847 void rvu_nix_lf_teardown(struct rvu *rvu, u16 pcifunc, int blkaddr, int npalf);
848 int nix_get_nixlf(struct rvu *rvu, u16 pcifunc, int *nixlf, int *nix_blkaddr);
849 int nix_update_mce_list(struct rvu *rvu, u16 pcifunc,
852 void nix_get_mce_list(struct rvu *rvu, u16 pcifunc, int type,
857 int nix_get_struct_ptrs(struct rvu *rvu, u16 pcifunc,
859 int rvu_nix_setup_ratelimit_aggr(struct rvu *rvu, u16 pcifunc,
860 u16 rq_idx, u16 match_id);
864 u16 pcifunc, u8 ctype, u32 qidx);
865 int rvu_get_nix_blkaddr(struct rvu *rvu, u16 pcifunc);
869 void rvu_nix_tx_tl2_cfg(struct rvu *rvu, int blkaddr, u16 pcifunc,
871 void rvu_nix_mcast_flr_free_entries(struct rvu *rvu, u16 pcifunc);
872 int rvu_nix_mcast_get_mce_index(struct rvu *rvu, u16 pcifunc,
874 int rvu_nix_mcast_update_mcam_entry(struct rvu *rvu, u16 pcifunc,
875 u32 mcast_grp_idx, u16 mcam_index);
879 int rvu_npc_get_pkind(struct rvu *rvu, u16 pf);
881 int npc_config_ts_kpuaction(struct rvu *rvu, int pf, u16 pcifunc, bool en);
882 void rvu_npc_install_ucast_entry(struct rvu *rvu, u16 pcifunc,
884 void rvu_npc_install_promisc_entry(struct rvu *rvu, u16 pcifunc,
886 void rvu_npc_enable_promisc_entry(struct rvu *rvu, u16 pcifunc, int nixlf,
888 void rvu_npc_install_bcast_match_entry(struct rvu *rvu, u16 pcifunc,
890 void rvu_npc_enable_bcast_entry(struct rvu *rvu, u16 pcifunc, int nixlf,
892 void rvu_npc_install_allmulti_entry(struct rvu *rvu, u16 pcifunc, int nixlf,
894 void rvu_npc_enable_allmulti_entry(struct rvu *rvu, u16 pcifunc, int nixlf,
897 void npc_enadis_default_mce_entry(struct rvu *rvu, u16 pcifunc,
899 void rvu_npc_disable_mcam_entries(struct rvu *rvu, u16 pcifunc, int nixlf);
901 void rvu_npc_free_mcam_entries(struct rvu *rvu, u16 pcifunc, int nixlf);
902 void rvu_npc_disable_default_entries(struct rvu *rvu, u16 pcifunc, int nixlf);
903 void rvu_npc_enable_default_entries(struct rvu *rvu, u16 pcifunc, int nixlf);
904 void rvu_npc_update_flowkey_alg_idx(struct rvu *rvu, u16 pcifunc, int nixlf,
907 void rvu_npc_get_mcam_entry_alloc_info(struct rvu *rvu, u16 pcifunc,
910 void rvu_npc_get_mcam_counter_alloc_info(struct rvu *rvu, u16 pcifunc,
920 void npc_mcam_enable_flows(struct rvu *rvu, u16 target);
921 void npc_mcam_disable_flows(struct rvu *rvu, u16 target);
929 int blkaddr, u16 src, struct mcam_entry *entry,
931 bool is_cgx_config_permitted(struct rvu *rvu, u16 pcifunc);
937 int rvu_cgx_tx_enable(struct rvu *rvu, u16 pcifunc, bool enable);
938 int rvu_cgx_prio_flow_ctrl_cfg(struct rvu *rvu, u16 pcifunc, u8 tx_pause, u8 rx_pause,
939 u16 pfc_en);
940 int rvu_cgx_cfg_pause_frm(struct rvu *rvu, u16 pcifunc, u8 tx_pause, u8 rx_pause);
941 void rvu_mac_reset(struct rvu *rvu, u16 pcifunc);
943 int npc_get_nixlf_mcam_index(struct npc_mcam *mcam, u16 pcifunc, int nixlf,
948 int npc_install_mcam_drop_rule(struct rvu *rvu, int mcam_idx, u16 *counter_idx,
959 int rvu_cpt_lf_teardown(struct rvu *rvu, u16 pcifunc, int blkaddr, int lf,
961 int rvu_cpt_ctx_flush(struct rvu *rvu, u16 pcifunc);
975 void rvu_reset_lmt_map_tbl(struct rvu *rvu, u16 pcifunc);
991 void rvu_switch_update_rules(struct rvu *rvu, u16 pcifunc);
993 int rvu_npc_set_parse_mode(struct rvu *rvu, u16 pcifunc, u64 mode, u8 dir,
1000 int rvu_mcs_flr_handler(struct rvu *rvu, u16 pcifunc);