/linux-5.19.10/drivers/pcmcia/ |
D | ds.c | 215 static struct pcmcia_device *pcmcia_get_dev(struct pcmcia_device *p_dev) in pcmcia_get_dev() argument 218 tmp_dev = get_device(&p_dev->dev); in pcmcia_get_dev() 224 static void pcmcia_put_dev(struct pcmcia_device *p_dev) in pcmcia_put_dev() argument 226 if (p_dev) in pcmcia_put_dev() 227 put_device(&p_dev->dev); in pcmcia_put_dev() 239 struct pcmcia_device *p_dev = to_pcmcia_dev(dev); in pcmcia_release_dev() local 242 pcmcia_put_socket(p_dev->socket); in pcmcia_release_dev() 244 kfree(p_dev->prod_id[i]); in pcmcia_release_dev() 245 kfree(p_dev->devname); in pcmcia_release_dev() 246 kref_put(&p_dev->function_config->ref, pcmcia_release_function); in pcmcia_release_dev() [all …]
|
D | pcmcia_cis.c | 140 struct pcmcia_device *p_dev; member 141 int (*conf_check) (struct pcmcia_device *p_dev, void *priv_data); 157 struct pcmcia_device *p_dev = cfg_mem->p_dev; in pcmcia_do_loop_config() local 160 unsigned int flags = p_dev->config_flags; in pcmcia_do_loop_config() 161 unsigned int vcc = p_dev->socket->socket.Vcc; in pcmcia_do_loop_config() 163 dev_dbg(&p_dev->dev, "testing configuration %x, autoconf %x\n", in pcmcia_do_loop_config() 167 cfg_mem->p_dev->config_index = cfg->index; in pcmcia_do_loop_config() 185 p_dev->vpp = cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; in pcmcia_do_loop_config() 187 p_dev->vpp = in pcmcia_do_loop_config() 193 p_dev->config_flags |= CONF_ENABLE_SPKR; in pcmcia_do_loop_config() [all …]
|
D | pcmcia_resource.c | 155 static int pcmcia_access_config(struct pcmcia_device *p_dev, in pcmcia_access_config() argument 166 s = p_dev->socket; in pcmcia_access_config() 169 c = p_dev->function_config; in pcmcia_access_config() 172 dev_dbg(&p_dev->dev, "Configuration isn't locked\n"); in pcmcia_access_config() 177 addr = (p_dev->config_base + where) >> 1; in pcmcia_access_config() 193 int pcmcia_read_config_byte(struct pcmcia_device *p_dev, off_t where, u8 *val) in pcmcia_read_config_byte() argument 195 return pcmcia_access_config(p_dev, where, val, pcmcia_read_cis_mem); in pcmcia_read_config_byte() 206 int pcmcia_write_config_byte(struct pcmcia_device *p_dev, off_t where, u8 val) in pcmcia_write_config_byte() argument 208 return pcmcia_access_config(p_dev, where, &val, pcmcia_write_cis_mem); in pcmcia_write_config_byte() 223 int pcmcia_map_mem_page(struct pcmcia_device *p_dev, struct resource *res, in pcmcia_map_mem_page() argument [all …]
|
/linux-5.19.10/drivers/tty/ipwireless/ |
D | main.c | 79 static int ipwireless_probe(struct pcmcia_device *p_dev, void *priv_data) in ipwireless_probe() argument 84 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in ipwireless_probe() 85 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; in ipwireless_probe() 89 p_dev->config_index |= 0x44; in ipwireless_probe() 90 p_dev->io_lines = 16; in ipwireless_probe() 91 ret = pcmcia_request_io(p_dev); in ipwireless_probe() 95 if (!request_region(p_dev->resource[0]->start, in ipwireless_probe() 96 resource_size(p_dev->resource[0]), in ipwireless_probe() 102 p_dev->resource[2]->flags |= in ipwireless_probe() 105 ret = pcmcia_request_window(p_dev, p_dev->resource[2], 0); in ipwireless_probe() [all …]
|
/linux-5.19.10/drivers/tty/serial/8250/ |
D | serial_cs.c | 82 struct pcmcia_device *p_dev; member 317 info->p_dev = link; in serial_probe() 385 static int pfc_config(struct pcmcia_device *p_dev) in pfc_config() argument 388 struct serial_info *info = p_dev->priv; in pfc_config() 390 if ((p_dev->resource[1]->end != 0) && in pfc_config() 391 (resource_size(p_dev->resource[1]) == 8)) { in pfc_config() 392 port = p_dev->resource[1]->start; in pfc_config() 395 (resource_size(p_dev->resource[0]) == 0x40)) { in pfc_config() 396 port = p_dev->resource[0]->start + 0x28; in pfc_config() 400 return setup_serial(p_dev, info, port, p_dev->irq); in pfc_config() [all …]
|
/linux-5.19.10/include/pcmcia/ |
D | ds.h | 169 size_t pcmcia_get_tuple(struct pcmcia_device *p_dev, cisdata_t code, 173 int pcmcia_loop_tuple(struct pcmcia_device *p_dev, cisdata_t code, 174 int (*loop_tuple) (struct pcmcia_device *p_dev, 180 int pcmcia_get_mac_from_cis(struct pcmcia_device *p_dev, 188 int pcmcia_loop_config(struct pcmcia_device *p_dev, 189 int (*conf_check) (struct pcmcia_device *p_dev, 194 struct pcmcia_device *pcmcia_dev_present(struct pcmcia_device *p_dev); 200 int pcmcia_read_config_byte(struct pcmcia_device *p_dev, off_t where, u8 *val); 201 int pcmcia_write_config_byte(struct pcmcia_device *p_dev, off_t where, u8 val); 204 int pcmcia_request_io(struct pcmcia_device *p_dev); [all …]
|
/linux-5.19.10/drivers/scsi/pcmcia/ |
D | aha152x_stub.c | 83 struct pcmcia_device *p_dev; member 88 static void aha152x_detach(struct pcmcia_device *p_dev); 100 info->p_dev = link; in aha152x_probe() 123 static int aha152x_config_check(struct pcmcia_device *p_dev, void *priv_data) in aha152x_config_check() argument 125 p_dev->io_lines = 10; in aha152x_config_check() 128 if ((p_dev->resource[0]->end < 0x20) && in aha152x_config_check() 129 (p_dev->resource[1]->end >= 0x20)) in aha152x_config_check() 130 p_dev->resource[0]->start = p_dev->resource[1]->start; in aha152x_config_check() 132 if (p_dev->resource[0]->start >= 0xffff) in aha152x_config_check() 135 p_dev->resource[1]->start = p_dev->resource[1]->end = 0; in aha152x_config_check() [all …]
|
D | fdomain_cs.c | 22 static int fdomain_config_check(struct pcmcia_device *p_dev, void *priv_data) in fdomain_config_check() argument 24 p_dev->io_lines = 10; in fdomain_config_check() 25 p_dev->resource[0]->end = FDOMAIN_REGION_SIZE; in fdomain_config_check() 26 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in fdomain_config_check() 27 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; in fdomain_config_check() 28 return pcmcia_request_io(p_dev); in fdomain_config_check()
|
D | qlogic_stub.c | 84 struct pcmcia_device *p_dev; member 90 static void qlogic_detach(struct pcmcia_device *p_dev); 158 info->p_dev = link; in qlogic_probe() 179 static int qlogic_config_check(struct pcmcia_device *p_dev, void *priv_data) in qlogic_config_check() argument 181 p_dev->io_lines = 10; in qlogic_config_check() 182 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in qlogic_config_check() 183 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; in qlogic_config_check() 185 if (p_dev->resource[0]->start == 0) in qlogic_config_check() 188 return pcmcia_request_io(p_dev); in qlogic_config_check()
|
/linux-5.19.10/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_83xx_init.c | 39 static int qlcnic_83xx_check_heartbeat(struct qlcnic_adapter *p_dev); 41 static int qlcnic_83xx_check_hw_status(struct qlcnic_adapter *p_dev); 1552 static int qlcnic_83xx_check_heartbeat(struct qlcnic_adapter *p_dev) in qlcnic_83xx_check_heartbeat() argument 1558 p_dev->heartbeat = QLC_SHARED_REG_RD32(p_dev, in qlcnic_83xx_check_heartbeat() 1563 heartbeat = QLC_SHARED_REG_RD32(p_dev, in qlcnic_83xx_check_heartbeat() 1565 if (heartbeat != p_dev->heartbeat) { in qlcnic_83xx_check_heartbeat() 1572 dev_err(&p_dev->pdev->dev, "firmware hang detected\n"); in qlcnic_83xx_check_heartbeat() 1573 qlcnic_83xx_take_eport_out_of_reset(p_dev); in qlcnic_83xx_check_heartbeat() 1574 qlcnic_83xx_disable_pause_frames(p_dev); in qlcnic_83xx_check_heartbeat() 1575 peg_status = QLC_SHARED_REG_RD32(p_dev, in qlcnic_83xx_check_heartbeat() [all …]
|
/linux-5.19.10/drivers/net/wireless/marvell/libertas/ |
D | if_cs.c | 47 struct pcmcia_device *p_dev; member 725 ret = request_irq(card->p_dev->irq, if_cs_interrupt, in if_cs_prog_firmware() 743 free_irq(card->p_dev->irq, card); in if_cs_prog_firmware() 779 static void if_cs_release(struct pcmcia_device *p_dev) in if_cs_release() argument 781 struct if_cs_card *card = p_dev->priv; in if_cs_release() 783 free_irq(p_dev->irq, card); in if_cs_release() 784 pcmcia_disable_device(p_dev); in if_cs_release() 790 static int if_cs_ioprobe(struct pcmcia_device *p_dev, void *priv_data) in if_cs_ioprobe() argument 792 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in if_cs_ioprobe() 793 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; in if_cs_ioprobe() [all …]
|
/linux-5.19.10/drivers/bluetooth/ |
D | bt3c_cs.c | 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() [all …]
|
D | dtl1_cs.c | 66 struct pcmcia_device *p_dev; member 147 unsigned int iobase = info->p_dev->resource[0]->start; in dtl1_write_wakeup() 153 if (!pcmcia_dev_present(info->p_dev)) in dtl1_write_wakeup() 213 iobase = info->p_dev->resource[0]->start; in dtl1_receive() 302 iobase = info->p_dev->resource[0]->start; in dtl1_interrupt() 438 unsigned int iobase = info->p_dev->resource[0]->start; in dtl1_open() 462 SET_HCIDEV_DEV(hdev, &info->p_dev->dev); in dtl1_open() 481 info->ri_latch = inb(info->p_dev->resource[0]->start + UART_MSR) in dtl1_open() 507 unsigned int iobase = info->p_dev->resource[0]->start; in dtl1_close() 540 info->p_dev = link; in dtl1_probe() [all …]
|
/linux-5.19.10/drivers/parport/ |
D | parport_cs.c | 74 struct pcmcia_device *p_dev; member 79 static void parport_detach(struct pcmcia_device *p_dev); 93 info->p_dev = link; in parport_probe() 109 static int parport_config_check(struct pcmcia_device *p_dev, void *priv_data) in parport_config_check() argument 111 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in parport_config_check() 112 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in parport_config_check() 113 p_dev->resource[1]->flags &= ~IO_DATA_PATH_WIDTH; in parport_config_check() 114 p_dev->resource[1]->flags |= IO_DATA_PATH_WIDTH_8; in parport_config_check() 116 return pcmcia_request_io(p_dev); in parport_config_check()
|
/linux-5.19.10/drivers/net/wireless/cisco/ |
D | airo_cs.c | 56 static void airo_detach(struct pcmcia_device *p_dev); 62 static int airo_probe(struct pcmcia_device *p_dev) in airo_probe() argument 66 dev_dbg(&p_dev->dev, "airo_attach()\n"); in airo_probe() 73 p_dev->priv = local; in airo_probe() 75 return airo_config(p_dev); in airo_probe() 93 static int airo_cs_config_check(struct pcmcia_device *p_dev, void *priv_data) in airo_cs_config_check() argument 95 if (p_dev->config_index == 0) in airo_cs_config_check() 98 return pcmcia_request_io(p_dev); in airo_cs_config_check()
|
/linux-5.19.10/drivers/net/ethernet/xircom/ |
D | xirc2ps_cs.c | 265 static void xirc2ps_detach(struct pcmcia_device *p_dev); 271 struct pcmcia_device *p_dev; member 487 local->p_dev = link; in xirc2ps_probe() 611 has_ce2_string(struct pcmcia_device * p_dev) in has_ce2_string() argument 613 if (p_dev->prod_id[2] && strstr(p_dev->prod_id[2], "CE2")) in has_ce2_string() 619 xirc2ps_config_modem(struct pcmcia_device *p_dev, void *priv_data) in xirc2ps_config_modem() argument 623 if ((p_dev->resource[0]->start & 0xf) == 8) in xirc2ps_config_modem() 626 p_dev->resource[0]->end = 16; in xirc2ps_config_modem() 627 p_dev->resource[1]->end = 8; in xirc2ps_config_modem() 628 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in xirc2ps_config_modem() [all …]
|
/linux-5.19.10/drivers/net/wireless/atmel/ |
D | atmel_cs.c | 66 static void atmel_detach(struct pcmcia_device *p_dev); 72 static int atmel_probe(struct pcmcia_device *p_dev) in atmel_probe() argument 76 dev_dbg(&p_dev->dev, "atmel_attach()\n"); in atmel_probe() 83 p_dev->priv = local; in atmel_probe() 85 return atmel_config(p_dev); in atmel_probe() 109 static int atmel_config_check(struct pcmcia_device *p_dev, void *priv_data) in atmel_config_check() argument 111 if (p_dev->config_index == 0) in atmel_config_check() 114 return pcmcia_request_io(p_dev); in atmel_config_check()
|
/linux-5.19.10/drivers/mtd/maps/ |
D | pcmciamtd.c | 32 struct pcmcia_device *p_dev; member 90 if (!pcmcia_dev_present(dev->p_dev)) { in remap_window() 99 ret = pcmcia_map_mem_page(dev->p_dev, win, offset); in remap_window() 215 #define DEV_REMOVED(x) (!(pcmcia_dev_present(((struct pcmciamtd_dev *)map->map_priv_1)->p_dev))) 302 struct pcmcia_device *link = dev->p_dev; in pcmciamtd_set_vpp() 333 static int pcmciamtd_cistpl_format(struct pcmcia_device *p_dev, in pcmciamtd_cistpl_format() argument 348 static int pcmciamtd_cistpl_jedec(struct pcmcia_device *p_dev, in pcmciamtd_cistpl_jedec() argument 364 static int pcmciamtd_cistpl_device(struct pcmcia_device *p_dev, in pcmciamtd_cistpl_device() argument 388 static int pcmciamtd_cistpl_geo(struct pcmcia_device *p_dev, in pcmciamtd_cistpl_geo() argument 414 static void card_settings(struct pcmciamtd_dev *dev, struct pcmcia_device *p_dev, int *new_name) in card_settings() argument [all …]
|
/linux-5.19.10/drivers/net/arcnet/ |
D | com20020_cs.c | 107 static void com20020_detach(struct pcmcia_device *p_dev); 111 static int com20020_probe(struct pcmcia_device *p_dev) in com20020_probe() argument 117 dev_dbg(&p_dev->dev, "com20020_attach()\n"); in com20020_probe() 138 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in com20020_probe() 139 p_dev->resource[0]->end = 16; in com20020_probe() 140 p_dev->config_flags |= CONF_ENABLE_IRQ; in com20020_probe() 143 p_dev->priv = info; in com20020_probe() 145 return com20020_config(p_dev); in com20020_probe()
|
/linux-5.19.10/drivers/net/wireless/intersil/orinoco/ |
D | spectrum_cs.c | 56 struct pcmcia_device *p_dev; member 134 struct pcmcia_device *link = card->p_dev; in spectrum_cs_hard_reset() 146 struct pcmcia_device *link = card->p_dev; in spectrum_cs_stop_firmware() 169 card->p_dev = link; in spectrum_cs_probe() 186 static int spectrum_cs_config_check(struct pcmcia_device *p_dev, in spectrum_cs_config_check() argument 189 if (p_dev->config_index == 0) in spectrum_cs_config_check() 192 return pcmcia_request_io(p_dev); in spectrum_cs_config_check()
|
D | orinoco_cs.c | 49 struct pcmcia_device *p_dev; member 64 static void orinoco_cs_detach(struct pcmcia_device *p_dev); 74 struct pcmcia_device *link = card->p_dev; in orinoco_cs_hard_reset() 107 card->p_dev = link; in orinoco_cs_probe() 125 static int orinoco_cs_config_check(struct pcmcia_device *p_dev, void *priv_data) in orinoco_cs_config_check() argument 127 if (p_dev->config_index == 0) in orinoco_cs_config_check() 130 return pcmcia_request_io(p_dev); in orinoco_cs_config_check()
|
/linux-5.19.10/drivers/usb/host/ |
D | sl811_cs.c | 45 struct pcmcia_device *p_dev; member 134 static int sl811_cs_config_check(struct pcmcia_device *p_dev, void *priv_data) in sl811_cs_config_check() argument 136 if (p_dev->config_index == 0) in sl811_cs_config_check() 139 return pcmcia_request_io(p_dev); in sl811_cs_config_check() 184 local->p_dev = link; in sl811_cs_probe()
|
/linux-5.19.10/sound/pcmcia/vx/ |
D | vxpocket.c | 122 vxp->p_dev = link; in snd_vxpocket_new() 260 static int vxpocket_probe(struct pcmcia_device *p_dev) in vxpocket_probe() argument 279 err = snd_card_new(&p_dev->dev, index[i], id[i], THIS_MODULE, in vxpocket_probe() 286 err = snd_vxpocket_new(card, ibl[i], p_dev, &vxp); in vxpocket_probe() 296 vxp->p_dev = p_dev; in vxpocket_probe() 298 return vxpocket_config(p_dev); in vxpocket_probe()
|
/linux-5.19.10/drivers/char/pcmcia/ |
D | cm4040_cs.c | 40 #define reader_to_dev(x) (&x->p_dev->dev) 71 struct pcmcia_device *p_dev; member 110 unsigned int obs = xinb(dev->p_dev->resource[0]->start in cm4040_do_poll() 141 int iobase = dev->p_dev->resource[0]->start; in wait_for_bulk_out_ready() 171 int iobase = dev->p_dev->resource[0]->start; in write_sync_reg() 189 int iobase = dev->p_dev->resource[0]->start; in wait_for_bulk_in_ready() 219 int iobase = dev->p_dev->resource[0]->start; in cm4040_read() 239 if (!pcmcia_dev_present(dev->p_dev)) in cm4040_read() 320 int iobase = dev->p_dev->resource[0]->start; in cm4040_write() 343 if (!pcmcia_dev_present(dev->p_dev)) in cm4040_write() [all …]
|
/linux-5.19.10/drivers/comedi/drivers/ |
D | ni_mio_cs.c | 131 static int mio_pcmcia_config_loop(struct pcmcia_device *p_dev, void *priv_data) in mio_pcmcia_config_loop() argument 135 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in mio_pcmcia_config_loop() 136 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_16; in mio_pcmcia_config_loop() 139 p_dev->resource[0]->start = base; in mio_pcmcia_config_loop() 140 ret = pcmcia_request_io(p_dev); in mio_pcmcia_config_loop()
|