Lines Matching refs:value
269 int value = 0; in state_app_idle() local
273 value = handle_getstatus(req); in state_app_idle()
276 value = handle_getstate(req); in state_app_idle()
281 value = RET_ZLP; in state_app_idle()
284 value = RET_STALL; in state_app_idle()
288 return value; in state_app_idle()
296 int value = 0; in state_app_detach() local
300 value = handle_getstatus(req); in state_app_detach()
303 value = handle_getstate(req); in state_app_detach()
307 value = RET_STALL; in state_app_detach()
311 return value; in state_app_detach()
321 int value = 0; in state_dfu_idle() local
327 value = RET_STALL; in state_dfu_idle()
332 value = handle_dnload(gadget, len); in state_dfu_idle()
337 value = handle_upload(req, len); in state_dfu_idle()
341 value = RET_ZLP; in state_dfu_idle()
344 value = handle_getstatus(req); in state_dfu_idle()
347 value = handle_getstate(req); in state_dfu_idle()
367 value = RET_STALL; in state_dfu_idle()
371 return value; in state_dfu_idle()
379 int value = 0; in state_dfu_dnload_sync() local
383 value = handle_getstatus(req); in state_dfu_dnload_sync()
386 value = handle_getstate(req); in state_dfu_dnload_sync()
390 value = RET_STALL; in state_dfu_dnload_sync()
394 return value; in state_dfu_dnload_sync()
402 int value = 0; in state_dfu_dnbusy() local
406 value = handle_getstatus(req); in state_dfu_dnbusy()
410 value = RET_STALL; in state_dfu_dnbusy()
414 return value; in state_dfu_dnbusy()
424 int value = 0; in state_dfu_dnload_idle() local
430 value = handle_dnload(gadget, len); in state_dfu_dnload_idle()
434 value = RET_ZLP; in state_dfu_dnload_idle()
437 value = handle_getstatus(req); in state_dfu_dnload_idle()
440 value = handle_getstate(req); in state_dfu_dnload_idle()
444 value = RET_STALL; in state_dfu_dnload_idle()
448 return value; in state_dfu_dnload_idle()
456 int value = 0; in state_dfu_manifest_sync() local
462 value = handle_getstatus(req); in state_dfu_manifest_sync()
467 value = handle_getstate(req); in state_dfu_manifest_sync()
471 value = RET_STALL; in state_dfu_manifest_sync()
475 return value; in state_dfu_manifest_sync()
483 int value = 0; in state_dfu_manifest() local
489 value = handle_getstatus(req); in state_dfu_manifest()
494 value = handle_getstate(req); in state_dfu_manifest()
498 value = RET_STALL; in state_dfu_manifest()
501 return value; in state_dfu_manifest()
511 int value = 0; in state_dfu_upload_idle() local
517 value = handle_upload(req, len); in state_dfu_upload_idle()
518 if (value >= 0 && value < len) in state_dfu_upload_idle()
524 value = RET_ZLP; in state_dfu_upload_idle()
527 value = handle_getstatus(req); in state_dfu_upload_idle()
530 value = handle_getstate(req); in state_dfu_upload_idle()
534 value = RET_STALL; in state_dfu_upload_idle()
538 return value; in state_dfu_upload_idle()
546 int value = 0; in state_dfu_error() local
550 value = handle_getstatus(req); in state_dfu_error()
553 value = handle_getstate(req); in state_dfu_error()
559 value = RET_ZLP; in state_dfu_error()
563 value = RET_STALL; in state_dfu_error()
567 return value; in state_dfu_error()
592 int value = 0; in dfu_handle() local
602 value = min(len, (u16) sizeof(dfu_func)); in dfu_handle()
603 memcpy(req->buf, &dfu_func, value); in dfu_handle()
606 value = dfu_state[f_dfu->dfu_state] (f_dfu, ctrl, gadget, req); in dfu_handle()
608 if (value >= 0) { in dfu_handle()
609 req->length = value; in dfu_handle()
610 req->zero = value < len; in dfu_handle()
611 value = usb_ep_queue(gadget->ep0, req, 0); in dfu_handle()
612 if (value < 0) { in dfu_handle()
613 debug("ep_queue --> %d\n", value); in dfu_handle()
618 return value; in dfu_handle()