Lines Matching defs:p_drv
47 static void pcmcia_check_driver(struct pcmcia_driver *p_drv)
49 struct pcmcia_device_id *did = p_drv->id_table;
53 if (!p_drv->probe || !p_drv->remove)
55 "function\n", p_drv->drv.name);
68 "be 0x%x\n", p_drv->drv.name, did->prod_id[i],
254 struct pcmcia_driver *p_drv;
264 p_drv = to_pcmcia_drv(dev->driver);
267 dev_dbg(dev, "trying to bind to %s\n", p_drv->drv.name);
269 if ((!p_drv->probe) || (!p_dev->function_config) ||
270 (!try_module_get(p_drv->owner))) {
288 ret = p_drv->probe(p_dev);
291 p_drv->drv.name, ret);
303 module_put(p_drv->owner);
349 struct pcmcia_driver *p_drv;
353 p_drv = to_pcmcia_drv(dev->driver);
367 if (!p_drv)
370 if (p_drv->remove)
371 p_drv->remove(p_dev);
377 p_drv->drv.name);
383 p_drv->drv.name);
387 module_put(p_drv->owner);
885 struct pcmcia_driver *p_drv = to_pcmcia_drv(drv);
886 struct pcmcia_device_id *did = p_drv->id_table;
890 mutex_lock(&p_drv->dynids.lock);
891 list_for_each_entry(dynid, &p_drv->dynids.list, node) {
895 mutex_unlock(&p_drv->dynids.lock);
899 mutex_unlock(&p_drv->dynids.lock);
1114 struct pcmcia_driver *p_drv = NULL;
1128 p_drv = to_pcmcia_drv(dev->driver);
1130 if (!p_drv)
1133 if (p_drv->suspend) {
1134 ret = p_drv->suspend(p_dev);
1139 p_dev->devname, p_drv->drv.name, ret);
1160 struct pcmcia_driver *p_drv = NULL;
1174 p_drv = to_pcmcia_drv(dev->driver);
1176 if (!p_drv)
1186 if (p_drv->resume)
1187 ret = p_drv->resume(p_dev);