Lines Matching refs:list
9 * notice, this list of conditions and the following disclaimer.
11 * notice, this list of conditions and the following disclaimer in the
163 struct mfi_pd_list *list;
203 if (mfi_pd_get_list(fd, &list, NULL) < 0) {
205 warn("Failed to fetch drive list");
209 for (i = 0; i < list->count; i++) {
210 if (list->addr[i].scsi_dev_type != 0)
214 list->addr[i].encl_device_id == 0xffff) ||
215 list->addr[i].encl_index == encl) &&
216 list->addr[i].slot_number == slot) {
217 *device_id = list->addr[i].device_id;
218 free(list);
222 free(list);
253 struct mfi_pd_list *list;
257 * Keep fetching the list in a loop until we have a large enough
258 * buffer to hold the entire list.
260 list = NULL;
263 list = reallocf(list, list_size);
264 if (list == NULL)
266 if (mfi_dcmd_command(fd, MFI_DCMD_PD_GET_LIST, list, list_size, NULL,
268 free(list);
272 if (list->size > list_size) {
273 list_size = list->size;
277 *listp = list;