Lines Matching refs:device
101 static int HandleGetTotalSize(nvram_device_t* device, char* args[]) { in HandleGetTotalSize() argument
104 nvram_result_t result = device->get_total_size_in_bytes(device, &total_size); in HandleGetTotalSize()
113 static int HandleGetAvailableSize(nvram_device_t* device, char* args[]) { in HandleGetAvailableSize() argument
117 device->get_available_size_in_bytes(device, &available_size); in HandleGetAvailableSize()
126 static int HandleGetMaxSpaceSize(nvram_device_t* device, char* args[]) { in HandleGetMaxSpaceSize() argument
130 device->get_max_space_size_in_bytes(device, &max_space_size); in HandleGetMaxSpaceSize()
139 static int HandleGetMaxSpaces(nvram_device_t* device, char* args[]) { in HandleGetMaxSpaces() argument
142 nvram_result_t result = device->get_max_spaces(device, &max_spaces); in HandleGetMaxSpaces()
151 static int HandleGetSpaceList(nvram_device_t* device, char* args[]) { in HandleGetSpaceList() argument
154 nvram_result_t result = device->get_space_list(device, 0, NULL, &list_size); in HandleGetSpaceList()
165 device->get_space_list(device, list_size, space_index_list, &list_size); in HandleGetSpaceList()
183 static int HandleGetSpaceSize(nvram_device_t* device, char* args[]) { in HandleGetSpaceSize() argument
186 nvram_result_t result = device->get_space_size(device, index, &space_size); in HandleGetSpaceSize()
195 static int HandleGetSpaceControls(nvram_device_t* device, char* args[]) { in HandleGetSpaceControls() argument
199 device->get_space_controls(device, index, 0, NULL, &list_size); in HandleGetSpaceControls()
209 result = device->get_space_controls(device, index, list_size, controls_list, in HandleGetSpaceControls()
233 static int HandleIsSpaceReadLocked(nvram_device_t* device, char* args[]) { in HandleIsSpaceReadLocked() argument
238 device->is_space_locked(device, index, &read_locked, &write_locked); in HandleIsSpaceReadLocked()
247 static int HandleIsSpaceWriteLocked(nvram_device_t* device, char* args[]) { in HandleIsSpaceWriteLocked() argument
252 device->is_space_locked(device, index, &read_locked, &write_locked); in HandleIsSpaceWriteLocked()
261 static int HandleCreateSpace(nvram_device_t* device, char* args[]) { in HandleCreateSpace() argument
284 return device->create_space(device, index, size, controls_list, list_size, in HandleCreateSpace()
288 static int HandleDeleteSpace(nvram_device_t* device, char* args[]) { in HandleDeleteSpace() argument
290 return device->delete_space(device, index, (uint8_t*)args[3], in HandleDeleteSpace()
294 static int HandleDisableCreate(nvram_device_t* device, char* args[]) { in HandleDisableCreate() argument
296 return device->disable_create(device); in HandleDisableCreate()
299 static int HandleWriteSpace(nvram_device_t* device, char* args[]) { in HandleWriteSpace() argument
301 return device->write_space(device, index, (uint8_t*)args[1], strlen(args[1]), in HandleWriteSpace()
305 static int HandleReadSpace(nvram_device_t* device, char* args[]) { in HandleReadSpace() argument
308 nvram_result_t result = device->get_space_size(device, index, &size); in HandleReadSpace()
318 result = device->read_space(device, index, size, (uint8_t*)args[1], in HandleReadSpace()
331 static int HandleEnableWriteLock(nvram_device_t* device, char* args[]) { in HandleEnableWriteLock() argument
333 return device->enable_write_lock(device, index, (uint8_t*)args[1], in HandleEnableWriteLock()
337 static int HandleEnableReadLock(nvram_device_t* device, char* args[]) { in HandleEnableReadLock() argument
339 return device->enable_read_lock(device, index, (uint8_t*)args[1], in HandleEnableReadLock()