Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_tcam.c33 struct mlxsw_sp_acl_tcam *tcam) in mlxsw_sp_acl_tcam_init() argument
42 mutex_init(&tcam->lock); in mlxsw_sp_acl_tcam_init()
43 tcam->vregion_rehash_intrvl = in mlxsw_sp_acl_tcam_init()
45 INIT_LIST_HEAD(&tcam->vregion_list); in mlxsw_sp_acl_tcam_init()
55 alloc_size = sizeof(tcam->used_regions[0]) * BITS_TO_LONGS(max_regions); in mlxsw_sp_acl_tcam_init()
56 tcam->used_regions = kzalloc(alloc_size, GFP_KERNEL); in mlxsw_sp_acl_tcam_init()
57 if (!tcam->used_regions) in mlxsw_sp_acl_tcam_init()
59 tcam->max_regions = max_regions; in mlxsw_sp_acl_tcam_init()
62 alloc_size = sizeof(tcam->used_groups[0]) * BITS_TO_LONGS(max_groups); in mlxsw_sp_acl_tcam_init()
63 tcam->used_groups = kzalloc(alloc_size, GFP_KERNEL); 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
80 tcam->kvdl_count = _tcam->max_regions; in mlxsw_sp2_acl_tcam_init()
82 tcam->kvdl_count, &tcam->kvdl_index); in mlxsw_sp2_acl_tcam_init()
100 for (i = 0; i < tcam->kvdl_count; i++) { in mlxsw_sp2_acl_tcam_init()
101 mlxsw_reg_pefa_pack(pefa_pl, tcam->kvdl_index + i, in mlxsw_sp2_acl_tcam_init()
107 mlxsw_reg_pgcr_pack(pgcr_pl, tcam->kvdl_index); in mlxsw_sp2_acl_tcam_init()
112 err = mlxsw_sp_acl_atcam_init(mlxsw_sp, &tcam->atcam); in mlxsw_sp2_acl_tcam_init()
126 tcam->kvdl_count, tcam->kvdl_index); in mlxsw_sp2_acl_tcam_init()
132 struct mlxsw_sp2_acl_tcam *tcam = priv; in mlxsw_sp2_acl_tcam_fini() local
134 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.c33 struct mlxsw_sp_acl_tcam tcam; member
320 err = ops->ruleset_add(mlxsw_sp, &acl->tcam, ruleset->priv, in mlxsw_sp_acl_ruleset_create()
883 err = mlxsw_sp_acl_tcam_init(mlxsw_sp, &acl->tcam); in mlxsw_sp_acl_init()
910 mlxsw_sp_acl_tcam_fini(mlxsw_sp, &acl->tcam); in mlxsw_sp_acl_fini()
923 &acl->tcam); in mlxsw_sp_acl_region_rehash_intrvl_get()
931 &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.h775 struct mlxsw_sp_acl_tcam *tcam);
/Linux-v5.4/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()
35 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.h271 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-v5.4/drivers/net/ethernet/chelsio/cxgb4/
Dcudbg_lib.c2108 struct cudbg_mps_tcam *tcam, u32 idx) in cudbg_collect_tcam_index() argument
2134 tcam->lookup_type = DATALKPTYPE_G(data2); in cudbg_collect_tcam_index()
2140 if (tcam->lookup_type && tcam->lookup_type != DATALKPTYPE_M) { in cudbg_collect_tcam_index()
2142 tcam->vniy = (data2 & DATAVIDH2_F) | DATAVIDH1_G(data2); in cudbg_collect_tcam_index()
2143 tcam->vniy = (tcam->vniy << 16) | VIDL_G(val); in cudbg_collect_tcam_index()
2144 tcam->dip_hit = data2 & DATADIPHIT_F; in cudbg_collect_tcam_index()
2146 tcam->vlan_vld = data2 & DATAVIDH2_F; in cudbg_collect_tcam_index()
2147 tcam->ivlan = VIDL_G(val); in cudbg_collect_tcam_index()
2150 tcam->port_num = DATAPORTNUM_G(data2); in cudbg_collect_tcam_index()
2159 if (tcam->lookup_type && tcam->lookup_type != DATALKPTYPE_M) { in cudbg_collect_tcam_index()
[all …]
/Linux-v5.4/drivers/net/ethernet/intel/ice/
Dice_flex_type.h211 struct ice_boost_tcam_entry tcam[1]; member
/Linux-v5.4/drivers/net/ethernet/sun/
Dniu.c5000 tp = &parent->tcam[index]; in niu_set_ip_frag_rule()
7164 tp = &parent->tcam[idx]; in niu_get_ethtool_tcam_entry()
7247 tp = &parent->tcam[idx]; in niu_get_ethtool_tcam_all()
7501 tp = &parent->tcam[idx]; in niu_add_ethtool_tcam_entry()
7585 tp = &parent->tcam[idx]; in niu_del_ethtool_tcam_entry()
Dniu.h3116 struct niu_tcam_entry tcam[NIU_TCAM_ENTRIES_MAX]; member