Lines Matching refs:devp
88 int ns16550_console_init(void *devp, struct serial_console_data *scdp);
89 int cpm_console_init(void *devp, struct serial_console_data *scdp);
90 int mpc5200_psc_console_init(void *devp, struct serial_console_data *scdp);
91 int opal_console_init(void *devp, struct serial_console_data *scdp);
106 static inline int getprop(void *devp, const char *name, void *buf, int buflen) in getprop() argument
108 return (dt_ops.getprop) ? dt_ops.getprop(devp, name, buf, buflen) : -1; in getprop()
111 static inline int setprop(void *devp, const char *name, in setprop() argument
114 return (dt_ops.setprop) ? dt_ops.setprop(devp, name, buf, buflen) : -1; in setprop()
116 #define setprop_val(devp, name, val) \ argument
119 setprop((devp), (name), &x, sizeof(x)); \
122 static inline int setprop_str(void *devp, const char *name, const char *buf) in setprop_str() argument
125 return dt_ops.setprop(devp, name, buf, strlen(buf) + 1); in setprop_str()
130 static inline int del_node(const void *devp) in del_node() argument
132 return dt_ops.del_node ? dt_ops.del_node(devp) : -1; in del_node()
135 static inline void *get_parent(const char *devp) in get_parent() argument
137 return dt_ops.get_parent ? dt_ops.get_parent(devp) : NULL; in get_parent()
173 void *devp = finddevice("/aliases"); in find_node_by_alias() local
175 if (devp) { in find_node_by_alias()
177 if (getprop(devp, alias, path, MAX_PATH_LEN) > 0) in find_node_by_alias()