/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_acl_flex_actions.c | 13 u32 kvdl_index; in mlxsw_sp_act_kvdl_set_add() local 23 1, &kvdl_index); in mlxsw_sp_act_kvdl_set_add() 26 mlxsw_reg_pefa_pack(pefa_pl, kvdl_index, ca, enc_actions); in mlxsw_sp_act_kvdl_set_add() 30 *p_kvdl_index = kvdl_index; in mlxsw_sp_act_kvdl_set_add() 35 1, kvdl_index); in mlxsw_sp_act_kvdl_set_add() 53 static void mlxsw_sp_act_kvdl_set_del(void *priv, u32 kvdl_index, in mlxsw_sp_act_kvdl_set_del() argument 61 1, kvdl_index); in mlxsw_sp_act_kvdl_set_del() 64 static int mlxsw_sp1_act_kvdl_set_activity_get(void *priv, u32 kvdl_index, in mlxsw_sp1_act_kvdl_set_activity_get() argument 70 static int mlxsw_sp2_act_kvdl_set_activity_get(void *priv, u32 kvdl_index, in mlxsw_sp2_act_kvdl_set_activity_get() argument 77 mlxsw_reg_pefa_pack(pefa_pl, kvdl_index, true, NULL); in mlxsw_sp2_act_kvdl_set_activity_get() [all …]
|
D | spectrum2_acl_tcam.c | 12 u32 kvdl_index; member 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() 136 tcam->kvdl_count, tcam->kvdl_index); in mlxsw_sp2_acl_tcam_init() 146 tcam->kvdl_count, tcam->kvdl_index); in mlxsw_sp2_acl_tcam_fini()
|
D | core_acl_flex_actions.h | 17 void (*kvdl_set_del)(void *priv, u32 kvdl_index, bool is_first); 18 int (*kvdl_set_activity_get)(void *priv, u32 kvdl_index, 21 void (*kvdl_fwd_entry_del)(void *priv, u32 kvdl_index); 94 bool rmid_valid, u32 kvdl_index);
|
D | spectrum2_kvdl.c | 108 u16 size, u32 kvdl_index) in mlxsw_sp2_kvdl_rec_del() argument 118 mlxsw_reg_iedr_rec_pack(iedr_pl, 0, res_type, size, kvdl_index); in mlxsw_sp2_kvdl_rec_del() 126 unsigned int size, u32 kvdl_index) in mlxsw_sp2_kvdl_part_free() argument 135 size, kvdl_index); in mlxsw_sp2_kvdl_part_free() 140 bit = kvdl_index / part->indexes_per_usage_bit; in mlxsw_sp2_kvdl_part_free()
|
D | spectrum1_kvdl.c | 89 mlxsw_sp1_kvdl_index_part(struct mlxsw_sp1_kvdl *kvdl, u32 kvdl_index) in mlxsw_sp1_kvdl_index_part() argument 96 if (kvdl_index >= part->info.start_index && in mlxsw_sp1_kvdl_index_part() 97 kvdl_index <= part->info.end_index) in mlxsw_sp1_kvdl_index_part() 113 u32 kvdl_index) in mlxsw_sp1_kvdl_to_entry_index() argument 115 return (kvdl_index - info->start_index) / info->alloc_size; in mlxsw_sp1_kvdl_to_entry_index() 137 u32 kvdl_index) in mlxsw_sp1_kvdl_part_free() argument 142 entry_index = mlxsw_sp1_kvdl_to_entry_index(info, kvdl_index); in mlxsw_sp1_kvdl_part_free()
|
D | spectrum_nve.c | 69 u32 kvdl_index; member 133 u32 kvdl_index; in mlxsw_sp_nve_mc_record_ipv6_entry_add() local 137 &addr->addr6, &kvdl_index); in mlxsw_sp_nve_mc_record_ipv6_entry_add() 142 mc_entry->ipv6_entry.addr6_kvdl_index = kvdl_index; in mlxsw_sp_nve_mc_record_ipv6_entry_add() 286 &mc_record->kvdl_index); in mlxsw_sp_nve_mc_record_create() 310 mc_record->kvdl_index); in mlxsw_sp_nve_mc_record_destroy() 377 next_kvdl_index = next_record->kvdl_index; in mlxsw_sp_nve_mc_record_refresh() 382 mc_record->kvdl_index, next_valid, in mlxsw_sp_nve_mc_record_refresh() 522 swap(mc_record->kvdl_index, next_record->kvdl_index); in mlxsw_sp_nve_mc_record_entry_del() 610 return mlxsw_sp_fid_nve_flood_index_set(fid, mc_record->kvdl_index); in mlxsw_sp_nve_fid_flood_index_set()
|
D | core_acl_flex_actions.c | 92 u32 kvdl_index; member 122 u32 kvdl_index; member 304 &set->kvdl_index, in mlxsw_afa_set_share() 323 set->kvdl_index, in mlxsw_afa_set_unshare() 482 mlxsw_afa_set_next_set(prev_set, set->kvdl_index); in mlxsw_afa_block_commit() 511 return block->first_set->next->kvdl_index; in mlxsw_afa_block_first_kvdl_index() 517 u32 kvdl_index = mlxsw_afa_block_first_kvdl_index(block); in mlxsw_afa_block_activity_get() local 520 kvdl_index, activity); in mlxsw_afa_block_activity_get() 576 &fwd_entry->kvdl_index, in mlxsw_afa_fwd_entry_create() 594 fwd_entry->kvdl_index); in mlxsw_afa_fwd_entry_destroy() [all …]
|
D | spectrum_acl_atcam.c | 387 u32 kvdl_index, priority; in mlxsw_sp_acl_atcam_region_entry_insert() local 399 kvdl_index = mlxsw_afa_block_first_kvdl_index(rulei->act_block); in mlxsw_sp_acl_atcam_region_entry_insert() 407 kvdl_index); in mlxsw_sp_acl_atcam_region_entry_insert() 451 u32 kvdl_index, priority; in mlxsw_sp_acl_atcam_region_entry_action_replace() local 457 kvdl_index = mlxsw_afa_block_first_kvdl_index(rulei->act_block); in mlxsw_sp_acl_atcam_region_entry_action_replace() 465 kvdl_index); in mlxsw_sp_acl_atcam_region_entry_action_replace()
|
D | spectrum_mr_tcam.c | 29 u32 kvdl_index; member 93 erif_list->kvdl_index = sublist->rigr2_kvdl_index; in mlxsw_sp_mr_erif_list_add() 177 to->kvdl_index = from->kvdl_index; in mlxsw_sp_mr_erif_list_move() 228 erif_list->kvdl_index); in mlxsw_sp_mr_tcam_afa_block_create()
|
D | spectrum_switchdev.c | 1584 u32 kvdl_index, bool adding) in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write() argument 1596 MLXSW_REG_SFD_REC_ACTION_NOP, kvdl_index); in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write() 1614 u32 kvdl_index; in mlxsw_sp_port_fdb_tun_uc_op6_add() local 1617 err = mlxsw_sp_nve_ipv6_addr_kvdl_set(mlxsw_sp, addr, &kvdl_index); in mlxsw_sp_port_fdb_tun_uc_op6_add() 1622 kvdl_index, true); in mlxsw_sp_port_fdb_tun_uc_op6_add() 1636 mlxsw_sp_port_fdb_tun_uc_op6_sfd_write(mlxsw_sp, mac, fid, kvdl_index, in mlxsw_sp_port_fdb_tun_uc_op6_add()
|
D | spectrum.c | 2947 u32 kvdl_index; member 2984 node->kvdl_index = *p_kvdl_index; in mlxsw_sp_ipv6_addr_init() 3007 u32 kvdl_index = node->kvdl_index; in mlxsw_sp_ipv6_addr_fini() local 3013 kvdl_index); in mlxsw_sp_ipv6_addr_fini() 3028 *p_kvdl_index = node->kvdl_index; in mlxsw_sp_ipv6_addr_kvdl_index_get()
|