Home
last modified time | relevance | path

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

/f-stack/freebsd/arm64/rockchip/
H A Drk805.c552 struct regnode_init_def initdef; in rk805_reg_attach() local
555 memset(&initdef, 0, sizeof(initdef)); in rk805_reg_attach()
556 if (regulator_parse_ofw_stdparam(dev, node, &initdef) != 0) { in rk805_reg_attach()
560 if (initdef.std_param.min_uvolt == 0) in rk805_reg_attach()
561 initdef.std_param.min_uvolt = def->voltage_min; in rk805_reg_attach()
562 if (initdef.std_param.max_uvolt == 0) in rk805_reg_attach()
563 initdef.std_param.max_uvolt = def->voltage_max; in rk805_reg_attach()
564 initdef.id = def->id; in rk805_reg_attach()
565 initdef.ofw_node = node; in rk805_reg_attach()
567 regnode = regnode_create(dev, &rk805_regnode_class, &initdef); in rk805_reg_attach()
/f-stack/freebsd/arm/allwinner/
H A Daxp209.c1148 struct regnode_init_def initdef; in axp2xx_reg_attach() local
1151 memset(&initdef, 0, sizeof(initdef)); in axp2xx_reg_attach()
1152 if (regulator_parse_ofw_stdparam(dev, node, &initdef) != 0) { in axp2xx_reg_attach()
1156 if (initdef.std_param.min_uvolt == 0) in axp2xx_reg_attach()
1157 initdef.std_param.min_uvolt = def->voltage_min * 1000; in axp2xx_reg_attach()
1158 if (initdef.std_param.max_uvolt == 0) in axp2xx_reg_attach()
1159 initdef.std_param.max_uvolt = def->voltage_max * 1000; in axp2xx_reg_attach()
1160 initdef.id = def->id; in axp2xx_reg_attach()
1161 initdef.ofw_node = node; in axp2xx_reg_attach()
1162 regnode = regnode_create(dev, &axp2xx_regnode_class, &initdef); in axp2xx_reg_attach()
H A Daxp81x.c1381 struct regnode_init_def initdef; in axp8xx_reg_attach() local
1384 memset(&initdef, 0, sizeof(initdef)); in axp8xx_reg_attach()
1385 if (regulator_parse_ofw_stdparam(dev, node, &initdef) != 0) in axp8xx_reg_attach()
1387 if (initdef.std_param.min_uvolt == 0) in axp8xx_reg_attach()
1388 initdef.std_param.min_uvolt = def->voltage_min * 1000; in axp8xx_reg_attach()
1389 if (initdef.std_param.max_uvolt == 0) in axp8xx_reg_attach()
1390 initdef.std_param.max_uvolt = def->voltage_max * 1000; in axp8xx_reg_attach()
1391 initdef.id = def->id; in axp8xx_reg_attach()
1392 initdef.ofw_node = node; in axp8xx_reg_attach()
1393 regnode = regnode_create(dev, &axp8xx_regnode_class, &initdef); in axp8xx_reg_attach()