Searched refs:initdef (Results 1 – 7 of 7) sorted by relevance
| /freebsd-14.2/sys/dev/iicbus/pmic/rockchip/ |
| H A D | rk8xx_regulators.c | 282 struct regnode_init_def initdef; in rk8xx_reg_attach() local 285 memset(&initdef, 0, sizeof(initdef)); in rk8xx_reg_attach() 286 if (regulator_parse_ofw_stdparam(dev, node, &initdef) != 0) { in rk8xx_reg_attach() 290 if (initdef.std_param.min_uvolt == 0) in rk8xx_reg_attach() 291 initdef.std_param.min_uvolt = def->voltage_min; in rk8xx_reg_attach() 292 if (initdef.std_param.max_uvolt == 0) in rk8xx_reg_attach() 293 initdef.std_param.max_uvolt = def->voltage_max; in rk8xx_reg_attach() 294 initdef.id = def->id; in rk8xx_reg_attach() 295 initdef.ofw_node = node; in rk8xx_reg_attach() 297 regnode = regnode_create(dev, &rk8xx_regnode_class, &initdef); in rk8xx_reg_attach()
|
| /freebsd-14.2/sys/dev/iicbus/pmic/silergy/ |
| H A D | sy8106a.c | 201 struct regnode_init_def initdef; in sy8106a_reg_attach() local 204 memset(&initdef, 0, sizeof(initdef)); in sy8106a_reg_attach() 205 regulator_parse_ofw_stdparam(dev, node, &initdef); in sy8106a_reg_attach() 206 initdef.id = 0; in sy8106a_reg_attach() 207 initdef.ofw_node = node; in sy8106a_reg_attach() 208 regnode = regnode_create(dev, &sy8106a_regnode_class, &initdef); in sy8106a_reg_attach()
|
| H A D | syr827.c | 183 struct regnode_init_def initdef; in syr827_reg_attach() local 187 memset(&initdef, 0, sizeof(initdef)); in syr827_reg_attach() 188 regulator_parse_ofw_stdparam(dev, node, &initdef); in syr827_reg_attach() 189 initdef.id = 0; in syr827_reg_attach() 190 initdef.ofw_node = node; in syr827_reg_attach() 191 regnode = regnode_create(dev, &syr827_regnode_class, &initdef); in syr827_reg_attach()
|
| /freebsd-14.2/sys/dev/iicbus/pmic/ |
| H A D | fan53555.c | 332 struct regnode_init_def initdef; in fan53555_reg_attach() local 337 memset(&initdef, 0, sizeof(initdef)); in fan53555_reg_attach() 338 if (regulator_parse_ofw_stdparam(sc->dev, node, &initdef) != 0) { in fan53555_reg_attach() 363 initdef.id = 1; in fan53555_reg_attach() 364 initdef.ofw_node = node; in fan53555_reg_attach() 366 regnode = regnode_create(sc->dev, &fan53555_regnode_class, &initdef); in fan53555_reg_attach()
|
| H A D | act8846_regulator.c | 398 struct regnode_init_def initdef; in act8846_attach() local 401 memset(&initdef, 0, sizeof(initdef)); in act8846_attach() 402 if (act8846_fdt_parse(sc, pnode, node, def, &initdef) != 0) { in act8846_attach() 406 initdef.id = def->id; in act8846_attach() 407 initdef.ofw_node = node; in act8846_attach() 409 regnode = regnode_create(sc->dev, &act8846_regnode_class, &initdef); in act8846_attach()
|
| /freebsd-14.2/sys/arm/allwinner/ |
| H A D | axp209.c | 1146 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 D | axp81x.c | 1392 struct regnode_init_def initdef; in axp8xx_reg_attach() local 1395 memset(&initdef, 0, sizeof(initdef)); in axp8xx_reg_attach() 1396 if (regulator_parse_ofw_stdparam(dev, node, &initdef) != 0) in axp8xx_reg_attach() 1398 if (initdef.std_param.min_uvolt == 0) in axp8xx_reg_attach() 1399 initdef.std_param.min_uvolt = def->voltage_min * 1000; in axp8xx_reg_attach() 1400 if (initdef.std_param.max_uvolt == 0) in axp8xx_reg_attach() 1401 initdef.std_param.max_uvolt = def->voltage_max * 1000; in axp8xx_reg_attach() 1402 initdef.id = def->id; in axp8xx_reg_attach() 1403 initdef.ofw_node = node; in axp8xx_reg_attach() 1404 regnode = regnode_create(dev, &axp8xx_regnode_class, &initdef); in axp8xx_reg_attach()
|