Lines Matching refs:lmc_gpio
381 sc->lmc_gpio &= ~LMC_GEP_RESET; in lmc_ioctl()
382 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
390 sc->lmc_gpio |= LMC_GEP_RESET; in lmc_ioctl()
391 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
453 sc->lmc_gpio &= ~(LMC_GEP_RESET | LMC_GEP_DP); in lmc_ioctl()
454 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
462 sc->lmc_gpio |= LMC_GEP_DP | LMC_GEP_RESET; in lmc_ioctl()
463 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
526 sc->lmc_gpio = 0x00; in lmc_ioctl()
527 sc->lmc_gpio &= ~LMC_GEP_DP; in lmc_ioctl()
528 sc->lmc_gpio &= ~LMC_GEP_RESET; in lmc_ioctl()
529 sc->lmc_gpio |= LMC_GEP_MODE; in lmc_ioctl()
530 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
552 sc->lmc_gpio = 0x00; in lmc_ioctl()
553 sc->lmc_gpio |= LMC_GEP_MODE; in lmc_ioctl()
554 sc->lmc_gpio |= LMC_GEP_DATA; in lmc_ioctl()
555 sc->lmc_gpio |= LMC_GEP_CLK; in lmc_ioctl()
556 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
572 sc->lmc_gpio &= ~LMC_GEP_DATA; /* Data is 0 */ in lmc_ioctl()
575 sc->lmc_gpio |= LMC_GEP_DATA; /* Data is 1 */ in lmc_ioctl()
579 sc->lmc_gpio |= LMC_GEP_DATA; /* Assume it's 1 */ in lmc_ioctl()
581 sc->lmc_gpio &= ~LMC_GEP_CLK; /* Clock to zero */ in lmc_ioctl()
582 sc->lmc_gpio |= LMC_GEP_MODE; in lmc_ioctl()
583 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
586 sc->lmc_gpio |= LMC_GEP_CLK; /* Put the clack back to one */ in lmc_ioctl()
587 sc->lmc_gpio |= LMC_GEP_MODE; in lmc_ioctl()
588 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
932 sc->lmc_gpio = 0; /* drive no signals yet */ in lmc_init_one()
1955 sc->lmc_gpio &= ~(LMC_GEP_RESET); in lmc_reset()
1956 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_reset()