Lines Matching refs:host_set

124 static void nv_host_stop (struct ata_host_set *host_set);
126 static void nv_disable_hotplug(struct ata_host_set *host_set);
127 static void nv_check_hotplug(struct ata_host_set *host_set);
129 static void nv_disable_hotplug_ck804(struct ata_host_set *host_set);
130 static void nv_check_hotplug_ck804(struct ata_host_set *host_set);
178 void (*disable_hotplug)(struct ata_host_set *host_set);
179 void (*check_hotplug)(struct ata_host_set *host_set);
294 struct ata_host_set *host_set = dev_instance; in nv_interrupt() local
295 struct nv_host *host = host_set->private_data; in nv_interrupt()
300 spin_lock_irqsave(&host_set->lock, flags); in nv_interrupt()
302 for (i = 0; i < host_set->n_ports; i++) { in nv_interrupt()
305 ap = host_set->ports[i]; in nv_interrupt()
318 host->host_desc->check_hotplug(host_set); in nv_interrupt()
320 spin_unlock_irqrestore(&host_set->lock, flags); in nv_interrupt()
327 struct ata_host_set *host_set = ap->host_set; in nv_scr_read() local
328 struct nv_host *host = host_set->private_data; in nv_scr_read()
341 struct ata_host_set *host_set = ap->host_set; in nv_scr_write() local
342 struct nv_host *host = host_set->private_data; in nv_scr_write()
353 static void nv_host_stop (struct ata_host_set *host_set) in nv_host_stop() argument
355 struct nv_host *host = host_set->private_data; in nv_host_stop()
356 struct pci_dev *pdev = to_pci_dev(host_set->dev); in nv_host_stop()
360 host->host_desc->disable_hotplug(host_set); in nv_host_stop()
364 if (host_set->mmio_base) in nv_host_stop()
365 pci_iounmap(pdev, host_set->mmio_base); in nv_host_stop()
483 static void nv_disable_hotplug(struct ata_host_set *host_set) in nv_disable_hotplug() argument
487 intr_mask = inb(host_set->ports[0]->ioaddr.scr_addr + NV_INT_ENABLE); in nv_disable_hotplug()
491 outb(intr_mask, host_set->ports[0]->ioaddr.scr_addr + NV_INT_ENABLE); in nv_disable_hotplug()
494 static void nv_check_hotplug(struct ata_host_set *host_set) in nv_check_hotplug() argument
498 intr_status = inb(host_set->ports[0]->ioaddr.scr_addr + NV_INT_STATUS); in nv_check_hotplug()
501 outb(0xff, host_set->ports[0]->ioaddr.scr_addr + NV_INT_STATUS); in nv_check_hotplug()
540 static void nv_disable_hotplug_ck804(struct ata_host_set *host_set) in nv_disable_hotplug_ck804() argument
542 struct pci_dev *pdev = to_pci_dev(host_set->dev); in nv_disable_hotplug_ck804()
546 intr_mask = readb(host_set->mmio_base + NV_INT_ENABLE_CK804); in nv_disable_hotplug_ck804()
550 writeb(intr_mask, host_set->mmio_base + NV_INT_ENABLE_CK804); in nv_disable_hotplug_ck804()
557 static void nv_check_hotplug_ck804(struct ata_host_set *host_set) in nv_check_hotplug_ck804() argument
561 intr_status = readb(host_set->mmio_base + NV_INT_STATUS_CK804); in nv_check_hotplug_ck804()
564 writeb(0xff, host_set->mmio_base + NV_INT_STATUS_CK804); in nv_check_hotplug_ck804()