/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum2_acl_tcam.c | 72 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 in mlxsw_sp2_acl_tcam_init() 132 struct mlxsw_sp2_acl_tcam *tcam = priv; mlxsw_sp2_acl_tcam_fini() local 146 struct mlxsw_sp2_acl_tcam *tcam = tcam_priv; mlxsw_sp2_acl_tcam_region_init() local [all...] |
H A D | spectrum_acl_tcam.c | 56 static int mlxsw_sp_acl_tcam_region_id_get(struct mlxsw_sp_acl_tcam *tcam, in mlxsw_sp_acl_tcam_region_id_get() argument 61 id = find_first_zero_bit(tcam->used_regions, tcam->max_regions); in mlxsw_sp_acl_tcam_region_id_get() 62 if (id < tcam->max_regions) { in mlxsw_sp_acl_tcam_region_id_get() 63 __set_bit(id, tcam->used_regions); in mlxsw_sp_acl_tcam_region_id_get() 70 static void mlxsw_sp_acl_tcam_region_id_put(struct mlxsw_sp_acl_tcam *tcam, in mlxsw_sp_acl_tcam_region_id_put() argument 73 __clear_bit(id, tcam->used_regions); in mlxsw_sp_acl_tcam_region_id_put() 76 static int mlxsw_sp_acl_tcam_group_id_get(struct mlxsw_sp_acl_tcam *tcam, in mlxsw_sp_acl_tcam_group_id_get() argument 81 id = find_first_zero_bit(tcam->used_groups, tcam in mlxsw_sp_acl_tcam_group_id_get() 90 mlxsw_sp_acl_tcam_group_id_put(struct mlxsw_sp_acl_tcam *tcam, u16 id) mlxsw_sp_acl_tcam_group_id_put() argument 102 struct mlxsw_sp_acl_tcam *tcam; global() member 150 struct mlxsw_sp_acl_tcam *tcam; global() member 225 mlxsw_sp_acl_tcam_group_add(struct mlxsw_sp_acl_tcam *tcam, struct mlxsw_sp_acl_tcam_group *group) mlxsw_sp_acl_tcam_group_add() argument 244 struct mlxsw_sp_acl_tcam *tcam = group->tcam; mlxsw_sp_acl_tcam_group_del() local 252 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) mlxsw_sp_acl_tcam_vgroup_add() argument 627 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) mlxsw_sp_acl_tcam_region_create() argument 759 struct mlxsw_sp_acl_tcam *tcam = vgroup->group.tcam; mlxsw_sp_acl_tcam_vregion_create() local 818 struct mlxsw_sp_acl_tcam *tcam = vregion->tcam; mlxsw_sp_acl_tcam_vregion_destroy() local 835 mlxsw_sp_acl_tcam_vregion_rehash_intrvl_get(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam *tcam) mlxsw_sp_acl_tcam_vregion_rehash_intrvl_get() argument 847 mlxsw_sp_acl_tcam_vregion_rehash_intrvl_set(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam *tcam, u32 val) mlxsw_sp_acl_tcam_vregion_rehash_intrvl_set() argument 1484 mlxsw_sp_acl_tcam_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam *tcam) mlxsw_sp_acl_tcam_init() argument 1540 mlxsw_sp_acl_tcam_fini(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam *tcam) mlxsw_sp_acl_tcam_fini() argument 1609 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) mlxsw_sp_acl_tcam_flower_ruleset_add() argument 1728 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) mlxsw_sp_acl_tcam_mr_ruleset_add() argument [all...] |
H A D | spectrum_acl_tcam.h | 29 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,
|
H A D | spectrum_acl.c | 35 struct mlxsw_sp_acl_tcam tcam; member 183 err = ops->ruleset_add(mlxsw_sp, &acl->tcam, ruleset->priv, in mlxsw_sp_acl_ruleset_create() 965 err = mlxsw_sp_acl_tcam_init(mlxsw_sp, &acl->tcam); in mlxsw_sp_acl_init() 993 mlxsw_sp_acl_tcam_fini(mlxsw_sp, &acl->tcam); in mlxsw_sp_acl_fini() 1007 &acl->tcam); in mlxsw_sp_acl_region_rehash_intrvl_get() 1015 &acl->tcam, val); in mlxsw_sp_acl_region_rehash_intrvl_set()
|
H A D | spectrum1_acl_tcam.c | 51 struct mlxsw_sp_acl_tcam *tcam) in mlxsw_sp1_acl_tcam_init() 50 mlxsw_sp1_acl_tcam_init(struct mlxsw_sp *mlxsw_sp, void *priv, struct mlxsw_sp_acl_tcam *tcam) mlxsw_sp1_acl_tcam_init() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum2_acl_tcam.c | 72 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 in mlxsw_sp2_acl_tcam_init() 142 struct mlxsw_sp2_acl_tcam *tcam = priv; mlxsw_sp2_acl_tcam_fini() local 156 struct mlxsw_sp2_acl_tcam *tcam = tcam_priv; mlxsw_sp2_acl_tcam_region_init() local [all...] |
H A D | spectrum_acl_tcam.c | 57 static int mlxsw_sp_acl_tcam_region_id_get(struct mlxsw_sp_acl_tcam *tcam, in mlxsw_sp_acl_tcam_region_id_get() argument 62 id = find_first_zero_bit(tcam->used_regions, tcam->max_regions); in mlxsw_sp_acl_tcam_region_id_get() 63 if (id < tcam->max_regions) { in mlxsw_sp_acl_tcam_region_id_get() 64 __set_bit(id, tcam->used_regions); in mlxsw_sp_acl_tcam_region_id_get() 71 static void mlxsw_sp_acl_tcam_region_id_put(struct mlxsw_sp_acl_tcam *tcam, in mlxsw_sp_acl_tcam_region_id_put() argument 74 __clear_bit(id, tcam->used_regions); in mlxsw_sp_acl_tcam_region_id_put() 77 static int mlxsw_sp_acl_tcam_group_id_get(struct mlxsw_sp_acl_tcam *tcam, in mlxsw_sp_acl_tcam_group_id_get() argument 82 id = find_first_zero_bit(tcam->used_groups, tcam in mlxsw_sp_acl_tcam_group_id_get() 91 mlxsw_sp_acl_tcam_group_id_put(struct mlxsw_sp_acl_tcam *tcam, u16 id) mlxsw_sp_acl_tcam_group_id_put() argument 103 struct mlxsw_sp_acl_tcam *tcam; global() member 151 struct mlxsw_sp_acl_tcam *tcam; global() member 226 mlxsw_sp_acl_tcam_group_add(struct mlxsw_sp_acl_tcam *tcam, struct mlxsw_sp_acl_tcam_group *group) mlxsw_sp_acl_tcam_group_add() argument 245 struct mlxsw_sp_acl_tcam *tcam = group->tcam; mlxsw_sp_acl_tcam_group_del() local 253 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) mlxsw_sp_acl_tcam_vgroup_add() argument 628 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) mlxsw_sp_acl_tcam_region_create() argument 684 struct mlxsw_sp_acl_tcam *tcam = mlxsw_sp_acl_to_tcam(mlxsw_sp->acl); mlxsw_sp_acl_tcam_region_destroy() local 760 struct mlxsw_sp_acl_tcam *tcam = vgroup->group.tcam; mlxsw_sp_acl_tcam_vregion_create() local 819 struct mlxsw_sp_acl_tcam *tcam = vregion->tcam; mlxsw_sp_acl_tcam_vregion_destroy() local 1455 struct mlxsw_sp_acl_tcam *tcam; mlxsw_sp_acl_tcam_region_rehash_intrvl_get() local 1471 struct mlxsw_sp_acl_tcam *tcam; mlxsw_sp_acl_tcam_region_rehash_intrvl_set() local 1525 mlxsw_sp_acl_tcam_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam *tcam) mlxsw_sp_acl_tcam_init() argument 1587 mlxsw_sp_acl_tcam_fini(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam *tcam) mlxsw_sp_acl_tcam_fini() argument 1657 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) mlxsw_sp_acl_tcam_flower_ruleset_add() argument 1776 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) mlxsw_sp_acl_tcam_mr_ruleset_add() argument [all...] |
H A D | spectrum_acl_tcam.h | 29 struct mlxsw_sp_acl_tcam *tcam); 31 struct mlxsw_sp_acl_tcam *tcam); 39 struct mlxsw_sp_acl_tcam *tcam, void *ruleset_priv,
|
H A D | spectrum_acl.c | 35 struct mlxsw_sp_acl_tcam tcam; member 45 return &acl->tcam; in mlxsw_sp_acl_to_tcam() 188 err = ops->ruleset_add(mlxsw_sp, &acl->tcam, ruleset->priv, in mlxsw_sp_acl_ruleset_create() 1086 err = mlxsw_sp_acl_tcam_init(mlxsw_sp, &acl->tcam); in mlxsw_sp_acl_init() 1114 mlxsw_sp_acl_tcam_fini(mlxsw_sp, &acl->tcam); in mlxsw_sp_acl_fini()
|
H A D | spectrum1_acl_tcam.c | 51 struct mlxsw_sp_acl_tcam *tcam) in mlxsw_sp1_acl_tcam_init() 50 mlxsw_sp1_acl_tcam_init(struct mlxsw_sp *mlxsw_sp, void *priv, struct mlxsw_sp_acl_tcam *tcam) mlxsw_sp1_acl_tcam_init() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
H A D | ice_flex_pipe.c | 345 struct_size(sect_rx, tcam, 1)); in ice_upd_dvm_boost_entry() 351 struct_size(sect_tx, tcam, 1)); in ice_upd_dvm_boost_entry() 357 memcpy(sect_rx->tcam, entry->boost_entry, sizeof(*sect_rx->tcam)); in ice_upd_dvm_boost_entry() 372 ice_set_key((u8 *)§_rx->tcam[0].key, sizeof(sect_rx->tcam[0].key), in ice_upd_dvm_boost_entry() 376 memcpy(sect_tx->tcam, sect_rx->tcam, sizeof(*sect_tx->tcam)); in ice_upd_dvm_boost_entry() 390 * Enable double vlan by updating the appropriate boost tcam entrie 2612 u16 tcam = 0; ice_upd_prof_hw() local 3561 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) ice_prof_tcam_ena_dis() argument [all...] |
H A D | ice_ddp.h | 351 struct ice_boost_tcam_entry tcam[]; member 356 tcam, 1) - \ 371 struct ice_marker_ptype_tcam_entry tcam[]; member 375 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; in ice_marker_ptype_tcam_handler() 626 return boost->tcam + index; in ice_boost_tcam_handler() 642 struct ice_boost_tcam_entry *tcam; in ice_find_boost_entry() local 651 tcam = ice_pkg_enum_entry(ice_seg, &state, in ice_find_boost_entry() 654 if (tcam && le16_to_cpu(tcam->addr) == addr) { in ice_find_boost_entry() 655 *entry = tcam; in ice_find_boost_entry() 660 } while (tcam); in ice_find_boost_entry() 1741 struct ice_marker_ptype_tcam_entry *tcam; in ice_fill_hw_ptype() local [all...] |
H A D | ice_flex_type.h | 202 struct ice_tcam_inf tcam[ICE_MAX_TCAM_PER_PROFILE]; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
H A D | ice_flex_pipe.c | 347 return boost->tcam + index; in ice_boost_tcam_handler() 364 struct ice_boost_tcam_entry *tcam; in ice_find_boost_entry() local 373 tcam = ice_pkg_enum_entry(ice_seg, &state, in ice_find_boost_entry() 376 if (tcam && le16_to_cpu(tcam->addr) == addr) { in ice_find_boost_entry() 377 *entry = tcam; in ice_find_boost_entry() 382 } while (tcam); in ice_find_boost_entry() 1711 struct_size(sect_rx, tcam, 1)); in ice_create_tunnel() 1717 struct_size(sect_tx, tcam, 1)); in ice_create_tunnel() 1723 memcpy(sect_rx->tcam, h in ice_create_tunnel() 3432 u16 tcam = 0; ice_upd_prof_hw() local 4311 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) ice_prof_tcam_ena_dis() argument [all...] |
H A D | ice_flex_type.h | 249 struct ice_boost_tcam_entry tcam[]; member 253 struct_size((struct ice_boost_tcam_section *)0, tcam, 1) - \ 391 struct ice_tcam_inf tcam[ICE_MAX_TCAM_PER_PROFILE]; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/mvpp2/ |
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; in mvpp2_prs_hw_write() 37 /* Write tcam index - indirect access */ in mvpp2_prs_hw_write() 40 mvpp2_write(priv, MVPP2_PRS_TCAM_DATA_REG(i), pe->tcam[i]); in mvpp2_prs_hw_write() 45 /* Initialize tcam entry from hw */ 57 /* Write tcam index - indirect access */ in mvpp2_prs_init_from_hw() 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() 76 /* Invalidate tcam h [all...] |
H A D | mvpp2_cls.c | 515 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[ in mvpp2_cls_c2_read() [all...] |
H A D | mvpp2_cls.h | 117 u32 tcam[MVPP2_CLS_C2_TCAM_WORDS]; member
|
H A D | mvpp2_debugfs.c | 375 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/mvpp2/ |
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; in mvpp2_prs_hw_write() 37 /* Write tcam index - indirect access */ in mvpp2_prs_hw_write() 40 mvpp2_write(priv, MVPP2_PRS_TCAM_DATA_REG(i), pe->tcam[i]); in mvpp2_prs_hw_write() 45 /* Initialize tcam entry from hw */ 57 /* Write tcam index - indirect access */ in mvpp2_prs_init_from_hw() 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() 76 /* Invalidate tcam h [all...] |
H A D | mvpp2_cls.c | 521 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA0, c2->tcam[0]); in mvpp2_cls_c2_write() 522 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA1, c2->tcam[1]); in mvpp2_cls_c2_write() 523 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA2, c2->tcam[2]); in mvpp2_cls_c2_write() 524 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA3, c2->tcam[3]); in mvpp2_cls_c2_write() 526 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA4, c2->tcam[4]); in mvpp2_cls_c2_write() 537 c2->tcam[0] = mvpp2_read(priv, MVPP22_CLS_C2_TCAM_DATA0); in mvpp2_cls_c2_read() 538 c2->tcam[1] = mvpp2_read(priv, MVPP22_CLS_C2_TCAM_DATA1); in mvpp2_cls_c2_read() 539 c2->tcam[2] = mvpp2_read(priv, MVPP22_CLS_C2_TCAM_DATA2); in mvpp2_cls_c2_read() 540 c2->tcam[3] = mvpp2_read(priv, MVPP22_CLS_C2_TCAM_DATA3); in mvpp2_cls_c2_read() 541 c2->tcam[ in mvpp2_cls_c2_read() [all...] |
H A D | mvpp2_cls.h | 117 u32 tcam[MVPP2_CLS_C2_TCAM_WORDS]; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cudbg_lib.c | 2540 struct cudbg_mps_tcam *tcam, u32 idx) in cudbg_collect_tcam_index() 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 in cudbg_collect_tcam_index() 2539 cudbg_collect_tcam_index(struct cudbg_init *pdbg_init, struct cudbg_mps_tcam *tcam, u32 idx) cudbg_collect_tcam_index() argument 2668 struct cudbg_mps_tcam *tcam; cudbg_collect_mps_tcam() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cudbg_lib.c | 2540 struct cudbg_mps_tcam *tcam, u32 idx) in cudbg_collect_tcam_index() 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 in cudbg_collect_tcam_index() 2539 cudbg_collect_tcam_index(struct cudbg_init *pdbg_init, struct cudbg_mps_tcam *tcam, u32 idx) cudbg_collect_tcam_index() argument 2668 struct cudbg_mps_tcam *tcam; cudbg_collect_mps_tcam() local [all...] |