Home
last modified time | relevance | path

Searched refs:__raw_writel (Results 1 – 25 of 72) sorted by relevance

123

/linux-4.19.296/drivers/rtc/
Drtc-nuc900.c71 __raw_writel(rtc_irq, rtc->rtc_reg + REG_RTC_RIIR); in nuc900_rtc_interrupt()
77 __raw_writel(rtc_irq, rtc->rtc_reg + REG_RTC_RIIR); in nuc900_rtc_interrupt()
89 __raw_writel(INIRRESET, nuc900_rtc->rtc_reg + REG_RTC_INIR); in check_rtc_access_enable()
93 __raw_writel(AERPOWERON, nuc900_rtc->rtc_reg + REG_RTC_AER); in check_rtc_access_enable()
140 __raw_writel(__raw_readl(rtc->rtc_reg + REG_RTC_RIER)| in nuc900_alarm_irq_enable()
143 __raw_writel(__raw_readl(rtc->rtc_reg + REG_RTC_RIER)& in nuc900_alarm_irq_enable()
176 __raw_writel(val, rtc->rtc_reg + REG_RTC_CLR); in nuc900_rtc_set_time()
179 __raw_writel(val, rtc->rtc_reg + REG_RTC_TLR); in nuc900_rtc_set_time()
211 __raw_writel(val, rtc->rtc_reg + REG_RTC_CAR); in nuc900_rtc_set_alarm()
214 __raw_writel(val, rtc->rtc_reg + REG_RTC_TAR); in nuc900_rtc_set_alarm()
[all …]
Drtc-tx4939.c57 __raw_writel(cmd, &rtcreg->ctl); in tx4939_rtc_cmd()
82 __raw_writel(0, &rtcreg->adr); in tx4939_rtc_set_mmss()
84 __raw_writel(buf[i], &rtcreg->dat); in tx4939_rtc_set_mmss()
108 __raw_writel(2, &rtcreg->adr); in tx4939_rtc_read_time()
141 __raw_writel(0, &rtcreg->adr); in tx4939_rtc_set_alarm()
143 __raw_writel(buf[i], &rtcreg->dat); in tx4939_rtc_set_alarm()
167 __raw_writel(2, &rtcreg->adr); in tx4939_rtc_read_alarm()
226 __raw_writel(pos++, &rtcreg->adr); in tx4939_nvram_read()
242 __raw_writel(pos++, &rtcreg->adr); in tx4939_nvram_write()
243 __raw_writel(*buf++, &rtcreg->dat); in tx4939_nvram_write()
Drtc-pl030.c128 __raw_writel(0, rtc->base + RTC_CR); in pl030_probe()
129 __raw_writel(0, rtc->base + RTC_EOI); in pl030_probe()
/linux-4.19.296/drivers/parisc/
Ddino.c189 __raw_writel(v, base_addr + DINO_PCI_ADDR); in dino_cfg_read()
224 __raw_writel(v & 0xffffff00, base_addr + DINO_PCI_ADDR); in dino_cfg_write()
228 __raw_writel(v, base_addr + DINO_PCI_ADDR); in dino_cfg_write()
264 __raw_writel((u32) addr, d->base_addr + DINO_PCI_ADDR); \
281 __raw_writel((u32) addr, d->base_addr + DINO_PCI_ADDR); \
309 __raw_writel(dino_dev->imr, dino_dev->hba.base_addr+DINO_IMR); in dino_mask_irq()
330 __raw_writel( dino_dev->imr, dino_dev->hba.base_addr+DINO_IMR); in dino_unmask_irq()
367 __raw_writel(eim, dino_dev->hba.base_addr+DINO_IAR0); in dino_set_affinity_irq()
556 __raw_writel(1 << i, base_addr + DINO_IO_ADDR_EN); in dino_card_setup()
717 __raw_writel(0x00000005, in dino_card_init()
[all …]
/linux-4.19.296/drivers/i2c/busses/
Di2c-iop3xx.c62 __raw_writel(IOP3XX_ICR_UNIT_RESET, iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_reset()
63 __raw_writel(IOP3XX_ISR_CLEARBITS, iop3xx_adap->ioaddr + SR_OFFSET); in iop3xx_i2c_reset()
64 __raw_writel(0, iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_reset()
93 __raw_writel(cr, iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_enable()
104 __raw_writel(cr, iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_transaction_cleanup()
118 __raw_writel(sr, iop3xx_adap->ioaddr + SR_OFFSET); in iop3xx_i2c_irq_handler()
246 __raw_writel(iic_cook_addr(msg), iop3xx_adap->ioaddr + DBR_OFFSET); in iop3xx_i2c_send_target_addr()
251 __raw_writel(cr, iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_send_target_addr()
265 __raw_writel(byte, iop3xx_adap->ioaddr + DBR_OFFSET); in iop3xx_i2c_write_byte()
273 __raw_writel(cr, iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_write_byte()
[all …]
/linux-4.19.296/drivers/irqchip/
Dirq-mxs.c98 __raw_writel(BV_ICOLL_LEVELACK_IRQLEVELACK__LEVEL0, in icoll_ack_irq()
104 __raw_writel(BM_ICOLL_INTR_ENABLE, in icoll_mask_irq()
110 __raw_writel(BM_ICOLL_INTR_ENABLE, in icoll_unmask_irq()
116 __raw_writel(icoll_intr_bitshift(d, BM_ICOLL_INTR_ENABLE), in asm9260_mask_irq()
122 __raw_writel(ASM9260_BM_CLEAR_BIT(d->hwirq), in asm9260_unmask_irq()
126 __raw_writel(icoll_intr_bitshift(d, BM_ICOLL_INTR_ENABLE), in asm9260_unmask_irq()
151 __raw_writel(irqnr, icoll_priv.vector); in icoll_handle_irq()
Dirq-ath79-misc.c61 __raw_writel(t | BIT(irq), base + AR71XX_RESET_REG_MISC_INT_ENABLE); in ar71xx_misc_irq_unmask()
74 __raw_writel(t & ~BIT(irq), base + AR71XX_RESET_REG_MISC_INT_ENABLE); in ar71xx_misc_irq_mask()
87 __raw_writel(t & ~BIT(irq), base + AR71XX_RESET_REG_MISC_INT_STATUS); in ar724x_misc_irq_ack()
117 __raw_writel(0, base + AR71XX_RESET_REG_MISC_INT_ENABLE); in ath79_misc_intc_domain_init()
118 __raw_writel(0, base + AR71XX_RESET_REG_MISC_INT_STATUS); in ath79_misc_intc_domain_init()
Dirq-bcm6345-l1.c158 __raw_writel(intc->cpus[cpu_idx]->enable_cache[word], in __bcm6345_l1_unmask()
170 __raw_writel(intc->cpus[cpu_idx]->enable_cache[word], in __bcm6345_l1_mask()
265 __raw_writel(0, cpu->map_base + reg_enable(intc, i)); in bcm6345_l1_init_one()
/linux-4.19.296/drivers/ptp/
Dptp_ixp46x.c77 __raw_writel(lo, &regs->systime_lo); in ixp_systime_write()
78 __raw_writel(hi, &regs->systime_hi); in ixp_systime_write()
126 __raw_writel(ack, &regs->event); in isr()
155 __raw_writel(addend, &regs->addend); in ptp_ixp_adjfreq()
314 __raw_writel(DEFAULT_ADDEND, &ixp_clock.regs->addend); in ptp_ixp_init()
315 __raw_writel(1, &ixp_clock.regs->trgt_lo); in ptp_ixp_init()
316 __raw_writel(0, &ixp_clock.regs->trgt_hi); in ptp_ixp_init()
317 __raw_writel(TTIPEND, &ixp_clock.regs->event); in ptp_ixp_init()
/linux-4.19.296/drivers/gpio/
Dgpio-ks8695.c55 __raw_writel(x, KS8695_GPIO_VA + KS8695_IOPC); in ks8695_gpio_mode()
78 __raw_writel(x, KS8695_GPIO_VA + KS8695_IOPM); in ks8695_gpio_interrupt()
114 __raw_writel(x, KS8695_GPIO_VA + KS8695_IOPM); in ks8695_gpio_direction_input()
144 __raw_writel(x, KS8695_GPIO_VA + KS8695_IOPD); in ks8695_gpio_direction_output()
149 __raw_writel(x, KS8695_GPIO_VA + KS8695_IOPM); in ks8695_gpio_direction_output()
176 __raw_writel(x, KS8695_GPIO_VA + KS8695_IOPD); in ks8695_gpio_set_value()
Dgpio-lpc32xx.c183 __raw_writel(GPIO012_PIN_TO_BIT(pin), in __set_gpio_dir_p012()
186 __raw_writel(GPIO012_PIN_TO_BIT(pin), in __set_gpio_dir_p012()
196 __raw_writel(u, group->gpio_grp->dir_clr); in __set_gpio_dir_p3()
198 __raw_writel(u, group->gpio_grp->dir_set); in __set_gpio_dir_p3()
205 __raw_writel(GPIO012_PIN_TO_BIT(pin), in __set_gpio_level_p012()
208 __raw_writel(GPIO012_PIN_TO_BIT(pin), in __set_gpio_level_p012()
218 __raw_writel(u, group->gpio_grp->outp_set); in __set_gpio_level_p3()
220 __raw_writel(u, group->gpio_grp->outp_clr); in __set_gpio_level_p3()
227 __raw_writel(GPO3_PIN_TO_BIT(pin), group->gpio_grp->outp_set); in __set_gpo_level_p3()
229 __raw_writel(GPO3_PIN_TO_BIT(pin), group->gpio_grp->outp_clr); in __set_gpo_level_p3()
Dgpio-loongson1.c29 __raw_writel(__raw_readl(gpio_reg_base + GPIO_CFG) | BIT(offset), in ls1x_gpio_request()
41 __raw_writel(__raw_readl(gpio_reg_base + GPIO_CFG) & ~BIT(offset), in ls1x_gpio_free()
/linux-4.19.296/drivers/clk/imx/
Dclk-pllv2.c172 __raw_writel(dp_ctl | 0x1000L, pllbase + MXC_PLL_DP_CTL); in clk_pllv2_set_rate()
174 __raw_writel(dp_op, pllbase + MXC_PLL_DP_OP); in clk_pllv2_set_rate()
175 __raw_writel(dp_mfd, pllbase + MXC_PLL_DP_MFD); in clk_pllv2_set_rate()
176 __raw_writel(dp_mfn, pllbase + MXC_PLL_DP_MFN); in clk_pllv2_set_rate()
204 __raw_writel(reg, pllbase + MXC_PLL_DP_CTL); in clk_pllv2_prepare()
231 __raw_writel(reg, pllbase + MXC_PLL_DP_CTL); in clk_pllv2_unprepare()
/linux-4.19.296/drivers/iio/adc/
Dspear_adc.c93 __raw_writel(val, &st->adc_base_spear6xx->status); in spear_adc_set_status()
106 __raw_writel(SPEAR_ADC_CLK_LOW(clk_low) | SPEAR_ADC_CLK_HIGH(clk_high), in spear_adc_set_clk()
113 __raw_writel(val, &st->adc_base_spear6xx->ch_ctrl[n]); in spear_adc_set_ctrl()
130 __raw_writel(SPEAR600_ADC_SCAN_RATE_LO(rate), in spear_adc_set_scanrate()
132 __raw_writel(SPEAR600_ADC_SCAN_RATE_HI(rate), in spear_adc_set_scanrate()
135 __raw_writel(rate, &st->adc_base_spear3xx->scan_rate); in spear_adc_set_scanrate()
244 __raw_writel(0, &st->adc_base_spear6xx->clk); in spear_adc_configure()
Dlpc32xx_adc.c88 __raw_writel(LPC32XXAD_INTERNAL | (chan->address) | in lpc32xx_read_raw()
92 __raw_writel(LPC32XXAD_PDN_CTRL | LPC32XXAD_STROBE, in lpc32xx_read_raw()
/linux-4.19.296/drivers/pwm/
Dpwm-atmel-tcb.c122 __raw_writel(cmr, regs + ATMEL_TC_REG(group, CMR)); in atmel_tcb_pwm_request()
181 __raw_writel(cmr, regs + ATMEL_TC_REG(group, CMR)); in atmel_tcb_pwm_disable()
188 __raw_writel(ATMEL_TC_SWTRG | ATMEL_TC_CLKDIS, in atmel_tcb_pwm_disable()
192 __raw_writel(ATMEL_TC_SWTRG, regs + in atmel_tcb_pwm_disable()
266 __raw_writel(cmr, regs + ATMEL_TC_REG(group, CMR)); in atmel_tcb_pwm_enable()
269 __raw_writel(tcbpwm->duty, regs + ATMEL_TC_REG(group, RA)); in atmel_tcb_pwm_enable()
271 __raw_writel(tcbpwm->duty, regs + ATMEL_TC_REG(group, RB)); in atmel_tcb_pwm_enable()
273 __raw_writel(tcbpwm->period, regs + ATMEL_TC_REG(group, RC)); in atmel_tcb_pwm_enable()
276 __raw_writel(ATMEL_TC_CLKEN | ATMEL_TC_SWTRG, in atmel_tcb_pwm_enable()
/linux-4.19.296/drivers/char/hw_random/
Dmxc-rnga.c98 __raw_writel(ctrl | RNGA_CONTROL_CLEAR_INT, in mxc_rnga_data_read()
112 __raw_writel(ctrl & ~RNGA_CONTROL_SLEEP, mxc_rng->mem + RNGA_CONTROL); in mxc_rnga_init()
123 __raw_writel(ctrl | RNGA_CONTROL_GO, mxc_rng->mem + RNGA_CONTROL); in mxc_rnga_init()
136 __raw_writel(ctrl & ~RNGA_CONTROL_GO, mxc_rng->mem + RNGA_CONTROL); in mxc_rnga_cleanup()
/linux-4.19.296/include/linux/mlx4/
Ddoorbell.h79 __raw_writel((__force u32) val[0], dest); in mlx4_write64()
80 __raw_writel((__force u32) val[1], dest + 4); in mlx4_write64()
/linux-4.19.296/include/linux/mlx5/
Ddoorbell.h73 __raw_writel((__force u32) val[0], dest); in mlx5_write64()
74 __raw_writel((__force u32) val[1], dest + 4); in mlx5_write64()
/linux-4.19.296/drivers/sh/maple/
Dmaple.c98 __raw_writel(MAPLE_MAGIC, MAPLE_RESET); in maple_dma_reset()
100 __raw_writel(1, MAPLE_TRIGTYPE); in maple_dma_reset()
109 __raw_writel(MAPLE_2MBPS | MAPLE_TIMEOUT(0xFFFF), MAPLE_SPEED); in maple_dma_reset()
110 __raw_writel(virt_to_phys(maple_sendbuf), MAPLE_DMAADDR); in maple_dma_reset()
111 __raw_writel(1, MAPLE_ENABLE); in maple_dma_reset()
279 __raw_writel(0, MAPLE_ENABLE); in maple_send()
454 __raw_writel(0, MAPLE_ENABLE); in maple_vblank_handler()
640 __raw_writel(0, MAPLE_ENABLE); in maple_dma_handler()
800 __raw_writel(0, MAPLE_ENABLE); in maple_bus_init()
/linux-4.19.296/drivers/edac/
Dcpc925_edac.c402 __raw_writel(apimask, pdata->vbase + REG_APIMASK_OFFSET); in cpc925_mc_init()
409 __raw_writel(mccr, pdata->vbase + REG_MCCR_OFFSET); in cpc925_mc_init()
660 __raw_writel(apimask, dev_info->vbase + REG_APIMASK_OFFSET); in cpc925_cpu_init()
713 __raw_writel(ht_errctrl, dev_info->vbase + REG_ERRCTRL_OFFSET); in cpc925_htlink_init()
724 __raw_writel(ht_errctrl, dev_info->vbase + REG_ERRCTRL_OFFSET); in cpc925_htlink_exit()
755 __raw_writel(BRGCTRL_DETSERR, in cpc925_htlink_check()
759 __raw_writel(HT_LINKCTRL_DETECTED, in cpc925_htlink_check()
764 __raw_writel(BRGCTRL_SECBUSRESET, in cpc925_htlink_check()
768 __raw_writel(ERRCTRL_RSP_ERR, in cpc925_htlink_check()
772 __raw_writel(HT_LINKERR_DETECTED, in cpc925_htlink_check()
/linux-4.19.296/drivers/cpufreq/
Ds3c2440-cpufreq.c190 __raw_writel(camdiv | CAMDIVN_HCLK_HALF, S3C2440_CAMDIVN); in s3c2440_cpufreq_setdivs()
191 __raw_writel(clkdiv, S3C2410_CLKDIVN); in s3c2440_cpufreq_setdivs()
194 __raw_writel(camdiv, S3C2440_CAMDIVN); in s3c2440_cpufreq_setdivs()
/linux-4.19.296/include/asm-generic/
Dio.h130 #ifndef __raw_writel
131 #define __raw_writel __raw_writel macro
132 static inline void __raw_writel(u32 value, volatile void __iomem *addr) in __raw_writel() function
232 __raw_writel(__cpu_to_le32(value), addr); in writel()
306 __raw_writel(__cpu_to_le32(value), addr); in writel_relaxed()
427 __raw_writel(*buf++, addr); in writesl()
530 __raw_writel(cpu_to_le32(value), PCI_IOBASE + addr); in outl()
/linux-4.19.296/drivers/cdrom/
Dgdrom.c410 __raw_writel(0x1fffff, GDROM_RESET_REG); in gdrom_hardreset()
609 __raw_writel(virt_to_phys(bio_data(req->bio)), GDROM_DMA_STARTADDR_REG); in gdrom_readdisk_dma()
610 __raw_writel(block_cnt * GDROM_HARD_SECTOR, GDROM_DMA_LENGTH_REG); in gdrom_readdisk_dma()
611 __raw_writel(1, GDROM_DMA_DIRECTION_REG); in gdrom_readdisk_dma()
612 __raw_writel(1, GDROM_DMA_ENABLE_REG); in gdrom_readdisk_dma()
738 __raw_writel(0x8843407F, GDROM_DMA_ACCESS_CTRL_REG); in gdrom_init_dma_mode()
739 __raw_writel(9, GDROM_DMA_WAIT_REG); /* DMA word setting */ in gdrom_init_dma_mode()
/linux-4.19.296/drivers/sh/clk/
Dcpg.c430 __raw_writel(0, clk->mapping->base); in fsidiv_disable()
441 __raw_writel((value << 16) | 0x3, clk->mapping->base); in fsidiv_enable()
452 __raw_writel(0, clk->mapping->base); in fsidiv_set_rate()
454 __raw_writel(idx << 16, clk->mapping->base); in fsidiv_set_rate()

123