Lines Matching refs:devp
51 #define devp_offset_find(devp) (((int)(devp))-1) argument
52 #define devp_offset(devp) (devp ? ((int)(devp))-1 : 0) argument
81 static int fdt_wrapper_getprop(const void *devp, const char *name, in fdt_wrapper_getprop() argument
87 p = fdt_getprop(fdt, devp_offset(devp), name, &len); in fdt_wrapper_getprop()
94 static int fdt_wrapper_setprop(const void *devp, const char *name, in fdt_wrapper_setprop() argument
99 rc = fdt_setprop(fdt, devp_offset(devp), name, buf, len); in fdt_wrapper_setprop()
102 rc = fdt_setprop(fdt, devp_offset(devp), name, buf, len); in fdt_wrapper_setprop()
108 static int fdt_wrapper_del_node(const void *devp) in fdt_wrapper_del_node() argument
110 return fdt_del_node(fdt, devp_offset(devp)); in fdt_wrapper_del_node()
113 static void *fdt_wrapper_get_parent(const void *devp) in fdt_wrapper_get_parent() argument
115 return offset_devp(fdt_parent_offset(fdt, devp_offset(devp))); in fdt_wrapper_get_parent()
118 static void *fdt_wrapper_create_node(const void *devp, const char *name) in fdt_wrapper_create_node() argument
122 offset = fdt_add_subnode(fdt, devp_offset(devp), name); in fdt_wrapper_create_node()
125 offset = fdt_add_subnode(fdt, devp_offset(devp), name); in fdt_wrapper_create_node()
149 static char *fdt_wrapper_get_path(const void *devp, char *buf, int len) in fdt_wrapper_get_path() argument
153 rc = fdt_get_path(fdt, devp_offset(devp), buf, len); in fdt_wrapper_get_path()