Home
last modified time | relevance | path

Searched refs:p_dev (Results 1 – 25 of 56) sorted by relevance

123

/linux-6.6.21/drivers/pcmcia/
Dds.c215 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 …]
Dpcmcia_cis.c140 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 …]
Dpcmcia_resource.c155 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-6.6.21/drivers/tty/ipwireless/
Dmain.c79 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-6.6.21/drivers/tty/serial/8250/
Dserial_cs.c82 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-6.6.21/include/pcmcia/
Dds.h169 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-6.6.21/drivers/scsi/pcmcia/
Daha152x_stub.c83 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 …]
Dfdomain_cs.c22 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()
Dqlogic_stub.c84 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-6.6.21/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_83xx_init.c39 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-6.6.21/drivers/net/wireless/marvell/libertas/
Dif_cs.c47 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-6.6.21/drivers/bluetooth/
Dbt3c_cs.c71 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 …]
Ddtl1_cs.c66 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 …]
Dbluecard_cs.c65 struct pcmcia_device *p_dev; member
87 static void bluecard_detach(struct pcmcia_device *p_dev);
162 unsigned int iobase = info->p_dev->resource[0]->start; in bluecard_activity_led_timeout()
177 unsigned int iobase = info->p_dev->resource[0]->start; in bluecard_enable_activity_led()
233 unsigned int iobase = info->p_dev->resource[0]->start; in bluecard_write_wakeup()
242 if (!pcmcia_dev_present(info->p_dev)) in bluecard_write_wakeup()
377 iobase = info->p_dev->resource[0]->start; in bluecard_receive()
507 iobase = info->p_dev->resource[0]->start; in bluecard_interrupt()
621 unsigned int iobase = info->p_dev->resource[0]->start; in bluecard_hci_open()
636 unsigned int iobase = info->p_dev->resource[0]->start; in bluecard_hci_close()
[all …]
/linux-6.6.21/drivers/parport/
Dparport_cs.c74 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-6.6.21/drivers/net/wireless/cisco/
Dairo_cs.c56 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-6.6.21/drivers/net/wireless/atmel/
Datmel_cs.c66 static void atmel_detach(struct pcmcia_device *p_dev);
72 static int atmel_probe(struct pcmcia_device *p_dev) in atmel_probe() argument
77 dev_dbg(&p_dev->dev, "atmel_attach()\n"); in atmel_probe()
84 p_dev->priv = local; in atmel_probe()
86 ret = atmel_config(p_dev); in atmel_probe()
93 kfree(p_dev->priv); in atmel_probe()
118 static int atmel_config_check(struct pcmcia_device *p_dev, void *priv_data) in atmel_config_check() argument
120 if (p_dev->config_index == 0) in atmel_config_check()
123 return pcmcia_request_io(p_dev); in atmel_config_check()
/linux-6.6.21/drivers/net/ethernet/xircom/
Dxirc2ps_cs.c265 static void xirc2ps_detach(struct pcmcia_device *p_dev);
271 struct pcmcia_device *p_dev; member
487 local->p_dev = link; in xirc2ps_probe()
616 has_ce2_string(struct pcmcia_device * p_dev) in has_ce2_string() argument
618 if (p_dev->prod_id[2] && strstr(p_dev->prod_id[2], "CE2")) in has_ce2_string()
624 xirc2ps_config_modem(struct pcmcia_device *p_dev, void *priv_data) in xirc2ps_config_modem() argument
628 if ((p_dev->resource[0]->start & 0xf) == 8) in xirc2ps_config_modem()
631 p_dev->resource[0]->end = 16; in xirc2ps_config_modem()
632 p_dev->resource[1]->end = 8; in xirc2ps_config_modem()
633 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in xirc2ps_config_modem()
[all …]
/linux-6.6.21/drivers/mtd/maps/
Dpcmciamtd.c32 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-6.6.21/drivers/net/arcnet/
Dcom20020_cs.c107 static void com20020_detach(struct pcmcia_device *p_dev);
111 static int com20020_probe(struct pcmcia_device *p_dev) in com20020_probe() argument
118 dev_dbg(&p_dev->dev, "com20020_attach()\n"); in com20020_probe()
139 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; in com20020_probe()
140 p_dev->resource[0]->end = 16; in com20020_probe()
141 p_dev->config_flags |= CONF_ENABLE_IRQ; in com20020_probe()
144 p_dev->priv = info; in com20020_probe()
146 ret = com20020_config(p_dev); in com20020_probe()
/linux-6.6.21/drivers/net/wireless/intersil/orinoco/
Dspectrum_cs.c56 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()
170 card->p_dev = link; in spectrum_cs_probe()
195 static int spectrum_cs_config_check(struct pcmcia_device *p_dev, in spectrum_cs_config_check() argument
198 if (p_dev->config_index == 0) in spectrum_cs_config_check()
201 return pcmcia_request_io(p_dev); in spectrum_cs_config_check()
Dorinoco_cs.c49 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()
108 card->p_dev = link; in orinoco_cs_probe()
134 static int orinoco_cs_config_check(struct pcmcia_device *p_dev, void *priv_data) in orinoco_cs_config_check() argument
136 if (p_dev->config_index == 0) in orinoco_cs_config_check()
139 return pcmcia_request_io(p_dev); in orinoco_cs_config_check()
/linux-6.6.21/drivers/usb/host/
Dsl811_cs.c45 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-6.6.21/sound/pcmcia/vx/
Dvxpocket.c122 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-6.6.21/drivers/comedi/drivers/
Dni_mio_cs.c131 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()

123