Home | History | Annotate | Download | only in fastboot

Lines Matching refs:resp

95     int (*func)(Action *a, int status, char *resp);
179 static int cb_default(Action *a, int status, char *resp)
182 fprintf(stderr,"FAILED (%s)\n", resp);
453 static int cb_check(Action *a, int status, char *resp, int invert)
461 fprintf(stderr,"FAILED (%s)\n", resp);
475 yes = match(resp, value, count);
486 fprintf(stderr,"Device %s is '%s'.\n", a->cmd + 7, resp);
496 static int cb_require(Action *a, int status, char *resp)
498 return cb_check(a, status, resp, 0);
501 static int cb_reject(Action *a, int status, char *resp)
503 return cb_check(a, status, resp, 1);
519 static int cb_display(Action *a, int status, char *resp)
522 fprintf(stderr, "%s FAILED (%s)\n", a->cmd, resp);
525 fprintf(stderr, "%s: %s\n", (char*) a->data, resp);
538 static int cb_save(Action *a, int status, char *resp)
541 fprintf(stderr, "%s FAILED (%s)\n", a->cmd, resp);
544 strncpy(a->data, resp, a->size);
557 static int cb_do_nothing(Action *a, int status, char *resp)
593 char resp[FB_RESPONSE_SZ+1];
599 resp[FB_RESPONSE_SZ] = 0;
618 status = fb_command_response(usb, a->cmd, resp);
619 status = a->func(a, status, status ? fb_get_error() : resp);