Lines Matching refs:host_set

1128 	spin_lock_irqsave(&ap->host_set->lock, flags);  in ata_dev_identify()
1130 spin_unlock_irqrestore(&ap->host_set->lock, flags); in ata_dev_identify()
1137 spin_lock_irqsave(&ap->host_set->lock, flags); in ata_dev_identify()
1139 spin_unlock_irqrestore(&ap->host_set->lock, flags); in ata_dev_identify()
1900 spin_lock_irqsave(&ap->host_set->lock, flags); in ata_bus_edd()
1902 spin_unlock_irqrestore(&ap->host_set->lock, flags); in ata_bus_edd()
2272 spin_lock_irqsave(&ap->host_set->lock, flags); in ata_dev_set_xfermode()
2274 spin_unlock_irqrestore(&ap->host_set->lock, flags); in ata_dev_set_xfermode()
2320 spin_lock_irqsave(&ap->host_set->lock, flags); in ata_dev_reread_id()
2322 spin_unlock_irqrestore(&ap->host_set->lock, flags); in ata_dev_reread_id()
2376 spin_lock_irqsave(&ap->host_set->lock, flags); in ata_dev_init_params()
2378 spin_unlock_irqrestore(&ap->host_set->lock, flags); in ata_dev_init_params()
2422 dma_unmap_sg(ap->host_set->dev, sg, qc->n_elem, dir); in ata_sg_clean()
2433 dma_unmap_single(ap->host_set->dev, in ata_sg_clean()
2639 dma_address = dma_map_single(ap->host_set->dev, qc->buf_virt, in ata_sg_setup_one()
2727 n_elem = dma_map_sg(ap->host_set->dev, sg, pre_n_elem, dir); in ata_sg_setup()
2756 spin_lock_irqsave(&ap->host_set->lock, flags); in ata_poll_qc_complete()
2760 spin_unlock_irqrestore(&ap->host_set->lock, flags); in ata_poll_qc_complete()
3298 struct ata_host_set *host_set = ap->host_set; in ata_qc_timeout() local
3304 spin_lock_irqsave(&host_set->lock, flags); in ata_qc_timeout()
3340 spin_unlock_irqrestore(&host_set->lock, flags); in ata_qc_timeout()
3989 struct ata_host_set *host_set = dev_instance; in ata_interrupt() local
3995 spin_lock_irqsave(&host_set->lock, flags); in ata_interrupt()
3997 for (i = 0; i < host_set->n_ports; i++) { in ata_interrupt()
4000 ap = host_set->ports[i]; in ata_interrupt()
4012 spin_unlock_irqrestore(&host_set->lock, flags); in ata_interrupt()
4065 spin_lock_irqsave(&ap->host_set->lock, flags); in atapi_packet_task()
4070 spin_unlock_irqrestore(&ap->host_set->lock, flags); in atapi_packet_task()
4103 struct device *dev = ap->host_set->dev; in ata_port_start()
4136 struct device *dev = ap->host_set->dev; in ata_port_stop()
4142 void ata_host_stop (struct ata_host_set *host_set) in ata_host_stop() argument
4144 if (host_set->mmio_base) in ata_host_stop()
4145 iounmap(host_set->mmio_base); in ata_host_stop()
4186 struct ata_host_set *host_set, in ata_host_init() argument
4202 ap->host_set = host_set; in ata_host_init()
4245 struct ata_host_set *host_set, in ata_host_add() argument
4259 ata_host_init(ap, host, host_set, ent, port_no); in ata_host_add()
4295 struct ata_host_set *host_set; in ata_device_add() local
4299 host_set = kzalloc(sizeof(struct ata_host_set) + in ata_device_add()
4301 if (!host_set) in ata_device_add()
4303 spin_lock_init(&host_set->lock); in ata_device_add()
4305 host_set->dev = dev; in ata_device_add()
4306 host_set->n_ports = ent->n_ports; in ata_device_add()
4307 host_set->irq = ent->irq; in ata_device_add()
4308 host_set->mmio_base = ent->mmio_base; in ata_device_add()
4309 host_set->private_data = ent->private_data; in ata_device_add()
4310 host_set->ops = ent->port_ops; in ata_device_add()
4317 ap = ata_host_add(ent, host_set, i); in ata_device_add()
4321 host_set->ports[i] = ap; in ata_device_add()
4338 host_set->ops->irq_clear(ap); in ata_device_add()
4347 DRV_NAME, host_set)) in ata_device_add()
4356 ap = host_set->ports[i]; in ata_device_add()
4372 dev_set_drvdata(dev, host_set); in ata_device_add()
4379 ata_host_remove(host_set->ports[i], 1); in ata_device_add()
4383 kfree(host_set); in ata_device_add()
4399 void ata_host_set_remove(struct ata_host_set *host_set) in ata_host_set_remove() argument
4410 ap = host_set->ports[0]; in ata_host_set_remove()
4415 free_irq(host_set->irq, host_set); in ata_host_set_remove()
4417 for (i = 0; i < host_set->n_ports; i++) { in ata_host_set_remove()
4418 ap = host_set->ports[i]; in ata_host_set_remove()
4430 if (host_set->ops->host_stop) in ata_host_set_remove()
4431 host_set->ops->host_stop(host_set); in ata_host_set_remove()
4433 kfree(host_set); in ata_host_set_remove()
4571 void ata_pci_host_stop (struct ata_host_set *host_set) in ata_pci_host_stop() argument
4573 struct pci_dev *pdev = to_pci_dev(host_set->dev); in ata_pci_host_stop()
4575 pci_iounmap(pdev, host_set->mmio_base); in ata_pci_host_stop()
4831 struct ata_host_set *host_set = dev_get_drvdata(dev); in ata_pci_remove_one() local
4833 ata_host_set_remove(host_set); in ata_pci_remove_one()