Home | History | Annotate | Download | only in fdt

Lines Matching refs:phandle

82  * return the phandle of the interrupt controller for this node, or the phandle
87 fdtbus_get_interrupt_parent(int phandle)
89 int iparent = phandle;
97 if (phandle != iparent && of_hasprop(iparent, "interrupt-controller"))
110 if (phandle != iparent && of_hasprop(iparent, "interrupt-map"))
123 fdtbus_get_interrupt_controller(int phandle)
127 if (ic->ic_phandle == phandle)
134 fdtbus_register_interrupt_controller(device_t dev, int phandle,
141 ic->ic_phandle = phandle;
181 fdtbus_intr_parent(int phandle)
183 return fdtbus_get_interrupt_parent(phandle);
187 fdtbus_intr_establish(int phandle, u_int index, int ipl, int flags,
190 return fdtbus_intr_establish_xname(phandle, index, ipl, flags,
195 fdtbus_intr_establish_xname(int phandle, u_int index, int ipl, int flags,
201 specifier = get_specifier_by_index(phandle, index, &ihandle);
210 fdtbus_intr_establish_byname(int phandle, const char *name, int ipl,
216 err = fdtbus_get_index(phandle, "interrupt-names", name, &index);
220 return fdtbus_intr_establish_xname(phandle, index, ipl, flags, func,
267 fdtbus_intr_disestablish(int phandle, void *cookie)
296 fdtbus_intr_mask(int phandle, void *cookie)
316 fdtbus_intr_unmask(int phandle, void *cookie)
336 fdtbus_intr_str(int phandle, u_int index, char *buf, size_t buflen)
341 specifier = get_specifier_by_index(phandle, index, &ihandle);
361 find_address_cells(int phandle)
365 if (of_getprop_uint32(phandle, "#address-cells", &cells) != 0)
372 find_interrupt_cells(int phandle)
376 while (phandle > 0) {
377 if (of_getprop_uint32(phandle, "#interrupt-cells", &cells) == 0)
379 phandle = OF_parent(phandle);
385 get_specifier_from_map(int phandle, const u_int *interrupt_spec, int *piphandle)
390 const u_int *data = fdtbus_get_prop(phandle, "interrupt-map", &len);
396 const int cua_cells = find_address_cells(phandle);
398 const int cis_cells = find_interrupt_cells(phandle);
404 /* Offset (in cells) from map entry to interrupt parent phandle */
411 /* Interrupt parent phandle */
455 get_specifier_from_extended(int phandle, int pindex, int *piphandle)
460 if (fdtbus_get_phandle_with_data(phandle, "interrupts-extended",
462 *piphandle = data.phandle;
470 get_specifier_by_index(int phandle, int pindex, int *piphandle)
475 if (of_hasprop(phandle, "interrupts-extended"))
476 return get_specifier_from_extended(phandle, pindex, piphandle);
478 interrupt_parent = fdtbus_get_interrupt_parent(phandle);
482 node_specifier = fdtbus_get_prop(phandle, "interrupts", &len);