Lines Matching refs:value

270 	int value = 0;  in state_app_idle()  local
274 value = handle_getstatus(req); in state_app_idle()
277 value = handle_getstate(req); in state_app_idle()
282 value = RET_ZLP; in state_app_idle()
285 value = RET_STALL; in state_app_idle()
289 return value; in state_app_idle()
297 int value = 0; in state_app_detach() local
301 value = handle_getstatus(req); in state_app_detach()
304 value = handle_getstate(req); in state_app_detach()
308 value = RET_STALL; in state_app_detach()
312 return value; in state_app_detach()
322 int value = 0; in state_dfu_idle() local
328 value = RET_STALL; in state_dfu_idle()
333 value = handle_dnload(gadget, len); in state_dfu_idle()
338 value = handle_upload(req, len); in state_dfu_idle()
342 value = RET_ZLP; in state_dfu_idle()
345 value = handle_getstatus(req); in state_dfu_idle()
348 value = handle_getstate(req); in state_dfu_idle()
368 value = RET_STALL; in state_dfu_idle()
372 return value; in state_dfu_idle()
380 int value = 0; in state_dfu_dnload_sync() local
384 value = handle_getstatus(req); in state_dfu_dnload_sync()
387 value = handle_getstate(req); in state_dfu_dnload_sync()
391 value = RET_STALL; in state_dfu_dnload_sync()
395 return value; in state_dfu_dnload_sync()
403 int value = 0; in state_dfu_dnbusy() local
407 value = handle_getstatus(req); in state_dfu_dnbusy()
411 value = RET_STALL; in state_dfu_dnbusy()
415 return value; in state_dfu_dnbusy()
425 int value = 0; in state_dfu_dnload_idle() local
431 value = handle_dnload(gadget, len); in state_dfu_dnload_idle()
435 value = RET_ZLP; in state_dfu_dnload_idle()
438 value = handle_getstatus(req); in state_dfu_dnload_idle()
441 value = handle_getstate(req); in state_dfu_dnload_idle()
445 value = RET_STALL; in state_dfu_dnload_idle()
449 return value; in state_dfu_dnload_idle()
457 int value = 0; in state_dfu_manifest_sync() local
463 value = handle_getstatus(req); in state_dfu_manifest_sync()
468 value = handle_getstate(req); in state_dfu_manifest_sync()
472 value = RET_STALL; in state_dfu_manifest_sync()
476 return value; in state_dfu_manifest_sync()
484 int value = 0; in state_dfu_manifest() local
490 value = handle_getstatus(req); in state_dfu_manifest()
495 value = handle_getstate(req); in state_dfu_manifest()
499 value = RET_STALL; in state_dfu_manifest()
502 return value; in state_dfu_manifest()
512 int value = 0; in state_dfu_upload_idle() local
518 value = handle_upload(req, len); in state_dfu_upload_idle()
519 if (value >= 0 && value < len) in state_dfu_upload_idle()
525 value = RET_ZLP; in state_dfu_upload_idle()
528 value = handle_getstatus(req); in state_dfu_upload_idle()
531 value = handle_getstate(req); in state_dfu_upload_idle()
535 value = RET_STALL; in state_dfu_upload_idle()
539 return value; in state_dfu_upload_idle()
547 int value = 0; in state_dfu_error() local
551 value = handle_getstatus(req); in state_dfu_error()
554 value = handle_getstate(req); in state_dfu_error()
560 value = RET_ZLP; in state_dfu_error()
564 value = RET_STALL; in state_dfu_error()
568 return value; in state_dfu_error()
593 int value = 0; in dfu_handle() local
608 value = min(len, (u16) sizeof(dfu_func)); in dfu_handle()
609 memcpy(req->buf, &dfu_func, value); in dfu_handle()
612 value = dfu_state[f_dfu->dfu_state] (f_dfu, ctrl, gadget, req); in dfu_handle()
614 if (value >= 0) { in dfu_handle()
615 req->length = value; in dfu_handle()
616 req->zero = value < len; in dfu_handle()
617 value = usb_ep_queue(gadget->ep0, req, 0); in dfu_handle()
618 if (value < 0) { in dfu_handle()
619 debug("ep_queue --> %d\n", value); in dfu_handle()
624 return value; in dfu_handle()