/arch/sparc/include/asm/ |
D | oplib_32.h | 33 extern phandle prom_root_node; 122 extern phandle prom_getchild(phandle parent_node); 127 extern phandle prom_getsibling(phandle node); 132 extern int prom_getproplen(phandle thisnode, const char *property); 137 extern int __must_check prom_getproperty(phandle thisnode, const char *property, 141 extern int prom_getint(phandle node, char *property); 144 extern int prom_getintdefault(phandle node, char *property, int defval); 147 extern int prom_getbool(phandle node, char *prop); 150 extern void prom_getstring(phandle node, char *prop, char *buf, int bufsize); 155 extern phandle prom_searchsiblings(phandle node_start, char *name); [all …]
|
D | oplib_64.h | 19 extern phandle prom_root_node; 27 extern phandle prom_chosen_node; 181 extern phandle prom_getchild(phandle parent_node); 186 extern phandle prom_getsibling(phandle node); 191 extern int prom_getproplen(phandle thisnode, const char *property); 196 extern int prom_getproperty(phandle thisnode, const char *property, 200 extern int prom_getint(phandle node, const char *property); 203 extern int prom_getintdefault(phandle node, const char *property, int defval); 206 extern int prom_getbool(phandle node, const char *prop); 209 extern void prom_getstring(phandle node, const char *prop, char *buf, [all …]
|
D | openprom.h | 31 phandle (*v2_inst2pkg)(int d); /* Convert ihandle to phandle */ 173 phandle (*no_nextnode)(phandle node); 174 phandle (*no_child)(phandle node); 175 int (*no_proplen)(phandle node, const char *name); 176 int (*no_getprop)(phandle node, const char *name, char *val); 177 int (*no_setprop)(phandle node, const char *name, char *val, int len); 178 char * (*no_nextprop)(phandle node, char *name);
|
/arch/sparc/prom/ |
D | tree_64.c | 19 static phandle prom_node_to_node(const char *type, phandle node) in prom_node_to_node() 31 return (phandle) args[4]; in prom_node_to_node() 37 inline phandle __prom_getchild(phandle node) in __prom_getchild() 42 inline phandle prom_getchild(phandle node) in prom_getchild() 44 phandle cnode; in prom_getchild() 55 inline phandle prom_getparent(phandle node) in prom_getparent() 57 phandle cnode; in prom_getparent() 70 inline phandle __prom_getsibling(phandle node) in __prom_getsibling() 75 inline phandle prom_getsibling(phandle node) in prom_getsibling() 77 phandle sibnode; in prom_getsibling() [all …]
|
D | tree_32.c | 23 static phandle __prom_getchild(phandle node) in __prom_getchild() 26 phandle cnode; in __prom_getchild() 39 phandle prom_getchild(phandle node) in prom_getchild() 41 phandle cnode; in prom_getchild() 55 static phandle __prom_getsibling(phandle node) in __prom_getsibling() 58 phandle cnode; in __prom_getsibling() 71 phandle prom_getsibling(phandle node) in prom_getsibling() 73 phandle sibnode; in prom_getsibling() 89 int prom_getproplen(phandle node, const char *prop) in prom_getproplen() 109 int prom_getproperty(phandle node, const char *prop, char *buffer, int bufsize) in prom_getproperty() [all …]
|
D | init_64.c | 22 phandle prom_chosen_node; 33 phandle node; in prom_init()
|
D | ranges.c | 70 phandle node, obio_node; in prom_ranges_init() 91 void prom_apply_generic_ranges(phandle node, phandle parent, in prom_apply_generic_ranges()
|
D | init_32.c | 23 phandle prom_root_node;
|
/arch/arm/boot/dts/testcases/ |
D | tests-phandle.dtsi | 4 phandle-tests { 6 #phandle-cells = <0>; 10 #phandle-cells = <1>; 14 #phandle-cells = <2>; 18 #phandle-cells = <3>; 22 phandle-list = <&provider1 1>, 29 phandle-list-names = "first", "second", "third"; 31 phandle-list-bad-phandle = <12345678 0 0>; 32 phandle-list-bad-args = <&provider2 1 0>,
|
D | tests.dtsi | 1 /include/ "tests-phandle.dtsi"
|
/arch/sparc/kernel/ |
D | devices.c | 33 static int check_cpu_node(phandle nd, int *cur_inst, in check_cpu_node() 34 int (*compare)(phandle, int, void *), void *compare_arg, in check_cpu_node() argument 35 phandle *prom_node, int *mid) in check_cpu_node() 53 static int __cpu_find_by(int (*compare)(phandle, int, void *), in __cpu_find_by() argument 54 void *compare_arg, phandle *prom_node, int *mid) in __cpu_find_by() 61 int err = check_cpu_node(dp->phandle, &cur_inst, in __cpu_find_by() 73 static int cpu_instance_compare(phandle nd, int instance, void *_arg) in cpu_instance_compare() 82 int cpu_find_by_instance(int instance, phandle *prom_node, int *mid) in cpu_find_by_instance() 88 static int cpu_mid_compare(phandle nd, int instance, void *_arg) in cpu_mid_compare() 100 int cpu_find_by_mid(int mid, phandle *prom_node) in cpu_find_by_mid() [all …]
|
D | prom_common.c | 77 ret = prom_setprop(dp->phandle, name, val, len); in of_set_property() 136 static int __init prom_common_nextprop(phandle node, char *prev, char *buf) in prom_common_nextprop()
|
D | auxio_32.c | 28 phandle node, auxio_nd; in auxio_probe() 118 phandle node; in auxio_power_probe()
|
D | tadpole.c | 103 phandle node, clk_nd; in clock_stop_probe()
|
/arch/x86/platform/olpc/ |
D | olpc_dt.c | 27 static phandle __init olpc_dt_getsibling(phandle node) in olpc_dt_getsibling() 41 static phandle __init olpc_dt_getchild(phandle node) in olpc_dt_getchild() 57 static int __init olpc_dt_getproplen(phandle node, const char *prop) in olpc_dt_getproplen() 74 static int __init olpc_dt_getproperty(phandle node, const char *prop, in olpc_dt_getproperty() 95 static int __init olpc_dt_nextprop(phandle node, char *prev, char *buf) in olpc_dt_nextprop() 112 static int __init olpc_dt_pkg2path(phandle node, char *buf, in olpc_dt_pkg2path() 168 static phandle __init olpc_dt_finddevice(const char *path) in olpc_dt_finddevice() 170 phandle node; in olpc_dt_finddevice() 205 phandle node; in olpc_dt_get_board_revision() 225 phandle node; in olpc_dt_fixup() [all …]
|
/arch/powerpc/boot/ |
D | oflib.c | 106 static phandle memory; 110 phandle oprom, chosen; in check_of_version() 114 if (oprom == (phandle) -1) in check_of_version() 124 if (chosen == (phandle) -1) { in check_of_version() 126 if (chosen == (phandle) -1) { in check_of_version() 200 return (phandle) of_call_prom("finddevice", 1, 1, name); in of_finddevice() 203 int of_getprop(const void *phandle, const char *name, void *buf, in of_getprop() argument 206 return of_call_prom("getprop", 4, 1, phandle, name, buf, buflen); in of_getprop() 209 int of_setprop(const void *phandle, const char *name, const void *buf, in of_setprop() argument 212 return of_call_prom("setprop", 4, 1, phandle, name, buf, buflen); in of_setprop()
|
D | of.h | 4 typedef void *phandle; typedef 13 int of_getprop(const void *phandle, const char *name, void *buf, 15 int of_setprop(const void *phandle, const char *name, const void *buf,
|
D | ops.h | 39 int (*getprop)(const void *phandle, const char *name, void *buf, 41 int (*setprop)(const void *phandle, const char *name, 43 int (*del_node)(const void *phandle); 44 void *(*get_parent)(const void *phandle); 53 char *(*get_path)(const void *phandle, char *buf, int len); 209 static inline char *get_path(const void *phandle, char *buf, int len) in get_path() argument 212 return dt_ops.get_path(phandle, buf, len); in get_path()
|
/arch/arm/boot/compressed/ |
D | ofw-shark.c | 190 int phandle,i,mem_len,buffer[32]; in ofw_init() local 202 phandle=OF_finddevice(o,temp); in ofw_init() 209 mem_len = OF_getproplen(o,phandle, temp); in ofw_init() 210 OF_getprop(o,phandle, temp, buffer, mem_len); in ofw_init() 224 phandle=OF_finddevice(o,temp); in ofw_init() 236 mem_len = OF_getproplen(o,phandle, temp); in ofw_init() 237 OF_getprop(o,phandle, temp, buffer, mem_len); in ofw_init() 244 phandle=OF_finddevice(o,temp); in ofw_init() 257 mem_len = OF_getproplen(o,phandle, temp); in ofw_init() 258 OF_getprop(o,phandle, temp, buffer, mem_len); in ofw_init()
|
/arch/powerpc/platforms/pseries/ |
D | mobility.c | 27 u32 phandle; member 54 static int delete_dt_node(u32 phandle) in delete_dt_node() argument 58 dn = of_find_node_by_phandle(phandle); in delete_dt_node() 132 static int update_dt_node(u32 phandle) in update_dt_node() argument 150 dn = of_find_node_by_phandle(phandle); in update_dt_node() 157 upwa->phandle = phandle; in update_dt_node() 257 u32 phandle = *data++; in pseries_devicetree_update() local 262 delete_dt_node(phandle); in pseries_devicetree_update() 265 update_dt_node(phandle); in pseries_devicetree_update() 269 add_dt_node(phandle, drc_index); in pseries_devicetree_update()
|
/arch/powerpc/sysdev/ |
D | fsl_msi.h | 42 phandle phandle; member
|
D | fsl_msi.c | 155 phandle phandle = 0; in fsl_setup_msi_irqs() local 170 phandle = np->phandle; in fsl_setup_msi_irqs() 174 hose->dn->full_name, np->phandle); in fsl_setup_msi_irqs() 193 if (phandle && (phandle != msi_data->phandle)) in fsl_setup_msi_irqs() 428 msi->phandle = dev->dev.of_node->phandle; in fsl_of_msi_probe()
|
/arch/powerpc/platforms/cell/ |
D | spu_manage.c | 450 const phandle *vic_handles; in neighbour_spu() 458 for (i=0; i < (lenp / sizeof(phandle)); i++) { in neighbour_spu() 459 if (vic_handles[i] == target->phandle) in neighbour_spu() 470 phandle avoid_ph; in init_affinity_node() 471 const phandle *vic_handles; in init_affinity_node() 486 for (i = 0; i < (lenp / sizeof(phandle)); i++) { in init_affinity_node() 501 avoid_ph = last_spu_dn->phandle; in init_affinity_node() 516 avoid_ph = vic_dn->phandle; in init_affinity_node()
|
/arch/powerpc/kernel/ |
D | prom_init.c | 120 phandle chosen; 457 static int __init prom_next_node(phandle *nodep) in prom_next_node() 459 phandle node; in prom_next_node() 474 static int inline prom_getprop(phandle node, const char *pname, in prom_getprop() 481 static int inline prom_getproplen(phandle node, const char *pname) in prom_getproplen() 512 static int __init prom_setprop(phandle node, const char *nodename, in prom_setprop() 865 phandle node; in prom_count_smt_threads() 1150 phandle node; in prom_init_mem() 1365 phandle node; in prom_opal_hold_cpus() 1486 phandle opal_node; in prom_instantiate_opal() [all …]
|
/arch/powerpc/platforms/powermac/ |
D | pfunc_core.c | 655 func->phandle = data[0]; in pmf_add_function_prop() 664 count+1, func->flags, func->phandle, length); in pmf_add_function_prop() 848 if (func->phandle && target->phandle != func->phandle) in __pmf_find_function() 957 u32 phandle, u32 fflags, struct pmf_args *args) in pmf_do_functions() argument 974 if (phandle && func->phandle && phandle != func->phandle) in pmf_do_functions()
|