XhcCheckUrbResult() will get invoked many times for single request.
XhcExecTransfer () will be only invoked once for single request. The URB is a
software data structure and will be persistent till the request is finished. It
will record how many bytes has been transferred.
You can think the logic as it's continuously polling to see if there is new
data received.
Thanks
Feng
From: Anbazhagan, Baraneedharan [mailto:anbazha...@hp.com]
Sent: Friday, April 17, 2015 11:00
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] XHCI data transfer size
But the total data transfer size is accumulated based on input DataLen field
and if there is more than 1 transfer block(64K+ data request), then the return
size is not correct.
CheckedUrb->Completed += (CheckedUrb->DataLen - EvtTrb->Lenth);
From: Tian, Feng [mailto:feng.t...@intel.com]
Sent: Thursday, April 16, 2015 9:34 PM
To: Anbazhagan, Baraneedharan;
edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: Re: [edk2] XHCI data transfer size
Hi, Baranee
The intention of XhcCheckUrbResult() and XhcExecTransfer() is to traverse all
received events and accumulate these received data lengths for a URB request to
see if it matches with requested data length.
The members of URB, such as ->Completed, -> Finished, -> StartDone and ->
EndDone, are used for this way.
Thanks
Feng
From: Anbazhagan, Baraneedharan [mailto:anbazha...@hp.com]
Sent: Thursday, April 16, 2015 08:31
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Cc: Tian, Feng
Subject: XHCI data transfer size
XhcCheckUrbResult calculates the data transfer size to return based on DataLen
within Urb, If the request is more than 64K and then it reports the size as
multiples of TrbNumber.
Does it make sense to make use of Length field within TRB to calculate total
data transfer size?
-Baranee
CONFIDENTIALITY NOTICE: The information contained in this e-mail and any
accompanying documents may contain information which is HP confidential or
otherwise protected from disclosure. This transmission may also be protected by
the attorney-client privilege, the attorney work-product privilege, or both. If
you are not the intended recipient of this message, or if this message has been
addressed to you in error, please immediately alert the sender by reply e-mail
and then delete this message, including any attachments. Any dissemination,
distribution or other use of the contents of this message by anyone other than
the intended recipient is strictly prohibited.
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel