Lines Matching refs:scsi_group
660 struct scsi_id_group *scsi_group = ud->driver_data; in sbp2_disconnect() local
666 list_for_each_safe (lh, next, &scsi_group->scsi_id_list) { in sbp2_disconnect()
674 kfree(scsi_group); in sbp2_disconnect()
680 struct scsi_id_group *scsi_group = ud->driver_data; in sbp2_update() local
688 list_for_each_safe (lh, next, &scsi_group->scsi_id_list) { in sbp2_update()
721 if (list_empty(&scsi_group->scsi_id_list)) { in sbp2_update()
723 kfree(scsi_group); in sbp2_update()
800 struct scsi_id_group *scsi_group; in sbp2_start_ud() local
805 scsi_group = kmalloc(sizeof(*scsi_group), GFP_KERNEL); in sbp2_start_ud()
806 if (!scsi_group) { in sbp2_start_ud()
811 INIT_LIST_HEAD(&scsi_group->scsi_id_list); in sbp2_start_ud()
812 ud->driver_data = scsi_group; in sbp2_start_ud()
813 sbp2_parse_unit_directory(scsi_group, ud); in sbp2_start_ud()
815 list_for_each_safe (lh, next, &scsi_group->scsi_id_list) { in sbp2_start_ud()
831 if (list_empty(&scsi_group->scsi_id_list)) { in sbp2_start_ud()
832 kfree(scsi_group); in sbp2_start_ud()
1558 static void sbp2_parse_unit_directory(struct scsi_id_group *scsi_group, in sbp2_parse_unit_directory() argument
1631 list_add_tail(&scsi_id->list, &scsi_group->scsi_id_list); in sbp2_parse_unit_directory()
1689 sbp2_parse_unit_directory(scsi_group, ud->parent); in sbp2_parse_unit_directory()
1693 if (list_empty(&scsi_group->scsi_id_list)) { in sbp2_parse_unit_directory()
1702 list_add_tail(&scsi_id->list, &scsi_group->scsi_id_list); in sbp2_parse_unit_directory()
1706 list_for_each (lh, &scsi_group->scsi_id_list) { in sbp2_parse_unit_directory()