Lines Matching refs:ec
64 struct expansion_card *ec; member
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()
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()
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()
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()
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()
381 base = ecardm_iomap(info->ec, ECARD_RES_MEMC, 0, 0); in pata_icside_register_v5()
394 info->raw_base = ecard_resource_start(info->ec, ECARD_RES_MEMC); in pata_icside_register_v5()
402 struct expansion_card *ec = info->ec; in pata_icside_register_v6() local
406 ioc_base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); in pata_icside_register_v6()
412 if (ecard_resource_flags(ec, ECARD_RES_EASI)) { in pata_icside_register_v6()
413 easi_base = ecardm_iomap(ec, ECARD_RES_EASI, 0, 0); in pata_icside_register_v6()
436 info->raw_base = ecard_resource_start(ec, ECARD_RES_EASI); in pata_icside_register_v6()
437 info->raw_ioc_base = ecard_resource_start(ec, ECARD_RES_IOCFAST); in pata_icside_register_v6()
444 struct expansion_card *ec = info->ec; in pata_icside_add_ports() local
449 ec->irqaddr = info->irqaddr; in pata_icside_add_ports()
450 ec->irqmask = info->irqmask; in pata_icside_add_ports()
453 ecard_setirq(ec, info->irqops, info->state); in pata_icside_add_ports()
458 ec->ops->irqdisable(ec, ec->irq); in pata_icside_add_ports()
460 host = ata_host_alloc(&ec->dev, info->nr_ports); in pata_icside_add_ports()
478 return ata_host_activate(host, ec->irq, ata_bmdma_interrupt, 0, in pata_icside_add_ports()
482 static int pata_icside_probe(struct expansion_card *ec, in pata_icside_probe() argument
490 ret = ecard_request_resources(ec); in pata_icside_probe()
494 state = devm_kzalloc(&ec->dev, sizeof(*state), GFP_KERNEL); in pata_icside_probe()
503 idmem = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); in pata_icside_probe()
511 ecardm_iounmap(ec, idmem); in pata_icside_probe()
518 info.ec = ec; in pata_icside_probe()
522 dev_warn(&ec->dev, "A3IN unsupported\n"); in pata_icside_probe()
527 dev_warn(&ec->dev, "A3USER unsupported\n"); in pata_icside_probe()
540 dev_warn(&ec->dev, "unknown interface type\n"); in pata_icside_probe()
552 ecard_release_resources(ec); in pata_icside_probe()
557 static void pata_icside_shutdown(struct expansion_card *ec) in pata_icside_shutdown() argument
559 struct ata_host *host = ecard_get_drvdata(ec); in pata_icside_shutdown()
568 ec->ops->irqdisable(ec, ec->irq); in pata_icside_shutdown()
583 static void pata_icside_remove(struct expansion_card *ec) in pata_icside_remove() argument
585 struct ata_host *host = ecard_get_drvdata(ec); in pata_icside_remove()
590 pata_icside_shutdown(ec); in pata_icside_remove()
599 ecard_release_resources(ec); in pata_icside_remove()