• Home
  • Raw
  • Download

Lines Matching refs:cf

80 	struct omap_cf_socket	*cf = from_timer(cf, t, timer);  in omap_cf_timer()  local
83 if (present != cf->present) { in omap_cf_timer()
84 cf->present = present; in omap_cf_timer()
87 pcmcia_parse_events(&cf->socket, SS_DETECT); in omap_cf_timer()
90 if (cf->active) in omap_cf_timer()
91 mod_timer(&cf->timer, jiffies + POLL_INTERVAL); in omap_cf_timer()
100 struct omap_cf_socket *cf = (struct omap_cf_socket *)_cf; in omap_cf_irq() local
102 omap_cf_timer(&cf->timer); in omap_cf_irq()
113 struct omap_cf_socket *cf; in omap_cf_get_status() local
116 cf = container_of(s, struct omap_cf_socket, socket); in omap_cf_get_status()
118 s->pci_irq = cf->irq; in omap_cf_get_status()
159 struct omap_cf_socket *cf; in omap_cf_set_io_map() local
161 cf = container_of(s, struct omap_cf_socket, socket); in omap_cf_set_io_map()
163 io->start = cf->phys_cf + SZ_4K; in omap_cf_set_io_map()
171 struct omap_cf_socket *cf; in omap_cf_set_mem_map() local
175 cf = container_of(s, struct omap_cf_socket, socket); in omap_cf_set_mem_map()
176 map->static_start = cf->phys_cf; in omap_cf_set_mem_map()
202 struct omap_cf_socket *cf; in omap_cf_probe() local
219 cf = kzalloc(sizeof *cf, GFP_KERNEL); in omap_cf_probe()
220 if (!cf) in omap_cf_probe()
222 timer_setup(&cf->timer, omap_cf_timer, 0); in omap_cf_probe()
224 cf->pdev = pdev; in omap_cf_probe()
225 platform_set_drvdata(pdev, cf); in omap_cf_probe()
229 driver_name, cf); in omap_cf_probe()
232 cf->irq = irq; in omap_cf_probe()
233 cf->socket.pci_irq = irq; in omap_cf_probe()
234 cf->phys_cf = res->start; in omap_cf_probe()
237 cf->socket.io_offset = iospace.start; in omap_cf_probe()
238 status = pci_remap_iospace(&iospace, cf->phys_cf + SZ_4K); in omap_cf_probe()
244 if (!request_mem_region(cf->phys_cf, SZ_8K, driver_name)) { in omap_cf_probe()
267 cf->socket.owner = THIS_MODULE; in omap_cf_probe()
268 cf->socket.dev.parent = &pdev->dev; in omap_cf_probe()
269 cf->socket.ops = &omap_cf_ops; in omap_cf_probe()
270 cf->socket.resource_ops = &pccard_static_ops; in omap_cf_probe()
271 cf->socket.features = SS_CAP_PCCARD | SS_CAP_STATIC_MAP in omap_cf_probe()
273 cf->socket.map_size = SZ_2K; in omap_cf_probe()
274 cf->socket.io[0].res = &cf->iomem; in omap_cf_probe()
276 status = pcmcia_register_socket(&cf->socket); in omap_cf_probe()
280 cf->active = 1; in omap_cf_probe()
281 mod_timer(&cf->timer, jiffies + POLL_INTERVAL); in omap_cf_probe()
285 release_mem_region(cf->phys_cf, SZ_8K); in omap_cf_probe()
287 free_irq(irq, cf); in omap_cf_probe()
289 kfree(cf); in omap_cf_probe()
295 struct omap_cf_socket *cf = platform_get_drvdata(pdev); in omap_cf_remove() local
297 cf->active = 0; in omap_cf_remove()
298 pcmcia_unregister_socket(&cf->socket); in omap_cf_remove()
299 del_timer_sync(&cf->timer); in omap_cf_remove()
300 release_mem_region(cf->phys_cf, SZ_8K); in omap_cf_remove()
301 free_irq(cf->irq, cf); in omap_cf_remove()
302 kfree(cf); in omap_cf_remove()