Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_acl_tcam.c41 mutex_init(&tcam->lock); in mlxsw_sp_acl_tcam_init()
55 if (!tcam->used_regions) in mlxsw_sp_acl_tcam_init()
61 if (!tcam->used_groups) { in mlxsw_sp_acl_tcam_init()
69 err = ops->init(mlxsw_sp, tcam->priv, tcam); in mlxsw_sp_acl_tcam_init()
122 id = find_first_zero_bit(tcam->used_regions, tcam->max_regions); in mlxsw_sp_acl_tcam_region_id_get()
142 id = find_first_zero_bit(tcam->used_groups, tcam->max_groups); in mlxsw_sp_acl_tcam_group_id_get()
291 group->tcam = tcam; in mlxsw_sp_acl_tcam_group_add()
305 struct mlxsw_sp_acl_tcam *tcam = group->tcam; in mlxsw_sp_acl_tcam_group_del() local
820 struct mlxsw_sp_acl_tcam *tcam = vgroup->group.tcam; in mlxsw_sp_acl_tcam_vregion_create() local
829 vregion->tcam = tcam; in mlxsw_sp_acl_tcam_vregion_create()
[all …]
A 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()
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()
136 tcam->kvdl_count, tcam->kvdl_index); in mlxsw_sp2_acl_tcam_fini()
[all …]
A 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,
A 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()
990 err = mlxsw_sp_acl_tcam_init(mlxsw_sp, &acl->tcam); in mlxsw_sp_acl_init()
1018 mlxsw_sp_acl_tcam_fini(mlxsw_sp, &acl->tcam); in mlxsw_sp_acl_fini()
1032 &acl->tcam); in mlxsw_sp_acl_region_rehash_intrvl_get()
1040 &acl->tcam, val); in mlxsw_sp_acl_region_rehash_intrvl_set()
A Dspectrum1_acl_tcam.c51 struct mlxsw_sp_acl_tcam *tcam) in mlxsw_sp1_acl_tcam_init() argument
A Dspectrum.h1057 struct mlxsw_sp_acl_tcam *tcam);
/linux/drivers/net/ethernet/marvell/mvpp2/
A 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()
871 c2.tcam[4] = MVPP22_CLS_C2_PORT_ID(pmap); in mvpp2_port_c2_cls_init()
1056 c2.tcam[4] &= ~(MVPP22_CLS_C2_PORT_ID(BIT(port->id))); in mvpp22_port_c2_lookup_disable()
1099 c2.tcam[3] = (rule->c2_tcam & 0xffff) | in mvpp2_port_c2_tcam_rule_add()
1101 c2.tcam[2] = ((rule->c2_tcam >> 16) & 0xffff) | in mvpp2_port_c2_tcam_rule_add()
1103 c2.tcam[1] = ((rule->c2_tcam >> 32) & 0xffff) | in mvpp2_port_c2_tcam_rule_add()
1105 c2.tcam[0] = ((rule->c2_tcam >> 48) & 0xffff) | in mvpp2_port_c2_tcam_rule_add()
1109 c2.tcam[4] = MVPP22_CLS_C2_PORT_ID(pmap); in mvpp2_port_c2_tcam_rule_add()
[all …]
A 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()
141 pe->tcam[MVPP2_PRS_BYTE_TO_WORD(offs)] &= ~(0xff << pos); in mvpp2_prs_tcam_data_byte_set()
143 pe->tcam[MVPP2_PRS_BYTE_TO_WORD(offs)] |= byte << pos; in mvpp2_prs_tcam_data_byte_set()
164 tcam_data = pe->tcam[MVPP2_PRS_BYTE_TO_WORD(offs)] & 0xffff; in mvpp2_prs_tcam_data_cmp()
179 pe->tcam[MVPP2_PRS_TCAM_AI_WORD] |= BIT(i); in mvpp2_prs_tcam_ai_update()
181 pe->tcam[MVPP2_PRS_TCAM_AI_WORD] &= ~BIT(i); in mvpp2_prs_tcam_ai_update()
[all …]
A Dmvpp2_cls.h117 u32 tcam[MVPP2_CLS_C2_TCAM_WORDS]; member
A 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()
A Dmvpp2_prs.h273 u32 tcam[MVPP2_PRS_TCAM_WORDS]; member
/linux/drivers/net/ethernet/intel/ice/
A Dice_flex_pipe.c377 if (tcam && le16_to_cpu(tcam->addr) == addr) { in ice_find_boost_entry()
378 *entry = tcam; in ice_find_boost_entry()
383 } while (tcam); in ice_find_boost_entry()
2001 ice_set_key((u8 *)&sect_rx->tcam[0].key, sizeof(sect_rx->tcam[0].key), in ice_create_tunnel()
2007 memcpy(sect_tx->tcam, sect_rx->tcam, sizeof(*sect_tx->tcam)); in ice_create_tunnel()
4137 u16 tcam = 0; in ice_upd_prof_hw() local
4151 tcam++; in ice_upd_prof_hw()
4183 if (tcam) { in ice_upd_prof_hw()
5106 tcam->in_use = 0; in ice_prof_tcam_ena_dis()
5126 tcam->ptg, vsig, 0, tcam->attr.flags, in ice_prof_tcam_ena_dis()
[all …]
A Dice_flex_type.h324 struct ice_boost_tcam_entry tcam[]; member
328 struct_size((struct ice_boost_tcam_section *)0, tcam, 1) - \
470 struct ice_tcam_inf tcam[ICE_MAX_TCAM_PER_PROFILE]; member
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dcudbg_lib.c2571 if (tcam->lookup_type && tcam->lookup_type != DATALKPTYPE_M) { in cudbg_collect_tcam_index()
2574 tcam->vniy = (tcam->vniy << 16) | VIDL_G(val); in cudbg_collect_tcam_index()
2578 tcam->ivlan = VIDL_G(val); in cudbg_collect_tcam_index()
2590 if (tcam->lookup_type && tcam->lookup_type != DATALKPTYPE_M) { in cudbg_collect_tcam_index()
2593 tcam->vnix = (tcam->vnix << 16) | VIDL_G(val); in cudbg_collect_tcam_index()
2608 tcam->repli = (tcam->cls_lo & REPLICATE_F); in cudbg_collect_tcam_index()
2610 tcam->repli = (tcam->cls_lo & T6_REPLICATE_F); in cudbg_collect_tcam_index()
2612 if (tcam->repli) { in cudbg_collect_tcam_index()
2654 cudbg_tcamxy2valmask(tcamx, tcamy, tcam->addr, &tcam->mask); in cudbg_collect_tcam_index()
2655 tcam->idx = idx; in cudbg_collect_tcam_index()
[all …]
/linux/drivers/net/ethernet/sun/
A Dniu.c4998 tp = &parent->tcam[index]; in niu_set_ip_frag_rule()
7162 tp = &parent->tcam[idx]; in niu_get_ethtool_tcam_entry()
7245 tp = &parent->tcam[idx]; in niu_get_ethtool_tcam_all()
7499 tp = &parent->tcam[idx]; in niu_add_ethtool_tcam_entry()
7583 tp = &parent->tcam[idx]; in niu_del_ethtool_tcam_entry()
A Dniu.h3116 struct niu_tcam_entry tcam[NIU_TCAM_ENTRIES_MAX]; member

Completed in 82 milliseconds