Lines Matching refs:controls_list
204 uint32_t* controls_list = calloc(list_size, sizeof(nvram_control_t)); in HandleGetSpaceControls() local
205 if (!controls_list) { in HandleGetSpaceControls()
209 result = device->get_space_controls(device, index, list_size, controls_list, in HandleGetSpaceControls()
212 free(controls_list); in HandleGetSpaceControls()
220 const char* name = ControlToString(controls_list[i]); in HandleGetSpaceControls()
224 printf("<unknown_control_%" PRIu32 ">", controls_list[i]); in HandleGetSpaceControls()
229 free(controls_list); in HandleGetSpaceControls()
265 nvram_control_t* controls_list = NULL; in HandleCreateSpace() local
270 realloc(controls_list, sizeof(nvram_control_t) * list_size); in HandleCreateSpace()
272 controls_list = new_controls_list; in HandleCreateSpace()
274 free(controls_list); in HandleCreateSpace()
278 if (StringToControl(strsep(&tail, ","), &(controls_list[list_size - 1]))) { in HandleCreateSpace()
279 free(controls_list); in HandleCreateSpace()
284 return device->create_space(device, index, size, controls_list, list_size, in HandleCreateSpace()