| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu.h | 87 struct rvu *rvu; 116 struct rvu *rvu; 142 struct rvu *rvu; 396 struct rvu *rvu; 462 struct rvu *rvu; 88 struct rvu *rvu; global() member 118 struct rvu *rvu; global() member 144 struct rvu *rvu; global() member 398 struct rvu *rvu; global() member 464 struct rvu *rvu; global() member 486 struct rvu *rvu; global() member 586 struct rvu { global() struct 591 hwrvu global() argument 592 pfrvu global() argument 593 hwvfrvu global() argument 606 flr_wrkrvu global() argument 607 flr_wqrvu global() argument 608 flr_lockrvu global() argument 611 num_vecrvu global() argument 612 irq_namervu global() argument 613 irq_allocatedrvu global() argument 614 msix_base_iovarvu global() argument 638 fwdatarvu global() argument 652 rvu_dbgrvu global() argument 654 rvu_dlrvu global() argument 657 rswitchrvu global() argument 679 ng_rvurvu global() argument 682 rvu_write64(struct rvu * rvu,u64 block,u64 offset,u64 val) rvu_write64() argument 687 rvu_read64(struct rvu * rvu,u64 block,u64 offset) rvu_read64() argument 692 rvupf_write64(struct rvu * rvu,u64 offset,u64 val) rvupf_write64() argument 697 rvupf_read64(struct rvu * rvu,u64 offset) rvupf_read64() argument 702 rvu_bar2_sel_write64(struct rvu * rvu,u64 block,u64 offset,u64 val) rvu_bar2_sel_write64() argument 714 is_rvu_pre_96xx_C0(struct rvu * rvu) is_rvu_pre_96xx_C0() argument 723 is_rvu_96xx_A0(struct rvu * rvu) is_rvu_96xx_A0() argument 730 is_rvu_96xx_B0(struct rvu * rvu) is_rvu_96xx_B0() argument 737 is_rvu_95xx_A0(struct rvu * rvu) is_rvu_95xx_A0() argument 755 is_rvu_otx2(struct rvu * rvu) is_rvu_otx2() argument 766 is_cnf10ka_a0(struct rvu * rvu) is_cnf10ka_a0() argument 776 is_cn10ka_a0(struct rvu * rvu) is_cn10ka_a0() argument 786 is_cn10ka_a1(struct rvu * rvu) is_cn10ka_a1() argument 796 is_cn10kb(struct rvu * rvu) is_cn10kb() argument 819 is_rvu_npc_hash_extract_en(struct rvu * rvu) is_rvu_npc_hash_extract_en() argument 830 rvu_nix_chan_cgx(struct rvu * rvu,u8 cgxid,u8 lmacid,u8 chan) rvu_nix_chan_cgx() argument 844 rvu_nix_chan_lbk(struct rvu * rvu,u8 lbkid,u8 chan) rvu_nix_chan_lbk() argument 857 rvu_nix_chan_sdp(struct rvu * rvu,u8 chan) rvu_nix_chan_sdp() argument 867 rvu_nix_chan_cpt(struct rvu * rvu,u8 chan) rvu_nix_chan_cpt() argument 872 is_rvu_supports_nix1(struct rvu * rvu) is_rvu_supports_nix1() argument 886 is_lbk_vf(struct rvu * rvu,u16 pcifunc) is_lbk_vf() argument 903 is_rvu_fwdata_valid(struct rvu * rvu) is_rvu_fwdata_valid() argument 952 is_rep_dev(struct rvu * rvu,u16 pcifunc) is_rep_dev() argument 971 is_pf_cgxmapped(struct rvu * rvu,u8 pf) is_pf_cgxmapped() argument 983 is_cgx_vf(struct rvu * rvu,u16 pcifunc) is_cgx_vf() argument 1172 rvu_dbg_init(struct rvu * rvu) rvu_dbg_init() argument 1173 rvu_dbg_exit(struct rvu * rvu) rvu_dbg_exit() argument [all...] |
| H A D | rvu_cgx.c | 12 #include "rvu.h" 26 *otx2_mbox_alloc_msg_ ## _fn_name(struct rvu *rvu, int devid) \ 31 &rvu->afpf_wq_info.mbox_up, devid, sizeof(struct _req_type), \ 37 trace_otx2_msg_alloc(rvu->pdev, _id, sizeof(*req), 0); \ 44 bool is_mac_feature_supported(struct rvu *rvu, int pf, int feature) in is_mac_feature_supported() argument 49 if (!is_pf_cgxmapped(rvu, pf)) in is_mac_feature_supported() 52 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in is_mac_feature_supported() 53 cgxd = rvu_cgx_pdata(cgx_id, rvu); in is_mac_feature_supported() 60 cgxlmac_to_pfmap(struct rvu * rvu,u8 cgx_id,u8 lmac_id) cgxlmac_to_pfmap() argument 65 cgxlmac_to_pf(struct rvu * rvu,int cgx_id,int lmac_id) cgxlmac_to_pf() argument 84 rvu_cgx_pdata(u8 cgx_id,struct rvu * rvu) rvu_cgx_pdata() argument 93 rvu_first_cgx_pdata(struct rvu * rvu) rvu_first_cgx_pdata() argument 108 rvu_map_cgx_nix_block(struct rvu * rvu,int pf,int cgx_id,int lmac_id) rvu_map_cgx_nix_block() argument 121 rvu_map_cgx_lmac_pf(struct rvu * rvu) rvu_map_cgx_lmac_pf() argument 181 rvu_cgx_send_link_info(int cgx_id,int lmac_id,struct rvu * rvu) rvu_cgx_send_link_info() argument 215 struct rvu *rvu = data; cgx_lmac_postevent() local 232 cgx_notify_pfs(struct cgx_link_event * event,struct rvu * rvu) cgx_notify_pfs() argument 283 struct rvu *rvu = container_of(work, struct rvu, cgx_evh_work); cgx_evhandler_task() local 308 cgx_lmac_event_handler_init(struct rvu * rvu) cgx_lmac_event_handler_init() argument 344 rvu_cgx_wq_destroy(struct rvu * rvu) rvu_cgx_wq_destroy() argument 352 rvu_cgx_init(struct rvu * rvu) rvu_cgx_init() argument 400 cgx_start_linkup(struct rvu * rvu) cgx_start_linkup() argument 431 rvu_cgx_exit(struct rvu * rvu) rvu_cgx_exit() argument 457 is_cgx_config_permitted(struct rvu * rvu,u16 pcifunc) is_cgx_config_permitted() argument 465 rvu_cgx_enadis_rx_bp(struct rvu * rvu,int pf,bool enable) rvu_cgx_enadis_rx_bp() argument 485 rvu_cgx_config_rxtx(struct rvu * rvu,u16 pcifunc,bool start) rvu_cgx_config_rxtx() argument 502 rvu_cgx_tx_enable(struct rvu * rvu,u16 pcifunc,bool enable) rvu_cgx_tx_enable() argument 527 rvu_cgx_disable_dmac_entries(struct rvu * rvu,u16 pcifunc) rvu_cgx_disable_dmac_entries() argument 563 rvu_mbox_handler_cgx_start_rxtx(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_cgx_start_rxtx() argument 570 rvu_mbox_handler_cgx_stop_rxtx(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_cgx_stop_rxtx() argument 577 rvu_lmac_get_stats(struct rvu * rvu,struct msg_req * req,void * rsp) rvu_lmac_get_stats() argument 621 rvu_mbox_handler_cgx_stats(struct rvu * rvu,struct msg_req * req,struct cgx_stats_rsp * rsp) rvu_mbox_handler_cgx_stats() argument 627 rvu_mbox_handler_rpm_stats(struct rvu * rvu,struct msg_req * req,struct rpm_stats_rsp * rsp) rvu_mbox_handler_rpm_stats() argument 633 rvu_mbox_handler_cgx_stats_rst(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_cgx_stats_rst() argument 662 rvu_mbox_handler_cgx_fec_stats(struct rvu * rvu,struct msg_req * req,struct cgx_fec_stats_rsp * rsp) rvu_mbox_handler_cgx_fec_stats() argument 680 rvu_mbox_handler_cgx_mac_addr_set(struct rvu * rvu,struct cgx_mac_addr_set_or_get * req,struct cgx_mac_addr_set_or_get * rsp) rvu_mbox_handler_cgx_mac_addr_set() argument 703 rvu_mbox_handler_cgx_mac_addr_add(struct rvu * rvu,struct cgx_mac_addr_add_req * req,struct cgx_mac_addr_add_rsp * rsp) rvu_mbox_handler_cgx_mac_addr_add() argument 727 rvu_mbox_handler_cgx_mac_addr_del(struct rvu * rvu,struct cgx_mac_addr_del_req * req,struct msg_rsp * rsp) rvu_mbox_handler_cgx_mac_addr_del() argument 744 rvu_mbox_handler_cgx_mac_max_entries_get(struct rvu * rvu,struct msg_req * req,struct cgx_max_dmac_entries_get_rsp * rsp) rvu_mbox_handler_cgx_mac_max_entries_get() argument 771 rvu_mbox_handler_cgx_mac_addr_get(struct rvu * rvu,struct cgx_mac_addr_set_or_get * req,struct cgx_mac_addr_set_or_get * rsp) rvu_mbox_handler_cgx_mac_addr_get() argument 784 rvu_mbox_handler_cgx_promisc_enable(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_cgx_promisc_enable() argument 804 rvu_mbox_handler_cgx_promisc_disable(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_cgx_promisc_disable() argument 823 rvu_cgx_ptp_rx_cfg(struct rvu * rvu,u16 pcifunc,bool enable) rvu_cgx_ptp_rx_cfg() argument 859 rvu_mbox_handler_cgx_ptp_rx_enable(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_cgx_ptp_rx_enable() argument 868 rvu_mbox_handler_cgx_ptp_rx_disable(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_cgx_ptp_rx_disable() argument 874 rvu_cgx_config_linkevents(struct rvu * rvu,u16 pcifunc,bool en) rvu_cgx_config_linkevents() argument 895 rvu_mbox_handler_cgx_start_linkevents(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_cgx_start_linkevents() argument 902 rvu_mbox_handler_cgx_stop_linkevents(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_cgx_stop_linkevents() argument 909 rvu_mbox_handler_cgx_get_linkinfo(struct rvu * rvu,struct msg_req * req,struct cgx_link_info_msg * rsp) rvu_mbox_handler_cgx_get_linkinfo() argument 927 rvu_mbox_handler_cgx_features_get(struct rvu * rvu,struct msg_req * req,struct cgx_features_info_msg * rsp) rvu_mbox_handler_cgx_features_get() argument 945 rvu_cgx_get_fifolen(struct rvu * rvu) rvu_cgx_get_fifolen() argument 955 rvu_cgx_get_lmac_fifolen(struct rvu * rvu,int cgx,int lmac) rvu_cgx_get_lmac_fifolen() argument 971 rvu_cgx_config_intlbk(struct rvu * rvu,u16 pcifunc,bool en) rvu_cgx_config_intlbk() argument 987 rvu_mbox_handler_cgx_intlbk_enable(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_cgx_intlbk_enable() argument 994 rvu_mbox_handler_cgx_intlbk_disable(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_cgx_intlbk_disable() argument 1001 rvu_cgx_cfg_pause_frm(struct rvu * rvu,u16 pcifunc,u8 tx_pause,u8 rx_pause) rvu_cgx_cfg_pause_frm() argument 1040 rvu_mbox_handler_cgx_cfg_pause_frm(struct rvu * rvu,struct cgx_pause_frm_cfg * req,struct cgx_pause_frm_cfg * rsp) rvu_mbox_handler_cgx_cfg_pause_frm() argument 1068 rvu_mbox_handler_cgx_get_phy_fec_stats(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_cgx_get_phy_fec_stats() argument 1084 rvu_cgx_nix_cuml_stats(struct rvu * rvu,void * cgxd,int lmac_id,int index,int rxtxflag,u64 * stat) rvu_cgx_nix_cuml_stats() argument 1126 rvu_cgx_start_stop_io(struct rvu * rvu,u16 pcifunc,bool start) rvu_cgx_start_stop_io() argument 1173 rvu_mbox_handler_cgx_set_fec_param(struct rvu * rvu,struct fec_mode * req,struct fec_mode * rsp) rvu_mbox_handler_cgx_set_fec_param() argument 1190 rvu_mbox_handler_cgx_get_aux_link_info(struct rvu * rvu,struct msg_req * req,struct cgx_fw_data * rsp) rvu_mbox_handler_cgx_get_aux_link_info() argument 1216 rvu_mbox_handler_cgx_set_link_mode(struct rvu * rvu,struct cgx_set_link_mode_req * req,struct cgx_set_link_mode_rsp * rsp) rvu_mbox_handler_cgx_set_link_mode() argument 1243 rvu_mbox_handler_cgx_mac_addr_reset(struct rvu * rvu,struct cgx_mac_addr_reset_req * req,struct msg_rsp * rsp) rvu_mbox_handler_cgx_mac_addr_reset() argument 1260 rvu_mbox_handler_cgx_mac_addr_update(struct rvu * rvu,struct cgx_mac_addr_update_req * req,struct cgx_mac_addr_update_rsp * rsp) rvu_mbox_handler_cgx_mac_addr_update() argument 1277 rvu_cgx_prio_flow_ctrl_cfg(struct rvu * rvu,u16 pcifunc,u8 tx_pause,u8 rx_pause,u16 pfc_en) rvu_cgx_prio_flow_ctrl_cfg() argument 1314 rvu_mbox_handler_cgx_prio_flow_ctrl_cfg(struct rvu * rvu,struct cgx_pfc_cfg * req,struct cgx_pfc_rsp * rsp) rvu_mbox_handler_cgx_prio_flow_ctrl_cfg() argument 1341 rvu_mac_reset(struct rvu * rvu,u16 pcifunc) rvu_mac_reset() argument 1366 rvu_cgx_is_pkind_config_permitted(struct rvu * rvu,u16 pcifunc) rvu_cgx_is_pkind_config_permitted() argument 1398 rvu_cgx_check_permission_and_set_pkind(struct rvu * rvu,u16 pcifunc,int pkind) rvu_cgx_check_permission_and_set_pkind() argument [all...] |
| H A D | rvu.c | 16 #include "rvu.h" 30 static void rvu_set_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf, 32 static void rvu_clear_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf, 34 static void __rvu_flr_handler(struct rvu *rvu, u16 pcifunc); 36 static int rvu_mbox_init(struct rvu *rvu, struct mbox_wq_info *mw, 62 static void rvu_setup_hw_capabilities(struct rvu *rv argument 99 rvu_poll_reg(struct rvu * rvu,u64 block,u64 offset,u64 mask,bool zero) rvu_poll_reg() argument 226 rvu_get_lf(struct rvu * rvu,struct rvu_block * block,u16 pcifunc,u16 slot) rvu_get_lf() argument 254 rvu_get_blkaddr(struct rvu * rvu,int blktype,u16 pcifunc) rvu_get_blkaddr() argument 342 rvu_update_rsrc_map(struct rvu * rvu,struct rvu_pfvf * pfvf,struct rvu_block * block,u16 pcifunc,u16 lf,bool attach) rvu_update_rsrc_map() argument 404 rvu_get_pf_numvfs(struct rvu * rvu,int pf,int * numvfs,int * hwvf) rvu_get_pf_numvfs() argument 416 rvu_get_hwvf(struct rvu * rvu,int pcifunc) rvu_get_hwvf() argument 430 rvu_get_pfvf(struct rvu * rvu,int pcifunc) rvu_get_pfvf() argument 439 is_pf_func_valid(struct rvu * rvu,u16 pcifunc) is_pf_func_valid() argument 472 rvu_check_block_implemented(struct rvu * rvu) rvu_check_block_implemented() argument 488 rvu_setup_rvum_blk_revid(struct rvu * rvu) rvu_setup_rvum_blk_revid() argument 495 rvu_clear_rvum_blk_revid(struct rvu * rvu) rvu_clear_rvum_blk_revid() argument 501 rvu_lf_reset(struct rvu * rvu,struct rvu_block * block,int lf) rvu_lf_reset() argument 514 rvu_block_reset(struct rvu * rvu,int blkaddr,u64 rst_reg) rvu_block_reset() argument 531 rvu_reset_all_blocks(struct rvu * rvu) rvu_reset_all_blocks() argument 549 rvu_scan_block(struct rvu * rvu,struct rvu_block * block) rvu_scan_block() argument 574 rvu_check_min_msix_vec(struct rvu * rvu,int nvecs,int pf,int vf) rvu_check_min_msix_vec() argument 601 rvu_setup_msix_resources(struct rvu * rvu) rvu_setup_msix_resources() argument 736 rvu_reset_msix(struct rvu * rvu) rvu_reset_msix() argument 743 rvu_free_hw_resources(struct rvu * rvu) rvu_free_hw_resources() argument 790 rvu_setup_pfvf_macaddress(struct rvu * rvu) rvu_setup_pfvf_macaddress() argument 836 rvu_fwdata_init(struct rvu * rvu) rvu_fwdata_init() argument 863 rvu_fwdata_exit(struct rvu * rvu) rvu_fwdata_exit() argument 869 rvu_setup_nix_hw_resource(struct rvu * rvu,int blkaddr) rvu_setup_nix_hw_resource() argument 898 rvu_setup_cpt_hw_resource(struct rvu * rvu,int blkaddr) rvu_setup_cpt_hw_resource() argument 927 rvu_get_lbk_bufsize(struct rvu * rvu) rvu_get_lbk_bufsize() argument 952 rvu_setup_hw_resources(struct rvu * rvu) rvu_setup_hw_resources() argument 1226 rvu_aq_free(struct rvu * rvu,struct admin_queue * aq) rvu_aq_free() argument 1236 rvu_aq_alloc(struct rvu * rvu,struct admin_queue ** ad_queue,int qsize,int inst_size,int res_size) rvu_aq_alloc() argument 1265 rvu_mbox_handler_ready(struct rvu * rvu,struct msg_req * req,struct ready_msg_rsp * rsp) rvu_mbox_handler_ready() argument 1321 is_pffunc_map_valid(struct rvu * rvu,u16 pcifunc,int blktype) is_pffunc_map_valid() argument 1337 rvu_lookup_rsrc(struct rvu * rvu,struct rvu_block * block,int pcifunc,int slot) rvu_lookup_rsrc() argument 1358 rvu_get_blkaddr_from_slot(struct rvu * rvu,int blktype,u16 pcifunc,u16 global_slot,u16 * slot_in_block) rvu_get_blkaddr_from_slot() argument 1412 rvu_detach_block(struct rvu * rvu,int pcifunc,int blktype) rvu_detach_block() argument 1455 rvu_detach_rsrcs(struct rvu * rvu,struct rsrc_detach * detach,u16 pcifunc) rvu_detach_rsrcs() argument 1508 rvu_mbox_handler_detach_resources(struct rvu * rvu,struct rsrc_detach * detach,struct msg_rsp * rsp) rvu_mbox_handler_detach_resources() argument 1515 rvu_get_nix_blkaddr(struct rvu * rvu,u16 pcifunc) rvu_get_nix_blkaddr() argument 1558 rvu_get_attach_blkaddr(struct rvu * rvu,int blktype,u16 pcifunc,struct rsrc_attach * attach) rvu_get_attach_blkaddr() argument 1585 rvu_attach_block(struct rvu * rvu,int pcifunc,int blktype,int num_lfs,struct rsrc_attach * attach) rvu_attach_block() argument 1625 rvu_check_rsrc_availability(struct rvu * rvu,struct rsrc_attach * req,u16 pcifunc) rvu_check_rsrc_availability() argument 1736 rvu_attach_from_same_block(struct rvu * rvu,int blktype,struct rsrc_attach * attach) rvu_attach_from_same_block() argument 1752 rvu_mbox_handler_attach_resources(struct rvu * rvu,struct rsrc_attach * attach,struct msg_rsp * rsp) rvu_mbox_handler_attach_resources() argument 1866 rvu_get_msix_offset(struct rvu * rvu,struct rvu_pfvf * pfvf,int blkaddr,int lf) rvu_get_msix_offset() argument 1881 rvu_set_msix_offset(struct rvu * rvu,struct rvu_pfvf * pfvf,struct rvu_block * block,int lf) rvu_set_msix_offset() argument 1906 rvu_clear_msix_offset(struct rvu * rvu,struct rvu_pfvf * pfvf,struct rvu_block * block,int lf) rvu_clear_msix_offset() argument 1930 rvu_mbox_handler_msix_offset(struct rvu * rvu,struct msg_req * req,struct msix_offset_rsp * rsp) rvu_mbox_handler_msix_offset() argument 1993 rvu_mbox_handler_free_rsrc_cnt(struct rvu * rvu,struct msg_req * req,struct free_rsrcs_rsp * rsp) rvu_mbox_handler_free_rsrc_cnt() argument 2086 rvu_mbox_handler_vf_flr(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_vf_flr() argument 2106 rvu_ndc_sync(struct rvu * rvu,int lfblkaddr,int lfidx,u64 lfoffset) rvu_ndc_sync() argument 2113 rvu_mbox_handler_get_hw_cap(struct rvu * rvu,struct msg_req * req,struct get_hw_cap_rsp * rsp) rvu_mbox_handler_get_hw_cap() argument 2128 rvu_mbox_handler_set_vf_perm(struct rvu * rvu,struct set_vf_perm * req,struct msg_rsp * rsp) rvu_mbox_handler_set_vf_perm() argument 2170 rvu_mbox_handler_ndc_sync_op(struct rvu * rvu,struct ndc_sync_op * req,struct msg_rsp * rsp) rvu_mbox_handler_ndc_sync_op() argument 2229 rvu_notify_altaf(struct rvu * rvu,u16 pcifunc,u64 op) rvu_notify_altaf() argument 2259 struct rvu *rvu = pci_get_drvdata(mbox->pdev); rvu_process_mbox_msg() local 2309 struct rvu *rvu = mwork->rvu; __rvu_mbox_handler() local 2401 struct rvu *rvu = mwork->rvu; rvu_afpf_mbox_handler() local 2417 struct rvu *rvu = mwork->rvu; __rvu_mbox_up_handler() local 2497 rvu_get_mbox_regions(struct rvu * rvu,void __iomem ** mbox_addr,int num,int type,unsigned long * pf_bmap) rvu_get_mbox_regions() argument 2570 rvu_mbox_init(struct rvu * rvu,struct mbox_wq_info * mw,int type,int num,void (mbox_handler)(struct work_struct *),void (mbox_up_handler)(struct work_struct *)) rvu_mbox_init() argument 2712 rvu_free_cn20k_mbox_memory(struct rvu * rvu) rvu_free_cn20k_mbox_memory() argument 2782 struct rvu *rvu = (struct rvu *)rvu_irq; rvu_mbox_pf_intr_handler() local 2801 struct rvu *rvu = (struct rvu *)rvu_irq; rvu_mbox_intr_handler() local 2827 rvu_enable_mbox_intr(struct rvu * rvu) rvu_enable_mbox_intr() argument 2845 rvu_blklf_teardown(struct rvu * rvu,u16 pcifunc,u8 blkaddr) rvu_blklf_teardown() argument 2889 __rvu_flr_handler(struct rvu * rvu,u16 pcifunc) __rvu_flr_handler() argument 2930 rvu_afvf_flr_handler(struct rvu * rvu,int vf) rvu_afvf_flr_handler() argument 2950 struct rvu *rvu = flrwork->rvu; rvu_flr_handler() local 2977 rvu_afvf_queue_flr_work(struct rvu * rvu,int start_vf,int numvfs) rvu_afvf_queue_flr_work() argument 3003 struct rvu *rvu = (struct rvu *)rvu_irq; rvu_flr_intr_handler() local 3032 rvu_me_handle_vfset(struct rvu * rvu,int idx,u64 intr) rvu_me_handle_vfset() argument 3052 struct rvu *rvu = (struct rvu *)rvu_irq; rvu_me_vf_intr_handler() local 3070 struct rvu *rvu = (struct rvu *)rvu_irq; rvu_me_pf_intr_handler() local 3093 rvu_unregister_interrupts(struct rvu * rvu) rvu_unregister_interrupts() argument 3125 rvu_afvf_msix_vectors_num_ok(struct rvu * rvu) rvu_afvf_msix_vectors_num_ok() argument 3145 rvu_register_interrupts(struct rvu * rvu) rvu_register_interrupts() argument 3352 rvu_flr_wq_destroy(struct rvu * rvu) rvu_flr_wq_destroy() argument 3360 rvu_flr_init(struct rvu * rvu) rvu_flr_init() argument 3396 rvu_disable_afvf_intr(struct rvu * rvu) rvu_disable_afvf_intr() argument 3415 rvu_enable_afvf_intr(struct rvu * rvu) rvu_enable_afvf_intr() argument 3473 rvu_enable_sriov(struct rvu * rvu) rvu_enable_sriov() argument 3539 rvu_disable_sriov(struct rvu * rvu) rvu_disable_sriov() argument 3546 rvu_update_module_params(struct rvu * rvu) rvu_update_module_params() argument 3561 struct rvu *rvu; rvu_probe() local 3718 struct rvu *rvu = pci_get_drvdata(pdev); rvu_remove() local 3745 struct rvu *rvu = pci_get_drvdata(pdev); rvu_shutdown() local [all...] |
| H A D | rvu_cpt.c | 35 reg = rvu_read64(rvu, blkaddr, CPT_AF_EXEX_STS(e)); \ 50 static u16 cpt_max_engines_get(struct rvu *rvu) in cpt_max_engines_get() argument 55 reg = rvu_read64(rvu, BLKADDR_CPT0, CPT_AF_CONSTANTS1); 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() argument 73 dev_warn_once(rvu->dev, "flt_vecs:%d exceeds the max vectors:%d\n", in cpt_10k_flt_nvecs_get() 84 struct rvu *rvu = block->rvu; in cpt_af_flt_intr_handler() local 90 reg = rvu_read64(rvu, blkaddr, CPT_AF_FLTX_INT(vec)); in cpt_af_flt_intr_handler() 91 dev_err_ratelimited(rvu->dev, "Received CPTAF FLT%d irq : 0x%llx", vec, reg); in cpt_af_flt_intr_handler() 106 grp = rvu_read64(rvu, blkaddr, CPT_AF_EXEX_CTL2(eng)) & 0xFF; in cpt_af_flt_intr_handler() 108 rvu_write64(rvu, blkaddr, CPT_AF_EXEX_CTL2(eng), 0x0); in cpt_af_flt_intr_handler() [all …]
|
| H A D | rvu_devlink.c | 10 #include "rvu.h" 30 static bool rvu_common_request_irq(struct rvu *rvu, int offset, in rvu_common_request_irq() argument 33 struct rvu_devlink *rvu_dl = rvu->rvu_dl; in rvu_common_request_irq() 36 sprintf(&rvu->irq_name[offset * NAME_SIZE], "%s", name); in rvu_common_request_irq() 37 rc = request_irq(pci_irq_vector(rvu->pdev, offset), fn, 0, in rvu_common_request_irq() 38 &rvu->irq_name[offset * NAME_SIZE], rvu_dl); in rvu_common_request_irq() 40 dev_warn(rvu->dev, "Failed to register %s irq\n", name); in rvu_common_request_irq() 42 rvu->irq_allocated[offset] = true; in rvu_common_request_irq() 44 return rvu in rvu_common_request_irq() 61 struct rvu *rvu; rvu_nix_af_rvu_intr_handler() local 96 struct rvu *rvu; rvu_nix_af_rvu_gen_handler() local 131 struct rvu *rvu; rvu_nix_af_rvu_err_handler() local 166 struct rvu *rvu; rvu_nix_af_rvu_ras_handler() local 187 rvu_nix_unregister_interrupts(struct rvu * rvu) rvu_nix_unregister_interrupts() argument 218 rvu_nix_register_interrupts(struct rvu * rvu) rvu_nix_register_interrupts() argument 365 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_intr_dump() local 378 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_intr_recover() local 396 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_gen_dump() local 409 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_gen_recover() local 427 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_err_dump() local 440 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_err_recover() local 458 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_ras_dump() local 471 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_ras_recover() local 496 struct rvu *rvu = rvu_dl->rvu; rvu_nix_register_reporters() local 562 struct rvu *rvu = rvu_dl->rvu; rvu_nix_health_reporters_create() local 579 struct rvu *rvu = rvu_dl->rvu; rvu_nix_health_reporters_destroy() local 616 struct rvu *rvu; rvu_npa_af_rvu_intr_handler() local 651 struct rvu *rvu; rvu_npa_af_gen_intr_handler() local 686 struct rvu *rvu; rvu_npa_af_err_intr_handler() local 720 struct rvu *rvu; rvu_npa_af_ras_intr_handler() local 741 rvu_npa_unregister_interrupts(struct rvu * rvu) rvu_npa_unregister_interrupts() argument 766 rvu_npa_register_interrupts(struct rvu * rvu) rvu_npa_register_interrupts() argument 919 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_intr_dump() local 932 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_intr_recover() local 950 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_gen_dump() local 963 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_gen_recover() local 981 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_err_dump() local 994 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_err_recover() local 1012 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_ras_dump() local 1025 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_ras_recover() local 1050 struct rvu *rvu = rvu_dl->rvu; rvu_npa_register_reporters() local 1116 struct rvu *rvu = rvu_dl->rvu; rvu_npa_health_reporters_create() local 1133 struct rvu *rvu = rvu_dl->rvu; rvu_npa_health_reporters_destroy() local 1156 rvu_health_reporters_create(struct rvu * rvu) rvu_health_reporters_create() argument 1169 rvu_health_reporters_destroy(struct rvu * rvu) rvu_health_reporters_destroy() argument 1187 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_dwrr_mtu_validate() local 1226 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_dwrr_mtu_set() local 1241 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_dwrr_mtu_get() local 1270 struct rvu *rvu = rvu_dl->rvu; rvu_af_npc_defrag_feature_get() local 1286 struct rvu *rvu = rvu_dl->rvu; rvu_af_npc_defrag() local 1303 struct rvu *rvu = rvu_dl->rvu; rvu_af_npc_defrag_feature_validate() local 1331 struct rvu *rvu = rvu_dl->rvu; rvu_af_npc_exact_feature_get() local 1347 struct rvu *rvu = rvu_dl->rvu; rvu_af_npc_exact_feature_disable() local 1359 struct rvu *rvu = rvu_dl->rvu; rvu_af_npc_exact_feature_validate() local 1387 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_npc_mcam_high_zone_percent_get() local 1403 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_npc_mcam_high_zone_percent_set() local 1422 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_npc_mcam_high_zone_percent_validate() local 1450 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_npc_def_rule_cntr_get() local 1462 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_npc_def_rule_cntr_set() local 1477 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_nix_maxlf_get() local 1489 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_nix_maxlf_set() local 1512 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_nix_maxlf_validate() local 1596 struct rvu *rvu = rvu_dl->rvu; rvu_devlink_eswitch_mode_get() local 1612 struct rvu *rvu = rvu_dl->rvu; rvu_devlink_eswitch_mode_set() local 1639 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_npc_srch_order_set() local 1667 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_npc_srch_order_validate() local 1719 rvu_register_dl(struct rvu * rvu) rvu_register_dl() argument 1793 rvu_unregister_dl(struct rvu * rvu) rvu_unregister_dl() argument [all...] |
| H A D | rvu_rep.c | 19 *otx2_mbox_alloc_msg_ ## _fn_name(struct rvu *rvu, int devid) \ 24 &rvu->afpf_wq_info.mbox_up, devid, sizeof(struct _req_type), \ 36 static int rvu_rep_up_notify(struct rvu *rvu, struct rep_event *event) in rvu_rep_up_notify() argument 38 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, event->pcifunc); in rvu_rep_up_notify() 42 pf = rvu_get_pf(rvu->pdev, event->pcifunc); in rvu_rep_up_notify() 47 mutex_lock(&rvu->mbox_lock); in rvu_rep_up_notify() 48 msg = otx2_mbox_alloc_msg_rep_event_up_notify(rvu, pf); in rvu_rep_up_notify() 50 mutex_unlock(&rvu->mbox_lock); in rvu_rep_up_notify() 59 otx2_mbox_wait_for_zero(&rvu->afpf_wq_info.mbox_up, pf); in rvu_rep_up_notify() 61 otx2_mbox_msg_send_up(&rvu->afpf_wq_info.mbox_up, pf); in rvu_rep_up_notify() [all …]
|
| H A D | rvu_npc.c | 14 #include "rvu.h" 36 static void npc_mcam_free_all_entries(struct rvu *rvu, struct npc_mcam *mcam, 38 static void npc_mcam_free_all_counters(struct rvu *rvu, struct npc_mcam *mcam, 51 bool is_npc_interface_valid(struct rvu *rvu, u8 intf) in is_npc_interface_valid() argument 53 struct rvu_hwinfo *hw = rvu->hw; in is_npc_interface_valid() 58 int rvu_npc_get_tx_nibble_cfg(struct rvu *rvu, u6 argument 68 rvu_npc_set_pkind(struct rvu * rvu,int pkind,struct rvu_pfvf * pfvf) rvu_npc_set_pkind() argument 82 rvu_npc_get_pkind(struct rvu * rvu,u16 pf) rvu_npc_get_pkind() argument 98 npc_config_ts_kpuaction(struct rvu * rvu,int pf,u16 pcifunc,bool enable) npc_config_ts_kpuaction() argument 130 struct rvu *rvu = hw->rvu; npc_get_ucast_mcam_index() local 155 struct rvu *rvu = hw->rvu; npc_get_nixlf_mcam_index() local 226 struct rvu *rvu = hw->rvu; npc_get_bank() local 238 is_mcam_entry_enabled(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index) is_mcam_entry_enabled() argument 256 npc_enable_mcam_entry(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index,bool enable) npc_enable_mcam_entry() argument 277 npc_clear_mcam_entry(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index) npc_clear_mcam_entry() argument 440 npc_get_default_entry_action(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,u16 pf_func) npc_get_default_entry_action() argument 476 npc_fixup_vf_rule(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index,struct mcam_entry * entry,bool * enable) npc_fixup_vf_rule() argument 519 npc_config_mcam_entry(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index,u8 intf,struct mcam_entry * entry,bool enable) npc_config_mcam_entry() argument 594 npc_read_mcam_entry(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,u16 src,struct mcam_entry * entry,u8 * intf,u8 * ena) npc_read_mcam_entry() argument 630 npc_copy_mcam_entry(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,u16 src,u16 dest) npc_copy_mcam_entry() argument 674 npc_get_mcam_action(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index) npc_get_mcam_action() argument 689 npc_set_mcam_action(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index,u64 cfg) npc_set_mcam_action() argument 705 rvu_get_cpt_chan_mask(struct rvu * rvu) rvu_get_cpt_chan_mask() argument 718 rvu_npc_install_ucast_entry(struct rvu * rvu,u16 pcifunc,int nixlf,u64 chan,u8 * mac_addr) rvu_npc_install_ucast_entry() argument 782 rvu_npc_install_promisc_entry(struct rvu * rvu,u16 pcifunc,int nixlf,u64 chan,u8 chan_cnt) rvu_npc_install_promisc_entry() argument 891 rvu_npc_enable_promisc_entry(struct rvu * rvu,u16 pcifunc,int nixlf,bool enable) rvu_npc_enable_promisc_entry() argument 917 rvu_npc_install_bcast_match_entry(struct rvu * rvu,u16 pcifunc,int nixlf,u64 chan) rvu_npc_install_bcast_match_entry() argument 988 rvu_npc_install_allmulti_entry(struct rvu * rvu,u16 pcifunc,int nixlf,u64 chan) rvu_npc_install_allmulti_entry() argument 1083 rvu_npc_enable_allmulti_entry(struct rvu * rvu,u16 pcifunc,int nixlf,bool enable) rvu_npc_enable_allmulti_entry() argument 1108 npc_update_vf_flow_entry(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,u16 pcifunc,u64 rx_action) npc_update_vf_flow_entry() argument 1160 npc_update_rx_action_with_alg_idx(struct rvu * rvu,struct nix_rx_action action,struct rvu_pfvf * pfvf,int mcam_index,int blkaddr,int alg_idx) npc_update_rx_action_with_alg_idx() argument 1193 rvu_npc_update_flowkey_alg_idx(struct rvu * rvu,u16 pcifunc,int nixlf,int group,int alg_idx,int mcam_index) rvu_npc_update_flowkey_alg_idx() argument 1281 npc_enadis_default_mce_entry(struct rvu * rvu,u16 pcifunc,int nixlf,int type,bool enable) npc_enadis_default_mce_entry() argument 1334 npc_enadis_default_entries(struct rvu * rvu,u16 pcifunc,int nixlf,bool enable) npc_enadis_default_entries() argument 1377 rvu_npc_disable_default_entries(struct rvu * rvu,u16 pcifunc,int nixlf) rvu_npc_disable_default_entries() argument 1391 rvu_npc_enable_mcam_by_entry_index(struct rvu * rvu,int entry,int intf,bool enable) rvu_npc_enable_mcam_by_entry_index() argument 1419 rvu_npc_enable_default_entries(struct rvu * rvu,u16 pcifunc,int nixlf) rvu_npc_enable_default_entries() argument 1430 rvu_npc_disable_mcam_entries(struct rvu * rvu,u16 pcifunc,int nixlf) rvu_npc_disable_mcam_entries() argument 1467 rvu_npc_free_mcam_entries(struct rvu * rvu,u16 pcifunc,int nixlf) rvu_npc_free_mcam_entries() argument 1498 npc_program_mkex_rx(struct rvu * rvu,int blkaddr,const struct npc_mcam_kex * mkex,u8 intf) npc_program_mkex_rx() argument 1528 npc_program_mkex_tx(struct rvu * rvu,int blkaddr,const struct npc_mcam_kex * mkex,u8 intf) npc_program_mkex_tx() argument 1558 npc_program_mkex_profile(struct rvu * rvu,int blkaddr,const struct npc_mcam_kex * mkex) npc_program_mkex_profile() argument 1578 npc_fwdb_prfl_img_map(struct rvu * rvu,void __iomem ** prfl_img_addr,u64 * size) npc_fwdb_prfl_img_map() argument 1604 npc_load_mkex_profile(struct rvu * rvu,int blkaddr,const char * mkex_profile) npc_load_mkex_profile() argument 1653 npc_config_kpuaction(struct rvu * rvu,int blkaddr,const struct npc_kpu_profile_action * kpuaction,int kpu,int entry,bool pkind) npc_config_kpuaction() argument 1695 npc_config_kpucam(struct rvu * rvu,int blkaddr,const struct npc_kpu_profile_cam * kpucam,int kpu,int entry) npc_config_kpucam() argument 1736 npc_get_ikpu_nth_entry(struct rvu * rvu,int n) npc_get_ikpu_nth_entry() argument 1747 npc_get_num_kpu_cam_entries(struct rvu * rvu,const struct npc_kpu_profile * kpu_pfl) npc_get_num_kpu_cam_entries() argument 1759 npc_get_kpu_cam_nth_entry(struct rvu * rvu,const struct npc_kpu_profile * kpu_pfl,int n) npc_get_kpu_cam_nth_entry() argument 1771 npc_get_num_kpu_action_entries(struct rvu * rvu,const struct npc_kpu_profile * kpu_pfl) npc_get_num_kpu_action_entries() argument 1783 npc_get_kpu_action_nth_entry(struct rvu * rvu,const struct npc_kpu_profile * kpu_pfl,int n) npc_get_kpu_action_nth_entry() argument 1795 npc_program_kpu_profile(struct rvu * rvu,int blkaddr,int kpu,const struct npc_kpu_profile * profile) npc_program_kpu_profile() argument 1849 npc_prepare_default_kpu(struct rvu * rvu,struct npc_kpu_profile_adapter * profile) npc_prepare_default_kpu() argument 1876 npc_alloc_kpu_cam2_n_action2(struct rvu * rvu,int kpu_num,int num_entries) npc_alloc_kpu_cam2_n_action2() argument 1897 npc_apply_custom_kpu_from_fw(struct rvu * rvu,struct npc_kpu_profile_adapter * profile) npc_apply_custom_kpu_from_fw() argument 1949 npc_apply_custom_kpu_from_fs(struct rvu * rvu,struct npc_kpu_profile_adapter * profile) npc_apply_custom_kpu_from_fs() argument 2028 npc_apply_custom_kpu(struct rvu * rvu,struct npc_kpu_profile_adapter * profile,bool from_fs,int * fw_kpus) npc_apply_custom_kpu() argument 2106 npc_load_kpu_prfl_img(struct rvu * rvu,void __iomem * prfl_addr,u64 prfl_sz,const char * kpu_profile) npc_load_kpu_prfl_img() argument 2126 npc_fwdb_detect_load_prfl_img(struct rvu * rvu,uint64_t prfl_sz,const char * kpu_profile) npc_fwdb_detect_load_prfl_img() argument 2164 npc_load_kpu_profile_fwdb(struct rvu * rvu,const char * kpu_profile) npc_load_kpu_profile_fwdb() argument 2191 npc_load_kpu_profile_from_fw(struct rvu * rvu) npc_load_kpu_profile_from_fw() argument 2235 npc_load_kpu_profile_from_fs(struct rvu * rvu) npc_load_kpu_profile_from_fs() argument 2279 npc_load_kpu_profile(struct rvu * rvu) npc_load_kpu_profile() argument 2316 npc_parser_profile_init(struct rvu * rvu,int blkaddr) npc_parser_profile_init() argument 2359 npc_mcam_rsrcs_deinit(struct rvu * rvu) npc_mcam_rsrcs_deinit() argument 2373 npc_mcam_rsrcs_init(struct rvu * rvu,int blkaddr) npc_mcam_rsrcs_init() argument 2527 rvu_npc_hw_init(struct rvu * rvu,int blkaddr) rvu_npc_hw_init() argument 2585 rvu_npc_setup_interfaces(struct rvu * rvu,int blkaddr) rvu_npc_setup_interfaces() argument 2675 rvu_npc_init(struct rvu * rvu) rvu_npc_init() argument 2771 rvu_npc_freemem(struct rvu * rvu) rvu_npc_freemem() argument 2788 rvu_npc_get_mcam_entry_alloc_info(struct rvu * rvu,u16 pcifunc,int blkaddr,int * alloc_cnt,int * enable_cnt) rvu_npc_get_mcam_entry_alloc_info() argument 2807 rvu_npc_get_mcam_counter_alloc_info(struct rvu * rvu,u16 pcifunc,int blkaddr,int * alloc_cnt,int * enable_cnt) rvu_npc_get_mcam_counter_alloc_info() argument 2859 npc_map_mcam_entry_and_cntr(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,u16 entry,u16 cntr) npc_map_mcam_entry_and_cntr() argument 2879 npc_unmap_mcam_entry_and_cntr(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,u16 entry,u16 cntr) npc_unmap_mcam_entry_and_cntr() argument 2930 npc_mcam_free_all_entries(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,u16 pcifunc) npc_mcam_free_all_entries() argument 2987 npc_mcam_free_all_counters(struct rvu * rvu,struct npc_mcam * mcam,u16 pcifunc) npc_mcam_free_all_counters() argument 3132 struct rvu *rvu = hw->rvu; npc_mcam_alloc_entries() local 3390 npc_mcam_rsrcs_reserve(struct rvu * rvu,int blkaddr,int entry_idx) npc_mcam_rsrcs_reserve() argument 3397 npc_config_cntr_default_entries(struct rvu * rvu,bool enable) npc_config_cntr_default_entries() argument 3444 rvu_mbox_handler_npc_mcam_alloc_entry(struct rvu * rvu,struct npc_mcam_alloc_entry_req * req,struct npc_mcam_alloc_entry_rsp * rsp) rvu_mbox_handler_npc_mcam_alloc_entry() argument 3490 rvu_mbox_handler_npc_mcam_free_entry(struct rvu * rvu,struct npc_mcam_free_entry_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_mcam_free_entry() argument 3547 rvu_mbox_handler_npc_mcam_read_entry(struct rvu * rvu,struct npc_mcam_read_entry_req * req,struct npc_mcam_read_entry_rsp * rsp) rvu_mbox_handler_npc_mcam_read_entry() argument 3571 rvu_mbox_handler_npc_mcam_write_entry(struct rvu * rvu,struct npc_mcam_write_entry_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_mcam_write_entry() argument 3626 rvu_mbox_handler_npc_mcam_ena_entry(struct rvu * rvu,struct npc_mcam_ena_dis_entry_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_mcam_ena_entry() argument 3651 rvu_mbox_handler_npc_mcam_dis_entry(struct rvu * rvu,struct npc_mcam_ena_dis_entry_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_mcam_dis_entry() argument 3676 rvu_mbox_handler_npc_mcam_shift_entry(struct rvu * rvu,struct npc_mcam_shift_entry_req * req,struct npc_mcam_shift_entry_rsp * rsp) rvu_mbox_handler_npc_mcam_shift_entry() argument 3749 __npc_mcam_alloc_counter(struct rvu * rvu,struct npc_mcam_alloc_counter_req * req,struct npc_mcam_alloc_counter_rsp * rsp) __npc_mcam_alloc_counter() argument 3809 rvu_mbox_handler_npc_mcam_alloc_counter(struct rvu * rvu,struct npc_mcam_alloc_counter_req * req,struct npc_mcam_alloc_counter_rsp * rsp) rvu_mbox_handler_npc_mcam_alloc_counter() argument 3828 __npc_mcam_free_counter(struct rvu * rvu,struct npc_mcam_oper_counter_req * req,struct msg_rsp * rsp) __npc_mcam_free_counter() argument 3864 rvu_mbox_handler_npc_mcam_free_counter(struct rvu * rvu,struct npc_mcam_oper_counter_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_mcam_free_counter() argument 3883 __rvu_mcam_remove_counter_from_rule(struct rvu * rvu,u16 pcifunc,struct rvu_npc_mcam_rule * rule) __rvu_mcam_remove_counter_from_rule() argument 3899 __rvu_mcam_add_counter_to_rule(struct rvu * rvu,u16 pcifunc,struct rvu_npc_mcam_rule * rule,struct npc_install_flow_rsp * rsp) __rvu_mcam_add_counter_to_rule() argument 3925 rvu_mbox_handler_npc_mcam_unmap_counter(struct rvu * rvu,struct npc_mcam_unmap_counter_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_mcam_unmap_counter() argument 3969 rvu_mbox_handler_npc_mcam_clear_counter(struct rvu * rvu,struct npc_mcam_oper_counter_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_mcam_clear_counter() argument 4001 rvu_mbox_handler_npc_mcam_counter_stats(struct rvu * rvu,struct npc_mcam_oper_counter_req * req,struct npc_mcam_oper_counter_rsp * rsp) rvu_mbox_handler_npc_mcam_counter_stats() argument 4038 rvu_mbox_handler_npc_mcam_alloc_and_write_entry(struct rvu * rvu,struct npc_mcam_alloc_and_write_entry_req * req,struct npc_mcam_alloc_and_write_entry_rsp * rsp) rvu_mbox_handler_npc_mcam_alloc_and_write_entry() argument 4132 rvu_mbox_handler_npc_get_kex_cfg(struct rvu * rvu,struct msg_req * req,struct npc_get_kex_cfg_rsp * rsp) rvu_mbox_handler_npc_get_kex_cfg() argument 4165 npc_set_var_len_offset_pkind(struct rvu * rvu,u16 pcifunc,u64 pkind,u8 var_len_off,u8 var_len_off_mask,u8 shift_dir) npc_set_var_len_offset_pkind() argument 4197 npc_set_skip_size_pkind(struct rvu * rvu,u16 pcifunc,u64 pkind,u8 skip_size) npc_set_skip_size_pkind() argument 4228 rvu_npc_set_parse_mode(struct rvu * rvu,u16 pcifunc,u64 mode,u8 dir,u64 pkind,u8 var_len_off,u8 var_len_off_mask,u8 shift_dir,u8 skip_size) rvu_npc_set_parse_mode() argument 4296 rvu_mbox_handler_npc_set_pkind(struct rvu * rvu,struct npc_set_pkind * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_set_pkind() argument 4305 rvu_mbox_handler_npc_read_default_rule(struct rvu * rvu,struct msg_req * req,struct npc_mcam_read_base_rule_rsp * rsp) rvu_mbox_handler_npc_read_default_rule() argument 4342 rvu_mbox_handler_npc_read_base_steer_rule(struct rvu * rvu,struct msg_req * req,struct npc_mcam_read_base_rule_rsp * rsp) rvu_mbox_handler_npc_read_base_steer_rule() argument 4394 rvu_mbox_handler_npc_mcam_entry_stats(struct rvu * rvu,struct npc_mcam_get_stats_req * req,struct npc_mcam_get_stats_rsp * rsp) rvu_mbox_handler_npc_mcam_entry_stats() argument 4446 rvu_npc_clear_ucast_entry(struct rvu * rvu,int pcifunc,int nixlf) rvu_npc_clear_ucast_entry() argument [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() argument 30 tbl_base = rvu_read64(rvu, BLKADDR_APR, APR_AF_LMT_MAP_BASE); in lmtst_map_table_ops() 31 cfg = rvu_read64(rvu, BLKADDR_APR, APR_AF_LMT_CFG); in lmtst_map_table_ops() 37 dev_err(rvu->dev, "Failed to setup lmt map table mapping!!\n"); in lmtst_map_table_ops() 57 rvu_write64(rvu, BLKADDR_APR, APR_AF_LMT_CTL, BIT_ULL(0)); in lmtst_map_table_ops() 58 rvu_read64(rvu, BLKADDR_APR, APR_AF_LMT_CTL); in lmtst_map_table_ops() 59 rvu_write64(rvu, BLKADDR_APR, APR_AF_LMT_CTL, 0x00); in lmtst_map_table_ops() 67 static u32 rvu_get_lmtst_tbl_index(struct rvu *rvu, u16 pcifunc) in rvu_get_lmtst_tbl_index() argument 69 return ((rvu_get_pf(rvu->pdev, pcifunc) * LMT_MAX_VFS) + in rvu_get_lmtst_tbl_index() 73 static int rvu_get_lmtaddr(struct rvu *rvu, u16 pcifunc, in rvu_get_lmtaddr() argument [all …]
|
| H A D | rvu_nix.c | 13 #include "rvu.h" 21 static void nix_free_tx_vtag_entries(struct rvu *rvu, u16 pcifunc); 22 static int rvu_nix_get_bpid(struct rvu *rvu, struct nix_bp_cfg_req *req, 24 static int nix_update_mce_rule(struct rvu *rvu, u16 pcifunc, 26 static int nix_setup_ipolicers(struct rvu *rvu, 28 static void nix_ipolicer_freemem(struct rvu *rv 92 rvu_get_next_nix_blkaddr(struct rvu * rvu,int blkaddr) rvu_get_next_nix_blkaddr() argument 109 is_nixlf_attached(struct rvu * rvu,u16 pcifunc) is_nixlf_attached() argument 120 rvu_get_nixlf_count(struct rvu * rvu) rvu_get_nixlf_count() argument 134 nix_get_nixlf(struct rvu * rvu,u16 pcifunc,int * nixlf,int * nix_blkaddr) nix_get_nixlf() argument 154 nix_get_struct_ptrs(struct rvu * rvu,u16 pcifunc,struct nix_hw ** nix_hw,int * blkaddr) nix_get_struct_ptrs() argument 207 struct rvu *rvu = hw->rvu; get_nix_hw() local 272 nix_rx_sync(struct rvu * rvu,int blkaddr) nix_rx_sync() argument 302 is_valid_txschq(struct rvu * rvu,int blkaddr,int lvl,u16 pcifunc,u16 schq) is_valid_txschq() argument 340 nix_interface_init(struct rvu * rvu,u16 pcifunc,int type,int nixlf,struct nix_lf_alloc_rsp * rsp,bool loop) nix_interface_init() argument 491 nix_interface_deinit(struct rvu * rvu,u16 pcifunc,u8 nixlf) nix_interface_deinit() argument 516 nix_setup_bpids(struct rvu * rvu,struct nix_hw * hw,int blkaddr) nix_setup_bpids() argument 559 rvu_nix_flr_free_bpids(struct rvu * rvu,u16 pcifunc) rvu_nix_flr_free_bpids() argument 595 nix_bp_disable(struct rvu * rvu,struct nix_bp_cfg_req * req,struct msg_rsp * rsp,bool cpt_link) nix_bp_disable() argument 648 rvu_mbox_handler_nix_bp_disable(struct rvu * rvu,struct nix_bp_cfg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_bp_disable() argument 655 rvu_mbox_handler_nix_cpt_bp_disable(struct rvu * rvu,struct nix_bp_cfg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_cpt_bp_disable() argument 662 rvu_nix_get_bpid(struct rvu * rvu,struct nix_bp_cfg_req * req,int type,int chan_id) rvu_nix_get_bpid() argument 741 nix_bp_enable(struct rvu * rvu,struct nix_bp_cfg_req * req,struct nix_bp_cfg_rsp * rsp,bool cpt_link) nix_bp_enable() argument 802 rvu_mbox_handler_nix_bp_enable(struct rvu * rvu,struct nix_bp_cfg_req * req,struct nix_bp_cfg_rsp * rsp) rvu_mbox_handler_nix_bp_enable() argument 809 rvu_mbox_handler_nix_cpt_bp_enable(struct rvu * rvu,struct nix_bp_cfg_req * req,struct nix_bp_cfg_rsp * rsp) rvu_mbox_handler_nix_cpt_bp_enable() argument 816 nix_setup_lso_tso_l3(struct rvu * rvu,int blkaddr,u64 format,bool v4,u64 * fidx) nix_setup_lso_tso_l3() argument 845 nix_setup_lso_tso_l4(struct rvu * rvu,int blkaddr,u64 format,u64 * fidx) nix_setup_lso_tso_l4() argument 869 nix_setup_lso(struct rvu * rvu,struct nix_hw * nix_hw,int blkaddr) nix_setup_lso() argument 915 nix_ctx_free(struct rvu * rvu,struct rvu_pfvf * pfvf) nix_ctx_free() argument 944 nixlf_rss_ctx_init(struct rvu * rvu,int blkaddr,struct rvu_pfvf * pfvf,int nixlf,int rss_sz,int rss_grps,int hwctx_size,u64 way_mask,bool tag_lsb_as_adder) nixlf_rss_ctx_init() argument 980 nix_aq_enqueue_wait(struct rvu * rvu,struct rvu_block * block,struct nix_aq_inst_s * inst) nix_aq_enqueue_wait() argument 1031 nix_get_aq_req_smq(struct rvu * rvu,struct nix_aq_enq_req * req,u16 * smq,u16 * smq_mask) nix_get_aq_req_smq() argument 1052 rvu_nix_blk_aq_enq_inst(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_aq_enq_req * req,struct nix_aq_enq_rsp * rsp) rvu_nix_blk_aq_enq_inst() argument 1289 rvu_nix_verify_aq_ctx(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_aq_enq_req * req,u8 ctype) rvu_nix_verify_aq_ctx() argument 1346 rvu_nix_aq_enq_inst(struct rvu * rvu,struct nix_aq_enq_req * req,struct nix_aq_enq_rsp * rsp) rvu_nix_aq_enq_inst() argument 1396 nix_lf_hwctx_disable(struct rvu * rvu,struct hwctx_disable_req * req) nix_lf_hwctx_disable() argument 1450 nix_lf_hwctx_lockdown(struct rvu * rvu,struct nix_aq_enq_req * req) nix_lf_hwctx_lockdown() argument 1476 rvu_mbox_handler_nix_aq_enq(struct rvu * rvu,struct nix_aq_enq_req * req,struct nix_aq_enq_rsp * rsp) rvu_mbox_handler_nix_aq_enq() argument 1489 rvu_mbox_handler_nix_aq_enq(struct rvu * rvu,struct nix_aq_enq_req * req,struct nix_aq_enq_rsp * rsp) rvu_mbox_handler_nix_aq_enq() argument 1497 rvu_mbox_handler_nix_cn10k_aq_enq(struct rvu * rvu,struct nix_cn10k_aq_enq_req * req,struct nix_cn10k_aq_enq_rsp * rsp) rvu_mbox_handler_nix_cn10k_aq_enq() argument 1505 rvu_mbox_handler_nix_hwctx_disable(struct rvu * rvu,struct hwctx_disable_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_hwctx_disable() argument 1512 rvu_mbox_handler_nix_lf_alloc(struct rvu * rvu,struct nix_lf_alloc_req * req,struct nix_lf_alloc_rsp * rsp) rvu_mbox_handler_nix_lf_alloc() argument 1785 rvu_mbox_handler_nix_lf_free(struct rvu * rvu,struct nix_lf_free_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_lf_free() argument 1835 rvu_mbox_handler_nix_mark_format_cfg(struct rvu * rvu,struct nix_mark_format_cfg * req,struct nix_mark_format_cfg_rsp * rsp) rvu_mbox_handler_nix_mark_format_cfg() argument 1873 handle_txschq_shaper_update(struct rvu * rvu,int blkaddr,int nixlf,int lvl,u64 reg,u64 regval) handle_txschq_shaper_update() argument 1962 nix_reset_tx_schedule(struct rvu * rvu,int blkaddr,int lvl,int schq) nix_reset_tx_schedule() argument 2001 nix_reset_tx_shaping(struct rvu * rvu,int blkaddr,int nixlf,int lvl,int schq) nix_reset_tx_shaping() argument 2053 nix_reset_tx_linkcfg(struct rvu * rvu,int blkaddr,int lvl,int schq) nix_reset_tx_linkcfg() argument 2078 nix_clear_tx_xoff(struct rvu * rvu,int blkaddr,int lvl,int schq) nix_clear_tx_xoff() argument 2112 nix_get_tx_link(struct rvu * rvu,u16 pcifunc) nix_get_tx_link() argument 2129 nix_get_txschq_range(struct rvu * rvu,u16 pcifunc,int link,int * start,int * end) nix_get_txschq_range() argument 2149 nix_check_txschq_alloc_req(struct rvu * rvu,int lvl,u16 pcifunc,struct nix_hw * nix_hw,struct nix_txsch_alloc_req * req) nix_check_txschq_alloc_req() argument 2198 nix_txsch_alloc(struct rvu * rvu,struct nix_txsch * txsch,struct nix_txsch_alloc_rsp * rsp,int lvl,int start,int end) nix_txsch_alloc() argument 2282 rvu_mbox_handler_nix_txsch_alloc(struct rvu * rvu,struct nix_txsch_alloc_req * req,struct nix_txsch_alloc_rsp * rsp) rvu_mbox_handler_nix_txsch_alloc() argument 2375 nix_smq_flush_fill_ctx(struct rvu * rvu,int blkaddr,int smq,struct nix_smq_flush_ctx * smq_flush_ctx) nix_smq_flush_fill_ctx() argument 2424 nix_smq_flush_enadis_xoff(struct rvu * rvu,int blkaddr,struct nix_smq_flush_ctx * smq_flush_ctx,bool enable) nix_smq_flush_enadis_xoff() argument 2460 nix_smq_flush_enadis_rate(struct rvu * rvu,int blkaddr,struct nix_smq_flush_ctx * smq_flush_ctx,bool enable) nix_smq_flush_enadis_rate() argument 2486 nix_smq_flush(struct rvu * rvu,int blkaddr,int smq,u16 pcifunc,int nixlf) nix_smq_flush() argument 2581 nix_txschq_free(struct rvu * rvu,u16 pcifunc) nix_txschq_free() argument 2667 nix_txschq_free_one(struct rvu * rvu,struct nix_txsch_free_req * req) nix_txschq_free_one() argument 2735 rvu_mbox_handler_nix_txsch_free(struct rvu * rvu,struct nix_txsch_free_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_txsch_free() argument 2745 is_txschq_hierarchy_valid(struct rvu * rvu,u16 pcifunc,int blkaddr,int lvl,u64 reg,u64 regval) is_txschq_hierarchy_valid() argument 2824 nix_tl1_default_cfg(struct rvu * rvu,struct nix_hw * nix_hw,u16 pcifunc,int blkaddr) nix_tl1_default_cfg() argument 2857 nix_txschq_cfg_read(struct rvu * rvu,struct nix_hw * nix_hw,int blkaddr,struct nix_txschq_config * req,struct nix_txschq_config * rsp) nix_txschq_cfg_read() argument 2879 rvu_nix_tx_tl2_cfg(struct rvu * rvu,int blkaddr,u16 pcifunc,struct nix_txsch * txsch,bool enable) rvu_nix_tx_tl2_cfg() argument 2909 rvu_mbox_handler_nix_txschq_cfg(struct rvu * rvu,struct nix_txschq_config * req,struct nix_txschq_config * rsp) rvu_mbox_handler_nix_txschq_cfg() argument 3014 nix_rx_vtag_cfg(struct rvu * rvu,int nixlf,int blkaddr,struct nix_vtag_config * req) nix_rx_vtag_cfg() argument 3037 nix_tx_vtag_free(struct rvu * rvu,int blkaddr,u16 pcifunc,int index) nix_tx_vtag_free() argument 3061 nix_free_tx_vtag_entries(struct rvu * rvu,u16 pcifunc) nix_free_tx_vtag_entries() argument 3086 nix_tx_vtag_alloc(struct rvu * rvu,int blkaddr,u64 vtag,u8 size) nix_tx_vtag_alloc() argument 3119 nix_tx_vtag_decfg(struct rvu * rvu,int blkaddr,struct nix_vtag_config * req) nix_tx_vtag_decfg() argument 3154 nix_tx_vtag_cfg(struct rvu * rvu,int blkaddr,struct nix_vtag_config * req,struct nix_vtag_config_rsp * rsp) nix_tx_vtag_cfg() argument 3197 rvu_mbox_handler_nix_vtag_cfg(struct rvu * rvu,struct nix_vtag_config * req,struct nix_vtag_config_rsp * rsp) rvu_mbox_handler_nix_vtag_cfg() argument 3229 nix_blk_setup_mce(struct rvu * rvu,struct nix_hw * nix_hw,int mce,u8 op,u16 pcifunc,int next,int index,u8 mce_op,bool eol) nix_blk_setup_mce() argument 3281 nix_update_ingress_mce_list_hw(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_mcast_grp_elem * elem) nix_update_ingress_mce_list_hw() argument 3331 nix_update_egress_mce_list_hw(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_mcast_grp_elem * elem) nix_update_egress_mce_list_hw() argument 3378 nix_del_mce_list_entry(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_mcast_grp_elem * elem,struct nix_mcast_grp_update_req * req) nix_del_mce_list_entry() argument 3416 nix_add_mce_list_entry(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_mcast_grp_elem * elem,struct nix_mcast_grp_update_req * req) nix_add_mce_list_entry() argument 3503 nix_update_mce_list(struct rvu * rvu,u16 pcifunc,struct nix_mce_list * mce_list,int mce_idx,int mcam_index,bool add) nix_update_mce_list() argument 3568 nix_get_mce_list(struct rvu * rvu,u16 pcifunc,int type,struct nix_mce_list ** mce_list,int * mce_idx) nix_get_mce_list() argument 3600 nix_update_mce_rule(struct rvu * rvu,u16 pcifunc,int type,bool add) nix_update_mce_rule() argument 3651 nix_setup_mce_tables(struct rvu * rvu,struct nix_hw * nix_hw) nix_setup_mce_tables() argument 3722 nix_setup_mcast(struct rvu * rvu,struct nix_hw * nix_hw,int blkaddr) nix_setup_mcast() argument 3788 nix_setup_txvlan(struct rvu * rvu,struct nix_hw * nix_hw) nix_setup_txvlan() argument 3813 nix_setup_txschq(struct rvu * rvu,struct nix_hw * nix_hw,int blkaddr) nix_setup_txschq() argument 3876 rvu_nix_reserve_mark_format(struct rvu * rvu,struct nix_hw * nix_hw,int blkaddr,u32 cfg) rvu_nix_reserve_mark_format() argument 3894 nix_af_mark_format_setup(struct rvu * rvu,struct nix_hw * nix_hw,int blkaddr) nix_af_mark_format_setup() argument 3927 rvu_get_lbk_link_max_frs(struct rvu * rvu,u16 * max_mtu) rvu_get_lbk_link_max_frs() argument 3936 rvu_get_lmac_link_max_frs(struct rvu * rvu,u16 * max_mtu) rvu_get_lmac_link_max_frs() argument 3949 rvu_mbox_handler_nix_get_hw_info(struct rvu * rvu,struct msg_req * req,struct nix_hw_info * rsp) rvu_mbox_handler_nix_get_hw_info() argument 3997 rvu_mbox_handler_nix_stats_rst(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_stats_rst() argument 4381 reserve_flowkey_alg_idx(struct rvu * rvu,int blkaddr,u32 flow_cfg) reserve_flowkey_alg_idx() argument 4414 rvu_mbox_handler_nix_rss_flowkey_cfg(struct rvu * rvu,struct nix_rss_flowkey_cfg * req,struct nix_rss_flowkey_cfg_rsp * rsp) rvu_mbox_handler_nix_rss_flowkey_cfg() argument 4445 nix_rx_flowkey_alg_cfg(struct rvu * rvu,int blkaddr) nix_rx_flowkey_alg_cfg() argument 4514 rvu_mbox_handler_nix_set_mac_addr(struct rvu * rvu,struct nix_set_mac_addr * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_set_mac_addr() argument 4548 rvu_mbox_handler_nix_get_mac_addr(struct rvu * rvu,struct msg_req * req,struct nix_get_mac_addr_rsp * rsp) rvu_mbox_handler_nix_get_mac_addr() argument 4565 rvu_mbox_handler_nix_set_rx_mode(struct rvu * rvu,struct nix_rx_mode * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_set_rx_mode() argument 4639 nix_find_link_frs(struct rvu * rvu,struct nix_frs_cfg * req,u16 pcifunc) nix_find_link_frs() argument 4684 rvu_mbox_handler_nix_set_hw_frs(struct rvu * rvu,struct nix_frs_cfg * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_set_hw_frs() argument 4752 rvu_mbox_handler_nix_set_rx_cfg(struct rvu * rvu,struct nix_rx_cfg * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_set_rx_cfg() argument 4789 rvu_get_lbk_link_credits(struct rvu * rvu,u16 lbk_max_frs) rvu_get_lbk_link_credits() argument 4794 nix_link_config(struct rvu * rvu,int blkaddr,struct nix_hw * nix_hw) nix_link_config() argument 4882 nix_calibrate_x2p(struct rvu * rvu,int blkaddr) nix_calibrate_x2p() argument 4928 nix_aq_init(struct rvu * rvu,struct rvu_block * block) nix_aq_init() argument 4968 rvu_nix_setup_capabilities(struct rvu * rvu,int blkaddr) rvu_nix_setup_capabilities() argument 4993 rvu_nix_block_init(struct rvu * rvu,struct nix_hw * nix_hw) rvu_nix_block_init() argument 5177 rvu_nix_init(struct rvu * rvu) rvu_nix_init() argument 5204 rvu_nix_block_freemem(struct rvu * rvu,int blkaddr,struct rvu_block * block) rvu_nix_block_freemem() argument 5240 rvu_nix_freemem(struct rvu * rvu) rvu_nix_freemem() argument 5254 nix_mcast_update_action(struct rvu * rvu,struct nix_mcast_grp_elem * elem) nix_mcast_update_action() argument 5280 nix_mcast_update_mce_entry(struct rvu * rvu,u16 pcifunc,u8 is_active) nix_mcast_update_mce_entry() argument 5322 rvu_mbox_handler_nix_lf_start_rx(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_lf_start_rx() argument 5352 rvu_mbox_handler_nix_lf_stop_rx(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_lf_stop_rx() argument 5385 rvu_nix_lf_teardown(struct rvu * rvu,u16 pcifunc,int blkaddr,int nixlf) rvu_nix_lf_teardown() argument 5470 rvu_nix_lf_ptp_tx_cfg(struct rvu * rvu,u16 pcifunc,bool enable) rvu_nix_lf_ptp_tx_cfg() argument 5503 rvu_mbox_handler_nix_lf_ptp_tx_enable(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_lf_ptp_tx_enable() argument 5509 rvu_mbox_handler_nix_lf_ptp_tx_disable(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_lf_ptp_tx_disable() argument 5515 rvu_mbox_handler_nix_lso_format_cfg(struct rvu * rvu,struct nix_lso_format_cfg * req,struct nix_lso_format_cfg_rsp * rsp) rvu_mbox_handler_nix_lso_format_cfg() argument 5579 nix_inline_ipsec_cfg(struct rvu * rvu,struct nix_inline_ipsec_cfg * req,int blkaddr) nix_inline_ipsec_cfg() argument 5635 rvu_mbox_handler_nix_inline_ipsec_cfg(struct rvu * rvu,struct nix_inline_ipsec_cfg * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_inline_ipsec_cfg() argument 5649 rvu_mbox_handler_nix_read_inline_ipsec_cfg(struct rvu * rvu,struct msg_req * req,struct nix_inline_ipsec_cfg * rsp) rvu_mbox_handler_nix_read_inline_ipsec_cfg() argument 5673 rvu_mbox_handler_nix_inline_ipsec_lf_cfg(struct rvu * rvu,struct nix_inline_ipsec_lf_cfg * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_inline_ipsec_lf_cfg() argument 5727 nix_config_rx_pkt_policer_precolor(struct rvu * rvu,int blkaddr) nix_config_rx_pkt_policer_precolor() argument 5769 nix_init_policer_context(struct rvu * rvu,struct nix_hw * nix_hw,int layer,int prof_idx) nix_init_policer_context() argument 5790 nix_setup_ipolicers(struct rvu * rvu,struct nix_hw * nix_hw,int blkaddr) nix_setup_ipolicers() argument 5883 nix_ipolicer_freemem(struct rvu * rvu,struct nix_hw * nix_hw) nix_ipolicer_freemem() argument 5950 rvu_mbox_handler_nix_bandprof_alloc(struct rvu * rvu,struct nix_bandprof_alloc_req * req,struct nix_bandprof_alloc_rsp * rsp) rvu_mbox_handler_nix_bandprof_alloc() argument 5991 nix_free_all_bandprof(struct rvu * rvu,u16 pcifunc) nix_free_all_bandprof() argument 6029 rvu_mbox_handler_nix_bandprof_free(struct rvu * rvu,struct nix_bandprof_free_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_bandprof_free() argument 6079 nix_aq_context_read(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_cn10k_aq_enq_req * aq_req,struct nix_cn10k_aq_enq_rsp * aq_rsp,u16 pcifunc,u8 ctype,u32 qidx) nix_aq_context_read() argument 6095 nix_ipolicer_map_leaf_midprofs(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_cn10k_aq_enq_req * aq_req,struct nix_cn10k_aq_enq_rsp * aq_rsp,u32 leaf_prof,u16 mid_prof) nix_ipolicer_map_leaf_midprofs() argument 6121 rvu_nix_setup_ratelimit_aggr(struct rvu * rvu,u16 pcifunc,u16 rq_idx,u16 match_id) rvu_nix_setup_ratelimit_aggr() argument 6291 nix_clear_ratelimit_aggr(struct rvu * rvu,struct nix_hw * nix_hw,u32 leaf_prof) nix_clear_ratelimit_aggr() argument 6327 rvu_mbox_handler_nix_bandprof_get_hwinfo(struct rvu * rvu,struct msg_req * req,struct nix_bandprof_get_hwinfo_rsp * rsp) rvu_mbox_handler_nix_bandprof_get_hwinfo() argument 6360 rvu_mbox_handler_nix_rx_sw_sync(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_rx_sw_sync() argument 6398 rvu_nix_mcast_get_mce_index(struct rvu * rvu,u16 pcifunc,u32 mcast_grp_idx) rvu_nix_mcast_get_mce_index() argument 6422 rvu_nix_mcast_flr_free_entries(struct rvu * rvu,u16 pcifunc) rvu_nix_mcast_flr_free_entries() argument 6477 rvu_nix_mcast_update_mcam_entry(struct rvu * rvu,u16 pcifunc,u32 mcast_grp_idx,u16 mcam_index) rvu_nix_mcast_update_mcam_entry() argument 6502 rvu_mbox_handler_nix_mcast_grp_create(struct rvu * rvu,struct nix_mcast_grp_create_req * req,struct nix_mcast_grp_create_rsp * rsp) rvu_mbox_handler_nix_mcast_grp_create() argument 6536 rvu_mbox_handler_nix_mcast_grp_destroy(struct rvu * rvu,struct nix_mcast_grp_destroy_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_mcast_grp_destroy() argument 6600 rvu_mbox_handler_nix_mcast_grp_update(struct rvu * rvu,struct nix_mcast_grp_update_req * req,struct nix_mcast_grp_update_rsp * rsp) rvu_mbox_handler_nix_mcast_grp_update() argument 6741 rvu_block_bcast_xon(struct rvu * rvu,int blkaddr) rvu_block_bcast_xon() argument [all...] |
| H A D | rvu_switch.c | 9 #include "rvu.h" 11 void rvu_switch_enable_lbk_link(struct rvu *rvu, u16 pcifunc, bool enable) in rvu_switch_enable_lbk_link() argument 13 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_enable_lbk_link() 16 nix_hw = get_nix_hw(rvu->hw, pfvf->nix_blkaddr); in rvu_switch_enable_lbk_link() 18 rvu_nix_tx_tl2_cfg(rvu, pfvf->nix_blkaddr, pcifunc, 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() argument 29 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_rx_rule() 48 return rvu_mbox_handler_npc_install_flow(rvu, in rvu_switch_install_rx_rule() 51 rvu_switch_install_tx_rule(struct rvu * rvu,u16 pcifunc,u16 entry) rvu_switch_install_tx_rule() argument 83 rvu_switch_install_rules(struct rvu * rvu) rvu_switch_install_rules() argument 156 rvu_switch_enable(struct rvu * rvu) rvu_switch_enable() argument 217 rvu_switch_disable(struct rvu * rvu) rvu_switch_disable() argument 272 rvu_switch_update_rules(struct rvu * rvu,u16 pcifunc,bool ena) rvu_switch_update_rules() argument [all...] |
| H A D | mcs_rvu_if.c | 13 #include "rvu.h" 19 *otx2_mbox_alloc_msg_ ## _fn_name(struct rvu *rvu, int devid) \ 24 &rvu->afpf_wq_info.mbox_up, devid, sizeof(struct _req_type), \ 36 void rvu_mcs_ptp_cfg(struct rvu *rvu, u8 rpm_id, u8 lmac_id, bool ena) in rvu_mcs_ptp_cfg() argument 42 if (!rvu->mcs_blk_cnt) in rvu_mcs_ptp_cfg() 51 if (rvu->mcs_blk_cnt > 1) { in rvu_mcs_ptp_cfg() 63 port = (rpm_id * rvu->hw->lmac_per_cgx) + lmac_id; in rvu_mcs_ptp_cfg() 72 int rvu_mbox_handler_mcs_set_lmac_mode(struct rvu *rv argument 93 struct rvu *rvu = mcs->rvu; mcs_add_intr_wq_entry() local 121 mcs_notify_pfvf(struct mcs_intr_event * event,struct rvu * rvu) mcs_notify_pfvf() argument 155 struct rvu *rvu = container_of(work, struct rvu, mcs_intr_work); mcs_intr_handler_task() local 179 rvu_mbox_handler_mcs_intr_cfg(struct rvu * rvu,struct mcs_intr_cfg * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_intr_cfg() argument 204 rvu_mbox_handler_mcs_get_hw_info(struct rvu * rvu,struct msg_req * req,struct mcs_hw_info * rsp) rvu_mbox_handler_mcs_get_hw_info() argument 223 rvu_mbox_handler_mcs_port_reset(struct rvu * rvu,struct mcs_port_reset_req * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_port_reset() argument 238 rvu_mbox_handler_mcs_clear_stats(struct rvu * rvu,struct mcs_clear_stats * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_clear_stats() argument 260 rvu_mbox_handler_mcs_get_flowid_stats(struct rvu * rvu,struct mcs_stats_req * req,struct mcs_flowid_stats * rsp) rvu_mbox_handler_mcs_get_flowid_stats() argument 291 rvu_mbox_handler_mcs_get_secy_stats(struct rvu * rvu,struct mcs_stats_req * req,struct mcs_secy_stats * rsp) rvu_mbox_handler_mcs_get_secy_stats() argument 319 rvu_mbox_handler_mcs_get_sc_stats(struct rvu * rvu,struct mcs_stats_req * req,struct mcs_sc_stats * rsp) rvu_mbox_handler_mcs_get_sc_stats() argument 343 rvu_mbox_handler_mcs_get_sa_stats(struct rvu * rvu,struct mcs_stats_req * req,struct mcs_sa_stats * rsp) rvu_mbox_handler_mcs_get_sa_stats() argument 367 rvu_mbox_handler_mcs_get_port_stats(struct rvu * rvu,struct mcs_stats_req * req,struct mcs_port_stats * rsp) rvu_mbox_handler_mcs_get_port_stats() argument 391 rvu_mbox_handler_mcs_set_active_lmac(struct rvu * rvu,struct mcs_set_active_lmac * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_set_active_lmac() argument 409 rvu_mbox_handler_mcs_port_cfg_set(struct rvu * rvu,struct mcs_port_cfg_set_req * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_port_cfg_set() argument 427 rvu_mbox_handler_mcs_port_cfg_get(struct rvu * rvu,struct mcs_port_cfg_get_req * req,struct mcs_port_cfg_get_rsp * rsp) rvu_mbox_handler_mcs_port_cfg_get() argument 445 rvu_mbox_handler_mcs_custom_tag_cfg_get(struct rvu * rvu,struct mcs_custom_tag_cfg_get_req * req,struct mcs_custom_tag_cfg_get_rsp * rsp) rvu_mbox_handler_mcs_custom_tag_cfg_get() argument 460 rvu_mcs_flr_handler(struct rvu * rvu,u16 pcifunc) rvu_mcs_flr_handler() argument 481 rvu_mbox_handler_mcs_flowid_ena_entry(struct rvu * rvu,struct mcs_flowid_ena_dis_entry * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_flowid_ena_entry() argument 495 rvu_mbox_handler_mcs_pn_table_write(struct rvu * rvu,struct mcs_pn_table_write_req * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_pn_table_write() argument 509 rvu_mbox_handler_mcs_set_pn_threshold(struct rvu * rvu,struct mcs_set_pn_threshold * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_set_pn_threshold() argument 525 rvu_mbox_handler_mcs_rx_sc_sa_map_write(struct rvu * rvu,struct mcs_rx_sc_sa_map * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_rx_sc_sa_map_write() argument 539 rvu_mbox_handler_mcs_tx_sc_sa_map_write(struct rvu * rvu,struct mcs_tx_sc_sa_map * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_tx_sc_sa_map_write() argument 555 rvu_mbox_handler_mcs_sa_plcy_write(struct rvu * rvu,struct mcs_sa_plcy_write_req * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_sa_plcy_write() argument 573 rvu_mbox_handler_mcs_rx_sc_cam_write(struct rvu * rvu,struct mcs_rx_sc_cam_write_req * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_rx_sc_cam_write() argument 587 rvu_mbox_handler_mcs_secy_plcy_write(struct rvu * rvu,struct mcs_secy_plcy_write_req * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_secy_plcy_write() argument 602 rvu_mbox_handler_mcs_flowid_entry_write(struct rvu * rvu,struct mcs_flowid_entry_write_req * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_flowid_entry_write() argument 629 rvu_mbox_handler_mcs_free_resources(struct rvu * rvu,struct mcs_free_rsrc_req * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_free_resources() argument 679 rvu_mbox_handler_mcs_alloc_resources(struct rvu * rvu,struct mcs_alloc_rsrc_req * req,struct mcs_alloc_rsrc_rsp * rsp) rvu_mbox_handler_mcs_alloc_resources() argument 761 rvu_mbox_handler_mcs_alloc_ctrl_pkt_rule(struct rvu * rvu,struct mcs_alloc_ctrl_pkt_rule_req * req,struct mcs_alloc_ctrl_pkt_rule_rsp * rsp) rvu_mbox_handler_mcs_alloc_ctrl_pkt_rule() argument 818 rvu_mbox_handler_mcs_free_ctrl_pkt_rule(struct rvu * rvu,struct mcs_free_ctrl_pkt_rule_req * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_free_ctrl_pkt_rule() argument 839 rvu_mbox_handler_mcs_ctrl_pkt_rule_write(struct rvu * rvu,struct mcs_ctrl_pkt_rule_write_req * req,struct msg_rsp * rsp) rvu_mbox_handler_mcs_ctrl_pkt_rule_write() argument 856 rvu_mcs_set_lmac_bmap(struct rvu * rvu) rvu_mcs_set_lmac_bmap() argument 872 rvu_mcs_init(struct rvu * rvu) rvu_mcs_init() argument 925 rvu_mcs_exit(struct rvu * rvu) rvu_mcs_exit() argument [all...] |
| H A D | rvu_npc_fs.c | 11 #include "rvu.h" 62 bool npc_is_feature_supported(struct rvu *rvu, u64 features, u8 intf) in npc_is_feature_supported() argument 64 struct npc_mcam *mcam = &rvu->hw->mcam; 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() argument 93 if (is_cn20k(rvu->pdev)) { 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() argument 150 struct npc_mcam *mcam = &rvu in npc_is_field_present() 167 npc_set_layer_mdata(struct rvu * rvu,struct npc_mcam * mcam,enum key_fields type,u64 cfg,u8 lid,u8 lt,u8 intf) npc_set_layer_mdata() argument 212 npc_check_overlap(struct rvu * rvu,int blkaddr,enum key_fields type,u8 start_lid,u8 intf) npc_check_overlap() argument 300 npc_check_field(struct rvu * rvu,int blkaddr,enum key_fields type,u8 intf) npc_check_field() argument 309 npc_scan_exact_result(struct rvu * rvu,struct npc_mcam * mcam,u8 bit_number,u8 key_nibble,u8 intf) npc_scan_exact_result() argument 329 npc_cn20k_scan_parse_result(struct rvu * rvu,struct npc_mcam * mcam,u8 bit_number,u8 key_nibble,u8 intf) npc_cn20k_scan_parse_result() argument 381 npc_scan_parse_result(struct rvu * rvu,struct npc_mcam * mcam,u8 bit_number,u8 key_nibble,u8 intf) npc_scan_parse_result() argument 441 npc_handle_multi_layer_fields(struct rvu * rvu,int blkaddr,u8 intf) npc_handle_multi_layer_fields() argument 577 npc_scan_ldata(struct rvu * rvu,int blkaddr,u8 lid,u8 lt,u64 cfg,u8 intf) npc_scan_ldata() argument 683 npc_set_features(struct rvu * rvu,int blkaddr,u8 intf) npc_set_features() argument 761 npc_scan_kex(struct rvu * rvu,int blkaddr,u8 intf) npc_scan_kex() argument 838 npc_scan_verify_kex(struct rvu * rvu,int blkaddr) npc_scan_verify_kex() argument 869 npc_flow_steering_init(struct rvu * rvu,int blkaddr) npc_flow_steering_init() argument 878 npc_check_unsupported_flows(struct rvu * rvu,u64 features,u8 intf) npc_check_unsupported_flows() argument 910 npc_update_entry(struct rvu * rvu,enum key_fields type,struct mcam_entry_mdata * mdata,u64 val_lo,u64 val_hi,u64 mask_lo,u64 mask_hi,u8 intf) npc_update_entry() argument 1003 npc_update_ipv6_flow(struct rvu * rvu,struct mcam_entry_mdata * mdata,u64 features,struct flow_msg * pkt,struct flow_msg * mask,struct rvu_npc_mcam_rule * output,u8 intf) npc_update_ipv6_flow() argument 1051 npc_update_vlan_features(struct rvu * rvu,struct mcam_entry_mdata * mdata,u64 features,u8 intf) npc_update_vlan_features() argument 1074 npc_update_flow(struct rvu * rvu,struct mcam_entry_mdata * mdata,u64 features,struct flow_msg * pkt,struct flow_msg * mask,struct rvu_npc_mcam_rule * output,u8 intf,int blkaddr) npc_update_flow() argument 1252 rvu_mcam_remove_counter_from_rule(struct rvu * rvu,u16 pcifunc,struct rvu_npc_mcam_rule * rule) rvu_mcam_remove_counter_from_rule() argument 1268 rvu_mcam_add_counter_to_rule(struct rvu * rvu,u16 pcifunc,struct rvu_npc_mcam_rule * rule,struct npc_install_flow_rsp * rsp) rvu_mcam_add_counter_to_rule() argument 1281 npc_mcast_update_action_index(struct rvu * rvu,struct npc_install_flow_req * req,u64 op,void * action) npc_mcast_update_action_index() argument 1308 npc_populate_mcam_mdata(struct rvu * rvu,struct mcam_entry_mdata * mdata,struct cn20k_mcam_entry * cn20k_entry,struct mcam_entry * entry) npc_populate_mcam_mdata() argument 1328 npc_update_rx_entry(struct rvu * rvu,struct rvu_pfvf * pfvf,struct mcam_entry_mdata * mdata,struct npc_install_flow_req * req,u16 target,bool pf_set_vfs_mac) npc_update_rx_entry() argument 1389 npc_update_tx_entry(struct rvu * rvu,struct rvu_pfvf * pfvf,struct mcam_entry_mdata * mdata,struct npc_install_flow_req * req,u16 target) npc_update_tx_entry() argument 1433 npc_install_flow(struct rvu * rvu,int blkaddr,u16 target,int nixlf,struct rvu_pfvf * pfvf,struct npc_install_flow_req * req,struct npc_install_flow_rsp * rsp,bool enable,bool pf_set_vfs_mac) npc_install_flow() argument 1655 rvu_npc_free_entry_for_flow_install(struct rvu * rvu,u16 pcifunc,bool free_entry,int mcam_idx) rvu_npc_free_entry_for_flow_install() argument 1672 rvu_npc_alloc_entry_for_flow_install(struct rvu * rvu,struct npc_install_flow_req * fl_req,u16 * mcam_idx,u8 * kw_type,bool * allocated) rvu_npc_alloc_entry_for_flow_install() argument 1737 rvu_mbox_handler_npc_install_flow(struct rvu * rvu,struct npc_install_flow_req * req,struct npc_install_flow_rsp * rsp) rvu_mbox_handler_npc_install_flow() argument 1913 npc_delete_flow(struct rvu * rvu,struct rvu_npc_mcam_rule * rule,u16 pcifunc) npc_delete_flow() argument 1934 rvu_mbox_handler_npc_delete_flow(struct rvu * rvu,struct npc_delete_flow_req * req,struct npc_delete_flow_rsp * rsp) rvu_mbox_handler_npc_delete_flow() argument 1986 npc_update_dmac_value(struct rvu * rvu,int npcblkaddr,struct rvu_npc_mcam_rule * rule,struct rvu_pfvf * pfvf) npc_update_dmac_value() argument 2040 npc_mcam_enable_flows(struct rvu * rvu,u16 target) npc_mcam_enable_flows() argument 2100 npc_mcam_disable_flows(struct rvu * rvu,u16 target) npc_mcam_disable_flows() argument 2122 npc_install_mcam_drop_rule(struct rvu * rvu,int mcam_idx,u16 * counter_idx,u64 chan_val,u64 chan_mask,u64 exact_val,u64 exact_mask,u64 bcast_mcast_val,u64 bcast_mcast_mask) npc_install_mcam_drop_rule() argument 2244 rvu_mbox_handler_npc_get_field_status(struct rvu * rvu,struct npc_get_field_status_req * req,struct npc_get_field_status_rsp * rsp) rvu_mbox_handler_npc_get_field_status() argument [all...] |
| H A D | rvu_sdp.c | 9 #include "rvu.h" 20 bool is_sdp_pfvf(struct rvu *rvu, u16 pcifunc) in is_sdp_pfvf() argument 22 u16 pf = rvu_get_pf(rvu->pdev, pcifunc); in is_sdp_pfvf() 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 47 return (rvu in is_sdp_vf() 53 rvu_sdp_init(struct rvu * rvu) rvu_sdp_init() argument 93 rvu_mbox_handler_set_sdp_chan_info(struct rvu * rvu,struct sdp_chan_info_msg * req,struct msg_rsp * rsp) rvu_mbox_handler_set_sdp_chan_info() argument 107 rvu_mbox_handler_get_sdp_chan_info(struct rvu * rvu,struct msg_req * req,struct sdp_get_chan_info_msg * rsp) rvu_mbox_handler_get_sdp_chan_info() argument [all...] |
| H A D | rvu_debugfs.c | 17 #include "rvu.h" 497 static void rvu_dbg_mcs_init(struct rvu *rvu) in rvu_dbg_mcs_init() argument 503 if (!rvu->mcs_blk_cnt) in rvu_dbg_mcs_init() 506 rvu->rvu_dbg.mcs_root = debugfs_create_dir("mcs", rvu->rvu_dbg.root); in rvu_dbg_mcs_init() 508 for (i = 0; i < rvu->mcs_blk_cnt; i++) { in rvu_dbg_mcs_init() 512 rvu->rvu_dbg.mcs = debugfs_create_dir(dname, in rvu_dbg_mcs_init() 513 rvu->rvu_dbg.mcs_root); in rvu_dbg_mcs_init() 515 rvu in rvu_dbg_mcs_init() 557 struct rvu *rvu = filp->private_data; rvu_dbg_lmtst_map_table_display() local 683 get_max_column_width(struct rvu * rvu) get_max_column_width() argument 719 struct rvu *rvu = filp->private; rvu_dbg_rsrc_attach_status() local 787 struct rvu *rvu = filp->private; rvu_dbg_rvu_pf_cgx_map_display() local 845 struct rvu *rvu = s->private; rvu_dbg_rvu_fwdata_display() local 908 rvu_dbg_is_valid_lf(struct rvu * rvu,int blkaddr,int lf,u16 * pcifunc) rvu_dbg_is_valid_lf() argument 960 struct rvu *rvu; rvu_dbg_qsize_display() local 1002 struct rvu *rvu = seqfile->private; rvu_dbg_qsize_write() local 1066 struct rvu *rvu = m->private; print_npa_aura_ctx() local 1119 struct rvu *rvu = m->private; print_npa_pool_ctx() local 1176 struct rvu *rvu; rvu_dbg_npa_ctx_display() local 1253 write_npa_ctx(struct rvu * rvu,bool all,int npalf,int id,int ctype) write_npa_ctx() argument 1349 struct rvu *rvu = seqfp->private; rvu_dbg_npa_ctx_write() local 1409 struct rvu *rvu; ndc_cache_stats() local 1462 struct rvu *rvu; ndc_blk_hits_miss_stats() local 1623 struct rvu *rvu = nix_hw->rvu; print_tm_tree() local 1655 struct rvu *rvu = nix_hw->rvu; rvu_dbg_nix_tm_tree_display() local 1706 struct rvu *rvu = nix_hw->rvu; rvu_dbg_nix_tm_tree_write() local 1734 struct rvu *rvu = nix_hw->rvu; print_tm_topo() local 1930 struct rvu *rvu = nix_hw->rvu; rvu_dbg_nix_tm_topo_display() local 1963 struct rvu *rvu = nix_hw->rvu; rvu_dbg_nix_tm_topo_write() local 1993 struct rvu *rvu = nix_hw->rvu; print_nix_sq_ctx() local 2148 struct rvu *rvu = nix_hw->rvu; print_nix_rq_ctx() local 2217 struct rvu *rvu = nix_hw->rvu; print_nix_cq_ctx() local 2272 struct rvu *rvu = nix_hw->rvu; rvu_dbg_nix_queue_ctx_display() local 2355 write_nix_queue_ctx(struct rvu * rvu,bool all,int nixlf,int id,int ctype,char * ctype_string,struct seq_file * m) write_nix_queue_ctx() argument 2425 struct rvu *rvu = nix_hw->rvu; rvu_dbg_nix_queue_ctx_write() local 2643 struct rvu *rvu = nix_hw->rvu; rvu_dbg_nix_band_prof_ctx_display() local 2726 rvu_dbg_nix_init(struct rvu * rvu,int blkaddr) rvu_dbg_nix_init() argument 2768 rvu_dbg_npa_init(struct rvu * rvu) rvu_dbg_npa_init() argument 2791 struct rvu *rvu; global() member 2819 struct rvu *rvu = dctx->rvu; cgx_print_stats() local 2932 struct rvu *rvu = dctx->rvu; cgx_print_dmac_flt() local 2989 struct rvu *rvu = dctx->rvu; cgx_print_fwdata() local 3072 rvu_dbg_cgx_init(struct rvu * rvu) rvu_dbg_cgx_init() argument 3130 struct rvu *rvu = s->private; rvu_print_npc_mcam_info() local 3161 struct rvu *rvu = filp->private; rvu_dbg_npc_mcam_info_display() local 3249 struct rvu *rvu = filp->private; rvu_dbg_npc_rx_miss_stats_display() local 3490 struct rvu *rvu = s->private; rvu_dbg_npc_mcam_show_rules() local 3569 struct rvu *rvu = s->private; rvu_dbg_npc_exact_show_entries() local 3654 struct rvu *rvu = s->private; rvu_dbg_npc_exact_show_info() local 3691 struct rvu *rvu = s->private; rvu_dbg_npc_exact_drop_cnt() local 3734 rvu_dbg_npc_init(struct rvu * rvu) rvu_dbg_npc_init() argument 3769 struct rvu *rvu = ctx->rvu; cpt_eng_sts_display() local 3834 struct rvu *rvu = ctx->rvu; rvu_dbg_cpt_engines_info_display() local 3868 struct rvu *rvu = ctx->rvu; rvu_dbg_cpt_lfs_info_display() local 3900 struct rvu *rvu = ctx->rvu; rvu_dbg_cpt_err_info_display() local 3927 struct rvu *rvu = ctx->rvu; rvu_dbg_cpt_pc_display() local 3951 rvu_dbg_cpt_init(struct rvu * rvu,int blkaddr) rvu_dbg_cpt_init() argument 3987 rvu_get_dbg_dir_name(struct rvu * rvu) rvu_get_dbg_dir_name() argument 3998 rvu_dbg_init(struct rvu * rvu) rvu_dbg_init() argument 4034 rvu_dbg_exit(struct rvu * rvu) rvu_dbg_exit() argument [all...] |
| H 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() 388 if (is_tstmp_atomic_update_supported(rvu)) { 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() 636 err = ptp_adjfine(rvu->ptp, req->scaled_ppm); in rvu_mbox_handler_ptp_op() 639 err = ptp_get_clock(rvu->ptp, &rsp->clk); in rvu_mbox_handler_ptp_op() [all …]
|
| H 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);
|
| H A D | ptp.h | 26 struct rvu; 29 void ptp_start(struct rvu *rvu, u64 sclk, u32 ext_clk_freq, u32 extts);
|
| H A D | npc.h | 14 rvu_write64(rvu, blkaddr, \ 18 rvu_write64(rvu, blkaddr, \
|
| H A D | mcs.h | 150 void *rvu; member
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/cn20k/ |
| H A D | mbox_init.c | 19 struct rvu *rvu = rvu_irq_data->rvu; in cn20k_afvf_mbox_intr_handler() local 26 intr = rvupf_read64(rvu, rvu_irq_data->intr_status); in cn20k_afvf_mbox_intr_handler() 27 rvupf_write64(rvu, rvu_irq_data->intr_status, intr); in cn20k_afvf_mbox_intr_handler() 30 trace_otx2_msg_interrupt(rvu->pdev, "VF(s) to AF", intr); in cn20k_afvf_mbox_intr_handler() 32 rvu_irq_data->afvf_queue_work_hdlr(&rvu->afvf_wq_info, rvu_irq_data->start, in cn20k_afvf_mbox_intr_handler() 38 int cn20k_register_afvf_mbox_intr(struct rvu *rvu, int pf_vec_start) in cn20k_register_afvf_mbox_intr() argument 45 irq_data = devm_kzalloc_objs(rvu in cn20k_register_afvf_mbox_intr() 105 struct rvu *rvu = rvu_irq_data->rvu; cn20k_mbox_pf_common_intr_handler() local 125 cn20k_rvu_enable_mbox_intr(struct rvu * rvu) cn20k_rvu_enable_mbox_intr() argument 156 cn20k_rvu_unregister_interrupts(struct rvu * rvu) cn20k_rvu_unregister_interrupts() argument 171 cn20k_register_afpf_mbox_intr(struct rvu * rvu) cn20k_register_afpf_mbox_intr() argument 232 cn20k_rvu_get_mbox_regions(struct rvu * rvu,void ** mbox_addr,int num,int type,unsigned long * pf_bmap) cn20k_rvu_get_mbox_regions() argument 268 rvu_alloc_mbox_memory(struct rvu * rvu,int type,int ndevs,int mbox_size) rvu_alloc_mbox_memory() argument 318 cn20k_rvu_mbox_init(struct rvu * rvu,int type,int ndevs) cn20k_rvu_mbox_init() argument 338 cn20k_free_mbox_memory_type(struct rvu * rvu,int type) cn20k_free_mbox_memory_type() argument 355 cn20k_free_mbox_memory(struct rvu * rvu) cn20k_free_mbox_memory() argument 364 cn20k_rvu_disable_afvf_intr(struct rvu * rvu,int vfs) cn20k_rvu_disable_afvf_intr() argument 380 cn20k_rvu_enable_afvf_intr(struct rvu * rvu,int vfs) cn20k_rvu_enable_afvf_intr() argument 408 rvu_alloc_cint_qint_mem(struct rvu * rvu,struct rvu_pfvf * pfvf,int blkaddr,int nixlf) rvu_alloc_cint_qint_mem() argument [all...] |
| H A D | npc.c | 10 #include "rvu.h" 293 static int npc_vidx_maps_del_entry(struct rvu *rvu, u16 vidx, u16 *old_midx) in npc_vidx_maps_del_entry() argument 299 dev_err(rvu->dev, in npc_vidx_maps_del_entry() 309 dev_err(rvu->dev, in npc_vidx_maps_del_entry() 317 dev_err(rvu->dev, in npc_vidx_maps_del_entry() 329 static int npc_vidx_maps_modify(struct rvu *rvu, u16 vidx, u16 new_midx) in npc_vidx_maps_modify() argument 336 dev_err(rvu->dev, in npc_vidx_maps_modify() 344 dev_err(rvu in npc_vidx_maps_modify() 406 npc_vidx_maps_add_entry(struct rvu * rvu,u16 mcam_idx,int pcifunc,u16 * vidx) npc_vidx_maps_add_entry() argument 446 npc_config_kpmcam(struct rvu * rvu,int blkaddr,const struct npc_kpu_profile_cam * kpucam,int kpm,int entry) npc_config_kpmcam() argument 470 npc_config_kpmaction(struct rvu * rvu,int blkaddr,const struct npc_kpu_profile_action * kpuaction,int kpm,int entry,bool pkind) npc_config_kpmaction() argument 518 npc_program_single_kpm_profile(struct rvu * rvu,int blkaddr,int kpm,int start_entry,const struct npc_kpu_profile * profile) npc_program_single_kpm_profile() argument 557 npc_enable_kpm_entry(struct rvu * rvu,int blkaddr,int kpm,int num_entries) npc_enable_kpm_entry() argument 615 npc_program_kpm_profile(struct rvu * rvu,int blkaddr,int num_kpms) npc_program_kpm_profile() argument 642 npc_cn20k_parser_profile_init(struct rvu * rvu,int blkaddr) npc_cn20k_parser_profile_init() argument 695 npc_program_mkex_rx(struct rvu * rvu,int blkaddr,const struct npc_mcam_kex_extr * mkex_extr,u8 intf) npc_program_mkex_rx() argument 724 npc_program_mkex_tx(struct rvu * rvu,int blkaddr,const struct npc_mcam_kex_extr * mkex_extr,u8 intf) npc_program_mkex_tx() argument 753 npc_program_mkex_profile(struct rvu * rvu,int blkaddr,const struct npc_mcam_kex_extr * mkex_extr) npc_program_mkex_profile() argument 768 npc_cn20k_load_mkex_profile(struct rvu * rvu,int blkaddr,const char * mkex_profile) npc_cn20k_load_mkex_profile() argument 816 npc_cn20k_enable_mcam_entry(struct rvu * rvu,int blkaddr,int index,bool enable) npc_cn20k_enable_mcam_entry() argument 869 npc_clear_x2_entry(struct rvu * rvu,int blkaddr,int bank,int index) npc_clear_x2_entry() argument 904 npc_cn20k_clear_mcam_entry(struct rvu * rvu,int blkaddr,int mcam_idx) npc_cn20k_clear_mcam_entry() argument 975 npc_cn20k_config_kw_x2(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index,u8 intf,struct cn20k_mcam_entry * entry,int bank,u8 kw_type,int kw,u8 req_kw_type) npc_cn20k_config_kw_x2() argument 1057 npc_cn20k_config_kw_x4(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index,u8 intf,struct cn20k_mcam_entry * entry,u8 kw_type,u8 req_kw_type) npc_cn20k_config_kw_x4() argument 1071 npc_cn20k_config_mcam_entry(struct rvu * rvu,int blkaddr,int index,u8 intf,struct cn20k_mcam_entry * entry,bool enable,u8 hw_prio,u8 req_kw_type) npc_cn20k_config_mcam_entry() argument 1169 npc_cn20k_copy_mcam_entry(struct rvu * rvu,int blkaddr,u16 src,u16 dest) npc_cn20k_copy_mcam_entry() argument 1236 npc_cn20k_read_mcam_entry(struct rvu * rvu,int blkaddr,u16 index,struct cn20k_mcam_entry * entry,u8 * intf,u8 * ena,u8 * hw_prio) npc_cn20k_read_mcam_entry() argument 1363 rvu_mbox_handler_npc_cn20k_mcam_write_entry(struct rvu * rvu,struct npc_cn20k_mcam_write_entry_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_cn20k_mcam_write_entry() argument 1407 rvu_mbox_handler_npc_cn20k_mcam_read_entry(struct rvu * rvu,struct npc_mcam_read_entry_req * req,struct npc_cn20k_mcam_read_entry_rsp * rsp) rvu_mbox_handler_npc_cn20k_mcam_read_entry() argument 1434 rvu_mbox_handler_npc_cn20k_mcam_alloc_and_write_entry(struct rvu * rvu,struct npc_cn20k_mcam_alloc_and_write_entry_req * req,struct npc_mcam_alloc_and_write_entry_rsp * rsp) rvu_mbox_handler_npc_cn20k_mcam_alloc_and_write_entry() argument 1502 rvu_npc_get_base_steer_rule_type(struct rvu * rvu,u16 pcifunc) rvu_npc_get_base_steer_rule_type() argument 1510 rvu_mbox_handler_npc_cn20k_read_base_steer_rule(struct rvu * rvu,struct msg_req * req,struct npc_cn20k_mcam_read_base_rule_rsp * rsp) rvu_mbox_handler_npc_cn20k_read_base_steer_rule() argument 1625 npc_cn20k_update_action_entries_n_flags(struct rvu * rvu,struct npc_kpu_profile_adapter * pfl) npc_cn20k_update_action_entries_n_flags() argument 1640 npc_cn20k_apply_custom_kpu(struct rvu * rvu,struct npc_kpu_profile_adapter * profile) npc_cn20k_apply_custom_kpu() argument 1742 npc_mcam_idx_2_key_type(struct rvu * rvu,u16 mcam_idx,u8 * key_type) npc_mcam_idx_2_key_type() argument 1776 npc_subbank_idx_2_mcam_idx(struct rvu * rvu,struct npc_subbank * sb,u16 sub_off,u16 * mcam_idx) npc_subbank_idx_2_mcam_idx() argument 1815 npc_mcam_idx_2_subbank_idx(struct rvu * rvu,u16 mcam_idx,struct npc_subbank ** sb,int * sb_off) npc_mcam_idx_2_subbank_idx() argument 1857 __npc_subbank_contig_alloc(struct rvu * rvu,struct npc_subbank * sb,int key_type,int sidx,int eidx,int prio,int count,int t,int b,unsigned long * bmap,u16 * save) __npc_subbank_contig_alloc() argument 1924 __npc_subbank_non_contig_alloc(struct rvu * rvu,struct npc_subbank * sb,int key_type,int sidx,int eidx,int prio,int t,int b,unsigned long * bmap,int count,u16 * save,bool max_alloc,int * alloc_cnt) __npc_subbank_non_contig_alloc() argument 1993 __npc_subbank_sboff_2_off(struct rvu * rvu,struct npc_subbank * sb,int sb_off,unsigned long ** bmap,int * off) __npc_subbank_sboff_2_off() argument 2006 __npc_subbank_mark_slot(struct rvu * rvu,struct npc_subbank * sb,int sb_off,bool set) __npc_subbank_mark_slot() argument 2041 __npc_subbank_mark_free(struct rvu * rvu,struct npc_subbank * sb) __npc_subbank_mark_free() argument 2082 __npc_subbank_mark_used(struct rvu * rvu,struct npc_subbank * sb,int key_type) __npc_subbank_mark_used() argument 2113 __npc_subbank_free(struct rvu * rvu,struct npc_subbank * sb,u16 sb_off) __npc_subbank_free() argument 2147 npc_subbank_free(struct rvu * rvu,struct npc_subbank * sb,u16 sb_off) npc_subbank_free() argument 2158 __npc_subbank_alloc(struct rvu * rvu,struct npc_subbank * sb,int key_type,int ref,int limit,int prio,bool contig,int count,u16 * mcam_idx,int idx_sz,bool max_alloc,int * alloc_cnt) __npc_subbank_alloc() argument 2390 npc_subbank_alloc(struct rvu * rvu,struct npc_subbank * sb,int key_type,int ref,int limit,int prio,bool contig,int count,u16 * mcam_idx,int idx_sz,bool max_alloc,int * alloc_cnt) npc_subbank_alloc() argument 2407 npc_del_from_pf_maps(struct rvu * rvu,u16 mcam_idx) npc_del_from_pf_maps() argument 2442 npc_add_to_pf_maps(struct rvu * rvu,u16 mcam_idx,int pcifunc) npc_add_to_pf_maps() argument 2511 npc_subbank_iter_down(struct rvu * rvu,int ref,int limit,int * cur_ref,int * cur_limit,bool * start,bool * stop) npc_subbank_iter_down() argument 2545 npc_subbank_iter_up(struct rvu * rvu,int ref,int limit,int * cur_ref,int * cur_limit,bool * start,bool * stop) npc_subbank_iter_up() argument 2587 npc_subbank_iter(struct rvu * rvu,int key_type,int ref,int limit,int prio,int * cur_ref,int * cur_limit,bool * start,bool * stop) npc_subbank_iter() argument 2619 npc_idx_free(struct rvu * rvu,u16 * mcam_idx,int count,bool maps_del) npc_idx_free() argument 2691 npc_multi_subbank_ref_alloc(struct rvu * rvu,int key_type,int ref,int limit,int prio,bool contig,int count,u16 * mcam_idx) npc_multi_subbank_ref_alloc() argument 2838 npc_subbank_free_cnt(struct rvu * rvu,struct npc_subbank * sb,int key_type) npc_subbank_free_cnt() argument 2855 npc_subbank_ref_alloc(struct rvu * rvu,int key_type,int ref,int limit,int prio,bool contig,int count,u16 * mcam_idx) npc_subbank_ref_alloc() argument 2973 npc_subbank_restrict_usage(struct rvu * rvu,int index) npc_subbank_restrict_usage() argument 2988 npc_subbank_noref_alloc(struct rvu * rvu,int key_type,bool contig,int count,u16 * mcam_idx) npc_subbank_noref_alloc() argument 3192 npc_cn20k_idx_free(struct rvu * rvu,u16 * mcam_idx,int count) npc_cn20k_idx_free() argument 3197 npc_cn20k_ref_idx_alloc(struct rvu * rvu,int pcifunc,int key_type,int prio,u16 * mcam_idx,int ref,int limit,bool contig,int count,bool virt) npc_cn20k_ref_idx_alloc() argument 3320 npc_cn20k_subbank_calc_free(struct rvu * rvu,int * x2_free,int * x4_free,int * sb_free) npc_cn20k_subbank_calc_free() argument 3355 rvu_mbox_handler_npc_cn20k_get_fcnt(struct rvu * rvu,struct msg_req * req,struct npc_cn20k_get_fcnt_rsp * rsp) rvu_mbox_handler_npc_cn20k_get_fcnt() argument 3365 rvu_mbox_handler_npc_cn20k_get_kex_cfg(struct rvu * rvu,struct msg_req * req,struct npc_cn20k_get_kex_cfg_rsp * rsp) rvu_mbox_handler_npc_cn20k_get_kex_cfg() argument 3426 npc_subbanks_srch_order_init(struct rvu * rvu) npc_subbanks_srch_order_init() argument 3456 npc_subbank_init(struct rvu * rvu,struct npc_subbank * sb,int idx) npc_subbank_init() argument 3470 npc_pcifunc_map_create(struct rvu * rvu) npc_pcifunc_map_create() argument 3577 npc_defrag_alloc_free_slots(struct rvu * rvu,struct npc_defrag_node * f,int cnt,u16 * save) npc_defrag_alloc_free_slots() argument 3645 npc_defrag_add_2_show_list(struct rvu * rvu,u16 old_midx,u16 new_midx,u16 vidx) npc_defrag_add_2_show_list() argument 3667 npc_defrag_move_vdx_to_free(struct rvu * rvu,struct npc_defrag_node * f,struct npc_defrag_node * v,int cnt,u16 * save) npc_defrag_move_vdx_to_free() argument 3820 npc_defrag_process(struct rvu * rvu,struct list_head * lh) npc_defrag_process() argument 3949 npc_cn20k_search_order_set(struct rvu * rvu,u64 narr[MAX_NUM_SUB_BANKS],int cnt) npc_cn20k_search_order_set() argument 4068 npc_cn20k_defrag(struct rvu * rvu) npc_cn20k_defrag() argument 4178 rvu_mbox_handler_npc_defrag(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_defrag() argument 4184 npc_cn20k_dft_rules_idx_get(struct rvu * rvu,u16 pcifunc,u16 * bcast,u16 * mcast,u16 * promisc,u16 * ucast) npc_cn20k_dft_rules_idx_get() argument 4263 rvu_mbox_handler_npc_get_pfl_info(struct rvu * rvu,struct msg_req * req,struct npc_get_pfl_info_rsp * rsp) rvu_mbox_handler_npc_get_pfl_info() argument 4276 rvu_mbox_handler_npc_get_num_kws(struct rvu * rvu,struct npc_get_num_kws_req * req,struct npc_get_num_kws_rsp * rsp) rvu_mbox_handler_npc_get_num_kws() argument 4321 rvu_mbox_handler_npc_get_dft_rl_idxs(struct rvu * rvu,struct msg_req * req,struct npc_get_dft_rl_idxs_rsp * rsp) rvu_mbox_handler_npc_get_dft_rl_idxs() argument 4347 npc_is_cgx_or_lbk(struct rvu * rvu,u16 pcifunc) npc_is_cgx_or_lbk() argument 4353 npc_cn20k_dft_rules_free(struct rvu * rvu,u16 pcifunc) npc_cn20k_dft_rules_free() argument 4456 npc_cn20k_dft_rules_alloc(struct rvu * rvu,u16 pcifunc) npc_cn20k_dft_rules_alloc() argument 4654 npc_priv_init(struct rvu * rvu) npc_priv_init() argument 4793 npc_cn20k_deinit(struct rvu * rvu) npc_cn20k_deinit() argument 4824 npc_setup_mcam_section(struct rvu * rvu,int key_type) npc_setup_mcam_section() argument 4841 npc_cn20k_init(struct rvu * rvu) npc_cn20k_init() argument [all...] |
| H 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 void cn20k_free_mbox_memory_type(struct rvu *rvu, int type); 25 int cn20k_register_afpf_mbox_intr(struct rvu *rvu); 26 int cn20k_register_afvf_mbox_intr(struct rvu *rvu, int pf_vec_start); 27 void cn20k_rvu_enable_mbox_intr(struct rvu *rvu); 28 void cn20k_rvu_unregister_interrupts(struct rvu *rvu); 31 void cn20k_rvu_enable_afvf_intr(struct rvu *rvu, int vfs); 32 void cn20k_rvu_disable_afvf_intr(struct rvu *rvu, int vfs);
|