Lines Matching refs:devp
88 int ns16550_console_init(void *devp, struct serial_console_data *scdp);
89 int mpsc_console_init(void *devp, struct serial_console_data *scdp);
90 int cpm_console_init(void *devp, struct serial_console_data *scdp);
91 int mpc5200_psc_console_init(void *devp, struct serial_console_data *scdp);
92 int uartlite_console_init(void *devp, struct serial_console_data *scdp);
93 int opal_console_init(void *devp, struct serial_console_data *scdp);
108 static inline int getprop(void *devp, const char *name, void *buf, int buflen) in getprop() argument
110 return (dt_ops.getprop) ? dt_ops.getprop(devp, name, buf, buflen) : -1; in getprop()
113 static inline int setprop(void *devp, const char *name, in setprop() argument
116 return (dt_ops.setprop) ? dt_ops.setprop(devp, name, buf, buflen) : -1; in setprop()
118 #define setprop_val(devp, name, val) \ argument
121 setprop((devp), (name), &x, sizeof(x)); \
124 static inline int setprop_str(void *devp, const char *name, const char *buf) in setprop_str() argument
127 return dt_ops.setprop(devp, name, buf, strlen(buf) + 1); in setprop_str()
132 static inline int del_node(const void *devp) in del_node() argument
134 return dt_ops.del_node ? dt_ops.del_node(devp) : -1; in del_node()
137 static inline void *get_parent(const char *devp) in get_parent() argument
139 return dt_ops.get_parent ? dt_ops.get_parent(devp) : NULL; in get_parent()
175 void *devp = finddevice("/aliases"); in find_node_by_alias() local
177 if (devp) { in find_node_by_alias()
179 if (getprop(devp, alias, path, MAX_PATH_LEN) > 0) in find_node_by_alias()