Lines Matching refs:socket
80 /* Specify a socket number to ignore */
146 struct pcmcia_socket socket;
159 static struct i82365_socket socket[8] = {
222 unsigned int port = socket[sock].ioaddr;
224 reg = I365_REG(socket[sock].psock, reg);
236 unsigned int port = socket[sock].ioaddr;
237 u_char val = I365_REG(socket[sock].psock, reg);
297 struct cirrus_state *p = &socket[s].state.cirrus;
309 struct cirrus_state *p = &socket[s].state.cirrus;
323 struct i82365_socket *t = &socket[s];
324 struct cirrus_state *p = &socket[s].state.cirrus;
380 struct vg46x_state *p = &socket[s].state.vg46x;
382 if (socket[s].type == IS_VG469)
388 struct vg46x_state *p = &socket[s].state.vg46x;
390 if (socket[s].type == IS_VG469)
396 struct vg46x_state *p = &socket[s].state.vg46x;
404 if (socket[s].type == IS_VG469) {
427 struct i82365_socket *t = &socket[s];
436 struct i82365_socket *t = &socket[s];
455 if (socket[i].flags & IS_ALIVE) {
461 if (socket[i].flags & IS_CIRRUS)
463 else if (socket[i].flags & IS_VADEM)
577 /* Use the next free entry in the socket table */
578 socket[sockets].ioaddr = port;
579 socket[sockets].psock = sock;
664 socket[sockets].ioaddr = port;
665 socket[sockets].psock = psock;
666 socket[sockets].type = type;
667 socket[sockets].flags = pcic[type].flags;
669 socket[sockets].flags |= IS_ALIVE;
677 struct i82365_socket *t = &socket[sockets-ns];
684 printk(", %d socket%s\n", ns, ((ns > 1) ? "s" : ""));
726 /* Update socket interrupt information, capabilities */
728 t[i].socket.features |= SS_CAP_PCCARD;
729 t[i].socket.map_size = 0x1000;
730 t[i].socket.irq_mask = mask;
812 /* Does the socket exist? */
815 /* Check for bad socket decode */
843 if (socket[i].cs_irq != irq)
862 pr_debug("socket %d event 0x%02x\n", i, events);
865 pcmcia_parse_events(&socket[i].socket, events);
905 if (socket[sock].type == IS_VG469) {
907 if (socket[sock].psock & 1) {
924 struct i82365_socket *t = &socket[sock];
1111 Routines for accessing socket information and register dumps via
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;
1168 if (socket[sock].flags & IS_ALIVE) {
1178 unsigned int sock = container_of(s, struct i82365_socket, socket)->number;
1180 if (socket[sock].flags & IS_ALIVE)
1188 unsigned int sock = container_of(s, struct i82365_socket, socket)->number;
1189 if (socket[sock].flags & IS_ALIVE)
1197 unsigned int sock = container_of(s, struct i82365_socket, socket)->number;
1198 if (socket[sock].flags & IS_ALIVE)
1280 socket[i].socket.dev.parent = &i82365_device->dev;
1281 socket[i].socket.ops = &pcic_operations;
1282 socket[i].socket.resource_ops = &pccard_nonstatic_ops;
1283 socket[i].socket.owner = THIS_MODULE;
1284 socket[i].number = i;
1285 ret = pcmcia_register_socket(&socket[i].socket);
1287 socket[i].flags |= IS_REGISTERED;
1302 release_region(socket[i].ioaddr, 2);
1322 if (socket[i].flags & IS_REGISTERED)
1323 pcmcia_unregister_socket(&socket[i].socket);
1333 release_region(socket[i].ioaddr, 2);