/drivers/of/ |
D | resolver.c | 28 static phandle live_tree_max_phandle(void) in live_tree_max_phandle() 31 phandle phandle; in live_tree_max_phandle() local 35 phandle = 0; in live_tree_max_phandle() 37 if (node->phandle != OF_PHANDLE_ILLEGAL && in live_tree_max_phandle() 38 node->phandle > phandle) in live_tree_max_phandle() 39 phandle = node->phandle; in live_tree_max_phandle() 43 return phandle; in live_tree_max_phandle() 51 phandle phandle; in adjust_overlay_phandles() local 54 if (overlay->phandle != 0 && overlay->phandle != OF_PHANDLE_ILLEGAL) in adjust_overlay_phandles() 55 overlay->phandle += phandle_delta; in adjust_overlay_phandles() [all …]
|
D | pdt.c | 70 if (of_pdt_prom_ops->pkg2path(dp->phandle, NULL, 0, &len)) in of_pdt_build_full_name() 74 if (of_pdt_prom_ops->pkg2path(dp->phandle, buf, len, &len)) in of_pdt_build_full_name() 90 static struct property * __init of_pdt_build_one_prop(phandle node, char *prev, in of_pdt_build_one_prop() 137 static struct property * __init of_pdt_build_prop_list(phandle node) in of_pdt_build_prop_list() 155 static char * __init of_pdt_get_one_property(phandle node, const char *name) in of_pdt_get_one_property() 169 static struct device_node * __init of_pdt_create_node(phandle node, in of_pdt_create_node() 184 dp->phandle = node; in of_pdt_create_node() 194 phandle node) in of_pdt_build_tree() 229 void __init of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops) in of_pdt_build_devicetree() 241 of_pdt_prom_ops->getchild(of_root->phandle)); in of_pdt_build_devicetree()
|
D | dynamic.c | 221 const __be32 *phandle; in __of_attach_node() local 227 phandle = __of_get_property(np, "phandle", &sz); in __of_attach_node() 228 if (!phandle) in __of_attach_node() 229 phandle = __of_get_property(np, "linux,phandle", &sz); in __of_attach_node() 230 if (IS_ENABLED(CONFIG_PPC_PSERIES) && !phandle) in __of_attach_node() 231 phandle = __of_get_property(np, "ibm,phandle", &sz); in __of_attach_node() 232 np->phandle = (phandle && (sz >= 4)) ? be32_to_cpup(phandle) : 0; in __of_attach_node()
|
D | of_reserved_mem.c | 277 rmem->phandle = of_read_number(prop, len/4); in fdt_init_reserved_mem() 291 if (!node->phandle) in __find_rmem() 295 if (reserved_mem[i].phandle == node->phandle) in __find_rmem()
|
D | of_pci.c | 344 u32 phandle = be32_to_cpup(map + 1); in of_pci_map_rid() local 358 phandle_node = of_find_node_by_phandle(phandle); in of_pci_map_rid()
|
D | base.c | 1127 struct device_node *of_find_node_by_phandle(phandle handle) in of_find_node_by_phandle() 1137 if (np->phandle == handle) in of_find_node_by_phandle() 1198 it->phandle = be32_to_cpup(it->cur++); in of_phandle_iterator_next() 1200 if (it->phandle) { in of_phandle_iterator_next() 1206 it->node = of_find_node_by_phandle(it->phandle); in of_phandle_iterator_next() 1289 if (!it.phandle) in __of_parse_phandle_with_args()
|
D | unittest.c | 290 num_to_str(phandle_str, sizeof(phandle_str), np->phandle); in of_unittest_printf() 322 if (!np->phandle) in of_unittest_check_phandles() 325 hash_for_each_possible(phandle_ht, nh, node, np->phandle) { in of_unittest_check_phandles() 326 if (nh->np->phandle == np->phandle) { in of_unittest_check_phandles() 328 np->phandle, nh->np, np); in of_unittest_check_phandles() 339 hash_add(phandle_ht, &nh->node, np->phandle); in of_unittest_check_phandles()
|
/drivers/of/unittest-data/ |
D | tests-phandle.dtsi | 12 phandle-tests { 14 #phandle-cells = <0>; 18 #phandle-cells = <1>; 22 #phandle-cells = <2>; 26 #phandle-cells = <3>; 30 phandle-list = <&provider1 1>, 37 phandle-list-names = "first", "second", "third"; 39 phandle-list-bad-phandle = <12345678 0 0>; 40 phandle-list-bad-args = <&provider2 1 0>,
|
D | testcases.dts | 13 #include "tests-phandle.dtsi" 20 * phandle fixup data - generated by dtc patches that aren't upstream. 21 * This data must be regenerated whenever phandle references are modified in 29 phandle-tests { 31 phandle-list = <0x00000000 0x00000008 34 phandle-list-bad-args = <0x00000000 0x0000000c>;
|
D | overlay_bad_phandle.dts | 13 // is applied. There is already a phandle value
|
/drivers/char/tpm/ |
D | tpm2-space.c | 231 u32 phandle; in tpm2_map_to_phandle() local 238 phandle = space->context_tbl[i]; in tpm2_map_to_phandle() 239 *((__be32 *)handle) = cpu_to_be32(phandle); in tpm2_map_to_phandle() 315 static u32 tpm2_map_to_vhandle(struct tpm_space *space, u32 phandle, bool alloc) in tpm2_map_to_vhandle() argument 322 space->context_tbl[i] = phandle; in tpm2_map_to_vhandle() 325 } else if (space->context_tbl[i] == phandle) in tpm2_map_to_vhandle() 340 u32 phandle; in tpm2_map_response_header() local 358 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]); in tpm2_map_response_header() 359 phandle_type = phandle & 0xFF000000; in tpm2_map_response_header() 363 vhandle = tpm2_map_to_vhandle(space, phandle, true); in tpm2_map_response_header() [all …]
|
/drivers/sbus/char/ |
D | openprom.c | 200 phandle ph; in opromnext() 202 BUILD_BUG_ON(sizeof(phandle) != sizeof(int)); in opromnext() 204 if (bufsize < sizeof(phandle)) in opromnext() 236 ph = dp->phandle; in opromnext() 240 op->oprom_size = sizeof(phandle); in opromnext() 259 *((int *)op->oprom_array) = dp->phandle; in oprompci2node() 272 phandle ph = 0; in oprompath2node() 276 ph = dp->phandle; in oprompath2node() 375 static struct device_node *get_node(phandle n, DATA *data) in get_node() 510 phandle nd; in opiocgetnext() [all …]
|
/drivers/clk/imx/ |
D | clk.c | 23 struct of_phandle_args phandle; in imx_obtain_fixed_clock_from_dt() local 31 phandle.np = of_find_node_by_path(path); in imx_obtain_fixed_clock_from_dt() 34 if (phandle.np) { in imx_obtain_fixed_clock_from_dt() 35 clk = of_clk_get_from_provider(&phandle); in imx_obtain_fixed_clock_from_dt() 36 of_node_put(phandle.np); in imx_obtain_fixed_clock_from_dt()
|
/drivers/staging/vc04_services/interface/vchiq_arm/ |
D | vchiq_kern_lib.c | 226 VCHIQ_SERVICE_HANDLE_T *phandle) in vchiq_add_service() argument 236 *phandle = VCHIQ_SERVICE_HANDLE_INVALID; in vchiq_add_service() 250 *phandle = service->handle; in vchiq_add_service() 271 VCHIQ_SERVICE_HANDLE_T *phandle) in vchiq_open_service() argument 280 *phandle = VCHIQ_SERVICE_HANDLE_INVALID; in vchiq_open_service() 292 *phandle = service->handle; in vchiq_open_service() 296 *phandle = VCHIQ_SERVICE_HANDLE_INVALID; in vchiq_open_service()
|
/drivers/gpu/drm/bridge/ |
D | dumb-vga-dac.c | 158 struct device_node *phandle, *remote; in dumb_vga_retrieve_ddc() local 165 phandle = of_parse_phandle(remote, "ddc-i2c-bus", 0); in dumb_vga_retrieve_ddc() 167 if (!phandle) in dumb_vga_retrieve_ddc() 170 ddc = of_get_i2c_adapter_by_node(phandle); in dumb_vga_retrieve_ddc() 171 of_node_put(phandle); in dumb_vga_retrieve_ddc()
|
/drivers/misc/cxl/ |
D | flash.c | 34 __be32 phandle; member 106 static int update_node(__be32 phandle, s32 scope) in update_node() argument 125 dn = of_find_node_by_phandle(be32_to_cpu(phandle)); in update_node() 132 upwa->phandle = phandle; in update_node() 178 __be32 *data, drc_index, phandle; in update_devicetree() local 205 phandle = *data++; in update_devicetree() 212 update_node(phandle, scope); in update_devicetree()
|
/drivers/pci/hotplug/ |
D | sgi_hotplug.c | 407 acpi_handle phandle; in enable_slot() local 412 phandle = acpi_device_handle(PCI_CONTROLLER(slot->pci_bus)->companion); in enable_slot() 414 if (acpi_bus_get_device(phandle, &pdevice)) { in enable_slot() 428 phandle, chandle, in enable_slot() 494 acpi_handle phandle; in disable_slot() local 500 phandle = acpi_device_handle(PCI_CONTROLLER(slot->pci_bus)->companion); in disable_slot() 511 phandle, chandle, in disable_slot()
|
D | acpiphp_ibm.c | 401 acpi_handle *phandle = (acpi_handle *)context; in ibm_find_acpi_device() local 418 *phandle = handle; in ibm_find_acpi_device()
|
/drivers/pinctrl/ |
D | devicetree.c | 213 phandle phandle; in pinctrl_dt_to_map() local 258 phandle = be32_to_cpup(list++); in pinctrl_dt_to_map() 261 np_config = of_find_node_by_phandle(phandle); in pinctrl_dt_to_map()
|
/drivers/acpi/ |
D | pci_root.c | 283 acpi_handle phandle; in acpi_get_pci_dev() local 293 phandle = handle; in acpi_get_pci_dev() 294 while (!acpi_is_root_bridge(phandle)) { in acpi_get_pci_dev() 300 node->handle = phandle; in acpi_get_pci_dev() 303 status = acpi_get_parent(phandle, &phandle); in acpi_get_pci_dev() 308 root = acpi_pci_find_root(phandle); in acpi_get_pci_dev()
|
D | numa.c | 484 acpi_handle phandle = h; in acpi_get_pxm() local 487 handle = phandle; in acpi_get_pxm() 491 status = acpi_get_parent(handle, &phandle); in acpi_get_pxm()
|
/drivers/remoteproc/ |
D | remoteproc_core.c | 1252 struct rproc *rproc_get_by_phandle(phandle phandle) in rproc_get_by_phandle() argument 1257 np = of_find_node_by_phandle(phandle); in rproc_get_by_phandle() 1282 struct rproc *rproc_get_by_phandle(phandle phandle) in rproc_get_by_phandle() argument
|
/drivers/usb/phy/ |
D | phy.c | 565 const char *phandle, u8 index) in devm_usb_get_phy_by_phandle() argument 575 node = of_parse_phandle(dev->of_node, phandle, index); in devm_usb_get_phy_by_phandle() 577 dev_dbg(dev, "failed to get %s phandle in %pOF node\n", phandle, in devm_usb_get_phy_by_phandle()
|
/drivers/mailbox/ |
D | omap-mailbox.c | 671 phandle phandle = sp->args[0]; in omap_mbox_of_xlate() local 680 node = of_find_node_by_phandle(phandle); in omap_mbox_of_xlate() 683 __func__, phandle); in omap_mbox_of_xlate()
|
/drivers/pci/ |
D | pci-acpi.c | 334 acpi_handle handle, phandle; in pci_get_hp_params() local 362 status = acpi_get_parent(handle, &phandle); in pci_get_hp_params() 365 handle = phandle; in pci_get_hp_params()
|