/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_cgx.c | 43 bool is_mac_feature_supported(struct rvu *rvu, int pf, int feature) in is_mac_feature_supported() 58 static u16 cgxlmac_to_pfmap(struct rvu *rvu, u8 cgx_id, u8 lmac_id) in cgxlmac_to_pfmap() 63 int cgxlmac_to_pf(struct rvu *rvu, int cgx_id, int lmac_id) in cgxlmac_to_pf() 81 void *rvu_cgx_pdata(u8 cgx_id, struct rvu *rvu) in rvu_cgx_pdata() 90 void *rvu_first_cgx_pdata(struct rvu *rvu) in rvu_first_cgx_pdata() 105 static void rvu_map_cgx_nix_block(struct rvu *rvu, int pf, in rvu_map_cgx_nix_block() 118 static int rvu_map_cgx_lmac_pf(struct rvu *rvu) in rvu_map_cgx_lmac_pf() 175 static int rvu_cgx_send_link_info(int cgx_id, int lmac_id, struct rvu *rvu) in rvu_cgx_send_link_info() 209 struct rvu *rvu = data; in cgx_lmac_postevent() local 226 static void cgx_notify_pfs(struct cgx_link_event *event, struct rvu *rvu) in cgx_notify_pfs() [all …]
|
D | rvu.c | 61 static void rvu_setup_hw_capabilities(struct rvu *rvu) in rvu_setup_hw_capabilities() 93 int rvu_poll_reg(struct rvu *rvu, u64 block, u64 offset, u64 mask, bool zero) in rvu_poll_reg() 220 int rvu_get_lf(struct rvu *rvu, struct rvu_block *block, u16 pcifunc, u16 slot) in rvu_get_lf() 248 int rvu_get_blkaddr(struct rvu *rvu, int blktype, u16 pcifunc) in rvu_get_blkaddr() 336 static void rvu_update_rsrc_map(struct rvu *rvu, struct rvu_pfvf *pfvf, in rvu_update_rsrc_map() 403 void rvu_get_pf_numvfs(struct rvu *rvu, int pf, int *numvfs, int *hwvf) in rvu_get_pf_numvfs() 415 static int rvu_get_hwvf(struct rvu *rvu, int pcifunc) in rvu_get_hwvf() 429 struct rvu_pfvf *rvu_get_pfvf(struct rvu *rvu, int pcifunc) in rvu_get_pfvf() 438 static bool is_pf_func_valid(struct rvu *rvu, u16 pcifunc) in is_pf_func_valid() 471 static void rvu_check_block_implemented(struct rvu *rvu) in rvu_check_block_implemented() [all …]
|
D | rvu_devlink.c | 38 static bool rvu_common_request_irq(struct rvu *rvu, int offset, in rvu_common_request_irq() 69 struct rvu *rvu; in rvu_nix_af_rvu_intr_handler() local 104 struct rvu *rvu; in rvu_nix_af_rvu_gen_handler() local 139 struct rvu *rvu; in rvu_nix_af_rvu_err_handler() local 174 struct rvu *rvu; in rvu_nix_af_rvu_ras_handler() local 195 static void rvu_nix_unregister_interrupts(struct rvu *rvu) in rvu_nix_unregister_interrupts() 226 static int rvu_nix_register_interrupts(struct rvu *rvu) in rvu_nix_register_interrupts() 467 struct rvu *rvu = devlink_health_reporter_priv(reporter); in rvu_hw_nix_intr_dump() local 480 struct rvu *rvu = devlink_health_reporter_priv(reporter); in rvu_hw_nix_intr_recover() local 498 struct rvu *rvu = devlink_health_reporter_priv(reporter); in rvu_hw_nix_gen_dump() local [all …]
|
D | rvu_nix.c | 80 int rvu_get_next_nix_blkaddr(struct rvu *rvu, int blkaddr) in rvu_get_next_nix_blkaddr() 97 bool is_nixlf_attached(struct rvu *rvu, u16 pcifunc) in is_nixlf_attached() 108 int rvu_get_nixlf_count(struct rvu *rvu) in rvu_get_nixlf_count() 122 int nix_get_nixlf(struct rvu *rvu, u16 pcifunc, int *nixlf, int *nix_blkaddr) in nix_get_nixlf() 142 int nix_get_struct_ptrs(struct rvu *rvu, u16 pcifunc, in nix_get_struct_ptrs() 180 struct rvu *rvu = hw->rvu; in get_nix_hw() local 233 static void nix_rx_sync(struct rvu *rvu, int blkaddr) in nix_rx_sync() 255 static bool is_valid_txschq(struct rvu *rvu, int blkaddr, in is_valid_txschq() 290 static int nix_interface_init(struct rvu *rvu, u16 pcifunc, int type, int nixlf, in nix_interface_init() 450 static void nix_interface_deinit(struct rvu *rvu, u16 pcifunc, u8 nixlf) in nix_interface_deinit() [all …]
|
D | rvu_npa.c | 15 static int npa_aq_enqueue_wait(struct rvu *rvu, struct rvu_block *block, in npa_aq_enqueue_wait() 52 int rvu_npa_aq_enq_inst(struct rvu *rvu, struct npa_aq_enq_req *req, in rvu_npa_aq_enq_inst() 201 static int npa_lf_hwctx_disable(struct rvu *rvu, struct hwctx_disable_req *req) in npa_lf_hwctx_disable() 249 static int npa_lf_hwctx_lockdown(struct rvu *rvu, struct npa_aq_enq_req *req) in npa_lf_hwctx_lockdown() 272 int rvu_mbox_handler_npa_aq_enq(struct rvu *rvu, in rvu_mbox_handler_npa_aq_enq() 285 int rvu_mbox_handler_npa_aq_enq(struct rvu *rvu, in rvu_mbox_handler_npa_aq_enq() 293 int rvu_mbox_handler_npa_hwctx_disable(struct rvu *rvu, in rvu_mbox_handler_npa_hwctx_disable() 300 static void npa_ctx_free(struct rvu *rvu, struct rvu_pfvf *pfvf) in npa_ctx_free() 318 int rvu_mbox_handler_npa_lf_alloc(struct rvu *rvu, in rvu_mbox_handler_npa_lf_alloc() 426 int rvu_mbox_handler_npa_lf_free(struct rvu *rvu, struct msg_req *req, in rvu_mbox_handler_npa_lf_free() [all …]
|
D | rvu_npc.c | 46 bool is_npc_interface_valid(struct rvu *rvu, u8 intf) in is_npc_interface_valid() 53 int rvu_npc_get_tx_nibble_cfg(struct rvu *rvu, u64 nibble_ena) in rvu_npc_get_tx_nibble_cfg() 63 static int npc_mcam_verify_pf_func(struct rvu *rvu, in npc_mcam_verify_pf_func() 85 void rvu_npc_set_pkind(struct rvu *rvu, int pkind, struct rvu_pfvf *pfvf) in rvu_npc_set_pkind() 99 int rvu_npc_get_pkind(struct rvu *rvu, u16 pf) in rvu_npc_get_pkind() 115 int npc_config_ts_kpuaction(struct rvu *rvu, int pf, u16 pcifunc, bool enable) in npc_config_ts_kpuaction() 147 struct rvu *rvu = hw->rvu; in npc_get_ucast_mcam_index() local 204 bool is_mcam_entry_enabled(struct rvu *rvu, struct npc_mcam *mcam, in is_mcam_entry_enabled() 215 void npc_enable_mcam_entry(struct rvu *rvu, struct npc_mcam *mcam, in npc_enable_mcam_entry() 229 static void npc_clear_mcam_entry(struct rvu *rvu, struct npc_mcam *mcam, in npc_clear_mcam_entry() [all …]
|
D | rvu.h | 53 struct rvu *rvu; member 78 struct rvu *rvu; member 309 struct rvu *rvu; member 366 struct rvu *rvu; member 432 struct rvu { struct 437 struct rvu_hwinfo *hw; argument 438 struct rvu_pfvf *pf; argument 439 struct rvu_pfvf *hwvf; argument 449 struct rvu_work *flr_wrk; argument 450 struct workqueue_struct *flr_wq; [all …]
|
D | rvu_cpt.c | 40 static int get_cpt_pf_num(struct rvu *rvu) in get_cpt_pf_num() 62 static bool is_cpt_pf(struct rvu *rvu, u16 pcifunc) in is_cpt_pf() 74 static bool is_cpt_vf(struct rvu *rvu, u16 pcifunc) in is_cpt_vf() 97 int rvu_mbox_handler_cpt_lf_alloc(struct rvu *rvu, in rvu_mbox_handler_cpt_lf_alloc() 159 static int cpt_lf_free(struct rvu *rvu, struct msg_req *req, int blkaddr) in cpt_lf_free() 185 int rvu_mbox_handler_cpt_lf_free(struct rvu *rvu, struct msg_req *req, in rvu_mbox_handler_cpt_lf_free() 200 static bool is_valid_offset(struct rvu *rvu, struct cpt_rd_wr_reg_msg *req) in is_valid_offset() 259 int rvu_mbox_handler_cpt_rd_wr_register(struct rvu *rvu, in rvu_mbox_handler_cpt_rd_wr_register() 289 static void get_ctx_pc(struct rvu *rvu, struct cpt_sts_rsp *rsp, int blkaddr) in get_ctx_pc() 324 static void get_eng_sts(struct rvu *rvu, struct cpt_sts_rsp *rsp, int blkaddr) in get_eng_sts() [all …]
|
D | rvu_cn10k.c | 20 static int lmtst_map_table_ops(struct rvu *rvu, u32 index, u64 *val, in lmtst_map_table_ops() 53 static u32 rvu_get_lmtst_tbl_index(struct rvu *rvu, u16 pcifunc) in rvu_get_lmtst_tbl_index() 59 static int rvu_get_lmtaddr(struct rvu *rvu, u16 pcifunc, in rvu_get_lmtaddr() 96 static int rvu_update_lmtaddr(struct rvu *rvu, u16 pcifunc, u64 lmt_addr) in rvu_update_lmtaddr() 131 int rvu_mbox_handler_lmtst_tbl_setup(struct rvu *rvu, in rvu_mbox_handler_lmtst_tbl_setup() 237 void rvu_reset_lmt_map_tbl(struct rvu *rvu, u16 pcifunc) in rvu_reset_lmt_map_tbl() 279 int rvu_set_channels_base(struct rvu *rvu) in rvu_set_channels_base() 350 static void __rvu_lbk_set_chans(struct rvu *rvu, void __iomem *base, in __rvu_lbk_set_chans() 366 static void rvu_lbk_set_channels(struct rvu *rvu) in rvu_lbk_set_channels() 434 static void __rvu_nix_set_channels(struct rvu *rvu, int blkaddr) in __rvu_nix_set_channels() [all …]
|
D | rvu_npc_fs.c | 113 static bool npc_is_field_present(struct rvu *rvu, enum key_fields type, u8 intf) in npc_is_field_present() 172 static bool npc_check_overlap(struct rvu *rvu, int blkaddr, in npc_check_overlap() 221 static bool npc_check_field(struct rvu *rvu, int blkaddr, enum key_fields type, in npc_check_field() 282 static void npc_handle_multi_layer_fields(struct rvu *rvu, int blkaddr, u8 intf) in npc_handle_multi_layer_fields() 388 static void npc_scan_ldata(struct rvu *rvu, int blkaddr, u8 lid, in npc_scan_ldata() 453 static void npc_set_features(struct rvu *rvu, int blkaddr, u8 intf) in npc_set_features() 508 static int npc_scan_kex(struct rvu *rvu, int blkaddr, u8 intf) in npc_scan_kex() 545 static int npc_scan_verify_kex(struct rvu *rvu, int blkaddr) in npc_scan_verify_kex() 586 int npc_flow_steering_init(struct rvu *rvu, int blkaddr) in npc_flow_steering_init() 595 static int npc_check_unsupported_flows(struct rvu *rvu, u64 features, u8 intf) in npc_check_unsupported_flows() [all …]
|
D | rvu_debugfs.c | 199 #define NDC_MAX_BANK(rvu, blk_addr) (rvu_read64(rvu, \ argument 263 static int get_max_column_width(struct rvu *rvu) in get_max_column_width() 302 struct rvu *rvu = filp->private_data; in rvu_dbg_rsrc_attach_status() local 404 struct rvu *rvu = filp->private; in rvu_dbg_rvu_pf_cgx_map_display() local 450 static bool rvu_dbg_is_valid_lf(struct rvu *rvu, int blkaddr, int lf, in rvu_dbg_is_valid_lf() 512 struct rvu *rvu; in rvu_dbg_qsize_display() local 557 struct rvu *rvu = seqfile->private; in rvu_dbg_qsize_write() local 627 struct rvu *rvu = m->private; in print_npa_aura_ctx() local 675 struct rvu *rvu = m->private; in print_npa_pool_ctx() local 727 struct rvu *rvu; in rvu_dbg_npa_ctx_display() local [all …]
|
D | rvu_switch.c | 11 static int rvu_switch_install_rx_rule(struct rvu *rvu, u16 pcifunc, in rvu_switch_install_rx_rule() 40 static int rvu_switch_install_tx_rule(struct rvu *rvu, u16 pcifunc, u16 entry) in rvu_switch_install_tx_rule() 70 static int rvu_switch_install_rules(struct rvu *rvu) in rvu_switch_install_rules() 143 void rvu_switch_enable(struct rvu *rvu) in rvu_switch_enable() 196 void rvu_switch_disable(struct rvu *rvu) in rvu_switch_disable() 241 void rvu_switch_update_rules(struct rvu *rvu, u16 pcifunc) in rvu_switch_update_rules()
|
D | rvu_sdp.c | 49 int rvu_sdp_init(struct rvu *rvu) in rvu_sdp_init() 78 rvu_mbox_handler_set_sdp_chan_info(struct rvu *rvu, in rvu_mbox_handler_set_sdp_chan_info() 92 rvu_mbox_handler_get_sdp_chan_info(struct rvu *rvu, struct msg_req *req, in rvu_mbox_handler_get_sdp_chan_info()
|
D | ptp.c | 253 int rvu_mbox_handler_ptp_op(struct rvu *rvu, struct ptp_req *req, in rvu_mbox_handler_ptp_op()
|
D | rvu_devlink.h | 72 struct rvu *rvu; member
|