Home
last modified time | relevance | path

Searched refs:init_def (Results 1 – 6 of 6) sorted by relevance

/freebsd/sys/dev/gpio/
H A Dgpioregulator.c73 struct gpioregulator_init_def init_def; member
208 &sc->init_def.reg_init_def); in gpioregulator_parse_fdt()
220 sc->init_def.nstates = len / 2; in gpioregulator_parse_fdt()
221 sc->init_def.states = malloc(sc->init_def.nstates * in gpioregulator_parse_fdt()
222 sizeof(*sc->init_def.states), M_DEVBUF, M_WAITOK); in gpioregulator_parse_fdt()
223 for (n = 0; n < sc->init_def.nstates; n++) { in gpioregulator_parse_fdt()
224 sc->init_def.states[n].val = pstates[n * 2 + 0]; in gpioregulator_parse_fdt()
225 sc->init_def.states[n].mask = pstates[n * 2 + 1]; in gpioregulator_parse_fdt()
226 mask |= sc->init_def.states[n].mask; in gpioregulator_parse_fdt()
231 &sc->init_def.startup_delay_us, in gpioregulator_parse_fdt()
[all …]
/freebsd/sys/arm64/nvidia/tegra210/
H A Dmax77620_regulators.c633 struct max77620_regnode_init_def *init_def) in max77620_fdt_parse() argument
640 &init_def->reg_init_def); in max77620_fdt_parse()
643 &init_def->active_fps_src, sizeof(init_def->active_fps_src)); in max77620_fdt_parse()
645 init_def->active_fps_src = MAX77620_FPS_SRC_DEF; in max77620_fdt_parse()
648 &init_def->active_fps_pu_slot, sizeof(init_def->active_fps_pu_slot)); in max77620_fdt_parse()
650 init_def->active_fps_pu_slot = -1; in max77620_fdt_parse()
653 &init_def->active_fps_pd_slot, sizeof(init_def->active_fps_pd_slot)); in max77620_fdt_parse()
655 init_def->active_fps_pd_slot = -1; in max77620_fdt_parse()
658 &init_def->suspend_fps_src, sizeof(init_def->suspend_fps_src)); in max77620_fdt_parse()
660 init_def->suspend_fps_src = -1; in max77620_fdt_parse()
[all …]
/freebsd/sys/dev/regulator/
H A Dregulator_fixed.c297 regnode_fixed_register(device_t dev, struct regnode_fixed_init_def *init_def) in regnode_fixed_register() argument
303 &init_def->reg_init_def); in regnode_fixed_register()
309 sc->gpio_open_drain = init_def->gpio_open_drain; in regnode_fixed_register()
310 if (init_def->gpio_pin != NULL) { in regnode_fixed_register()
311 sc->gpio_entry = regnode_get_gpio_entry(init_def->gpio_pin); in regnode_fixed_register()
336 struct regnode_fixed_init_def init_def; member
378 sc->init_def.gpio_pin = &sc->gpio_pin; in regfix_get_gpio()
387 struct regnode_init_def *init_def; in regfix_parse_fdt() local
390 init_def = &sc->init_def.reg_init_def; in regfix_parse_fdt()
392 rv = regulator_parse_ofw_stdparam(sc->dev, node, init_def); in regfix_parse_fdt()
[all …]
H A Dregulator_fixed.h40 struct regnode_fixed_init_def *init_def);
/freebsd/sys/arm/nvidia/
H A Das3722_regulators.c504 struct as3722_regnode_init_def *init_def) in as3722_fdt_parse() argument
511 &init_def->reg_init_def); in as3722_fdt_parse()
513 rv = OF_getencprop(node, "ams,ext-control", &init_def->ext_control, in as3722_fdt_parse()
514 sizeof(init_def->ext_control)); in as3722_fdt_parse()
516 init_def->ext_control = 0; in as3722_fdt_parse()
517 if (init_def->ext_control > 3) { in as3722_fdt_parse()
520 init_def->ext_control); in as3722_fdt_parse()
521 init_def->ext_control = 0; in as3722_fdt_parse()
524 init_def->enable_tracking = 1; in as3722_fdt_parse()
539 (void **)&init_def->reg_init_def.parent_name); in as3722_fdt_parse()
[all …]
/freebsd/sys/dev/iicbus/pmic/
H A Dact8846_regulator.c366 struct act8846_regdef *def, struct regnode_init_def *init_def) in act8846_fdt_parse() argument
372 rv = regulator_parse_ofw_stdparam(sc->dev, node, init_def); in act8846_fdt_parse()
386 (void **)&init_def->parent_name); in act8846_fdt_parse()
388 init_def->parent_name = NULL; in act8846_fdt_parse()