| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| A D | rvu_switch.c | 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() 47 pfvf = rvu_get_pfvf(rvu, pcifunc); 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() 90 rvu_get_nix_blkaddr(rvu, pcifunc); in rvu_switch_install_rules() 117 rvu_get_nix_blkaddr(rvu, pcifunc); in rvu_switch_install_rules() 204 u16 pcifunc; in rvu_switch_disable() local [all …]
|
| A D | rvu_nix.c | 478 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_bp_disable() local 580 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_bp_enable() local 835 u16 pcifunc = req->hdr.pcifunc; in rvu_nix_blk_aq_enq_inst() local 1294 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_lf_alloc() local 1522 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_lf_free() local 1565 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_mark_format_cfg() local 1890 u16 pcifunc = rsp->hdr.pcifunc; in nix_txsch_alloc() local 1974 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_txsch_alloc() local 2189 u16 pcifunc = req->hdr.pcifunc; in nix_txschq_free_one() local 2374 u16 pcifunc = req->hdr.pcifunc; in nix_txschq_cfg_read() local [all …]
|
| A D | rvu_cgx.c | 443 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_rxtx() 458 int pf = rvu_get_pf(pcifunc); in rvu_cgx_disable_dmac_entries() 666 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cgx_promisc_enable() local 667 int pf = rvu_get_pf(pcifunc); in rvu_mbox_handler_cgx_promisc_enable() 697 int pf = rvu_get_pf(pcifunc); in rvu_cgx_ptp_rx_cfg() 746 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_linkevents() 785 pf = rvu_get_pf(req->hdr.pcifunc); in rvu_mbox_handler_cgx_get_linkinfo() 828 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_intlbk() 909 u16 pcifunc; in rvu_cgx_nix_cuml_stats() local 924 pcifunc = pf << RVU_PFVF_PF_SHIFT; in rvu_cgx_nix_cuml_stats() [all …]
|
| A D | rvu.h | 623 static inline bool is_afvf(u16 pcifunc) in is_afvf() argument 625 return !(pcifunc & ~RVU_PFVF_FUNC_MASK); in is_afvf() 628 static inline bool is_vf(u16 pcifunc) in is_vf() argument 630 return !!(pcifunc & RVU_PFVF_FUNC_MASK); in is_vf() 636 return !pcifunc; in is_pffunc_af() 654 int rvu_get_pf(u16 pcifunc); 682 bool is_sdp_pfvf(u16 pcifunc); 683 bool is_sdp_pf(u16 pcifunc); 684 bool is_sdp_vf(u16 pcifunc); 701 return ((pcifunc & RVU_PFVF_FUNC_MASK) && in is_cgx_vf() [all …]
|
| A D | rvu_npc.c | 740 pcifunc = pcifunc & ~RVU_PFVF_FUNC_MASK; in rvu_npc_enable_promisc_entry() 772 pcifunc = pcifunc & ~RVU_PFVF_FUNC_MASK; in rvu_npc_install_bcast_match_entry() 2555 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_alloc_entry() local 2602 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_free_entry() local 2649 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_read_entry() local 2674 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_write_entry() local 2731 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_ena_entry() local 2754 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_dis_entry() local 2777 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_shift_entry() local 2846 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_alloc_counter() local [all …]
|
| A D | rvu.c | 263 if (!pcifunc) { in rvu_get_blkaddr() 279 if (!pcifunc) { in rvu_get_blkaddr() 1570 pcifunc); in rvu_check_rsrc_availability() 1587 pcifunc); in rvu_check_rsrc_availability() 1684 u16 pcifunc = attach->hdr.pcifunc; in rvu_mbox_handler_attach_resources() local 1812 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_msix_offset() local 1967 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_vf_flr() local 1999 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_set_vf_perm() local 2005 if ((pcifunc & RVU_PFVF_FUNC_MASK) || is_afvf(pcifunc)) in rvu_mbox_handler_set_vf_perm() 2065 rsp->hdr.pcifunc = req->pcifunc; \ in rvu_process_mbox_msg() [all …]
|
| A 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() 82 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_mbox_handler_set_sdp_chan_info()
|
| A D | rvu_npa.c | 56 u16 pcifunc = req->hdr.pcifunc; in rvu_npa_aq_enq_inst() local 65 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_npa_aq_enq_inst() 80 npalf = rvu_get_lf(rvu, block, pcifunc, 0); in rvu_npa_aq_enq_inst() 213 aq_req.hdr.pcifunc = req->hdr.pcifunc; in npa_lf_hwctx_disable() 258 lock_ctx_req.hdr.pcifunc = req->hdr.pcifunc; in npa_lf_hwctx_lockdown() 266 req->hdr.pcifunc, in npa_lf_hwctx_lockdown() 324 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npa_lf_alloc() local 337 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_mbox_handler_npa_lf_alloc() 430 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npa_lf_free() local 436 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_mbox_handler_npa_lf_free() [all …]
|
| A D | rvu_cpt.c | 298 if (pcifunc & RVU_PFVF_FUNC_MASK) in is_cpt_pf() 310 if (!(pcifunc & RVU_PFVF_FUNC_MASK)) in is_cpt_vf() 331 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cpt_lf_alloc() local 354 req->nix_pf_func = pcifunc; in rvu_mbox_handler_cpt_lf_alloc() 363 req->sso_pf_func = pcifunc; in rvu_mbox_handler_cpt_lf_alloc() 395 u16 pcifunc = req->hdr.pcifunc; in cpt_lf_free() local 542 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cpt_inline_ipsec_cfg() local 601 req->hdr.pcifunc, lf); in is_valid_offset() 918 if (is_cpt_pf(rvu, pcifunc) || is_cpt_vf(rvu, pcifunc)) in rvu_cpt_lf_teardown() 922 reg = BIT_ULL(16) | pcifunc; in rvu_cpt_lf_teardown() [all …]
|
| A D | rvu_cn10k.c | 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 71 pf = rvu_get_pf(pcifunc) & 0x1F; in rvu_get_lmtaddr() 73 ((pcifunc & RVU_PFVF_FUNC_MASK) & 0xFF); in rvu_get_lmtaddr() 98 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_update_lmtaddr() 104 tbl_idx = rvu_get_lmtst_tbl_index(rvu, pcifunc); in rvu_update_lmtaddr() 146 err = rvu_get_lmtaddr(rvu, req->hdr.pcifunc, in rvu_mbox_handler_lmtst_tbl_setup() 182 err = rvu_update_lmtaddr(rvu, req->hdr.pcifunc, val); in rvu_mbox_handler_lmtst_tbl_setup() 239 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_reset_lmt_map_tbl() [all …]
|
| A D | rvu_debugfs.c | 360 u16 pcifunc; in get_max_column_width() local 504 u16 pcifunc; in rvu_dbg_rvu_pf_cgx_map_display() local 607 u16 pcifunc; in rvu_dbg_qsize_display() local 653 u16 pcifunc; in rvu_dbg_qsize_write() local 821 u16 pcifunc; in rvu_dbg_npa_ctx_display() local 854 aq_req.hdr.pcifunc = pcifunc; in rvu_dbg_npa_ctx_display() 897 u16 pcifunc; in write_npa_ctx() local 1513 u16 pcifunc; in rvu_dbg_nix_queue_ctx_display() local 1568 aq_req.hdr.pcifunc = pcifunc; in rvu_dbg_nix_queue_ctx_display() 1596 u16 pcifunc; in write_nix_queue_ctx() local [all …]
|
| A D | rvu_npc_fs.c | 902 free_req.hdr.pcifunc = pcifunc; in rvu_mcam_remove_counter_from_rule() 917 cntr_req.hdr.pcifunc = pcifunc; in rvu_mcam_add_counter_to_rule() 1023 u16 owner = req->hdr.pcifunc; in npc_install_flow() 1083 write_req.hdr.pcifunc = owner; in npc_install_flow() 1089 write_req.hdr.pcifunc = 0; in npc_install_flow() 1184 if (!req->hdr.pcifunc) in rvu_mbox_handler_npc_install_flow() 1194 target = req->hdr.pcifunc; in rvu_mbox_handler_npc_install_flow() 1255 u16 pcifunc) in npc_delete_flow() argument 1266 dis_req.hdr.pcifunc = pcifunc; in npc_delete_flow() 1281 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_delete_flow() local [all …]
|
| A D | mbox.c | 371 otx2_reply_invalid_msg(struct otx2_mbox *mbox, int devid, u16 pcifunc, u16 id) in otx2_reply_invalid_msg() argument 382 rsp->hdr.pcifunc = pcifunc; in otx2_reply_invalid_msg()
|
| A D | mbox.h | 82 u16 pcifunc; /* Who's sending this msg */ member 111 u16 pcifunc, u16 id);
|
| /linux/drivers/crypto/marvell/octeontx2/ |
| A 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()
|
| A 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()
|
| A 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()
|
| A 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()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| A D | otx2_pf.c | 126 req->hdr.pcifunc &= RVU_PFVF_FUNC_MASK; in otx2_flr_handler() 226 rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr() 236 rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr() 481 msg->pcifunc &= RVU_PFVF_FUNC_MASK; in otx2_pfvf_mbox_handler() 700 if (pf->pcifunc) in otx2_register_pfvf_mbox_intr() 716 if (pf->pcifunc) in otx2_register_pfvf_mbox_intr() 777 pf->pcifunc = msg->pcifunc; in otx2_process_pfaf_mbox_msg() 907 rsp->hdr.pcifunc = 0; \ in otx2_process_mbox_msg_up() 1450 if (!(pf->pcifunc & RVU_PFVF_FUNC_MASK)) in otx2_free_hw_resources() 1636 rvu_get_pf(pf->pcifunc)); in otx2_open() [all …]
|
| A D | otx2_common.h | 363 u16 pcifunc; /* RVU PF_FUNC */ member 732 static inline bool is_otx2_vf(u16 pcifunc) in is_otx2_vf() argument 734 return !!(pcifunc & RVU_PFVF_FUNC_MASK); in is_otx2_vf() 737 static inline int rvu_get_pf(u16 pcifunc) in rvu_get_pf() argument 739 return (pcifunc >> RVU_PFVF_PF_SHIFT) & RVU_PFVF_PF_MASK; in rvu_get_pf()
|
| A D | otx2_vf.c | 62 vf->pcifunc = msg->pcifunc; in otx2vf_process_vfaf_mbox_msg() 137 rsp->hdr.pcifunc = 0; in otx2vf_process_mbox_msg_up() 678 n = (vf->pcifunc >> RVU_PFVF_FUNC_SHIFT) & RVU_PFVF_FUNC_MASK; in otx2vf_probe()
|
| A D | otx2_devlink.c | 88 if (is_otx2_vf(pfvf->pcifunc)) in otx2_devlink_info_get()
|
| A D | otx2_tc.c | 61 if (!nic->flow_cfg->max_flows || is_otx2_vf(nic->pcifunc)) in otx2_tc_alloc_ent_bitmap() 337 if (rvu_get_pf(nic->pcifunc) != rvu_get_pf(priv->pcifunc)) { in otx2_tc_parse_actions() 342 req->vf = priv->pcifunc & RVU_PFVF_FUNC_MASK; in otx2_tc_parse_actions()
|
| A D | otx2_flows.c | 111 if (!is_otx2_vf(pfvf->pcifunc)) { in otx2_alloc_mcam_entries()
|
| /linux/drivers/video/fbdev/sis/ |
| A D | sis.h | 581 unsigned int pcifunc; member
|