Lines Matching refs:wptr

50 	const char *wptr;  in debugifc_isolate_word()  local
55 wptr = NULL; in debugifc_isolate_word()
63 wptr = buf; in debugifc_isolate_word()
68 *wstrPtr = wptr; in debugifc_isolate_word()
177 const char *wptr; in pvr2_debugifc_do1cmd() local
181 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); in pvr2_debugifc_do1cmd()
184 if (!wptr) return 0; in pvr2_debugifc_do1cmd()
186 pvr2_trace(PVR2_TRACE_DEBUGIFC,"debugifc cmd: \"%.*s\"",wlen,wptr); in pvr2_debugifc_do1cmd()
187 if (debugifc_match_keyword(wptr,wlen,"reset")) { in pvr2_debugifc_do1cmd()
188 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); in pvr2_debugifc_do1cmd()
191 if (!wptr) return -EINVAL; in pvr2_debugifc_do1cmd()
192 if (debugifc_match_keyword(wptr,wlen,"cpu")) { in pvr2_debugifc_do1cmd()
196 } else if (debugifc_match_keyword(wptr,wlen,"bus")) { in pvr2_debugifc_do1cmd()
198 } else if (debugifc_match_keyword(wptr,wlen,"soft")) { in pvr2_debugifc_do1cmd()
200 } else if (debugifc_match_keyword(wptr,wlen,"deep")) { in pvr2_debugifc_do1cmd()
202 } else if (debugifc_match_keyword(wptr,wlen,"firmware")) { in pvr2_debugifc_do1cmd()
204 } else if (debugifc_match_keyword(wptr,wlen,"decoder")) { in pvr2_debugifc_do1cmd()
206 } else if (debugifc_match_keyword(wptr,wlen,"worker")) { in pvr2_debugifc_do1cmd()
208 } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) { in pvr2_debugifc_do1cmd()
214 } else if (debugifc_match_keyword(wptr,wlen,"cpufw")) { in pvr2_debugifc_do1cmd()
215 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); in pvr2_debugifc_do1cmd()
218 if (!wptr) return -EINVAL; in pvr2_debugifc_do1cmd()
219 if (debugifc_match_keyword(wptr,wlen,"fetch")) { in pvr2_debugifc_do1cmd()
220 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); in pvr2_debugifc_do1cmd()
221 if (scnt && wptr) { in pvr2_debugifc_do1cmd()
223 if (debugifc_match_keyword(wptr, wlen, in pvr2_debugifc_do1cmd()
226 } else if (debugifc_match_keyword(wptr, wlen, in pvr2_debugifc_do1cmd()
229 } else if (debugifc_match_keyword(wptr, wlen, in pvr2_debugifc_do1cmd()
238 } else if (debugifc_match_keyword(wptr,wlen,"done")) { in pvr2_debugifc_do1cmd()
244 } else if (debugifc_match_keyword(wptr,wlen,"gpio")) { in pvr2_debugifc_do1cmd()
248 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); in pvr2_debugifc_do1cmd()
251 if (!wptr) return -EINVAL; in pvr2_debugifc_do1cmd()
252 if (debugifc_match_keyword(wptr,wlen,"dir")) { in pvr2_debugifc_do1cmd()
254 } else if (!debugifc_match_keyword(wptr,wlen,"out")) { in pvr2_debugifc_do1cmd()
257 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); in pvr2_debugifc_do1cmd()
260 if (!wptr) return -EINVAL; in pvr2_debugifc_do1cmd()
261 ret = debugifc_parse_unsigned_number(wptr,wlen,&msk); in pvr2_debugifc_do1cmd()
263 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); in pvr2_debugifc_do1cmd()
264 if (wptr) { in pvr2_debugifc_do1cmd()
265 ret = debugifc_parse_unsigned_number(wptr,wlen,&val); in pvr2_debugifc_do1cmd()
279 "debugifc failed to recognize cmd: \"%.*s\"",wlen,wptr); in pvr2_debugifc_do1cmd()