Home
last modified time | relevance | path

Searched refs:reg_stride (Results 1 – 25 of 512) sorted by relevance

12345678910>>...21

/linux-6.12.1/drivers/base/regmap/
Dregcache-rbtree.c45 *top = rbnode->base_reg + ((rbnode->blklen - 1) * map->reg_stride); in regcache_rbtree_get_base_top_reg()
156 this_registers = ((top - base) / map->reg_stride) + 1; in rbtree_show()
250 reg_tmp = (reg - rbnode->base_reg) / map->reg_stride; in regcache_rbtree_read()
274 blklen = (top_reg - base_reg) / map->reg_stride + 1; in regcache_rbtree_insert_to_block()
275 pos = (reg - base_reg) / map->reg_stride; in regcache_rbtree_insert_to_block()
276 offset = (rbnode->base_reg - base_reg) / map->reg_stride; in regcache_rbtree_insert_to_block()
338 map->reg_stride + 1; in regcache_rbtree_node_alloc()
384 reg_tmp = (reg - rbnode->base_reg) / map->reg_stride; in regcache_rbtree_write()
393 max_dist = map->reg_stride * sizeof(*rbnode_tmp) / in regcache_rbtree_write()
456 (reg - rbnode->base_reg) / map->reg_stride, in regcache_rbtree_write()
[all …]
Dregcache.c37 if (regmap_readable(map, i * map->reg_stride) && in regcache_hw_init()
38 !regmap_volatile(map, i * map->reg_stride)) in regcache_hw_init()
77 reg = i * map->reg_stride; in regcache_hw_init()
141 if (config->reg_defaults[i].reg % map->reg_stride) in regcache_init()
191 map->max_register = (map->num_reg_defaults_raw - 1) * map->reg_stride; in regcache_init()
312 for (reg = min; reg <= max; reg += map->reg_stride) { in regcache_default_sync()
753 regtmp = block_base + (i * map->reg_stride); in regcache_sync_block_single()
777 count = (cur - base) / map->reg_stride; in regcache_sync_block_raw_flush()
780 count * val_bytes, count, base, cur - map->reg_stride); in regcache_sync_block_raw_flush()
787 base, cur - map->reg_stride, ret); in regcache_sync_block_raw_flush()
[all …]
Dregmap-irq.c67 return data->irq_reg_stride == 1 && map->reg_stride == 1 && in regmap_irq_can_bulk_read_status()
211 unsigned int reg = irq_data->reg_offset / map->reg_stride; in regmap_irq_enable()
241 d->mask_buf[irq_data->reg_offset / map->reg_stride] |= irq_data->mask; in regmap_irq_disable()
255 reg = t->type_reg_offset / map->reg_stride; in regmap_irq_set_type()
282 d->wake_buf[irq_data->reg_offset / map->reg_stride] in regmap_irq_set_wake()
287 d->wake_buf[irq_data->reg_offset / map->reg_stride] in regmap_irq_set_wake()
324 unsigned int index = offset / map->reg_stride; in read_sub_irq_data()
498 map->reg_stride] & chip->irqs[i].mask) { in regmap_irq_thread()
550 return base + index * map->reg_stride * data->irq_reg_stride; in regmap_irq_get_irq_reg_linear()
673 if (chip->irqs[i].reg_offset % map->reg_stride) in regmap_add_irq_chip_fwnode()
[all …]
Dregmap-debugfs.c117 for (; i <= map->max_register; i += map->reg_stride) { in regmap_debugfs_get_dump_start()
122 c->max_reg = i - map->reg_stride; in regmap_debugfs_get_dump_start()
150 c->max_reg = i - map->reg_stride; in regmap_debugfs_get_dump_start()
170 return c->base_reg + (reg_offset * map->reg_stride); in regmap_debugfs_get_dump_start()
198 if (regmap_printable(map, reg + map->reg_stride)) { in regmap_next_readable_reg()
199 ret = reg + map->reg_stride; in regmap_next_readable_reg()
441 for (i = 0; i <= map->max_register; i += map->reg_stride) { in regmap_access_show()
Dregmap.c768 if (config->reg_stride) in __regmap_init()
769 map->reg_stride = config->reg_stride; in __regmap_init()
771 map->reg_stride = 1; in __regmap_init()
772 if (is_power_of_2(map->reg_stride)) in __regmap_init()
773 map->reg_stride_order = ilog2(map->reg_stride); in __regmap_init()
1945 if (!IS_ALIGNED(reg, map->reg_stride)) in regmap_write()
1972 if (!IS_ALIGNED(reg, map->reg_stride)) in regmap_write_async()
2172 if (!IS_ALIGNED(reg, map->reg_stride)) in regmap_noinc_write()
2313 if (!IS_ALIGNED(reg, map->reg_stride)) in regmap_bulk_write()
2547 if (!IS_ALIGNED(reg, map->reg_stride)) in _regmap_multi_reg_write()
[all …]
/linux-6.12.1/drivers/rtc/
Drtc-r7301.c67 .reg_stride = 4,
73 .reg_stride = 1,
78 int reg_stride = regmap_get_reg_stride(priv->regmap); in rtc7301_read() local
81 regmap_read(priv->regmap, reg_stride * reg, &val); in rtc7301_read()
88 int reg_stride = regmap_get_reg_stride(priv->regmap); in rtc7301_write() local
90 regmap_write(priv->regmap, reg_stride * reg, val); in rtc7301_write()
96 int reg_stride = regmap_get_reg_stride(priv->regmap); in rtc7301_update_bits() local
98 regmap_update_bits(priv->regmap, reg_stride * reg, mask, val); in rtc7301_update_bits()
/linux-6.12.1/drivers/gpio/
Dgpio-regmap.c25 int reg_stride; member
55 *reg = base + stride * gpio->reg_stride; in gpio_regmap_simple_xlate()
237 gpio->reg_stride = config->reg_stride; in gpio_regmap_register()
250 if (!gpio->reg_stride) in gpio_regmap_register()
251 gpio->reg_stride = 1; in gpio_regmap_register()
Dgpio-logicvc.c86 .reg_stride = 4,
120 logicvc_gpio_regmap_config.reg_stride; in logicvc_gpio_probe()
/linux-6.12.1/drivers/irqchip/
Dirq-qcom-mpm.c85 unsigned int reg_stride; member
93 unsigned int offset = (reg * priv->reg_stride + index + 2) * 4; in qcom_mpm_read()
101 unsigned int offset = (reg * priv->reg_stride + index + 2) * 4; in qcom_mpm_write()
270 for (i = 0; i < priv->reg_stride; i++) { in qcom_mpm_handler()
298 for (i = 0; i < priv->reg_stride; i++) in mpm_pd_power_off()
343 priv->reg_stride = DIV_ROUND_UP(pin_cnt, 32); in qcom_mpm_init()
401 for (i = 0; i < priv->reg_stride; i++) { in qcom_mpm_init()
/linux-6.12.1/drivers/clk/qcom/
Dlpasscc-sc8280xp.c28 .reg_stride = 4,
46 .reg_stride = 4,
/linux-6.12.1/drivers/mfd/
Dwm97xx-core.c95 .reg_stride = 2,
163 .reg_stride = 2,
234 .reg_stride = 2,
Daltera-sysmgr.c80 .reg_stride = 4,
143 sysmgr_config.reg_stride; in sysmgr_probe()
Dsta2x11-mfd.c178 .reg_stride = 4,
199 .reg_stride = 4,
238 .reg_stride = 4,
277 .reg_stride = 4,
/linux-6.12.1/drivers/hwspinlock/
Dqcom_hwspinlock.c99 .reg_stride = 4,
113 .reg_stride = 4,
127 .reg_stride = 4,
/linux-6.12.1/drivers/clk/sprd/
Dcommon.c18 .reg_stride = 4,
67 reg_config.max_register = resource_size(res) - reg_config.reg_stride; in sprd_clk_regmap_init()
/linux-6.12.1/drivers/interconnect/qcom/
Dsc7280.c1682 .reg_stride = 4,
1703 .reg_stride = 4,
1805 .reg_stride = 4,
1846 .reg_stride = 4,
1871 .reg_stride = 4,
1916 .reg_stride = 4,
1945 .reg_stride = 4,
1971 .reg_stride = 4,
2007 .reg_stride = 4,
2035 .reg_stride = 4,
[all …]
/linux-6.12.1/drivers/iio/addac/
Dstx104.c127 .reg_stride = 1,
155 .reg_stride = STX104_AIO_DATA_STRIDE,
168 .reg_stride = 1,
192 .reg_stride = 1,
/linux-6.12.1/sound/soc/codecs/
Dcs35l45-tables.c253 .reg_stride = 4,
269 .reg_stride = 4,
/linux-6.12.1/drivers/mailbox/
Dtegra-hsp.c99 unsigned int reg_stride; member
282 offset += index * hsp->soc->reg_stride; in tegra_hsp_doorbell_create()
915 .reg_stride = 0x100,
922 .reg_stride = 0x100,
929 .reg_stride = 0x100,
936 .reg_stride = 0x1000,
/linux-6.12.1/drivers/pinctrl/uniphier/
Dpinctrl-uniphier-core.c584 unsigned int mux_bits, reg_stride, reg, reg_end, shift, mask; in uniphier_pmx_set_one_mux() local
603 reg_stride = 8; in uniphier_pmx_set_one_mux()
612 reg_stride = 4; in uniphier_pmx_set_one_mux()
616 reg = UNIPHIER_PINCTRL_PINMUX_BASE + pin * mux_bits / 32 * reg_stride; in uniphier_pmx_set_one_mux()
617 reg_end = reg + reg_stride; in uniphier_pmx_set_one_mux()
/linux-6.12.1/drivers/pinctrl/ti/
Dpinctrl-ti-iodelay.c417 index = (offset - r->reg_start_offset) / r->regmap_config->reg_stride; in ti_iodelay_offset_to_pin()
655 offset = selector * r->regmap_config->reg_stride; in ti_iodelay_pin_to_offset()
681 regmap_read(iod->regmap, offset + r->regmap_config->reg_stride, &oen); in ti_iodelay_pin_dbg_show()
682 regmap_read(iod->regmap, offset + r->regmap_config->reg_stride * 2, in ti_iodelay_pin_dbg_show()
781 .reg_stride = 4,
/linux-6.12.1/include/linux/gpio/
Dregmap.h77 int reg_stride; member
/linux-6.12.1/drivers/gpu/drm/hisilicon/kirin/
Dkirin_drm_ade.c350 u32 reg_ctrl, reg_addr, reg_size, reg_stride, reg_space, reg_en; in ade_rdma_dump_regs() local
356 reg_stride = RD_CH_STRIDE(ch); in ade_rdma_dump_regs()
368 val = readl(base + reg_stride); in ade_rdma_dump_regs()
552 u32 reg_ctrl, reg_addr, reg_size, reg_stride, reg_space, reg_en; in ade_rdma_set() local
566 reg_stride = RD_CH_STRIDE(ch); in ade_rdma_set()
576 writel(stride, base + reg_stride); in ade_rdma_set()
/linux-6.12.1/drivers/net/dsa/
Dmt7530-mdio.c103 mt7531_pcs_config[i]->reg_stride = 4; in mt7531_create_sgmii()
203 regmap_config->reg_stride = 4; in mt7530_probe()
/linux-6.12.1/drivers/soc/samsung/
Dexynos-pmu.c213 .reg_stride = 4,
356 pmu_regmcfg.reg_stride; in exynos_pmu_probe()

12345678910>>...21