/drivers/usb/phy/ |
H A D | phy.c | 151 * devm_usb_get_phy_by_phandle - find the USB PHY by phandle 153 * @phandle - name of the property holding the phy phandle value 156 * Returns the phy driver associated with the given phandle value, 158 * -EPROBE_DEFER if there is a phandle to the phy, but the device is 166 const char *phandle, u8 index) 177 node = of_parse_phandle(dev->of_node, phandle, index); 179 dev_dbg(dev, "failed to get %s phandle in %s node\n", phandle, 165 devm_usb_get_phy_by_phandle(struct device *dev, const char *phandle, u8 index) argument
|
/drivers/sbus/char/ |
H A D | jsflash.c | 464 phandle node;
|
H A D | openprom.c | 200 phandle ph; 202 BUILD_BUG_ON(sizeof(phandle) != sizeof(int)); 204 if (bufsize < sizeof(phandle)) 236 ph = dp->phandle; 240 op->oprom_size = sizeof(phandle); 259 *((int *)op->oprom_array) = dp->phandle; 272 phandle ph = 0; 276 ph = dp->phandle; 375 static struct device_node *get_node(phandle n, DATA *data) 525 phandle n [all...] |
/drivers/net/ethernet/ibm/emac/ |
H A D | core.c | 2271 u32 phandle; member in struct:emac_depentry 2293 if (deps[i].phandle == 0) { 2301 deps[i].phandle = 0; 2309 deps[i].node = of_find_node_by_phandle(deps[i].phandle); 2358 deps[EMAC_DEP_MAL_IDX].phandle = dev->mal_ph; 2359 deps[EMAC_DEP_ZMII_IDX].phandle = dev->zmii_ph; 2360 deps[EMAC_DEP_RGMII_IDX].phandle = dev->rgmii_ph; 2362 deps[EMAC_DEP_TAH_IDX].phandle = dev->tah_ph; 2364 deps[EMAC_DEP_MDIO_IDX].phandle = dev->mdio_ph; 2366 deps[EMAC_DEP_PREV_IDX].phandle [all...] |
/drivers/of/ |
H A D | base.c | 1013 * of_find_node_by_phandle - Find a node given a phandle 1014 * @handle: phandle of the node to find 1019 struct device_node *of_find_node_by_phandle(phandle handle) 1029 if (np->phandle == handle) 1375 phandle phandle; local 1377 /* Retrieve the phandle list property */ 1389 * If phandle is 0, then it is an empty entry with no 1392 phandle = be32_to_cpup(list++); 1393 if (phandle) { [all...] |
H A D | dynamic.c | 105 const __be32 *phandle; local 111 phandle = __of_get_property(np, "phandle", &sz); 112 if (!phandle) 113 phandle = __of_get_property(np, "linux,phandle", &sz); 114 if (IS_ENABLED(PPC_PSERIES) && !phandle) 115 phandle = __of_get_property(np, "ibm,phandle", &sz); 116 np->phandle [all...] |
H A D | fdt.c | 259 * ePAPR-style "phandle" properties, or the 260 * legacy "linux,phandle" properties. If both 263 if ((strcmp(pname, "phandle") == 0) || 264 (strcmp(pname, "linux,phandle") == 0)) { 265 if (np->phandle == 0) 266 np->phandle = be32_to_cpup(p); 268 /* And we process the "ibm,phandle" property 271 if (strcmp(pname, "ibm,phandle") == 0) 272 np->phandle = be32_to_cpup(p);
|
H A D | of_reserved_mem.c | 213 prop = of_get_flat_dt_prop(node, "phandle", &len); 215 prop = of_get_flat_dt_prop(node, "linux,phandle", &len); 217 rmem->phandle = of_read_number(prop, len/4); 231 if (!node->phandle) 235 if (reserved_mem[i].phandle == node->phandle)
|
H A D | pdt.c | 71 if (of_pdt_prom_ops->pkg2path(dp->phandle, NULL, 0, &len)) 75 if (of_pdt_prom_ops->pkg2path(dp->phandle, buf, len, &len)) 91 static struct property * __init of_pdt_build_one_prop(phandle node, char *prev, 138 static struct property * __init of_pdt_build_prop_list(phandle node) 156 static char * __init of_pdt_get_one_property(phandle node, const char *name) 170 static struct device_node * __init of_pdt_create_node(phandle node, 185 dp->phandle = node; 195 phandle node, 235 void __init of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops) 250 of_pdt_prom_ops->getchild(of_allnodes->phandle), [all...] |
H A D | resolver.c | 22 /* illegal phandle value (set when unresolved) */ 51 * Find live tree's maximum phandle value. 53 static phandle of_get_tree_max_phandle(void) 56 phandle phandle; local 61 phandle = 0; 63 if (node->phandle != OF_PHANDLE_ILLEGAL && 64 node->phandle > phandle) 65 phandle 82 phandle phandle; local 116 phandle phandle; local 248 phandle phandle, phandle_delta; local [all...] |
H A D | selftest.c | 56 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); 57 selftest(np && !strcmp("/testcase-data/phandle-tests/consumer-a", np->full_name), 58 "find /testcase-data/phandle-tests/consumer-a failed\n"); 70 np = of_find_node_by_path("testcase-alias/phandle-tests/consumer-a"); 71 selftest(np && !strcmp("/testcase-data/phandle-tests/consumer-a", np->full_name), 72 "find testcase-alias/phandle-tests/consumer-a failed\n"); 210 if (!np->phandle) 213 hash_for_each_possible(phandle_ht, nh, node, np->phandle) { 214 if (nh->np->phandle == np->phandle) { [all...] |
/drivers/pci/hotplug/ |
H A D | acpiphp_ibm.c | 388 acpi_handle *phandle = (acpi_handle *)context; local 405 *phandle = handle;
|
H A D | sgi_hotplug.c | 407 acpi_handle phandle; local 412 phandle = acpi_device_handle(PCI_CONTROLLER(slot->pci_bus)->companion); 414 if (acpi_bus_get_device(phandle, &pdevice)) { 428 phandle, chandle, 494 acpi_handle phandle; local 500 phandle = acpi_device_handle(PCI_CONTROLLER(slot->pci_bus)->companion); 511 phandle, chandle,
|
/drivers/pci/ |
H A D | pci-acpi.c | 248 acpi_handle handle, phandle; local 273 status = acpi_get_parent(handle, &phandle); 276 handle = phandle;
|
/drivers/pinctrl/ |
H A D | devicetree.c | 184 phandle phandle; local 224 phandle = be32_to_cpup(list++); 227 np_config = of_find_node_by_phandle(phandle); 230 "prop %s index %i invalid phandle\n",
|
H A D | pinctrl-rockchip.c | 1113 const __be32 *phandle; local 1124 phandle = list++; 1125 if (!phandle) 1128 np_config = of_find_node_by_phandle(be32_to_cpup(phandle));
|
/drivers/gpu/drm/nouveau/core/core/ |
H A D | handle.c | 102 struct nouveau_handle **phandle) 149 *phandle = handle; 100 nouveau_handle_create(struct nouveau_object *parent, u32 _parent, u32 _handle, struct nouveau_object *object, struct nouveau_handle **phandle) argument
|
/drivers/acpi/ |
H A D | numa.c | 322 acpi_handle phandle = h; local 325 handle = phandle; 329 status = acpi_get_parent(handle, &phandle);
|
H A D | pci_root.c | 285 acpi_handle phandle; local 295 phandle = handle; 296 while (!acpi_is_root_bridge(phandle)) { 302 node->handle = phandle; 305 status = acpi_get_parent(phandle, &phandle); 310 root = acpi_pci_find_root(phandle);
|
H A D | scan.c | 1716 acpi_handle phandle; local 1722 if (ACPI_FAILURE(acpi_get_parent(handle, &phandle))) 1725 return acpi_ata_match(phandle);
|