Lines Matching refs:socket

224 	struct vrc4171_socket *socket;  in pccard_init()  local
233 socket = &vrc4171_sockets[slot]; in pccard_init()
234 socket->csc_irq = search_nonuse_irq(); in pccard_init()
235 socket->io_irq = search_nonuse_irq(); in pccard_init()
236 spin_lock_init(&socket->lock); in pccard_init()
307 struct vrc4171_socket *socket; in pccard_set_socket() local
317 socket = &vrc4171_sockets[slot]; in pccard_set_socket()
319 spin_lock_irq(&socket->lock); in pccard_set_socket()
333 control |= socket->io_irq; in pccard_set_socket()
346 cscint |= socket->csc_irq << 8; in pccard_set_socket()
362 spin_unlock_irq(&socket->lock); in pccard_set_socket()
507 struct vrc4171_socket *socket; in pccard_interrupt() local
514 socket = &vrc4171_sockets[CARD_SLOTA]; in pccard_interrupt()
515 if (socket->slot == SLOT_INITIALIZED) { in pccard_interrupt()
516 if (status & (1 << socket->csc_irq)) { in pccard_interrupt()
519 pcmcia_parse_events(&socket->pcmcia_socket, events); in pccard_interrupt()
527 socket = &vrc4171_sockets[CARD_SLOTB]; in pccard_interrupt()
528 if (socket->slot == SLOT_INITIALIZED) { in pccard_interrupt()
529 if (status & (1 << socket->csc_irq)) { in pccard_interrupt()
532 pcmcia_parse_events(&socket->pcmcia_socket, events); in pccard_interrupt()
557 struct vrc4171_socket *socket; in vrc4171_add_sockets() local
564 socket = &vrc4171_sockets[slot]; in vrc4171_add_sockets()
565 if (socket->slot != SLOT_PROBE) { in vrc4171_add_sockets()
568 switch (socket->slot) { in vrc4171_add_sockets()
587 sprintf(socket->name, "NEC VRC4171 Card Slot %1c", 'A' + slot); in vrc4171_add_sockets()
588 socket->pcmcia_socket.dev.parent = &vrc4171_card_device.dev; in vrc4171_add_sockets()
589 socket->pcmcia_socket.ops = &vrc4171_pccard_operations; in vrc4171_add_sockets()
590 socket->pcmcia_socket.owner = THIS_MODULE; in vrc4171_add_sockets()
592 retval = pcmcia_register_socket(&socket->pcmcia_socket); in vrc4171_add_sockets()
599 socket->slot = SLOT_INITIALIZED; in vrc4171_add_sockets()
607 struct vrc4171_socket *socket; in vrc4171_remove_sockets() local
614 socket = &vrc4171_sockets[slot]; in vrc4171_remove_sockets()
615 if (socket->slot == SLOT_INITIALIZED) in vrc4171_remove_sockets()
616 pcmcia_unregister_socket(&socket->pcmcia_socket); in vrc4171_remove_sockets()
618 socket->slot = SLOT_PROBE; in vrc4171_remove_sockets()