Home | History | Annotate | Download | only in fastboot

Lines Matching refs:resp

77     int (*func)(Action *a, int status, char *resp);
85 static int cb_default(Action *a, int status, char *resp)
88 fprintf(stderr,"FAILED (%s)\n", resp);
175 static int cb_check(Action *a, int status, char *resp, int invert)
183 fprintf(stderr,"FAILED (%s)\n", resp);
197 yes = match(resp, value, count);
208 fprintf(stderr,"Device %s is '%s'.\n", a->cmd + 7, resp);
218 static int cb_require(Action *a, int status, char *resp)
220 return cb_check(a, status, resp, 0);
223 static int cb_reject(Action *a, int status, char *resp)
225 return cb_check(a, status, resp, 1);
241 static int cb_display(Action *a, int status, char *resp)
244 fprintf(stderr, "%s FAILED (%s)\n", a->cmd, resp);
247 fprintf(stderr, "%s: %s\n", (char*) a->data, resp);
260 static int cb_save(Action *a, int status, char *resp)
263 fprintf(stderr, "%s FAILED (%s)\n", a->cmd, resp);
266 strncpy(a->data, resp, a->size);
279 static int cb_do_nothing(Action *a, int status, char *resp)
315 char resp[FB_RESPONSE_SZ+1];
319 resp[FB_RESPONSE_SZ] = 0;
338 status = fb_command_response(usb, a->cmd, resp);
339 status = a->func(a, status, status ? fb_get_error() : resp);