Searched refs:pagecount (Results 1 – 6 of 6) sorted by relevance
/drivers/dma-buf/ |
D | udmabuf.c | 19 pgoff_t pagecount; member 59 ret = sg_alloc_table_from_pages(sg, ubuf->pages, ubuf->pagecount, in map_udmabuf() 60 0, ubuf->pagecount << PAGE_SHIFT, in map_udmabuf() 90 for (pg = 0; pg < ubuf->pagecount; pg++) in release_udmabuf() 144 ubuf->pagecount += list[i].size >> PAGE_SHIFT; in udmabuf_create() 145 if (ubuf->pagecount > pglimit) in udmabuf_create() 148 ubuf->pages = kmalloc_array(ubuf->pagecount, sizeof(*ubuf->pages), in udmabuf_create() 186 exp_info.size = ubuf->pagecount << PAGE_SHIFT; in udmabuf_create()
|
/drivers/hv/ |
D | channel.c | 299 int pagecount; in create_gpadl_header() local 308 pagecount = size >> PAGE_SHIFT; in create_gpadl_header() 316 if (pagecount > pfncount) { in create_gpadl_header() 333 pagecount * sizeof(u64); in create_gpadl_header() 342 pfnleft = pagecount - pfncount; in create_gpadl_header() 402 sizeof(struct gpa_range) + pagecount * sizeof(u64); in create_gpadl_header() 414 pagecount * sizeof(u64); in create_gpadl_header() 417 for (i = 0; i < pagecount; i++) in create_gpadl_header() 787 u32 pagecount, void *buffer, u32 bufferlen, in vmbus_sendpacket_pagebuffer() argument 798 if (pagecount > MAX_PAGE_BUFFER_COUNT) in vmbus_sendpacket_pagebuffer() [all …]
|
/drivers/infiniband/hw/hfi1/ |
D | user_exp_rcv.c | 591 unsigned pagecount, pageidx, setcount = 0, i; in find_phys_blocks() local 605 for (pageidx = 0, pagecount = 1, i = 1; i <= npages; i++) { in find_phys_blocks() 625 while (pagecount) { in find_phys_blocks() 626 int maxpages = pagecount; in find_phys_blocks() 627 u32 bufsize = pagecount * PAGE_SIZE; in find_phys_blocks() 640 pagecount -= maxpages; in find_phys_blocks() 645 pagecount = 1; in find_phys_blocks() 648 pagecount++; in find_phys_blocks()
|
D | tid_rdma.c | 880 u32 pagecount, pageidx, setcount = 0, i; in tid_rdma_find_phys_blocks_4k() local 893 for (pageidx = 0, pagecount = 1, i = 1; i <= npages; i++) { in tid_rdma_find_phys_blocks_4k() 914 while (pagecount) { in tid_rdma_find_phys_blocks_4k() 915 int maxpages = pagecount; in tid_rdma_find_phys_blocks_4k() 916 u32 bufsize = pagecount * PAGE_SIZE; in tid_rdma_find_phys_blocks_4k() 932 pagecount -= maxpages; in tid_rdma_find_phys_blocks_4k() 937 pagecount = 1; in tid_rdma_find_phys_blocks_4k() 941 pagecount++; in tid_rdma_find_phys_blocks_4k()
|
/drivers/net/ethernet/google/gve/ |
D | gve_rx.c | 283 int pagecount; in gve_rx() local 310 pagecount = page_count(page_info->page); in gve_rx() 311 if (pagecount == 1) { in gve_rx() 323 } else if (pagecount >= 2) { in gve_rx() 329 WARN(pagecount < 1, "Pagecount should never be < 1"); in gve_rx()
|
/drivers/usb/atm/ |
D | ueagle-atm.c | 724 u8 pagecount, blockcount; in check_dsp_e1() local 729 pagecount = FW_GET_BYTE(dsp); in check_dsp_e1() 733 if (p + 4 * pagecount > len) in check_dsp_e1() 736 for (i = 0; i < pagecount; i++) { in check_dsp_e1() 906 u8 pagecount, blockcount; in uea_load_page_e1() local 921 pagecount = FW_GET_BYTE(p); in uea_load_page_e1() 924 if (pageno >= pagecount) in uea_load_page_e1()
|