Lines Matching refs:host

825 static void ide_host_enable_irqs(struct ide_host *host)  in ide_host_enable_irqs()  argument
830 ide_host_for_each_port(i, hwif, host) { in ide_host_enable_irqs()
849 struct ide_host *host = hwif->host; in init_irq() local
850 irq_handler_t irq_handler = host->irq_handler; in init_irq()
851 int sa = host->irq_flags; in init_irq()
856 if (!host->get_lock) in init_irq()
868 if (hwif->host->host_flags & IDE_HFLAG_SERIALIZE) in init_irq()
1095 hwif->host->host_flags |= IDE_HFLAG_SERIALIZE; in ide_init_port()
1284 struct ide_host *host; in ide_host_alloc() local
1289 host = kzalloc_node(sizeof(*host), GFP_KERNEL, node); in ide_host_alloc()
1290 if (host == NULL) in ide_host_alloc()
1320 hwif->host = host; in ide_host_alloc()
1322 host->ports[i] = hwif; in ide_host_alloc()
1323 host->n_ports++; in ide_host_alloc()
1326 if (host->n_ports == 0) { in ide_host_alloc()
1327 kfree(host); in ide_host_alloc()
1331 host->dev[0] = dev; in ide_host_alloc()
1334 host->init_chipset = d->init_chipset; in ide_host_alloc()
1335 host->get_lock = d->get_lock; in ide_host_alloc()
1336 host->release_lock = d->release_lock; in ide_host_alloc()
1337 host->host_flags = d->host_flags; in ide_host_alloc()
1338 host->irq_flags = d->irq_flags; in ide_host_alloc()
1341 return host; in ide_host_alloc()
1354 struct ide_host *host = hwif->host; in ide_disable_port() local
1360 if (host->ports[i] == hwif) { in ide_disable_port()
1361 host->ports[i] = NULL; in ide_disable_port()
1362 host->n_ports--; in ide_disable_port()
1369 int ide_host_register(struct ide_host *host, const struct ide_port_info *d, in ide_host_register() argument
1375 ide_host_for_each_port(i, hwif, host) { in ide_host_register()
1399 ide_host_for_each_port(i, hwif, host) { in ide_host_register()
1420 ide_host_enable_irqs(host); in ide_host_register()
1422 ide_host_for_each_port(i, hwif, host) { in ide_host_register()
1448 ide_host_for_each_port(i, hwif, host) { in ide_host_register()
1468 struct ide_host *host; in ide_host_add() local
1471 host = ide_host_alloc(d, hws, n_ports); in ide_host_add()
1472 if (host == NULL) in ide_host_add()
1475 rc = ide_host_register(host, d, hws); in ide_host_add()
1477 ide_host_free(host); in ide_host_add()
1482 *hostp = host; in ide_host_add()
1537 if (!hwif->host->get_lock) in ide_unregister()
1556 void ide_host_free(struct ide_host *host) in ide_host_free() argument
1561 ide_host_for_each_port(i, hwif, host) { in ide_host_free()
1566 kfree(host); in ide_host_free()
1570 void ide_host_remove(struct ide_host *host) in ide_host_remove() argument
1575 ide_host_for_each_port(i, hwif, host) { in ide_host_remove()
1580 ide_host_free(host); in ide_host_remove()