Lines Matching refs:match_value

124 				       struct devlink_dpipe_value *match_value,  in mlxsw_sp_erif_entry_prepare()  argument
129 entry->match_values = match_value; in mlxsw_sp_erif_entry_prepare()
135 match_value->match = match; in mlxsw_sp_erif_entry_prepare()
136 match_value->value_size = sizeof(u32); in mlxsw_sp_erif_entry_prepare()
137 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_erif_entry_prepare()
138 if (!match_value->value) in mlxsw_sp_erif_entry_prepare()
149 kfree(match_value->value); in mlxsw_sp_erif_entry_prepare()
194 struct devlink_dpipe_value match_value, action_value; in mlxsw_sp_dpipe_table_erif_entries_dump() local
203 memset(&match_value, 0, sizeof(match_value)); in mlxsw_sp_dpipe_table_erif_entries_dump()
207 err = mlxsw_sp_erif_entry_prepare(&entry, &match_value, &match, in mlxsw_sp_dpipe_table_erif_entries_dump()
406 struct devlink_dpipe_value *match_value; in mlxsw_sp_dpipe_table_host_entry_prepare() local
416 match_value = &match_values[MLXSW_SP_DPIPE_TABLE_HOST_MATCH_RIF]; in mlxsw_sp_dpipe_table_host_entry_prepare()
418 match_value->match = match; in mlxsw_sp_dpipe_table_host_entry_prepare()
419 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_host_entry_prepare()
420 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_host_entry_prepare()
421 if (!match_value->value) in mlxsw_sp_dpipe_table_host_entry_prepare()
425 match_value = &match_values[MLXSW_SP_DPIPE_TABLE_HOST_MATCH_DIP]; in mlxsw_sp_dpipe_table_host_entry_prepare()
427 match_value->match = match; in mlxsw_sp_dpipe_table_host_entry_prepare()
430 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_host_entry_prepare()
433 match_value->value_size = sizeof(struct in6_addr); in mlxsw_sp_dpipe_table_host_entry_prepare()
440 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_host_entry_prepare()
441 if (!match_value->value) in mlxsw_sp_dpipe_table_host_entry_prepare()
972 struct devlink_dpipe_value *match_value; in mlxsw_sp_dpipe_table_adj_entry_prepare() local
983 match_value = &match_values[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_INDEX]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
985 match_value->match = match; in mlxsw_sp_dpipe_table_adj_entry_prepare()
986 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_adj_entry_prepare()
987 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_adj_entry_prepare()
988 if (!match_value->value) in mlxsw_sp_dpipe_table_adj_entry_prepare()
992 match_value = &match_values[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_SIZE]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
994 match_value->match = match; in mlxsw_sp_dpipe_table_adj_entry_prepare()
995 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_adj_entry_prepare()
996 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_adj_entry_prepare()
997 if (!match_value->value) in mlxsw_sp_dpipe_table_adj_entry_prepare()
1001 match_value = &match_values[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_HASH_INDEX]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
1003 match_value->match = match; in mlxsw_sp_dpipe_table_adj_entry_prepare()
1004 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_adj_entry_prepare()
1005 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_adj_entry_prepare()
1006 if (!match_value->value) in mlxsw_sp_dpipe_table_adj_entry_prepare()