Lines Matching refs:p_drv

43 static void pcmcia_check_driver(struct pcmcia_driver *p_drv)  in pcmcia_check_driver()  argument
45 const struct pcmcia_device_id *did = p_drv->id_table; in pcmcia_check_driver()
49 if (!p_drv->probe || !p_drv->remove) in pcmcia_check_driver()
51 "function\n", p_drv->name); in pcmcia_check_driver()
64 "be 0x%x\n", p_drv->name, did->prod_id[i], in pcmcia_check_driver()
254 struct pcmcia_driver *p_drv; in pcmcia_device_probe() local
264 p_drv = to_pcmcia_drv(dev->driver); in pcmcia_device_probe()
267 dev_dbg(dev, "trying to bind to %s\n", p_drv->name); in pcmcia_device_probe()
269 if ((!p_drv->probe) || (!p_dev->function_config) || in pcmcia_device_probe()
270 (!try_module_get(p_drv->owner))) { in pcmcia_device_probe()
290 ret = p_drv->probe(p_dev); in pcmcia_device_probe()
293 p_drv->name, ret); in pcmcia_device_probe()
296 dev_dbg(dev, "%s bound: Vpp %d.%d, idx %x, IRQ %d", p_drv->name, in pcmcia_device_probe()
310 module_put(p_drv->owner); in pcmcia_device_probe()
356 struct pcmcia_driver *p_drv; in pcmcia_device_remove() local
360 p_drv = to_pcmcia_drv(dev->driver); in pcmcia_device_remove()
374 if (p_drv->remove) in pcmcia_device_remove()
375 p_drv->remove(p_dev); in pcmcia_device_remove()
381 p_drv->name); in pcmcia_device_remove()
387 p_drv->name); in pcmcia_device_remove()
391 module_put(p_drv->owner); in pcmcia_device_remove()
906 struct pcmcia_driver *p_drv = to_pcmcia_drv(drv); in pcmcia_bus_match() local
907 const struct pcmcia_device_id *did = p_drv->id_table; in pcmcia_bus_match()
911 mutex_lock(&p_drv->dynids.lock); in pcmcia_bus_match()
912 list_for_each_entry(dynid, &p_drv->dynids.list, node) { in pcmcia_bus_match()
916 mutex_unlock(&p_drv->dynids.lock); in pcmcia_bus_match()
920 mutex_unlock(&p_drv->dynids.lock); in pcmcia_bus_match()
1135 struct pcmcia_driver *p_drv = NULL; in pcmcia_dev_suspend() local
1149 p_drv = to_pcmcia_drv(dev->driver); in pcmcia_dev_suspend()
1151 if (!p_drv) in pcmcia_dev_suspend()
1154 if (p_drv->suspend) { in pcmcia_dev_suspend()
1155 ret = p_drv->suspend(p_dev); in pcmcia_dev_suspend()
1159 p_dev->devname, p_drv->name, ret); in pcmcia_dev_suspend()
1180 struct pcmcia_driver *p_drv = NULL; in pcmcia_dev_resume() local
1194 p_drv = to_pcmcia_drv(dev->driver); in pcmcia_dev_resume()
1196 if (!p_drv) in pcmcia_dev_resume()
1206 if (p_drv->resume) in pcmcia_dev_resume()
1207 ret = p_drv->resume(p_dev); in pcmcia_dev_resume()