Home
last modified time | relevance | path

Searched refs:phandle (Results 1 – 25 of 60) sorted by relevance

123

/openbsd/src/sys/dev/ofw/
Dofw_misc.c93 regmap_byphandle(uint32_t phandle) in regmap_byphandle() argument
97 if (phandle == 0) in regmap_byphandle()
101 if (rm->rm_phandle == phandle) in regmap_byphandle()
151 if_byphandle(uint32_t phandle) in if_byphandle() argument
155 if (phandle == 0) in if_byphandle()
159 if (ifd->if_phandle == phandle) in if_byphandle()
217 uint32_t phandle = cells[0]; in phy_enable_cells() local
221 if (pd->pd_phandle == phandle) in phy_enable_cells()
228 node = OF_getnodebyphandle(phandle); in phy_enable_cells()
241 uint32_t phandle = cells[0]; in phy_next_phy() local
[all …]
Dofw_regulator.c165 regulator_set(uint32_t phandle, int enable) in regulator_set() argument
170 if (phandle == 0) in regulator_set()
173 node = OF_getnodebyphandle(phandle); in regulator_set()
182 if (rd->rd_phandle == phandle) in regulator_set()
196 regulator_enable(uint32_t phandle) in regulator_enable() argument
198 return regulator_set(phandle, 1); in regulator_enable()
202 regulator_disable(uint32_t phandle) in regulator_disable() argument
204 return regulator_set(phandle, 0); in regulator_disable()
208 regulator_get_voltage(uint32_t phandle) in regulator_get_voltage() argument
213 if (phandle == 0) in regulator_get_voltage()
[all …]
Dofw_gpio.c90 uint32_t phandle = cells[0]; in gpio_controller_config_pin() local
93 if (gc->gc_phandle == phandle) in gpio_controller_config_pin()
105 uint32_t phandle = cells[0]; in gpio_controller_get_pin() local
109 if (gc->gc_phandle == phandle) in gpio_controller_get_pin()
123 uint32_t phandle = cells[0]; in gpio_controller_set_pin() local
126 if (gc->gc_phandle == phandle) in gpio_controller_set_pin()
138 uint32_t phandle = cells[0]; in gpio_controller_next_pin() local
141 if (gc->gc_phandle == phandle) in gpio_controller_next_pin()
152 uint32_t phandle = cells[0]; in gpio_controller_intr_establish() local
155 if (gc->gc_phandle == phandle) in gpio_controller_intr_establish()
Dofw_pinctrl.c48 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()
Dofw_clock.c47 uint32_t phandle = cells[0]; in clock_get_frequency_cells() local
51 if (cd->cd_phandle == phandle) in clock_get_frequency_cells()
58 node = OF_getnodebyphandle(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
[all …]
Dopenfirm.h47 int OF_peer(int phandle);
48 int OF_child(int phandle);
49 int OF_parent(int phandle);
86 int phandle; member
Dofw_power.c44 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()
Dofw_thermal.c150 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/src/sys/arch/macppc/macppc/
Dopenfirm.c46 OF_peer(int phandle) in OF_peer() argument
52 int phandle; in OF_peer() member
63 args.phandle = phandle; in OF_peer()
73 OF_child(int phandle) in OF_child() argument
79 int phandle; in OF_child() member
90 args.phandle = phandle; in OF_child()
100 OF_parent(int phandle) in OF_parent() argument
106 int phandle; in OF_parent() member
117 args.phandle = phandle; in OF_parent()
133 int phandle; in OF_getproplen() member
[all …]
/openbsd/src/sys/arch/sparc64/sparc64/
Dopenfirm.c44 OF_peer(int phandle) in OF_peer() argument
50 cell_t phandle; in OF_peer() member
57 args.phandle = HDL2CELL(phandle); in OF_peer()
64 OF_child(int phandle) in OF_child() argument
70 cell_t phandle; in OF_child() member
77 args.phandle = HDL2CELL(phandle); in OF_child()
84 OF_parent(int phandle) in OF_parent() argument
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
[all …]
/openbsd/src/sys/arch/sparc64/stand/ofwboot/
DLocore.c100 cell_t phandle; in OF_finddevice() member
109 return args.phandle; in OF_finddevice()
120 cell_t phandle; in OF_instance_to_package() member
129 return args.phandle; in OF_instance_to_package()
139 cell_t phandle; in OF_getprop() member
149 args.phandle = HDL2CELL(handle); in OF_getprop()
583 OF_peer(int phandle) in OF_peer() argument
589 cell_t phandle; in OF_peer() member
596 args.phandle = HDL2CELL(phandle); in OF_peer()
603 OF_child(int phandle) in OF_child() argument
[all …]
/openbsd/src/sys/dev/fdt/
Drkpinctrl.c181 rk3288_pull(uint32_t bank, uint32_t idx, uint32_t phandle) in rk3288_pull() argument
185 node = OF_getnodebyphandle(phandle); in rk3288_pull()
204 rk3288_strength(uint32_t bank, uint32_t idx, uint32_t phandle) in rk3288_strength() argument
210 node = OF_getnodebyphandle(phandle); in rk3288_strength()
231 rk3288_pinctrl(uint32_t phandle, void *cookie) in rk3288_pinctrl() argument
240 node = OF_getnodebyphandle(phandle); in rk3288_pinctrl()
332 rk3308_pull(uint32_t bank, uint32_t idx, uint32_t phandle) in rk3308_pull() argument
336 node = OF_getnodebyphandle(phandle); in rk3308_pull()
351 rk3308_strength(uint32_t bank, uint32_t idx, uint32_t phandle) in rk3308_strength() argument
357 node = OF_getnodebyphandle(phandle); in rk3308_strength()
[all …]
Drkiovd.c100 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()
Drkdwhdmi.c126 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()
Dqctsens.c128 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()
Dmvicu.c152 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/src/sys/arch/riscv64/riscv64/
Dintr.c80 uint32_t phandle; in riscv_intr_get_parent() local
83 phandle = OF_getpropint(node, "interrupt-parent", 0); in riscv_intr_get_parent()
84 if (phandle) in riscv_intr_get_parent()
85 return OF_getnodebyphandle(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()
107 phandle = OF_getpropint(node, "msi-parent", 0); 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()
[all …]
/openbsd/src/sys/arch/powerpc64/powerpc64/
Dintr.c238 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/src/sys/arch/armv7/imx/
Dimxtemp.c113 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/src/sys/arch/armv7/armv7/
Dintr.c100 uint32_t phandle; in arm_intr_get_parent() local
103 phandle = OF_getpropint(node, "interrupt-parent", 0); in arm_intr_get_parent()
104 if (phandle) in arm_intr_get_parent()
105 return OF_getnodebyphandle(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()
127 phandle = OF_getpropint(node, "msi-parent", 0); 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()
[all …]
/openbsd/src/sys/arch/arm64/arm64/
Dintr.c100 uint32_t phandle; in arm_intr_get_parent() local
103 phandle = OF_getpropint(node, "interrupt-parent", 0); in arm_intr_get_parent()
104 if (phandle) in arm_intr_get_parent()
105 return OF_getnodebyphandle(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()
127 phandle = OF_getpropint(node, "msi-parent", 0); 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()
[all …]
/openbsd/src/sys/arch/octeon/dev/
Docteon_intr.c126 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/src/sys/arch/macppc/stand/
DLocore.c162 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/src/sys/arch/arm64/dev/
Daplsart.c173 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()
Daplcpu.c197 uint32_t freq_domain[2], phandle; in aplcpu_opp_init() local
213 phandle = OF_getpropint(node, "operating-points-v2", 0); in aplcpu_opp_init()
214 if (phandle == 0) in aplcpu_opp_init()
218 if (ot->ot_phandle == phandle) { in aplcpu_opp_init()
224 node = OF_getnodebyphandle(phandle); in aplcpu_opp_init()
238 ot->ot_phandle = phandle; in aplcpu_opp_init()

123