| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | mcs_rvu_if.c | 36 void rvu_mcs_ptp_cfg(struct rvu *rvu, u8 rpm_id, u8 lmac_id, bool ena) in rvu_mcs_ptp_cfg() 72 int rvu_mbox_handler_mcs_set_lmac_mode(struct rvu *rvu, in rvu_mbox_handler_mcs_set_lmac_mode() 93 struct rvu *rvu = mcs->rvu; in mcs_add_intr_wq_entry() local 121 static int mcs_notify_pfvf(struct mcs_intr_event *event, struct rvu *rvu) in mcs_notify_pfvf() 155 struct rvu *rvu = container_of(work, struct rvu, mcs_intr_work); in mcs_intr_handler_task() local 179 int rvu_mbox_handler_mcs_intr_cfg(struct rvu *rvu, in rvu_mbox_handler_mcs_intr_cfg() 204 int rvu_mbox_handler_mcs_get_hw_info(struct rvu *rvu, in rvu_mbox_handler_mcs_get_hw_info() 223 int rvu_mbox_handler_mcs_port_reset(struct rvu *rvu, struct mcs_port_reset_req *req, in rvu_mbox_handler_mcs_port_reset() 238 int rvu_mbox_handler_mcs_clear_stats(struct rvu *rvu, in rvu_mbox_handler_mcs_clear_stats() 260 int rvu_mbox_handler_mcs_get_flowid_stats(struct rvu *rvu, in rvu_mbox_handler_mcs_get_flowid_stats() [all …]
|
| H A D | rvu_cgx.c | 44 bool is_mac_feature_supported(struct rvu *rvu, int pf, int feature) in is_mac_feature_supported() 60 static u64 cgxlmac_to_pfmap(struct rvu *rvu, u8 cgx_id, u8 lmac_id) in cgxlmac_to_pfmap() 65 int cgxlmac_to_pf(struct rvu *rvu, int cgx_id, int lmac_id) in cgxlmac_to_pf() 84 void *rvu_cgx_pdata(u8 cgx_id, struct rvu *rvu) in rvu_cgx_pdata() 93 void *rvu_first_cgx_pdata(struct rvu *rvu) in rvu_first_cgx_pdata() 108 static void rvu_map_cgx_nix_block(struct rvu *rvu, int pf, in rvu_map_cgx_nix_block() 121 static int rvu_map_cgx_lmac_pf(struct rvu *rvu) in rvu_map_cgx_lmac_pf() 181 static int rvu_cgx_send_link_info(int cgx_id, int lmac_id, struct rvu *rvu) in rvu_cgx_send_link_info() 215 struct rvu *rvu = data; in cgx_lmac_postevent() local 232 static void cgx_notify_pfs(struct cgx_link_event *event, struct rvu *rvu) in cgx_notify_pfs() [all …]
|
| H A D | rvu_devlink.c | 30 static bool rvu_common_request_irq(struct rvu *rvu, int offset, in rvu_common_request_irq() 61 struct rvu *rvu; in rvu_nix_af_rvu_intr_handler() local 96 struct rvu *rvu; in rvu_nix_af_rvu_gen_handler() local 131 struct rvu *rvu; in rvu_nix_af_rvu_err_handler() local 166 struct rvu *rvu; in rvu_nix_af_rvu_ras_handler() local 187 static void rvu_nix_unregister_interrupts(struct rvu *rvu) in rvu_nix_unregister_interrupts() 218 static int rvu_nix_register_interrupts(struct rvu *rvu) in rvu_nix_register_interrupts() 365 struct rvu *rvu = devlink_health_reporter_priv(reporter); in rvu_hw_nix_intr_dump() local 378 struct rvu *rvu = devlink_health_reporter_priv(reporter); in rvu_hw_nix_intr_recover() local 396 struct rvu *rvu = devlink_health_reporter_priv(reporter); in rvu_hw_nix_gen_dump() local [all …]
|
| H A D | rvu_cpt.c | 50 static u16 cpt_max_engines_get(struct rvu *rvu) in cpt_max_engines_get() 66 static int cpt_10k_flt_nvecs_get(struct rvu *rvu, u16 max_engs) in cpt_10k_flt_nvecs_get() 84 struct rvu *rvu = block->rvu; in cpt_af_flt_intr_handler() local 146 struct rvu *rvu = block->rvu; in rvu_cpt_af_rvu_intr_handler() local 160 struct rvu *rvu = block->rvu; in rvu_cpt_af_ras_intr_handler() local 175 struct rvu *rvu = block->rvu; in rvu_cpt_do_register_interrupt() local 192 struct rvu *rvu = block->rvu; in cpt_10k_unregister_interrupts() local 220 static void cpt_unregister_interrupts(struct rvu *rvu, int blkaddr) in cpt_unregister_interrupts() 251 void rvu_cpt_unregister_interrupts(struct rvu *rvu) in rvu_cpt_unregister_interrupts() 260 struct rvu *rvu = block->rvu; in cpt_10k_register_interrupts() local [all …]
|
| H A D | rvu_nix.c | 91 int rvu_get_next_nix_blkaddr(struct rvu *rvu, int blkaddr) in rvu_get_next_nix_blkaddr() 108 bool is_nixlf_attached(struct rvu *rvu, u16 pcifunc) in is_nixlf_attached() 119 int rvu_get_nixlf_count(struct rvu *rvu) in rvu_get_nixlf_count() 133 int nix_get_nixlf(struct rvu *rvu, u16 pcifunc, int *nixlf, int *nix_blkaddr) in nix_get_nixlf() 153 int nix_get_struct_ptrs(struct rvu *rvu, u16 pcifunc, in nix_get_struct_ptrs() 206 struct rvu *rvu = hw->rvu; in get_nix_hw() local 271 static void nix_rx_sync(struct rvu *rvu, int blkaddr) in nix_rx_sync() 293 static bool is_valid_txschq(struct rvu *rvu, int blkaddr, in is_valid_txschq() 331 static int nix_interface_init(struct rvu *rvu, u16 pcifunc, int type, int nixlf, in nix_interface_init() 482 static void nix_interface_deinit(struct rvu *rvu, u16 pcifunc, u8 nixlf) in nix_interface_deinit() [all …]
|
| H A D | rvu_npc.c | 50 bool is_npc_interface_valid(struct rvu *rvu, u8 intf) in is_npc_interface_valid() 57 int rvu_npc_get_tx_nibble_cfg(struct rvu *rvu, u64 nibble_ena) in rvu_npc_get_tx_nibble_cfg() 67 void rvu_npc_set_pkind(struct rvu *rvu, int pkind, struct rvu_pfvf *pfvf) in rvu_npc_set_pkind() 81 int rvu_npc_get_pkind(struct rvu *rvu, u16 pf) in rvu_npc_get_pkind() 97 int npc_config_ts_kpuaction(struct rvu *rvu, int pf, u16 pcifunc, bool enable) in npc_config_ts_kpuaction() 129 struct rvu *rvu = hw->rvu; in npc_get_ucast_mcam_index() local 154 struct rvu *rvu = hw->rvu; in npc_get_nixlf_mcam_index() local 225 struct rvu *rvu = hw->rvu; in npc_get_bank() local 237 bool is_mcam_entry_enabled(struct rvu *rvu, struct npc_mcam *mcam, in is_mcam_entry_enabled() 255 void npc_enable_mcam_entry(struct rvu *rvu, struct npc_mcam *mcam, in npc_enable_mcam_entry() [all …]
|
| H A D | rvu_cn10k.c | 23 static int lmtst_map_table_ops(struct rvu *rvu, u32 index, u64 *val, in lmtst_map_table_ops() 67 static u32 rvu_get_lmtst_tbl_index(struct rvu *rvu, u16 pcifunc) in rvu_get_lmtst_tbl_index() 73 static int rvu_get_lmtaddr(struct rvu *rvu, u16 pcifunc, in rvu_get_lmtaddr() 113 static int rvu_update_lmtaddr(struct rvu *rvu, u16 pcifunc, u64 lmt_addr) in rvu_update_lmtaddr() 148 int rvu_mbox_handler_lmtst_tbl_setup(struct rvu *rvu, in rvu_mbox_handler_lmtst_tbl_setup() 254 void rvu_reset_lmt_map_tbl(struct rvu *rvu, u16 pcifunc) in rvu_reset_lmt_map_tbl() 296 int rvu_set_channels_base(struct rvu *rvu) in rvu_set_channels_base() 367 static void __rvu_lbk_set_chans(struct rvu *rvu, void __iomem *base, in __rvu_lbk_set_chans() 383 static void rvu_lbk_set_channels(struct rvu *rvu) in rvu_lbk_set_channels() 451 static void __rvu_nix_set_channels(struct rvu *rvu, int blkaddr) in __rvu_nix_set_channels() [all …]
|
| H A D | rvu_rep.c | 36 static int rvu_rep_up_notify(struct rvu *rvu, struct rep_event *event) in rvu_rep_up_notify() 71 struct rvu *rvu = container_of(work, struct rvu, rep_evt_work); in rvu_rep_wq_handler() local 95 int rvu_mbox_handler_rep_event_notify(struct rvu *rvu, struct rep_event *req, in rvu_mbox_handler_rep_event_notify() 112 int rvu_rep_notify_pfvf_state(struct rvu *rvu, u16 pcifunc, bool enable) in rvu_rep_notify_pfvf_state() 147 int rvu_mbox_handler_nix_lf_stats(struct rvu *rvu, in rvu_mbox_handler_nix_lf_stats() 184 static u16 rvu_rep_get_vlan_id(struct rvu *rvu, u16 pcifunc) in rvu_rep_get_vlan_id() 194 static int rvu_rep_tx_vlan_cfg(struct rvu *rvu, u16 pcifunc, in rvu_rep_tx_vlan_cfg() 218 static int rvu_rep_rx_vlan_cfg(struct rvu *rvu, u16 pcifunc) in rvu_rep_rx_vlan_cfg() 234 static int rvu_rep_install_rx_rule(struct rvu *rvu, u16 pcifunc, in rvu_rep_install_rx_rule() 275 static int rvu_rep_install_tx_rule(struct rvu *rvu, u16 pcifunc, u16 entry, in rvu_rep_install_tx_rule() [all …]
|
| H A D | rvu_npc_fs.c | 62 bool npc_is_feature_supported(struct rvu *rvu, u64 features, u8 intf) in npc_is_feature_supported() 86 static void npc_set_kw_masks(struct rvu *rvu, struct npc_mcam *mcam, u8 type, in npc_set_kw_masks() 148 static bool npc_is_field_present(struct rvu *rvu, enum key_fields type, u8 intf) in npc_is_field_present() 167 static void npc_set_layer_mdata(struct rvu *rvu, in npc_set_layer_mdata() 212 static bool npc_check_overlap(struct rvu *rvu, int blkaddr, in npc_check_overlap() 300 static bool npc_check_field(struct rvu *rvu, int blkaddr, enum key_fields type, in npc_check_field() 309 static void npc_scan_exact_result(struct rvu *rvu, in npc_scan_exact_result() 329 static void npc_cn20k_scan_parse_result(struct rvu *rvu, struct npc_mcam *mcam, in npc_cn20k_scan_parse_result() 381 static void npc_scan_parse_result(struct rvu *rvu, in npc_scan_parse_result() 441 static void npc_handle_multi_layer_fields(struct rvu *rvu, int blkaddr, u8 intf) in npc_handle_multi_layer_fields() [all …]
|
| H A D | rvu_sdp.c | 20 bool is_sdp_pfvf(struct rvu *rvu, u16 pcifunc) in is_sdp_pfvf() 37 bool is_sdp_pf(struct rvu *rvu, u16 pcifunc) in is_sdp_pf() 44 bool is_sdp_vf(struct rvu *rvu, u16 pcifunc) in is_sdp_vf() 53 int rvu_sdp_init(struct rvu *rvu) in rvu_sdp_init() 93 rvu_mbox_handler_set_sdp_chan_info(struct rvu *rvu, in rvu_mbox_handler_set_sdp_chan_info() 107 rvu_mbox_handler_get_sdp_chan_info(struct rvu *rvu, struct msg_req *req, in rvu_mbox_handler_get_sdp_chan_info()
|
| H A D | rvu_switch.c | 11 void rvu_switch_enable_lbk_link(struct rvu *rvu, u16 pcifunc, bool enable) in rvu_switch_enable_lbk_link() 22 static int rvu_switch_install_rx_rule(struct rvu *rvu, u16 pcifunc, in rvu_switch_install_rx_rule() 51 static int rvu_switch_install_tx_rule(struct rvu *rvu, u16 pcifunc, u16 entry) in rvu_switch_install_tx_rule() 83 static int rvu_switch_install_rules(struct rvu *rvu) in rvu_switch_install_rules() 156 void rvu_switch_enable(struct rvu *rvu) in rvu_switch_enable() 217 void rvu_switch_disable(struct rvu *rvu) in rvu_switch_disable() 272 void rvu_switch_update_rules(struct rvu *rvu, u16 pcifunc, bool ena) in rvu_switch_update_rules()
|
| H A D | ptp.c | 99 static bool is_tstmp_atomic_update_supported(struct rvu *rvu) in is_tstmp_atomic_update_supported() 367 void ptp_start(struct rvu *rvu, u64 sclk, u32 ext_clk_freq, u32 extts) in ptp_start() 619 int rvu_mbox_handler_ptp_op(struct rvu *rvu, struct ptp_req *req, in rvu_mbox_handler_ptp_op() 664 int rvu_mbox_handler_ptp_get_cap(struct rvu *rvu, struct msg_req *req, in rvu_mbox_handler_ptp_get_cap()
|
| H A D | rvu_devlink.h | 72 struct rvu *rvu; member
|
| H A D | mcs.h | 150 void *rvu; member
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/cn20k/ |
| H A D | npc.c | 295 static int npc_vidx_maps_del_entry(struct rvu *rvu, u16 vidx, u16 *old_midx) in npc_vidx_maps_del_entry() 331 static int npc_vidx_maps_modify(struct rvu *rvu, u16 vidx, u16 new_midx) in npc_vidx_maps_modify() 408 static int npc_vidx_maps_add_entry(struct rvu *rvu, u16 mcam_idx, int pcifunc, in npc_vidx_maps_add_entry() 448 static void npc_config_kpmcam(struct rvu *rvu, int blkaddr, in npc_config_kpmcam() 472 npc_config_kpmaction(struct rvu *rvu, int blkaddr, in npc_config_kpmaction() 520 npc_program_single_kpm_profile(struct rvu *rvu, int blkaddr, in npc_program_single_kpm_profile() 553 npc_enable_kpm_entry(struct rvu *rvu, int blkaddr, int kpm, int num_entries) in npc_enable_kpm_entry() 611 static void npc_program_kpm_profile(struct rvu *rvu, int blkaddr, int num_kpms) in npc_program_kpm_profile() 635 void npc_cn20k_parser_profile_init(struct rvu *rvu, int blkaddr) in npc_cn20k_parser_profile_init() 681 static void npc_program_mkex_rx(struct rvu *rvu, int blkaddr, in npc_program_mkex_rx() [all …]
|
| H A D | debugfs.c | 153 struct rvu *rvu; in npc_mcam_default_show() local 249 int npc_cn20k_debugfs_init(struct rvu *rvu) in npc_cn20k_debugfs_init() 271 void npc_cn20k_debugfs_deinit(struct rvu *rvu) in npc_cn20k_debugfs_deinit()
|