Lines Matching defs:path

121 	np = of_find_node_by_path("/testcase-data/missing-path");
122 unittest(!np, "non-existent path returned node %pOF\n", np);
129 np = of_find_node_by_path("testcase-alias/missing-path");
130 unittest(!np, "non-existent alias with relative path returned node %pOF\n", np);
135 "option path test failed\n");
140 "option path test, subcase #1 failed\n");
145 "option path test, subcase #2 failed\n");
149 unittest(np, "NULL option path test failed\n");
155 "option alias path test failed\n");
161 "option alias path test, subcase #1 failed\n");
165 unittest(np, "NULL option alias path test failed\n");
949 static void __init of_unittest_dma_ranges_one(const char *path,
957 np = of_find_node_by_path(path);
1382 const char *path;
1385 { .path = "/testcase-data/match-node/name0", .data = "A", },
1386 { .path = "/testcase-data/match-node/name1", .data = "B", },
1387 { .path = "/testcase-data/match-node/a/name2", .data = "Ca", },
1388 { .path = "/testcase-data/match-node/b/name2", .data = "Cb", },
1389 { .path = "/testcase-data/match-node/c/name2", .data = "Cc", },
1390 { .path = "/testcase-data/match-node/name3", .data = "E", },
1391 { .path = "/testcase-data/match-node/name4", .data = "G", },
1392 { .path = "/testcase-data/match-node/name5", .data = "H", },
1393 { .path = "/testcase-data/match-node/name6", .data = "G", },
1394 { .path = "/testcase-data/match-node/name7", .data = "I", },
1395 { .path = "/testcase-data/match-node/name8", .data = "J", },
1396 { .path = "/testcase-data/match-node/name9", .data = "K", },
1406 np = of_find_node_by_path(match_node_tests[i].path);
1409 match_node_tests[i].path);
1416 match_node_tests[i].path);
1422 match_node_tests[i].path, match_node_tests[i].data,
1752 /* get the platform device instantiated at the path */
1753 static struct platform_device *of_path_to_platform_device(const char *path)
1758 np = of_find_node_by_path(path);
1768 /* find out if a platform device exists at that path */
1769 static int of_path_platform_device_exists(const char *path)
1773 pdev = of_path_to_platform_device(path);
1988 /* get the i2c client device instantiated at the path */
1989 static struct i2c_client *of_path_to_i2c_client(const char *path)
1994 np = of_find_node_by_path(path);
2004 /* find out if a i2c client device exists at that path */
2005 static int of_path_i2c_client_exists(const char *path)
2009 client = of_path_to_i2c_client(path);
2015 static int of_path_i2c_client_exists(const char *path)
2026 static int of_path_device_type_exists(const char *path,
2031 return of_path_platform_device_exists(path);
2033 return of_path_i2c_client_exists(path);
2061 const char *path;
2063 path = unittest_path(unittest_nr, ovtype);
2067 return of_path_platform_device_exists(path);
2069 return of_path_i2c_client_exists(path);
3924 char *path = NULL;
3934 path = kasprintf(GFP_KERNEL, "%pOF/pci-ep-bus@0/unittest-pci@100", pnp);
3935 np = of_find_node_by_path(path);
3947 path = kasprintf(GFP_KERNEL, "%pOF/pci-ep-bus@0", pnp);
3948 np = of_find_node_by_path(path);
3955 kfree(path);