Home
last modified time | relevance | path

Searched refs:kw_type (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_flows.c40 static int otx2_mcam_pfl_info_get(struct otx2_nic *pfvf, u16 *x4_slots, u8 *kw_type) in otx2_mcam_pfl_info_get() argument
46 u8 kw_type; in otx2_mcam_pfl_info_get() member
56 *kw_type = pfl_info.kw_type; in otx2_mcam_pfl_info_get()
81 pfl_info.kw_type = rsp->kw_type; in otx2_mcam_pfl_info_get()
82 if (rsp->kw_type == NPC_MCAM_KEY_X2) in otx2_mcam_pfl_info_get()
89 *kw_type = pfl_info.kw_type; in otx2_mcam_pfl_info_get()
166 u8 kw_type = 0; in otx2_alloc_mcam_entries() local
185 rc = otx2_mcam_pfl_info_get(pfvf, &x4_slots, &kw_type); in otx2_alloc_mcam_entries()
191 is_x2 = kw_type == NPC_MCAM_KEY_X2; in otx2_alloc_mcam_entries()
212 req->kw_type = is_x2 ? NPC_MCAM_KEY_X2 : NPC_MCAM_KEY_X4; in otx2_alloc_mcam_entries()
[all …]
H A Dcn20k.c307 type = first->kw_type; in cn20k_tc_check_entry_shiftable()
316 if (type != tmp->kw_type) { in cn20k_tc_check_entry_shiftable()
326 type = tmp->kw_type; in cn20k_tc_check_entry_shiftable()
478 *type = rsp->kw_type; in __cn20k_tc_alloc_entry()
512 new_node->kw_type = entry_type; in cn20k_tc_alloc_entry()
/linux/drivers/net/ethernet/marvell/octeontx2/af/cn20k/
H A Dnpc.c823 u8 kw_type; in npc_cn20k_enable_mcam_entry() local
828 if (npc_mcam_idx_2_key_type(rvu, index, &kw_type)) in npc_cn20k_enable_mcam_entry()
831 if (kw_type == NPC_MCAM_KEY_X2) { in npc_cn20k_enable_mcam_entry()
908 u8 kw_type; in npc_cn20k_clear_mcam_entry() local
911 if (npc_mcam_idx_2_key_type(rvu, mcam_idx, &kw_type)) in npc_cn20k_clear_mcam_entry()
916 if (kw_type == NPC_MCAM_KEY_X2) { in npc_cn20k_clear_mcam_entry()
978 int bank, u8 kw_type, int kw, in npc_cn20k_config_kw_x2() argument
984 u8 kw_type_mask = ~kw_type; in npc_cn20k_config_kw_x2()
999 kw_type == NPC_MCAM_KEY_X2) { in npc_cn20k_config_kw_x2()
1000 kw_type = 0; in npc_cn20k_config_kw_x2()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_fs.c1674 u16 *mcam_idx, u8 *kw_type, in rvu_npc_alloc_entry_for_flow_install() argument
1687 *kw_type = -1; in rvu_npc_alloc_entry_for_flow_install()
1692 *kw_type = -1; in rvu_npc_alloc_entry_for_flow_install()
1706 *kw_type = NPC_MCAM_KEY_X2; in rvu_npc_alloc_entry_for_flow_install()
1709 if (rsp.kw_type == NPC_MCAM_KEY_X2) { in rvu_npc_alloc_entry_for_flow_install()
1715 *kw_type = NPC_MCAM_KEY_X4; in rvu_npc_alloc_entry_for_flow_install()
1724 entry_req.kw_type = *kw_type; in rvu_npc_alloc_entry_for_flow_install()
1749 u8 kw_type; in rvu_mbox_handler_npc_install_flow() local
1762 &kw_type, &allocated); in rvu_mbox_handler_npc_install_flow()
1906 rsp->kw_type = kw_type; in rvu_mbox_handler_npc_install_flow()
H A Dmbox.h1575 u8 kw_type; /* entry key type, valid for cn20k */ member
1902 u8 kw_type; member
1930 u8 kw_type; member
H A Drvu_npc.c3145 if (req->kw_type != NPC_MCAM_KEY_X2 && req->kw_type != NPC_MCAM_KEY_X4) in npc_mcam_alloc_entries()
3159 if (req->kw_type == NPC_MCAM_KEY_X2) in npc_mcam_alloc_entries()
3165 ret = npc_cn20k_ref_idx_alloc(rvu, pcifunc, req->kw_type, in npc_mcam_alloc_entries()