Home
last modified time | relevance | path

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

123

/netbsd/src/external/gpl3/gdb/dist/sim/ppc/
Demul_chirp.c251 unsigned_cell phandle; in chirp_emul_peer() member
255 device *phandle; in chirp_emul_peer() local
260 phandle = external_to_device(data->root, args.phandle); in chirp_emul_peer()
262 (unsigned long)args.phandle, in chirp_emul_peer()
263 phandle, in chirp_emul_peer()
264 (phandle == NULL ? "" : device_name(phandle)))); in chirp_emul_peer()
266 if (args.phandle == 0) { in chirp_emul_peer()
270 else if (phandle == NULL) { in chirp_emul_peer()
275 sibling_phandle = device_sibling(phandle); in chirp_emul_peer()
300 unsigned_cell phandle; in chirp_emul_child() member
[all …]
/netbsd/src/sys/arch/arm/ofw/
Dopenfirm.c89 OF_peer(int phandle) in OF_peer() argument
95 int phandle; in OF_peer() member
103 args.phandle = phandle; in OF_peer()
110 OF_child(int phandle) in OF_child() argument
116 int phandle; in OF_child() member
124 args.phandle = phandle; in OF_child()
131 OF_parent(int phandle) in OF_parent() argument
137 int phandle; in OF_parent() member
145 args.phandle = phandle; in OF_parent()
159 int phandle; in OF_instance_to_package() member
[all …]
/netbsd/src/sys/arch/powerpc/powerpc/
Dopenfirm.c86 OF_peer(int phandle) in OF_peer() argument
92 int phandle; in OF_peer() member
103 args.phandle = phandle; in OF_peer()
114 OF_child(int phandle) in OF_child() argument
120 int phandle; in OF_child() member
131 args.phandle = phandle; in OF_child()
142 OF_parent(int phandle) in OF_parent() argument
148 int phandle; in OF_parent() member
159 args.phandle = phandle; in OF_parent()
177 int phandle; in OF_instance_to_package() member
[all …]
/netbsd/src/sys/arch/ofppc/stand/ofwboot/
DLocore.c119 int phandle; in OF_finddevice() member
129 return args.phandle; in OF_finddevice()
140 int phandle; in OF_instance_to_package() member
150 return args.phandle; in OF_instance_to_package()
160 int phandle; in OF_getprop() member
171 args.phandle = handle; in OF_getprop()
188 int phandle; in OF_setprop() member
199 args.phandle = handle; in OF_setprop()
566 OF_peer(int phandle) in OF_peer() argument
572 int phandle; in OF_peer() member
[all …]
/netbsd/src/sys/dev/ofw/
Dofw_subr.c102 devhandle_from_of(devhandle_t super_handle, int phandle) in devhandle_from_of() argument
113 handle.integer = phandle; in devhandle_from_of()
130 int phandle = devhandle_to_of(call_handle); in of_device_enumerate_children() local
133 for (child = OF_child(phandle); child != 0; child = OF_peer(child)) { in of_device_enumerate_children()
200 of_compatible(int phandle, const char * const *strings) in of_compatible() argument
206 proplen = OF_getproplen(phandle, "compatible"); in of_compatible()
213 if (OF_getprop(phandle, "compatible", prop, proplen) != proplen) { in of_compatible()
257 of_compatible_match(int phandle, in of_compatible_match() argument
263 proplen = OF_getproplen(phandle, "compatible"); in of_compatible_match()
270 if (OF_getprop(phandle, "compatible", prop, proplen) != proplen) { in of_compatible_match()
[all …]
Dofw_pci_subr.c50 int phandle = devhandle_to_of(call_handle); in ofw_pci_bus_get_child_devhandle() local
65 for (phandle = OF_child(phandle); phandle != 0; in ofw_pci_bus_get_child_devhandle()
66 phandle = OF_peer(phandle)) { in ofw_pci_bus_get_child_devhandle()
67 len = OF_getprop(phandle, "reg", &opr, sizeof(opr)); in ofw_pci_bus_get_child_devhandle()
80 args->devhandle = devhandle_from_of(call_handle, phandle); in ofw_pci_bus_get_child_devhandle()
Dofw_network_subr.c94 of_network_decode_media(int phandle, int *nmediap, int *defmediap) in of_network_decode_media() argument
103 len = OF_getproplen(phandle, "supported-network-types"); in of_network_decode_media()
110 if (OF_getprop(phandle, "supported-network-types", sl, len) != len) in of_network_decode_media()
142 len = OF_getproplen(phandle, "chosen-network-type"); in of_network_decode_media()
150 if (OF_getprop(phandle, "chosen-network-type", sl, len) != len) { in of_network_decode_media()
/netbsd/src/sys/dev/ofisa/
Dofisa.c151 ofisa_reg_count(int phandle) in ofisa_reg_count() argument
155 len = OF_getproplen(phandle, "reg"); in ofisa_reg_count()
164 ofisa_reg_get(int phandle, struct ofisa_reg_desc *descp, int ndescs) in ofisa_reg_get() argument
169 i = ofisa_reg_count(phandle); in ofisa_reg_get()
182 if (OF_getprop(phandle, "reg", buf, i) != proplen) { in ofisa_reg_get()
221 ofisa_intr_count(int phandle) in ofisa_intr_count() argument
225 len = OF_getproplen(phandle, "interrupts"); in ofisa_intr_count()
234 ofisa_intr_get(int phandle, struct ofisa_intr_desc *descp, int ndescs) in ofisa_intr_get() argument
239 i = ofisa_intr_count(phandle); in ofisa_intr_get()
252 if (OF_getprop(phandle, "interrupts", buf, i) != proplen) { in ofisa_intr_get()
[all …]
Dpckbc_ofisa.c97 int phandle; in pckbc_ofisa_attach() local
104 phandle = OF_child(aa->oba.oba_phandle); in pckbc_ofisa_attach()
105 while (phandle != 0) { in pckbc_ofisa_attach()
106 dce = of_compatible_lookup(phandle, port_compat_data); in pckbc_ofisa_attach()
108 ofisa_intr_get(phandle, &osc->sc_intr[dce->value], 1); in pckbc_ofisa_attach()
110 phandle = OF_peer(phandle); in pckbc_ofisa_attach()
/netbsd/src/sys/arch/sparc/sparc/
Dopenfirm.c77 OF_peer(int phandle) in OF_peer() argument
83 cell_t phandle; in OF_peer() member
90 args.phandle = HDL2CELL(phandle); in OF_peer()
97 OF_child(int phandle) in OF_child() argument
103 cell_t phandle; in OF_child() member
110 args.phandle = HDL2CELL(phandle); in OF_child()
117 OF_parent(int phandle) in OF_parent() argument
123 cell_t phandle; in OF_parent() member
130 args.phandle = HDL2CELL(phandle); in OF_parent()
144 cell_t phandle; in OF_instance_to_package() member
[all …]
/netbsd/src/sys/arch/arm/broadcom/
Dbcm2835_com.c71 const int phandle = faa->faa_phandle; in bcm_com_attach() local
82 int error = fdtbus_get_reg(phandle, 0, &addr, &size); in bcm_com_attach()
96 for (int i = 0; (clk = fdtbus_clock_get_index(phandle, i)); i++) { in bcm_com_attach()
114 if (!fdtbus_intr_str(phandle, 0, intrstr, sizeof(intrstr))) { in bcm_com_attach()
119 ih = fdtbus_intr_establish_xname(phandle, 0, IPL_SERIAL, FDT_INTR_MPSAFE, in bcm_com_attach()
131 bcmaux_com_console_match(int phandle) in bcmaux_com_console_match() argument
134 return of_compatible_match(phandle, compat_data); in bcmaux_com_console_match()
140 const int phandle = faa->faa_phandle; in bcmaux_com_console_consinit() local
148 fdtbus_get_reg(phandle, 0, &addr, NULL); in bcmaux_com_console_consinit()
Dbcm2835_bsc_fdt.c73 const int phandle = faa->faa_phandle; in bsciic_fdt_attach() local
81 int error = fdtbus_get_reg(phandle, 0, &addr, &size); in bsciic_fdt_attach()
88 sc->sc_clk = fdtbus_clock_get_index(phandle, 0); in bsciic_fdt_attach()
101 if (of_getprop_uint32(phandle, "clock-frequency", in bsciic_fdt_attach()
117 if (!fdtbus_intr_str(phandle, 0, intrstr, sizeof(intrstr))) { in bsciic_fdt_attach()
121 sc->sc_inth = fdtbus_intr_establish_xname(phandle, 0, IPL_VM, in bsciic_fdt_attach()
136 fdtbus_register_i2c_controller(&sc->sc_i2c, phandle); in bsciic_fdt_attach()
138 fdtbus_attach_i2cbus(self, phandle, &sc->sc_i2c, iicbus_print); in bsciic_fdt_attach()
Dbcm2835_dwctwo.c121 const int phandle = faa->faa_phandle; in bcmdwc2_attach() local
129 if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) { in bcmdwc2_attach()
134 sc->sc_phandle = phandle; in bcmdwc2_attach()
147 if (!fdtbus_intr_str(phandle, 0, intrstr, sizeof(intrstr))) { in bcmdwc2_attach()
152 sc->sc_ih = fdtbus_intr_establish_xname(phandle, 0, IPL_VM, FDT_INTR_MPSAFE, in bcmdwc2_attach()
Dbcm2835_mbox_fdt.c75 const int phandle = faa->faa_phandle; in bcmmbox_fdt_attach() local
84 if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) { in bcmmbox_fdt_attach()
94 if (!fdtbus_intr_str(phandle, 0, intrstr, sizeof(intrstr))) { in bcmmbox_fdt_attach()
102 sc->sc_intrh = fdtbus_intr_establish_xname(phandle, 0, IPL_VM, 0, in bcmmbox_fdt_attach()
Dbcm2835_aux.c118 const int phandle = faa->faa_phandle; in bcmaux_attach() local
122 if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) { in bcmaux_attach()
128 sc->sc_phandle = phandle; in bcmaux_attach()
131 sc->sc_pclk = fdtbus_clock_get_index(phandle, 0); in bcmaux_attach()
157 fdtbus_register_clock_controller(self, phandle, &bcmaux_fdt_funcs); in bcmaux_attach()
Dbcm2835_emmc.c120 const int phandle = faa->faa_phandle; in bcmemmc_attach() local
139 error = fdtbus_get_reg(phandle, 0, &addr, &size); in bcmemmc_attach()
144 sc->sc_phandle = phandle; in bcmemmc_attach()
148 for (int i = 0; (clk = fdtbus_clock_get_index(phandle, i)); i++) { in bcmemmc_attach()
170 if (!fdtbus_intr_str(phandle, 0, intrstr, sizeof(intrstr))) { in bcmemmc_attach()
175 sc->sc_ih = fdtbus_intr_establish_xname(phandle, 0, IPL_SDMMC, 0, in bcmemmc_attach()
187 of_compatible_lookup(phandle, compat_data)->value; in bcmemmc_attach()
/netbsd/src/sys/arch/sparc/stand/ofwboot/
Dpromlib.c60 static int phandle = -1; in openfirmware_chosen() local
62 if (phandle == -1) { in openfirmware_chosen()
63 if ( (phandle = OF_finddevice("/chosen")) == -1) { in openfirmware_chosen()
68 return (phandle); in openfirmware_chosen()
141 int phandle, size; in prom_init() local
179 phandle = openfirmware_chosen(); in prom_init()
180 size = _prom_getprop(phandle, "stdin", &promops.po_stdin, in prom_init()
182 size += _prom_getprop(phandle, "stdout", &promops.po_stdout, in prom_init()
DLocore.c101 cell_t phandle; in OF_finddevice() member
110 return args.phandle; in OF_finddevice()
121 cell_t phandle; in OF_instance_to_package() member
130 return args.phandle; in OF_instance_to_package()
158 OF_parent(int phandle) in OF_parent() argument
164 cell_t phandle; in OF_parent() member
171 args.phandle = HDL2CELL(phandle); in OF_parent()
184 cell_t phandle; in OF_getprop() member
194 args.phandle = HDL2CELL(handle); in OF_getprop()
211 cell_t phandle; in OF_setprop() member
[all …]
Dofdev.c367 cell_t units[4], phandle, myself, depth = 0, odepth = 0, cnt; in device_target_unit() local
395 phandle = OF_instance_to_package(ihandle); in device_target_unit()
396 OF_package_to_path(phandle, buf, sizeof(buf)); in device_target_unit()
401 "does not match %s\n", (uint32_t)phandle, buf, dev)); in device_target_unit()
403 0, 1, &phandle); in device_target_unit()
404 OF_package_to_path(phandle, buf, sizeof(buf)); in device_target_unit()
406 (uint32_t)phandle, buf)); in device_target_unit()
409 bi_unit.phandle = phandle; in device_target_unit()
410 bi_unit.parent = OF_parent(phandle); in device_target_unit()
417 bi_unit.phandle, bi_unit.parent, bi_unit.lun, bi_unit.target, in device_target_unit()
/netbsd/src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/
Dvchiq_netbsd_fdt.c87 const int phandle = faa->faa_phandle; in vchiq_fdt_attach() local
94 fsc->sc_phandle = phandle; in vchiq_fdt_attach()
104 if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) { in vchiq_fdt_attach()
127 const int phandle = fsc->sc_phandle; in vchiq_fdt_defer() local
132 if (!fdtbus_intr_str(phandle, 0, intrstr, sizeof(intrstr))) { in vchiq_fdt_defer()
137 sc->sc_ih = fdtbus_intr_establish_xname(phandle, 0, IPL_VM, in vchiq_fdt_defer()
Dvchiq_kern_lib.c225 VCHIQ_SERVICE_HANDLE_T *phandle) in vchiq_add_service() argument
235 *phandle = VCHIQ_SERVICE_HANDLE_INVALID; in vchiq_add_service()
249 *phandle = service->handle; in vchiq_add_service()
270 VCHIQ_SERVICE_HANDLE_T *phandle) in vchiq_open_service() argument
279 *phandle = VCHIQ_SERVICE_HANDLE_INVALID; in vchiq_open_service()
291 *phandle = service->handle; in vchiq_open_service()
296 *phandle = VCHIQ_SERVICE_HANDLE_INVALID; in vchiq_open_service()
/netbsd/src/sys/arch/shark/stand/ofwboot/
DLocore.c146 int phandle; in OF_finddevice() member
156 return args.phandle; in OF_finddevice()
167 int phandle; in OF_instance_to_package() member
177 return args.phandle; in OF_instance_to_package()
187 int phandle; in OF_getprop() member
198 args.phandle = handle; in OF_getprop()
215 int phandle; in OF_setprop() member
226 args.phandle = handle; in OF_setprop()
/netbsd/src/sys/arch/macppc/stand/ofwboot/
DLocore.c285 int phandle; in OF_finddevice() member
295 return args.phandle; in OF_finddevice()
306 int phandle; in OF_instance_to_package() member
316 return args.phandle; in OF_instance_to_package()
326 int phandle; in OF_getprop() member
337 args.phandle = handle; in OF_getprop()
354 int phandle; in OF_setprop() member
365 args.phandle = handle; in OF_setprop()
/netbsd/src/external/gpl3/gdb/dist/sim/common/
Dhw-handles.c33 struct hw *phandle; member
119 return current_map->phandle; in hw_handle_phandle2()
150 if (current_map->phandle == internal) in hw_handle_2phandle()
194 new_map->phandle = internal; in hw_handle_add_phandle()
231 if ((*current_map)->phandle == internal) in hw_handle_remove_phandle()
/netbsd/src/sys/arch/macppc/stand/bootxx/
Dbootxx.c164 int phandle; in OF_finddevice() member
174 return args.phandle; in OF_finddevice()
184 int phandle; in OF_getprop() member
195 args.phandle = handle; in OF_getprop()

123