/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum2_acl_tcam.c | 72 struct mlxsw_sp2_acl_tcam *tcam = priv; local 84 tcam->kvdl_count = _tcam->max_regions; 86 tcam->kvdl_count = MLXSW_CORE_RES_GET(mlxsw_sp->core, 89 tcam->kvdl_count, &tcam->kvdl_index); 111 mlxsw_reg_pefa_pack(pefa_pl, tcam->kvdl_index + i, 117 mlxsw_reg_pgcr_pack(pgcr_pl, tcam->kvdl_index); 122 err = mlxsw_sp_acl_atcam_init(mlxsw_sp, &tcam->atcam); 136 tcam->kvdl_count, tcam 142 struct mlxsw_sp2_acl_tcam *tcam = priv; local 156 struct mlxsw_sp2_acl_tcam *tcam = tcam_priv; local [all...] |
H A D | spectrum_acl_tcam.c | 59 static int mlxsw_sp_acl_tcam_region_id_get(struct mlxsw_sp_acl_tcam *tcam, argument 64 id = ida_alloc_max(&tcam->used_regions, tcam->max_regions - 1, 74 static void mlxsw_sp_acl_tcam_region_id_put(struct mlxsw_sp_acl_tcam *tcam, argument 77 ida_free(&tcam->used_regions, id); 80 static int mlxsw_sp_acl_tcam_group_id_get(struct mlxsw_sp_acl_tcam *tcam, argument 85 id = ida_alloc_max(&tcam->used_groups, tcam->max_groups - 1, 95 static void mlxsw_sp_acl_tcam_group_id_put(struct mlxsw_sp_acl_tcam *tcam, argument 98 ida_free(&tcam 107 struct mlxsw_sp_acl_tcam *tcam; member in struct:mlxsw_sp_acl_tcam_group 155 struct mlxsw_sp_acl_tcam *tcam; member in struct:mlxsw_sp_acl_tcam_vregion 230 mlxsw_sp_acl_tcam_group_add(struct mlxsw_sp_acl_tcam *tcam, struct mlxsw_sp_acl_tcam_group *group) argument 249 struct mlxsw_sp_acl_tcam *tcam = group->tcam; local 257 mlxsw_sp_acl_tcam_vgroup_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam *tcam, struct mlxsw_sp_acl_tcam_vgroup *vgroup, const struct mlxsw_sp_acl_tcam_pattern *patterns, unsigned int patterns_count, struct mlxsw_afk_element_usage *tmplt_elusage, bool vregion_rehash_enabled, unsigned int *p_min_prio, unsigned int *p_max_prio) argument 632 mlxsw_sp_acl_tcam_region_create(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam *tcam, struct mlxsw_sp_acl_tcam_vregion *vregion, void *hints_priv) argument 688 struct mlxsw_sp_acl_tcam *tcam = mlxsw_sp_acl_to_tcam(mlxsw_sp->acl); local 777 struct mlxsw_sp_acl_tcam *tcam = vgroup->group.tcam; local 836 struct mlxsw_sp_acl_tcam *tcam = vregion->tcam; local 1495 struct mlxsw_sp_acl_tcam *tcam; local 1511 struct mlxsw_sp_acl_tcam *tcam; local 1565 mlxsw_sp_acl_tcam_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam *tcam) argument 1617 mlxsw_sp_acl_tcam_fini(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam *tcam) argument 1687 mlxsw_sp_acl_tcam_flower_ruleset_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam *tcam, void *ruleset_priv, struct mlxsw_afk_element_usage *tmplt_elusage, unsigned int *p_min_prio, unsigned int *p_max_prio) argument 1806 mlxsw_sp_acl_tcam_mr_ruleset_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam *tcam, void *ruleset_priv, struct mlxsw_afk_element_usage *tmplt_elusage, unsigned int *p_min_prio, unsigned int *p_max_prio) argument [all...] |
H A D | spectrum_acl_tcam.h | 30 struct mlxsw_sp_acl_tcam *tcam); 32 struct mlxsw_sp_acl_tcam *tcam); 40 struct mlxsw_sp_acl_tcam *tcam, void *ruleset_priv,
|
H A D | spectrum_acl.c | 36 struct mlxsw_sp_acl_tcam tcam; member in struct:mlxsw_sp_acl 46 return &acl->tcam; 189 err = ops->ruleset_add(mlxsw_sp, &acl->tcam, ruleset->priv, 1087 err = mlxsw_sp_acl_tcam_init(mlxsw_sp, &acl->tcam); 1115 mlxsw_sp_acl_tcam_fini(mlxsw_sp, &acl->tcam);
|
H A D | spectrum1_acl_tcam.c | 51 struct mlxsw_sp_acl_tcam *tcam) 50 mlxsw_sp1_acl_tcam_init(struct mlxsw_sp *mlxsw_sp, void *priv, struct mlxsw_sp_acl_tcam *tcam) argument
|
H A D | spectrum.h | 1125 struct mlxsw_sp_acl_tcam *tcam);
|
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_flex_pipe.c | 345 struct_size(sect_rx, tcam, 1)); 351 struct_size(sect_tx, tcam, 1)); 357 memcpy(sect_rx->tcam, entry->boost_entry, sizeof(*sect_rx->tcam)); 372 ice_set_key((u8 *)§_rx->tcam[0].key, sizeof(sect_rx->tcam[0].key), 376 memcpy(sect_tx->tcam, sect_rx->tcam, sizeof(*sect_tx->tcam)); 390 * Enable double vlan by updating the appropriate boost tcam entrie 2639 u16 tcam = 0; local 3589 ice_prof_tcam_ena_dis(struct ice_hw *hw, enum ice_block blk, bool enable, u16 vsig, struct ice_tcam_inf *tcam, struct list_head *chg) argument [all...] |
H A D | ice_ddp.h | 374 struct ice_boost_tcam_entry tcam[]; member in struct:ice_boost_tcam_section 379 tcam, 1) - \ 394 struct ice_marker_ptype_tcam_entry tcam[]; member in struct:ice_marker_ptype_tcam_section 398 ICE_MAX_ENTRIES_IN_BUF(struct_size_t(struct ice_marker_ptype_tcam_section, tcam, \
|
H A D | ice_ddp.c | 9 * boost tcam entries. The metadata labels names that match the following 482 return marker_ptype->tcam + index; 626 return boost->tcam + index; 642 struct ice_boost_tcam_entry *tcam; local 651 tcam = ice_pkg_enum_entry(ice_seg, &state, 654 if (tcam && le16_to_cpu(tcam->addr) == addr) { 655 *entry = tcam; 660 } while (tcam); 2102 struct ice_marker_ptype_tcam_entry *tcam; local [all...] |
H A D | ice_flex_type.h | 203 struct ice_tcam_inf tcam[ICE_MAX_TCAM_PER_PROFILE]; member in struct:ice_vsig_prof
|
/linux-master/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_cls.c | 521 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA0, c2->tcam[0]); 522 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA1, c2->tcam[1]); 523 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA2, c2->tcam[2]); 524 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA3, c2->tcam[3]); 526 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA4, c2->tcam[4]); 537 c2->tcam[0] = mvpp2_read(priv, MVPP22_CLS_C2_TCAM_DATA0); 538 c2->tcam[1] = mvpp2_read(priv, MVPP22_CLS_C2_TCAM_DATA1); 539 c2->tcam[2] = mvpp2_read(priv, MVPP22_CLS_C2_TCAM_DATA2); 540 c2->tcam[3] = mvpp2_read(priv, MVPP22_CLS_C2_TCAM_DATA3); 541 c2->tcam[ [all...] |
H A D | mvpp2_prs.c | 21 /* Update parser tcam and sram hw entries */ 30 pe->tcam[MVPP2_PRS_TCAM_INV_WORD] &= ~MVPP2_PRS_TCAM_INV_MASK; 37 /* Write tcam index - indirect access */ 40 mvpp2_write(priv, MVPP2_PRS_TCAM_DATA_REG(i), pe->tcam[i]); 45 /* Initialize tcam entry from hw */ 57 /* Write tcam index - indirect access */ 60 pe->tcam[MVPP2_PRS_TCAM_INV_WORD] = mvpp2_read(priv, 62 if (pe->tcam[MVPP2_PRS_TCAM_INV_WORD] & MVPP2_PRS_TCAM_INV_MASK) 66 pe->tcam[i] = mvpp2_read(priv, MVPP2_PRS_TCAM_DATA_REG(i)); 76 /* Invalidate tcam h [all...] |
H A D | mvpp2_cls.h | 117 u32 tcam[MVPP2_CLS_C2_TCAM_WORDS]; member in struct:mvpp2_cls_c2_entry
|
H A D | mvpp2_prs.h | 273 u32 tcam[MVPP2_PRS_TCAM_WORDS]; member in struct:mvpp2_prs_entry
|
H A D | mvpp2_debugfs.c | 375 ai = pe.tcam[MVPP2_PRS_TCAM_AI_WORD] & MVPP2_PRS_AI_MASK; 376 ai_mask = (pe.tcam[MVPP2_PRS_TCAM_AI_WORD] >> 16) & MVPP2_PRS_AI_MASK;
|
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cudbg_lib.c | 2540 struct cudbg_mps_tcam *tcam, u32 idx) 2566 tcam->lookup_type = DATALKPTYPE_G(data2); 2572 if (tcam->lookup_type && tcam->lookup_type != DATALKPTYPE_M) { 2574 tcam->vniy = (data2 & DATAVIDH2_F) | DATAVIDH1_G(data2); 2575 tcam->vniy = (tcam->vniy << 16) | VIDL_G(val); 2576 tcam->dip_hit = data2 & DATADIPHIT_F; 2578 tcam->vlan_vld = data2 & DATAVIDH2_F; 2579 tcam 2539 cudbg_collect_tcam_index(struct cudbg_init *pdbg_init, struct cudbg_mps_tcam *tcam, u32 idx) argument 2668 struct cudbg_mps_tcam *tcam; local [all...] |
/linux-master/drivers/net/ethernet/sun/ |
H A D | niu.c | 5017 tp = &parent->tcam[index]; 7180 tp = &parent->tcam[idx]; 7241 /* put the tcam size here */ 7257 /* put the tcam size here */ 7263 tp = &parent->tcam[idx]; 7517 tp = &parent->tcam[idx]; 7521 /* fill in the tcam key and mask */ 7601 tp = &parent->tcam[idx];
|
H A D | niu.h | 3116 struct niu_tcam_entry tcam[NIU_TCAM_ENTRIES_MAX]; member in struct:rx_pkt_hdr0::niu_parent
|