Home
last modified time | relevance | path

Searched refs:initdef (Results 1 – 7 of 7) sorted by relevance

/freebsd/sys/dev/iicbus/pmic/rockchip/
H A Drk8xx_regulators.c281 struct regnode_init_def initdef; in rk8xx_reg_attach() local
284 memset(&initdef, 0, sizeof(initdef)); in rk8xx_reg_attach()
285 if (regulator_parse_ofw_stdparam(dev, node, &initdef) != 0) { in rk8xx_reg_attach()
289 if (initdef.std_param.min_uvolt == 0) in rk8xx_reg_attach()
290 initdef.std_param.min_uvolt = def->voltage_min; in rk8xx_reg_attach()
291 if (initdef.std_param.max_uvolt == 0) in rk8xx_reg_attach()
292 initdef.std_param.max_uvolt = def->voltage_max; in rk8xx_reg_attach()
293 initdef.id = def->id; in rk8xx_reg_attach()
294 initdef.ofw_node = node; in rk8xx_reg_attach()
296 regnode = regnode_create(dev, &rk8xx_regnode_class, &initdef); in rk8xx_reg_attach()
/freebsd/sys/dev/iicbus/pmic/silergy/
H A Dsy8106a.c200 struct regnode_init_def initdef; in sy8106a_reg_attach() local
203 memset(&initdef, 0, sizeof(initdef)); in sy8106a_reg_attach()
204 regulator_parse_ofw_stdparam(dev, node, &initdef); in sy8106a_reg_attach()
205 initdef.id = 0; in sy8106a_reg_attach()
206 initdef.ofw_node = node; in sy8106a_reg_attach()
207 regnode = regnode_create(dev, &sy8106a_regnode_class, &initdef); in sy8106a_reg_attach()
H A Dsyr827.c182 struct regnode_init_def initdef; in syr827_reg_attach() local
186 memset(&initdef, 0, sizeof(initdef)); in syr827_reg_attach()
187 regulator_parse_ofw_stdparam(dev, node, &initdef); in syr827_reg_attach()
188 initdef.id = 0; in syr827_reg_attach()
189 initdef.ofw_node = node; in syr827_reg_attach()
190 regnode = regnode_create(dev, &syr827_regnode_class, &initdef); in syr827_reg_attach()
/freebsd/sys/dev/iicbus/pmic/
H A Dfan53555.c331 struct regnode_init_def initdef; in fan53555_reg_attach() local
336 memset(&initdef, 0, sizeof(initdef)); in fan53555_reg_attach()
337 if (regulator_parse_ofw_stdparam(sc->dev, node, &initdef) != 0) { in fan53555_reg_attach()
362 initdef.id = 1; in fan53555_reg_attach()
363 initdef.ofw_node = node; in fan53555_reg_attach()
365 regnode = regnode_create(sc->dev, &fan53555_regnode_class, &initdef); in fan53555_reg_attach()
H A Dact8846_regulator.c397 struct regnode_init_def initdef; in act8846_attach() local
400 memset(&initdef, 0, sizeof(initdef)); in act8846_attach()
401 if (act8846_fdt_parse(sc, pnode, node, def, &initdef) != 0) { in act8846_attach()
405 initdef.id = def->id; in act8846_attach()
406 initdef.ofw_node = node; in act8846_attach()
408 regnode = regnode_create(sc->dev, &act8846_regnode_class, &initdef); in act8846_attach()
/freebsd/sys/arm/allwinner/
H A Daxp209.c1146 struct regnode_init_def initdef; in axp2xx_reg_attach() local
1149 memset(&initdef, 0, sizeof(initdef)); in axp2xx_reg_attach()
1150 if (regulator_parse_ofw_stdparam(dev, node, &initdef) != 0) { in axp2xx_reg_attach()
1154 if (initdef.std_param.min_uvolt == 0) in axp2xx_reg_attach()
1155 initdef.std_param.min_uvolt = def->voltage_min * 1000; in axp2xx_reg_attach()
1156 if (initdef.std_param.max_uvolt == 0) in axp2xx_reg_attach()
1157 initdef.std_param.max_uvolt = def->voltage_max * 1000; in axp2xx_reg_attach()
1158 initdef.id = def->id; in axp2xx_reg_attach()
1159 initdef.ofw_node = node; in axp2xx_reg_attach()
1160 regnode = regnode_create(dev, &axp2xx_regnode_class, &initdef); in axp2xx_reg_attach()
H A Daxp81x.c1391 struct regnode_init_def initdef; in axp8xx_reg_attach() local
1394 memset(&initdef, 0, sizeof(initdef)); in axp8xx_reg_attach()
1395 if (regulator_parse_ofw_stdparam(dev, node, &initdef) != 0) in axp8xx_reg_attach()
1397 if (initdef.std_param.min_uvolt == 0) in axp8xx_reg_attach()
1398 initdef.std_param.min_uvolt = def->voltage_min * 1000; in axp8xx_reg_attach()
1399 if (initdef.std_param.max_uvolt == 0) in axp8xx_reg_attach()
1400 initdef.std_param.max_uvolt = def->voltage_max * 1000; in axp8xx_reg_attach()
1401 initdef.id = def->id; in axp8xx_reg_attach()
1402 initdef.ofw_node = node; in axp8xx_reg_attach()
1403 regnode = regnode_create(dev, &axp8xx_regnode_class, &initdef); in axp8xx_reg_attach()