Lines Matching refs:p_dev
66 struct pcmcia_device *p_dev; member
84 static void btuart_detach(struct pcmcia_device *p_dev);
143 unsigned int iobase = info->p_dev->resource[0]->start; in btuart_write_wakeup()
149 if (!pcmcia_dev_present(info->p_dev)) in btuart_write_wakeup()
185 iobase = info->p_dev->resource[0]->start; in btuart_receive()
299 iobase = info->p_dev->resource[0]->start; in btuart_interrupt()
357 iobase = info->p_dev->resource[0]->start; in btuart_change_speed()
462 unsigned int iobase = info->p_dev->resource[0]->start; in btuart_open()
484 SET_HCIDEV_DEV(hdev, &info->p_dev->dev); in btuart_open()
528 unsigned int iobase = info->p_dev->resource[0]->start; in btuart_close()
561 info->p_dev = link; in btuart_probe()
576 static int btuart_check_config(struct pcmcia_device *p_dev, void *priv_data) in btuart_check_config() argument
581 p_dev->io_lines = 16; in btuart_check_config()
583 if ((p_dev->resource[0]->end != 8) || (p_dev->resource[0]->start == 0)) in btuart_check_config()
586 p_dev->resource[0]->end = 8; in btuart_check_config()
587 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in btuart_check_config()
588 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in btuart_check_config()
590 return pcmcia_request_io(p_dev); in btuart_check_config()
593 static int btuart_check_config_notpicky(struct pcmcia_device *p_dev, in btuart_check_config_notpicky() argument
599 if (p_dev->io_lines > 3) in btuart_check_config_notpicky()
602 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in btuart_check_config_notpicky()
603 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in btuart_check_config_notpicky()
604 p_dev->resource[0]->end = 8; in btuart_check_config_notpicky()
607 p_dev->resource[0]->start = base[j]; in btuart_check_config_notpicky()
608 p_dev->io_lines = base[j] ? 16 : 3; in btuart_check_config_notpicky()
609 if (!pcmcia_request_io(p_dev)) in btuart_check_config_notpicky()