Lines Matching refs:p_dev
32 struct pcmcia_device *p_dev; member
90 if (!pcmcia_dev_present(dev->p_dev)) { in remap_window()
99 ret = pcmcia_map_mem_page(dev->p_dev, win, offset); in remap_window()
215 #define DEV_REMOVED(x) (!(pcmcia_dev_present(((struct pcmciamtd_dev *)map->map_priv_1)->p_dev)))
302 struct pcmcia_device *link = dev->p_dev; in pcmciamtd_set_vpp()
333 static int pcmciamtd_cistpl_format(struct pcmcia_device *p_dev, in pcmciamtd_cistpl_format() argument
348 static int pcmciamtd_cistpl_jedec(struct pcmcia_device *p_dev, in pcmciamtd_cistpl_jedec() argument
364 static int pcmciamtd_cistpl_device(struct pcmcia_device *p_dev, in pcmciamtd_cistpl_device() argument
388 static int pcmciamtd_cistpl_geo(struct pcmcia_device *p_dev, in pcmciamtd_cistpl_geo() argument
414 static void card_settings(struct pcmciamtd_dev *dev, struct pcmcia_device *p_dev, int *new_name) in card_settings() argument
418 if (p_dev->prod_id[0]) { in card_settings()
423 if (p_dev->prod_id[i]) in card_settings()
424 strcat(dev->mtd_name, p_dev->prod_id[i]); in card_settings()
429 pcmcia_loop_tuple(p_dev, CISTPL_FORMAT, pcmciamtd_cistpl_format, NULL); in card_settings()
430 pcmcia_loop_tuple(p_dev, CISTPL_JEDEC_C, pcmciamtd_cistpl_jedec, NULL); in card_settings()
431 pcmcia_loop_tuple(p_dev, CISTPL_DEVICE, pcmciamtd_cistpl_device, dev); in card_settings()
432 pcmcia_loop_tuple(p_dev, CISTPL_DEVICE_GEO, pcmciamtd_cistpl_geo, dev); in card_settings()
526 dev_err(&dev->p_dev->dev, "Cannot allocate memory window\n"); in pcmciamtd_config()
536 dev_err(&dev->p_dev->dev, "ioremap(%pR) failed\n", in pcmciamtd_config()
625 dev_err(&dev->p_dev->dev, in pcmciamtd_config()
630 dev_info(&dev->p_dev->dev, "mtd%d: %s\n", mtd->index, mtd->name); in pcmciamtd_config()
662 dev_info(&dev->p_dev->dev, "mtd%d: Removing\n", in pcmciamtd_detach()
680 dev->p_dev = link; in pcmciamtd_probe()