p_dev 65 drivers/bluetooth/bluecard_cs.c struct pcmcia_device *p_dev; p_dev 87 drivers/bluetooth/bluecard_cs.c static void bluecard_detach(struct pcmcia_device *p_dev); p_dev 162 drivers/bluetooth/bluecard_cs.c unsigned int iobase = info->p_dev->resource[0]->start; p_dev 177 drivers/bluetooth/bluecard_cs.c unsigned int iobase = info->p_dev->resource[0]->start; p_dev 233 drivers/bluetooth/bluecard_cs.c unsigned int iobase = info->p_dev->resource[0]->start; p_dev 242 drivers/bluetooth/bluecard_cs.c if (!pcmcia_dev_present(info->p_dev)) p_dev 378 drivers/bluetooth/bluecard_cs.c iobase = info->p_dev->resource[0]->start; p_dev 508 drivers/bluetooth/bluecard_cs.c iobase = info->p_dev->resource[0]->start; p_dev 623 drivers/bluetooth/bluecard_cs.c unsigned int iobase = info->p_dev->resource[0]->start; p_dev 638 drivers/bluetooth/bluecard_cs.c unsigned int iobase = info->p_dev->resource[0]->start; p_dev 684 drivers/bluetooth/bluecard_cs.c unsigned int iobase = info->p_dev->resource[0]->start; p_dev 709 drivers/bluetooth/bluecard_cs.c SET_HCIDEV_DEV(hdev, &info->p_dev->dev); p_dev 797 drivers/bluetooth/bluecard_cs.c unsigned int iobase = info->p_dev->resource[0]->start; p_dev 829 drivers/bluetooth/bluecard_cs.c info->p_dev = link; p_dev 71 drivers/bluetooth/bt3c_cs.c struct pcmcia_device *p_dev; p_dev 89 drivers/bluetooth/bt3c_cs.c static void bt3c_detach(struct pcmcia_device *p_dev); p_dev 189 drivers/bluetooth/bt3c_cs.c unsigned int iobase = info->p_dev->resource[0]->start; p_dev 193 drivers/bluetooth/bt3c_cs.c if (!pcmcia_dev_present(info->p_dev)) p_dev 226 drivers/bluetooth/bt3c_cs.c iobase = info->p_dev->resource[0]->start; p_dev 345 drivers/bluetooth/bt3c_cs.c iobase = info->p_dev->resource[0]->start; p_dev 455 drivers/bluetooth/bt3c_cs.c iobase = info->p_dev->resource[0]->start; p_dev 563 drivers/bluetooth/bt3c_cs.c SET_HCIDEV_DEV(hdev, &info->p_dev->dev); p_dev 571 drivers/bluetooth/bt3c_cs.c err = request_firmware(&firmware, "BT3CPCC.bin", &info->p_dev->dev); p_dev 629 drivers/bluetooth/bt3c_cs.c info->p_dev = link; p_dev 644 drivers/bluetooth/bt3c_cs.c static int bt3c_check_config(struct pcmcia_device *p_dev, void *priv_data) p_dev 649 drivers/bluetooth/bt3c_cs.c p_dev->io_lines = 16; p_dev 651 drivers/bluetooth/bt3c_cs.c if ((p_dev->resource[0]->end != 8) || (p_dev->resource[0]->start == 0)) p_dev 654 drivers/bluetooth/bt3c_cs.c p_dev->resource[0]->end = 8; p_dev 655 drivers/bluetooth/bt3c_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 656 drivers/bluetooth/bt3c_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; p_dev 658 drivers/bluetooth/bt3c_cs.c return pcmcia_request_io(p_dev); p_dev 661 drivers/bluetooth/bt3c_cs.c static int bt3c_check_config_notpicky(struct pcmcia_device *p_dev, p_dev 667 drivers/bluetooth/bt3c_cs.c if (p_dev->io_lines > 3) p_dev 670 drivers/bluetooth/bt3c_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 671 drivers/bluetooth/bt3c_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; p_dev 672 drivers/bluetooth/bt3c_cs.c p_dev->resource[0]->end = 8; p_dev 675 drivers/bluetooth/bt3c_cs.c p_dev->resource[0]->start = base[j]; p_dev 676 drivers/bluetooth/bt3c_cs.c p_dev->io_lines = base[j] ? 16 : 3; p_dev 677 drivers/bluetooth/bt3c_cs.c if (!pcmcia_request_io(p_dev)) p_dev 66 drivers/bluetooth/dtl1_cs.c struct pcmcia_device *p_dev; p_dev 147 drivers/bluetooth/dtl1_cs.c unsigned int iobase = info->p_dev->resource[0]->start; p_dev 153 drivers/bluetooth/dtl1_cs.c if (!pcmcia_dev_present(info->p_dev)) p_dev 213 drivers/bluetooth/dtl1_cs.c iobase = info->p_dev->resource[0]->start; p_dev 302 drivers/bluetooth/dtl1_cs.c iobase = info->p_dev->resource[0]->start; p_dev 438 drivers/bluetooth/dtl1_cs.c unsigned int iobase = info->p_dev->resource[0]->start; p_dev 462 drivers/bluetooth/dtl1_cs.c SET_HCIDEV_DEV(hdev, &info->p_dev->dev); p_dev 481 drivers/bluetooth/dtl1_cs.c info->ri_latch = inb(info->p_dev->resource[0]->start + UART_MSR) p_dev 507 drivers/bluetooth/dtl1_cs.c unsigned int iobase = info->p_dev->resource[0]->start; p_dev 540 drivers/bluetooth/dtl1_cs.c info->p_dev = link; p_dev 557 drivers/bluetooth/dtl1_cs.c static int dtl1_confcheck(struct pcmcia_device *p_dev, void *priv_data) p_dev 559 drivers/bluetooth/dtl1_cs.c if ((p_dev->resource[1]->end) || (p_dev->resource[1]->end < 8)) p_dev 562 drivers/bluetooth/dtl1_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 563 drivers/bluetooth/dtl1_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; p_dev 565 drivers/bluetooth/dtl1_cs.c return pcmcia_request_io(p_dev); p_dev 46 drivers/char/pcmcia/cm4000_cs.c #define reader_to_dev(x) (&x->p_dev->dev) p_dev 106 drivers/char/pcmcia/cm4000_cs.c struct pcmcia_device *p_dev; p_dev 423 drivers/char/pcmcia/cm4000_cs.c unsigned int iobase = dev->p_dev->resource[0]->start; p_dev 456 drivers/char/pcmcia/cm4000_cs.c unsigned int iobase = dev->p_dev->resource[0]->start; p_dev 665 drivers/char/pcmcia/cm4000_cs.c unsigned int iobase = dev->p_dev->resource[0]->start; p_dev 883 drivers/char/pcmcia/cm4000_cs.c dev_warn(&dev->p_dev->dev, MODULE_NAME ": "); p_dev 925 drivers/char/pcmcia/cm4000_cs.c unsigned int iobase = dev->p_dev->resource[0]->start; p_dev 934 drivers/char/pcmcia/cm4000_cs.c if (!pcmcia_dev_present(dev->p_dev) || /* device removed */ p_dev 1049 drivers/char/pcmcia/cm4000_cs.c unsigned int iobase = dev->p_dev->resource[0]->start; p_dev 1074 drivers/char/pcmcia/cm4000_cs.c if (!pcmcia_dev_present(dev->p_dev) || /* device removed */ p_dev 1402 drivers/char/pcmcia/cm4000_cs.c unsigned int iobase = dev->p_dev->resource[0]->start; p_dev 1744 drivers/char/pcmcia/cm4000_cs.c static int cm4000_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 1746 drivers/char/pcmcia/cm4000_cs.c return pcmcia_request_io(p_dev); p_dev 1813 drivers/char/pcmcia/cm4000_cs.c dev->p_dev = link; p_dev 40 drivers/char/pcmcia/cm4040_cs.c #define reader_to_dev(x) (&x->p_dev->dev) p_dev 71 drivers/char/pcmcia/cm4040_cs.c struct pcmcia_device *p_dev; p_dev 110 drivers/char/pcmcia/cm4040_cs.c unsigned int obs = xinb(dev->p_dev->resource[0]->start p_dev 141 drivers/char/pcmcia/cm4040_cs.c int iobase = dev->p_dev->resource[0]->start; p_dev 171 drivers/char/pcmcia/cm4040_cs.c int iobase = dev->p_dev->resource[0]->start; p_dev 189 drivers/char/pcmcia/cm4040_cs.c int iobase = dev->p_dev->resource[0]->start; p_dev 219 drivers/char/pcmcia/cm4040_cs.c int iobase = dev->p_dev->resource[0]->start; p_dev 240 drivers/char/pcmcia/cm4040_cs.c if (!pcmcia_dev_present(dev->p_dev)) p_dev 321 drivers/char/pcmcia/cm4040_cs.c int iobase = dev->p_dev->resource[0]->start; p_dev 344 drivers/char/pcmcia/cm4040_cs.c if (!pcmcia_dev_present(dev->p_dev)) p_dev 516 drivers/char/pcmcia/cm4040_cs.c static int cm4040_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 518 drivers/char/pcmcia/cm4040_cs.c return pcmcia_request_io(p_dev); p_dev 579 drivers/char/pcmcia/cm4040_cs.c dev->p_dev = link; p_dev 218 drivers/char/pcmcia/synclink_cs.c struct pcmcia_device *p_dev; p_dev 473 drivers/char/pcmcia/synclink_cs.c static void mgslpc_detach(struct pcmcia_device *p_dev); p_dev 545 drivers/char/pcmcia/synclink_cs.c info->p_dev = link; p_dev 571 drivers/char/pcmcia/synclink_cs.c static int mgslpc_ioprobe(struct pcmcia_device *p_dev, void *priv_data) p_dev 573 drivers/char/pcmcia/synclink_cs.c return pcmcia_request_io(p_dev); p_dev 1168 drivers/char/pcmcia/synclink_cs.c if (!(info->p_dev->_locked)) p_dev 2720 drivers/char/pcmcia/synclink_cs.c &info->p_dev->dev); p_dev 63 drivers/ide/ide-cs.c struct pcmcia_device *p_dev; p_dev 71 drivers/ide/ide-cs.c static void ide_detach(struct pcmcia_device *p_dev); p_dev 84 drivers/ide/ide-cs.c info->p_dev = link; p_dev 18 drivers/media/platform/s5p-mfc/s5p_mfc_pm.c static struct s5p_mfc_dev *p_dev; p_dev 26 drivers/media/platform/s5p-mfc/s5p_mfc_pm.c p_dev = dev; p_dev 212 drivers/media/usb/cx231xx/cx231xx-pcb-cfg.h int initialize_cx231xx(struct cx231xx *p_dev); p_dev 558 drivers/memstick/host/rtsx_pci_ms.c pcr->slots[RTSX_MS_CARD].p_dev = pdev; p_dev 588 drivers/memstick/host/rtsx_pci_ms.c pcr->slots[RTSX_MS_CARD].p_dev = NULL; p_dev 958 drivers/misc/cardreader/rtsx_pcr.c pcr->slots[RTSX_SD_CARD].p_dev); p_dev 961 drivers/misc/cardreader/rtsx_pcr.c pcr->slots[RTSX_MS_CARD].p_dev); p_dev 1401 drivers/mmc/host/rtsx_pci_sdmmc.c pcr->slots[RTSX_SD_CARD].p_dev = pdev; p_dev 1423 drivers/mmc/host/rtsx_pci_sdmmc.c pcr->slots[RTSX_SD_CARD].p_dev = NULL; p_dev 32 drivers/mtd/maps/pcmciamtd.c struct pcmcia_device *p_dev; p_dev 90 drivers/mtd/maps/pcmciamtd.c if (!pcmcia_dev_present(dev->p_dev)) { p_dev 99 drivers/mtd/maps/pcmciamtd.c ret = pcmcia_map_mem_page(dev->p_dev, win, offset); p_dev 215 drivers/mtd/maps/pcmciamtd.c #define DEV_REMOVED(x) (!(pcmcia_dev_present(((struct pcmciamtd_dev *)map->map_priv_1)->p_dev))) p_dev 302 drivers/mtd/maps/pcmciamtd.c struct pcmcia_device *link = dev->p_dev; p_dev 334 drivers/mtd/maps/pcmciamtd.c static int pcmciamtd_cistpl_format(struct pcmcia_device *p_dev, p_dev 349 drivers/mtd/maps/pcmciamtd.c static int pcmciamtd_cistpl_jedec(struct pcmcia_device *p_dev, p_dev 365 drivers/mtd/maps/pcmciamtd.c static int pcmciamtd_cistpl_device(struct pcmcia_device *p_dev, p_dev 389 drivers/mtd/maps/pcmciamtd.c static int pcmciamtd_cistpl_geo(struct pcmcia_device *p_dev, p_dev 415 drivers/mtd/maps/pcmciamtd.c static void card_settings(struct pcmciamtd_dev *dev, struct pcmcia_device *p_dev, int *new_name) p_dev 419 drivers/mtd/maps/pcmciamtd.c if (p_dev->prod_id[0]) { p_dev 424 drivers/mtd/maps/pcmciamtd.c if (p_dev->prod_id[i]) p_dev 425 drivers/mtd/maps/pcmciamtd.c strcat(dev->mtd_name, p_dev->prod_id[i]); p_dev 430 drivers/mtd/maps/pcmciamtd.c pcmcia_loop_tuple(p_dev, CISTPL_FORMAT, pcmciamtd_cistpl_format, NULL); p_dev 431 drivers/mtd/maps/pcmciamtd.c pcmcia_loop_tuple(p_dev, CISTPL_JEDEC_C, pcmciamtd_cistpl_jedec, NULL); p_dev 432 drivers/mtd/maps/pcmciamtd.c pcmcia_loop_tuple(p_dev, CISTPL_DEVICE, pcmciamtd_cistpl_device, dev); p_dev 433 drivers/mtd/maps/pcmciamtd.c pcmcia_loop_tuple(p_dev, CISTPL_DEVICE_GEO, pcmciamtd_cistpl_geo, dev); p_dev 527 drivers/mtd/maps/pcmciamtd.c dev_err(&dev->p_dev->dev, "Cannot allocate memory window\n"); p_dev 537 drivers/mtd/maps/pcmciamtd.c dev_err(&dev->p_dev->dev, "ioremap(%pR) failed\n", p_dev 626 drivers/mtd/maps/pcmciamtd.c dev_err(&dev->p_dev->dev, p_dev 631 drivers/mtd/maps/pcmciamtd.c dev_info(&dev->p_dev->dev, "mtd%d: %s\n", mtd->index, mtd->name); p_dev 663 drivers/mtd/maps/pcmciamtd.c dev_info(&dev->p_dev->dev, "mtd%d: Removing\n", p_dev 681 drivers/mtd/maps/pcmciamtd.c dev->p_dev = link; p_dev 107 drivers/net/arcnet/com20020_cs.c static void com20020_detach(struct pcmcia_device *p_dev); p_dev 111 drivers/net/arcnet/com20020_cs.c static int com20020_probe(struct pcmcia_device *p_dev) p_dev 117 drivers/net/arcnet/com20020_cs.c dev_dbg(&p_dev->dev, "com20020_attach()\n"); p_dev 138 drivers/net/arcnet/com20020_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; p_dev 139 drivers/net/arcnet/com20020_cs.c p_dev->resource[0]->end = 16; p_dev 140 drivers/net/arcnet/com20020_cs.c p_dev->config_flags |= CONF_ENABLE_IRQ; p_dev 143 drivers/net/arcnet/com20020_cs.c p_dev->priv = info; p_dev 145 drivers/net/arcnet/com20020_cs.c return com20020_config(p_dev); p_dev 198 drivers/net/ethernet/3com/3c574_cs.c struct pcmcia_device *p_dev; p_dev 242 drivers/net/ethernet/3com/3c574_cs.c static void tc574_detach(struct pcmcia_device *p_dev); p_dev 274 drivers/net/ethernet/3com/3c574_cs.c lp->p_dev = link; p_dev 675 drivers/net/ethernet/3com/3c574_cs.c struct pcmcia_device *link = lp->p_dev; p_dev 863 drivers/net/ethernet/3com/3c574_cs.c struct net_device *dev = lp->p_dev->priv; p_dev 1118 drivers/net/ethernet/3com/3c574_cs.c struct pcmcia_device *link = lp->p_dev; p_dev 134 drivers/net/ethernet/3com/3c589_cs.c struct pcmcia_device *p_dev; p_dev 181 drivers/net/ethernet/3com/3c589_cs.c static void tc589_detach(struct pcmcia_device *p_dev); p_dev 208 drivers/net/ethernet/3com/3c589_cs.c lp->p_dev = link; p_dev 511 drivers/net/ethernet/3com/3c589_cs.c struct pcmcia_device *link = lp->p_dev; p_dev 682 drivers/net/ethernet/3com/3c589_cs.c struct net_device *dev = lp->p_dev->priv; p_dev 770 drivers/net/ethernet/3com/3c589_cs.c struct pcmcia_device *link = lp->p_dev; p_dev 908 drivers/net/ethernet/3com/3c589_cs.c struct pcmcia_device *link = lp->p_dev; p_dev 101 drivers/net/ethernet/8390/axnet_cs.c static void axnet_detach(struct pcmcia_device *p_dev); p_dev 111 drivers/net/ethernet/8390/axnet_cs.c struct pcmcia_device *p_dev; p_dev 156 drivers/net/ethernet/8390/axnet_cs.c info->p_dev = link; p_dev 259 drivers/net/ethernet/8390/axnet_cs.c static int axnet_configcheck(struct pcmcia_device *p_dev, void *priv_data) p_dev 261 drivers/net/ethernet/8390/axnet_cs.c if (p_dev->config_index == 0) p_dev 264 drivers/net/ethernet/8390/axnet_cs.c p_dev->config_index = 0x05; p_dev 265 drivers/net/ethernet/8390/axnet_cs.c if (p_dev->resource[0]->end + p_dev->resource[1]->end < 32) p_dev 268 drivers/net/ethernet/8390/axnet_cs.c return try_io_port(p_dev); p_dev 468 drivers/net/ethernet/8390/axnet_cs.c struct pcmcia_device *link = info->p_dev; p_dev 495 drivers/net/ethernet/8390/axnet_cs.c struct pcmcia_device *link = info->p_dev; p_dev 551 drivers/net/ethernet/8390/axnet_cs.c struct net_device *dev = info->p_dev->priv; p_dev 109 drivers/net/ethernet/8390/pcnet_cs.c static void pcnet_detach(struct pcmcia_device *p_dev); p_dev 203 drivers/net/ethernet/8390/pcnet_cs.c struct pcmcia_device *p_dev; p_dev 247 drivers/net/ethernet/8390/pcnet_cs.c info->p_dev = link; p_dev 477 drivers/net/ethernet/8390/pcnet_cs.c static int pcnet_confcheck(struct pcmcia_device *p_dev, void *priv_data) p_dev 482 drivers/net/ethernet/8390/pcnet_cs.c *priv &= (p_dev->resource[2]->end >= 0x4000) ? 0x10 : ~0x10; p_dev 484 drivers/net/ethernet/8390/pcnet_cs.c if (p_dev->config_index == 0) p_dev 487 drivers/net/ethernet/8390/pcnet_cs.c if (p_dev->resource[0]->end + p_dev->resource[1]->end < 32) p_dev 491 drivers/net/ethernet/8390/pcnet_cs.c p_dev->io_lines = 16; p_dev 492 drivers/net/ethernet/8390/pcnet_cs.c return try_io_port(p_dev); p_dev 902 drivers/net/ethernet/8390/pcnet_cs.c struct pcmcia_device *link = info->p_dev; p_dev 932 drivers/net/ethernet/8390/pcnet_cs.c struct pcmcia_device *link = info->p_dev; p_dev 1013 drivers/net/ethernet/8390/pcnet_cs.c struct net_device *dev = info->p_dev->priv; p_dev 361 drivers/net/ethernet/amd/nmclan_cs.c struct pcmcia_device *p_dev; p_dev 419 drivers/net/ethernet/amd/nmclan_cs.c static void nmclan_detach(struct pcmcia_device *p_dev); p_dev 445 drivers/net/ethernet/amd/nmclan_cs.c lp->p_dev = link; p_dev 780 drivers/net/ethernet/amd/nmclan_cs.c struct pcmcia_device *link = lp->p_dev; p_dev 803 drivers/net/ethernet/amd/nmclan_cs.c struct pcmcia_device *link = lp->p_dev; p_dev 843 drivers/net/ethernet/amd/nmclan_cs.c struct pcmcia_device *link = lp->p_dev; p_dev 82 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static void fmvj18x_detach(struct pcmcia_device *p_dev); p_dev 110 drivers/net/ethernet/fujitsu/fmvj18x_cs.c struct pcmcia_device *p_dev; p_dev 245 drivers/net/ethernet/fujitsu/fmvj18x_cs.c lp->p_dev = link; p_dev 321 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static int fmvj18x_ioprobe(struct pcmcia_device *p_dev, void *priv_data) p_dev 1066 drivers/net/ethernet/fujitsu/fmvj18x_cs.c struct pcmcia_device *link = lp->p_dev; p_dev 1091 drivers/net/ethernet/fujitsu/fmvj18x_cs.c struct pcmcia_device *link = lp->p_dev; p_dev 460 drivers/net/ethernet/moxa/moxart_ether.c struct device *p_dev = &pdev->dev; p_dev 461 drivers/net/ethernet/moxa/moxart_ether.c struct device_node *node = p_dev->of_node; p_dev 485 drivers/net/ethernet/moxa/moxart_ether.c priv->base = devm_ioremap_resource(p_dev, res); p_dev 487 drivers/net/ethernet/moxa/moxart_ether.c dev_err(p_dev, "devm_ioremap_resource failed\n"); p_dev 529 drivers/net/ethernet/moxa/moxart_ether.c ret = devm_request_irq(p_dev, irq, moxart_mac_interrupt, 0, p_dev 40 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static int qlcnic_83xx_check_heartbeat(struct qlcnic_adapter *p_dev); p_dev 42 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static int qlcnic_83xx_check_hw_status(struct qlcnic_adapter *p_dev); p_dev 1572 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static int qlcnic_83xx_check_heartbeat(struct qlcnic_adapter *p_dev) p_dev 1578 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c p_dev->heartbeat = QLC_SHARED_REG_RD32(p_dev, p_dev 1583 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c heartbeat = QLC_SHARED_REG_RD32(p_dev, p_dev 1585 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (heartbeat != p_dev->heartbeat) { p_dev 1592 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c dev_err(&p_dev->pdev->dev, "firmware hang detected\n"); p_dev 1593 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_take_eport_out_of_reset(p_dev); p_dev 1594 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_disable_pause_frames(p_dev); p_dev 1595 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c peg_status = QLC_SHARED_REG_RD32(p_dev, p_dev 1597 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c dev_info(&p_dev->pdev->dev, "Dumping HW/FW registers\n" p_dev 1602 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c QLC_SHARED_REG_RD32(p_dev, QLCNIC_PEG_HALT_STATUS2), p_dev 1603 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c QLCRD32(p_dev, QLC_83XX_CRB_PEG_NET_0, &err), p_dev 1604 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c QLCRD32(p_dev, QLC_83XX_CRB_PEG_NET_1, &err), p_dev 1605 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c QLCRD32(p_dev, QLC_83XX_CRB_PEG_NET_2, &err), p_dev 1606 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c QLCRD32(p_dev, QLC_83XX_CRB_PEG_NET_3, &err), p_dev 1607 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c QLCRD32(p_dev, QLC_83XX_CRB_PEG_NET_4, &err)); p_dev 1610 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c dev_err(&p_dev->pdev->dev, p_dev 1617 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static int qlcnic_83xx_check_cmd_peg_status(struct qlcnic_adapter *p_dev) p_dev 1623 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c val = QLC_SHARED_REG_RD32(p_dev, QLCNIC_CMDPEG_STATE); p_dev 1629 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c dev_err(&p_dev->pdev->dev, "%s: failed, state = 0x%x\n", __func__, val); p_dev 1633 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static int qlcnic_83xx_check_hw_status(struct qlcnic_adapter *p_dev) p_dev 1637 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c err = qlcnic_83xx_check_cmd_peg_status(p_dev); p_dev 1641 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c err = qlcnic_83xx_check_heartbeat(p_dev); p_dev 1648 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static int qlcnic_83xx_poll_reg(struct qlcnic_adapter *p_dev, u32 addr, p_dev 1655 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c value = QLCRD32(p_dev, addr, &err); p_dev 1664 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c value = QLCRD32(p_dev, addr, &err); p_dev 1674 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c p_dev->ahw->reset.seq_error++; p_dev 1675 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c dev_err(&p_dev->pdev->dev, p_dev 1677 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c __func__, p_dev->ahw->reset.seq_index); p_dev 1678 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c dev_err(&p_dev->pdev->dev, p_dev 1686 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static int qlcnic_83xx_reset_template_checksum(struct qlcnic_adapter *p_dev) p_dev 1689 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c u16 *buff = (u16 *)p_dev->ahw->reset.buff; p_dev 1690 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c int count = p_dev->ahw->reset.hdr->size / sizeof(u16); p_dev 1701 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c dev_err(&p_dev->pdev->dev, "%s: failed\n", __func__); p_dev 1706 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static int qlcnic_83xx_get_reset_instruction_template(struct qlcnic_adapter *p_dev) p_dev 1708 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c struct qlcnic_hardware_context *ahw = p_dev->ahw; p_dev 1713 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c prev_ver = p_dev->fw_version; p_dev 1714 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c curr_ver = qlcnic_83xx_get_fw_version(p_dev); p_dev 1726 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c p_buff = p_dev->ahw->reset.buff; p_dev 1731 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (qlcnic_83xx_flash_read32(p_dev, addr, p_buff, count)) { p_dev 1732 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c dev_err(&p_dev->pdev->dev, "%s: flash read failed\n", __func__); p_dev 1741 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (qlcnic_83xx_flash_read32(p_dev, addr, p_buff, count)) { p_dev 1742 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c dev_err(&p_dev->pdev->dev, "%s: flash read failed\n", __func__); p_dev 1746 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (qlcnic_83xx_reset_template_checksum(p_dev)) p_dev 1757 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static void qlcnic_83xx_read_write_crb_reg(struct qlcnic_adapter *p_dev, p_dev 1763 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c value = QLCRD32(p_dev, raddr, &err); p_dev 1766 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_wrt_reg_indirect(p_dev, waddr, value); p_dev 1770 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static void qlcnic_83xx_rmw_crb_reg(struct qlcnic_adapter *p_dev, p_dev 1778 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c value = p_dev->ahw->reset.array[p_rmw_hdr->index_a]; p_dev 1780 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c value = QLCRD32(p_dev, raddr, &err); p_dev 1790 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_wrt_reg_indirect(p_dev, waddr, value); p_dev 1794 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static void qlcnic_83xx_write_list(struct qlcnic_adapter *p_dev, p_dev 1804 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_wrt_reg_indirect(p_dev, entry->arg1, p_dev 1812 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static void qlcnic_83xx_read_write_list(struct qlcnic_adapter *p_dev, p_dev 1822 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_read_write_crb_reg(p_dev, entry->arg1, p_dev 1830 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static void qlcnic_83xx_poll_list(struct qlcnic_adapter *p_dev, p_dev 1848 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_poll_reg(p_dev, entry->arg1, p_dev 1856 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (qlcnic_83xx_poll_reg(p_dev, p_dev 1860 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c QLCRD32(p_dev, arg1, &err); p_dev 1863 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c QLCRD32(p_dev, arg2, &err); p_dev 1873 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static void qlcnic_83xx_poll_write_list(struct qlcnic_adapter *p_dev, p_dev 1888 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_wrt_reg_indirect(p_dev, entry->dr_addr, p_dev 1890 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_wrt_reg_indirect(p_dev, entry->ar_addr, p_dev 1893 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_poll_reg(p_dev, entry->ar_addr, delay, p_dev 1899 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static void qlcnic_83xx_read_modify_write(struct qlcnic_adapter *p_dev, p_dev 1913 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_rmw_crb_reg(p_dev, entry->arg1, p_dev 1927 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static void qlcnic_83xx_poll_read_list(struct qlcnic_adapter *p_dev, p_dev 1944 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_wrt_reg_indirect(p_dev, entry->ar_addr, p_dev 1947 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (!qlcnic_83xx_poll_reg(p_dev, entry->ar_addr, delay, p_dev 1949 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c index = p_dev->ahw->reset.array_index; p_dev 1951 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c j = QLCRD32(p_dev, addr, &err); p_dev 1955 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c p_dev->ahw->reset.array[index++] = j; p_dev 1958 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c p_dev->ahw->reset.array_index = 1; p_dev 1964 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static inline void qlcnic_83xx_seq_end(struct qlcnic_adapter *p_dev) p_dev 1966 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c p_dev->ahw->reset.seq_end = 1; p_dev 1969 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static void qlcnic_83xx_template_end(struct qlcnic_adapter *p_dev) p_dev 1971 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c p_dev->ahw->reset.template_end = 1; p_dev 1972 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (p_dev->ahw->reset.seq_error == 0) p_dev 1973 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c dev_err(&p_dev->pdev->dev, p_dev 1976 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c dev_err(&p_dev->pdev->dev, p_dev 1994 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static void qlcnic_83xx_exec_template_cmd(struct qlcnic_adapter *p_dev, p_dev 2001 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c p_dev->ahw->reset.seq_end = 0; p_dev 2002 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c p_dev->ahw->reset.template_end = 0; p_dev 2003 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c entries = p_dev->ahw->reset.hdr->entries; p_dev 2004 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c index = p_dev->ahw->reset.seq_index; p_dev 2006 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c for (; (!p_dev->ahw->reset.seq_end) && (index < entries); index++) { p_dev 2013 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_write_list(p_dev, p_hdr); p_dev 2016 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_read_write_list(p_dev, p_hdr); p_dev 2019 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_poll_list(p_dev, p_hdr); p_dev 2022 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_poll_write_list(p_dev, p_hdr); p_dev 2025 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_read_modify_write(p_dev, p_hdr); p_dev 2031 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_seq_end(p_dev); p_dev 2034 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_template_end(p_dev); p_dev 2037 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_poll_read_list(p_dev, p_hdr); p_dev 2040 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c dev_err(&p_dev->pdev->dev, p_dev 2048 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c p_dev->ahw->reset.seq_index = index; p_dev 2051 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static void qlcnic_83xx_stop_hw(struct qlcnic_adapter *p_dev) p_dev 2053 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c p_dev->ahw->reset.seq_index = 0; p_dev 2055 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_exec_template_cmd(p_dev, p_dev->ahw->reset.stop_offset); p_dev 2056 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (p_dev->ahw->reset.seq_end != 1) p_dev 2057 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c dev_err(&p_dev->pdev->dev, "%s: failed\n", __func__); p_dev 2060 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static void qlcnic_83xx_start_hw(struct qlcnic_adapter *p_dev) p_dev 2062 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_exec_template_cmd(p_dev, p_dev->ahw->reset.start_offset); p_dev 2063 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (p_dev->ahw->reset.template_end != 1) p_dev 2064 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c dev_err(&p_dev->pdev->dev, "%s: failed\n", __func__); p_dev 2067 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c static void qlcnic_83xx_init_hw(struct qlcnic_adapter *p_dev) p_dev 2069 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_exec_template_cmd(p_dev, p_dev->ahw->reset.init_offset); p_dev 2070 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (p_dev->ahw->reset.seq_end != 1) p_dev 2071 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c dev_err(&p_dev->pdev->dev, "%s: failed\n", __func__); p_dev 99 drivers/net/ethernet/smsc/smc91c92_cs.c struct pcmcia_device *p_dev; p_dev 267 drivers/net/ethernet/smsc/smc91c92_cs.c static void smc91c92_detach(struct pcmcia_device *p_dev); p_dev 314 drivers/net/ethernet/smsc/smc91c92_cs.c smc->p_dev = link; p_dev 400 drivers/net/ethernet/smsc/smc91c92_cs.c static int mhz_mfc_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 403 drivers/net/ethernet/smsc/smc91c92_cs.c p_dev->io_lines = 16; p_dev 404 drivers/net/ethernet/smsc/smc91c92_cs.c p_dev->resource[1]->start = p_dev->resource[0]->start; p_dev 405 drivers/net/ethernet/smsc/smc91c92_cs.c p_dev->resource[1]->end = 8; p_dev 406 drivers/net/ethernet/smsc/smc91c92_cs.c p_dev->resource[1]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 407 drivers/net/ethernet/smsc/smc91c92_cs.c p_dev->resource[1]->flags |= IO_DATA_PATH_WIDTH_8; p_dev 408 drivers/net/ethernet/smsc/smc91c92_cs.c p_dev->resource[0]->end = 16; p_dev 409 drivers/net/ethernet/smsc/smc91c92_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 410 drivers/net/ethernet/smsc/smc91c92_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; p_dev 414 drivers/net/ethernet/smsc/smc91c92_cs.c p_dev->resource[0]->start = k ^ 0x300; p_dev 415 drivers/net/ethernet/smsc/smc91c92_cs.c if (!pcmcia_request_io(p_dev)) p_dev 457 drivers/net/ethernet/smsc/smc91c92_cs.c static int pcmcia_get_versmac(struct pcmcia_device *p_dev, p_dev 571 drivers/net/ethernet/smsc/smc91c92_cs.c static int smc_configcheck(struct pcmcia_device *p_dev, void *priv_data) p_dev 573 drivers/net/ethernet/smsc/smc91c92_cs.c p_dev->resource[0]->end = 16; p_dev 574 drivers/net/ethernet/smsc/smc91c92_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 575 drivers/net/ethernet/smsc/smc91c92_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; p_dev 577 drivers/net/ethernet/smsc/smc91c92_cs.c return pcmcia_request_io(p_dev); p_dev 664 drivers/net/ethernet/smsc/smc91c92_cs.c static int pcmcia_osi_mac(struct pcmcia_device *p_dev, p_dev 1050 drivers/net/ethernet/smsc/smc91c92_cs.c struct pcmcia_device *link = smc->p_dev; p_dev 1084 drivers/net/ethernet/smsc/smc91c92_cs.c struct pcmcia_device *link = smc->p_dev; p_dev 265 drivers/net/ethernet/xircom/xirc2ps_cs.c static void xirc2ps_detach(struct pcmcia_device *p_dev); p_dev 271 drivers/net/ethernet/xircom/xirc2ps_cs.c struct pcmcia_device *p_dev; p_dev 487 drivers/net/ethernet/xircom/xirc2ps_cs.c local->p_dev = link; p_dev 611 drivers/net/ethernet/xircom/xirc2ps_cs.c has_ce2_string(struct pcmcia_device * p_dev) p_dev 613 drivers/net/ethernet/xircom/xirc2ps_cs.c if (p_dev->prod_id[2] && strstr(p_dev->prod_id[2], "CE2")) p_dev 619 drivers/net/ethernet/xircom/xirc2ps_cs.c xirc2ps_config_modem(struct pcmcia_device *p_dev, void *priv_data) p_dev 623 drivers/net/ethernet/xircom/xirc2ps_cs.c if ((p_dev->resource[0]->start & 0xf) == 8) p_dev 626 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[0]->end = 16; p_dev 627 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[1]->end = 8; p_dev 628 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 629 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_16; p_dev 630 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[1]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 631 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[1]->flags |= IO_DATA_PATH_WIDTH_8; p_dev 632 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->io_lines = 10; p_dev 634 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[1]->start = p_dev->resource[0]->start; p_dev 636 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[0]->start = ioaddr; p_dev 637 drivers/net/ethernet/xircom/xirc2ps_cs.c if (!pcmcia_request_io(p_dev)) p_dev 644 drivers/net/ethernet/xircom/xirc2ps_cs.c xirc2ps_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 647 drivers/net/ethernet/xircom/xirc2ps_cs.c resource_size_t tmp = p_dev->resource[1]->start; p_dev 649 drivers/net/ethernet/xircom/xirc2ps_cs.c tmp += (*pass ? (p_dev->config_index & 0x20 ? -24 : 8) p_dev 650 drivers/net/ethernet/xircom/xirc2ps_cs.c : (p_dev->config_index & 0x20 ? 8 : -24)); p_dev 652 drivers/net/ethernet/xircom/xirc2ps_cs.c if ((p_dev->resource[0]->start & 0xf) == 8) p_dev 655 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[0]->end = 18; p_dev 656 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[1]->end = 8; p_dev 657 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 658 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_16; p_dev 659 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[1]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 660 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[1]->flags |= IO_DATA_PATH_WIDTH_8; p_dev 661 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->io_lines = 10; p_dev 663 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[1]->start = p_dev->resource[0]->start; p_dev 664 drivers/net/ethernet/xircom/xirc2ps_cs.c p_dev->resource[0]->start = tmp; p_dev 665 drivers/net/ethernet/xircom/xirc2ps_cs.c return pcmcia_request_io(p_dev); p_dev 669 drivers/net/ethernet/xircom/xirc2ps_cs.c static int pcmcia_get_mac_ce(struct pcmcia_device *p_dev, p_dev 1390 drivers/net/ethernet/xircom/xirc2ps_cs.c struct pcmcia_device *link = lp->p_dev; p_dev 1718 drivers/net/ethernet/xircom/xirc2ps_cs.c struct pcmcia_device *link = lp->p_dev; p_dev 67 drivers/net/wireless/atmel/atmel_cs.c static void atmel_detach(struct pcmcia_device *p_dev); p_dev 73 drivers/net/wireless/atmel/atmel_cs.c static int atmel_probe(struct pcmcia_device *p_dev) p_dev 77 drivers/net/wireless/atmel/atmel_cs.c dev_dbg(&p_dev->dev, "atmel_attach()\n"); p_dev 84 drivers/net/wireless/atmel/atmel_cs.c p_dev->priv = local; p_dev 86 drivers/net/wireless/atmel/atmel_cs.c return atmel_config(p_dev); p_dev 110 drivers/net/wireless/atmel/atmel_cs.c static int atmel_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 112 drivers/net/wireless/atmel/atmel_cs.c if (p_dev->config_index == 0) p_dev 115 drivers/net/wireless/atmel/atmel_cs.c return pcmcia_request_io(p_dev); p_dev 57 drivers/net/wireless/cisco/airo_cs.c static void airo_detach(struct pcmcia_device *p_dev); p_dev 63 drivers/net/wireless/cisco/airo_cs.c static int airo_probe(struct pcmcia_device *p_dev) p_dev 67 drivers/net/wireless/cisco/airo_cs.c dev_dbg(&p_dev->dev, "airo_attach()\n"); p_dev 74 drivers/net/wireless/cisco/airo_cs.c p_dev->priv = local; p_dev 76 drivers/net/wireless/cisco/airo_cs.c return airo_config(p_dev); p_dev 94 drivers/net/wireless/cisco/airo_cs.c static int airo_cs_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 96 drivers/net/wireless/cisco/airo_cs.c if (p_dev->config_index == 0) p_dev 99 drivers/net/wireless/cisco/airo_cs.c return pcmcia_request_io(p_dev); p_dev 200 drivers/net/wireless/intersil/hostap/hostap_cs.c static void prism2_detach(struct pcmcia_device *p_dev); p_dev 429 drivers/net/wireless/intersil/hostap/hostap_cs.c static int hostap_cs_probe(struct pcmcia_device *p_dev) p_dev 435 drivers/net/wireless/intersil/hostap/hostap_cs.c ret = prism2_config(p_dev); p_dev 464 drivers/net/wireless/intersil/hostap/hostap_cs.c static int prism2_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 466 drivers/net/wireless/intersil/hostap/hostap_cs.c if (p_dev->config_index == 0) p_dev 469 drivers/net/wireless/intersil/hostap/hostap_cs.c return pcmcia_request_io(p_dev); p_dev 49 drivers/net/wireless/intersil/orinoco/orinoco_cs.c struct pcmcia_device *p_dev; p_dev 64 drivers/net/wireless/intersil/orinoco/orinoco_cs.c static void orinoco_cs_detach(struct pcmcia_device *p_dev); p_dev 74 drivers/net/wireless/intersil/orinoco/orinoco_cs.c struct pcmcia_device *link = card->p_dev; p_dev 107 drivers/net/wireless/intersil/orinoco/orinoco_cs.c card->p_dev = link; p_dev 125 drivers/net/wireless/intersil/orinoco/orinoco_cs.c static int orinoco_cs_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 127 drivers/net/wireless/intersil/orinoco/orinoco_cs.c if (p_dev->config_index == 0) p_dev 130 drivers/net/wireless/intersil/orinoco/orinoco_cs.c return pcmcia_request_io(p_dev); p_dev 56 drivers/net/wireless/intersil/orinoco/spectrum_cs.c struct pcmcia_device *p_dev; p_dev 134 drivers/net/wireless/intersil/orinoco/spectrum_cs.c struct pcmcia_device *link = card->p_dev; p_dev 146 drivers/net/wireless/intersil/orinoco/spectrum_cs.c struct pcmcia_device *link = card->p_dev; p_dev 169 drivers/net/wireless/intersil/orinoco/spectrum_cs.c card->p_dev = link; p_dev 186 drivers/net/wireless/intersil/orinoco/spectrum_cs.c static int spectrum_cs_config_check(struct pcmcia_device *p_dev, p_dev 189 drivers/net/wireless/intersil/orinoco/spectrum_cs.c if (p_dev->config_index == 0) p_dev 192 drivers/net/wireless/intersil/orinoco/spectrum_cs.c return pcmcia_request_io(p_dev); p_dev 47 drivers/net/wireless/marvell/libertas/if_cs.c struct pcmcia_device *p_dev; p_dev 725 drivers/net/wireless/marvell/libertas/if_cs.c ret = request_irq(card->p_dev->irq, if_cs_interrupt, p_dev 743 drivers/net/wireless/marvell/libertas/if_cs.c free_irq(card->p_dev->irq, card); p_dev 779 drivers/net/wireless/marvell/libertas/if_cs.c static void if_cs_release(struct pcmcia_device *p_dev) p_dev 781 drivers/net/wireless/marvell/libertas/if_cs.c struct if_cs_card *card = p_dev->priv; p_dev 783 drivers/net/wireless/marvell/libertas/if_cs.c free_irq(p_dev->irq, card); p_dev 784 drivers/net/wireless/marvell/libertas/if_cs.c pcmcia_disable_device(p_dev); p_dev 790 drivers/net/wireless/marvell/libertas/if_cs.c static int if_cs_ioprobe(struct pcmcia_device *p_dev, void *priv_data) p_dev 792 drivers/net/wireless/marvell/libertas/if_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 793 drivers/net/wireless/marvell/libertas/if_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; p_dev 795 drivers/net/wireless/marvell/libertas/if_cs.c if (p_dev->resource[1]->end) { p_dev 801 drivers/net/wireless/marvell/libertas/if_cs.c return pcmcia_request_io(p_dev); p_dev 804 drivers/net/wireless/marvell/libertas/if_cs.c static int if_cs_probe(struct pcmcia_device *p_dev) p_dev 815 drivers/net/wireless/marvell/libertas/if_cs.c card->p_dev = p_dev; p_dev 816 drivers/net/wireless/marvell/libertas/if_cs.c p_dev->priv = card; p_dev 818 drivers/net/wireless/marvell/libertas/if_cs.c p_dev->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO; p_dev 820 drivers/net/wireless/marvell/libertas/if_cs.c if (pcmcia_loop_config(p_dev, if_cs_ioprobe, NULL)) { p_dev 830 drivers/net/wireless/marvell/libertas/if_cs.c if (!p_dev->irq) p_dev 834 drivers/net/wireless/marvell/libertas/if_cs.c card->iobase = ioport_map(p_dev->resource[0]->start, p_dev 835 drivers/net/wireless/marvell/libertas/if_cs.c resource_size(p_dev->resource[0])); p_dev 842 drivers/net/wireless/marvell/libertas/if_cs.c ret = pcmcia_enable_device(p_dev); p_dev 849 drivers/net/wireless/marvell/libertas/if_cs.c lbs_deb_cs("irq %d, io %pR", p_dev->irq, p_dev->resource[0]); p_dev 857 drivers/net/wireless/marvell/libertas/if_cs.c card->model = get_model(p_dev->manf_id, p_dev->card_id); p_dev 860 drivers/net/wireless/marvell/libertas/if_cs.c p_dev->manf_id, p_dev->card_id); p_dev 889 drivers/net/wireless/marvell/libertas/if_cs.c priv = lbs_add_card(card, &p_dev->dev); p_dev 904 drivers/net/wireless/marvell/libertas/if_cs.c ret = lbs_get_firmware_async(priv, &p_dev->dev, card->model, fw_table, p_dev 918 drivers/net/wireless/marvell/libertas/if_cs.c pcmcia_disable_device(p_dev); p_dev 924 drivers/net/wireless/marvell/libertas/if_cs.c static void if_cs_detach(struct pcmcia_device *p_dev) p_dev 926 drivers/net/wireless/marvell/libertas/if_cs.c struct if_cs_card *card = p_dev->priv; p_dev 931 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_release(p_dev); p_dev 59 drivers/net/wireless/ray_cs.c static void ray_detach(struct pcmcia_device *p_dev); p_dev 269 drivers/net/wireless/ray_cs.c static int ray_probe(struct pcmcia_device *p_dev) p_dev 274 drivers/net/wireless/ray_cs.c dev_dbg(&p_dev->dev, "ray_attach()\n"); p_dev 282 drivers/net/wireless/ray_cs.c local->finder = p_dev; p_dev 285 drivers/net/wireless/ray_cs.c p_dev->resource[0]->end = 0; p_dev 286 drivers/net/wireless/ray_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; p_dev 289 drivers/net/wireless/ray_cs.c p_dev->config_flags |= CONF_ENABLE_IRQ; p_dev 290 drivers/net/wireless/ray_cs.c p_dev->config_index = 1; p_dev 292 drivers/net/wireless/ray_cs.c p_dev->priv = dev; p_dev 294 drivers/net/wireless/ray_cs.c local->finder = p_dev; p_dev 298 drivers/net/wireless/ray_cs.c dev_dbg(&p_dev->dev, "ray_attach p_dev = %p, dev = %p, local = %p, intr = %p\n", p_dev 299 drivers/net/wireless/ray_cs.c p_dev, dev, local, &ray_interrupt); p_dev 310 drivers/net/wireless/ray_cs.c dev_dbg(&p_dev->dev, "ray_cs ray_attach calling ether_setup.)\n"); p_dev 315 drivers/net/wireless/ray_cs.c this_device = p_dev; p_dev 316 drivers/net/wireless/ray_cs.c return ray_config(p_dev); p_dev 614 drivers/net/wireless/wl3501.h struct pcmcia_device *p_dev; p_dev 1231 drivers/net/wireless/wl3501_cs.c link = this->p_dev; p_dev 1342 drivers/net/wireless/wl3501_cs.c link = this->p_dev; p_dev 1859 drivers/net/wireless/wl3501_cs.c static int wl3501_probe(struct pcmcia_device *p_dev) p_dev 1865 drivers/net/wireless/wl3501_cs.c p_dev->resource[0]->end = 16; p_dev 1866 drivers/net/wireless/wl3501_cs.c p_dev->resource[0]->flags = IO_DATA_PATH_WIDTH_8; p_dev 1869 drivers/net/wireless/wl3501_cs.c p_dev->config_flags = CONF_ENABLE_IRQ; p_dev 1870 drivers/net/wireless/wl3501_cs.c p_dev->config_index = 1; p_dev 1882 drivers/net/wireless/wl3501_cs.c this->p_dev = p_dev; p_dev 1886 drivers/net/wireless/wl3501_cs.c p_dev->priv = dev; p_dev 1888 drivers/net/wireless/wl3501_cs.c return wl3501_config(p_dev); p_dev 74 drivers/parport/parport_cs.c struct pcmcia_device *p_dev; p_dev 79 drivers/parport/parport_cs.c static void parport_detach(struct pcmcia_device *p_dev); p_dev 93 drivers/parport/parport_cs.c info->p_dev = link; p_dev 109 drivers/parport/parport_cs.c static int parport_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 111 drivers/parport/parport_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 112 drivers/parport/parport_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; p_dev 113 drivers/parport/parport_cs.c p_dev->resource[1]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 114 drivers/parport/parport_cs.c p_dev->resource[1]->flags |= IO_DATA_PATH_WIDTH_8; p_dev 116 drivers/parport/parport_cs.c return pcmcia_request_io(p_dev); p_dev 140 drivers/pcmcia/cs_internal.h extern int pcmcia_release_configuration(struct pcmcia_device *p_dev); p_dev 149 drivers/pcmcia/cs_internal.h int pcmcia_setup_irq(struct pcmcia_device *p_dev); p_dev 215 drivers/pcmcia/ds.c static struct pcmcia_device *pcmcia_get_dev(struct pcmcia_device *p_dev) p_dev 218 drivers/pcmcia/ds.c tmp_dev = get_device(&p_dev->dev); p_dev 224 drivers/pcmcia/ds.c static void pcmcia_put_dev(struct pcmcia_device *p_dev) p_dev 226 drivers/pcmcia/ds.c if (p_dev) p_dev 227 drivers/pcmcia/ds.c put_device(&p_dev->dev); p_dev 239 drivers/pcmcia/ds.c struct pcmcia_device *p_dev = to_pcmcia_dev(dev); p_dev 242 drivers/pcmcia/ds.c pcmcia_put_socket(p_dev->socket); p_dev 244 drivers/pcmcia/ds.c kfree(p_dev->prod_id[i]); p_dev 245 drivers/pcmcia/ds.c kfree(p_dev->devname); p_dev 246 drivers/pcmcia/ds.c kref_put(&p_dev->function_config->ref, pcmcia_release_function); p_dev 247 drivers/pcmcia/ds.c kfree(p_dev); p_dev 253 drivers/pcmcia/ds.c struct pcmcia_device *p_dev; p_dev 263 drivers/pcmcia/ds.c p_dev = to_pcmcia_dev(dev); p_dev 265 drivers/pcmcia/ds.c s = p_dev->socket; p_dev 269 drivers/pcmcia/ds.c if ((!p_drv->probe) || (!p_dev->function_config) || p_dev 276 drivers/pcmcia/ds.c ret = pccard_read_tuple(p_dev->socket, p_dev->func, CISTPL_CONFIG, p_dev 279 drivers/pcmcia/ds.c p_dev->config_base = cis_config.base; p_dev 280 drivers/pcmcia/ds.c p_dev->config_regs = cis_config.rmask[0]; p_dev 281 drivers/pcmcia/ds.c dev_dbg(dev, "base %x, regs %x", p_dev->config_base, p_dev 282 drivers/pcmcia/ds.c p_dev->config_regs); p_dev 286 drivers/pcmcia/ds.c p_dev->config_base = 0; p_dev 287 drivers/pcmcia/ds.c p_dev->config_regs = 0; p_dev 290 drivers/pcmcia/ds.c ret = p_drv->probe(p_dev); p_dev 297 drivers/pcmcia/ds.c p_dev->vpp/10, p_dev->vpp%10, p_dev->config_index, p_dev->irq); p_dev 299 drivers/pcmcia/ds.c p_dev->resource[0], p_dev->resource[1], p_dev->resource[2], p_dev 300 drivers/pcmcia/ds.c p_dev->resource[3], p_dev->resource[4]); p_dev 304 drivers/pcmcia/ds.c (p_dev->socket->device_count == 1) && (p_dev->device_no == 0)) p_dev 323 drivers/pcmcia/ds.c struct pcmcia_device *p_dev; p_dev 338 drivers/pcmcia/ds.c list_for_each_entry_safe(p_dev, tmp, &s->devices_list, socket_device_list) { p_dev 339 drivers/pcmcia/ds.c if (p_dev == leftover) p_dev 343 drivers/pcmcia/ds.c list_del(&p_dev->socket_device_list); p_dev 346 drivers/pcmcia/ds.c dev_dbg(&p_dev->dev, "unregistering device\n"); p_dev 347 drivers/pcmcia/ds.c device_unregister(&p_dev->dev); p_dev 355 drivers/pcmcia/ds.c struct pcmcia_device *p_dev; p_dev 359 drivers/pcmcia/ds.c p_dev = to_pcmcia_dev(dev); p_dev 368 drivers/pcmcia/ds.c if ((p_dev->socket->pcmcia_pfc) && p_dev 369 drivers/pcmcia/ds.c (p_dev->socket->device_count > 0) && p_dev 370 drivers/pcmcia/ds.c (p_dev->device_no == 0)) p_dev 371 drivers/pcmcia/ds.c pcmcia_card_remove(p_dev->socket, p_dev); p_dev 378 drivers/pcmcia/ds.c p_drv->remove(p_dev); p_dev 381 drivers/pcmcia/ds.c if (p_dev->_irq || p_dev->_io || p_dev->_locked) p_dev 387 drivers/pcmcia/ds.c if (p_dev->_win & CLIENT_WIN_REQ(i)) p_dev 393 drivers/pcmcia/ds.c pcmcia_put_dev(p_dev); p_dev 403 drivers/pcmcia/ds.c static int pcmcia_device_query(struct pcmcia_device *p_dev) p_dev 414 drivers/pcmcia/ds.c if (!pccard_read_tuple(p_dev->socket, BIND_FN_ALL, p_dev 416 drivers/pcmcia/ds.c mutex_lock(&p_dev->socket->ops_mutex); p_dev 417 drivers/pcmcia/ds.c p_dev->manf_id = manf_id.manf; p_dev 418 drivers/pcmcia/ds.c p_dev->card_id = manf_id.card; p_dev 419 drivers/pcmcia/ds.c p_dev->has_manf_id = 1; p_dev 420 drivers/pcmcia/ds.c p_dev->has_card_id = 1; p_dev 421 drivers/pcmcia/ds.c mutex_unlock(&p_dev->socket->ops_mutex); p_dev 424 drivers/pcmcia/ds.c if (!pccard_read_tuple(p_dev->socket, p_dev->func, p_dev 426 drivers/pcmcia/ds.c mutex_lock(&p_dev->socket->ops_mutex); p_dev 427 drivers/pcmcia/ds.c p_dev->func_id = func_id.func; p_dev 428 drivers/pcmcia/ds.c p_dev->has_func_id = 1; p_dev 429 drivers/pcmcia/ds.c mutex_unlock(&p_dev->socket->ops_mutex); p_dev 441 drivers/pcmcia/ds.c if (!pccard_read_tuple(p_dev->socket, p_dev->func, p_dev 443 drivers/pcmcia/ds.c dev_dbg(&p_dev->dev, p_dev 446 drivers/pcmcia/ds.c mutex_lock(&p_dev->socket->ops_mutex); p_dev 447 drivers/pcmcia/ds.c p_dev->func_id = CISTPL_FUNCID_MEMORY; p_dev 448 drivers/pcmcia/ds.c p_dev->has_func_id = 1; p_dev 449 drivers/pcmcia/ds.c mutex_unlock(&p_dev->socket->ops_mutex); p_dev 454 drivers/pcmcia/ds.c if (!pccard_read_tuple(p_dev->socket, BIND_FN_ALL, CISTPL_VERS_1, p_dev 456 drivers/pcmcia/ds.c mutex_lock(&p_dev->socket->ops_mutex); p_dev 472 drivers/pcmcia/ds.c tmp = p_dev->prod_id[i]; p_dev 473 drivers/pcmcia/ds.c p_dev->prod_id[i] = new; p_dev 476 drivers/pcmcia/ds.c mutex_unlock(&p_dev->socket->ops_mutex); p_dev 487 drivers/pcmcia/ds.c struct pcmcia_device *p_dev, *tmp_dev; p_dev 496 drivers/pcmcia/ds.c p_dev = kzalloc(sizeof(struct pcmcia_device), GFP_KERNEL); p_dev 497 drivers/pcmcia/ds.c if (!p_dev) p_dev 501 drivers/pcmcia/ds.c p_dev->device_no = (s->device_count++); p_dev 505 drivers/pcmcia/ds.c if ((p_dev->device_no >= 2) && (function == 0)) p_dev 509 drivers/pcmcia/ds.c if (p_dev->device_no >= 4) p_dev 512 drivers/pcmcia/ds.c p_dev->socket = s; p_dev 513 drivers/pcmcia/ds.c p_dev->func = function; p_dev 515 drivers/pcmcia/ds.c p_dev->dev.bus = &pcmcia_bus_type; p_dev 516 drivers/pcmcia/ds.c p_dev->dev.parent = s->dev.parent; p_dev 517 drivers/pcmcia/ds.c p_dev->dev.release = pcmcia_release_dev; p_dev 519 drivers/pcmcia/ds.c p_dev->dma_mask = DMA_MASK_NONE; p_dev 520 drivers/pcmcia/ds.c p_dev->dev.dma_mask = &p_dev->dma_mask; p_dev 521 drivers/pcmcia/ds.c dev_set_name(&p_dev->dev, "%d.%d", p_dev->socket->sock, p_dev->device_no); p_dev 522 drivers/pcmcia/ds.c if (!dev_name(&p_dev->dev)) p_dev 524 drivers/pcmcia/ds.c p_dev->devname = kasprintf(GFP_KERNEL, "pcmcia%s", dev_name(&p_dev->dev)); p_dev 525 drivers/pcmcia/ds.c if (!p_dev->devname) p_dev 527 drivers/pcmcia/ds.c dev_dbg(&p_dev->dev, "devname is %s\n", p_dev->devname); p_dev 537 drivers/pcmcia/ds.c if (p_dev->func == tmp_dev->func) { p_dev 538 drivers/pcmcia/ds.c p_dev->function_config = tmp_dev->function_config; p_dev 539 drivers/pcmcia/ds.c p_dev->irq = tmp_dev->irq; p_dev 540 drivers/pcmcia/ds.c kref_get(&p_dev->function_config->ref); p_dev 544 drivers/pcmcia/ds.c list_add(&p_dev->socket_device_list, &s->devices_list); p_dev 546 drivers/pcmcia/ds.c if (pcmcia_setup_irq(p_dev)) p_dev 547 drivers/pcmcia/ds.c dev_warn(&p_dev->dev, p_dev 550 drivers/pcmcia/ds.c if (!p_dev->function_config) { p_dev 552 drivers/pcmcia/ds.c dev_dbg(&p_dev->dev, "creating config_t\n"); p_dev 558 drivers/pcmcia/ds.c p_dev->function_config = c; p_dev 561 drivers/pcmcia/ds.c c->io[i].name = p_dev->devname; p_dev 565 drivers/pcmcia/ds.c c->mem[i].name = p_dev->devname; p_dev 570 drivers/pcmcia/ds.c p_dev->resource[i] = &p_dev->function_config->io[i]; p_dev 572 drivers/pcmcia/ds.c p_dev->resource[i] = &p_dev->function_config->mem[i-MAX_IO_WIN]; p_dev 576 drivers/pcmcia/ds.c dev_notice(&p_dev->dev, "pcmcia: registering new device %s (IRQ: %d)\n", p_dev 577 drivers/pcmcia/ds.c p_dev->devname, p_dev->irq); p_dev 579 drivers/pcmcia/ds.c pcmcia_device_query(p_dev); p_dev 581 drivers/pcmcia/ds.c if (device_register(&p_dev->dev)) p_dev 584 drivers/pcmcia/ds.c return p_dev; p_dev 588 drivers/pcmcia/ds.c list_del(&p_dev->socket_device_list); p_dev 597 drivers/pcmcia/ds.c kfree(p_dev->prod_id[i]); p_dev 598 drivers/pcmcia/ds.c kfree(p_dev->devname); p_dev 599 drivers/pcmcia/ds.c kfree(p_dev); p_dev 666 drivers/pcmcia/ds.c struct pcmcia_device *p_dev = to_pcmcia_dev(dev); p_dev 667 drivers/pcmcia/ds.c if (!p_dev->dev.driver) { p_dev 669 drivers/pcmcia/ds.c pcmcia_device_query(p_dev); p_dev 906 drivers/pcmcia/ds.c struct pcmcia_device *p_dev = to_pcmcia_dev(dev); p_dev 915 drivers/pcmcia/ds.c if (pcmcia_devmatch(p_dev, &dynid->id)) { p_dev 925 drivers/pcmcia/ds.c if (pcmcia_devmatch(p_dev, did)) { p_dev 937 drivers/pcmcia/ds.c struct pcmcia_device *p_dev; p_dev 944 drivers/pcmcia/ds.c p_dev = to_pcmcia_dev(dev); p_dev 948 drivers/pcmcia/ds.c if (!p_dev->prod_id[i]) p_dev 950 drivers/pcmcia/ds.c hash[i] = crc32(0, p_dev->prod_id[i], strlen(p_dev->prod_id[i])); p_dev 953 drivers/pcmcia/ds.c if (add_uevent_var(env, "SOCKET_NO=%u", p_dev->socket->sock)) p_dev 956 drivers/pcmcia/ds.c if (add_uevent_var(env, "DEVICE_NO=%02X", p_dev->device_no)) p_dev 961 drivers/pcmcia/ds.c p_dev->has_manf_id ? p_dev->manf_id : 0, p_dev 962 drivers/pcmcia/ds.c p_dev->has_card_id ? p_dev->card_id : 0, p_dev 963 drivers/pcmcia/ds.c p_dev->has_func_id ? p_dev->func_id : 0, p_dev 964 drivers/pcmcia/ds.c p_dev->func, p_dev 965 drivers/pcmcia/ds.c p_dev->device_no, p_dev 1005 drivers/pcmcia/ds.c struct pcmcia_device *p_dev = to_pcmcia_dev(dev); \ p_dev 1006 drivers/pcmcia/ds.c return p_dev->test ? sprintf(buf, format, p_dev->field) : -ENODEV; \ p_dev 1013 drivers/pcmcia/ds.c struct pcmcia_device *p_dev = to_pcmcia_dev(dev); \ p_dev 1014 drivers/pcmcia/ds.c return p_dev->field ? sprintf(buf, "%s\n", p_dev->field) : -ENODEV; \ p_dev 1029 drivers/pcmcia/ds.c struct pcmcia_device *p_dev = to_pcmcia_dev(dev); p_dev 1030 drivers/pcmcia/ds.c return p_dev->socket ? sprintf(buf, "0x%02x\n", p_dev->func) : -ENODEV; p_dev 1037 drivers/pcmcia/ds.c struct pcmcia_device *p_dev = to_pcmcia_dev(dev); p_dev 1042 drivers/pcmcia/ds.c str += sprintf(str, "%pr\n", p_dev->resource[i]); p_dev 1050 drivers/pcmcia/ds.c struct pcmcia_device *p_dev = to_pcmcia_dev(dev); p_dev 1052 drivers/pcmcia/ds.c if (p_dev->suspended) p_dev 1061 drivers/pcmcia/ds.c struct pcmcia_device *p_dev = to_pcmcia_dev(dev); p_dev 1067 drivers/pcmcia/ds.c if ((!p_dev->suspended) && !strncmp(buf, "off", 3)) p_dev 1069 drivers/pcmcia/ds.c else if (p_dev->suspended && !strncmp(buf, "on", 2)) p_dev 1078 drivers/pcmcia/ds.c struct pcmcia_device *p_dev = to_pcmcia_dev(dev); p_dev 1084 drivers/pcmcia/ds.c if (!p_dev->prod_id[i]) p_dev 1086 drivers/pcmcia/ds.c hash[i] = crc32(0, p_dev->prod_id[i], p_dev 1087 drivers/pcmcia/ds.c strlen(p_dev->prod_id[i])); p_dev 1091 drivers/pcmcia/ds.c p_dev->has_manf_id ? p_dev->manf_id : 0, p_dev 1092 drivers/pcmcia/ds.c p_dev->has_card_id ? p_dev->card_id : 0, p_dev 1093 drivers/pcmcia/ds.c p_dev->has_func_id ? p_dev->func_id : 0, p_dev 1094 drivers/pcmcia/ds.c p_dev->func, p_dev->device_no, p_dev 1102 drivers/pcmcia/ds.c struct pcmcia_device *p_dev = to_pcmcia_dev(dev); p_dev 1107 drivers/pcmcia/ds.c mutex_lock(&p_dev->socket->ops_mutex); p_dev 1108 drivers/pcmcia/ds.c p_dev->allow_func_id_match = 1; p_dev 1109 drivers/pcmcia/ds.c mutex_unlock(&p_dev->socket->ops_mutex); p_dev 1110 drivers/pcmcia/ds.c pcmcia_parse_uevents(p_dev->socket, PCMCIA_UEVENT_REQUERY); p_dev 1137 drivers/pcmcia/ds.c struct pcmcia_device *p_dev = to_pcmcia_dev(dev); p_dev 1141 drivers/pcmcia/ds.c mutex_lock(&p_dev->socket->ops_mutex); p_dev 1142 drivers/pcmcia/ds.c if (p_dev->suspended) { p_dev 1143 drivers/pcmcia/ds.c mutex_unlock(&p_dev->socket->ops_mutex); p_dev 1146 drivers/pcmcia/ds.c p_dev->suspended = 1; p_dev 1147 drivers/pcmcia/ds.c mutex_unlock(&p_dev->socket->ops_mutex); p_dev 1158 drivers/pcmcia/ds.c ret = p_drv->suspend(p_dev); p_dev 1162 drivers/pcmcia/ds.c p_dev->devname, p_drv->name, ret); p_dev 1163 drivers/pcmcia/ds.c mutex_lock(&p_dev->socket->ops_mutex); p_dev 1164 drivers/pcmcia/ds.c p_dev->suspended = 0; p_dev 1165 drivers/pcmcia/ds.c mutex_unlock(&p_dev->socket->ops_mutex); p_dev 1170 drivers/pcmcia/ds.c if (p_dev->device_no == p_dev->func) { p_dev 1172 drivers/pcmcia/ds.c pcmcia_release_configuration(p_dev); p_dev 1182 drivers/pcmcia/ds.c struct pcmcia_device *p_dev = to_pcmcia_dev(dev); p_dev 1186 drivers/pcmcia/ds.c mutex_lock(&p_dev->socket->ops_mutex); p_dev 1187 drivers/pcmcia/ds.c if (!p_dev->suspended) { p_dev 1188 drivers/pcmcia/ds.c mutex_unlock(&p_dev->socket->ops_mutex); p_dev 1191 drivers/pcmcia/ds.c p_dev->suspended = 0; p_dev 1192 drivers/pcmcia/ds.c mutex_unlock(&p_dev->socket->ops_mutex); p_dev 1202 drivers/pcmcia/ds.c if (p_dev->device_no == p_dev->func) { p_dev 1204 drivers/pcmcia/ds.c ret = pcmcia_enable_device(p_dev); p_dev 1210 drivers/pcmcia/ds.c ret = p_drv->resume(p_dev); p_dev 1220 drivers/pcmcia/ds.c struct pcmcia_device *p_dev = to_pcmcia_dev(dev); p_dev 1222 drivers/pcmcia/ds.c if (p_dev->socket != skt || p_dev->suspended) p_dev 1231 drivers/pcmcia/ds.c struct pcmcia_device *p_dev = to_pcmcia_dev(dev); p_dev 1233 drivers/pcmcia/ds.c if (p_dev->socket != skt || !p_dev->suspended) p_dev 1318 drivers/pcmcia/ds.c struct pcmcia_device *p_dev; p_dev 1321 drivers/pcmcia/ds.c p_dev = pcmcia_get_dev(_p_dev); p_dev 1322 drivers/pcmcia/ds.c if (!p_dev) p_dev 1325 drivers/pcmcia/ds.c if (atomic_read(&p_dev->socket->present) != 0) p_dev 1326 drivers/pcmcia/ds.c ret = p_dev; p_dev 1328 drivers/pcmcia/ds.c pcmcia_put_dev(p_dev); p_dev 139 drivers/pcmcia/pcmcia_cis.c struct pcmcia_device *p_dev; p_dev 140 drivers/pcmcia/pcmcia_cis.c int (*conf_check) (struct pcmcia_device *p_dev, void *priv_data); p_dev 156 drivers/pcmcia/pcmcia_cis.c struct pcmcia_device *p_dev = cfg_mem->p_dev; p_dev 159 drivers/pcmcia/pcmcia_cis.c unsigned int flags = p_dev->config_flags; p_dev 160 drivers/pcmcia/pcmcia_cis.c unsigned int vcc = p_dev->socket->socket.Vcc; p_dev 162 drivers/pcmcia/pcmcia_cis.c dev_dbg(&p_dev->dev, "testing configuration %x, autoconf %x\n", p_dev 166 drivers/pcmcia/pcmcia_cis.c cfg_mem->p_dev->config_index = cfg->index; p_dev 184 drivers/pcmcia/pcmcia_cis.c p_dev->vpp = cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; p_dev 186 drivers/pcmcia/pcmcia_cis.c p_dev->vpp = p_dev 192 drivers/pcmcia/pcmcia_cis.c p_dev->config_flags |= CONF_ENABLE_SPKR; p_dev 200 drivers/pcmcia/pcmcia_cis.c p_dev->resource[0]->start = p_dev->resource[0]->end = 0; p_dev 201 drivers/pcmcia/pcmcia_cis.c p_dev->resource[1]->start = p_dev->resource[1]->end = 0; p_dev 205 drivers/pcmcia/pcmcia_cis.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 206 drivers/pcmcia/pcmcia_cis.c p_dev->resource[0]->flags |= p_dev 213 drivers/pcmcia/pcmcia_cis.c p_dev->resource[1]->flags = p_dev->resource[0]->flags; p_dev 214 drivers/pcmcia/pcmcia_cis.c p_dev->resource[1]->start = io->win[1-i].base; p_dev 215 drivers/pcmcia/pcmcia_cis.c p_dev->resource[1]->end = io->win[1-i].len; p_dev 217 drivers/pcmcia/pcmcia_cis.c p_dev->resource[0]->start = io->win[i].base; p_dev 218 drivers/pcmcia/pcmcia_cis.c p_dev->resource[0]->end = io->win[i].len; p_dev 219 drivers/pcmcia/pcmcia_cis.c p_dev->io_lines = io->flags & CISTPL_IO_LINES_MASK; p_dev 227 drivers/pcmcia/pcmcia_cis.c p_dev->resource[2]->start = p_dev->resource[2]->end = 0; p_dev 231 drivers/pcmcia/pcmcia_cis.c p_dev->resource[2]->start = mem->win[0].host_addr; p_dev 232 drivers/pcmcia/pcmcia_cis.c p_dev->resource[2]->end = mem->win[0].len; p_dev 233 drivers/pcmcia/pcmcia_cis.c if (p_dev->resource[2]->end < 0x1000) p_dev 234 drivers/pcmcia/pcmcia_cis.c p_dev->resource[2]->end = 0x1000; p_dev 235 drivers/pcmcia/pcmcia_cis.c p_dev->card_addr = mem->win[0].card_addr; p_dev 238 drivers/pcmcia/pcmcia_cis.c dev_dbg(&p_dev->dev, p_dev 240 drivers/pcmcia/pcmcia_cis.c p_dev->config_index, p_dev->resource[0], p_dev->resource[1], p_dev 241 drivers/pcmcia/pcmcia_cis.c p_dev->resource[2], p_dev->io_lines); p_dev 243 drivers/pcmcia/pcmcia_cis.c return cfg_mem->conf_check(p_dev, cfg_mem->priv_data); p_dev 258 drivers/pcmcia/pcmcia_cis.c int pcmcia_loop_config(struct pcmcia_device *p_dev, p_dev 259 drivers/pcmcia/pcmcia_cis.c int (*conf_check) (struct pcmcia_device *p_dev, p_dev 270 drivers/pcmcia/pcmcia_cis.c cfg_mem->p_dev = p_dev; p_dev 274 drivers/pcmcia/pcmcia_cis.c ret = pccard_loop_tuple(p_dev->socket, p_dev->func, p_dev 285 drivers/pcmcia/pcmcia_cis.c struct pcmcia_device *p_dev; p_dev 287 drivers/pcmcia/pcmcia_cis.c int (*loop_tuple) (struct pcmcia_device *p_dev, p_dev 303 drivers/pcmcia/pcmcia_cis.c return loop->loop_tuple(loop->p_dev, tuple, loop->priv_data); p_dev 318 drivers/pcmcia/pcmcia_cis.c int pcmcia_loop_tuple(struct pcmcia_device *p_dev, cisdata_t code, p_dev 319 drivers/pcmcia/pcmcia_cis.c int (*loop_tuple) (struct pcmcia_device *p_dev, p_dev 325 drivers/pcmcia/pcmcia_cis.c .p_dev = p_dev, p_dev 329 drivers/pcmcia/pcmcia_cis.c return pccard_loop_tuple(p_dev->socket, p_dev->func, code, NULL, p_dev 349 drivers/pcmcia/pcmcia_cis.c static int pcmcia_do_get_tuple(struct pcmcia_device *p_dev, tuple_t *tuple, p_dev 359 drivers/pcmcia/pcmcia_cis.c dev_dbg(&p_dev->dev, "do_get_tuple: out of memory\n"); p_dev 373 drivers/pcmcia/pcmcia_cis.c size_t pcmcia_get_tuple(struct pcmcia_device *p_dev, cisdata_t code, p_dev 382 drivers/pcmcia/pcmcia_cis.c pcmcia_loop_tuple(p_dev, code, pcmcia_do_get_tuple, &get); p_dev 397 drivers/pcmcia/pcmcia_cis.c static int pcmcia_do_get_mac(struct pcmcia_device *p_dev, tuple_t *tuple, p_dev 406 drivers/pcmcia/pcmcia_cis.c dev_warn(&p_dev->dev, "Invalid CIS tuple length for " p_dev 412 drivers/pcmcia/pcmcia_cis.c dev_warn(&p_dev->dev, "Invalid header for LAN_NODE_ID\n"); p_dev 429 drivers/pcmcia/pcmcia_cis.c int pcmcia_get_mac_from_cis(struct pcmcia_device *p_dev, struct net_device *dev) p_dev 431 drivers/pcmcia/pcmcia_cis.c return pcmcia_loop_tuple(p_dev, CISTPL_FUNCE, pcmcia_do_get_mac, dev); p_dev 155 drivers/pcmcia/pcmcia_resource.c static int pcmcia_access_config(struct pcmcia_device *p_dev, p_dev 166 drivers/pcmcia/pcmcia_resource.c s = p_dev->socket; p_dev 169 drivers/pcmcia/pcmcia_resource.c c = p_dev->function_config; p_dev 172 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "Configuration isn't locked\n"); p_dev 177 drivers/pcmcia/pcmcia_resource.c addr = (p_dev->config_base + where) >> 1; p_dev 193 drivers/pcmcia/pcmcia_resource.c int pcmcia_read_config_byte(struct pcmcia_device *p_dev, off_t where, u8 *val) p_dev 195 drivers/pcmcia/pcmcia_resource.c return pcmcia_access_config(p_dev, where, val, pcmcia_read_cis_mem); p_dev 206 drivers/pcmcia/pcmcia_resource.c int pcmcia_write_config_byte(struct pcmcia_device *p_dev, off_t where, u8 val) p_dev 208 drivers/pcmcia/pcmcia_resource.c return pcmcia_access_config(p_dev, where, &val, pcmcia_write_cis_mem); p_dev 223 drivers/pcmcia/pcmcia_resource.c int pcmcia_map_mem_page(struct pcmcia_device *p_dev, struct resource *res, p_dev 226 drivers/pcmcia/pcmcia_resource.c struct pcmcia_socket *s = p_dev->socket; p_dev 238 drivers/pcmcia/pcmcia_resource.c dev_warn(&p_dev->dev, "failed to set_mem_map\n"); p_dev 253 drivers/pcmcia/pcmcia_resource.c int pcmcia_fixup_iowidth(struct pcmcia_device *p_dev) p_dev 255 drivers/pcmcia/pcmcia_resource.c struct pcmcia_socket *s = p_dev->socket; p_dev 262 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "fixup iowidth to 8bit\n"); p_dev 265 drivers/pcmcia/pcmcia_resource.c !(p_dev->function_config->state & CONFIG_LOCKED)) { p_dev 266 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "No card? Config not locked?\n"); p_dev 303 drivers/pcmcia/pcmcia_resource.c int pcmcia_fixup_vpp(struct pcmcia_device *p_dev, unsigned char new_vpp) p_dev 305 drivers/pcmcia/pcmcia_resource.c struct pcmcia_socket *s = p_dev->socket; p_dev 310 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "fixup Vpp to %d\n", new_vpp); p_dev 313 drivers/pcmcia/pcmcia_resource.c !(p_dev->function_config->state & CONFIG_LOCKED)) { p_dev 314 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "No card? Config not locked?\n"); p_dev 321 drivers/pcmcia/pcmcia_resource.c dev_warn(&p_dev->dev, "Unable to set VPP\n"); p_dev 325 drivers/pcmcia/pcmcia_resource.c p_dev->vpp = new_vpp; p_dev 346 drivers/pcmcia/pcmcia_resource.c int pcmcia_release_configuration(struct pcmcia_device *p_dev) p_dev 349 drivers/pcmcia/pcmcia_resource.c struct pcmcia_socket *s = p_dev->socket; p_dev 354 drivers/pcmcia/pcmcia_resource.c c = p_dev->function_config; p_dev 355 drivers/pcmcia/pcmcia_resource.c if (p_dev->_locked) { p_dev 356 drivers/pcmcia/pcmcia_resource.c p_dev->_locked = 0; p_dev 393 drivers/pcmcia/pcmcia_resource.c static int pcmcia_release_io(struct pcmcia_device *p_dev) p_dev 395 drivers/pcmcia/pcmcia_resource.c struct pcmcia_socket *s = p_dev->socket; p_dev 400 drivers/pcmcia/pcmcia_resource.c if (!p_dev->_io) p_dev 403 drivers/pcmcia/pcmcia_resource.c c = p_dev->function_config; p_dev 410 drivers/pcmcia/pcmcia_resource.c p_dev->_io = 0; p_dev 428 drivers/pcmcia/pcmcia_resource.c int pcmcia_release_window(struct pcmcia_device *p_dev, struct resource *res) p_dev 430 drivers/pcmcia/pcmcia_resource.c struct pcmcia_socket *s = p_dev->socket; p_dev 434 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "releasing window %pR\n", res); p_dev 443 drivers/pcmcia/pcmcia_resource.c if (!(p_dev->_win & CLIENT_WIN_REQ(w))) { p_dev 444 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "not releasing unknown window\n"); p_dev 463 drivers/pcmcia/pcmcia_resource.c p_dev->_win &= ~CLIENT_WIN_REQ(w); p_dev 480 drivers/pcmcia/pcmcia_resource.c int pcmcia_enable_device(struct pcmcia_device *p_dev) p_dev 484 drivers/pcmcia/pcmcia_resource.c struct pcmcia_socket *s = p_dev->socket; p_dev 490 drivers/pcmcia/pcmcia_resource.c unsigned int flags = p_dev->config_flags; p_dev 496 drivers/pcmcia/pcmcia_resource.c c = p_dev->function_config; p_dev 499 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "Configuration is locked\n"); p_dev 504 drivers/pcmcia/pcmcia_resource.c s->socket.Vpp = p_dev->vpp; p_dev 507 drivers/pcmcia/pcmcia_resource.c dev_warn(&p_dev->dev, "Unable to set socket state\n"); p_dev 512 drivers/pcmcia/pcmcia_resource.c if (p_dev->_io || flags & CONF_ENABLE_IRQ) p_dev 521 drivers/pcmcia/pcmcia_resource.c if (!(p_dev->config_regs & PRESENT_STATUS)) p_dev 522 drivers/pcmcia/pcmcia_resource.c dev_warn(&p_dev->dev, "speaker requested, but " p_dev 530 drivers/pcmcia/pcmcia_resource.c p_dev->config_regs |= PRESENT_EXT_STATUS; p_dev 536 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, p_dev 538 drivers/pcmcia/pcmcia_resource.c p_dev->vpp, flags, p_dev->config_base, p_dev->config_regs, p_dev 539 drivers/pcmcia/pcmcia_resource.c p_dev->config_index); p_dev 542 drivers/pcmcia/pcmcia_resource.c base = p_dev->config_base; p_dev 543 drivers/pcmcia/pcmcia_resource.c if (p_dev->config_regs & PRESENT_COPY) { p_dev 545 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "clearing CISREG_SCR\n"); p_dev 548 drivers/pcmcia/pcmcia_resource.c if (p_dev->config_regs & PRESENT_PIN_REPLACE) { p_dev 550 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "clearing CISREG_PRR\n"); p_dev 553 drivers/pcmcia/pcmcia_resource.c if (p_dev->config_regs & PRESENT_OPTION) { p_dev 555 drivers/pcmcia/pcmcia_resource.c option = p_dev->config_index & COR_CONFIG_MASK; p_dev 557 drivers/pcmcia/pcmcia_resource.c option = p_dev->config_index & COR_MFC_CONFIG_MASK; p_dev 559 drivers/pcmcia/pcmcia_resource.c if (p_dev->config_regs & PRESENT_IOBASE_0) p_dev 568 drivers/pcmcia/pcmcia_resource.c if (p_dev->config_regs & PRESENT_STATUS) p_dev 571 drivers/pcmcia/pcmcia_resource.c if (p_dev->config_regs & PRESENT_EXT_STATUS) p_dev 575 drivers/pcmcia/pcmcia_resource.c if (p_dev->config_regs & PRESENT_IOBASE_0) { p_dev 581 drivers/pcmcia/pcmcia_resource.c if (p_dev->config_regs & PRESENT_IOSIZE) { p_dev 609 drivers/pcmcia/pcmcia_resource.c p_dev->_locked = 1; p_dev 626 drivers/pcmcia/pcmcia_resource.c int pcmcia_request_io(struct pcmcia_device *p_dev) p_dev 628 drivers/pcmcia/pcmcia_resource.c struct pcmcia_socket *s = p_dev->socket; p_dev 629 drivers/pcmcia/pcmcia_resource.c config_t *c = p_dev->function_config; p_dev 633 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "pcmcia_request_io: %pR , %pR", p_dev 637 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "pcmcia_request_io: No card present\n"); p_dev 642 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "Configuration is locked\n"); p_dev 646 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "IO already configured\n"); p_dev 650 drivers/pcmcia/pcmcia_resource.c ret = alloc_io_space(s, &c->io[0], p_dev->io_lines); p_dev 655 drivers/pcmcia/pcmcia_resource.c ret = alloc_io_space(s, &c->io[1], p_dev->io_lines); p_dev 670 drivers/pcmcia/pcmcia_resource.c p_dev->_io = 1; p_dev 672 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "pcmcia_request_io succeeded: %pR , %pR", p_dev 693 drivers/pcmcia/pcmcia_resource.c int __must_check pcmcia_request_irq(struct pcmcia_device *p_dev, p_dev 698 drivers/pcmcia/pcmcia_resource.c if (!p_dev->irq) p_dev 701 drivers/pcmcia/pcmcia_resource.c ret = request_irq(p_dev->irq, handler, IRQF_SHARED, p_dev 702 drivers/pcmcia/pcmcia_resource.c p_dev->devname, p_dev->priv); p_dev 704 drivers/pcmcia/pcmcia_resource.c p_dev->_irq = 1; p_dev 727 drivers/pcmcia/pcmcia_resource.c static int pcmcia_setup_isa_irq(struct pcmcia_device *p_dev, int type) p_dev 729 drivers/pcmcia/pcmcia_resource.c struct pcmcia_socket *s = p_dev->socket; p_dev 751 drivers/pcmcia/pcmcia_resource.c ret = request_irq(irq, test_action, type, p_dev->devname, p_dev 752 drivers/pcmcia/pcmcia_resource.c p_dev); p_dev 754 drivers/pcmcia/pcmcia_resource.c free_irq(irq, p_dev); p_dev 755 drivers/pcmcia/pcmcia_resource.c p_dev->irq = s->pcmcia_irq = irq; p_dev 772 drivers/pcmcia/pcmcia_resource.c static int pcmcia_setup_isa_irq(struct pcmcia_device *p_dev, int type) p_dev 792 drivers/pcmcia/pcmcia_resource.c int pcmcia_setup_irq(struct pcmcia_device *p_dev) p_dev 794 drivers/pcmcia/pcmcia_resource.c struct pcmcia_socket *s = p_dev->socket; p_dev 796 drivers/pcmcia/pcmcia_resource.c if (p_dev->irq) p_dev 801 drivers/pcmcia/pcmcia_resource.c p_dev->irq = s->pcmcia_irq; p_dev 806 drivers/pcmcia/pcmcia_resource.c if (!pcmcia_setup_isa_irq(p_dev, 0)) p_dev 810 drivers/pcmcia/pcmcia_resource.c if (!pcmcia_setup_isa_irq(p_dev, IRQF_SHARED)) p_dev 815 drivers/pcmcia/pcmcia_resource.c p_dev->irq = s->pcmcia_irq = s->pci_irq; p_dev 835 drivers/pcmcia/pcmcia_resource.c int pcmcia_request_window(struct pcmcia_device *p_dev, struct resource *res, p_dev 838 drivers/pcmcia/pcmcia_resource.c struct pcmcia_socket *s = p_dev->socket; p_dev 843 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "request_window %pR %d\n", res, speed); p_dev 846 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "No card present\n"); p_dev 855 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "invalid map size\n"); p_dev 860 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "invalid base address\n"); p_dev 872 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "all windows are used already\n"); p_dev 883 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "allocating mem region failed\n"); p_dev 888 drivers/pcmcia/pcmcia_resource.c p_dev->_win |= CLIENT_WIN_REQ(w); p_dev 897 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "failed to set memory mapping\n"); p_dev 917 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "request_window results in %pR\n", res); p_dev 938 drivers/pcmcia/pcmcia_resource.c void pcmcia_disable_device(struct pcmcia_device *p_dev) p_dev 942 drivers/pcmcia/pcmcia_resource.c dev_dbg(&p_dev->dev, "disabling device\n"); p_dev 945 drivers/pcmcia/pcmcia_resource.c struct resource *res = p_dev->resource[MAX_IO_WIN + i]; p_dev 947 drivers/pcmcia/pcmcia_resource.c pcmcia_release_window(p_dev, res); p_dev 950 drivers/pcmcia/pcmcia_resource.c pcmcia_release_configuration(p_dev); p_dev 951 drivers/pcmcia/pcmcia_resource.c pcmcia_release_io(p_dev); p_dev 952 drivers/pcmcia/pcmcia_resource.c if (p_dev->_irq) { p_dev 953 drivers/pcmcia/pcmcia_resource.c free_irq(p_dev->irq, p_dev->priv); p_dev 954 drivers/pcmcia/pcmcia_resource.c p_dev->_irq = 0; p_dev 80 drivers/scsi/pcmcia/aha152x_stub.c struct pcmcia_device *p_dev; p_dev 85 drivers/scsi/pcmcia/aha152x_stub.c static void aha152x_detach(struct pcmcia_device *p_dev); p_dev 97 drivers/scsi/pcmcia/aha152x_stub.c info->p_dev = link; p_dev 120 drivers/scsi/pcmcia/aha152x_stub.c static int aha152x_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 122 drivers/scsi/pcmcia/aha152x_stub.c p_dev->io_lines = 10; p_dev 125 drivers/scsi/pcmcia/aha152x_stub.c if ((p_dev->resource[0]->end < 0x20) && p_dev 126 drivers/scsi/pcmcia/aha152x_stub.c (p_dev->resource[1]->end >= 0x20)) p_dev 127 drivers/scsi/pcmcia/aha152x_stub.c p_dev->resource[0]->start = p_dev->resource[1]->start; p_dev 129 drivers/scsi/pcmcia/aha152x_stub.c if (p_dev->resource[0]->start >= 0xffff) p_dev 132 drivers/scsi/pcmcia/aha152x_stub.c p_dev->resource[1]->start = p_dev->resource[1]->end = 0; p_dev 133 drivers/scsi/pcmcia/aha152x_stub.c p_dev->resource[0]->end = 0x20; p_dev 134 drivers/scsi/pcmcia/aha152x_stub.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 135 drivers/scsi/pcmcia/aha152x_stub.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; p_dev 137 drivers/scsi/pcmcia/aha152x_stub.c return pcmcia_request_io(p_dev); p_dev 22 drivers/scsi/pcmcia/fdomain_cs.c static int fdomain_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 24 drivers/scsi/pcmcia/fdomain_cs.c p_dev->io_lines = 10; p_dev 25 drivers/scsi/pcmcia/fdomain_cs.c p_dev->resource[0]->end = FDOMAIN_REGION_SIZE; p_dev 26 drivers/scsi/pcmcia/fdomain_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 27 drivers/scsi/pcmcia/fdomain_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; p_dev 28 drivers/scsi/pcmcia/fdomain_cs.c return pcmcia_request_io(p_dev); p_dev 1516 drivers/scsi/pcmcia/nsp_cs.c info->p_dev = link; p_dev 1541 drivers/scsi/pcmcia/nsp_cs.c static int nsp_cs_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 1545 drivers/scsi/pcmcia/nsp_cs.c if (p_dev->config_index == 0) p_dev 1549 drivers/scsi/pcmcia/nsp_cs.c if (pcmcia_request_io(p_dev) != 0) p_dev 1552 drivers/scsi/pcmcia/nsp_cs.c if (resource_size(p_dev->resource[2])) { p_dev 1553 drivers/scsi/pcmcia/nsp_cs.c p_dev->resource[2]->flags |= (WIN_DATA_WIDTH_16 | p_dev 1556 drivers/scsi/pcmcia/nsp_cs.c if (p_dev->resource[2]->end < 0x1000) p_dev 1557 drivers/scsi/pcmcia/nsp_cs.c p_dev->resource[2]->end = 0x1000; p_dev 1558 drivers/scsi/pcmcia/nsp_cs.c if (pcmcia_request_window(p_dev, p_dev->resource[2], 0) != 0) p_dev 1560 drivers/scsi/pcmcia/nsp_cs.c if (pcmcia_map_mem_page(p_dev, p_dev->resource[2], p_dev 1561 drivers/scsi/pcmcia/nsp_cs.c p_dev->card_addr) != 0) p_dev 1565 drivers/scsi/pcmcia/nsp_cs.c ioremap_nocache(p_dev->resource[2]->start, p_dev 1566 drivers/scsi/pcmcia/nsp_cs.c resource_size(p_dev->resource[2])); p_dev 1567 drivers/scsi/pcmcia/nsp_cs.c data->MmioLength = resource_size(p_dev->resource[2]); p_dev 1574 drivers/scsi/pcmcia/nsp_cs.c pcmcia_disable_device(p_dev); p_dev 225 drivers/scsi/pcmcia/nsp_cs.h struct pcmcia_device *p_dev; p_dev 288 drivers/scsi/pcmcia/nsp_cs.h static void nsp_cs_detach (struct pcmcia_device *p_dev); p_dev 81 drivers/scsi/pcmcia/qlogic_stub.c struct pcmcia_device *p_dev; p_dev 87 drivers/scsi/pcmcia/qlogic_stub.c static void qlogic_detach(struct pcmcia_device *p_dev); p_dev 155 drivers/scsi/pcmcia/qlogic_stub.c info->p_dev = link; p_dev 176 drivers/scsi/pcmcia/qlogic_stub.c static int qlogic_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 178 drivers/scsi/pcmcia/qlogic_stub.c p_dev->io_lines = 10; p_dev 179 drivers/scsi/pcmcia/qlogic_stub.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 180 drivers/scsi/pcmcia/qlogic_stub.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; p_dev 182 drivers/scsi/pcmcia/qlogic_stub.c if (p_dev->resource[0]->start == 0) p_dev 185 drivers/scsi/pcmcia/qlogic_stub.c return pcmcia_request_io(p_dev); p_dev 182 drivers/scsi/pcmcia/sym53c500_cs.c struct pcmcia_device *p_dev; p_dev 677 drivers/scsi/pcmcia/sym53c500_cs.c static int SYM53C500_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 679 drivers/scsi/pcmcia/sym53c500_cs.c p_dev->io_lines = 10; p_dev 680 drivers/scsi/pcmcia/sym53c500_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 681 drivers/scsi/pcmcia/sym53c500_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; p_dev 683 drivers/scsi/pcmcia/sym53c500_cs.c if (p_dev->resource[0]->start == 0) p_dev 686 drivers/scsi/pcmcia/sym53c500_cs.c return pcmcia_request_io(p_dev); p_dev 846 drivers/scsi/pcmcia/sym53c500_cs.c info->p_dev = link; p_dev 596 drivers/ssb/pcmcia.c static int ssb_pcmcia_get_mac(struct pcmcia_device *p_dev, p_dev 612 drivers/ssb/pcmcia.c static int ssb_pcmcia_do_get_invariants(struct pcmcia_device *p_dev, p_dev 72 drivers/staging/comedi/comedi_pcmcia.c int (*conf_check)(struct pcmcia_device *p_dev, p_dev 21 drivers/staging/comedi/comedi_pcmcia.h int (*conf_check)(struct pcmcia_device *p_dev, p_dev 131 drivers/staging/comedi/drivers/ni_mio_cs.c static int mio_pcmcia_config_loop(struct pcmcia_device *p_dev, void *priv_data) p_dev 135 drivers/staging/comedi/drivers/ni_mio_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 136 drivers/staging/comedi/drivers/ni_mio_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_16; p_dev 139 drivers/staging/comedi/drivers/ni_mio_cs.c p_dev->resource[0]->start = base; p_dev 140 drivers/staging/comedi/drivers/ni_mio_cs.c ret = pcmcia_request_io(p_dev); p_dev 42 drivers/staging/isdn/avm/avm_cs.c static void avmcs_detach(struct pcmcia_device *p_dev); p_dev 44 drivers/staging/isdn/avm/avm_cs.c static int avmcs_probe(struct pcmcia_device *p_dev) p_dev 47 drivers/staging/isdn/avm/avm_cs.c p_dev->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO; p_dev 48 drivers/staging/isdn/avm/avm_cs.c p_dev->config_index = 1; p_dev 49 drivers/staging/isdn/avm/avm_cs.c p_dev->config_regs = PRESENT_OPTION; p_dev 51 drivers/staging/isdn/avm/avm_cs.c return avmcs_config(p_dev); p_dev 60 drivers/staging/isdn/avm/avm_cs.c static int avmcs_configcheck(struct pcmcia_device *p_dev, void *priv_data) p_dev 62 drivers/staging/isdn/avm/avm_cs.c p_dev->resource[0]->end = 16; p_dev 63 drivers/staging/isdn/avm/avm_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 64 drivers/staging/isdn/avm/avm_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; p_dev 66 drivers/staging/isdn/avm/avm_cs.c return pcmcia_request_io(p_dev); p_dev 79 drivers/tty/ipwireless/main.c static int ipwireless_probe(struct pcmcia_device *p_dev, void *priv_data) p_dev 84 drivers/tty/ipwireless/main.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 85 drivers/tty/ipwireless/main.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; p_dev 89 drivers/tty/ipwireless/main.c p_dev->config_index |= 0x44; p_dev 90 drivers/tty/ipwireless/main.c p_dev->io_lines = 16; p_dev 91 drivers/tty/ipwireless/main.c ret = pcmcia_request_io(p_dev); p_dev 95 drivers/tty/ipwireless/main.c if (!request_region(p_dev->resource[0]->start, p_dev 96 drivers/tty/ipwireless/main.c resource_size(p_dev->resource[0]), p_dev 102 drivers/tty/ipwireless/main.c p_dev->resource[2]->flags |= p_dev 105 drivers/tty/ipwireless/main.c ret = pcmcia_request_window(p_dev, p_dev->resource[2], 0); p_dev 109 drivers/tty/ipwireless/main.c ret = pcmcia_map_mem_page(p_dev, p_dev->resource[2], p_dev->card_addr); p_dev 113 drivers/tty/ipwireless/main.c ipw->is_v2_card = resource_size(p_dev->resource[2]) == 0x100; p_dev 115 drivers/tty/ipwireless/main.c ipw->common_memory = ioremap(p_dev->resource[2]->start, p_dev 116 drivers/tty/ipwireless/main.c resource_size(p_dev->resource[2])); p_dev 121 drivers/tty/ipwireless/main.c if (!request_mem_region(p_dev->resource[2]->start, p_dev 122 drivers/tty/ipwireless/main.c resource_size(p_dev->resource[2]), p_dev 128 drivers/tty/ipwireless/main.c p_dev->resource[3]->flags |= WIN_DATA_WIDTH_16 | WIN_MEMORY_TYPE_AM | p_dev 130 drivers/tty/ipwireless/main.c p_dev->resource[3]->end = 0; /* this used to be 0x1000 */ p_dev 131 drivers/tty/ipwireless/main.c ret = pcmcia_request_window(p_dev, p_dev->resource[3], 0); p_dev 135 drivers/tty/ipwireless/main.c ret = pcmcia_map_mem_page(p_dev, p_dev->resource[3], 0); p_dev 139 drivers/tty/ipwireless/main.c ipw->attr_memory = ioremap(p_dev->resource[3]->start, p_dev 140 drivers/tty/ipwireless/main.c resource_size(p_dev->resource[3])); p_dev 145 drivers/tty/ipwireless/main.c if (!request_mem_region(p_dev->resource[3]->start, p_dev 146 drivers/tty/ipwireless/main.c resource_size(p_dev->resource[3]), p_dev 157 drivers/tty/ipwireless/main.c release_mem_region(p_dev->resource[2]->start, p_dev 158 drivers/tty/ipwireless/main.c resource_size(p_dev->resource[2])); p_dev 162 drivers/tty/ipwireless/main.c release_region(p_dev->resource[0]->start, p_dev 163 drivers/tty/ipwireless/main.c resource_size(p_dev->resource[0])); p_dev 165 drivers/tty/ipwireless/main.c pcmcia_disable_device(p_dev); p_dev 82 drivers/tty/serial/8250/serial_cs.c struct pcmcia_device *p_dev; p_dev 316 drivers/tty/serial/8250/serial_cs.c info->p_dev = link; p_dev 376 drivers/tty/serial/8250/serial_cs.c static int pfc_config(struct pcmcia_device *p_dev) p_dev 379 drivers/tty/serial/8250/serial_cs.c struct serial_info *info = p_dev->priv; p_dev 381 drivers/tty/serial/8250/serial_cs.c if ((p_dev->resource[1]->end != 0) && p_dev 382 drivers/tty/serial/8250/serial_cs.c (resource_size(p_dev->resource[1]) == 8)) { p_dev 383 drivers/tty/serial/8250/serial_cs.c port = p_dev->resource[1]->start; p_dev 386 drivers/tty/serial/8250/serial_cs.c (resource_size(p_dev->resource[0]) == 0x40)) { p_dev 387 drivers/tty/serial/8250/serial_cs.c port = p_dev->resource[0]->start + 0x28; p_dev 391 drivers/tty/serial/8250/serial_cs.c return setup_serial(p_dev, info, port, p_dev->irq); p_dev 393 drivers/tty/serial/8250/serial_cs.c dev_warn(&p_dev->dev, "no usable port range found, giving up\n"); p_dev 397 drivers/tty/serial/8250/serial_cs.c static int simple_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 402 drivers/tty/serial/8250/serial_cs.c if (p_dev->resource[0]->start == 0) p_dev 406 drivers/tty/serial/8250/serial_cs.c p_dev->io_lines = 16; p_dev 408 drivers/tty/serial/8250/serial_cs.c if (p_dev->resource[0]->end != size_table[(*try >> 1)]) p_dev 411 drivers/tty/serial/8250/serial_cs.c p_dev->resource[0]->end = 8; p_dev 412 drivers/tty/serial/8250/serial_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 413 drivers/tty/serial/8250/serial_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; p_dev 415 drivers/tty/serial/8250/serial_cs.c return pcmcia_request_io(p_dev); p_dev 418 drivers/tty/serial/8250/serial_cs.c static int simple_config_check_notpicky(struct pcmcia_device *p_dev, p_dev 424 drivers/tty/serial/8250/serial_cs.c if (p_dev->io_lines > 3) p_dev 427 drivers/tty/serial/8250/serial_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 428 drivers/tty/serial/8250/serial_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; p_dev 429 drivers/tty/serial/8250/serial_cs.c p_dev->resource[0]->end = 8; p_dev 432 drivers/tty/serial/8250/serial_cs.c p_dev->resource[0]->start = base[j]; p_dev 433 drivers/tty/serial/8250/serial_cs.c p_dev->io_lines = base[j] ? 16 : 3; p_dev 434 drivers/tty/serial/8250/serial_cs.c if (!pcmcia_request_io(p_dev)) p_dev 481 drivers/tty/serial/8250/serial_cs.c static int multi_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 485 drivers/tty/serial/8250/serial_cs.c if (p_dev->resource[1]->end) p_dev 492 drivers/tty/serial/8250/serial_cs.c if (p_dev->resource[0]->end <= 8) p_dev 495 drivers/tty/serial/8250/serial_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 496 drivers/tty/serial/8250/serial_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; p_dev 497 drivers/tty/serial/8250/serial_cs.c p_dev->resource[0]->end = *multi * 8; p_dev 499 drivers/tty/serial/8250/serial_cs.c if (pcmcia_request_io(p_dev)) p_dev 504 drivers/tty/serial/8250/serial_cs.c static int multi_config_check_notpicky(struct pcmcia_device *p_dev, p_dev 509 drivers/tty/serial/8250/serial_cs.c if (!p_dev->resource[0]->end || !p_dev->resource[1]->end || p_dev 510 drivers/tty/serial/8250/serial_cs.c p_dev->resource[0]->start + 8 != p_dev->resource[1]->start) p_dev 513 drivers/tty/serial/8250/serial_cs.c p_dev->resource[0]->end = p_dev->resource[1]->end = 8; p_dev 514 drivers/tty/serial/8250/serial_cs.c p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; p_dev 515 drivers/tty/serial/8250/serial_cs.c p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; p_dev 517 drivers/tty/serial/8250/serial_cs.c if (pcmcia_request_io(p_dev)) p_dev 520 drivers/tty/serial/8250/serial_cs.c *base2 = p_dev->resource[0]->start + 8; p_dev 592 drivers/tty/serial/8250/serial_cs.c static int serial_check_for_multi(struct pcmcia_device *p_dev, void *priv_data) p_dev 594 drivers/tty/serial/8250/serial_cs.c struct serial_info *info = p_dev->priv; p_dev 596 drivers/tty/serial/8250/serial_cs.c if (!p_dev->resource[0]->end) p_dev 599 drivers/tty/serial/8250/serial_cs.c if ((!p_dev->resource[1]->end) && (p_dev->resource[0]->end % 8 == 0)) p_dev 600 drivers/tty/serial/8250/serial_cs.c info->multi = p_dev->resource[0]->end >> 3; p_dev 602 drivers/tty/serial/8250/serial_cs.c if ((p_dev->resource[1]->end) && (p_dev->resource[0]->end == 8) p_dev 603 drivers/tty/serial/8250/serial_cs.c && (p_dev->resource[1]->end == 8)) p_dev 45 drivers/usb/host/sl811_cs.c struct pcmcia_device *p_dev; p_dev 134 drivers/usb/host/sl811_cs.c static int sl811_cs_config_check(struct pcmcia_device *p_dev, void *priv_data) p_dev 136 drivers/usb/host/sl811_cs.c if (p_dev->config_index == 0) p_dev 139 drivers/usb/host/sl811_cs.c return pcmcia_request_io(p_dev); p_dev 184 drivers/usb/host/sl811_cs.c local->p_dev = link; p_dev 1124 drivers/video/fbdev/gbefb.c static int gbefb_probe(struct platform_device *p_dev) p_dev 1133 drivers/video/fbdev/gbefb.c info = framebuffer_alloc(sizeof(struct gbefb_par), &p_dev->dev); p_dev 1151 drivers/video/fbdev/gbefb.c gbe = (struct sgi_gbe *) devm_ioremap(&p_dev->dev, GBE_BASE, p_dev 1160 drivers/video/fbdev/gbefb.c gbe_tiles.cpu = dmam_alloc_coherent(&p_dev->dev, p_dev 1171 drivers/video/fbdev/gbefb.c gbe_mem = devm_ioremap_wc(&p_dev->dev, gbe_mem_phys, p_dev 1183 drivers/video/fbdev/gbefb.c gbe_mem = dmam_alloc_attrs(&p_dev->dev, gbe_mem_size, p_dev 1225 drivers/video/fbdev/gbefb.c platform_set_drvdata(p_dev, info); p_dev 1226 drivers/video/fbdev/gbefb.c gbefb_create_sysfs(&p_dev->dev); p_dev 1244 drivers/video/fbdev/gbefb.c static int gbefb_remove(struct platform_device* p_dev) p_dev 1246 drivers/video/fbdev/gbefb.c struct fb_info *info = platform_get_drvdata(p_dev); p_dev 1253 drivers/video/fbdev/gbefb.c gbefb_remove_sysfs(&p_dev->dev); p_dev 34 include/linux/rtsx_common.h struct platform_device *p_dev; p_dev 35 include/linux/rtsx_common.h void (*card_event)(struct platform_device *p_dev); p_dev 169 include/pcmcia/ds.h size_t pcmcia_get_tuple(struct pcmcia_device *p_dev, cisdata_t code, p_dev 173 include/pcmcia/ds.h int pcmcia_loop_tuple(struct pcmcia_device *p_dev, cisdata_t code, p_dev 174 include/pcmcia/ds.h int (*loop_tuple) (struct pcmcia_device *p_dev, p_dev 180 include/pcmcia/ds.h int pcmcia_get_mac_from_cis(struct pcmcia_device *p_dev, p_dev 188 include/pcmcia/ds.h int pcmcia_loop_config(struct pcmcia_device *p_dev, p_dev 189 include/pcmcia/ds.h int (*conf_check) (struct pcmcia_device *p_dev, p_dev 194 include/pcmcia/ds.h struct pcmcia_device *pcmcia_dev_present(struct pcmcia_device *p_dev); p_dev 200 include/pcmcia/ds.h int pcmcia_read_config_byte(struct pcmcia_device *p_dev, off_t where, u8 *val); p_dev 201 include/pcmcia/ds.h int pcmcia_write_config_byte(struct pcmcia_device *p_dev, off_t where, u8 val); p_dev 204 include/pcmcia/ds.h int pcmcia_request_io(struct pcmcia_device *p_dev); p_dev 206 include/pcmcia/ds.h int __must_check pcmcia_request_irq(struct pcmcia_device *p_dev, p_dev 209 include/pcmcia/ds.h int pcmcia_enable_device(struct pcmcia_device *p_dev); p_dev 211 include/pcmcia/ds.h int pcmcia_request_window(struct pcmcia_device *p_dev, struct resource *res, p_dev 213 include/pcmcia/ds.h int pcmcia_release_window(struct pcmcia_device *p_dev, struct resource *res); p_dev 214 include/pcmcia/ds.h int pcmcia_map_mem_page(struct pcmcia_device *p_dev, struct resource *res, p_dev 217 include/pcmcia/ds.h int pcmcia_fixup_vpp(struct pcmcia_device *p_dev, unsigned char new_vpp); p_dev 218 include/pcmcia/ds.h int pcmcia_fixup_iowidth(struct pcmcia_device *p_dev); p_dev 220 include/pcmcia/ds.h void pcmcia_disable_device(struct pcmcia_device *p_dev); p_dev 47 sound/pcmcia/pdaudiocf/pdaudiocf.c static void snd_pdacf_detach(struct pcmcia_device *p_dev); p_dev 60 sound/pcmcia/pdaudiocf/pdaudiocf.c struct pcmcia_device *link = pdacf->p_dev; p_dev 126 sound/pcmcia/pdaudiocf/pdaudiocf.c pdacf->p_dev = link; p_dev 103 sound/pcmcia/pdaudiocf/pdaudiocf.h struct pcmcia_device *p_dev; p_dev 148 sound/pcmcia/vx/vxpocket.c vxp->p_dev = link; p_dev 284 sound/pcmcia/vx/vxpocket.c static int vxpocket_probe(struct pcmcia_device *p_dev) p_dev 303 sound/pcmcia/vx/vxpocket.c err = snd_card_new(&p_dev->dev, index[i], id[i], THIS_MODULE, p_dev 310 sound/pcmcia/vx/vxpocket.c err = snd_vxpocket_new(card, ibl[i], p_dev, &vxp); p_dev 320 sound/pcmcia/vx/vxpocket.c vxp->p_dev = p_dev; p_dev 322 sound/pcmcia/vx/vxpocket.c return vxpocket_config(p_dev); p_dev 30 sound/pcmcia/vx/vxpocket.h struct pcmcia_device *p_dev;