Home
last modified time | relevance | path

Searched refs:__raw_readb (Results 1 – 25 of 85) sorted by relevance

1234

/linux-6.6.21/arch/sh/boards/mach-sh03/
Drtc.c48 sec = (__raw_readb(RTC_SEC1) & 0xf) + (__raw_readb(RTC_SEC10) & 0x7) * 10; in sh03_rtc_gettimeofday()
49 min = (__raw_readb(RTC_MIN1) & 0xf) + (__raw_readb(RTC_MIN10) & 0xf) * 10; in sh03_rtc_gettimeofday()
50 hour = (__raw_readb(RTC_HOU1) & 0xf) + (__raw_readb(RTC_HOU10) & 0xf) * 10; in sh03_rtc_gettimeofday()
51 day = (__raw_readb(RTC_DAY1) & 0xf) + (__raw_readb(RTC_DAY10) & 0xf) * 10; in sh03_rtc_gettimeofday()
52 mon = (__raw_readb(RTC_MON1) & 0xf) + (__raw_readb(RTC_MON10) & 0xf) * 10; in sh03_rtc_gettimeofday()
53 year = (__raw_readb(RTC_YEA1) & 0xf) + (__raw_readb(RTC_YEA10) & 0xf) * 10 in sh03_rtc_gettimeofday()
54 + (__raw_readb(RTC_YEA100 ) & 0xf) * 100 in sh03_rtc_gettimeofday()
55 + (__raw_readb(RTC_YEA1000) & 0xf) * 1000; in sh03_rtc_gettimeofday()
56 } while (sec != (__raw_readb(RTC_SEC1) & 0xf) + (__raw_readb(RTC_SEC10) & 0x7) * 10); in sh03_rtc_gettimeofday()
98 if (!(__raw_readb(RTC_CTL) & RTC_BUSY)) in set_rtc_mmss()
[all …]
/linux-6.6.21/arch/sh/kernel/cpu/
Dadc.c22 csr = __raw_readb(ADCSR); in adc_single()
27 csr = __raw_readb(ADCSR); in adc_single()
33 return (((__raw_readb(ADDRAH + off) << 8) | in adc_single()
34 __raw_readb(ADDRAL + off)) >> 6); in adc_single()
/linux-6.6.21/drivers/input/touchscreen/
Dhp680_ts_input.c32 if (__raw_readb(PHDR) & PHDR_TS_PEN_DOWN) { in do_softint()
33 scpdr = __raw_readb(SCPDR); in do_softint()
41 scpdr = __raw_readb(SCPDR); in do_softint()
49 scpdr = __raw_readb(SCPDR); in do_softint()
54 touched = __raw_readb(PHDR) & PHDR_TS_PEN_DOWN; in do_softint()
/linux-6.6.21/arch/sparc/lib/
DPeeCeeI.c97 *pb++ = __raw_readb(addr); in insb()
102 w = (__raw_readb(addr) << 24); in insb()
103 w |= (__raw_readb(addr) << 16); in insb()
104 w |= (__raw_readb(addr) << 8); in insb()
105 w |= (__raw_readb(addr) << 0); in insb()
111 *pb++ = __raw_readb(addr); in insb()
/linux-6.6.21/arch/arm/mach-ep93xx/
Dts72xx.h54 return __raw_readb(TS72XX_MODEL_VIRT_BASE) & TS72XX_MODEL_MASK; in ts72xx_model()
84 return !!(__raw_readb(TS72XX_OPTIONS_VIRT_BASE) & in is_max197_installed()
90 return !!(__raw_readb(TS72XX_OPTIONS2_VIRT_BASE) & in is_ts9420_installed()
/linux-6.6.21/include/asm-generic/
Dlogic_io.h39 #define __raw_readb __raw_readb macro
40 u8 __raw_readb(const volatile void __iomem *addr);
/linux-6.6.21/drivers/rtc/
Drtc-rs5c313.c91 __raw_writeb(__raw_readb(SCSMR1) & ~SCSMR1_CA, SCSMR1); in rs5c313_init_port()
92 __raw_writeb(__raw_readb(SCSCR1) & ~SCSCR1_CKE, SCSCR1); in rs5c313_init_port()
95 scsptr1_data = __raw_readb(SCSPTR1) | SCL; /* SCL:H */ in rs5c313_init_port()
97 scsptr1_data = __raw_readb(SCSPTR1) | SCL_OEN; /* SCL output enable */ in rs5c313_init_port()
135 data |= ((__raw_readb(SCSPTR1) & SDA) >> 2) << (7 - i); in rs5c313_read_data()
/linux-6.6.21/arch/sh/kernel/cpu/sh4a/
Dsetup-sh7724.c1182 sh7724_rstandby_state.imr0 = __raw_readb(0xa4080080); /* IMR0 */ in sh7724_pre_sleep_notifier_call()
1183 sh7724_rstandby_state.imr1 = __raw_readb(0xa4080084); /* IMR1 */ in sh7724_pre_sleep_notifier_call()
1184 sh7724_rstandby_state.imr2 = __raw_readb(0xa4080088); /* IMR2 */ in sh7724_pre_sleep_notifier_call()
1185 sh7724_rstandby_state.imr3 = __raw_readb(0xa408008c); /* IMR3 */ in sh7724_pre_sleep_notifier_call()
1186 sh7724_rstandby_state.imr4 = __raw_readb(0xa4080090); /* IMR4 */ in sh7724_pre_sleep_notifier_call()
1187 sh7724_rstandby_state.imr5 = __raw_readb(0xa4080094); /* IMR5 */ in sh7724_pre_sleep_notifier_call()
1188 sh7724_rstandby_state.imr6 = __raw_readb(0xa4080098); /* IMR6 */ in sh7724_pre_sleep_notifier_call()
1189 sh7724_rstandby_state.imr7 = __raw_readb(0xa408009c); /* IMR7 */ in sh7724_pre_sleep_notifier_call()
1190 sh7724_rstandby_state.imr8 = __raw_readb(0xa40800a0); /* IMR8 */ in sh7724_pre_sleep_notifier_call()
1191 sh7724_rstandby_state.imr9 = __raw_readb(0xa40800a4); /* IMR9 */ in sh7724_pre_sleep_notifier_call()
[all …]
/linux-6.6.21/arch/sh/boards/mach-hp6xx/
Dpm.c60 stbcr = __raw_readb(STBCR); in pm_enter()
119 stbcr = __raw_readb(STBCR); in hp6x0_pm_enter()
122 stbcr2 = __raw_readb(STBCR2); in hp6x0_pm_enter()
/linux-6.6.21/drivers/sh/intc/
Daccess.c79 return intc_get_field_from_handle(__raw_readb(ptr), h); in test_8()
101 (void)__raw_readb(ptr); /* Defeat write posting */ in write_8()
130 value = intc_set_field_from_handle(__raw_readb(ptr), data, h); in modify_8()
132 (void)__raw_readb(ptr); /* Defeat write posting */ in modify_8()
/linux-6.6.21/arch/riscv/include/asm/
Dmmio.h44 #define __raw_readb __raw_readb macro
45 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() function
87 #define readb_cpu(c) ({ u8 __r = __raw_readb(c); __r; })
/linux-6.6.21/arch/sh/include/cpu-sh3/cpu/
Ddac.h21 v = __raw_readb(DACR); in sh_dac_enable()
30 v = __raw_readb(DACR); in sh_dac_disable()
/linux-6.6.21/drivers/cdrom/
Dgdrom.c125 return (__raw_readb(GDROM_ALTSTATUS_REG) & 0x80) != 0; in gdrom_is_busy()
130 return (__raw_readb(GDROM_ALTSTATUS_REG) & 0x88) == 8; in gdrom_data_request()
136 while ((__raw_readb(GDROM_ALTSTATUS_REG) & 0x80) && in gdrom_wait_clrbusy()
219 return __raw_readb(GDROM_ERROR_REG); in gdrom_execute_diagnostic()
368 char sense = __raw_readb(GDROM_ERROR_REG); in gdrom_drivestatus()
382 return (__raw_readb(GDROM_ERROR_REG) & 0xF0) == 0x60 ? in gdrom_check_events()
527 gd.status = __raw_readb(GDROM_STATUSCOMMAND_REG); in gdrom_command_interrupt()
537 gd.status = __raw_readb(GDROM_STATUSCOMMAND_REG); in gdrom_dma_interrupt()
618 while (__raw_readb(GDROM_DMA_STATUS_REG) && in gdrom_readdisk_dma()
/linux-6.6.21/drivers/input/keyboard/
Djornada680_kbd.c153 *s++ = __raw_readb(PCDR); in jornada_scan_keyb()
154 *s++ = __raw_readb(PFDR); in jornada_scan_keyb()
165 *s++ = __raw_readb(PGDR); in jornada_scan_keyb()
166 *s++ = __raw_readb(PHDR); in jornada_scan_keyb()
/linux-6.6.21/arch/m68k/coldfire/
Dintc-2.c123 if (__raw_readb(icraddr) == 0) in intc_irq_startup()
133 v = __raw_readb(MCFEPORT_EPDDR); in intc_irq_startup()
137 v = __raw_readb(MCFEPORT_EPIER); in intc_irq_startup()
/linux-6.6.21/arch/arc/include/asm/
Dio.h48 #define __raw_readb __raw_readb macro
49 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() function
222 #define readb_relaxed(c) __raw_readb(c)
/linux-6.6.21/arch/sh/include/mach-common/mach/
Dmagicpanelr2.h19 #define SETBITS_OUTB(mask, reg) __raw_writeb(__raw_readb(reg) | mask, reg)
22 #define CLRBITS_OUTB(mask, reg) __raw_writeb(__raw_readb(reg) & ~mask, reg)
/linux-6.6.21/arch/sh/include/asm/
Dwatchdog.h122 return __raw_readb(WTCNT_R); in sh_wdt_read_cnt()
144 return __raw_readb(WTCSR_R); in sh_wdt_read_csr()
/linux-6.6.21/arch/arm64/include/asm/
Dio.h48 #define __raw_readb __raw_readb macro
49 static __always_inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() function
/linux-6.6.21/arch/csky/kernel/
Dio.c13 *(u8 *)to = __raw_readb(from); in __memcpy_fromio()
27 *(u8 *)to = __raw_readb(from); in __memcpy_fromio()
/linux-6.6.21/arch/arm64/kernel/
Dio.c18 *(u8 *)to = __raw_readb(from); in __memcpy_fromio()
32 *(u8 *)to = __raw_readb(from); in __memcpy_fromio()
/linux-6.6.21/arch/loongarch/kernel/
Dio.c15 *(u8 *)to = __raw_readb(from); in __memcpy_fromio()
29 *(u8 *)to = __raw_readb(from); in __memcpy_fromio()
/linux-6.6.21/arch/arm/include/asm/
Dio.h99 #define __raw_readb __raw_readb macro
100 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() function
241 #define inb(p) ({ __u8 __v = __raw_readb(__io(p)); __iormb(); __v; })
274 #define readb_relaxed(c) ({ u8 __r = __raw_readb(c); __r; })
/linux-6.6.21/arch/m68k/include/asm/
Dio_no.h16 #define __raw_readb(addr) \ macro
101 #define readb __raw_readb
/linux-6.6.21/arch/alpha/include/asm/
Dio.h269 extern u8 __raw_readb(const volatile void __iomem *addr);
277 #define __raw_readb __raw_readb macro
439 extern inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() function
463 ret = __raw_readb(addr); in readb()
567 return __raw_readb(addr); in readb_relaxed()

1234