| /drivers/net/ethernet/marvell/octeontx2/af/ |
| A D | rvu_cgx.c | 76 rvu->cgx_cnt_max * rvu->hw->lmac_per_cgx); in cgxlmac_to_pf() 84 void *rvu_cgx_pdata(u8 cgx_id, struct rvu *rvu) in rvu_cgx_pdata() argument 93 void *rvu_first_cgx_pdata(struct rvu *rvu) in rvu_first_cgx_pdata() argument 121 static int rvu_map_cgx_lmac_pf(struct rvu *rvu) in rvu_map_cgx_lmac_pf() argument 215 struct rvu *rvu = data; in cgx_lmac_postevent() local 283 struct rvu *rvu = container_of(work, struct rvu, cgx_evh_work); in cgx_evhandler_task() local 352 int rvu_cgx_init(struct rvu *rvu) in rvu_cgx_init() argument 367 rvu->cgx_idmap = devm_kzalloc(rvu->dev, rvu->cgx_cnt_max * in rvu_cgx_init() 400 void cgx_start_linkup(struct rvu *rvu) in cgx_start_linkup() argument 431 int rvu_cgx_exit(struct rvu *rvu) in rvu_cgx_exit() argument [all …]
|
| A D | rvu.h | 88 struct rvu *rvu; member 118 struct rvu *rvu; member 144 struct rvu *rvu; member 397 struct rvu *rvu; member 461 struct rvu *rvu; member 483 struct rvu *rvu; member 913 int rvu_sdp_init(struct rvu *rvu); 964 int rvu_cgx_init(struct rvu *rvu); 965 int rvu_cgx_exit(struct rvu *rvu); 975 int rvu_npa_init(struct rvu *rvu); [all …]
|
| A D | rvu.c | 73 hw->rvu = rvu; in rvu_setup_hw_capabilities() 867 block->rvu = rvu; in rvu_setup_nix_hw_resource() 897 block->rvu = rvu; in rvu_setup_cpt_hw_resource() 958 block->rvu = rvu; in rvu_setup_hw_resources() 998 block->rvu = rvu; in rvu_setup_hw_resources() 1023 block->rvu = rvu; in rvu_setup_hw_resources() 2196 struct rvu *rvu = mwork->rvu; in __rvu_mbox_handler() local 2287 struct rvu *rvu = mwork->rvu; in rvu_afpf_mbox_handler() local 2303 struct rvu *rvu = mwork->rvu; in __rvu_mbox_up_handler() local 2821 struct rvu *rvu = flrwork->rvu; in rvu_flr_handler() local [all …]
|
| A D | rvu_cpt.c | 50 static u16 cpt_max_engines_get(struct rvu *rvu) in cpt_max_engines_get() argument 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 260 struct rvu *rvu = block->rvu; in cpt_10k_register_interrupts() local 376 int rvu_cpt_register_interrupts(struct rvu *rvu) in rvu_cpt_register_interrupts() argument 387 static int get_cpt_pf_num(struct rvu *rvu) in get_cpt_pf_num() argument 1294 int rvu_cpt_init(struct rvu *rvu) in rvu_cpt_init() argument [all …]
|
| A D | rvu_devlink.c | 60 struct rvu *rvu; in rvu_nix_af_rvu_intr_handler() local 95 struct rvu *rvu; in rvu_nix_af_rvu_gen_handler() local 495 struct rvu *rvu = rvu_dl->rvu; in rvu_nix_register_reporters() local 553 struct rvu *rvu = rvu_dl->rvu; in rvu_nix_health_reporters_create() local 570 struct rvu *rvu = rvu_dl->rvu; in rvu_nix_health_reporters_destroy() local 1041 struct rvu *rvu = rvu_dl->rvu; in rvu_npa_register_reporters() local 1099 struct rvu *rvu = rvu_dl->rvu; in rvu_npa_health_reporters_create() local 1116 struct rvu *rvu = rvu_dl->rvu; in rvu_npa_health_reporters_destroy() local 1170 struct rvu *rvu = rvu_dl->rvu; in rvu_af_dl_dwrr_mtu_validate() local 1209 struct rvu *rvu = rvu_dl->rvu; in rvu_af_dl_dwrr_mtu_set() local [all …]
|
| A D | rvu_rep.c | 19 *otx2_mbox_alloc_msg_ ## _fn_name(struct rvu *rvu, int devid) \ 71 struct rvu *rvu = container_of(work, struct rvu, rep_evt_work); in rvu_rep_wq_handler() local 108 queue_work(rvu->rep_evt_wq, &rvu->rep_evt_work); in rvu_mbox_handler_rep_event_notify() 117 if (!is_pf_cgxmapped(rvu, rvu_get_pf(rvu->pdev, pcifunc))) in rvu_rep_notify_pfvf_state() 120 pf = rvu_get_pf(rvu->pdev, rvu->rep_pcifunc); in rvu_rep_notify_pfvf_state() 147 int rvu_mbox_handler_nix_lf_stats(struct rvu *rvu, in rvu_mbox_handler_nix_lf_stats() argument 184 static u16 rvu_rep_get_vlan_id(struct rvu *rvu, u16 pcifunc) in rvu_rep_get_vlan_id() argument 218 static int rvu_rep_rx_vlan_cfg(struct rvu *rvu, u16 pcifunc) in rvu_rep_rx_vlan_cfg() argument 314 int rvu_rep_install_mcam_rules(struct rvu *rvu) in rvu_rep_install_mcam_rules() argument 412 int rvu_rep_pf_init(struct rvu *rvu) in rvu_rep_pf_init() argument [all …]
|
| A D | rvu_npc_hash.c | 103 static u64 npc_update_use_hash(struct rvu *rvu, int blkaddr, in npc_update_use_hash() argument 200 void npc_config_secret_key(struct rvu *rvu, int blkaddr) in npc_config_secret_key() argument 219 void npc_program_mkex_hash(struct rvu *rvu, int blkaddr) in npc_program_mkex_hash() argument 275 void npc_update_field_hash(struct rvu *rvu, u8 intf, in npc_update_field_hash() argument 721 u32 rvu_npc_exact_get_max_entries(struct rvu *rvu) in rvu_npc_exact_get_max_entries() argument 734 bool rvu_npc_exact_has_match_table(struct rvu *rvu) in rvu_npc_exact_has_match_table() argument 1592 int rvu_npc_exact_mac_addr_update(struct rvu *rvu, in rvu_npc_exact_mac_addr_update() argument 1674 int rvu_npc_exact_mac_addr_add(struct rvu *rvu, in rvu_npc_exact_mac_addr_add() argument 1710 int rvu_npc_exact_mac_addr_del(struct rvu *rvu, in rvu_npc_exact_mac_addr_del() argument 1820 void rvu_npc_exact_disable_feature(struct rvu *rvu) in rvu_npc_exact_disable_feature() argument [all …]
|
| A D | rvu_nix.c | 23 static int nix_update_mce_rule(struct rvu *rvu, u16 pcifunc, 25 static int nix_setup_ipolicers(struct rvu *rvu, 34 static int nix_get_tx_link(struct rvu *rvu, u16 pcifunc); 108 bool is_nixlf_attached(struct rvu *rvu, u16 pcifunc) in is_nixlf_attached() argument 119 int rvu_get_nixlf_count(struct rvu *rvu) in rvu_get_nixlf_count() argument 206 struct rvu *rvu = hw->rvu; in get_nix_hw() local 581 static int nix_bp_disable(struct rvu *rvu, in nix_bp_disable() argument 727 static int nix_bp_enable(struct rvu *rvu, in nix_bp_enable() argument 5090 int rvu_nix_init(struct rvu *rvu) in rvu_nix_init() argument 5105 nix_hw->rvu = rvu; in rvu_nix_init() [all …]
|
| A D | mcs_rvu_if.c | 19 *otx2_mbox_alloc_msg_ ## _fn_name(struct rvu *rvu, int devid) \ 72 int rvu_mbox_handler_mcs_set_lmac_mode(struct rvu *rvu, in rvu_mbox_handler_mcs_set_lmac_mode() argument 93 struct rvu *rvu = mcs->rvu; in mcs_add_intr_wq_entry() local 116 queue_work(rvu->mcs_intr_wq, &rvu->mcs_intr_work); in mcs_add_intr_wq_entry() 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() argument 204 int rvu_mbox_handler_mcs_get_hw_info(struct rvu *rvu, in rvu_mbox_handler_mcs_get_hw_info() argument 238 int rvu_mbox_handler_mcs_clear_stats(struct rvu *rvu, in rvu_mbox_handler_mcs_clear_stats() argument 872 int rvu_mcs_init(struct rvu *rvu) in rvu_mcs_init() argument 899 mcs->rvu = rvu; in rvu_mcs_init() [all …]
|
| A D | rvu_cn10k.c | 23 static int lmtst_map_table_ops(struct rvu *rvu, u32 index, u64 *val, in lmtst_map_table_ops() argument 67 static u32 rvu_get_lmtst_tbl_index(struct rvu *rvu, u16 pcifunc) in rvu_get_lmtst_tbl_index() argument 73 static int rvu_get_lmtaddr(struct rvu *rvu, u16 pcifunc, in rvu_get_lmtaddr() argument 148 int rvu_mbox_handler_lmtst_tbl_setup(struct rvu *rvu, in rvu_mbox_handler_lmtst_tbl_setup() argument 254 void rvu_reset_lmt_map_tbl(struct rvu *rvu, u16 pcifunc) in rvu_reset_lmt_map_tbl() argument 296 int rvu_set_channels_base(struct rvu *rvu) in rvu_set_channels_base() argument 383 static void rvu_lbk_set_channels(struct rvu *rvu) in rvu_lbk_set_channels() argument 507 static void rvu_nix_set_channels(struct rvu *rvu) in rvu_nix_set_channels() argument 533 static void rvu_rpm_set_channels(struct rvu *rvu) in rvu_rpm_set_channels() argument 547 void rvu_program_channels(struct rvu *rvu) in rvu_program_channels() argument [all …]
|
| A D | rvu_npc.c | 47 bool is_npc_interface_valid(struct rvu *rvu, u8 intf) in is_npc_interface_valid() argument 54 int rvu_npc_get_tx_nibble_cfg(struct rvu *rvu, u64 nibble_ena) in rvu_npc_get_tx_nibble_cfg() argument 78 int rvu_npc_get_pkind(struct rvu *rvu, u16 pf) in rvu_npc_get_pkind() argument 126 struct rvu *rvu = hw->rvu; in npc_get_ucast_mcam_index() local 151 struct rvu *rvu = hw->rvu; in npc_get_nixlf_mcam_index() local 1542 static int npc_apply_custom_kpu(struct rvu *rvu, in npc_apply_custom_kpu() argument 1707 static void npc_load_kpu_profile(struct rvu *rvu) in npc_load_kpu_profile() argument 1749 if (rvu->kpu_fwdata || rvu->kpu_fwdata_sz) { in npc_load_kpu_profile() 1819 void npc_mcam_rsrcs_deinit(struct rvu *rvu) in npc_mcam_rsrcs_deinit() argument 2081 int rvu_npc_init(struct rvu *rvu) in rvu_npc_init() argument [all …]
|
| 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() argument 22 static int rvu_switch_install_rx_rule(struct rvu *rvu, u16 pcifunc, in rvu_switch_install_rx_rule() argument 83 static int rvu_switch_install_rules(struct rvu *rvu) in rvu_switch_install_rules() argument 156 void rvu_switch_enable(struct rvu *rvu) in rvu_switch_enable() argument 168 alloc_req.count = rvu->cgx_mapped_pfs + rvu->cgx_mapped_vfs; in rvu_switch_enable() 169 if (rvu->rep_mode) in rvu_switch_enable() 174 dev_err(rvu->dev, in rvu_switch_enable() 180 dev_err(rvu->dev, in rvu_switch_enable() 217 void rvu_switch_disable(struct rvu *rvu) in rvu_switch_disable() argument 232 if (rvu->rep_mode) in rvu_switch_disable() [all …]
|
| A D | rvu_npa.c | 15 static int npa_aq_enqueue_wait(struct rvu *rvu, struct rvu_block *block, in npa_aq_enqueue_wait() argument 61 int rvu_npa_aq_enq_inst(struct rvu *rvu, struct npa_aq_enq_req *req, in rvu_npa_aq_enq_inst() argument 281 int rvu_mbox_handler_npa_aq_enq(struct rvu *rvu, in rvu_mbox_handler_npa_aq_enq() argument 294 int rvu_mbox_handler_npa_aq_enq(struct rvu *rvu, in rvu_mbox_handler_npa_aq_enq() argument 302 int rvu_mbox_handler_npa_hwctx_disable(struct rvu *rvu, in rvu_mbox_handler_npa_hwctx_disable() argument 309 static void npa_ctx_free(struct rvu *rvu, struct rvu_pfvf *pfvf) in npa_ctx_free() argument 327 int rvu_mbox_handler_npa_lf_alloc(struct rvu *rvu, in rvu_mbox_handler_npa_lf_alloc() argument 467 static int npa_aq_init(struct rvu *rvu, struct rvu_block *block) in npa_aq_init() argument 514 int rvu_npa_init(struct rvu *rvu) in rvu_npa_init() argument 527 void rvu_npa_freemem(struct rvu *rvu) in rvu_npa_freemem() argument [all …]
|
| A D | rvu_debugfs.c | 1649 struct rvu *rvu = nix_hw->rvu; in print_tm_tree() local 1678 struct rvu *rvu = nix_hw->rvu; in rvu_dbg_nix_tm_tree_display() local 1723 struct rvu *rvu = nix_hw->rvu; in rvu_dbg_nix_tm_tree_write() local 1751 struct rvu *rvu = nix_hw->rvu; in print_tm_topo() local 1947 struct rvu *rvu = nix_hw->rvu; in rvu_dbg_nix_tm_topo_display() local 1980 struct rvu *rvu = nix_hw->rvu; in rvu_dbg_nix_tm_topo_write() local 3733 struct rvu *rvu = ctx->rvu; in cpt_eng_sts_display() local 3798 struct rvu *rvu = ctx->rvu; in rvu_dbg_cpt_engines_info_display() local 3832 struct rvu *rvu = ctx->rvu; in rvu_dbg_cpt_lfs_info_display() local 3864 struct rvu *rvu = ctx->rvu; in rvu_dbg_cpt_err_info_display() local [all …]
|
| A D | rvu_npc_hash.h | 55 void npc_update_field_hash(struct rvu *rvu, u8 intf, 63 void npc_config_secret_key(struct rvu *rvu, int blkaddr); 64 void npc_program_mkex_hash(struct rvu *rvu, int blkaddr); 208 bool rvu_npc_exact_has_match_table(struct rvu *rvu); 209 u32 rvu_npc_exact_get_max_entries(struct rvu *rvu); 210 int rvu_npc_exact_init(struct rvu *rvu); 214 int rvu_npc_exact_mac_addr_update(struct rvu *rvu, 218 int rvu_npc_exact_mac_addr_add(struct rvu *rvu, 222 int rvu_npc_exact_mac_addr_del(struct rvu *rvu, 229 void rvu_npc_exact_reset(struct rvu *rvu, u16 pcifunc); [all …]
|
| A D | rvu_sdp.c | 20 bool is_sdp_pfvf(struct rvu *rvu, u16 pcifunc) in is_sdp_pfvf() argument 37 bool is_sdp_pf(struct rvu *rvu, u16 pcifunc) in is_sdp_pf() argument 39 return (is_sdp_pfvf(rvu, pcifunc) && in is_sdp_pf() 44 bool is_sdp_vf(struct rvu *rvu, u16 pcifunc) in is_sdp_vf() argument 49 return (is_sdp_pfvf(rvu, pcifunc) && in is_sdp_vf() 53 int rvu_sdp_init(struct rvu *rvu) in rvu_sdp_init() argument 61 pfvf = &rvu->pf[sdp_pf_num[0]]; in rvu_sdp_init() 72 pfvf = &rvu->pf[sdp_pf_num[i]]; in rvu_sdp_init() 93 rvu_mbox_handler_set_sdp_chan_info(struct rvu *rvu, in rvu_mbox_handler_set_sdp_chan_info() argument 107 rvu_mbox_handler_get_sdp_chan_info(struct rvu *rvu, struct msg_req *req, in rvu_mbox_handler_get_sdp_chan_info() argument [all …]
|
| A D | rvu_npc_fs.c | 60 bool npc_is_feature_supported(struct rvu *rvu, u64 features, u8 intf) in npc_is_feature_supported() argument 198 static bool npc_check_overlap(struct rvu *rvu, int blkaddr, in npc_check_overlap() argument 633 static int npc_scan_kex(struct rvu *rvu, int blkaddr, u8 intf) in npc_scan_kex() argument 681 static int npc_scan_verify_kex(struct rvu *rvu, int blkaddr) in npc_scan_verify_kex() argument 712 int npc_flow_steering_init(struct rvu *rvu, int blkaddr) in npc_flow_steering_init() argument 753 void npc_update_entry(struct rvu *rvu, enum key_fields type, in npc_update_entry() argument 1396 int rvu_mbox_handler_npc_install_flow(struct rvu *rvu, in rvu_mbox_handler_npc_install_flow() argument 1552 int rvu_mbox_handler_npc_delete_flow(struct rvu *rvu, in rvu_mbox_handler_npc_delete_flow() argument 1631 void npc_mcam_enable_flows(struct rvu *rvu, u16 target) in npc_mcam_enable_flows() argument 1687 void npc_mcam_disable_flows(struct rvu *rvu, u16 target) in npc_mcam_disable_flows() argument [all …]
|
| A D | ptp.c | 99 static bool is_tstmp_atomic_update_supported(struct rvu *rvu) in is_tstmp_atomic_update_supported() argument 101 struct ptp *ptp = rvu->ptp; in is_tstmp_atomic_update_supported() 103 if (is_rvu_otx2(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() argument 369 struct ptp *ptp = rvu->ptp; in ptp_start() 619 int rvu_mbox_handler_ptp_op(struct rvu *rvu, struct ptp_req *req, in rvu_mbox_handler_ptp_op() argument 631 if (!rvu->ptp) in rvu_mbox_handler_ptp_op() 639 err = ptp_get_clock(rvu->ptp, &rsp->clk); in rvu_mbox_handler_ptp_op() 642 err = ptp_get_tstmp(rvu->ptp, &rsp->clk); 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() argument [all …]
|
| A D | rvu_devlink.h | 72 struct rvu *rvu; member 79 int rvu_register_dl(struct rvu *rvu); 80 void rvu_unregister_dl(struct rvu *rvu);
|
| A D | ptp.h | 26 struct rvu; 29 void ptp_start(struct rvu *rvu, u64 sclk, u32 ext_clk_freq, u32 extts);
|
| A D | rvu_npc_fs.h | 17 void npc_update_entry(struct rvu *rvu, enum key_fields type,
|
| A D | rvu_reg.h | 642 if (rvu->hw->npc_ext_set) \ 650 if (rvu->hw->npc_ext_set) \ 658 if (rvu->hw->npc_ext_set) \ 666 if (rvu->hw->npc_ext_set) \ 674 if (rvu->hw->npc_ext_set) \ 682 if (rvu->hw->npc_ext_set) \ 690 if (rvu->hw->npc_ext_set) \ 698 if (rvu->hw->npc_ext_set) \
|
| A D | Makefile | 11 rvu_af-y := cgx.o rvu.o rvu_cgx.o rvu_npa.o rvu_nix.o \
|
| /drivers/net/ethernet/marvell/octeontx2/af/cn20k/ |
| A D | mbox_init.c | 19 struct rvu *rvu = rvu_irq_data->rvu; in cn20k_afvf_mbox_intr_handler() local 82 irq_data[vec].rvu = rvu; in cn20k_register_afvf_mbox_intr() 105 struct rvu *rvu = rvu_irq_data->rvu; in cn20k_mbox_pf_common_intr_handler() local 125 void cn20k_rvu_enable_mbox_intr(struct rvu *rvu) in cn20k_rvu_enable_mbox_intr() argument 156 void cn20k_rvu_unregister_interrupts(struct rvu *rvu) in cn20k_rvu_unregister_interrupts() argument 171 int cn20k_register_afpf_mbox_intr(struct rvu *rvu) in cn20k_register_afpf_mbox_intr() argument 213 irq_data[vec].rvu = rvu; in cn20k_register_afpf_mbox_intr() 338 void cn20k_free_mbox_memory(struct rvu *rvu) in cn20k_free_mbox_memory() argument 343 qmem_free(rvu->dev, rvu->ng_rvu->pf_mbox_addr); in cn20k_free_mbox_memory() 344 qmem_free(rvu->dev, rvu->ng_rvu->vf_mbox_addr); in cn20k_free_mbox_memory() [all …]
|
| A D | api.h | 20 int cn20k_rvu_mbox_init(struct rvu *rvu, int type, int num); 21 int cn20k_rvu_get_mbox_regions(struct rvu *rvu, void **mbox_addr, 23 void cn20k_free_mbox_memory(struct rvu *rvu); 24 int cn20k_register_afpf_mbox_intr(struct rvu *rvu); 25 int cn20k_register_afvf_mbox_intr(struct rvu *rvu, int pf_vec_start); 26 void cn20k_rvu_enable_mbox_intr(struct rvu *rvu); 27 void cn20k_rvu_unregister_interrupts(struct rvu *rvu); 30 void cn20k_rvu_enable_afvf_intr(struct rvu *rvu, int vfs); 31 void cn20k_rvu_disable_afvf_intr(struct rvu *rvu, int vfs);
|