Lines Matching refs:action_value

126 				       struct devlink_dpipe_value *action_value,  in mlxsw_sp_erif_entry_prepare()  argument
132 entry->action_values = action_value; in mlxsw_sp_erif_entry_prepare()
141 action_value->action = action; in mlxsw_sp_erif_entry_prepare()
142 action_value->value_size = sizeof(u32); in mlxsw_sp_erif_entry_prepare()
143 action_value->value = kmalloc(action_value->value_size, GFP_KERNEL); in mlxsw_sp_erif_entry_prepare()
144 if (!action_value->value) in mlxsw_sp_erif_entry_prepare()
158 u32 *action_value; in mlxsw_sp_erif_entry_get() local
170 action_value = entry->action_values->value; in mlxsw_sp_erif_entry_get()
171 *action_value = 1; in mlxsw_sp_erif_entry_get()
194 struct devlink_dpipe_value match_value, action_value; in mlxsw_sp_dpipe_table_erif_entries_dump() local
204 memset(&action_value, 0, sizeof(action_value)); in mlxsw_sp_dpipe_table_erif_entries_dump()
208 &action_value, &action); in mlxsw_sp_dpipe_table_erif_entries_dump()
402 struct devlink_dpipe_value *action_value, in mlxsw_sp_dpipe_table_host_entry_prepare() argument
412 entry->action_values = action_value; in mlxsw_sp_dpipe_table_host_entry_prepare()
444 action_value->action = action; in mlxsw_sp_dpipe_table_host_entry_prepare()
445 action_value->value_size = sizeof(u64); in mlxsw_sp_dpipe_table_host_entry_prepare()
446 action_value->value = kmalloc(action_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_host_entry_prepare()
447 if (!action_value->value) in mlxsw_sp_dpipe_table_host_entry_prepare()
621 struct devlink_dpipe_value action_value; in mlxsw_sp_dpipe_table_host_entries_dump() local
630 memset(&action_value, 0, sizeof(action_value)); in mlxsw_sp_dpipe_table_host_entries_dump()
634 matches, &action_value, in mlxsw_sp_dpipe_table_host_entries_dump()
971 { struct devlink_dpipe_value *action_value; in mlxsw_sp_dpipe_table_adj_entry_prepare() local
1010 action_value = &action_values[MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_DST_MAC]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
1012 action_value->action = action; in mlxsw_sp_dpipe_table_adj_entry_prepare()
1013 action_value->value_size = sizeof(u64); in mlxsw_sp_dpipe_table_adj_entry_prepare()
1014 action_value->value = kmalloc(action_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_adj_entry_prepare()
1015 if (!action_value->value) in mlxsw_sp_dpipe_table_adj_entry_prepare()
1019 action_value = &action_values[MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_ERIF_PORT]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
1021 action_value->action = action; in mlxsw_sp_dpipe_table_adj_entry_prepare()
1022 action_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_adj_entry_prepare()
1023 action_value->value = kmalloc(action_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_adj_entry_prepare()
1024 if (!action_value->value) in mlxsw_sp_dpipe_table_adj_entry_prepare()