Home
last modified time | relevance | path

Searched refs:reg_off (Results 1 – 25 of 47) sorted by relevance

12

/linux/drivers/clk/meson/
H A Ds4-pll.c57 .reg_off = ANACTRL_FIXPLL_CTRL0,
62 .reg_off = ANACTRL_FIXPLL_CTRL0,
67 .reg_off = ANACTRL_FIXPLL_CTRL1,
72 .reg_off = ANACTRL_FIXPLL_CTRL0,
77 .reg_off = ANACTRL_FIXPLL_CTRL0,
82 .reg_off = ANACTRL_FIXPLL_CTRL0,
296 .reg_off = ANACTRL_GP0PLL_CTRL0,
301 .reg_off = ANACTRL_GP0PLL_CTRL0,
306 .reg_off = ANACTRL_GP0PLL_CTRL0,
311 .reg_off = ANACTRL_GP0PLL_CTRL0,
[all …]
H A Da1-pll.c32 .reg_off = ANACTRL_FIXPLL_CTRL0,
37 .reg_off = ANACTRL_FIXPLL_CTRL0,
42 .reg_off = ANACTRL_FIXPLL_CTRL0,
47 .reg_off = ANACTRL_FIXPLL_CTRL1,
52 .reg_off = ANACTRL_FIXPLL_STS,
57 .reg_off = ANACTRL_FIXPLL_CTRL0,
103 .reg_off = ANACTRL_HIFIPLL_CTRL0,
108 .reg_off = ANACTRL_HIFIPLL_CTRL0,
113 .reg_off = ANACTRL_HIFIPLL_CTRL0,
118 .reg_off = ANACTRL_HIFIPLL_CTRL1,
[all …]
H A Dc3-pll.c249 .reg_off = ANACTRL_GP0PLL_CTRL0,
254 .reg_off = ANACTRL_GP0PLL_CTRL0,
259 .reg_off = ANACTRL_GP0PLL_CTRL1,
264 .reg_off = ANACTRL_GP0PLL_CTRL0,
269 .reg_off = ANACTRL_GP0PLL_CTRL0,
274 .reg_off = ANACTRL_GP0PLL_CTRL0,
332 .reg_off = ANACTRL_HIFIPLL_CTRL0,
337 .reg_off = ANACTRL_HIFIPLL_CTRL0,
342 .reg_off = ANACTRL_HIFIPLL_CTRL1,
347 .reg_off = ANACTRL_HIFIPLL_CTRL0,
[all …]
H A Daxg.c114 .reg_off = HHI_MPLL_CNTL,
119 .reg_off = HHI_MPLL_CNTL,
124 .reg_off = HHI_MPLL_CNTL,
129 .reg_off = HHI_MPLL_CNTL2,
134 .reg_off = HHI_MPLL_CNTL,
139 .reg_off = HHI_MPLL_CNTL,
178 .reg_off = HHI_SYS_PLL_CNTL,
183 .reg_off = HHI_SYS_PLL_CNTL,
188 .reg_off = HHI_SYS_PLL_CNTL,
193 .reg_off = HHI_SYS_PLL_CNTL,
[all …]
H A Dmeson8-ddr.c29 .reg_off = AM_DDR_PLL_CNTL,
34 .reg_off = AM_DDR_PLL_CNTL,
39 .reg_off = AM_DDR_PLL_CNTL,
44 .reg_off = AM_DDR_PLL_CNTL,
49 .reg_off = AM_DDR_PLL_CNTL,
H A Dg12a-aoclk.c116 .reg_off = AO_RTC_ALT_CLK_CNTL0,
121 .reg_off = AO_RTC_ALT_CLK_CNTL0,
126 .reg_off = AO_RTC_ALT_CLK_CNTL1,
131 .reg_off = AO_RTC_ALT_CLK_CNTL1,
136 .reg_off = AO_RTC_ALT_CLK_CNTL0,
207 .reg_off = AO_CEC_CLK_CNTL_REG0,
212 .reg_off = AO_CEC_CLK_CNTL_REG0,
217 .reg_off = AO_CEC_CLK_CNTL_REG1,
222 .reg_off = AO_CEC_CLK_CNTL_REG1,
227 .reg_off = AO_CEC_CLK_CNTL_REG0,
H A Dgxbb-aoclk.c80 .reg_off = AO_RTC_ALT_CLK_CNTL0,
85 .reg_off = AO_RTC_ALT_CLK_CNTL0,
90 .reg_off = AO_RTC_ALT_CLK_CNTL1,
95 .reg_off = AO_RTC_ALT_CLK_CNTL1,
100 .reg_off = AO_RTC_ALT_CLK_CNTL0,
H A Dparm.h25 u16 reg_off; member
34 regmap_read(map, p->reg_off, &val); in meson_parm_read()
41 regmap_update_bits(map, p->reg_off, SETPMASK(p->width, p->shift), in meson_parm_write()
H A Daxg-aoclk.c94 .reg_off = AO_RTC_ALT_CLK_CNTL0,
99 .reg_off = AO_RTC_ALT_CLK_CNTL0,
104 .reg_off = AO_RTC_ALT_CLK_CNTL1,
109 .reg_off = AO_RTC_ALT_CLK_CNTL1,
114 .reg_off = AO_RTC_ALT_CLK_CNTL0,
H A Dmeson8b.c125 .reg_off = HHI_MPLL_CNTL,
130 .reg_off = HHI_MPLL_CNTL,
135 .reg_off = HHI_MPLL_CNTL,
140 .reg_off = HHI_MPLL_CNTL2,
145 .reg_off = HHI_MPLL_CNTL,
150 .reg_off = HHI_MPLL_CNTL,
241 .reg_off = HHI_VID_PLL_CNTL,
246 .reg_off = HHI_VID_PLL_CNTL,
251 .reg_off = HHI_VID_PLL_CNTL,
256 .reg_off = HHI_VID_PLL_CNTL2,
[all …]
H A Da1-peripherals.c183 .reg_off = RTC_BY_OSCIN_CTRL0,
188 .reg_off = RTC_BY_OSCIN_CTRL0,
193 .reg_off = RTC_BY_OSCIN_CTRL1,
198 .reg_off = RTC_BY_OSCIN_CTRL1,
203 .reg_off = RTC_BY_OSCIN_CTRL0,
1647 .reg_off = CECA_CLK_CTRL0,
1652 .reg_off = CECA_CLK_CTRL0,
1657 .reg_off = CECA_CLK_CTRL1,
1662 .reg_off = CECA_CLK_CTRL1,
1667 .reg_off = CECA_CLK_CTRL0,
[all …]
/linux/tools/testing/selftests/kvm/riscv/
H A Dget-reg-list.c255 /* reg_off is the offset into struct kvm_riscv_config */ in config_id_to_str()
256 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_CONFIG); in config_id_to_str()
260 switch (reg_off) { in config_id_to_str()
279 return strdup_printf("%lld /* UNKNOWN */", reg_off); in core_id_to_str()
284 /* reg_off is the offset into struct kvm_riscv_core */ in core_id_to_str()
285 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_CORE); in core_id_to_str()
289 switch (reg_off) { in core_id_to_str()
302 reg_off - KVM_REG_RISCV_CORE_REG(regs.t0)); in core_id_to_str()
305 reg_off - KVM_REG_RISCV_CORE_REG(regs.s0)); in core_id_to_str()
308 reg_off in core_id_to_str()
253 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_CONFIG); config_id_to_str() local
282 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_CORE); core_id_to_str() local
326 general_csr_id_to_str(__u64 reg_off) general_csr_id_to_str() argument
357 aia_csr_id_to_str(__u64 reg_off) aia_csr_id_to_str() argument
380 smstateen_csr_id_to_str(__u64 reg_off) smstateen_csr_id_to_str() argument
394 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_CSR); csr_id_to_str() local
416 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_TIMER); timer_id_to_str() local
437 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_FP_F); fp_f_id_to_str() local
455 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_FP_D); fp_d_id_to_str() local
473 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_VECTOR); vector_id_to_str() local
502 isa_ext_single_id_to_str(__u64 reg_off) isa_ext_single_id_to_str() argument
588 isa_ext_multi_id_to_str(__u64 reg_subtype,__u64 reg_off) isa_ext_multi_id_to_str() argument
607 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_ISA_EXT); isa_ext_id_to_str() local
628 sbi_ext_single_id_to_str(__u64 reg_off) sbi_ext_single_id_to_str() argument
654 sbi_ext_multi_id_to_str(__u64 reg_subtype,__u64 reg_off) sbi_ext_multi_id_to_str() argument
673 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_SBI_EXT); sbi_ext_id_to_str() local
691 sbi_sta_id_to_str(__u64 reg_off) sbi_sta_id_to_str() argument
700 sbi_fwft_id_to_str(__u64 reg_off) sbi_fwft_id_to_str() argument
715 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_SBI_STATE); sbi_id_to_str() local
[all...]
/linux/drivers/mmc/host/
H A Dcavium.h37 #define MIO_EMM_CFG(x) (0x00 + x->reg_off)
38 #define MIO_EMM_SWITCH(x) (0x48 + x->reg_off)
39 #define MIO_EMM_DMA(x) (0x50 + x->reg_off)
40 #define MIO_EMM_CMD(x) (0x58 + x->reg_off)
41 #define MIO_EMM_RSP_STS(x) (0x60 + x->reg_off)
42 #define MIO_EMM_RSP_LO(x) (0x68 + x->reg_off)
43 #define MIO_EMM_RSP_HI(x) (0x70 + x->reg_off)
44 #define MIO_EMM_INT(x) (0x78 + x->reg_off)
45 #define MIO_EMM_INT_EN(x) (0x80 + x->reg_off)
46 #define MIO_EMM_WDOG(x) (0x88 + x->reg_off)
[all …]
/linux/drivers/pinctrl/sunplus/
H A Dsppctl.c112 static inline u32 sppctl_get_reg_and_bit_offset(unsigned int offset, u32 *reg_off) in sppctl_get_reg_and_bit_offset() argument
117 *reg_off = (offset / 32) * 4; in sppctl_get_reg_and_bit_offset()
123 static inline u32 sppctl_get_moon_reg_and_bit_offset(unsigned int offset, u32 *reg_off) in sppctl_get_moon_reg_and_bit_offset() argument
133 *reg_off = (offset / 16) * 4; in sppctl_get_moon_reg_and_bit_offset()
139 static inline u32 sppctl_prep_moon_reg_and_offset(unsigned int offset, u32 *reg_off, int val) in sppctl_prep_moon_reg_and_offset() argument
143 bit_off = sppctl_get_moon_reg_and_bit_offset(offset, reg_off); in sppctl_prep_moon_reg_and_offset()
227 static void sppctl_gmx_set(struct sppctl_pdata *pctl, u8 reg_off, u8 bit_off, u8 bit_sz, in sppctl_gmx_set() argument
240 writel(reg, pctl->moon1_base + reg_off * 4); in sppctl_gmx_set()
264 u32 reg_off, bit_off, reg; in sppctl_first_get() local
266 bit_off = sppctl_get_reg_and_bit_offset(offset, &reg_off); in sppctl_first_get()
[all …]
/linux/drivers/pinctrl/
H A Dpinctrl-digicolor.c130 int bit_off, reg_off; in dc_set_mux() local
133 dc_client_sel(group, &reg_off, &bit_off); in dc_set_mux()
135 reg = readb_relaxed(pmap->regs + reg_off); in dc_set_mux()
138 writeb_relaxed(reg, pmap->regs + reg_off); in dc_set_mux()
148 int bit_off, reg_off; in dc_pmx_request_gpio() local
151 dc_client_sel(offset, &reg_off, &bit_off); in dc_pmx_request_gpio()
153 reg = readb_relaxed(pmap->regs + reg_off); in dc_pmx_request_gpio()
171 int reg_off = GP_DRIVE0(gpio/PINS_PER_COLLECTION); in dc_gpio_direction_input() local
177 drive = readb_relaxed(pmap->regs + reg_off); in dc_gpio_direction_input()
179 writeb_relaxed(drive, pmap->regs + reg_off); in dc_gpio_direction_input()
[all …]
/linux/sound/soc/tegra/
H A Dtegra210_mbdrc.c788 u32 reg_off = i * TEGRA210_MBDRC_FILTER_PARAM_STRIDE; in tegra210_mbdrc_hw_params()
791 reg_off + TEGRA210_MBDRC_CFG_RAM_CTRL, in tegra210_mbdrc_hw_params()
792 reg_off + TEGRA210_MBDRC_CFG_RAM_DATA, in tegra210_mbdrc_hw_params()
850 u32 reg_off = i * TEGRA210_MBDRC_FILTER_PARAM_STRIDE; in tegra210_mbdrc_component_init()
853 reg_off + TEGRA210_MBDRC_IIR_CFG, in tegra210_mbdrc_component_init()
859 reg_off + TEGRA210_MBDRC_IN_ATTACK, in tegra210_mbdrc_component_init()
865 reg_off + TEGRA210_MBDRC_IN_RELEASE, in tegra210_mbdrc_component_init()
871 reg_off + TEGRA210_MBDRC_FAST_ATTACK, in tegra210_mbdrc_component_init()
890 reg_off + TEGRA210_MBDRC_IN_THRESHOLD, in tegra210_mbdrc_component_init()
907 reg_off in tegra210_mbdrc_component_init()
787 u32 reg_off = i * TEGRA210_MBDRC_FILTER_PARAM_STRIDE; tegra210_mbdrc_hw_params() local
849 u32 reg_off = i * TEGRA210_MBDRC_FILTER_PARAM_STRIDE; tegra210_mbdrc_component_init() local
[all...]
/linux/drivers/pinctrl/realtek/
H A Dpinctrl-rtd.c290 u32 pulsel_off, pulen_off, smt_off, curr_off, pow_off, reg_off, p_off, n_off; in rtd_pconf_parse_conf() local
307 reg_off = config_desc->reg_offset; in rtd_pconf_parse_conf()
320 reg_off = config_desc->reg_offset; in rtd_pconf_parse_conf()
332 reg_off = config_desc->reg_offset; in rtd_pconf_parse_conf()
345 reg_off = config_desc->reg_offset; in rtd_pconf_parse_conf()
358 reg_off = config_desc->reg_offset; in rtd_pconf_parse_conf()
366 reg_off = config_desc->reg_offset; in rtd_pconf_parse_conf()
400 reg_off = config_desc->reg_offset; in rtd_pconf_parse_conf()
403 reg_off += 0x4; in rtd_pconf_parse_conf()
418 reg_off = sconfig_desc->reg_offset; in rtd_pconf_parse_conf()
[all …]
/linux/drivers/net/ethernet/cavium/liquidio/
H A Docteon_device.h733 #define octeon_write_csr(oct_dev, reg_off, value) \ argument
734 writel(value, (oct_dev)->mmio[0].hw_addr + (reg_off))
736 #define octeon_write_csr64(oct_dev, reg_off, val64) \ argument
737 writeq(val64, (oct_dev)->mmio[0].hw_addr + (reg_off))
739 #define octeon_read_csr(oct_dev, reg_off) \ argument
740 readl((oct_dev)->mmio[0].hw_addr + (reg_off))
742 #define octeon_read_csr64(oct_dev, reg_off) \ argument
743 readq((oct_dev)->mmio[0].hw_addr + (reg_off))
/linux/drivers/nvmem/
H A Dimx-ocotp-ele.c31 u32 reg_off; member
69 void __iomem *reg = priv->base + priv->data->reg_off; in imx_ocotp_reg_read()
175 .reg_off = 0x8000,
190 .reg_off = 0x8000,
209 .reg_off = 0x8000,
/linux/drivers/pinctrl/spear/
H A Dpinctrl-plgpio.c85 u32 reg_off = REG_OFFSET(0, reg, pin); in is_plgpio_set() local
88 regmap_read(regmap, reg_off, &val); in is_plgpio_set()
96 u32 reg_off = REG_OFFSET(0, reg, pin); in plgpio_reg_set() local
100 regmap_update_bits(regmap, reg_off, mask, mask); in plgpio_reg_set()
106 u32 reg_off = REG_OFFSET(0, reg, pin); in plgpio_reg_reset() local
110 regmap_update_bits(regmap, reg_off, mask, 0); in plgpio_reg_reset()
333 u32 reg_off; in plgpio_irq_set_type() local
350 reg_off = REG_OFFSET(0, plgpio->regs.eit, offset); in plgpio_irq_set_type()
351 regmap_read(plgpio->regmap, reg_off, &val); in plgpio_irq_set_type()
355 regmap_write(plgpio->regmap, reg_off, val | (1 << offset)); in plgpio_irq_set_type()
[all …]
/linux/drivers/accel/habanalabs/goya/
H A Dgoya.c1087 u32 reg_off = dma_id * (mmDMA_QM_1_PQ_PI - mmDMA_QM_0_PQ_PI); in goya_init_dma_qman() local
1100 WREG32(mmDMA_QM_0_PQ_BASE_LO + reg_off, lower_32_bits(bus_address)); in goya_init_dma_qman()
1101 WREG32(mmDMA_QM_0_PQ_BASE_HI + reg_off, upper_32_bits(bus_address)); in goya_init_dma_qman()
1103 WREG32(mmDMA_QM_0_PQ_SIZE + reg_off, ilog2(HL_QUEUE_LENGTH)); in goya_init_dma_qman()
1104 WREG32(mmDMA_QM_0_PQ_PI + reg_off, 0); in goya_init_dma_qman()
1105 WREG32(mmDMA_QM_0_PQ_CI + reg_off, 0); in goya_init_dma_qman()
1107 WREG32(mmDMA_QM_0_CP_MSG_BASE0_ADDR_LO + reg_off, mtr_base_lo); in goya_init_dma_qman()
1108 WREG32(mmDMA_QM_0_CP_MSG_BASE0_ADDR_HI + reg_off, mtr_base_hi); in goya_init_dma_qman()
1109 WREG32(mmDMA_QM_0_CP_MSG_BASE1_ADDR_LO + reg_off, so_base_lo); in goya_init_dma_qman()
1110 WREG32(mmDMA_QM_0_CP_MSG_BASE1_ADDR_HI + reg_off, so_base_hi); in goya_init_dma_qman()
[all …]
/linux/drivers/mtd/nand/
H A Dqpic_common.c231 int reg_off, const void *vaddr, in qcom_prep_bam_dma_desc_cmd() argument
249 offset = nandc->props->bam_offset + reg_off + 4 * i; in qcom_prep_bam_dma_desc_cmd()
356 int reg_off, const void *vaddr, int size, in qcom_prep_adm_dma_desc() argument
392 slave_conf.src_addr = nandc->base_dma + reg_off; in qcom_prep_adm_dma_desc()
400 slave_conf.dst_addr = nandc->base_dma + reg_off; in qcom_prep_adm_dma_desc()
516 int qcom_read_data_dma(struct qcom_nand_controller *nandc, int reg_off, in qcom_read_data_dma() argument
522 return qcom_prep_adm_dma_desc(nandc, true, reg_off, vaddr, size, false); in qcom_read_data_dma()
537 int qcom_write_data_dma(struct qcom_nand_controller *nandc, int reg_off, in qcom_write_data_dma() argument
543 return qcom_prep_adm_dma_desc(nandc, false, reg_off, vaddr, size, false); in qcom_write_data_dma()
/linux/sound/soc/mediatek/mt8365/
H A Dmt8365-dai-i2s.c287 unsigned int val, reg_off; in mt8365_dai_set_config() local
297 reg_off = i2s_data->reg_off_in; in mt8365_dai_set_config()
301 reg_off = i2s_data->reg_off_out; in mt8365_dai_set_config()
321 regmap_update_bits(afe->regmap, reg_off, ~(u32)AFE_I2S_CON_EN, val); in mt8365_dai_set_config()
501 unsigned int reg_off; in mt8365_dai_set_enable() local
504 reg_off = i2s_data->reg_off_in; in mt8365_dai_set_enable()
510 reg_off = i2s_data->reg_off_out; in mt8365_dai_set_enable()
512 regmap_update_bits(afe->regmap, reg_off, in mt8365_dai_set_enable()
/linux/sound/soc/xilinx/
H A Dxlnx_i2s.c94 u32 reg_off, chan_id; in xlnx_i2s_hw_params() local
120 reg_off = I2S_CH0_OFFSET + ((chan_id - 1) * 4); in xlnx_i2s_hw_params()
121 writel(chan_id, drv_data->base + reg_off); in xlnx_i2s_hw_params()
/linux/drivers/rtc/
H A Drtc-sh.c235 static inline int sh_rtc_read_alarm_value(struct sh_rtc *rtc, int reg_off) in sh_rtc_read_alarm_value() argument
240 byte = readb(rtc->regbase + reg_off); in sh_rtc_read_alarm_value()
273 int value, int reg_off) in sh_rtc_write_alarm_value() argument
277 writeb(0, rtc->regbase + reg_off); in sh_rtc_write_alarm_value()
279 writeb(bin2bcd(value) | AR_ENB, rtc->regbase + reg_off); in sh_rtc_write_alarm_value()

12