Lines Matching defs:host
424 static inline int ide_lock_host(struct ide_host *host, ide_hwif_t *hwif)
428 if (host->host_flags & IDE_HFLAG_SERIALIZE) {
429 rc = test_and_set_bit_lock(IDE_HOST_BUSY, &host->host_busy);
431 if (host->get_lock)
432 host->get_lock(ide_intr, hwif);
438 static inline void ide_unlock_host(struct ide_host *host)
440 if (host->host_flags & IDE_HFLAG_SERIALIZE) {
441 if (host->release_lock)
442 host->release_lock();
443 clear_bit_unlock(IDE_HOST_BUSY, &host->host_busy);
463 struct ide_host *host = hwif->host;
474 if (ide_lock_host(host, hwif))
484 prev_port = hwif->host->cur_port;
491 if ((hwif->host->host_flags & IDE_HFLAG_SERIALIZE) &&
506 hwif->host->cur_port = hwif;
547 ide_unlock_host(host);
556 ide_unlock_host(host);
697 ide_unlock_host(hwif->host);
777 struct ide_host *host = hwif->host;
786 if (host->host_flags & IDE_HFLAG_SERIALIZE) {
787 if (hwif != host->cur_port)
812 if ((host->irq_flags & IRQF_SHARED) == 0) {
875 ide_unlock_host(hwif->host);