Lines Matching refs:shone

5190 	struct Scsi_Host *shone;  in mega_reorder_hosts()  local
5214 shone = shtwo = NULL; in mega_reorder_hosts()
5227 shone = shpnt; in mega_reorder_hosts()
5242 if (shone && shtwo) in mega_reorder_hosts()
5245 if (shone && shtwo) { in mega_reorder_hosts()
5246 mega_swap_hosts (shone, shtwo); in mega_reorder_hosts()
5254 mega_swap_hosts (struct Scsi_Host *shone, struct Scsi_Host *shtwo) in mega_swap_hosts() argument
5261 if (shtwo->next == shone) { in mega_swap_hosts()
5263 if (shtwo == scsi_hostlist && !shone->next) { in mega_swap_hosts()
5266 scsi_hostlist = shone; in mega_swap_hosts()
5267 shone->next = shtwo; in mega_swap_hosts()
5272 scsi_hostlist = shone; in mega_swap_hosts()
5273 shtwo->next = shone->next; in mega_swap_hosts()
5275 } else if (!shone->next) { in mega_swap_hosts()
5283 prevtoshtwo->next = shone; in mega_swap_hosts()
5284 shone->next = shtwo; in mega_swap_hosts()
5292 prevtoshtwo->next = shone; in mega_swap_hosts()
5293 shtwo->next = shone->next; in mega_swap_hosts()
5294 shone->next = shtwo; in mega_swap_hosts()
5297 } else if (shtwo == scsi_hostlist && !shone->next) { in mega_swap_hosts()
5302 while (prevtoshone->next != shone) in mega_swap_hosts()
5305 scsi_hostlist = shone; in mega_swap_hosts()
5306 shone->next = shtwo->next; in mega_swap_hosts()
5309 } else if (shtwo == scsi_hostlist && shone->next) { in mega_swap_hosts()
5313 while (prevtoshone->next != shone) in mega_swap_hosts()
5316 scsi_hostlist = shone; in mega_swap_hosts()
5319 shtwo->next = shone->next; in mega_swap_hosts()
5320 shone->next = save; in mega_swap_hosts()
5321 } else if (!shone->next) { in mega_swap_hosts()
5329 while (prevtoshone->next != shone) in mega_swap_hosts()
5332 prevtoshtwo->next = shone; in mega_swap_hosts()
5333 shone->next = shtwo->next; in mega_swap_hosts()
5344 while (prevtoshone->next != shone) in mega_swap_hosts()
5347 prevtoshtwo->next = shone; in mega_swap_hosts()
5348 save = shone->next; in mega_swap_hosts()
5349 shone->next = shtwo->next; in mega_swap_hosts()