Lines Matching defs:list

109 	plist_t *list;
120 free_list(plist_t *list)
124 if (list == NULL)
126 tmp = list->first;
136 * This routine gets the list of scsi controllers present
139 populate_controllers_list(plist_t *cntrl_list, cfga_list_data_t *list, int num)
145 if (cntrl_list == NULL || list == NULL) {
157 if (strcmp(list[i].ap_type, SCSI_SLOT) != 0) {
166 (void) memcpy(temp, &list[i], sizeof (cfga_list_data_t));
176 /* append to the list */
229 * This routine searches the controllers list to find the mapping based
234 find_scsi_controller(char *devfs_path, plist_t *list, char *ap_id)
246 tmp = list->first;
277 plist_t list;
288 ap_list_err = populate_controllers_list(&list, cfgalist,
291 free_list(&list);
296 if (list.num_nodes <= 0) {
301 if ((rc = find_scsi_controller(devfs_path, &list,
304 free_list(&list);
311 free_list(&list);
413 plist_t *list, int numlist)
422 /* for each controller in the list, find if disk/fru is present */
423 curr = list->first;
487 /* for each controller in the list, find if disk/fru is present */
544 * 1. traverse thru list of controllers and find
546 * 2. go thru list of devices under controller and compare if the target is same
566 if (scsi_info->list == NULL) {
572 curr = scsi_info->list->first;
800 plist_t *list, int num_list, boolean_t compare_cfgadm)
822 scsi_data->list = list;
843 plist_t list;
857 /* get list of all controllers in the system */
858 ap_list_err = populate_controllers_list(&list, cfgalist,
861 free_list(&list);
869 if (list.num_nodes <= 0) {
870 free_list(&list);
880 (void) dyn_probe_for_scsi_frus(frup, cfgalist, &list, numlist);
881 rc = probe_scsi_in_libdevinfo(frup, cfgalist, &list,
883 free_list(&list);