@@ -43,7 +43,7 @@ static int ras_cmd_remove_device(struct ras_core_context *ras_core)
4343}
4444
4545static int ras_get_block_ecc_info (struct ras_core_context * ras_core ,
46- struct ras_cmd_ioctl * cmd , void * data )
46+ struct ras_cmd_ctx * cmd , void * data )
4747{
4848 struct ras_cmd_block_ecc_info_req * input_data =
4949 (struct ras_cmd_block_ecc_info_req * )cmd -> input_buff_raw ;
@@ -119,7 +119,7 @@ static int ras_cmd_get_group_bad_pages(struct ras_core_context *ras_core,
119119}
120120
121121static int ras_cmd_get_bad_pages (struct ras_core_context * ras_core ,
122- struct ras_cmd_ioctl * cmd , void * data )
122+ struct ras_cmd_ctx * cmd , void * data )
123123{
124124 struct ras_cmd_bad_pages_info_req * input_data =
125125 (struct ras_cmd_bad_pages_info_req * )cmd -> input_buff_raw ;
@@ -141,7 +141,7 @@ static int ras_cmd_get_bad_pages(struct ras_core_context *ras_core,
141141}
142142
143143static int ras_cmd_clear_bad_page_info (struct ras_core_context * ras_core ,
144- struct ras_cmd_ioctl * cmd , void * data )
144+ struct ras_cmd_ctx * cmd , void * data )
145145{
146146 if (cmd -> input_size != sizeof (struct ras_cmd_dev_handle ))
147147 return RAS_CMD__ERROR_INVALID_INPUT_SIZE ;
@@ -156,7 +156,7 @@ static int ras_cmd_clear_bad_page_info(struct ras_core_context *ras_core,
156156}
157157
158158static int ras_cmd_reset_all_error_counts (struct ras_core_context * ras_core ,
159- struct ras_cmd_ioctl * cmd , void * data )
159+ struct ras_cmd_ctx * cmd , void * data )
160160{
161161 if (cmd -> input_size != sizeof (struct ras_cmd_dev_handle ))
162162 return RAS_CMD__ERROR_INVALID_INPUT_SIZE ;
@@ -171,7 +171,7 @@ static int ras_cmd_reset_all_error_counts(struct ras_core_context *ras_core,
171171}
172172
173173static int ras_cmd_get_cper_snapshot (struct ras_core_context * ras_core ,
174- struct ras_cmd_ioctl * cmd , void * data )
174+ struct ras_cmd_ctx * cmd , void * data )
175175{
176176 struct ras_cmd_cper_snapshot_rsp * output_data =
177177 (struct ras_cmd_cper_snapshot_rsp * )cmd -> output_buff_raw ;
@@ -193,7 +193,7 @@ static int ras_cmd_get_cper_snapshot(struct ras_core_context *ras_core,
193193}
194194
195195static int ras_cmd_get_cper_records (struct ras_core_context * ras_core ,
196- struct ras_cmd_ioctl * cmd , void * data )
196+ struct ras_cmd_ctx * cmd , void * data )
197197{
198198 struct ras_cmd_cper_record_req * req =
199199 (struct ras_cmd_cper_record_req * )cmd -> input_buff_raw ;
@@ -253,7 +253,7 @@ static int ras_cmd_get_cper_records(struct ras_core_context *ras_core,
253253}
254254
255255static int ras_cmd_get_batch_trace_snapshot (struct ras_core_context * ras_core ,
256- struct ras_cmd_ioctl * cmd , void * data )
256+ struct ras_cmd_ctx * cmd , void * data )
257257{
258258 struct ras_cmd_batch_trace_snapshot_rsp * rsp =
259259 (struct ras_cmd_batch_trace_snapshot_rsp * )cmd -> output_buff_raw ;
@@ -275,7 +275,7 @@ static int ras_cmd_get_batch_trace_snapshot(struct ras_core_context *ras_core,
275275}
276276
277277static int ras_cmd_get_batch_trace_records (struct ras_core_context * ras_core ,
278- struct ras_cmd_ioctl * cmd , void * data )
278+ struct ras_cmd_ctx * cmd , void * data )
279279{
280280 struct ras_cmd_batch_trace_record_req * input_data =
281281 (struct ras_cmd_batch_trace_record_req * )cmd -> input_buff_raw ;
@@ -400,7 +400,7 @@ static enum ras_ta_error_type __get_ras_ta_err_type(enum ras_ecc_err_type error)
400400}
401401
402402static int ras_cmd_inject_error (struct ras_core_context * ras_core ,
403- struct ras_cmd_ioctl * cmd , void * data )
403+ struct ras_cmd_ctx * cmd , void * data )
404404{
405405 struct ras_cmd_inject_error_req * req =
406406 (struct ras_cmd_inject_error_req * )cmd -> input_buff_raw ;
@@ -441,7 +441,7 @@ static struct ras_cmd_func_map ras_cmd_maps[] = {
441441};
442442
443443int rascore_handle_cmd (struct ras_core_context * ras_core ,
444- struct ras_cmd_ioctl * cmd , void * data )
444+ struct ras_cmd_ctx * cmd , void * data )
445445{
446446 struct ras_cmd_func_map * ras_cmd = NULL ;
447447 int i ;
0 commit comments