/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_switch.c | 11 static int rvu_switch_install_rx_rule(struct rvu *rvu, u16 pcifunc, in rvu_switch_install_rx_rule() argument 18 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_rx_rule() 28 req.hdr.pcifunc = 0; /* AF is requester */ in rvu_switch_install_rx_rule() 29 req.vf = 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() argument 47 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_tx_rule() 58 req.hdr.pcifunc = 0; /* AF is requester */ in rvu_switch_install_tx_rule() 59 req.vf = pcifunc; in rvu_switch_install_tx_rule() 75 u16 pcifunc, entry = 0; in rvu_switch_install_rules() local 83 pcifunc = pf << 10; in rvu_switch_install_rules() [all …]
|
D | rvu_nix.c | 18 static void nix_free_tx_vtag_entries(struct rvu *rvu, u16 pcifunc); 21 static int nix_update_mce_rule(struct rvu *rvu, u16 pcifunc, 27 struct nix_hw *nix_hw, u16 pcifunc); 28 static int nix_free_all_bandprof(struct rvu *rvu, u16 pcifunc); 78 u16 pcifunc; member 98 bool is_nixlf_attached(struct rvu *rvu, u16 pcifunc) in is_nixlf_attached() argument 100 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in is_nixlf_attached() 103 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); in is_nixlf_attached() 123 int nix_get_nixlf(struct rvu *rvu, u16 pcifunc, int *nixlf, int *nix_blkaddr) in nix_get_nixlf() argument 125 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in nix_get_nixlf() [all …]
|
D | rvu_cgx.c | 414 inline bool is_cgx_config_permitted(struct rvu *rvu, u16 pcifunc) in is_cgx_config_permitted() argument 416 if ((pcifunc & RVU_PFVF_FUNC_MASK) || in is_cgx_config_permitted() 417 !is_pf_cgxmapped(rvu, rvu_get_pf(pcifunc))) in is_cgx_config_permitted() 442 int rvu_cgx_config_rxtx(struct rvu *rvu, u16 pcifunc, bool start) in rvu_cgx_config_rxtx() argument 444 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_rxtx() 449 if (!is_cgx_config_permitted(rvu, pcifunc)) in rvu_cgx_config_rxtx() 459 int rvu_cgx_tx_enable(struct rvu *rvu, u16 pcifunc, bool enable) in rvu_cgx_tx_enable() argument 461 int pf = rvu_get_pf(pcifunc); in rvu_cgx_tx_enable() 466 if (!is_cgx_config_permitted(rvu, pcifunc)) in rvu_cgx_tx_enable() 484 void rvu_cgx_disable_dmac_entries(struct rvu *rvu, u16 pcifunc) in rvu_cgx_disable_dmac_entries() argument [all …]
|
D | rvu.h | 631 static inline bool is_afvf(u16 pcifunc) in is_afvf() argument 633 return !(pcifunc & ~RVU_PFVF_FUNC_MASK); in is_afvf() 636 static inline bool is_vf(u16 pcifunc) in is_vf() argument 638 return !!(pcifunc & RVU_PFVF_FUNC_MASK); in is_vf() 642 static inline bool is_pffunc_af(u16 pcifunc) in is_pffunc_af() argument 644 return !pcifunc; in is_pffunc_af() 662 int rvu_get_pf(u16 pcifunc); 663 struct rvu_pfvf *rvu_get_pfvf(struct rvu *rvu, int pcifunc); 666 bool is_pffunc_map_valid(struct rvu *rvu, u16 pcifunc, int blktype); 667 int rvu_get_lf(struct rvu *rvu, struct rvu_block *block, u16 pcifunc, u16 slot); [all …]
|
D | rvu_npc.c | 32 int blkaddr, u16 pcifunc); 34 u16 pcifunc); 65 u16 pcifunc) in npc_mcam_verify_pf_func() argument 79 (pcifunc & ~RVU_PFVF_FUNC_MASK))) in npc_mcam_verify_pf_func() 115 int npc_config_ts_kpuaction(struct rvu *rvu, int pf, u16 pcifunc, bool enable) in npc_config_ts_kpuaction() argument 126 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, pcifunc); in npc_config_ts_kpuaction() 143 static int npc_get_ucast_mcam_index(struct npc_mcam *mcam, u16 pcifunc, in npc_get_ucast_mcam_index() argument 152 pfvf = rvu_get_pfvf(rvu, pcifunc); in npc_get_ucast_mcam_index() 169 u16 pcifunc, int nixlf, int type) in npc_get_nixlf_mcam_index() argument 171 int pf = rvu_get_pf(pcifunc); in npc_get_nixlf_mcam_index() [all …]
|
D | rvu_cpt.c | 62 static bool is_cpt_pf(struct rvu *rvu, u16 pcifunc) in is_cpt_pf() argument 66 if (rvu_get_pf(pcifunc) != cpt_pf_num) in is_cpt_pf() 68 if (pcifunc & RVU_PFVF_FUNC_MASK) in is_cpt_pf() 74 static bool is_cpt_vf(struct rvu *rvu, u16 pcifunc) in is_cpt_vf() argument 78 if (rvu_get_pf(pcifunc) != cpt_pf_num) in is_cpt_vf() 80 if (!(pcifunc & RVU_PFVF_FUNC_MASK)) in is_cpt_vf() 101 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cpt_lf_alloc() local 115 num_lfs = rvu_get_rsrc_mapcount(rvu_get_pfvf(rvu, pcifunc), in rvu_mbox_handler_cpt_lf_alloc() 124 req->nix_pf_func = pcifunc; in rvu_mbox_handler_cpt_lf_alloc() 133 req->sso_pf_func = pcifunc; in rvu_mbox_handler_cpt_lf_alloc() [all …]
|
D | rvu.c | 25 static int rvu_get_hwvf(struct rvu *rvu, int pcifunc); 31 static void __rvu_flr_handler(struct rvu *rvu, u16 pcifunc); 220 int rvu_get_lf(struct rvu *rvu, struct rvu_block *block, u16 pcifunc, u16 slot) in rvu_get_lf() argument 227 if (block->fn_map[lf] == pcifunc) { in rvu_get_lf() 248 int rvu_get_blkaddr(struct rvu *rvu, int blktype, u16 pcifunc) in rvu_get_blkaddr() argument 263 if (!pcifunc) { in rvu_get_blkaddr() 279 if (!pcifunc) { in rvu_get_blkaddr() 287 if (pcifunc & RVU_PFVF_FUNC_MASK) { in rvu_get_blkaddr() 289 devnum = rvu_get_hwvf(rvu, pcifunc); in rvu_get_blkaddr() 292 devnum = rvu_get_pf(pcifunc); in rvu_get_blkaddr() [all …]
|
D | rvu_sdp.c | 20 bool is_sdp_pfvf(u16 pcifunc) in is_sdp_pfvf() argument 22 u16 pf = rvu_get_pf(pcifunc); in is_sdp_pfvf() 37 bool is_sdp_pf(u16 pcifunc) in is_sdp_pf() argument 39 return (is_sdp_pfvf(pcifunc) && in is_sdp_pf() 40 !(pcifunc & RVU_PFVF_FUNC_MASK)); in is_sdp_pf() 43 bool is_sdp_vf(u16 pcifunc) in is_sdp_vf() argument 45 return (is_sdp_pfvf(pcifunc) && in is_sdp_vf() 46 !!(pcifunc & RVU_PFVF_FUNC_MASK)); in is_sdp_vf() 85 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_mbox_handler_set_sdp_chan_info()
|
D | rvu_npa.c | 65 u16 pcifunc = req->hdr.pcifunc; in rvu_npa_aq_enq_inst() local 74 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_npa_aq_enq_inst() 78 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); in rvu_npa_aq_enq_inst() 89 npalf = rvu_get_lf(rvu, block, pcifunc, 0); in rvu_npa_aq_enq_inst() 212 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in npa_lf_hwctx_disable() 222 aq_req.hdr.pcifunc = req->hdr.pcifunc; in npa_lf_hwctx_disable() 267 lock_ctx_req.hdr.pcifunc = req->hdr.pcifunc; in npa_lf_hwctx_lockdown() 275 req->hdr.pcifunc, in npa_lf_hwctx_lockdown() 333 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npa_lf_alloc() local 346 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_mbox_handler_npa_lf_alloc() [all …]
|
D | rvu_cn10k.c | 53 static u32 rvu_get_lmtst_tbl_index(struct rvu *rvu, u16 pcifunc) in rvu_get_lmtst_tbl_index() argument 55 return ((rvu_get_pf(pcifunc) * rvu->hw->total_vfs) + in rvu_get_lmtst_tbl_index() 56 (pcifunc & RVU_PFVF_FUNC_MASK)) * LMT_MAPTBL_ENTRY_SIZE; in rvu_get_lmtst_tbl_index() 59 static int rvu_get_lmtaddr(struct rvu *rvu, u16 pcifunc, in rvu_get_lmtaddr() argument 72 pf = rvu_get_pf(pcifunc) & 0x1F; in rvu_get_lmtaddr() 74 ((pcifunc & RVU_PFVF_FUNC_MASK) & 0xFF); in rvu_get_lmtaddr() 99 static int rvu_update_lmtaddr(struct rvu *rvu, u16 pcifunc, u64 lmt_addr) in rvu_update_lmtaddr() argument 101 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_update_lmtaddr() 107 tbl_idx = rvu_get_lmtst_tbl_index(rvu, pcifunc); in rvu_update_lmtaddr() 138 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_mbox_handler_lmtst_tbl_setup() [all …]
|
D | rvu_debugfs.c | 226 static void get_lf_str_list(struct rvu_block block, int pcifunc, in get_lf_str_list() argument 235 if (block.fn_map[lf] != pcifunc) in get_lf_str_list() 264 u16 pcifunc; in get_max_column_width() local 273 pcifunc = pf << 10 | vf; in get_max_column_width() 274 if (!pcifunc) in get_max_column_width() 282 get_lf_str_list(block, pcifunc, buf); in get_max_column_width() 302 int pf, vf, pcifunc; in rvu_dbg_rsrc_attach_status() local 344 pcifunc = pf << 10 | vf; in rvu_dbg_rsrc_attach_status() 345 if (!pcifunc) in rvu_dbg_rsrc_attach_status() 366 get_lf_str_list(block, pcifunc, lfs); in rvu_dbg_rsrc_attach_status() [all …]
|
D | rvu_npc_fs.c | 894 static void rvu_mcam_remove_counter_from_rule(struct rvu *rvu, u16 pcifunc, in rvu_mcam_remove_counter_from_rule() argument 903 free_req.hdr.pcifunc = pcifunc; in rvu_mcam_remove_counter_from_rule() 910 static void rvu_mcam_add_counter_to_rule(struct rvu *rvu, u16 pcifunc, in rvu_mcam_add_counter_to_rule() argument 918 cntr_req.hdr.pcifunc = pcifunc; in rvu_mcam_add_counter_to_rule() 986 if (is_pffunc_af(req->hdr.pcifunc)) in npc_update_tx_entry() 1024 u16 owner = req->hdr.pcifunc; in npc_install_flow() 1084 write_req.hdr.pcifunc = owner; in npc_install_flow() 1090 write_req.hdr.pcifunc = 0; in npc_install_flow() 1150 return rvu_nix_setup_ratelimit_aggr(rvu, req->hdr.pcifunc, in npc_install_flow() 1160 bool from_vf = !!(req->hdr.pcifunc & RVU_PFVF_FUNC_MASK); in rvu_mbox_handler_npc_install_flow() [all …]
|
D | mbox.c | 374 otx2_reply_invalid_msg(struct otx2_mbox *mbox, int devid, u16 pcifunc, u16 id) in otx2_reply_invalid_msg() argument 385 rsp->hdr.pcifunc = pcifunc; in otx2_reply_invalid_msg()
|
D | mbox.h | 82 u16 pcifunc; /* Who's sending this msg */ member 112 u16 pcifunc, u16 id);
|
/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptpf_mbox.c | 28 msg->pcifunc = req->pcifunc; in forward_to_af() 58 rsp->hdr.pcifunc = req->pcifunc; in handle_msg_get_caps() 81 rsp->hdr.pcifunc = req->pcifunc; in handle_msg_get_eng_grp_num() 102 rsp->hdr.pcifunc = req->pcifunc; in handle_msg_kvf_limits() 195 msg->pcifunc = ((u16)cptpf->pf_id << RVU_PFVF_PF_SHIFT) | in otx2_cptpf_vfpf_mbox_handler() 249 cptpf->pf_id = (msg->pcifunc >> RVU_PFVF_PF_SHIFT) & in process_afpf_mbox_msg() 316 fwd->pcifunc = msg->pcifunc; in forward_to_vf() 344 vf_id = (msg->pcifunc >> RVU_PFVF_FUNC_SHIFT) & in otx2_cptpf_afpf_mbox_handler()
|
D | otx2_cpt_mbox_common.c | 35 req->pcifunc = 0; in otx2_cpt_send_ready_msg() 60 reg_msg->hdr.pcifunc = 0; in otx2_cpt_add_read_af_reg() 85 reg_msg->hdr.pcifunc = 0; in otx2_cpt_add_write_af_reg() 135 req->hdr.pcifunc = 0; in otx2_cpt_attach_rscrs_msg() 163 req->hdr.pcifunc = 0; in otx2_cpt_detach_rsrcs_msg() 190 req->pcifunc = 0; in otx2_cpt_msix_offset_msg()
|
D | otx2_cptvf_mbox.c | 92 cptvf->vf_id = ((msg->pcifunc >> RVU_PFVF_FUNC_SHIFT) in process_pfvf_mbox_mbox_msg() 183 req->hdr.pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->vf_id, 0); in otx2_cptvf_send_eng_grp_num_msg() 205 req->pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->vf_id, 0); in otx2_cptvf_send_kvf_limits_msg()
|
D | otx2_cptpf_main.c | 149 req->pcifunc &= RVU_PFVF_FUNC_MASK; in cptpf_flr_wq_handler() 150 req->pcifunc |= (vf + 1) & RVU_PFVF_FUNC_MASK; in cptpf_flr_wq_handler()
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_pf.c | 119 req->hdr.pcifunc &= RVU_PFVF_FUNC_MASK; in otx2_flr_handler() 120 req->hdr.pcifunc |= (vf + 1) & RVU_PFVF_FUNC_MASK; in otx2_flr_handler() 197 snprintf(irq_name, NAME_SIZE, "RVUPF%d_ME0", rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr() 207 snprintf(irq_name, NAME_SIZE, "RVUPF%d_FLR0", rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr() 219 rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr() 229 rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr() 479 msg->pcifunc &= RVU_PFVF_FUNC_MASK; in otx2_pfvf_mbox_handler() 480 msg->pcifunc |= (vf_idx + 1) & RVU_PFVF_FUNC_MASK; in otx2_pfvf_mbox_handler() 701 if (pf->pcifunc) in otx2_register_pfvf_mbox_intr() 703 "RVUPF%d_VF Mbox0", rvu_get_pf(pf->pcifunc)); in otx2_register_pfvf_mbox_intr() [all …]
|
D | otx2_common.h | 354 u16 pcifunc; /* RVU PF_FUNC */ member 725 static inline bool is_otx2_vf(u16 pcifunc) in is_otx2_vf() argument 727 return !!(pcifunc & RVU_PFVF_FUNC_MASK); in is_otx2_vf() 730 static inline int rvu_get_pf(u16 pcifunc) in rvu_get_pf() argument 732 return (pcifunc >> RVU_PFVF_PF_SHIFT) & RVU_PFVF_PF_MASK; in rvu_get_pf()
|
D | otx2_vf.c | 60 vf->pcifunc = msg->pcifunc; in otx2vf_process_vfaf_mbox_msg() 135 rsp->hdr.pcifunc = 0; in otx2vf_process_mbox_msg_up() 672 n = (vf->pcifunc >> RVU_PFVF_FUNC_SHIFT) & RVU_PFVF_FUNC_MASK; in otx2vf_probe()
|
D | otx2_devlink.c | 88 if (is_otx2_vf(pfvf->pcifunc)) in otx2_devlink_info_get()
|
D | otx2_tc.c | 67 if (!nic->flow_cfg->max_flows || is_otx2_vf(nic->pcifunc)) in otx2_tc_alloc_ent_bitmap() 371 if (rvu_get_pf(nic->pcifunc) != rvu_get_pf(priv->pcifunc)) { in otx2_tc_parse_actions() 376 req->vf = priv->pcifunc & RVU_PFVF_FUNC_MASK; in otx2_tc_parse_actions()
|
D | otx2_flows.c | 111 if (!is_otx2_vf(pfvf->pcifunc)) { in otx2_alloc_mcam_entries() 1031 if (!is_otx2_vf(pfvf->pcifunc) && !vf_num && in otx2_add_flow()
|
/drivers/video/fbdev/sis/ |
D | sis.h | 581 unsigned int pcifunc; member
|