/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-cells = <2>; [all …]
|
D | overlay_bad_phandle.dts | 8 // is applied. There is already a phandle value
|
D | testcases.dts | 15 #include "tests-phandle.dtsi"
|
/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 | 49 if (!of_pdt_prom_ops->pkg2path(dp->phandle, path, sizeof(path), &len)) { in of_pdt_build_full_name() 65 static struct property * __init of_pdt_build_one_prop(phandle node, char *prev, in of_pdt_build_one_prop() 112 static struct property * __init of_pdt_build_prop_list(phandle node) in of_pdt_build_prop_list() 130 static char * __init of_pdt_get_one_property(phandle node, const char *name) in of_pdt_get_one_property() 144 static struct device_node * __init of_pdt_create_node(phandle node, in of_pdt_create_node() 158 dp->phandle = node; in of_pdt_create_node() 170 phandle node) in of_pdt_build_tree() 200 void __init of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops) in of_pdt_build_devicetree() 209 of_pdt_prom_ops->getchild(of_root->phandle)); in of_pdt_build_devicetree()
|
D | dynamic.c | 206 const __be32 *phandle; in __of_attach_node() local 214 phandle = __of_get_property(np, "phandle", &sz); in __of_attach_node() 215 if (!phandle) in __of_attach_node() 216 phandle = __of_get_property(np, "linux,phandle", &sz); in __of_attach_node() 217 if (IS_ENABLED(CONFIG_PPC_PSERIES) && !phandle) in __of_attach_node() 218 phandle = __of_get_property(np, "ibm,phandle", &sz); in __of_attach_node() 219 if (phandle && (sz >= 4)) in __of_attach_node() 220 np->phandle = be32_to_cpup(phandle); in __of_attach_node() 222 np->phandle = 0; in __of_attach_node() 280 __of_phandle_cache_inv_entry(np->phandle); in __of_detach_node()
|
D | base.c | 143 static u32 of_phandle_cache_hash(phandle handle) in of_phandle_cache_hash() 151 void __of_phandle_cache_inv_entry(phandle handle) in __of_phandle_cache_inv_entry() 162 if (np && handle == np->phandle) in __of_phandle_cache_inv_entry() 181 if (np->phandle && !phandle_cache[of_phandle_cache_hash(np->phandle)]) in of_core_init() 182 phandle_cache[of_phandle_cache_hash(np->phandle)] = np; in of_core_init() 1196 struct device_node *of_find_node_by_phandle(phandle handle) in of_find_node_by_phandle() 1210 handle == phandle_cache[handle_hash]->phandle) in of_find_node_by_phandle() 1215 if (np->phandle == handle && in of_find_node_by_phandle() 1288 it->phandle = be32_to_cpup(it->cur++); in of_phandle_iterator_next() 1290 if (it->phandle) { in of_phandle_iterator_next() [all …]
|
D | of_reserved_mem.c | 266 rmem->phandle = of_read_number(prop, len/4); in fdt_init_reserved_mem() 298 if (!node->phandle) in __find_rmem() 302 if (reserved_mem[i].phandle == node->phandle) in __find_rmem()
|
D | overlay.c | 411 const __be32 *phandle; in add_changeset_node() local 434 phandle = __of_get_property(node, "phandle", &size); in add_changeset_node() 435 if (phandle && (size == 4)) in add_changeset_node() 436 tchild->phandle = be32_to_cpup(phandle); in add_changeset_node() 452 if (node->phandle && tchild->phandle) { in add_changeset_node()
|
D | property.c | 1400 struct device_node *phandle; in of_link_property() local 1413 while ((phandle = s->parse_prop(con_np, prop_name, i))) { in of_link_property() 1416 of_link_to_phandle(con_np, phandle); in of_link_property() 1417 of_node_put(phandle); in of_link_property()
|
/drivers/char/tpm/ |
D | tpm2-space.c | 227 u32 phandle; in tpm2_map_to_phandle() local 234 phandle = space->context_tbl[i]; in tpm2_map_to_phandle() 235 *((__be32 *)handle) = cpu_to_be32(phandle); in tpm2_map_to_phandle() 354 static u32 tpm2_map_to_vhandle(struct tpm_space *space, u32 phandle, bool alloc) in tpm2_map_to_vhandle() argument 361 space->context_tbl[i] = phandle; in tpm2_map_to_vhandle() 364 } else if (space->context_tbl[i] == phandle) in tpm2_map_to_vhandle() 379 u32 phandle; in tpm2_map_response_header() local 397 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]); in tpm2_map_response_header() 398 phandle_type = phandle & 0xFF000000; in tpm2_map_response_header() 402 vhandle = tpm2_map_to_vhandle(space, phandle, true); in tpm2_map_response_header() [all …]
|
/drivers/sbus/char/ |
D | openprom.c | 187 phandle ph; in opromnext() 189 BUILD_BUG_ON(sizeof(phandle) != sizeof(int)); in opromnext() 191 if (bufsize < sizeof(phandle)) in opromnext() 223 ph = dp->phandle; in opromnext() 227 op->oprom_size = sizeof(phandle); in opromnext() 247 *((int *)op->oprom_array) = dp->phandle; in oprompci2node() 260 phandle ph = 0; in oprompath2node() 264 ph = dp->phandle; in oprompath2node() 363 static struct device_node *get_node(phandle n, DATA *data) in get_node() 498 phandle nd; in opiocgetnext() [all …]
|
/drivers/net/wireless/mediatek/mt76/ |
D | eeprom.c | 20 phandle phandle; in mt76_get_of_eeprom() local 33 phandle = be32_to_cpup(list++); in mt76_get_of_eeprom() 34 if (!phandle) in mt76_get_of_eeprom() 37 np = of_find_node_by_phandle(phandle); in mt76_get_of_eeprom()
|
/drivers/clk/imx/ |
D | clk.c | 70 struct of_phandle_args phandle; in imx_obtain_fixed_clock_from_dt() local 78 phandle.np = of_find_node_by_path(path); in imx_obtain_fixed_clock_from_dt() 81 if (phandle.np) { in imx_obtain_fixed_clock_from_dt() 82 clk = of_clk_get_from_provider(&phandle); in imx_obtain_fixed_clock_from_dt() 83 of_node_put(phandle.np); in imx_obtain_fixed_clock_from_dt()
|
/drivers/iio/temperature/ |
D | ltc2983.c | 606 struct device_node *phandle; in ltc2983_thermocouple_new() local 654 phandle = of_parse_phandle(child, "adi,cold-junction-handle", 0); in ltc2983_thermocouple_new() 655 if (phandle) { in ltc2983_thermocouple_new() 658 ret = of_property_read_u32(phandle, "reg", in ltc2983_thermocouple_new() 666 of_node_put(phandle); in ltc2983_thermocouple_new() 679 of_node_put(phandle); in ltc2983_thermocouple_new() 688 of_node_put(phandle); in ltc2983_thermocouple_new() 699 struct device_node *phandle; in ltc2983_rtd_new() local 706 phandle = of_parse_phandle(child, "adi,rsense-handle", 0); in ltc2983_rtd_new() 707 if (!phandle) { in ltc2983_rtd_new() [all …]
|
/drivers/gpu/drm/bridge/ |
D | display-connector.c | 212 struct device_node *phandle; in display_connector_probe() local 214 phandle = of_parse_phandle(pdev->dev.of_node, "ddc-i2c-bus", 0); in display_connector_probe() 215 if (phandle) { in display_connector_probe() 216 conn->bridge.ddc = of_get_i2c_adapter_by_node(phandle); in display_connector_probe() 217 of_node_put(phandle); in display_connector_probe()
|
/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, phandle; in update_devicetree() local 205 phandle = *data++; in update_devicetree() 212 update_node(phandle, scope); in update_devicetree()
|
/drivers/pinctrl/ |
D | devicetree.c | 205 phandle phandle; in pinctrl_dt_to_map() local 250 phandle = be32_to_cpup(list++); in pinctrl_dt_to_map() 253 np_config = of_find_node_by_phandle(phandle); in pinctrl_dt_to_map()
|
/drivers/acpi/ |
D | pci_root.c | 269 acpi_handle phandle; in acpi_get_pci_dev() local 279 phandle = handle; in acpi_get_pci_dev() 280 while (!acpi_is_root_bridge(phandle)) { in acpi_get_pci_dev() 286 node->handle = phandle; in acpi_get_pci_dev() 289 status = acpi_get_parent(phandle, &phandle); in acpi_get_pci_dev() 294 root = acpi_pci_find_root(phandle); in acpi_get_pci_dev()
|
/drivers/gpu/drm/rcar-du/ |
D | rcar_du_of.c | 143 value[0] = cpu_to_be32(clk->np->phandle); in rcar_du_of_lvds_patch_one() 161 value[0] = cpu_to_be32(local->phandle); in rcar_du_of_lvds_patch_one() 162 value[1] = cpu_to_be32(remote->phandle); in rcar_du_of_lvds_patch_one()
|
/drivers/gpu/drm/sun4i/ |
D | sun4i_hdmi_enc.c | 232 struct device_node *phandle, *remote; in sun4i_hdmi_get_ddc() local 239 phandle = of_parse_phandle(remote, "ddc-i2c-bus", 0); in sun4i_hdmi_get_ddc() 241 if (!phandle) in sun4i_hdmi_get_ddc() 244 ddc = of_get_i2c_adapter_by_node(phandle); in sun4i_hdmi_get_ddc() 245 of_node_put(phandle); in sun4i_hdmi_get_ddc()
|
/drivers/acpi/numa/ |
D | srat.c | 493 acpi_handle phandle = h; in acpi_get_pxm() local 496 handle = phandle; in acpi_get_pxm() 500 status = acpi_get_parent(handle, &phandle); in acpi_get_pxm()
|
/drivers/video/backlight/ |
D | rave-sp-backlight.c | 63 if (!dev->of_node->phandle) in rave_sp_backlight_probe()
|
/drivers/usb/phy/ |
D | phy.c | 557 const char *phandle, u8 index) in devm_usb_get_phy_by_phandle() argument 567 node = of_parse_phandle(dev->of_node, phandle, index); in devm_usb_get_phy_by_phandle() 569 dev_dbg(dev, "failed to get %s phandle in %pOF node\n", phandle, in devm_usb_get_phy_by_phandle()
|
/drivers/gpu/drm/mediatek/ |
D | mtk_drm_drv.c | 461 struct device_node *phandle = dev->parent->of_node; in mtk_drm_probe() local 479 of_id = of_match_node(mtk_drm_of_ids, phandle); in mtk_drm_probe() 486 for_each_child_of_node(phandle->parent, node) { in mtk_drm_probe()
|