Home
last modified time | relevance | path

Searched refs:list_size (Results 1 – 3 of 3) sorted by relevance

/system/nvram/client/
Dnvram_client.c153 uint32_t list_size = 0; in HandleGetSpaceList() local
154 nvram_result_t result = device->get_space_list(device, 0, NULL, &list_size); in HandleGetSpaceList()
159 uint32_t* space_index_list = calloc(list_size, sizeof(uint32_t)); in HandleGetSpaceList()
165 device->get_space_list(device, list_size, space_index_list, &list_size); in HandleGetSpaceList()
171 for (uint32_t i = 0; i < list_size; ++i) { in HandleGetSpaceList()
197 uint32_t list_size = 0; in HandleGetSpaceControls() local
199 device->get_space_controls(device, index, 0, NULL, &list_size); in HandleGetSpaceControls()
204 uint32_t* controls_list = calloc(list_size, sizeof(nvram_control_t)); in HandleGetSpaceControls()
209 result = device->get_space_controls(device, index, list_size, controls_list, in HandleGetSpaceControls()
210 &list_size); in HandleGetSpaceControls()
[all …]
/system/nvram/hal/
Dnvram_device_adapter.cpp104 uint32_t* list_size) { in device_get_space_list() argument
111 *list_size = std::min(get_info_response.space_list.size(), in device_get_space_list()
113 for (size_t i = 0; i < *list_size; ++i) { in device_get_space_list()
117 *list_size = get_info_response.space_list.size(); in device_get_space_list()
139 uint32_t* list_size) { in device_get_space_controls() argument
147 *list_size = std::min(get_space_info_response.controls.size(), in device_get_space_controls()
149 for (size_t i = 0; i < *list_size; ++i) { in device_get_space_controls()
153 *list_size = get_space_info_response.controls.size(); in device_get_space_controls()
177 uint32_t list_size, in device_create_space() argument
183 if (!create_space_request.controls.Resize(list_size)) { in device_create_space()
[all …]
/system/nvram/hal/tests/
Dscoped_nvram_device.cc109 uint32_t list_size = 0; in GetSpaceList() local
111 space_index_list->data(), &list_size); in GetSpaceList()
115 space_index_list->resize(list_size); in GetSpaceList()
134 uint32_t list_size = 0; in GetSpaceControls() local
136 device_, index, kMaxControls, control_list->data(), &list_size); in GetSpaceControls()
140 control_list->resize(list_size); in GetSpaceControls()