Home
last modified time | relevance | path

Searched refs:phandle (Results 1 – 25 of 32) sorted by relevance

12

/arch/powerpc/boot/dtc-src/
Dlivetree.c263 struct node *get_node_by_phandle(struct node *tree, cell_t phandle) in get_node_by_phandle() argument
267 assert((phandle != 0) && (phandle != -1)); in get_node_by_phandle()
269 if (tree->phandle == phandle) in get_node_by_phandle()
273 node = get_node_by_phandle(child, phandle); in get_node_by_phandle()
291 static cell_t phandle = 1; /* FIXME: ick, static local */ in get_node_phandle() local
293 if ((node->phandle != 0) && (node->phandle != -1)) in get_node_phandle()
294 return node->phandle; in get_node_phandle()
298 while (get_node_by_phandle(root, phandle)) in get_node_phandle()
299 phandle++; in get_node_phandle()
301 node->phandle = phandle; in get_node_phandle()
[all …]
Dchecks.c286 cell_t phandle; in check_explicit_phandles() local
298 phandle = propval_cell(prop); in check_explicit_phandles()
299 if ((phandle == 0) || (phandle == -1)) { in check_explicit_phandles()
301 node->fullpath, phandle); in check_explicit_phandles()
305 other = get_node_by_phandle(root, phandle); in check_explicit_phandles()
308 node->fullpath, phandle, other->fullpath); in check_explicit_phandles()
312 node->phandle = phandle; in check_explicit_phandles()
355 cell_t phandle; in fixup_phandle_references() local
367 phandle = get_node_phandle(dt, refnode); in fixup_phandle_references()
368 *((cell_t *)(prop->val.val + m->offset)) = cpu_to_fdt32(phandle); in fixup_phandle_references()
Ddtc.h163 cell_t phandle; member
192 struct node *get_node_by_phandle(struct node *tree, cell_t phandle);
/arch/powerpc/boot/
Doflib.c106 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()
Dof.h4 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,
Dops.h39 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/
Dofw-shark.c190 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/boot/libfdt/
Dfdt_ro.c405 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) in fdt_node_offset_by_phandle() argument
407 if ((phandle == 0) || (phandle == -1)) in fdt_node_offset_by_phandle()
409 phandle = cpu_to_fdt32(phandle); in fdt_node_offset_by_phandle()
411 &phandle, sizeof(phandle)); in fdt_node_offset_by_phandle()
Dlibfdt.h596 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle);
/arch/sparc/kernel/
Dprom_common.c37 struct device_node *of_find_node_by_phandle(phandle handle) in of_find_node_by_phandle()
133 static struct property * __init build_one_prop(phandle node, char *prev, in build_one_prop()
188 static struct property * __init build_prop_list(phandle node) in build_prop_list()
206 static char * __init get_one_property(phandle node, const char *name) in get_one_property()
220 static struct device_node * __init prom_create_node(phandle node, in prom_create_node()
266 phandle node, in prom_build_tree()
Dprom_32.c177 phandle node; in of_console_init()
/arch/powerpc/kernel/
Dprom_init.c131 phandle chosen;
413 static int __init prom_next_node(phandle *nodep) in prom_next_node()
415 phandle node; in prom_next_node()
430 static int inline prom_getprop(phandle node, const char *pname, in prom_getprop()
437 static int inline prom_getproplen(phandle node, const char *pname) in prom_getproplen()
468 static int __init prom_setprop(phandle node, const char *nodename, in prom_setprop()
954 phandle node; in prom_init_mem()
1058 phandle rtas_node; in prom_instantiate_rtas()
1117 phandle node; in prom_initialize_tce_table()
1277 phandle node; in prom_hold_cpus()
[all …]
Dof_platform.c216 phandle *ph = data; in of_dev_phandle_match()
220 struct of_device *of_find_device_by_phandle(phandle ph) in of_find_device_by_phandle()
/arch/sparc/include/asm/
Dprom.h31 typedef u32 phandle; typedef
47 phandle node;
/arch/powerpc/include/asm/
Dprom.h75 typedef u32 phandle; typedef
88 phandle node;
89 phandle linux_phandle;
Dof_platform.h35 extern struct of_device *of_find_device_by_phandle(phandle ph);
Dbootx.h149 u32 phandle; /* not really available */ member
Dpmac_pfunc.h140 u32 phandle; member
217 u32 phandle, u32 flags, struct pmf_args *args);
/arch/powerpc/platforms/cell/
Dspu_manage.c451 const phandle *vic_handles; in neighbour_spu()
459 for (i=0; i < (lenp / sizeof(phandle)); i++) { in neighbour_spu()
471 phandle avoid_ph; in init_affinity_node()
472 const phandle *vic_handles; in init_affinity_node()
487 for (i = 0; i < (lenp / sizeof(phandle)); i++) { in init_affinity_node()
/arch/powerpc/boot/dts/
Dhcu4.dts46 linux,phandle = <0x1>;
63 linux,phandle = <0x2>;
85 linux,phandle = <0x3>;
/arch/powerpc/platforms/powermac/
Dpfunc_core.c654 func->phandle = data[0]; in pmf_add_function_prop()
663 count+1, func->flags, func->phandle, length); in pmf_add_function_prop()
845 if (func->phandle && target->node != func->phandle) in __pmf_find_function()
953 u32 phandle, u32 fflags, struct pmf_args *args) in pmf_do_functions() argument
970 if (phandle && func->phandle && phandle != func->phandle) in pmf_do_functions()
/arch/powerpc/sysdev/
Dmv64x60_udbg.c74 const phandle *ph; in mv64x60_udbg_init()
Dmv64x60_dev.c42 const phandle *ph; in mv64x60_mpsc_register_shared_pdev()
98 const phandle *ph; in mv64x60_mpsc_device_setup()
240 const phandle *ph; in mv64x60_eth_device_setup()
Dtsi108_dev.c80 const phandle *ph; in tsi108_eth_of_init()
/arch/powerpc/sysdev/qe_lib/
Dqe_io.c155 const phandle *ph; in par_io_of_config()

12