/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A 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() 30 *p_kvdl_index = kvdl_index; in mlxsw_sp_act_kvdl_set_add() 35 1, kvdl_index); in mlxsw_sp_act_kvdl_set_add() 61 1, kvdl_index); in mlxsw_sp_act_kvdl_set_del() 77 mlxsw_reg_pefa_pack(pefa_pl, kvdl_index, true, NULL); in mlxsw_sp2_act_kvdl_set_activity_get() 90 u32 kvdl_index; in mlxsw_sp_act_kvdl_fwd_entry_add() local 94 1, &kvdl_index); in mlxsw_sp_act_kvdl_fwd_entry_add() 101 *p_kvdl_index = kvdl_index; in mlxsw_sp_act_kvdl_fwd_entry_add() 106 1, kvdl_index); in mlxsw_sp_act_kvdl_fwd_entry_add() [all …]
|
H A 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()
|
H A 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); 96 bool rmid_valid, u32 kvdl_index);
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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() 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() 1671 u32 kvdl_index; in mlxsw_afa_block_append_fwd() local 1684 kvdl_index = fwd_entry_ref->fwd_entry->kvdl_index; in mlxsw_afa_block_append_fwd() 1694 kvdl_index, in_port); in mlxsw_afa_block_append_fwd() [all …]
|
H A D | spectrum_acl_atcam.c | 387 u32 kvdl_index, priority; in mlxsw_sp_acl_atcam_region_entry_insert() local 400 kvdl_index = mlxsw_afa_block_first_kvdl_index(rulei->act_block); in mlxsw_sp_acl_atcam_region_entry_insert() 408 kvdl_index); in mlxsw_sp_acl_atcam_region_entry_insert() 452 u32 kvdl_index, priority; in mlxsw_sp_acl_atcam_region_entry_action_replace() local 458 kvdl_index = mlxsw_afa_block_first_kvdl_index(rulei->act_block); in mlxsw_sp_acl_atcam_region_entry_action_replace() 466 kvdl_index); in mlxsw_sp_acl_atcam_region_entry_action_replace()
|
H A 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()
|
H A D | spectrum_switchdev.c | 1679 u32 kvdl_index, bool adding) in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write() argument 1691 MLXSW_REG_SFD_REC_ACTION_NOP, kvdl_index); in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write() 1709 u32 kvdl_index; in mlxsw_sp_port_fdb_tun_uc_op6_add() local 1712 err = mlxsw_sp_nve_ipv6_addr_kvdl_set(mlxsw_sp, addr, &kvdl_index); in mlxsw_sp_port_fdb_tun_uc_op6_add() 1717 kvdl_index, true); in mlxsw_sp_port_fdb_tun_uc_op6_add() 1731 mlxsw_sp_port_fdb_tun_uc_op6_sfd_write(mlxsw_sp, mac, fid, kvdl_index, in mlxsw_sp_port_fdb_tun_uc_op6_add()
|
H A D | spectrum.c | 2955 u32 kvdl_index; member 2992 node->kvdl_index = *p_kvdl_index; in mlxsw_sp_ipv6_addr_init() 3015 u32 kvdl_index = node->kvdl_index; in mlxsw_sp_ipv6_addr_fini() local 3021 kvdl_index); in mlxsw_sp_ipv6_addr_fini() 3036 *p_kvdl_index = node->kvdl_index; in mlxsw_sp_ipv6_addr_kvdl_index_get()
|