Lines Matching refs:cpld
93 static void __iomem *cpld; variable
297 if (!cpld) in cpld_mmc_get_cd()
301 return !(__raw_readb(cpld + CPLD_CARDSTAT) & BIT(module ? 4 : 0)); in cpld_mmc_get_cd()
306 if (!cpld) in cpld_mmc_get_ro()
310 return !!(__raw_readb(cpld + CPLD_CARDSTAT) & BIT(module ? 5 : 1)); in cpld_mmc_get_ro()
635 u8 reg = __raw_readb(cpld + CPLD_LEDS); in cpld_led_set()
641 __raw_writeb(reg, cpld + CPLD_LEDS); in cpld_led_set()
647 u8 reg = __raw_readb(cpld + CPLD_LEDS); in cpld_led_get()
656 if (!have_leds() || !cpld) in cpld_leds_init()
660 __raw_writeb(0xff, cpld + CPLD_LEDS); in cpld_leds_init()
704 cpld = ioremap(DM365_ASYNC_EMIF_DATA_CE1_BASE, SECTION_SIZE); in evm_init_cpld()
705 if (!cpld) { in evm_init_cpld()
720 if ((__raw_readb(cpld + CPLD_SWITCH) & BIT(5)) == 0) { in evm_init_cpld()
774 __raw_writeb(mux, cpld + CPLD_MUX); in evm_init_cpld()
775 __raw_writeb(resets, cpld + CPLD_RESETS); in evm_init_cpld()