Home
last modified time | relevance | path

Searched refs:ctrl_offset (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/thermal/
Dk3_bandgap.c87 u32 ctrl_offset; member
202 data[id].ctrl_offset = K3_VTM_TMPSENS0_CTRL_OFFSET + in k3_bandgap_probe()
204 data[id].stat_offset = data[id].ctrl_offset + 0x8; in k3_bandgap_probe()
206 val = readl(data[id].bgp->base + data[id].ctrl_offset); in k3_bandgap_probe()
211 writel(val, data[id].bgp->base + data[id].ctrl_offset); in k3_bandgap_probe()
/kernel/linux/linux-5.10/drivers/reset/
Dreset-npcm.c84 unsigned int ctrl_offset = id >> 8; in npcm_rc_setclear_reset() local
89 stat = readl(rc->base + ctrl_offset); in npcm_rc_setclear_reset()
91 writel(stat | rst_bit, rc->base + ctrl_offset); in npcm_rc_setclear_reset()
93 writel(stat & ~rst_bit, rc->base + ctrl_offset); in npcm_rc_setclear_reset()
115 unsigned int ctrl_offset = id >> 8; in npcm_rc_status() local
117 return (readl(rc->base + ctrl_offset) & rst_bit); in npcm_rc_status()
Dreset-lpc18xx.c71 u32 ctrl_offset = LPC18XX_RGU_CTRL0; in lpc18xx_rgu_setclear_reset() local
76 ctrl_offset += (id / LPC18XX_RGU_RESETS_PER_REG) * sizeof(u32); in lpc18xx_rgu_setclear_reset()
82 writel(stat | rst_bit, rc->base + ctrl_offset); in lpc18xx_rgu_setclear_reset()
84 writel(stat & ~rst_bit, rc->base + ctrl_offset); in lpc18xx_rgu_setclear_reset()
/kernel/linux/linux-5.10/drivers/pinctrl/mediatek/
Dmtk-eint.c298 unsigned int rst, ctrl_offset; in mtk_eint_debounce_process() local
301 ctrl_offset = (index / 4) * 4 + eint->regs->dbnc_ctrl; in mtk_eint_debounce_process()
302 dbnc = readl(eint->base + ctrl_offset); in mtk_eint_debounce_process()
305 ctrl_offset = (index / 4) * 4 + eint->regs->dbnc_set; in mtk_eint_debounce_process()
307 writel(rst, eint->base + ctrl_offset); in mtk_eint_debounce_process()
/kernel/linux/linux-5.10/drivers/dma/xilinx/
Dxilinx_dma.c416 u32 ctrl_offset; member
522 readl_poll_timeout_atomic(chan->xdev->regs + chan->ctrl_offset + reg, \
544 return dma_read(chan, chan->ctrl_offset + reg); in dma_ctrl_read()
550 dma_write(chan, chan->ctrl_offset + reg, value); in dma_ctrl_write()
588 lo_hi_writeq(value, chan->xdev->regs + chan->ctrl_offset + reg); in dma_writeq()
2805 chan->ctrl_offset = XILINX_DMA_MM2S_CTRL_OFFSET; in xilinx_dma_chan_probe()
2830 chan->ctrl_offset = XILINX_MCDMA_S2MM_CTRL_OFFSET; in xilinx_dma_chan_probe()
2832 chan->ctrl_offset = XILINX_DMA_S2MM_CTRL_OFFSET; in xilinx_dma_chan_probe()
/kernel/linux/linux-5.10/drivers/pinctrl/sirf/
Dpinctrl-sirf.c601 unsigned ctrl_offset) in sirfsoc_gpio_set_input() argument
605 val = readl(sgpio->chip.regs + ctrl_offset); in sirfsoc_gpio_set_input()
607 writel(val, sgpio->chip.regs + ctrl_offset); in sirfsoc_gpio_set_input()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Ddma.c383 static bool _dma64_addrext(struct dma_info *di, uint ctrl_offset) in _dma64_addrext() argument
386 bcma_set32(di->core, ctrl_offset, D64_XC_AE); in _dma64_addrext()
387 w = bcma_read32(di->core, ctrl_offset); in _dma64_addrext()
388 bcma_mask32(di->core, ctrl_offset, ~D64_XC_AE); in _dma64_addrext()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_net_common.c619 nfp_net_aux_irq_request(struct nfp_net *nn, u32 ctrl_offset, in nfp_net_aux_irq_request() argument
635 nn_writeb(nn, ctrl_offset, entry->entry); in nfp_net_aux_irq_request()
647 static void nfp_net_aux_irq_free(struct nfp_net *nn, u32 ctrl_offset, in nfp_net_aux_irq_free() argument
650 nn_writeb(nn, ctrl_offset, 0xff); in nfp_net_aux_irq_free()