Lines Matching refs:p_dev
265 static void xirc2ps_detach(struct pcmcia_device *p_dev);
271 struct pcmcia_device *p_dev; member
487 local->p_dev = link; in xirc2ps_probe()
616 has_ce2_string(struct pcmcia_device * p_dev) in has_ce2_string() argument
618 if (p_dev->prod_id[2] && strstr(p_dev->prod_id[2], "CE2")) in has_ce2_string()
624 xirc2ps_config_modem(struct pcmcia_device *p_dev, void *priv_data) in xirc2ps_config_modem() argument
628 if ((p_dev->resource[0]->start & 0xf) == 8) in xirc2ps_config_modem()
631 p_dev->resource[0]->end = 16; in xirc2ps_config_modem()
632 p_dev->resource[1]->end = 8; in xirc2ps_config_modem()
633 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in xirc2ps_config_modem()
634 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_16; in xirc2ps_config_modem()
635 p_dev->resource[1]->flags &= ~IO_DATA_PATH_WIDTH; in xirc2ps_config_modem()
636 p_dev->resource[1]->flags |= IO_DATA_PATH_WIDTH_8; in xirc2ps_config_modem()
637 p_dev->io_lines = 10; in xirc2ps_config_modem()
639 p_dev->resource[1]->start = p_dev->resource[0]->start; in xirc2ps_config_modem()
641 p_dev->resource[0]->start = ioaddr; in xirc2ps_config_modem()
642 if (!pcmcia_request_io(p_dev)) in xirc2ps_config_modem()
649 xirc2ps_config_check(struct pcmcia_device *p_dev, void *priv_data) in xirc2ps_config_check() argument
652 resource_size_t tmp = p_dev->resource[1]->start; in xirc2ps_config_check()
654 tmp += (*pass ? (p_dev->config_index & 0x20 ? -24 : 8) in xirc2ps_config_check()
655 : (p_dev->config_index & 0x20 ? 8 : -24)); in xirc2ps_config_check()
657 if ((p_dev->resource[0]->start & 0xf) == 8) in xirc2ps_config_check()
660 p_dev->resource[0]->end = 18; in xirc2ps_config_check()
661 p_dev->resource[1]->end = 8; in xirc2ps_config_check()
662 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in xirc2ps_config_check()
663 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_16; in xirc2ps_config_check()
664 p_dev->resource[1]->flags &= ~IO_DATA_PATH_WIDTH; in xirc2ps_config_check()
665 p_dev->resource[1]->flags |= IO_DATA_PATH_WIDTH_8; in xirc2ps_config_check()
666 p_dev->io_lines = 10; in xirc2ps_config_check()
668 p_dev->resource[1]->start = p_dev->resource[0]->start; in xirc2ps_config_check()
669 p_dev->resource[0]->start = tmp; in xirc2ps_config_check()
670 return pcmcia_request_io(p_dev); in xirc2ps_config_check()
674 static int pcmcia_get_mac_ce(struct pcmcia_device *p_dev, in pcmcia_get_mac_ce() argument
1389 struct pcmcia_device *link = lp->p_dev; in do_open()
1717 struct pcmcia_device *link = lp->p_dev; in do_stop()