/openbsd/sys/dev/ofw/ |
H A D | ofw_misc.c | 97 if (phandle == 0) in regmap_byphandle() 155 if (phandle == 0) in if_byphandle() 334 if (phandle == 0) in i2c_byphandle() 367 if (phandle == 0) in sfp_do_enable() 395 if (phandle == 0) in sfp_get_sffpage() 572 uint32_t phandle; in nvmem_register_child() local 576 if (phandle == 0) in nvmem_register_child() 612 if (phandle == 0) in nvmem_read() 842 if (phandle == 0) in device_ports_byphandle() 858 if (phandle == 0) in endpoint_byphandle() [all …]
|
H A D | ofw_regulator.c | 170 if (phandle == 0) in regulator_set() 182 if (rd->rd_phandle == phandle) in regulator_set() 213 if (phandle == 0) in regulator_get_voltage() 217 if (rd->rd_phandle == phandle) in regulator_get_voltage() 245 if (phandle == 0) in regulator_set_voltage() 249 if (rd->rd_phandle == phandle) in regulator_set_voltage() 296 if (phandle == 0) in regulator_get_current() 300 if (rd->rd_phandle == phandle) in regulator_get_current() 328 if (phandle == 0) in regulator_set_current() 332 if (rd->rd_phandle == phandle) in regulator_set_current() [all …]
|
H A D | ofw_gpio.c | 88 uint32_t phandle = cells[0]; in gpio_controller_config_pin() local 91 if (gc->gc_phandle == phandle) in gpio_controller_config_pin() 103 uint32_t phandle = cells[0]; in gpio_controller_get_pin() local 107 if (gc->gc_phandle == phandle) in gpio_controller_get_pin() 121 uint32_t phandle = cells[0]; in gpio_controller_set_pin() local 124 if (gc->gc_phandle == phandle) in gpio_controller_set_pin() 136 uint32_t phandle = cells[0]; in gpio_controller_next_pin() local 139 if (gc->gc_phandle == phandle) in gpio_controller_next_pin()
|
H A D | ofw_pinctrl.c | 48 uint32_t phandle; in pinctrl_register_child() local 50 phandle = OF_getpropint(node, "phandle", 0); in pinctrl_register_child() 51 if (phandle) { in pinctrl_register_child() 53 pc->pc_phandle = phandle; in pinctrl_register_child() 64 pinctrl_byphandle(uint32_t phandle) in pinctrl_byphandle() argument 68 if (phandle == 0) in pinctrl_byphandle() 72 if (pc->pc_phandle == phandle) in pinctrl_byphandle()
|
H A D | ofw_clock.c | 47 uint32_t phandle = cells[0]; in clock_get_frequency_cells() local 51 if (cd->cd_phandle == phandle) in clock_get_frequency_cells() 81 uint32_t phandle = cells[0]; in clock_set_frequency_cells() local 84 if (cd->cd_phandle == phandle) in clock_set_frequency_cells() 98 uint32_t phandle = cells[0]; in clock_set_parent_cells() local 101 if (cd->cd_phandle == phandle) in clock_set_parent_cells() 115 uint32_t phandle = cells[0]; in clock_enable_cells() local 118 if (cd->cd_phandle == phandle) in clock_enable_cells() 129 uint32_t phandle = cells[0]; in clock_next_clock() local 356 uint32_t phandle = cells[0]; in reset_assert_cells() local [all …]
|
H A D | openfirm.h | 47 int OF_peer(int phandle); 48 int OF_child(int phandle); 49 int OF_parent(int phandle); 63 int OF_package_to_path(int phandle, char *buf, int buflen); 88 int phandle; member
|
H A D | ofw_power.c | 44 uint32_t phandle = cells[0]; in power_domain_enable_cells() local 47 if (pd->pd_phandle == phandle) in power_domain_enable_cells() 58 uint32_t phandle = cells[0]; in power_domain_next_domain() local 61 node = OF_getnodebyphandle(phandle); in power_domain_next_domain()
|
H A D | ofw_thermal.c | 150 uint32_t phandle = cells[0]; in thermal_get_temperature_cells() local 153 if (ts->ts_phandle == phandle) in thermal_get_temperature_cells() 167 uint32_t phandle = cells[0]; in thermal_set_limit_cells() local 170 if (ts->ts_phandle == phandle) in thermal_set_limit_cells() 191 uint32_t phandle = cells[0]; in cdev_next_cdev() local 194 node = OF_getnodebyphandle(phandle); in cdev_next_cdev() 206 uint32_t phandle = cells[0]; in cdev_get_level() local 209 if (cd->cd_phandle == phandle) in cdev_get_level() 223 uint32_t phandle = cells[0]; in cdev_set_level() local 226 if (cd->cd_phandle == phandle) in cdev_set_level()
|
/openbsd/sys/arch/macppc/macppc/ |
H A D | openfirm.c | 52 int phandle; in OF_peer() member 63 args.phandle = phandle; in OF_peer() 79 int phandle; in OF_child() member 90 args.phandle = phandle; in OF_child() 106 int phandle; in OF_parent() member 117 args.phandle = phandle; in OF_parent() 133 int phandle; in OF_getproplen() member 162 int phandle; in OF_getprop() member 200 int phandle; in OF_setprop() member 236 int phandle; in OF_nextprop() member [all …]
|
/openbsd/sys/arch/sparc64/sparc64/ |
H A D | openfirm.c | 50 cell_t phandle; in OF_peer() member 57 args.phandle = HDL2CELL(phandle); in OF_peer() 70 cell_t phandle; in OF_child() member 77 args.phandle = HDL2CELL(phandle); in OF_child() 90 cell_t phandle; in OF_parent() member 97 args.phandle = HDL2CELL(phandle); in OF_parent() 111 cell_t phandle; in OF_instance_to_package() member 131 cell_t phandle; in OF_getproplen() member 153 cell_t phandle; in OF_getprop() member 181 cell_t phandle; in OF_setprop() member [all …]
|
/openbsd/sys/arch/sparc64/stand/ofwboot/ |
H A D | Locore.c | 100 cell_t phandle; in OF_finddevice() member 120 cell_t phandle; in OF_instance_to_package() member 139 cell_t phandle; in OF_getprop() member 589 cell_t phandle; in OF_peer() member 596 args.phandle = HDL2CELL(phandle); in OF_peer() 609 cell_t phandle; in OF_child() member 616 args.phandle = HDL2CELL(phandle); in OF_child() 629 cell_t phandle; in OF_parent() member 636 args.phandle = HDL2CELL(phandle); in OF_parent() 649 cell_t phandle; in OF_package_to_path() member [all …]
|
/openbsd/sys/dev/fdt/ |
H A D | rkpinctrl.c | 185 node = OF_getnodebyphandle(phandle); in rk3288_pull() 210 node = OF_getnodebyphandle(phandle); in rk3288_strength() 240 node = OF_getnodebyphandle(phandle); in rk3288_pinctrl() 336 node = OF_getnodebyphandle(phandle); in rk3308_pull() 357 node = OF_getnodebyphandle(phandle); in rk3308_strength() 382 node = OF_getnodebyphandle(phandle); in rk3308_pinctrl() 482 node = OF_getnodebyphandle(phandle); in rk3328_pull() 503 node = OF_getnodebyphandle(phandle); in rk3328_strength() 528 node = OF_getnodebyphandle(phandle); in rk3328_pinctrl() 638 node = OF_getnodebyphandle(phandle); in rk3399_pull() [all …]
|
H A D | rkiovd.c | 100 uint32_t phandle; in rkiovd_attach() local 102 phandle = OF_getpropint(faa->fa_node, name, 0); in rkiovd_attach() 103 if (phandle == 0) in rkiovd_attach() 108 rd->rd_rn.rn_phandle = phandle; in rkiovd_attach()
|
H A D | rkdwhdmi.c | 126 uint32_t phandle; in rkdwhdmi_attach() local 163 phandle = OF_getpropint(faa->fa_node, "ddc-i2c-bus", 0); in rkdwhdmi_attach() 164 sc->sc_base.sc_ic = i2c_byphandle(phandle); in rkdwhdmi_attach() 165 if (phandle && sc->sc_base.sc_ic == NULL) { in rkdwhdmi_attach() 192 fdtbus_register_dai_controller(self, phandle, &rkdwhdmi_dai_funcs); in rkdwhdmi_attach()
|
H A D | qctsens.c | 128 uint32_t phandle, reg; in qctsens_attach_sensors() local 131 phandle = OF_getpropint(sc->sc_node, "phandle", 0); in qctsens_attach_sensors() 132 if (phandle == 0) { in qctsens_attach_sensors() 143 if (len != 8 || propdata[0] != phandle || propdata[1] >= 16) in qctsens_attach_sensors()
|
H A D | mvicu.c | 152 uint32_t phandle = 0; in mvicu_register() local 177 while (node && !phandle) { in mvicu_register() 178 phandle = OF_getpropint(node, "msi-parent", 0); in mvicu_register() 181 if (phandle == 0) in mvicu_register() 186 if (ic->ic_phandle == phandle) in mvicu_register()
|
/openbsd/sys/arch/riscv64/riscv64/ |
H A D | intr.c | 80 uint32_t phandle; in riscv_intr_get_parent() local 84 if (phandle) in riscv_intr_get_parent() 98 uint32_t phandle = 0; in riscv_intr_map_msi() local 106 while (node && !phandle) { in riscv_intr_map_msi() 111 return phandle; in riscv_intr_map_msi() 146 phandle = cell[1]; in riscv_intr_map_msi() 156 return phandle; in riscv_intr_map_msi() 363 phandle = cell[0]; in riscv_intr_establish_fdt_idx_cpu() 366 if (phandle == 0) { in riscv_intr_establish_fdt_idx_cpu() 478 uint32_t phandle; in riscv_intr_establish_fdt_msi_cpu() local [all …]
|
/openbsd/sys/arch/powerpc64/powerpc64/ |
H A D | intr.c | 238 uint32_t phandle = 0; in fdt_intr_get_parent() local 240 while (node && !phandle) { in fdt_intr_get_parent() 241 phandle = OF_getpropint(node, "interrupt-parent", 0); in fdt_intr_get_parent() 245 return phandle; in fdt_intr_get_parent() 254 uint32_t *cell, *cells, phandle; in fdt_intr_establish_idx_cpu() local 268 phandle = fdt_intr_get_parent(node); in fdt_intr_establish_idx_cpu() 270 if (ic->ic_phandle == phandle) in fdt_intr_establish_idx_cpu() 287 phandle = cell[0]; in fdt_intr_establish_idx_cpu() 290 if (phandle == 0) { in fdt_intr_establish_idx_cpu() 297 if (ic->ic_phandle == phandle) in fdt_intr_establish_idx_cpu()
|
/openbsd/sys/arch/armv7/imx/ |
H A D | imxtemp.c | 113 uint32_t phandle; in imxtemp_attach() local 116 phandle = OF_getpropint(sc->sc_node, "fsl,tempmon", 0); in imxtemp_attach() 117 sc->sc_rm = regmap_byphandle(phandle); in imxtemp_attach() 131 uint32_t phandle; in imxtemp_calibration() local 134 phandle = OF_getpropint(sc->sc_node, "fsl,tempmon-data", 0); in imxtemp_calibration() 135 rm = regmap_byphandle(phandle); in imxtemp_calibration()
|
/openbsd/sys/arch/arm64/arm64/ |
H A D | intr.c | 100 uint32_t phandle; in arm_intr_get_parent() local 104 if (phandle) in arm_intr_get_parent() 118 uint32_t phandle = 0; in arm_intr_map_msi() local 126 while (node && !phandle) { in arm_intr_map_msi() 131 return phandle; in arm_intr_map_msi() 166 phandle = cell[1]; in arm_intr_map_msi() 176 return phandle; in arm_intr_map_msi() 381 phandle = cell[0]; in arm_intr_establish_fdt_idx_cpu() 384 if (phandle == 0) { in arm_intr_establish_fdt_idx_cpu() 512 uint32_t phandle; in arm_intr_establish_fdt_msi_cpu() local [all …]
|
/openbsd/sys/arch/armv7/armv7/ |
H A D | intr.c | 100 uint32_t phandle; in arm_intr_get_parent() local 104 if (phandle) in arm_intr_get_parent() 118 uint32_t phandle = 0; in arm_intr_map_msi() local 126 while (node && !phandle) { in arm_intr_map_msi() 131 return phandle; in arm_intr_map_msi() 166 phandle = cell[1]; in arm_intr_map_msi() 176 return phandle; in arm_intr_map_msi() 375 phandle = cell[0]; in arm_intr_establish_fdt_idx_cpu() 378 if (phandle == 0) { in arm_intr_establish_fdt_idx_cpu() 506 uint32_t phandle; in arm_intr_establish_fdt_msi_cpu() local [all …]
|
/openbsd/sys/arch/octeon/dev/ |
H A D | octeon_intr.c | 126 int phandle; in octeon_intr_establish_fdt_idx() local 128 phandle = OF_getpropint(node, "interrupt-parent", 1); in octeon_intr_establish_fdt_idx() 129 if (phandle < 1) in octeon_intr_establish_fdt_idx() 133 if (ic->ic_phandle == phandle) in octeon_intr_establish_fdt_idx()
|
/openbsd/sys/arch/macppc/stand/ |
H A D | Locore.c | 162 int phandle; in OF_finddevice() member 172 return args.phandle; in OF_finddevice() 183 int phandle; in OF_instance_to_package() member 193 return args.phandle; in OF_instance_to_package() 203 int phandle; in OF_getprop() member 214 args.phandle = handle; in OF_getprop()
|
/openbsd/sys/arch/arm64/dev/ |
H A D | aplsart.c | 173 aplsart_map(uint32_t phandle, bus_addr_t addr, bus_size_t size) in aplsart_map() argument 181 if (sc->sc_phandle == phandle) { in aplsart_map() 228 aplsart_unmap(uint32_t phandle, bus_addr_t addr, bus_size_t size) in aplsart_unmap() argument 236 if (sc->sc_phandle == phandle) { in aplsart_unmap()
|
/openbsd/sys/arch/arm64/stand/efiboot/ |
H A D | efiacpi.c | 477 static uint32_t phandle = 2; in efi_acpi_madt_gic_msi() local 501 fdt_node_add_property(child, "phandle", &phandle, sizeof(phandle)); in efi_acpi_madt_gic_msi() 502 phandle++; in efi_acpi_madt_gic_msi() 516 static uint32_t phandle = 2; in efi_acpi_madt_gic_its() local 533 fdt_node_add_property(child, "phandle", &phandle, sizeof(phandle)); in efi_acpi_madt_gic_its() 536 phandle++; in efi_acpi_madt_gic_its()
|