Lines Matching refs:socket
146 struct pcmcia_socket socket; member
159 static struct i82365_socket socket[8] = { variable
222 unsigned int port = socket[sock].ioaddr; in i365_get()
224 reg = I365_REG(socket[sock].psock, reg); in i365_get()
236 unsigned int port = socket[sock].ioaddr; in i365_set()
237 u_char val = I365_REG(socket[sock].psock, reg); in i365_set()
297 struct cirrus_state *p = &socket[s].state.cirrus; in cirrus_get_state()
309 struct cirrus_state *p = &socket[s].state.cirrus; in cirrus_set_state()
323 struct i82365_socket *t = &socket[s]; in cirrus_set_opts()
324 struct cirrus_state *p = &socket[s].state.cirrus; in cirrus_set_opts()
380 struct vg46x_state *p = &socket[s].state.vg46x; in vg46x_get_state()
382 if (socket[s].type == IS_VG469) in vg46x_get_state()
388 struct vg46x_state *p = &socket[s].state.vg46x; in vg46x_set_state()
390 if (socket[s].type == IS_VG469) in vg46x_set_state()
396 struct vg46x_state *p = &socket[s].state.vg46x; in vg46x_set_opts()
404 if (socket[s].type == IS_VG469) { in vg46x_set_opts()
427 struct i82365_socket *t = &socket[s]; in get_bridge_state()
436 struct i82365_socket *t = &socket[s]; in set_bridge_state()
455 if (socket[i].flags & IS_ALIVE) { in set_bridge_opts()
461 if (socket[i].flags & IS_CIRRUS) in set_bridge_opts()
463 else if (socket[i].flags & IS_VADEM) in set_bridge_opts()
578 socket[sockets].ioaddr = port; in identify()
579 socket[sockets].psock = sock; in identify()
664 socket[sockets].ioaddr = port; in add_socket()
665 socket[sockets].psock = psock; in add_socket()
666 socket[sockets].type = type; in add_socket()
667 socket[sockets].flags = pcic[type].flags; in add_socket()
669 socket[sockets].flags |= IS_ALIVE; in add_socket()
677 struct i82365_socket *t = &socket[sockets-ns]; in add_pcic()
728 t[i].socket.features |= SS_CAP_PCCARD; in add_pcic()
729 t[i].socket.map_size = 0x1000; in add_pcic()
730 t[i].socket.irq_mask = mask; in add_pcic()
843 if (socket[i].cs_irq != irq) in pcic_interrupt()
865 pcmcia_parse_events(&socket[i].socket, events); in pcic_interrupt()
905 if (socket[sock].type == IS_VG469) { in i365_get_status()
907 if (socket[sock].psock & 1) { in i365_get_status()
924 struct i82365_socket *t = &socket[sock]; in i365_set_socket()
1118 struct i82365_socket *s = container_of(class_dev, struct i82365_socket, socket.dev);
1125 struct i82365_socket *s = container_of(class_dev, struct i82365_socket, socket.dev);
1166 unsigned int sock = container_of(s, struct i82365_socket, socket)->number; in pcic_get_status()
1168 if (socket[sock].flags & IS_ALIVE) { in pcic_get_status()
1178 unsigned int sock = container_of(s, struct i82365_socket, socket)->number; in pcic_set_socket()
1180 if (socket[sock].flags & IS_ALIVE) in pcic_set_socket()
1188 unsigned int sock = container_of(s, struct i82365_socket, socket)->number; in pcic_set_io_map()
1189 if (socket[sock].flags & IS_ALIVE) in pcic_set_io_map()
1197 unsigned int sock = container_of(s, struct i82365_socket, socket)->number; in pcic_set_mem_map()
1198 if (socket[sock].flags & IS_ALIVE) in pcic_set_mem_map()
1280 socket[i].socket.dev.parent = &i82365_device->dev; in init_i82365()
1281 socket[i].socket.ops = &pcic_operations; in init_i82365()
1282 socket[i].socket.resource_ops = &pccard_nonstatic_ops; in init_i82365()
1283 socket[i].socket.owner = THIS_MODULE; in init_i82365()
1284 socket[i].number = i; in init_i82365()
1285 ret = pcmcia_register_socket(&socket[i].socket); in init_i82365()
1287 socket[i].flags |= IS_REGISTERED; in init_i82365()
1302 release_region(socket[i].ioaddr, 2); in init_i82365()
1322 if (socket[i].flags & IS_REGISTERED) in exit_i82365()
1323 pcmcia_unregister_socket(&socket[i].socket); in exit_i82365()
1333 release_region(socket[i].ioaddr, 2); in exit_i82365()