Home
last modified time | relevance | path

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

/openbmc/linux/drivers/thermal/
H A Dk3_bandgap.c89 u32 ctrl_offset; member
204 data[id].ctrl_offset = K3_VTM_TMPSENS0_CTRL_OFFSET + in k3_bandgap_probe()
206 data[id].stat_offset = data[id].ctrl_offset + 0x8; in k3_bandgap_probe()
208 val = readl(data[id].bgp->base + data[id].ctrl_offset); in k3_bandgap_probe()
213 writel(val, data[id].bgp->base + data[id].ctrl_offset); in k3_bandgap_probe()
H A Dk3_j72xx_bandgap.c186 u32 ctrl_offset; member
455 data[id].ctrl_offset = K3_VTM_TMPSENS0_CTRL_OFFSET + id * 0x20; in k3_j72xx_bandgap_probe()
456 data[id].stat_offset = data[id].ctrl_offset + in k3_j72xx_bandgap_probe()
473 val = readl(data[id].bgp->cfg2_base + data[id].ctrl_offset); in k3_j72xx_bandgap_probe()
477 writel(val, data[id].bgp->cfg2_base + data[id].ctrl_offset); in k3_j72xx_bandgap_probe()
/openbmc/linux/drivers/reset/
H A 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()
H A Dreset-npcm.c122 unsigned int ctrl_offset = id >> 8; in npcm_rc_setclear_reset() local
127 stat = readl(rc->base + ctrl_offset); in npcm_rc_setclear_reset()
129 writel(stat | rst_bit, rc->base + ctrl_offset); in npcm_rc_setclear_reset()
131 writel(stat & ~rst_bit, rc->base + ctrl_offset); in npcm_rc_setclear_reset()
153 unsigned int ctrl_offset = id >> 8; in npcm_rc_status() local
155 return (readl(rc->base + ctrl_offset) & rst_bit); in npcm_rc_status()
/openbmc/linux/drivers/pinctrl/mediatek/
H A Dmtk-eint.c323 unsigned int rst, ctrl_offset; in mtk_eint_debounce_process() local
326 ctrl_offset = (index / 4) * 4 + eint->regs->dbnc_ctrl; in mtk_eint_debounce_process()
327 dbnc = readl(eint->base + ctrl_offset); in mtk_eint_debounce_process()
330 ctrl_offset = (index / 4) * 4 + eint->regs->dbnc_set; in mtk_eint_debounce_process()
332 writel(rst, eint->base + ctrl_offset); in mtk_eint_debounce_process()
/openbmc/qemu/hw/xen/
H A Dxen_pt.h205 uint32_t ctrl_offset; /* saved control offset */ member
220 uint32_t ctrl_offset; member
H A Dxen_pt_msi.c244 return msi_msix_enable(s, s->msi->ctrl_offset, PCI_MSI_FLAGS_ENABLE, in xen_pt_msi_set_enable()
318 return msi_msix_enable(s, s->msix->ctrl_offset, PCI_MSIX_FLAGS_ENABLE, in msix_set_enable()
H A Dxen_pt_config_init.c1091 msi->ctrl_offset = real_offset; in xen_pt_msgctrl_reg_init()
1484 s->msix->ctrl_offset = real_offset; in xen_pt_msixctrl_reg_init()
/openbmc/linux/drivers/dma/xilinx/
H A Dxilinx_dma.c420 u32 ctrl_offset; member
529 readl_poll_timeout_atomic(chan->xdev->regs + chan->ctrl_offset + reg, \
551 return dma_read(chan, chan->ctrl_offset + reg); in dma_ctrl_read()
557 dma_write(chan, chan->ctrl_offset + reg, value); in dma_ctrl_write()
595 lo_hi_writeq(value, chan->xdev->regs + chan->ctrl_offset + reg); in dma_writeq()
2861 chan->ctrl_offset = XILINX_DMA_MM2S_CTRL_OFFSET; in xilinx_dma_chan_probe()
2886 chan->ctrl_offset = XILINX_MCDMA_S2MM_CTRL_OFFSET; in xilinx_dma_chan_probe()
2888 chan->ctrl_offset = XILINX_DMA_S2MM_CTRL_OFFSET; in xilinx_dma_chan_probe()
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A 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()
/openbmc/linux/sound/soc/codecs/
H A Dnau8825.c1430 unsigned int ctrl_val = 0, ctrl_offset = 0, value = 0, dac_s, adc_s; in nau8825_set_tdm_slot() local
1460 ctrl_offset = 4 * slot_width; in nau8825_set_tdm_slot()
1462 ctrl_offset += 1; in nau8825_set_tdm_slot()
1505 NAU8825_TSLOT_L0_MASK, ctrl_offset); in nau8825_set_tdm_slot()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_common.c555 nfp_net_aux_irq_request(struct nfp_net *nn, u32 ctrl_offset, in nfp_net_aux_irq_request() argument
571 nn_writeb(nn, ctrl_offset, entry->entry); in nfp_net_aux_irq_request()
583 static void nfp_net_aux_irq_free(struct nfp_net *nn, u32 ctrl_offset, in nfp_net_aux_irq_free() argument
586 nn_writeb(nn, ctrl_offset, 0xff); in nfp_net_aux_irq_free()