Lines Matching defs:rvu
47 bool is_npc_interface_valid(struct rvu *rvu, u8 intf) in is_npc_interface_valid()
54 int rvu_npc_get_tx_nibble_cfg(struct rvu *rvu, u64 nibble_ena) in rvu_npc_get_tx_nibble_cfg()
64 static int npc_mcam_verify_pf_func(struct rvu *rvu, in npc_mcam_verify_pf_func()
86 void rvu_npc_set_pkind(struct rvu *rvu, int pkind, struct rvu_pfvf *pfvf) in rvu_npc_set_pkind()
100 int rvu_npc_get_pkind(struct rvu *rvu, u16 pf) in rvu_npc_get_pkind()
116 int npc_config_ts_kpuaction(struct rvu *rvu, int pf, u16 pcifunc, bool enable) in npc_config_ts_kpuaction()
148 struct rvu *rvu = hw->rvu; in npc_get_ucast_mcam_index() local
205 bool is_mcam_entry_enabled(struct rvu *rvu, struct npc_mcam *mcam, in is_mcam_entry_enabled()
216 void npc_enable_mcam_entry(struct rvu *rvu, struct npc_mcam *mcam, in npc_enable_mcam_entry()
230 static void npc_clear_mcam_entry(struct rvu *rvu, struct npc_mcam *mcam, in npc_clear_mcam_entry()
386 static u64 npc_get_default_entry_action(struct rvu *rvu, struct npc_mcam *mcam, in npc_get_default_entry_action()
402 static void npc_fixup_vf_rule(struct rvu *rvu, struct npc_mcam *mcam, in npc_fixup_vf_rule()
441 static void npc_config_mcam_entry(struct rvu *rvu, struct npc_mcam *mcam, in npc_config_mcam_entry()
516 void npc_read_mcam_entry(struct rvu *rvu, struct npc_mcam *mcam, in npc_read_mcam_entry()
552 static void npc_copy_mcam_entry(struct rvu *rvu, struct npc_mcam *mcam, in npc_copy_mcam_entry()
592 static u64 npc_get_mcam_action(struct rvu *rvu, struct npc_mcam *mcam, in npc_get_mcam_action()
602 void rvu_npc_install_ucast_entry(struct rvu *rvu, u16 pcifunc, in rvu_npc_install_ucast_entry()
657 void rvu_npc_install_promisc_entry(struct rvu *rvu, u16 pcifunc, in rvu_npc_install_promisc_entry()
742 void rvu_npc_enable_promisc_entry(struct rvu *rvu, u16 pcifunc, in rvu_npc_enable_promisc_entry()
760 void rvu_npc_install_bcast_match_entry(struct rvu *rvu, u16 pcifunc, in rvu_npc_install_bcast_match_entry()
822 void rvu_npc_enable_bcast_entry(struct rvu *rvu, u16 pcifunc, int nixlf, in rvu_npc_enable_bcast_entry()
840 void rvu_npc_install_allmulti_entry(struct rvu *rvu, u16 pcifunc, int nixlf, in rvu_npc_install_allmulti_entry()
926 void rvu_npc_enable_allmulti_entry(struct rvu *rvu, u16 pcifunc, int nixlf, in rvu_npc_enable_allmulti_entry()
944 static void npc_update_vf_flow_entry(struct rvu *rvu, struct npc_mcam *mcam, in npc_update_vf_flow_entry()
987 void rvu_npc_update_flowkey_alg_idx(struct rvu *rvu, u16 pcifunc, int nixlf, in rvu_npc_update_flowkey_alg_idx()
1058 void npc_enadis_default_mce_entry(struct rvu *rvu, u16 pcifunc, in npc_enadis_default_mce_entry()
1094 static void npc_enadis_default_entries(struct rvu *rvu, u16 pcifunc, in npc_enadis_default_entries()
1120 void rvu_npc_disable_default_entries(struct rvu *rvu, u16 pcifunc, int nixlf) in rvu_npc_disable_default_entries()
1134 bool rvu_npc_enable_mcam_by_entry_index(struct rvu *rvu, int entry, int intf, bool enable) in rvu_npc_enable_mcam_by_entry_index()
1162 void rvu_npc_enable_default_entries(struct rvu *rvu, u16 pcifunc, int nixlf) in rvu_npc_enable_default_entries()
1173 void rvu_npc_disable_mcam_entries(struct rvu *rvu, u16 pcifunc, int nixlf) in rvu_npc_disable_mcam_entries()
1210 void rvu_npc_free_mcam_entries(struct rvu *rvu, u16 pcifunc, int nixlf) in rvu_npc_free_mcam_entries()
1241 static void npc_program_mkex_rx(struct rvu *rvu, int blkaddr, in npc_program_mkex_rx()
1270 static void npc_program_mkex_tx(struct rvu *rvu, int blkaddr, in npc_program_mkex_tx()
1299 static void npc_program_mkex_profile(struct rvu *rvu, int blkaddr, in npc_program_mkex_profile()
1319 static int npc_fwdb_prfl_img_map(struct rvu *rvu, void __iomem **prfl_img_addr, in npc_fwdb_prfl_img_map()
1345 static void npc_load_mkex_profile(struct rvu *rvu, int blkaddr, in npc_load_mkex_profile()
1393 static void npc_config_kpuaction(struct rvu *rvu, int blkaddr, in npc_config_kpuaction()
1435 static void npc_config_kpucam(struct rvu *rvu, int blkaddr, in npc_config_kpucam()
1463 static void npc_program_kpu_profile(struct rvu *rvu, int blkaddr, int kpu, in npc_program_kpu_profile()
1523 static int npc_apply_custom_kpu(struct rvu *rvu, in npc_apply_custom_kpu()
1603 static int npc_load_kpu_prfl_img(struct rvu *rvu, void __iomem *prfl_addr, in npc_load_kpu_prfl_img()
1623 static int npc_fwdb_detect_load_prfl_img(struct rvu *rvu, uint64_t prfl_sz, in npc_fwdb_detect_load_prfl_img()
1661 static int npc_load_kpu_profile_fwdb(struct rvu *rvu, const char *kpu_profile) in npc_load_kpu_profile_fwdb()
1688 static void npc_load_kpu_profile(struct rvu *rvu) in npc_load_kpu_profile()
1765 static void npc_parser_profile_init(struct rvu *rvu, int blkaddr) in npc_parser_profile_init()
1800 static int npc_mcam_rsrcs_init(struct rvu *rvu, int blkaddr) in npc_mcam_rsrcs_init()
1923 static void rvu_npc_hw_init(struct rvu *rvu, int blkaddr) in rvu_npc_hw_init()
1968 static void rvu_npc_setup_interfaces(struct rvu *rvu, int blkaddr) in rvu_npc_setup_interfaces()
2037 int rvu_npc_init(struct rvu *rvu) in rvu_npc_init()
2121 void rvu_npc_freemem(struct rvu *rvu) in rvu_npc_freemem()
2135 void rvu_npc_get_mcam_entry_alloc_info(struct rvu *rvu, u16 pcifunc, in rvu_npc_get_mcam_entry_alloc_info()
2154 void rvu_npc_get_mcam_counter_alloc_info(struct rvu *rvu, u16 pcifunc, in rvu_npc_get_mcam_counter_alloc_info()
2206 static void npc_map_mcam_entry_and_cntr(struct rvu *rvu, struct npc_mcam *mcam, in npc_map_mcam_entry_and_cntr()
2222 static void npc_unmap_mcam_entry_and_cntr(struct rvu *rvu, in npc_unmap_mcam_entry_and_cntr()
2269 static void npc_mcam_free_all_entries(struct rvu *rvu, struct npc_mcam *mcam, in npc_mcam_free_all_entries()
2294 static void npc_mcam_free_all_counters(struct rvu *rvu, struct npc_mcam *mcam, in npc_mcam_free_all_counters()
2620 void npc_mcam_rsrcs_reserve(struct rvu *rvu, int blkaddr, int entry_idx) in npc_mcam_rsrcs_reserve()
2627 int rvu_mbox_handler_npc_mcam_alloc_entry(struct rvu *rvu, in rvu_mbox_handler_npc_mcam_alloc_entry()
2674 int rvu_mbox_handler_npc_mcam_free_entry(struct rvu *rvu, in rvu_mbox_handler_npc_mcam_free_entry()
2721 int rvu_mbox_handler_npc_mcam_read_entry(struct rvu *rvu, in rvu_mbox_handler_npc_mcam_read_entry()
2745 int rvu_mbox_handler_npc_mcam_write_entry(struct rvu *rvu, in rvu_mbox_handler_npc_mcam_write_entry()
2803 int rvu_mbox_handler_npc_mcam_ena_entry(struct rvu *rvu, in rvu_mbox_handler_npc_mcam_ena_entry()
2826 int rvu_mbox_handler_npc_mcam_dis_entry(struct rvu *rvu, in rvu_mbox_handler_npc_mcam_dis_entry()
2849 int rvu_mbox_handler_npc_mcam_shift_entry(struct rvu *rvu, in rvu_mbox_handler_npc_mcam_shift_entry()
2918 int rvu_mbox_handler_npc_mcam_alloc_counter(struct rvu *rvu, in rvu_mbox_handler_npc_mcam_alloc_counter()
2982 int rvu_mbox_handler_npc_mcam_free_counter(struct rvu *rvu, in rvu_mbox_handler_npc_mcam_free_counter()
3024 int rvu_mbox_handler_npc_mcam_unmap_counter(struct rvu *rvu, in rvu_mbox_handler_npc_mcam_unmap_counter()
3071 int rvu_mbox_handler_npc_mcam_clear_counter(struct rvu *rvu, in rvu_mbox_handler_npc_mcam_clear_counter()
3092 int rvu_mbox_handler_npc_mcam_counter_stats(struct rvu *rvu, in rvu_mbox_handler_npc_mcam_counter_stats()
3115 int rvu_mbox_handler_npc_mcam_alloc_and_write_entry(struct rvu *rvu, in rvu_mbox_handler_npc_mcam_alloc_and_write_entry()
3213 int rvu_mbox_handler_npc_get_kex_cfg(struct rvu *rvu, struct msg_req *req, in rvu_mbox_handler_npc_get_kex_cfg()
3246 npc_set_var_len_offset_pkind(struct rvu *rvu, u16 pcifunc, u64 pkind, in npc_set_var_len_offset_pkind()
3278 int rvu_npc_set_parse_mode(struct rvu *rvu, u16 pcifunc, u64 mode, u8 dir, in rvu_npc_set_parse_mode()
3333 int rvu_mbox_handler_npc_set_pkind(struct rvu *rvu, struct npc_set_pkind *req, in rvu_mbox_handler_npc_set_pkind()
3341 int rvu_mbox_handler_npc_read_base_steer_rule(struct rvu *rvu, in rvu_mbox_handler_npc_read_base_steer_rule()
3387 int rvu_mbox_handler_npc_mcam_entry_stats(struct rvu *rvu, in rvu_mbox_handler_npc_mcam_entry_stats()