Home
last modified time | relevance | path

Searched refs:regmap (Results 1 – 25 of 75) sorted by relevance

123

/external/u-boot/drivers/adc/
Dmeson-saradc.c171 struct regmap *regmap; member
185 regmap_read(priv->regmap, MESON_SAR_ADC_REG0, &regval); in meson_saradc_get_fifo_count()
195 regmap_update_bits(priv->regmap, MESON_SAR_ADC_DELAY, in meson_saradc_lock()
204 regmap_read(priv->regmap, MESON_SAR_ADC_DELAY, &val); in meson_saradc_lock()
218 regmap_update_bits(priv->regmap, MESON_SAR_ADC_DELAY, in meson_saradc_unlock()
230 regmap_read(priv->regmap, MESON_SAR_ADC_FIFO_RD, &tmp); in meson_saradc_clear_fifo()
255 regmap_read(priv->regmap, MESON_SAR_ADC_REG0, &regval); in meson_saradc_wait_busy_clear()
280 regmap_read(priv->regmap, MESON_SAR_ADC_FIFO_RD, &regval); in meson_saradc_read_raw_sample()
297 regmap_update_bits(priv->regmap, MESON_SAR_ADC_REG0, in meson_saradc_start_sample_engine()
301 regmap_update_bits(priv->regmap, MESON_SAR_ADC_REG0, in meson_saradc_start_sample_engine()
[all …]
/external/u-boot/drivers/core/
Dsyscon-uclass.c26 struct regmap *syscon_get_regmap(struct udevice *dev) in syscon_get_regmap()
33 return priv->regmap; in syscon_get_regmap()
50 &priv->regmap); in syscon_pre_probe()
52 return regmap_init_mem(dev_ofnode(dev), &priv->regmap); in syscon_pre_probe()
76 struct regmap *syscon_get_regmap_by_driver_data(ulong driver_data) in syscon_get_regmap_by_driver_data()
87 return priv->regmap; in syscon_get_regmap_by_driver_data()
92 struct regmap *map; in syscon_get_first_range()
130 struct regmap *regmap; member
146 ret = regmap_init_mem(node, &syscon->regmap); in of_syscon_register()
157 struct regmap *syscon_node_to_regmap(ofnode node) in syscon_node_to_regmap()
[all …]
Dregmap.c20 static struct regmap *regmap_alloc(int count) in regmap_alloc()
22 struct regmap *map; in regmap_alloc()
34 struct regmap **mapp) in regmap_init_mem_platdata()
37 struct regmap *map; in regmap_init_mem_platdata()
53 int regmap_init_mem(ofnode node, struct regmap **mapp) in regmap_init_mem()
56 struct regmap *map; in regmap_init_mem()
100 void *regmap_get_range(struct regmap *map, unsigned int range_num) in regmap_get_range()
111 int regmap_uninit(struct regmap *map) in regmap_uninit()
118 int regmap_read(struct regmap *map, uint offset, uint *valp) in regmap_read()
127 int regmap_write(struct regmap *map, uint offset, uint val) in regmap_write()
[all …]
/external/u-boot/drivers/phy/
Dmeson-gxl-usb3.c89 struct regmap *regmap; member
100 regmap_read(priv->regmap, USB_R0, &val); in phy_meson_gxl_usb3_set_host_mode()
102 regmap_write(priv->regmap, USB_R0, val); in phy_meson_gxl_usb3_set_host_mode()
104 regmap_read(priv->regmap, USB_R4, &val); in phy_meson_gxl_usb3_set_host_mode()
106 regmap_write(priv->regmap, USB_R4, val); in phy_meson_gxl_usb3_set_host_mode()
117 regmap_read(priv->regmap, USB_R5, &val); in phy_meson_gxl_usb3_power_on()
122 regmap_write(priv->regmap, USB_R5, val); in phy_meson_gxl_usb3_power_on()
133 regmap_read(priv->regmap, USB_R5, &val); in phy_meson_gxl_usb3_power_off()
136 regmap_write(priv->regmap, USB_R5, val); in phy_meson_gxl_usb3_power_off()
147 regmap_read(priv->regmap, USB_R1, &val); in phy_meson_gxl_usb3_init()
[all …]
Dmeson-gxl-usb2.c98 struct regmap *regmap; member
111 regmap_read(priv->regmap, U2P_R0, &val); in phy_meson_gxl_usb2_reset()
115 regmap_write(priv->regmap, U2P_R0, val); in phy_meson_gxl_usb2_reset()
119 regmap_write(priv->regmap, U2P_R0, val); in phy_meson_gxl_usb2_reset()
128 regmap_read(priv->regmap, U2P_R0, &val); in phy_meson_gxl_usb2_set_host_mode()
132 regmap_write(priv->regmap, U2P_R0, val); in phy_meson_gxl_usb2_set_host_mode()
143 regmap_read(priv->regmap, U2P_R0, &val); in phy_meson_gxl_usb2_power_on()
146 regmap_write(priv->regmap, U2P_R0, val); in phy_meson_gxl_usb2_power_on()
167 regmap_read(priv->regmap, U2P_R0, &val); in phy_meson_gxl_usb2_power_off()
170 regmap_write(priv->regmap, U2P_R0, val); in phy_meson_gxl_usb2_power_off()
[all …]
Dsti_usb_phy.c36 struct regmap *regmap; member
67 reg = (void __iomem *)phy->regmap->ranges[0].start + phy->ctrl; in sti_usb_phy_init()
72 reg = (void __iomem *)phy->regmap->ranges[0].start + phy->param; in sti_usb_phy_init()
127 priv->regmap = syscon_get_regmap(syscon); in sti_usb_phy_probe()
128 if (!priv->regmap) { in sti_usb_phy_probe()
Dti-pipe3-phy.c278 struct regmap *regmap; in get_reg() local
291 regmap = syscon_get_regmap(syscon); in get_reg()
292 if (IS_ERR(regmap)) { in get_reg()
294 name, PTR_ERR(regmap)); in get_reg()
305 base = regmap_get_range(regmap, 0); in get_reg()
/external/u-boot/include/
Dregmap.h27 struct regmap { struct
36 int regmap_write(struct regmap *map, uint offset, uint val); argument
37 int regmap_read(struct regmap *map, uint offset, uint *valp);
53 int regmap_update_bits(struct regmap *map, uint offset, uint mask, uint val);
63 int regmap_init_mem(ofnode node, struct regmap **mapp);
79 struct regmap **mapp);
87 void *regmap_get_range(struct regmap *map, unsigned int range_num);
92 int regmap_uninit(struct regmap *map);
Dsyscon.h19 struct regmap *regmap; member
48 struct regmap *syscon_get_regmap(struct udevice *dev);
74 struct regmap *syscon_get_regmap_by_driver_data(ulong driver_data);
90 struct regmap *syscon_node_to_regmap(ofnode node);
/external/u-boot/arch/arm/mach-stm32mp/
Dpwr_regulator.c29 struct regmap *regmap; member
41 return regmap_write(priv->regmap, STM32MP_PWR_CR3, val); in stm32mp_pwr_write()
52 return regmap_read(priv->regmap, STM32MP_PWR_CR3, (u32 *)buff); in stm32mp_pwr_read()
58 struct regmap *regmap; in stm32mp_pwr_ofdata_to_platdata() local
60 regmap = syscon_get_regmap_by_driver_data(STM32MP_SYSCON_PWR); in stm32mp_pwr_ofdata_to_platdata()
61 if (IS_ERR(regmap)) { in stm32mp_pwr_ofdata_to_platdata()
63 PTR_ERR(regmap)); in stm32mp_pwr_ofdata_to_platdata()
64 return PTR_ERR(regmap); in stm32mp_pwr_ofdata_to_platdata()
66 priv->regmap = regmap; in stm32mp_pwr_ofdata_to_platdata()
/external/u-boot/drivers/power/regulator/
Dpbias_regulator.c28 struct regmap *regmap; member
46 return regmap_write(priv->regmap, priv->offset, val); in pbias_write()
56 return regmap_read(priv->regmap, priv->offset, (u32 *)buff); in pbias_read()
63 struct regmap *regmap; in pbias_ofdata_to_platdata() local
75 regmap = syscon_get_regmap(syscon); in pbias_ofdata_to_platdata()
76 if (IS_ERR(regmap)) { in pbias_ofdata_to_platdata()
78 PTR_ERR(regmap)); in pbias_ofdata_to_platdata()
79 return PTR_ERR(regmap); in pbias_ofdata_to_platdata()
81 priv->regmap = regmap; in pbias_ofdata_to_platdata()
/external/u-boot/drivers/sysreset/
Dsysreset_syscon.c18 struct regmap *regmap; member
27 regmap_write(priv->regmap, priv->offset, priv->mask); in syscon_reboot_request()
49 priv->regmap = syscon_get_regmap(syscon); in syscon_reboot_probe()
50 if (!priv->regmap) { in syscon_reboot_probe()
Dsysreset_sti.c33 struct regmap *regmap; in sti_sysreset_probe() local
55 regmap = syscon_get_regmap(syscon); in sti_sysreset_probe()
56 if (!regmap) { in sti_sysreset_probe()
61 priv->base = regmap->ranges[0].start; in sti_sysreset_probe()
/external/u-boot/drivers/clk/
Dclk_boston.c14 struct regmap *regmap; member
35 err = regmap_read(state->regmap, BOSTON_PLAT_MMCMDIV, &mmcmdiv); in clk_boston_get_rate()
73 state->regmap = syscon_get_regmap(syscon); in clk_boston_ofdata_to_platdata()
74 if (!state->regmap) { in clk_boston_ofdata_to_platdata()
/external/u-boot/drivers/reset/
Dreset-meson.c19 struct regmap *regmap; member
43 regmap_read(priv->regmap, reg_offset, &val); in meson_reset_level()
48 regmap_write(priv->regmap, reg_offset, val); in meson_reset_level()
79 return regmap_init_mem(dev_ofnode(dev), &priv->regmap); in meson_reset_probe()
Dsti-reset.c197 struct regmap *regmap; in sti_reset_get_regmap() local
214 regmap = syscon_get_regmap(syscon); in sti_reset_get_regmap()
215 if (!regmap) { in sti_reset_get_regmap()
220 return regmap->ranges[0].start; in sti_reset_get_regmap()
/external/u-boot/drivers/pinctrl/
Dpinctrl-sti.c43 struct regmap *regmap; member
64 sysconfreg = (unsigned long *)plat->regmap->ranges[0].start; in sti_alternate_select()
98 sysconfreg = (unsigned long *)plat->regmap->ranges[0].start + 40; in sti_pin_configure()
290 plat->regmap = syscon_get_regmap(syscon); in sti_pinctrl_probe()
291 if (!plat->regmap) { in sti_pinctrl_probe()
/external/perfetto/src/traced/probes/ftrace/test/data/android_hammerhead_MRA59G_3.4.0/
Davailable_events198 regmap:regmap_hw_read_start
199 regmap:regmap_hw_write_done
200 regmap:regmap_cache_bypass
201 regmap:regmap_reg_read
202 regmap:regmap_cache_only
203 regmap:regmap_reg_read_cache
204 regmap:regmap_hw_write_start
205 regmap:regmap_reg_write
206 regmap:regmap_hw_read_done
207 regmap:regcache_sync
/external/u-boot/drivers/usb/host/
Ddwc3-sti-glue.c108 struct regmap *regmap; in sti_dwc3_glue_ofdata_to_platdata() local
131 regmap = syscon_get_regmap(syscon); in sti_dwc3_glue_ofdata_to_platdata()
132 if (!regmap) { in sti_dwc3_glue_ofdata_to_platdata()
136 plat->syscfg_base = regmap->ranges[0].start; in sti_dwc3_glue_ofdata_to_platdata()
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/
Davailable_events276 regmap:regmap_async_write_start
277 regmap:regmap_hw_read_start
278 regmap:regmap_hw_write_done
279 regmap:regmap_cache_bypass
280 regmap:regmap_reg_read
281 regmap:regmap_async_io_complete
282 regmap:regmap_cache_only
283 regmap:regmap_reg_read_cache
284 regmap:regmap_async_complete_done
285 regmap:regmap_hw_write_start
[all …]
/external/perfetto/src/traced/probes/ftrace/test/data/android_flounder_lte_LRX16F_3.10.40/
Davailable_events465 regmap:regmap_async_complete_done
466 regmap:regmap_async_complete_start
467 regmap:regmap_async_io_complete
468 regmap:regmap_async_write_start
469 regmap:regmap_cache_bypass
470 regmap:regmap_cache_only
471 regmap:regcache_sync
472 regmap:regmap_hw_write_done
473 regmap:regmap_hw_write_start
474 regmap:regmap_hw_read_done
[all …]
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/
Davailable_events528 regmap:regmap_reg_write
529 regmap:regmap_reg_read
530 regmap:regmap_reg_read_cache
531 regmap:regmap_hw_read_start
532 regmap:regmap_hw_read_done
533 regmap:regmap_hw_write_start
534 regmap:regmap_hw_write_done
535 regmap:regcache_sync
536 regmap:regmap_cache_only
537 regmap:regmap_cache_bypass
[all …]
/external/u-boot/drivers/net/
Dsni_ave.c140 struct regmap *regmap; member
638 regmap_read(priv->regmap, SG_ETPINMODE, &reg); in ave_pro4_get_pinmode()
641 regmap_write(priv->regmap, SG_ETPINMODE, reg); in ave_pro4_get_pinmode()
665 regmap_read(priv->regmap, SG_ETPINMODE, &reg); in ave_ld11_get_pinmode()
668 regmap_write(priv->regmap, SG_ETPINMODE, reg); in ave_ld11_get_pinmode()
692 regmap_read(priv->regmap, SG_ETPINMODE, &reg); in ave_ld20_get_pinmode()
695 regmap_write(priv->regmap, SG_ETPINMODE, reg); in ave_ld20_get_pinmode()
719 regmap_read(priv->regmap, SG_ETPINMODE, &reg); in ave_pxs3_get_pinmode()
722 regmap_write(priv->regmap, SG_ETPINMODE, reg); in ave_pxs3_get_pinmode()
792 priv->regmap = syscon_node_to_regmap(args.node); in ave_ofdata_to_platdata()
[all …]
/external/u-boot/test/dm/
Dregmap.c19 struct regmap *map; in dm_test_regmap_base()
72 struct regmap *map; in dm_test_regmap_syscon()
99 struct regmap *map; in dm_test_regmap_rw()
/external/u-boot/arch/x86/cpu/
Dirq.c31 struct pirq_regmap *map = priv->regmap; in pirq_reg_to_linkno()
60 struct pirq_regmap *map = priv->regmap; in pirq_linkno_to_reg()
199 priv->regmap = calloc(count, sizeof(struct pirq_regmap)); in create_pirq_routing_table()
200 if (!priv->regmap) in create_pirq_routing_table()
204 map = priv->regmap; in create_pirq_routing_table()

123