mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-06 17:21:22 +00:00
DM USB: code clean: change some names of functions and variables
Some names of functions and variables are long and not exact, this patch is used to change them, no logic code are affected. The changing included: usb_data_xfer -> usb_xfer usb_data_xfer_block -> usb_block usb_xfer_blk_stat -> usb_block_stat usb_data_xfer_append -> usb_block_append USB_XFER_BLK_* -> USB_BLOCK_* Tracked-On: #3628 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
@@ -100,11 +100,11 @@ usb_emu_finddev(char *name)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct usb_data_xfer_block *
|
||||
usb_data_xfer_append(struct usb_data_xfer *xfer, void *buf, int blen,
|
||||
void *hci_data, int ccs)
|
||||
struct usb_block *
|
||||
usb_block_append(struct usb_xfer *xfer, void *buf, int blen,
|
||||
void *hci_data, int ccs)
|
||||
{
|
||||
struct usb_data_xfer_block *xb;
|
||||
struct usb_block *xb;
|
||||
|
||||
if (xfer->ndata >= USB_MAX_XFER_BLOCKS)
|
||||
return NULL;
|
||||
@@ -114,7 +114,7 @@ usb_data_xfer_append(struct usb_data_xfer *xfer, void *buf, int blen,
|
||||
xb->blen = blen;
|
||||
xb->hci_data = hci_data;
|
||||
xb->ccs = ccs;
|
||||
xb->processed = USB_XFER_BLK_FREE;
|
||||
xb->stat = USB_BLOCK_FREE;
|
||||
xb->bdone = 0;
|
||||
xb->chained = 0;
|
||||
xfer->ndata++;
|
||||
|
||||
Reference in New Issue
Block a user