Searched refs:nr_of_pages (Results 1 – 4 of 4) sorted by relevance
/drivers/staging/rdma/ehca/ |
D | ipz_pt_fn.c | 102 static int alloc_queue_pages(struct ipz_queue *queue, const u32 nr_of_pages) in alloc_queue_pages() argument 107 while (f < nr_of_pages) { in alloc_queue_pages() 112 for (k = 0; k < PAGES_PER_KPAGE && f < nr_of_pages; k++) { in alloc_queue_pages() 121 for (f = 0; f < nr_of_pages && queue->queue_pages[f]; in alloc_queue_pages() 205 const u32 nr_of_pages, const u32 pagesize, in ipz_queue_ctor() argument 216 queue->queue_length = nr_of_pages * pagesize; in ipz_queue_ctor() 225 queue->queue_pages = kzalloc(nr_of_pages * sizeof(void *), in ipz_queue_ctor() 228 queue->queue_pages = vzalloc(nr_of_pages * sizeof(void *)); in ipz_queue_ctor() 240 if (!alloc_queue_pages(queue, nr_of_pages)) in ipz_queue_ctor() 247 "nr_of_pages=%x", queue, nr_of_pages); in ipz_queue_ctor()
|
D | ipz_pt_fn.h | 209 const u32 nr_of_pages, const u32 pagesize,
|
/drivers/usb/storage/ |
D | sddr09.c | 401 int nr_of_pages, int bulklen, unsigned char *buf, in sddr09_readX() argument 417 command[10] = MSB_of(nr_of_pages); in sddr09_readX() 418 command[11] = LSB_of(nr_of_pages); in sddr09_readX() 450 int nr_of_pages, int pageshift, unsigned char *buf, int use_sg) { in sddr09_read20() argument 451 int bulklen = nr_of_pages << pageshift; in sddr09_read20() 454 return sddr09_readX(us, 0, fromaddress, nr_of_pages, bulklen, in sddr09_read20() 491 int nr_of_pages, int pageshift, unsigned char *buf, int use_sg) { in sddr09_read22() argument 493 int bulklen = (nr_of_pages << pageshift) + (nr_of_pages << CONTROL_SHIFT); in sddr09_read22() 494 usb_stor_dbg(us, "reading %d pages, %d bytes\n", nr_of_pages, bulklen); in sddr09_read22() 495 return sddr09_readX(us, 2, fromaddress, nr_of_pages, bulklen, in sddr09_read22() [all …]
|
/drivers/net/ethernet/ibm/ehea/ |
D | ehea_qmr.c | 54 static int hw_queue_ctor(struct hw_queue *queue, const u32 nr_of_pages, in hw_queue_ctor() argument 66 queue->queue_length = nr_of_pages * pagesize; in hw_queue_ctor() 67 queue->queue_pages = kmalloc_array(nr_of_pages, sizeof(void *), in hw_queue_ctor() 78 while (i < nr_of_pages) { in hw_queue_ctor() 82 for (k = 0; k < pages_per_kpage && i < nr_of_pages; k++) { in hw_queue_ctor() 96 for (i = 0; i < nr_of_pages; i += pages_per_kpage) { in hw_queue_ctor()
|