Lines Matching refs:shone
3737 struct Scsi_Host *shone; local
3761 shone = shtwo = NULL;
3774 shone = shpnt;
3789 if (shone && shtwo)
3792 if (shone && shtwo) {
3793 mega_swap_hosts (shone, shtwo);
3799 static void mega_swap_hosts (struct Scsi_Host *shone, struct Scsi_Host *shtwo) argument
3806 if (shtwo->next == shone) {
3808 if (shtwo == scsi_hostlist && shone->next == NULL) {
3811 scsi_hostlist = shone;
3812 shone->next = shtwo;
3817 scsi_hostlist = shone;
3818 shtwo->next = shone->next;
3820 } else if (shone->next == NULL) {
3828 prevtoshtwo->next = shone;
3829 shone->next = shtwo;
3837 prevtoshtwo->next = shone;
3838 shtwo->next = shone->next;
3839 shone->next = shtwo;
3842 } else if (shtwo == scsi_hostlist && shone->next == NULL) {
3847 while (prevtoshone->next != shone)
3850 scsi_hostlist = shone;
3851 shone->next = shtwo->next;
3854 } else if (shtwo == scsi_hostlist && shone->next != NULL) {
3858 while (prevtoshone->next != shone)
3861 scsi_hostlist = shone;
3864 shtwo->next = shone->next;
3865 shone->next = save;
3866 } else if (shone->next == NULL) {
3874 while (prevtoshone->next != shone)
3877 prevtoshtwo->next = shone;
3878 shone->next = shtwo->next;
3889 while (prevtoshone->next != shone)
3892 prevtoshtwo->next = shone;
3893 save = shone->next;
3894 shone->next = shtwo->next;