host.h (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) | host.h (c59053a23d586675c25d789a7494adfdc02fba57) |
---|---|
1/* 2 * This file is provided under a dual BSD/GPLv2 license. When using or 3 * redistributing this file, you may do so under either license. 4 * 5 * GPL LICENSE SUMMARY 6 * 7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 8 * --- 297 unchanged lines hidden (view full) --- 306} 307 308static inline struct Scsi_Host *to_shost(struct isci_host *ihost) 309{ 310 return ihost->sas_ha.core.shost; 311} 312 313#define for_each_isci_host(id, ihost, pdev) \ | 1/* 2 * This file is provided under a dual BSD/GPLv2 license. When using or 3 * redistributing this file, you may do so under either license. 4 * 5 * GPL LICENSE SUMMARY 6 * 7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 8 * --- 297 unchanged lines hidden (view full) --- 306} 307 308static inline struct Scsi_Host *to_shost(struct isci_host *ihost) 309{ 310 return ihost->sas_ha.core.shost; 311} 312 313#define for_each_isci_host(id, ihost, pdev) \ |
314 for (id = 0, ihost = to_pci_info(pdev)->hosts[id]; \ 315 id < ARRAY_SIZE(to_pci_info(pdev)->hosts) && ihost; \ 316 ihost = to_pci_info(pdev)->hosts[++id]) | 314 for (id = 0; id < SCI_MAX_CONTROLLERS && \ 315 (ihost = to_pci_info(pdev)->hosts[id]); id++) |
317 318static inline void wait_for_start(struct isci_host *ihost) 319{ 320 wait_event(ihost->eventq, !test_bit(IHOST_START_PENDING, &ihost->flags)); 321} 322 323static inline void wait_for_stop(struct isci_host *ihost) 324{ --- 194 unchanged lines hidden --- | 316 317static inline void wait_for_start(struct isci_host *ihost) 318{ 319 wait_event(ihost->eventq, !test_bit(IHOST_START_PENDING, &ihost->flags)); 320} 321 322static inline void wait_for_stop(struct isci_host *ihost) 323{ --- 194 unchanged lines hidden --- |