Home
last modified time | relevance | path

Searched refs:driver_data (Results 1 – 25 of 54) sorted by relevance

123

/external/u-boot/drivers/power/regulator/
Dsandbox.c86 if (dev->driver_data > output_count) { in out_get_value()
88 dev->driver_data, dev->name); in out_get_value()
92 reg = (dev->driver_data - 1) * OUT_REG_COUNT + reg_type; in out_get_value()
99 ret = REG2VAL(range[dev->driver_data - 1].min, in out_get_value()
100 range[dev->driver_data - 1].step, in out_get_value()
114 if (dev->driver_data > output_count) { in out_set_value()
116 dev->driver_data, dev->name); in out_set_value()
120 max_value = range[dev->driver_data - 1].max; in out_set_value()
123 dev->name, dev->driver_data, max_value); in out_set_value()
127 reg_val = VAL2REG(range[dev->driver_data - 1].min, in out_set_value()
[all …]
Dstpmu1.c154 return stpmu1_buck_get_uv(dev->parent, dev->driver_data - 1); in stpmu1_buck_get_value()
159 int sel, buck = dev->driver_data - 1; in stpmu1_buck_set_value()
176 STPMU1_BUCKX_CTRL_REG(dev->driver_data - 1)); in stpmu1_buck_get_enable()
200 STPMU1_BUCKX_CTRL_REG(dev->driver_data - 1), in stpmu1_buck_set_enable()
213 STPMU1_BUCKX_CTRL_REG(dev->driver_data - 1)); in stpmu1_buck_get_mode()
224 STPMU1_BUCKX_CTRL_REG(dev->driver_data - 1), in stpmu1_buck_set_mode()
233 if (!dev->driver_data || dev->driver_data > STPMU1_MAX_BUCK) in stpmu1_buck_probe()
311 int sel, ldo = dev->driver_data - 1; in stpmu1_ldo_get_value()
333 int sel, ldo = dev->driver_data - 1; in stpmu1_ldo_set_value()
354 STPMU1_LDOX_CTRL_REG(dev->driver_data - 1)); in stpmu1_ldo_get_enable()
[all …]
Drk8xx.c150 int buck = dev->driver_data - 1; in buck_get_value()
167 int buck = dev->driver_data; in buck_set_value()
174 int buck = dev->driver_data; in buck_set_enable()
181 int buck = dev->driver_data - 1; in buck_get_enable()
196 int ldo = dev->driver_data - 1; in ldo_get_value()
213 int ldo = dev->driver_data - 1; in ldo_set_value()
229 int ldo = dev->driver_data - 1; in ldo_set_enable()
240 int ldo = dev->driver_data - 1; in ldo_get_enable()
255 int sw = dev->driver_data - 1; in switch_set_enable()
266 int sw = dev->driver_data - 1; in switch_get_enable()
Ds5m8767.c144 int ldo = dev->driver_data; in ldo_get_value()
151 int ldo = dev->driver_data; in ldo_set_value()
188 int ldo = dev->driver_data; in ldo_get_enable()
195 int ldo = dev->driver_data; in ldo_set_enable()
214 int buck = dev->driver_data; in buck_get_value()
221 int buck = dev->driver_data; in buck_set_value()
228 int buck = dev->driver_data; in buck_get_enable()
235 int buck = dev->driver_data; in buck_set_enable()
Dact8846.c87 int reg = dev->driver_data; in reg_get_value()
99 int reg = dev->driver_data; in reg_set_value()
111 int reg = dev->driver_data; in reg_set_enable()
119 int reg = dev->driver_data; in reg_get_enable()
132 int reg = dev->driver_data; in act8846_reg_probe()
Dpalmas_regulator.c172 if (dev->driver_data > 2) in palmas_ldo_bypass_enable()
176 if (dev->driver_data != 9) in palmas_ldo_bypass_enable()
305 if (dev->driver_data) { in palmas_ldo_probe()
306 u8 idx = dev->driver_data - 1; in palmas_ldo_probe()
373 switch (dev->driver_data) { in palmas_smps_probe()
392 idx = dev->driver_data - 3; in palmas_smps_probe()
403 switch (dev->driver_data) { in palmas_smps_probe()
409 idx = dev->driver_data - 1; in palmas_smps_probe()
Das3722_regulator.c31 int sd = dev->driver_data; in stepdown_set_enable()
47 int sd = dev->driver_data; in stepdown_get_enable()
74 int ldo = dev->driver_data; in ldo_set_enable()
96 int ldo = dev->driver_data; in ldo_get_enable()
Dmax77686.c326 ldo = dev->driver_data; in max77686_ldo_val()
364 buck = dev->driver_data; in max77686_buck_val()
421 ldo = dev->driver_data; in max77686_ldo_mode()
543 buck = dev->driver_data; in max77686_buck_mode()
665 uc_pdata->mode_count = max77686_ldo_modes(dev->driver_data, in max77686_ldo_probe()
729 uc_pdata->mode_count = max77686_buck_modes(dev->driver_data, in max77686_buck_probe()
Dtps65090_regulator.c30 fet_id = dev->driver_data; in tps65090_fet_get_enable()
92 fet_id = dev->driver_data; in tps65090_fet_set_enable()
Ds2mps11_regulator.c122 buck = dev->driver_data; in s2mps11_buck_val()
172 buck = dev->driver_data; in s2mps11_buck_mode()
391 ldo = dev->driver_data; in s2mps11_ldo_val()
431 ldo = dev->driver_data; in s2mps11_ldo_mode()
/external/kernel-headers/original/uapi/rdma/
Dib_user_verbs.h161 __aligned_u64 driver_data[0]; member
167 __aligned_u64 driver_data[0]; member
172 __aligned_u64 driver_data[0]; member
279 __aligned_u64 driver_data[0]; member
309 __aligned_u64 driver_data[0]; member
314 __u32 driver_data[0]; member
325 __aligned_u64 driver_data[0]; member
330 __u32 driver_data[0]; member
344 __aligned_u64 driver_data[0]; member
351 __u32 driver_data[0]; member
[all …]
/external/u-boot/drivers/core/
Dsyscon-uclass.c56 int syscon_get_by_driver_data(ulong driver_data, struct udevice **devp) in syscon_get_by_driver_data() argument
67 if (dev->driver_data == driver_data) { in syscon_get_by_driver_data()
76 struct regmap *syscon_get_regmap_by_driver_data(ulong driver_data) in syscon_get_regmap_by_driver_data() argument
82 ret = syscon_get_by_driver_data(driver_data, &dev); in syscon_get_regmap_by_driver_data()
90 void *syscon_get_first_range(ulong driver_data) in syscon_get_first_range() argument
94 map = syscon_get_regmap_by_driver_data(driver_data); in syscon_get_first_range()
Ddevice.c34 ulong driver_data, ofnode node, in device_bind_common() argument
63 dev->driver_data = driver_data; in device_bind_common()
218 ulong driver_data, ofnode node, in device_bind_with_driver_data() argument
221 return device_bind_common(parent, drv, name, NULL, driver_data, node, in device_bind_with_driver_data()
641 return dev->driver_data; in dev_get_driver_data()
/external/u-boot/test/dm/
Dsyscon.c19 ut_asserteq(SYSCON0, dev->driver_data); in dm_test_syscon_base()
22 ut_asserteq(SYSCON1, dev->driver_data); in dm_test_syscon_base()
36 ut_asserteq(SYSCON0, dev->driver_data); in dm_test_syscon_by_driver_data()
39 ut_asserteq(SYSCON1, dev->driver_data); in dm_test_syscon_by_driver_data()
/external/u-boot/include/
Dsyscon.h62 int syscon_get_by_driver_data(ulong driver_data, struct udevice **devp);
74 struct regmap *syscon_get_regmap_by_driver_data(ulong driver_data);
83 void *syscon_get_first_range(ulong driver_data);
/external/u-boot/drivers/usb/gadget/
Df_thor.c813 ep->driver_data = dev; in thor_func_bind()
826 ep->driver_data = dev; in thor_func_bind()
835 ep->driver_data = dev; in thor_func_bind()
879 if (dev->in_ep->driver_data) { in thor_func_disable()
882 dev->in_ep->driver_data = NULL; in thor_func_disable()
885 if (dev->out_ep->driver_data) { in thor_func_disable()
888 dev->out_ep->driver_data = NULL; in thor_func_disable()
891 if (dev->int_ep->driver_data) { in thor_func_disable()
893 dev->int_ep->driver_data = NULL; in thor_func_disable()
915 ep->driver_data = cdev; /* claim */ in thor_eps_setup()
[all …]
Depautoconf.c57 if (NULL != ep->driver_data) in ep_matches()
309 ep->driver_data = NULL; in usb_ep_autoconfig_reset()
/external/u-boot/drivers/i2c/
Dmxc_i2c.c172 bool quirk = i2c_bus->driver_data & I2C_QUIRK_FLAG ? true : false; in bus_i2c_set_bus_speed()
197 bool quirk = i2c_bus->driver_data & I2C_QUIRK_FLAG ? true : false; in wait_for_sr_state()
230 int reg_shift = i2c_bus->driver_data & I2C_QUIRK_FLAG ? in tx_byte()
260 int reg_shift = i2c_bus->driver_data & I2C_QUIRK_FLAG ? in i2c_imx_stop()
281 bool quirk = i2c_bus->driver_data & I2C_QUIRK_FLAG ? true : false; in i2c_init_transfer_()
419 int reg_shift = i2c_bus->driver_data & I2C_QUIRK_FLAG ? in i2c_init_transfer()
476 int reg_shift = i2c_bus->driver_data & I2C_QUIRK_FLAG ? in i2c_read_data()
534 int reg_shift = i2c_bus->driver_data & I2C_QUIRK_FLAG ? in bus_i2c_read()
700 bool quirk = mxc_i2c_buses[I2C_EARLY_INIT_INDEX].driver_data in i2c_early_init_f()
813 i2c_bus->driver_data = dev_get_driver_data(bus);
[all …]
/external/u-boot/arch/arm/mach-rockchip/rk3188/
Dsyscon_rk3188.c28 dev->driver_data = dev->driver->of_match->data; in rk3188_syscon_bind_of_platdata()
29 debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data); in rk3188_syscon_bind_of_platdata()
/external/u-boot/arch/arm/mach-rockchip/rk3288/
Dsyscon_rk3288.c29 dev->driver_data = dev->driver->of_match->data; in rk3288_syscon_bind_of_platdata()
30 debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data); in rk3288_syscon_bind_of_platdata()
/external/u-boot/arch/arm/mach-rockchip/rk3368/
Dsyscon_rk3368.c34 dev->driver_data = dev->driver->of_match->data; in rk3368_syscon_bind_of_platdata()
35 debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data); in rk3368_syscon_bind_of_platdata()
/external/u-boot/arch/arm/mach-rockchip/rk3399/
Dsyscon_rk3399.c28 dev->driver_data = dev->driver->of_match->data; in rk3399_syscon_bind_of_platdata()
29 debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data); in rk3399_syscon_bind_of_platdata()
/external/u-boot/drivers/gpio/
Dpca953x_gpio.c250 ulong driver_data; in pca953x_probe() local
261 driver_data = dev_get_driver_data(dev); in pca953x_probe()
263 info->gpio_count = driver_data & PCA_GPIO_MASK; in pca953x_probe()
269 info->chip_type = PCA_CHIP_TYPE(driver_data); in pca953x_probe()
/external/u-boot/drivers/watchdog/
Dast_wdt.c23 ulong driver_data = dev_get_driver_data(dev); in ast_wdt_start() local
30 if (driver_data >= WDT_AST2500 && reset_mode == WDT_CTRL_RESET_SOC) in ast_wdt_start()
/external/u-boot/include/linux/usb/
Dgadget.h157 void *driver_data; member
518 gadget->dev.driver_data = data; in set_gadget_data()
523 return gadget->dev.driver_data; in get_gadget_data()

123