summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2012-05-26 08:33:53 +0000
committermarius <marius@FreeBSD.org>2012-05-26 08:33:53 +0000
commit18530f80379ab438642abe23b3506e9c33f568f6 (patch)
treef40bcd23bcb1d7679bf5656e0914c016073e6840
parentbedff6538ff7cd67bd258f19d29ad94122602baa (diff)
downloadFreeBSD-src-18530f80379ab438642abe23b3506e9c33f568f6.zip
FreeBSD-src-18530f80379ab438642abe23b3506e9c33f568f6.tar.gz
Consistently use USB_PAGE_SIZE. Currently, this is cosmetic.
MFC after: 3 days
-rw-r--r--sys/dev/usb/usb_transfer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_transfer.c b/sys/dev/usb/usb_transfer.c
index 2fe442d..b799897 100644
--- a/sys/dev/usb/usb_transfer.c
+++ b/sys/dev/usb/usb_transfer.c
@@ -217,12 +217,12 @@ usbd_transfer_setup_sub_malloc(struct usb_setup_params *parm,
* Try multi-allocation chunks to reduce the number of DMA
* allocations, hence DMA allocations are slow.
*/
- if (size >= PAGE_SIZE) {
+ if (size >= USB_PAGE_SIZE) {
n_dma_pc = count;
n_obj = 1;
} else {
/* compute number of objects per page */
- n_obj = (PAGE_SIZE / size);
+ n_obj = (USB_PAGE_SIZE / size);
/*
* Compute number of DMA chunks, rounded up
* to nearest one:
OpenPOWER on IntegriCloud