Lines Matching refs:match_value
125 struct devlink_dpipe_value *match_value, in mlxsw_sp_erif_entry_prepare() argument
130 entry->match_values = match_value; in mlxsw_sp_erif_entry_prepare()
136 match_value->match = match; in mlxsw_sp_erif_entry_prepare()
137 match_value->value_size = sizeof(u32); in mlxsw_sp_erif_entry_prepare()
138 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_erif_entry_prepare()
139 if (!match_value->value) in mlxsw_sp_erif_entry_prepare()
150 kfree(match_value->value); in mlxsw_sp_erif_entry_prepare()
195 struct devlink_dpipe_value match_value, action_value; in mlxsw_sp_dpipe_table_erif_entries_dump() local
204 memset(&match_value, 0, sizeof(match_value)); in mlxsw_sp_dpipe_table_erif_entries_dump()
208 err = mlxsw_sp_erif_entry_prepare(&entry, &match_value, &match, in mlxsw_sp_dpipe_table_erif_entries_dump()
408 struct devlink_dpipe_value *match_value; in mlxsw_sp_dpipe_table_host_entry_prepare() local
418 match_value = &match_values[MLXSW_SP_DPIPE_TABLE_HOST_MATCH_RIF]; in mlxsw_sp_dpipe_table_host_entry_prepare()
420 match_value->match = match; in mlxsw_sp_dpipe_table_host_entry_prepare()
421 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_host_entry_prepare()
422 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_host_entry_prepare()
423 if (!match_value->value) in mlxsw_sp_dpipe_table_host_entry_prepare()
427 match_value = &match_values[MLXSW_SP_DPIPE_TABLE_HOST_MATCH_DIP]; in mlxsw_sp_dpipe_table_host_entry_prepare()
429 match_value->match = match; in mlxsw_sp_dpipe_table_host_entry_prepare()
432 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_host_entry_prepare()
435 match_value->value_size = sizeof(struct in6_addr); in mlxsw_sp_dpipe_table_host_entry_prepare()
442 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_host_entry_prepare()
443 if (!match_value->value) in mlxsw_sp_dpipe_table_host_entry_prepare()
974 struct devlink_dpipe_value *match_value; in mlxsw_sp_dpipe_table_adj_entry_prepare() local
985 match_value = &match_values[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_INDEX]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
987 match_value->match = match; in mlxsw_sp_dpipe_table_adj_entry_prepare()
988 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_adj_entry_prepare()
989 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_adj_entry_prepare()
990 if (!match_value->value) in mlxsw_sp_dpipe_table_adj_entry_prepare()
994 match_value = &match_values[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_SIZE]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
996 match_value->match = match; in mlxsw_sp_dpipe_table_adj_entry_prepare()
997 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_adj_entry_prepare()
998 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_adj_entry_prepare()
999 if (!match_value->value) in mlxsw_sp_dpipe_table_adj_entry_prepare()
1003 match_value = &match_values[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_HASH_INDEX]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
1005 match_value->match = match; in mlxsw_sp_dpipe_table_adj_entry_prepare()
1006 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_adj_entry_prepare()
1007 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_adj_entry_prepare()
1008 if (!match_value->value) in mlxsw_sp_dpipe_table_adj_entry_prepare()