/linux-4.19.296/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-cells = <2>; 31 phandle-map = <0 1 &provider1 3>, 37 phandle-map-mask = <0xff 0xf>; 38 phandle-map-pass-thru = <0x0 0xf0>; 42 phandle-list = <&provider1 1>, [all …]
|
D | overlay_bad_phandle.dts | 8 // is applied. There is already a phandle value
|
D | testcases.dts | 15 #include "tests-phandle.dtsi"
|
/linux-4.19.296/drivers/of/ |
D | resolver.c | 22 static phandle live_tree_max_phandle(void) in live_tree_max_phandle() 25 phandle phandle; in live_tree_max_phandle() local 29 phandle = 0; in live_tree_max_phandle() 31 if (node->phandle != OF_PHANDLE_ILLEGAL && in live_tree_max_phandle() 32 node->phandle > phandle) in live_tree_max_phandle() 33 phandle = node->phandle; in live_tree_max_phandle() 37 return phandle; in live_tree_max_phandle() 45 phandle phandle; in adjust_overlay_phandles() local 48 if (overlay->phandle != 0 && overlay->phandle != OF_PHANDLE_ILLEGAL) in adjust_overlay_phandles() 49 overlay->phandle += phandle_delta; in adjust_overlay_phandles() [all …]
|
D | pdt.c | 66 if (of_pdt_prom_ops->pkg2path(dp->phandle, NULL, 0, &len)) in of_pdt_build_full_name() 70 if (of_pdt_prom_ops->pkg2path(dp->phandle, buf, len, &len)) in of_pdt_build_full_name() 86 static struct property * __init of_pdt_build_one_prop(phandle node, char *prev, in of_pdt_build_one_prop() 133 static struct property * __init of_pdt_build_prop_list(phandle node) in of_pdt_build_prop_list() 151 static char * __init of_pdt_get_one_property(phandle node, const char *name) in of_pdt_get_one_property() 165 static struct device_node * __init of_pdt_create_node(phandle node, in of_pdt_create_node() 180 dp->phandle = node; in of_pdt_create_node() 190 phandle node) in of_pdt_build_tree() 225 void __init of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops) in of_pdt_build_devicetree() 237 of_pdt_prom_ops->getchild(of_root->phandle)); in of_pdt_build_devicetree()
|
D | dynamic.c | 205 const __be32 *phandle; in __of_attach_node() local 216 phandle = __of_get_property(np, "phandle", &sz); in __of_attach_node() 217 if (!phandle) in __of_attach_node() 218 phandle = __of_get_property(np, "linux,phandle", &sz); in __of_attach_node() 219 if (IS_ENABLED(CONFIG_PPC_PSERIES) && !phandle) in __of_attach_node() 220 phandle = __of_get_property(np, "ibm,phandle", &sz); in __of_attach_node() 221 if (phandle && (sz >= 4)) in __of_attach_node() 222 np->phandle = be32_to_cpup(phandle); in __of_attach_node() 224 np->phandle = 0; in __of_attach_node() 282 __of_free_phandle_cache_entry(np->phandle); in __of_detach_node()
|
D | base.c | 167 void __of_free_phandle_cache_entry(phandle handle) in __of_free_phandle_cache_entry() 169 phandle masked_handle; in __of_free_phandle_cache_entry() 179 if (np && handle == np->phandle) { in __of_free_phandle_cache_entry() 198 if (np->phandle && np->phandle != OF_PHANDLE_ILLEGAL) in of_populate_phandle_cache() 213 if (np->phandle && np->phandle != OF_PHANDLE_ILLEGAL) { in of_populate_phandle_cache() 215 phandle_cache[np->phandle & phandle_cache_mask] = np; in of_populate_phandle_cache() 1177 struct device_node *of_find_node_by_phandle(phandle handle) in of_find_node_by_phandle() 1181 phandle masked_handle; in of_find_node_by_phandle() 1192 handle == phandle_cache[masked_handle]->phandle) in of_find_node_by_phandle() 1204 if (np->phandle == handle && in of_find_node_by_phandle() [all …]
|
D | of_reserved_mem.c | 282 rmem->phandle = of_read_number(prop, len/4); in fdt_init_reserved_mem() 296 if (!node->phandle) in __find_rmem() 300 if (reserved_mem[i].phandle == node->phandle) in __find_rmem()
|
D | overlay.c | 419 const __be32 *phandle; in add_changeset_node() local 445 phandle = __of_get_property(node, "phandle", &size); in add_changeset_node() 446 if (phandle && (size == 4)) in add_changeset_node() 447 tchild->phandle = be32_to_cpup(phandle); in add_changeset_node() 463 if (node->phandle && tchild->phandle) { in add_changeset_node()
|
D | of_private.h | 80 void __of_free_phandle_cache_entry(phandle handle);
|
D | unittest.c | 298 num_to_str(phandle_str, sizeof(phandle_str), np->phandle, 0); in of_unittest_printf() 330 if (!np->phandle) in of_unittest_check_phandles() 333 hash_for_each_possible(phandle_ht, nh, node, np->phandle) { in of_unittest_check_phandles() 334 if (nh->np->phandle == np->phandle) { in of_unittest_check_phandles() 336 np->phandle, nh->np, np); in of_unittest_check_phandles() 347 hash_add(phandle_ht, &nh->node, np->phandle); in of_unittest_check_phandles()
|
D | fdt.c | 226 if (!np->phandle) in populate_properties() 227 np->phandle = be32_to_cpup(val); in populate_properties() 235 np->phandle = be32_to_cpup(val); in populate_properties()
|
/linux-4.19.296/include/linux/ |
D | of_pdt.h | 18 int (*nextprop)(phandle node, char *prev, char *buf); 21 int (*getproplen)(phandle node, const char *prop); 22 int (*getproperty)(phandle node, const char *prop, char *buf, 26 phandle (*getchild)(phandle parent); 27 phandle (*getsibling)(phandle node); 30 int (*pkg2path)(phandle node, char *buf, const int buflen, int *len); 36 extern void of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops);
|
D | remoteproc.h | 545 struct rproc *rproc_get_by_phandle(phandle phandle);
|
D | of.h | 28 typedef u32 phandle; typedef 54 phandle phandle; member 95 phandle phandle; member 293 extern struct device_node *of_find_node_by_phandle(phandle handle); 620 static inline struct device_node *of_find_node_by_phandle(phandle handle) in of_find_node_by_phandle()
|
D | of_reserved_mem.h | 13 unsigned long phandle; member
|
/linux-4.19.296/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()
|
/linux-4.19.296/drivers/char/tpm/ |
D | tpm2-space.c | 232 u32 phandle; in tpm2_map_to_phandle() local 239 phandle = space->context_tbl[i]; in tpm2_map_to_phandle() 240 *((__be32 *)handle) = cpu_to_be32(phandle); in tpm2_map_to_phandle() 318 static u32 tpm2_map_to_vhandle(struct tpm_space *space, u32 phandle, bool alloc) in tpm2_map_to_vhandle() argument 325 space->context_tbl[i] = phandle; in tpm2_map_to_vhandle() 328 } else if (space->context_tbl[i] == phandle) in tpm2_map_to_vhandle() 343 u32 phandle; in tpm2_map_response_header() local 361 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]); in tpm2_map_response_header() 362 phandle_type = phandle & 0xFF000000; in tpm2_map_response_header() 366 vhandle = tpm2_map_to_vhandle(space, phandle, true); in tpm2_map_response_header() [all …]
|
/linux-4.19.296/include/xen/ |
D | acpi.h | 65 acpi_handle phandle = h; in xen_acpi_get_pxm() local 68 handle = phandle; in xen_acpi_get_pxm() 72 status = acpi_get_parent(handle, &phandle); in xen_acpi_get_pxm()
|
/linux-4.19.296/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()
|
/linux-4.19.296/drivers/pci/hotplug/ |
D | sgi_hotplug.c | 404 acpi_handle phandle; in enable_slot() local 409 phandle = acpi_device_handle(PCI_CONTROLLER(slot->pci_bus)->companion); in enable_slot() 411 if (acpi_bus_get_device(phandle, &pdevice)) { in enable_slot() 425 phandle, chandle, in enable_slot() 491 acpi_handle phandle; in disable_slot() local 497 phandle = acpi_device_handle(PCI_CONTROLLER(slot->pci_bus)->companion); in disable_slot() 508 phandle, chandle, in disable_slot()
|
D | acpiphp_ibm.c | 387 acpi_handle *phandle = (acpi_handle *)context; in ibm_find_acpi_device() local 407 *phandle = handle; in ibm_find_acpi_device()
|
/linux-4.19.296/include/linux/usb/ |
D | phy.h | 222 const char *phandle, u8 index); 247 const char *phandle, u8 index) in devm_usb_get_phy_by_phandle() argument
|
/linux-4.19.296/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()
|
D | of.c | 417 u32 phandle = be32_to_cpup(map + 1); in of_pci_map_rid() local 431 phandle_node = of_find_node_by_phandle(phandle); in of_pci_map_rid()
|