/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_common.dtsi | 14 #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() 282 __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() 1244 struct device_node *of_find_node_by_phandle(phandle handle) in of_find_node_by_phandle() 1258 handle == phandle_cache[handle_hash]->phandle) in of_find_node_by_phandle() 1263 if (np->phandle == handle && in of_find_node_by_phandle() 1336 it->phandle = be32_to_cpup(it->cur++); in of_phandle_iterator_next() 1338 if (it->phandle) { in of_phandle_iterator_next() [all …]
|
D | of_reserved_mem.c | 273 rmem->phandle = of_read_number(prop, len/4); in fdt_init_reserved_mem() 307 if (!node->phandle) in __find_rmem() 311 if (reserved_mem[i].phandle == node->phandle) in __find_rmem()
|
D | overlay.c | 409 const __be32 *phandle; in add_changeset_node() local 432 phandle = __of_get_property(node, "phandle", &size); in add_changeset_node() 433 if (phandle && (size == 4)) in add_changeset_node() 434 tchild->phandle = be32_to_cpup(phandle); in add_changeset_node() 450 if (node->phandle && tchild->phandle) { in add_changeset_node()
|
/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/clk/imx/ |
D | clk.c | 73 struct of_phandle_args phandle; in imx_obtain_fixed_clock_from_dt() local 81 phandle.np = of_find_node_by_path(path); in imx_obtain_fixed_clock_from_dt() 84 if (phandle.np) { in imx_obtain_fixed_clock_from_dt() 85 clk = of_clk_get_from_provider(&phandle); in imx_obtain_fixed_clock_from_dt() 86 of_node_put(phandle.np); in imx_obtain_fixed_clock_from_dt()
|
/drivers/misc/cxl/ |
D | flash.c | 35 __be32 phandle; member 107 static int update_node(__be32 phandle, s32 scope) in update_node() argument 126 dn = of_find_node_by_phandle(be32_to_cpu(phandle)); in update_node() 133 upwa->phandle = phandle; in update_node() 179 __be32 *data, phandle; in update_devicetree() local 206 phandle = *data++; in update_devicetree() 213 update_node(phandle, scope); in update_devicetree()
|
/drivers/gpu/drm/bridge/ |
D | display-connector.c | 304 struct device_node *phandle; in display_connector_probe() local 306 phandle = of_parse_phandle(pdev->dev.of_node, "ddc-i2c-bus", 0); in display_connector_probe() 307 if (phandle) { in display_connector_probe() 308 conn->bridge.ddc = of_get_i2c_adapter_by_node(phandle); in display_connector_probe() 309 of_node_put(phandle); in display_connector_probe()
|
/drivers/net/wireless/mediatek/mt76/ |
D | eeprom.c | 20 phandle phandle; in mt76_get_of_eeprom() local 42 phandle = be32_to_cpup(list++); in mt76_get_of_eeprom() 43 if (!phandle) in mt76_get_of_eeprom() 46 np = of_find_node_by_phandle(phandle); in mt76_get_of_eeprom()
|
/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/iommu/ |
D | of_iommu.c | 252 u32 phandle; in of_iommu_get_resv_regions() local 254 phandle = be32_to_cpup(maps++); in of_iommu_get_resv_regions() 255 np = of_find_node_by_phandle(phandle); in of_iommu_get_resv_regions()
|
/drivers/gpu/drm/sun4i/ |
D | sun4i_hdmi_enc.c | 233 struct device_node *phandle, *remote; in sun4i_hdmi_get_ddc() local 240 phandle = of_parse_phandle(remote, "ddc-i2c-bus", 0); in sun4i_hdmi_get_ddc() 242 if (!phandle) in sun4i_hdmi_get_ddc() 245 ddc = of_get_i2c_adapter_by_node(phandle); in sun4i_hdmi_get_ddc() 246 of_node_put(phandle); in sun4i_hdmi_get_ddc()
|
/drivers/acpi/numa/ |
D | srat.c | 555 acpi_handle phandle = h; in acpi_get_pxm() local 558 handle = phandle; in acpi_get_pxm() 562 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 | 595 const char *phandle, u8 index) in devm_usb_get_phy_by_phandle() argument 605 node = of_parse_phandle(dev->of_node, phandle, index); in devm_usb_get_phy_by_phandle() 607 dev_dbg(dev, "failed to get %s phandle in %pOF node\n", phandle, in devm_usb_get_phy_by_phandle()
|
/drivers/staging/vc04_services/interface/vchiq_arm/ |
D | vchiq_arm.c | 779 unsigned int *phandle) in vchiq_add_service() argument 786 *phandle = VCHIQ_SERVICE_HANDLE_INVALID; in vchiq_add_service() 795 *phandle = service->handle; in vchiq_add_service() 809 unsigned int *phandle) in vchiq_open_service() argument 815 *phandle = VCHIQ_SERVICE_HANDLE_INVALID; in vchiq_open_service() 823 *phandle = service->handle; in vchiq_open_service() 827 *phandle = VCHIQ_SERVICE_HANDLE_INVALID; in vchiq_open_service()
|
/drivers/gpu/drm/mediatek/ |
D | mtk_drm_drv.c | 696 struct device_node *phandle = dev->parent->of_node; in mtk_drm_probe() local 715 of_id = of_match_node(mtk_drm_of_ids, phandle); in mtk_drm_probe() 734 for_each_child_of_node(phandle->parent, node) { in mtk_drm_probe()
|
/drivers/pci/hotplug/ |
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()
|
/drivers/mailbox/ |
D | omap-mailbox.c | 679 phandle phandle = sp->args[0]; in omap_mbox_of_xlate() local 688 node = of_find_node_by_phandle(phandle); in omap_mbox_of_xlate() 691 __func__, phandle); in omap_mbox_of_xlate()
|