Home | History | Annotate | Download | only in imx

Lines Matching defs:sock

456 	struct imx_pcic_socket *sock = (struct imx_pcic_socket *)arg;
460 while (sock->sc->sc_shutdown == 0) {
461 (void) tsleep(sock, PWAIT, "imx_pcicev", 0);
464 (void) tsleep((void *)sock, PWAIT, "imx_pcicss", hz/4);
466 cs = (*sock->pcictag->read)(sock, IMX_PCIC_CARD_STATUS);
467 present = sock->flags & IMX_PCIC_FLAG_CARDP;
473 imx_pcic_event_process(sock);
475 sock->event_thread = NULL;
478 wakeup(sock->sc);
485 imx_pcic_event_process(struct imx_pcic_socket *sock)
489 cs = (*sock->pcictag->read)(sock, IMX_PCIC_CARD_STATUS);
491 if (!(sock->flags & IMX_PCIC_FLAG_CARDP)) {
492 imx_pcic_attach_card(sock);
495 if ((sock->flags & IMX_PCIC_FLAG_CARDP)) {
496 imx_pcic_detach_card(sock, DETACH_FORCE);