Home
last modified time | relevance | path

Searched refs:__raw_readw (Results 1 – 25 of 143) sorted by relevance

123456

/linux-6.6.21/arch/sh/boards/mach-sh7763rdp/
Dsetup.c163 if (__raw_readw(CPLD_BOARD_ID_ERV_REG) == 0xECB1) in sh7763rdp_setup()
169 __raw_writew((__raw_readw(PORT_PSEL2) & 0xFFC3), PORT_PSEL2); in sh7763rdp_setup()
171 __raw_writew(__raw_readw(PORT_PICR) & 0xFC0F, PORT_PICR); in sh7763rdp_setup()
178 __raw_writew(__raw_readw(PORT_PJCR) & 0x0003, PORT_PJCR); in sh7763rdp_setup()
180 __raw_writew(__raw_readw(PORT_PICR) & 0xF3FF, PORT_PICR); in sh7763rdp_setup()
184 __raw_writew((__raw_readw(PORT_PSEL2) & 0x00C0), PORT_PSEL2); in sh7763rdp_setup()
186 __raw_writew((__raw_readw(PORT_PSEL3) & 0x0700), PORT_PSEL3); in sh7763rdp_setup()
190 __raw_writew((__raw_readw(PORT_PSEL1) & 0xFFF0) | 0x0004, PORT_PSEL1); in sh7763rdp_setup()
192 __raw_writew(__raw_readw(PORT_PSEL4) | 0x4000, PORT_PSEL4); in sh7763rdp_setup()
195 __raw_writew((__raw_readw(PORT_PSEL1) & ~0xff00) | 0x2400, PORT_PSEL1); in sh7763rdp_setup()
[all …]
/linux-6.6.21/arch/sh/boards/mach-se/7206/
Dirq.c37 val = __raw_readw(INTC_IPR01); in disable_se7206_irq()
41 msk0 = __raw_readw(INTMSK0); in disable_se7206_irq()
42 msk1 = __raw_readw(INTMSK1); in disable_se7206_irq()
68 val = __raw_readw(INTC_IPR01); in enable_se7206_irq()
73 msk0 = __raw_readw(INTMSK0); in enable_se7206_irq()
74 msk1 = __raw_readw(INTMSK1); in enable_se7206_irq()
100 sts0 = __raw_readw(INTSTS0); in eoi_se7206_irq()
101 sts1 = __raw_readw(INTSTS1); in eoi_se7206_irq()
143 __raw_writew(__raw_readw(INTC_ICR1) | 0x000b, INTC_ICR1); /* ICR1 */ in init_se7206_IRQ()
/linux-6.6.21/arch/sh/include/mach-se/mach/
Dmrshpc.h9 if ((__raw_readw(MRSHPC_CSR) & 0x000c) != 0) in mrshpc_setup_windows()
12 if ((__raw_readw(MRSHPC_CSR) & 0x0080) == 0) { in mrshpc_setup_windows()
24 if((__raw_readw(MRSHPC_CSR) & 0x4000) != 0) in mrshpc_setup_windows()
33 if ((__raw_readw(MRSHPC_CSR) & 0x4000) != 0) in mrshpc_setup_windows()
43 if ((__raw_readw(MRSHPC_CSR) & 0x4000) != 0) in mrshpc_setup_windows()
/linux-6.6.21/arch/sh/boot/romimage/
Dmmcif-sh7724.c48 __raw_writew(__raw_readw(PTXCR) & ~0x000f, PTXCR); in mmcif_loader()
51 __raw_writew(__raw_readw(PSELA) & ~0x2000, PSELA); in mmcif_loader()
54 __raw_writew(__raw_readw(PSELE) & ~0x3000, PSELE); in mmcif_loader()
57 __raw_writew(__raw_readw(HIZCRC) & ~0x0620, HIZCRC); in mmcif_loader()
60 __raw_writew(__raw_readw(DRVCRA) | 0x3000, DRVCRA); in mmcif_loader()
/linux-6.6.21/arch/sh/kernel/cpu/sh3/
Dserial-sh7720.c16 data = __raw_readw(PORT_PTCR); in sh7720_sci_init_pins()
20 data = __raw_readw(PORT_PVCR); in sh7720_sci_init_pins()
26 data = __raw_readw(PORT_PTCR); in sh7720_sci_init_pins()
30 data = __raw_readw(PORT_PVCR); in sh7720_sci_init_pins()
Dclock-sh7710.c26 clk->rate *= md_table[__raw_readw(FRQCR) & 0x0007]; in master_clk_init()
35 int idx = (__raw_readw(FRQCR) & 0x0007); in module_clk_recalc()
45 int idx = (__raw_readw(FRQCR) & 0x0700) >> 8; in bus_clk_recalc()
55 int idx = (__raw_readw(FRQCR) & 0x0070) >> 4; in cpu_clk_recalc()
Dclock-sh7705.c32 clk->rate *= pfc_divisors[__raw_readw(FRQCR) & 0x0003]; in master_clk_init()
41 int idx = __raw_readw(FRQCR) & 0x0003; in module_clk_recalc()
51 int idx = (__raw_readw(FRQCR) & 0x0300) >> 8; in bus_clk_recalc()
61 int idx = (__raw_readw(FRQCR) & 0x0030) >> 4; in cpu_clk_recalc()
Dclock-sh3.c28 int frqcr = __raw_readw(FRQCR); in master_clk_init()
40 int frqcr = __raw_readw(FRQCR); in module_clk_recalc()
52 int frqcr = __raw_readw(FRQCR); in bus_clk_recalc()
64 int frqcr = __raw_readw(FRQCR); in cpu_clk_recalc()
Dclock-sh7706.c24 int frqcr = __raw_readw(FRQCR); in master_clk_init()
36 int frqcr = __raw_readw(FRQCR); in module_clk_recalc()
48 int frqcr = __raw_readw(FRQCR); in bus_clk_recalc()
60 int frqcr = __raw_readw(FRQCR); in cpu_clk_recalc()
Dclock-sh7709.c24 int frqcr = __raw_readw(FRQCR); in master_clk_init()
36 int frqcr = __raw_readw(FRQCR); in module_clk_recalc()
48 int frqcr = __raw_readw(FRQCR); in bus_clk_recalc()
61 int frqcr = __raw_readw(FRQCR); in cpu_clk_recalc()
Dserial-sh7710.c13 __raw_writew(__raw_readw(PACR) & 0xffc0, PACR); in sh7710_sci_init_pins()
14 __raw_writew(__raw_readw(PBCR) & 0x0fff, PBCR); in sh7710_sci_init_pins()
16 __raw_writew(__raw_readw(PBCR) & 0xf003, PBCR); in sh7710_sci_init_pins()
Dclock-sh7712.c23 int frqcr = __raw_readw(FRQCR); in master_clk_init()
35 int frqcr = __raw_readw(FRQCR); in module_clk_recalc()
47 int frqcr = __raw_readw(FRQCR); in cpu_clk_recalc()
/linux-6.6.21/arch/sh/kernel/cpu/sh4/
Dclock-sh4.c28 clk->rate *= pfc_divisors[__raw_readw(FRQCR) & 0x0007]; in master_clk_init()
37 int idx = (__raw_readw(FRQCR) & 0x0007); in module_clk_recalc()
47 int idx = (__raw_readw(FRQCR) >> 3) & 0x0007; in bus_clk_recalc()
57 int idx = (__raw_readw(FRQCR) >> 6) & 0x0007; in cpu_clk_recalc()
/linux-6.6.21/arch/sh/kernel/cpu/sh2a/
Dclock-sh7206.c26 clk->rate *= pll2_mult * pll1rate[(__raw_readw(FREQCR) >> 8) & 0x0007]; in master_clk_init()
35 int idx = (__raw_readw(FREQCR) & 0x0007); in module_clk_recalc()
45 return clk->parent->rate / pll1rate[(__raw_readw(FREQCR) >> 8) & 0x0007]; in bus_clk_recalc()
54 int idx = (__raw_readw(FREQCR) & 0x0007); in cpu_clk_recalc()
Dclock-sh7201.c27 pll1rate[(__raw_readw(FREQCR) >> 8) & 0x0007]; in master_clk_init()
36 int idx = (__raw_readw(FREQCR) & 0x0007); in module_clk_recalc()
46 int idx = (__raw_readw(FREQCR) & 0x0007); in bus_clk_recalc()
56 int idx = ((__raw_readw(FREQCR) >> 4) & 0x0007); in cpu_clk_recalc()
Dclock-sh7203.c29 clk->rate *= pll1rate[(__raw_readw(FREQCR) >> 8) & 0x0003] * pll2_mult; in master_clk_init()
38 int idx = (__raw_readw(FREQCR) & 0x0007); in module_clk_recalc()
48 int idx = (__raw_readw(FREQCR) & 0x0007); in bus_clk_recalc()
/linux-6.6.21/arch/m68k/include/asm/
Dio_no.h18 #define __raw_readw(addr) \ macro
69 return __raw_readw(addr); in readw()
70 return swab16(__raw_readw(addr)); in readw()
102 #define readw __raw_readw
/linux-6.6.21/arch/sh/kernel/cpu/sh2/
Dclock-sh7619.c25 clk->rate *= pll2_mult * pll1rate[(__raw_readw(FREQCR) >> 8) & 7]; in master_clk_init()
34 int idx = (__raw_readw(FREQCR) & 0x0007); in module_clk_recalc()
44 return clk->parent->rate / pll1rate[(__raw_readw(FREQCR) >> 8) & 7]; in bus_clk_recalc()
/linux-6.6.21/include/asm-generic/
Dlogic_io.h42 #define __raw_readw __raw_readw macro
43 u16 __raw_readw(const volatile void __iomem *addr);
/linux-6.6.21/arch/sh/cchips/hd6446x/
Dhd64461.c27 nimr = __raw_readw(HD64461_NIMR); in hd64461_mask_irq()
38 nimr = __raw_readw(HD64461_NIMR); in hd64461_unmask_irq()
62 unsigned short intv = __raw_readw(HD64461_NIRR); in hd64461_irq_demux()
/linux-6.6.21/arch/sh/kernel/cpu/irq/
Dipr.c35 __raw_writew(__raw_readw(addr) & (0xffff ^ (0xf << p->shift)), addr); in disable_ipr_irq()
36 (void)__raw_readw(addr); /* Read back to flush write posting */ in disable_ipr_irq()
44 __raw_writew(__raw_readw(addr) | (p->priority << p->shift), addr); in enable_ipr_irq()
/linux-6.6.21/arch/arc/include/asm/
Dio.h39 #define ioread16be(p) ({ u16 __v = be16_to_cpu((__force __be16)__raw_readw(p)); __iormb(); __v; })
62 #define __raw_readw __raw_readw macro
63 static inline u16 __raw_readw(const volatile void __iomem *addr) in __raw_readw() function
224 __raw_readw(c)); __r; })
/linux-6.6.21/arch/m68k/coldfire/
Dintc.c48 imr = __raw_readw(MCFSIM_IMR); in mcf_setimr()
55 imr = __raw_readw(MCFSIM_IMR); in mcf_clrimr()
62 imr = __raw_readw(MCFSIM_IMR); in mcf_maskimr()
/linux-6.6.21/arch/arm64/include/asm/
Dio.h59 #define __raw_readw __raw_readw macro
60 static __always_inline u16 __raw_readw(const volatile void __iomem *addr) in __raw_readw() function
154 #define ioread16be(p) ({ __u16 __v = be16_to_cpu((__force __be16)__raw_readw(p)); __iormb(__v); __…
/linux-6.6.21/arch/sh/boards/mach-x3proto/
Dgpio.c35 data = __raw_readw(KEYCTLR); in x3proto_gpio_direction_input()
45 return !!(__raw_readw(KEYDETR) & (1 << gpio)); in x3proto_gpio_get()
69 mask = __raw_readw(KEYDETR); in x3proto_gpio_irq_handler()

123456