Home
last modified time | relevance | path

Searched refs:tcam (Results 1 – 16 of 16) sorted by relevance

/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_tcam.c33 struct mlxsw_sp_acl_tcam *tcam) in mlxsw_sp_acl_tcam_init() argument
41 mutex_init(&tcam->lock); in mlxsw_sp_acl_tcam_init()
42 tcam->vregion_rehash_intrvl = in mlxsw_sp_acl_tcam_init()
44 INIT_LIST_HEAD(&tcam->vregion_list); in mlxsw_sp_acl_tcam_init()
54 tcam->used_regions = bitmap_zalloc(max_regions, GFP_KERNEL); in mlxsw_sp_acl_tcam_init()
55 if (!tcam->used_regions) in mlxsw_sp_acl_tcam_init()
57 tcam->max_regions = max_regions; in mlxsw_sp_acl_tcam_init()
60 tcam->used_groups = bitmap_zalloc(max_groups, GFP_KERNEL); in mlxsw_sp_acl_tcam_init()
61 if (!tcam->used_groups) { in mlxsw_sp_acl_tcam_init()
65 tcam->max_groups = max_groups; in mlxsw_sp_acl_tcam_init()
[all …]
Dspectrum2_acl_tcam.c72 struct mlxsw_sp2_acl_tcam *tcam = priv; in mlxsw_sp2_acl_tcam_init() local
84 tcam->kvdl_count = _tcam->max_regions; in mlxsw_sp2_acl_tcam_init()
86 tcam->kvdl_count = MLXSW_CORE_RES_GET(mlxsw_sp->core, in mlxsw_sp2_acl_tcam_init()
89 tcam->kvdl_count, &tcam->kvdl_index); in mlxsw_sp2_acl_tcam_init()
111 mlxsw_reg_pefa_pack(pefa_pl, tcam->kvdl_index + i, in mlxsw_sp2_acl_tcam_init()
117 mlxsw_reg_pgcr_pack(pgcr_pl, tcam->kvdl_index); in mlxsw_sp2_acl_tcam_init()
122 err = mlxsw_sp_acl_atcam_init(mlxsw_sp, &tcam->atcam); in mlxsw_sp2_acl_tcam_init()
136 tcam->kvdl_count, tcam->kvdl_index); in mlxsw_sp2_acl_tcam_init()
142 struct mlxsw_sp2_acl_tcam *tcam = priv; in mlxsw_sp2_acl_tcam_fini() local
144 mlxsw_sp_acl_atcam_fini(mlxsw_sp, &tcam->atcam); in mlxsw_sp2_acl_tcam_fini()
[all …]
Dspectrum_acl_tcam.h29 struct mlxsw_sp_acl_tcam *tcam);
31 struct mlxsw_sp_acl_tcam *tcam);
33 struct mlxsw_sp_acl_tcam *tcam);
35 struct mlxsw_sp_acl_tcam *tcam,
44 struct mlxsw_sp_acl_tcam *tcam, void *ruleset_priv,
Dspectrum_acl.c35 struct mlxsw_sp_acl_tcam tcam; member
183 err = ops->ruleset_add(mlxsw_sp, &acl->tcam, ruleset->priv, in mlxsw_sp_acl_ruleset_create()
1065 err = mlxsw_sp_acl_tcam_init(mlxsw_sp, &acl->tcam); in mlxsw_sp_acl_init()
1093 mlxsw_sp_acl_tcam_fini(mlxsw_sp, &acl->tcam); in mlxsw_sp_acl_fini()
1107 &acl->tcam); in mlxsw_sp_acl_region_rehash_intrvl_get()
1115 &acl->tcam, val); in mlxsw_sp_acl_region_rehash_intrvl_set()
Dspectrum1_acl_tcam.c51 struct mlxsw_sp_acl_tcam *tcam) in mlxsw_sp1_acl_tcam_init() argument
Dspectrum.h1118 struct mlxsw_sp_acl_tcam *tcam);
/Linux-v6.1/drivers/net/ethernet/intel/ice/
Dice_flex_pipe.c365 return marker_ptype->tcam + index; in ice_marker_ptype_tcam_handler()
374 struct ice_marker_ptype_tcam_entry *tcam; in ice_fill_hw_ptype() local
385 tcam = ice_pkg_enum_entry(seg, &state, in ice_fill_hw_ptype()
388 if (tcam && in ice_fill_hw_ptype()
389 le16_to_cpu(tcam->addr) < ICE_MARKER_PTYPE_TCAM_ADDR_MAX && in ice_fill_hw_ptype()
390 le16_to_cpu(tcam->ptype) < ICE_FLOW_PTYPE_MAX) in ice_fill_hw_ptype()
391 set_bit(le16_to_cpu(tcam->ptype), hw->hw_ptype); in ice_fill_hw_ptype()
394 } while (tcam); in ice_fill_hw_ptype()
429 return boost->tcam + index; in ice_boost_tcam_handler()
446 struct ice_boost_tcam_entry *tcam; in ice_find_boost_entry() local
[all …]
Dice_flex_type.h348 struct ice_boost_tcam_entry tcam[]; member
352 struct_size((struct ice_boost_tcam_section *)0, tcam, 1) - \
367 struct ice_marker_ptype_tcam_entry tcam[]; member
371 ICE_MAX_ENTRIES_IN_BUF(struct_size((struct ice_marker_ptype_tcam_section *)0, tcam, 1) - \
528 struct ice_tcam_inf tcam[ICE_MAX_TCAM_PER_PROFILE]; member
/Linux-v6.1/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_cls.c515 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA0, c2->tcam[0]); in mvpp2_cls_c2_write()
516 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA1, c2->tcam[1]); in mvpp2_cls_c2_write()
517 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA2, c2->tcam[2]); in mvpp2_cls_c2_write()
518 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA3, c2->tcam[3]); in mvpp2_cls_c2_write()
520 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA4, c2->tcam[4]); in mvpp2_cls_c2_write()
531 c2->tcam[0] = mvpp2_read(priv, MVPP22_CLS_C2_TCAM_DATA0); in mvpp2_cls_c2_read()
532 c2->tcam[1] = mvpp2_read(priv, MVPP22_CLS_C2_TCAM_DATA1); in mvpp2_cls_c2_read()
533 c2->tcam[2] = mvpp2_read(priv, MVPP22_CLS_C2_TCAM_DATA2); in mvpp2_cls_c2_read()
534 c2->tcam[3] = mvpp2_read(priv, MVPP22_CLS_C2_TCAM_DATA3); in mvpp2_cls_c2_read()
535 c2->tcam[4] = mvpp2_read(priv, MVPP22_CLS_C2_TCAM_DATA4); in mvpp2_cls_c2_read()
[all …]
Dmvpp2_prs.c30 pe->tcam[MVPP2_PRS_TCAM_INV_WORD] &= ~MVPP2_PRS_TCAM_INV_MASK; in mvpp2_prs_hw_write()
40 mvpp2_write(priv, MVPP2_PRS_TCAM_DATA_REG(i), pe->tcam[i]); in mvpp2_prs_hw_write()
60 pe->tcam[MVPP2_PRS_TCAM_INV_WORD] = mvpp2_read(priv, in mvpp2_prs_init_from_hw()
62 if (pe->tcam[MVPP2_PRS_TCAM_INV_WORD] & MVPP2_PRS_TCAM_INV_MASK) in mvpp2_prs_init_from_hw()
66 pe->tcam[i] = mvpp2_read(priv, MVPP2_PRS_TCAM_DATA_REG(i)); in mvpp2_prs_init_from_hw()
103 pe->tcam[MVPP2_PRS_TCAM_LU_WORD] &= ~MVPP2_PRS_TCAM_LU(MVPP2_PRS_LU_MASK); in mvpp2_prs_tcam_lu_set()
104 pe->tcam[MVPP2_PRS_TCAM_LU_WORD] &= ~MVPP2_PRS_TCAM_LU_EN(MVPP2_PRS_LU_MASK); in mvpp2_prs_tcam_lu_set()
105 pe->tcam[MVPP2_PRS_TCAM_LU_WORD] |= MVPP2_PRS_TCAM_LU(lu & MVPP2_PRS_LU_MASK); in mvpp2_prs_tcam_lu_set()
106 pe->tcam[MVPP2_PRS_TCAM_LU_WORD] |= MVPP2_PRS_TCAM_LU_EN(MVPP2_PRS_LU_MASK); in mvpp2_prs_tcam_lu_set()
114 pe->tcam[MVPP2_PRS_TCAM_PORT_WORD] &= ~MVPP2_PRS_TCAM_PORT_EN(BIT(port)); in mvpp2_prs_tcam_port_set()
[all …]
Dmvpp2_cls.h117 u32 tcam[MVPP2_CLS_C2_TCAM_WORDS]; member
Dmvpp2_prs.h273 u32 tcam[MVPP2_PRS_TCAM_WORDS]; member
Dmvpp2_debugfs.c375 ai = pe.tcam[MVPP2_PRS_TCAM_AI_WORD] & MVPP2_PRS_AI_MASK; in mvpp2_dbgfs_prs_ai_show()
376 ai_mask = (pe.tcam[MVPP2_PRS_TCAM_AI_WORD] >> 16) & MVPP2_PRS_AI_MASK; in mvpp2_dbgfs_prs_ai_show()
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb4/
Dcudbg_lib.c2540 struct cudbg_mps_tcam *tcam, u32 idx) in cudbg_collect_tcam_index() argument
2566 tcam->lookup_type = DATALKPTYPE_G(data2); in cudbg_collect_tcam_index()
2572 if (tcam->lookup_type && tcam->lookup_type != DATALKPTYPE_M) { in cudbg_collect_tcam_index()
2574 tcam->vniy = (data2 & DATAVIDH2_F) | DATAVIDH1_G(data2); in cudbg_collect_tcam_index()
2575 tcam->vniy = (tcam->vniy << 16) | VIDL_G(val); in cudbg_collect_tcam_index()
2576 tcam->dip_hit = data2 & DATADIPHIT_F; in cudbg_collect_tcam_index()
2578 tcam->vlan_vld = data2 & DATAVIDH2_F; in cudbg_collect_tcam_index()
2579 tcam->ivlan = VIDL_G(val); in cudbg_collect_tcam_index()
2582 tcam->port_num = DATAPORTNUM_G(data2); in cudbg_collect_tcam_index()
2591 if (tcam->lookup_type && tcam->lookup_type != DATALKPTYPE_M) { in cudbg_collect_tcam_index()
[all …]
/Linux-v6.1/drivers/net/ethernet/sun/
Dniu.c5017 tp = &parent->tcam[index]; in niu_set_ip_frag_rule()
7180 tp = &parent->tcam[idx]; in niu_get_ethtool_tcam_entry()
7263 tp = &parent->tcam[idx]; in niu_get_ethtool_tcam_all()
7517 tp = &parent->tcam[idx]; in niu_add_ethtool_tcam_entry()
7601 tp = &parent->tcam[idx]; in niu_del_ethtool_tcam_entry()
Dniu.h3116 struct niu_tcam_entry tcam[NIU_TCAM_ENTRIES_MAX]; member