Lines Matching refs:p_dev
71 struct pcmcia_device *p_dev; member
89 static void bt3c_detach(struct pcmcia_device *p_dev);
189 unsigned int iobase = info->p_dev->resource[0]->start; in bt3c_write_wakeup()
193 if (!pcmcia_dev_present(info->p_dev)) in bt3c_write_wakeup()
226 iobase = info->p_dev->resource[0]->start; in bt3c_receive()
345 iobase = info->p_dev->resource[0]->start; in bt3c_interrupt()
455 iobase = info->p_dev->resource[0]->start; in bt3c_load_firmware()
563 SET_HCIDEV_DEV(hdev, &info->p_dev->dev); in bt3c_open()
571 err = request_firmware(&firmware, "BT3CPCC.bin", &info->p_dev->dev); in bt3c_open()
629 info->p_dev = link; in bt3c_probe()
644 static int bt3c_check_config(struct pcmcia_device *p_dev, void *priv_data) in bt3c_check_config() argument
649 p_dev->io_lines = 16; in bt3c_check_config()
651 if ((p_dev->resource[0]->end != 8) || (p_dev->resource[0]->start == 0)) in bt3c_check_config()
654 p_dev->resource[0]->end = 8; in bt3c_check_config()
655 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in bt3c_check_config()
656 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in bt3c_check_config()
658 return pcmcia_request_io(p_dev); in bt3c_check_config()
661 static int bt3c_check_config_notpicky(struct pcmcia_device *p_dev, in bt3c_check_config_notpicky() argument
667 if (p_dev->io_lines > 3) in bt3c_check_config_notpicky()
670 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in bt3c_check_config_notpicky()
671 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in bt3c_check_config_notpicky()
672 p_dev->resource[0]->end = 8; in bt3c_check_config_notpicky()
675 p_dev->resource[0]->start = base[j]; in bt3c_check_config_notpicky()
676 p_dev->io_lines = base[j] ? 16 : 3; in bt3c_check_config_notpicky()
677 if (!pcmcia_request_io(p_dev)) in bt3c_check_config_notpicky()