Lines Matching refs:lmc_gpio

376                     sc->lmc_gpio &= ~LMC_GEP_RESET;  in lmc_ioctl()
377 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
385 sc->lmc_gpio |= LMC_GEP_RESET; in lmc_ioctl()
386 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
448 sc->lmc_gpio &= ~(LMC_GEP_RESET | LMC_GEP_DP); in lmc_ioctl()
449 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
457 sc->lmc_gpio |= LMC_GEP_DP | LMC_GEP_RESET; in lmc_ioctl()
458 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
514 sc->lmc_gpio = 0x00; in lmc_ioctl()
515 sc->lmc_gpio &= ~LMC_GEP_DP; in lmc_ioctl()
516 sc->lmc_gpio &= ~LMC_GEP_RESET; in lmc_ioctl()
517 sc->lmc_gpio |= LMC_GEP_MODE; in lmc_ioctl()
518 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
540 sc->lmc_gpio = 0x00; in lmc_ioctl()
541 sc->lmc_gpio |= LMC_GEP_MODE; in lmc_ioctl()
542 sc->lmc_gpio |= LMC_GEP_DATA; in lmc_ioctl()
543 sc->lmc_gpio |= LMC_GEP_CLK; in lmc_ioctl()
544 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
560 sc->lmc_gpio &= ~LMC_GEP_DATA; /* Data is 0 */ in lmc_ioctl()
563 sc->lmc_gpio |= LMC_GEP_DATA; /* Data is 1 */ in lmc_ioctl()
567 sc->lmc_gpio |= LMC_GEP_DATA; /* Assume it's 1 */ in lmc_ioctl()
569 sc->lmc_gpio &= ~LMC_GEP_CLK; /* Clock to zero */ in lmc_ioctl()
570 sc->lmc_gpio |= LMC_GEP_MODE; in lmc_ioctl()
571 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
574 sc->lmc_gpio |= LMC_GEP_CLK; /* Put the clack back to one */ in lmc_ioctl()
575 sc->lmc_gpio |= LMC_GEP_MODE; in lmc_ioctl()
576 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_ioctl()
910 sc->lmc_gpio = 0; /* drive no signals yet */ in lmc_init_one()
1862 sc->lmc_gpio &= ~(LMC_GEP_RESET); in lmc_reset()
1863 LMC_CSR_WRITE(sc, csr_gp, sc->lmc_gpio); in lmc_reset()