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()
298 iobase = info->p_dev->resource[0]->start; in btuart_interrupt()
356 iobase = info->p_dev->resource[0]->start; in btuart_change_speed()
456 unsigned int iobase = info->p_dev->resource[0]->start; in btuart_open()
478 SET_HCIDEV_DEV(hdev, &info->p_dev->dev); in btuart_open()
522 unsigned int iobase = info->p_dev->resource[0]->start; in btuart_close()
555 info->p_dev = link; in btuart_probe()
570 static int btuart_check_config(struct pcmcia_device *p_dev, void *priv_data) in btuart_check_config() argument
575 p_dev->io_lines = 16; in btuart_check_config()
577 if ((p_dev->resource[0]->end != 8) || (p_dev->resource[0]->start == 0)) in btuart_check_config()
580 p_dev->resource[0]->end = 8; in btuart_check_config()
581 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in btuart_check_config()
582 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in btuart_check_config()
584 return pcmcia_request_io(p_dev); in btuart_check_config()
587 static int btuart_check_config_notpicky(struct pcmcia_device *p_dev, in btuart_check_config_notpicky() argument
593 if (p_dev->io_lines > 3) in btuart_check_config_notpicky()
596 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in btuart_check_config_notpicky()
597 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in btuart_check_config_notpicky()
598 p_dev->resource[0]->end = 8; in btuart_check_config_notpicky()
601 p_dev->resource[0]->start = base[j]; in btuart_check_config_notpicky()
602 p_dev->io_lines = base[j] ? 16 : 3; in btuart_check_config_notpicky()
603 if (!pcmcia_request_io(p_dev)) in btuart_check_config_notpicky()