Lines Matching full:ec

64 	struct expansion_card	*ec;  member
83 /* Prototype: pata_icside_irqenable_arcin_v5 (struct expansion_card *ec, int irqnr)
86 static void pata_icside_irqenable_arcin_v5 (struct expansion_card *ec, int irqnr) in pata_icside_irqenable_arcin_v5() argument
88 struct pata_icside_state *state = ec->irq_data; in pata_icside_irqenable_arcin_v5()
93 /* Prototype: pata_icside_irqdisable_arcin_v5 (struct expansion_card *ec, int irqnr)
96 static void pata_icside_irqdisable_arcin_v5 (struct expansion_card *ec, int irqnr) in pata_icside_irqdisable_arcin_v5() argument
98 struct pata_icside_state *state = ec->irq_data; in pata_icside_irqdisable_arcin_v5()
110 /* Prototype: pata_icside_irqenable_arcin_v6 (struct expansion_card *ec, int irqnr)
113 static void pata_icside_irqenable_arcin_v6 (struct expansion_card *ec, int irqnr) in pata_icside_irqenable_arcin_v6() argument
115 struct pata_icside_state *state = ec->irq_data; in pata_icside_irqenable_arcin_v6()
124 /* Prototype: pata_icside_irqdisable_arcin_v6 (struct expansion_card *ec, int irqnr)
127 static void pata_icside_irqdisable_arcin_v6 (struct expansion_card *ec, int irqnr) in pata_icside_irqdisable_arcin_v6() argument
129 struct pata_icside_state *state = ec->irq_data; in pata_icside_irqdisable_arcin_v6()
135 /* Prototype: pata_icside_irqprobe(struct expansion_card *ec)
138 static int pata_icside_irqpending_arcin_v6(struct expansion_card *ec) in pata_icside_irqpending_arcin_v6() argument
140 struct pata_icside_state *state = ec->irq_data; in pata_icside_irqpending_arcin_v6()
284 struct expansion_card *ec = info->ec; in icside_dma_init() local
292 if (ec->dma != NO_DMA && !request_dma(ec->dma, DRV_NAME)) { in icside_dma_init()
293 state->dma = ec->dma; in icside_dma_init()
379 base = ecardm_iomap(info->ec, ECARD_RES_MEMC, 0, 0); in pata_icside_register_v5()
392 info->raw_base = ecard_resource_start(info->ec, ECARD_RES_MEMC); in pata_icside_register_v5()
400 struct expansion_card *ec = info->ec; in pata_icside_register_v6() local
404 ioc_base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); in pata_icside_register_v6()
410 if (ecard_resource_flags(ec, ECARD_RES_EASI)) { in pata_icside_register_v6()
411 easi_base = ecardm_iomap(ec, ECARD_RES_EASI, 0, 0); in pata_icside_register_v6()
434 info->raw_base = ecard_resource_start(ec, ECARD_RES_EASI); in pata_icside_register_v6()
435 info->raw_ioc_base = ecard_resource_start(ec, ECARD_RES_IOCFAST); in pata_icside_register_v6()
442 struct expansion_card *ec = info->ec; in pata_icside_add_ports() local
447 ec->irqaddr = info->irqaddr; in pata_icside_add_ports()
448 ec->irqmask = info->irqmask; in pata_icside_add_ports()
451 ecard_setirq(ec, info->irqops, info->state); in pata_icside_add_ports()
456 ec->ops->irqdisable(ec, ec->irq); in pata_icside_add_ports()
458 host = ata_host_alloc(&ec->dev, info->nr_ports); in pata_icside_add_ports()
476 return ata_host_activate(host, ec->irq, ata_bmdma_interrupt, 0, in pata_icside_add_ports()
480 static int pata_icside_probe(struct expansion_card *ec, in pata_icside_probe() argument
488 ret = ecard_request_resources(ec); in pata_icside_probe()
492 state = devm_kzalloc(&ec->dev, sizeof(*state), GFP_KERNEL); in pata_icside_probe()
501 idmem = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); in pata_icside_probe()
509 ecardm_iounmap(ec, idmem); in pata_icside_probe()
516 info.ec = ec; in pata_icside_probe()
520 dev_warn(&ec->dev, "A3IN unsupported\n"); in pata_icside_probe()
525 dev_warn(&ec->dev, "A3USER unsupported\n"); in pata_icside_probe()
538 dev_warn(&ec->dev, "unknown interface type\n"); in pata_icside_probe()
550 ecard_release_resources(ec); in pata_icside_probe()
555 static void pata_icside_shutdown(struct expansion_card *ec) in pata_icside_shutdown() argument
557 struct ata_host *host = ecard_get_drvdata(ec); in pata_icside_shutdown()
566 ec->ops->irqdisable(ec, ec->irq); in pata_icside_shutdown()
581 static void pata_icside_remove(struct expansion_card *ec) in pata_icside_remove() argument
583 struct ata_host *host = ecard_get_drvdata(ec); in pata_icside_remove()
588 pata_icside_shutdown(ec); in pata_icside_remove()
597 ecard_release_resources(ec); in pata_icside_remove()