/linux-6.1.9/arch/sh/include/mach-se/mach/ |
D | mrshpc.h | 13 __raw_writew(0x0674, MRSHPC_CPWCR); /* Card Vcc is 3.3v? */ in mrshpc_setup_windows() 15 __raw_writew(0x0678, MRSHPC_CPWCR); /* Card Vcc is 5V */ in mrshpc_setup_windows() 23 __raw_writew(0x8a84, MRSHPC_MW0CR1); in mrshpc_setup_windows() 26 __raw_writew(0x0b00, MRSHPC_MW0CR2); in mrshpc_setup_windows() 29 __raw_writew(0x0300, MRSHPC_MW0CR2); in mrshpc_setup_windows() 32 __raw_writew(0x8a85, MRSHPC_MW1CR1); in mrshpc_setup_windows() 35 __raw_writew(0x0a00, MRSHPC_MW1CR2); in mrshpc_setup_windows() 38 __raw_writew(0x0200, MRSHPC_MW1CR2); in mrshpc_setup_windows() 41 __raw_writew(0x8a86, MRSHPC_IOWCR1); in mrshpc_setup_windows() 42 __raw_writew(0x0008, MRSHPC_CDCR); /* I/O card mode */ in mrshpc_setup_windows() [all …]
|
/linux-6.1.9/arch/sh/boards/ |
D | board-magicpanelr2.c | 100 __raw_writew(0x5555, PORT_PACR); /* 01 01 01 01 01 01 01 01 */ in setup_port_multiplexing() 105 __raw_writew(0x5555, PORT_PBCR); /* 01 01 01 01 01 01 01 01 */ in setup_port_multiplexing() 110 __raw_writew(0x5500, PORT_PCCR); /* 01 01 01 01 00 00 00 00 */ in setup_port_multiplexing() 115 __raw_writew(0x5555, PORT_PDCR); /* 01 01 01 01 01 01 01 01 */ in setup_port_multiplexing() 120 __raw_writew(0x3C00, PORT_PECR); /* 00 11 11 00 00 00 00 00 */ in setup_port_multiplexing() 125 __raw_writew(0x0002, PORT_PFCR); /* 00 00 00 00 00 00 00 10 */ in setup_port_multiplexing() 130 __raw_writew(0x03D5, PORT_PGCR); /* 00 00 00 11 11 01 01 01 */ in setup_port_multiplexing() 135 __raw_writew(0x0050, PORT_PHCR); /* 00 00 00 00 01 01 00 00 */ in setup_port_multiplexing() 140 __raw_writew(0x0000, PORT_PJCR); /* 00 00 00 00 00 00 00 00 */ in setup_port_multiplexing() 145 __raw_writew(0x00FF, PORT_PKCR); /* 00 00 00 00 11 11 11 11 */ in setup_port_multiplexing() [all …]
|
D | board-polaris.c | 106 __raw_writew(wcr, WCR2); in polaris_initialise() 111 __raw_writew(bcr_mask, BCR2); in polaris_initialise() 142 __raw_writew(0, BCR_ILCRA); in init_polaris_irq() 143 __raw_writew(0, BCR_ILCRB); in init_polaris_irq() 144 __raw_writew(0, BCR_ILCRC); in init_polaris_irq() 145 __raw_writew(0, BCR_ILCRD); in init_polaris_irq() 146 __raw_writew(0, BCR_ILCRE); in init_polaris_irq() 147 __raw_writew(0, BCR_ILCRF); in init_polaris_irq() 148 __raw_writew(0, BCR_ILCRG); in init_polaris_irq()
|
/linux-6.1.9/arch/sh/boards/mach-sh7763rdp/ |
D | setup.c | 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() 174 __raw_writew(0x00, USB_USBHSC); 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() 181 __raw_writew(0, PORT_PKCR); in sh7763rdp_setup() 182 __raw_writew(0, PORT_PLCR); 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() [all …]
|
/linux-6.1.9/arch/sh/boards/mach-se/7722/ |
D | setup.c | 155 __raw_writew(0x010D, FPGA_OUT); /* FPGA */ in se7722_setup() 157 __raw_writew(0x0000, PORT_PECR); /* PORT E 1 = IRQ5 ,E 0 = BS */ in se7722_setup() 158 __raw_writew(0x1000, PORT_PJCR); /* PORT J 1 = IRQ1,J 0 =IRQ0 */ in se7722_setup() 161 __raw_writew(0x0020, PORT_PSELD); in se7722_setup() 164 __raw_writew(0x0003, PORT_PSELB); in se7722_setup() 165 __raw_writew(0xe000, PORT_PSELC); in se7722_setup() 166 __raw_writew(0x0000, PORT_PKCR); in se7722_setup() 169 __raw_writew(0x4020, PORT_PHCR); in se7722_setup() 170 __raw_writew(0x0000, PORT_PLCR); in se7722_setup() 171 __raw_writew(0x0000, PORT_PMCR); in se7722_setup() [all …]
|
/linux-6.1.9/arch/sh/boards/mach-se/7780/ |
D | setup.c | 75 __raw_writew( 'S' , PA_LED_DISP + (DISP_SEL0_ADDR << 1) ); in se7780_setup() 76 __raw_writew( 'H' , PA_LED_DISP + (DISP_SEL1_ADDR << 1) ); in se7780_setup() 77 __raw_writew( '-' , PA_LED_DISP + (DISP_SEL2_ADDR << 1) ); in se7780_setup() 78 __raw_writew( 'L' , PA_LED_DISP + (DISP_SEL3_ADDR << 1) ); in se7780_setup() 79 __raw_writew( 'i' , PA_LED_DISP + (DISP_SEL4_ADDR << 1) ); in se7780_setup() 80 __raw_writew( 'n' , PA_LED_DISP + (DISP_SEL5_ADDR << 1) ); in se7780_setup() 81 __raw_writew( 'u' , PA_LED_DISP + (DISP_SEL6_ADDR << 1) ); in se7780_setup() 82 __raw_writew( 'x' , PA_LED_DISP + (DISP_SEL7_ADDR << 1) ); in se7780_setup() 93 __raw_writew(0x0213, FPGA_REQSEL); in se7780_setup() 96 __raw_writew(0x0000, GPIO_PECR); in se7780_setup() [all …]
|
D | irq.c | 24 __raw_writew(0, FPGA_INTMSK1); in init_se7780_IRQ() 26 __raw_writew((__raw_readw(FPGA_INTMSK1) | 0x0002), FPGA_INTMSK1); in init_se7780_IRQ() 28 __raw_writew(0, FPGA_INTMSK2); in init_se7780_IRQ() 32 __raw_writew( ((IRQPIN_SM501 << IRQPOS_SM501) | in init_se7780_IRQ() 36 __raw_writew(((IRQPIN_EXTINT4 << IRQPOS_EXTINT4) | in init_se7780_IRQ() 42 __raw_writew((IRQPIN_PCCPW << IRQPOS_PCCPW), FPGA_INTSEL3); in init_se7780_IRQ() 63 __raw_writew(0x0013, FPGA_PCI_INTSEL1); in init_se7780_IRQ() 64 __raw_writew(0xE402, FPGA_PCI_INTSEL2); in init_se7780_IRQ()
|
/linux-6.1.9/arch/sh/boards/mach-se/7206/ |
D | irq.c | 39 __raw_writew(val, INTC_IPR01); in disable_se7206_irq() 56 __raw_writew(msk0, INTMSK0); in disable_se7206_irq() 57 __raw_writew(msk1, INTMSK1); in disable_se7206_irq() 70 __raw_writew(val, INTC_IPR01); in enable_se7206_irq() 88 __raw_writew(msk0, INTMSK0); in enable_se7206_irq() 89 __raw_writew(msk1, INTMSK1); in enable_se7206_irq() 115 __raw_writew(sts0, INTSTS0); in eoi_se7206_irq() 116 __raw_writew(sts1, INTSTS1); in eoi_se7206_irq() 143 __raw_writew(__raw_readw(INTC_ICR1) | 0x000b, INTC_ICR1); /* ICR1 */ in init_se7206_IRQ() 146 __raw_writew(0x0000,INTSTS0); /* Clear INTSTS0 */ in init_se7206_IRQ() [all …]
|
/linux-6.1.9/arch/sh/boards/mach-se/770x/ |
D | irq.c | 100 __raw_writew(0, BCR_ILCRA); in init_se_IRQ() 101 __raw_writew(0, BCR_ILCRB); in init_se_IRQ() 102 __raw_writew(0, BCR_ILCRC); in init_se_IRQ() 103 __raw_writew(0, BCR_ILCRD); in init_se_IRQ() 104 __raw_writew(0, BCR_ILCRE); in init_se_IRQ() 105 __raw_writew(0, BCR_ILCRF); in init_se_IRQ() 106 __raw_writew(0, BCR_ILCRG); in init_se_IRQ()
|
/linux-6.1.9/arch/sh/boards/mach-se/7724/ |
D | irq.c | 75 __raw_writew(__raw_readw(set.mraddr) | 0x0001 << bit, set.mraddr); in disable_se7724_irq() 83 __raw_writew(__raw_readw(set.mraddr) & ~(0x0001 << bit), set.mraddr); in enable_se7724_irq() 116 __raw_writew(0xffff, IRQ0_MR); /* mask all */ in init_se7724_IRQ() 117 __raw_writew(0xffff, IRQ1_MR); /* mask all */ in init_se7724_IRQ() 118 __raw_writew(0xffff, IRQ2_MR); /* mask all */ in init_se7724_IRQ() 119 __raw_writew(0x0000, IRQ0_SR); /* clear irq */ in init_se7724_IRQ() 120 __raw_writew(0x0000, IRQ1_SR); /* clear irq */ in init_se7724_IRQ() 121 __raw_writew(0x0000, IRQ2_SR); /* clear irq */ in init_se7724_IRQ() 122 __raw_writew(0x002a, IRQ_MODE); /* set irq type */ in init_se7724_IRQ()
|
/linux-6.1.9/arch/sh/boot/romimage/ |
D | mmcif-sh7724.c | 45 __raw_writew(0x0000, PTWCR); in mmcif_loader() 48 __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.1.9/arch/mips/alchemy/devboards/ |
D | bcsr.c | 67 __raw_writew(val, bcsr_regs[reg].raddr); in bcsr_write() 82 __raw_writew(r, bcsr_regs[reg].raddr); in bcsr_mod() 104 __raw_writew(v, bcsr_virt + BCSR_REG_MASKCLR); in bcsr_irq_mask() 111 __raw_writew(v, bcsr_virt + BCSR_REG_MASKCLR); in bcsr_irq_maskack() 112 __raw_writew(v, bcsr_virt + BCSR_REG_INTSTAT); /* ack */ in bcsr_irq_maskack() 119 __raw_writew(v, bcsr_virt + BCSR_REG_MASKSET); in bcsr_irq_unmask() 135 __raw_writew(0xffff, bcsr_virt + BCSR_REG_MASKCLR); in bcsr_init_irq() 136 __raw_writew(0xffff, bcsr_virt + BCSR_REG_INTSET); in bcsr_init_irq() 137 __raw_writew(0xffff, bcsr_virt + BCSR_REG_INTSTAT); in bcsr_init_irq()
|
/linux-6.1.9/arch/m68k/coldfire/ |
D | pit.c | 48 __raw_writew(MCFPIT_PCSR_DISABLE, TA(MCFPIT_PCSR)); in cf_pit_set_periodic() 49 __raw_writew(PIT_CYCLES_PER_JIFFY, TA(MCFPIT_PMR)); in cf_pit_set_periodic() 50 __raw_writew(MCFPIT_PCSR_EN | MCFPIT_PCSR_PIE | in cf_pit_set_periodic() 58 __raw_writew(MCFPIT_PCSR_DISABLE, TA(MCFPIT_PCSR)); in cf_pit_set_oneshot() 59 __raw_writew(MCFPIT_PCSR_EN | MCFPIT_PCSR_PIE | in cf_pit_set_oneshot() 66 __raw_writew(MCFPIT_PCSR_DISABLE, TA(MCFPIT_PCSR)); in cf_pit_shutdown() 78 __raw_writew(delta, TA(MCFPIT_PMR)); in cf_pit_next_event() 105 __raw_writew(pcsr | MCFPIT_PCSR_PIF, TA(MCFPIT_PCSR)); in pit_tick()
|
D | timers.c | 45 #define __raw_writetrr __raw_writew 114 __raw_writew(MCFTIMER_TMR_DISABLE, TA(MCFTIMER_TMR)); in hw_timer_init() 123 __raw_writew(MCFTIMER_TMR_ENORI | MCFTIMER_TMR_CLK16 | in hw_timer_init() 177 __raw_writew(MCFTIMER_TMR_DISABLE, PA(MCFTIMER_TMR)); in coldfire_profile_init() 180 __raw_writew(MCFTIMER_TMR_ENORI | MCFTIMER_TMR_CLK16 | in coldfire_profile_init()
|
/linux-6.1.9/arch/sh/boards/mach-highlander/ |
D | irq-r7785rp.c | 71 __raw_writew(0x0000, PA_IRLSSR1); /* FPGA IRLSSR1(CF_CD clear) */ in highlander_plat_irq_setup() 74 __raw_writew(0x0000, PA_IRLPRA); /* FPGA IRLA */ in highlander_plat_irq_setup() 75 __raw_writew(0xe598, PA_IRLPRB); /* FPGA IRLB */ in highlander_plat_irq_setup() 76 __raw_writew(0x7060, PA_IRLPRC); /* FPGA IRLC */ in highlander_plat_irq_setup() 77 __raw_writew(0x0000, PA_IRLPRD); /* FPGA IRLD */ in highlander_plat_irq_setup() 78 __raw_writew(0x4321, PA_IRLPRE); /* FPGA IRLE */ in highlander_plat_irq_setup() 79 __raw_writew(0xdcba, PA_IRLPRF); /* FPGA IRLF */ in highlander_plat_irq_setup()
|
D | setup.c | 313 __raw_writew(__raw_readw(PA_IVDRCTL) | (1 << IVDR_CK_ON), PA_IVDRCTL); in ivdr_clk_enable() 319 __raw_writew(__raw_readw(PA_IVDRCTL) & ~(1 << IVDR_CK_ON), PA_IVDRCTL); in ivdr_clk_disable() 343 __raw_writew(0x0001, PA_POFF); in r7780rp_power_off() 378 __raw_writew(0x0000, PA_OBLED); /* Clear LED. */ in highlander_setup() 381 __raw_writew(0x0001, PA_SDPOW); /* SD Power ON */ in highlander_setup() 383 __raw_writew(__raw_readw(PA_IVDRCTL) | 0x01, PA_IVDRCTL); /* Si13112 */ in highlander_setup()
|
/linux-6.1.9/arch/sh/boards/mach-hp6xx/ |
D | pm.c | 57 __raw_writew(frqcr, FRQCR); in pm_enter() 65 __raw_writew(mcr & ~MCR_RFSH, MCR); in pm_enter() 75 __raw_writew(0, RTCNT); in pm_enter() 76 __raw_writew(mcr | MCR_RFSH | MCR_RMODE, MCR); in pm_enter() 87 __raw_writew(frqcr, FRQCR); in pm_enter() 90 __raw_writew(frqcr, FRQCR); in pm_enter()
|
/linux-6.1.9/arch/sh/kernel/cpu/sh3/ |
D | serial-sh7720.c | 17 __raw_writew((data & 0xfc03), PORT_PTCR); in sh7720_sci_init_pins() 21 __raw_writew((data & 0xfc03), PORT_PVCR); in sh7720_sci_init_pins() 27 __raw_writew((data & 0xffc3), PORT_PTCR); in sh7720_sci_init_pins() 31 __raw_writew((data & 0xffc3), PORT_PVCR); in sh7720_sci_init_pins()
|
D | serial-sh7710.c | 13 __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()
|
/linux-6.1.9/arch/sh/boards/mach-se/7721/ |
D | setup.c | 79 __raw_writew(0x0000, 0xA405010C); /* PGCR */ in se7721_setup() 80 __raw_writew(0x0000, 0xA405010E); /* PHCR */ in se7721_setup() 81 __raw_writew(0x00AA, 0xA4050118); /* PPCR */ in se7721_setup() 82 __raw_writew(0x0000, 0xA4050124); /* PSELA */ in se7721_setup()
|
/linux-6.1.9/arch/sh/cchips/hd6446x/ |
D | hd64461.c | 29 __raw_writew(nimr, HD64461_NIMR); in hd64461_mask_irq() 40 __raw_writew(nimr, HD64461_NIMR); in hd64461_unmask_irq() 86 __raw_writew(0x2240, INTC_ICR1); in setup_hd64461() 88 __raw_writew(0xffff, HD64461_NIMR); in setup_hd64461()
|
/linux-6.1.9/arch/sparc/include/asm/ |
D | ide.h | 74 __raw_writew(*ps++, port); in __ide_outsw() 82 __raw_writew((w >> 16), port); in __ide_outsw() 83 __raw_writew(w, port); in __ide_outsw() 88 __raw_writew(*ps, port); in __ide_outsw()
|
/linux-6.1.9/arch/m68k/include/asm/ |
D | io_no.h | 24 #define __raw_writew(b, addr) (void)((*(__force volatile u16 *) (addr)) = (b)) macro 85 __raw_writew(value, addr); in writew() 87 __raw_writew(swab16(value), addr); in writew() 105 #define writew __raw_writew
|
/linux-6.1.9/arch/sh/kernel/cpu/sh4/ |
D | perf_event.c | 214 __raw_writew(tmp, PMCR(idx)); in sh7750_pmu_disable() 219 __raw_writew(__raw_readw(PMCR(idx)) | PMCR_PMCLR, PMCR(idx)); in sh7750_pmu_enable() 220 __raw_writew(hwc->config | PMCR_PMEN | PMCR_PMST, PMCR(idx)); in sh7750_pmu_enable() 228 __raw_writew(__raw_readw(PMCR(i)) & ~PMCR_PMEN, PMCR(i)); in sh7750_pmu_disable_all() 236 __raw_writew(__raw_readw(PMCR(i)) | PMCR_PMEN, PMCR(i)); in sh7750_pmu_enable_all()
|
/linux-6.1.9/include/asm-generic/ |
D | logic_io.h | 56 #define __raw_writew __raw_writew macro 57 void __raw_writew(u16 value, volatile void __iomem *addr);
|