/kernel/linux/linux-5.10/drivers/dma-buf/ |
D | udmabuf.c | 19 pgoff_t pagecount; member 31 if (pgoff >= ubuf->pagecount) in udmabuf_vm_fault() 64 ret = sg_alloc_table_from_pages(sg, ubuf->pages, ubuf->pagecount, in get_sg_table() 65 0, ubuf->pagecount << PAGE_SHIFT, in get_sg_table() 110 for (pg = 0; pg < ubuf->pagecount; pg++) in release_udmabuf() 186 ubuf->pagecount += list[i].size >> PAGE_SHIFT; in udmabuf_create() 187 if (ubuf->pagecount > pglimit) in udmabuf_create() 191 if (!ubuf->pagecount) in udmabuf_create() 194 ubuf->pages = kmalloc_array(ubuf->pagecount, sizeof(*ubuf->pages), in udmabuf_create() 232 exp_info.size = ubuf->pagecount << PAGE_SHIFT; in udmabuf_create()
|
/kernel/linux/linux-5.10/drivers/dma-buf/heaps/ |
D | system_heap.c | 29 for (pg = 0; pg < buffer->pagecount; pg++) in system_heap_free() 53 helper_buffer->pagecount = len / PAGE_SIZE; in system_heap_allocate() 54 helper_buffer->pages = kmalloc_array(helper_buffer->pagecount, in system_heap_allocate() 62 for (pg = 0; pg < helper_buffer->pagecount; pg++) { in system_heap_allocate()
|
D | cma_heap.c | 32 unsigned long nr_pages = buffer->pagecount; in cma_heap_free() 96 helper_buffer->pagecount = nr_pages; in cma_heap_allocate() 97 helper_buffer->pages = kmalloc_array(helper_buffer->pagecount, in cma_heap_allocate() 105 for (pg = 0; pg < helper_buffer->pagecount; pg++) in cma_heap_allocate()
|
D | heap-helpers.c | 22 buffer->pagecount = 0; in init_heap_helper_buffer() 46 vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL); in dma_heap_map_kernel() 105 buffer->pagecount, 0, in dma_heap_attach() 106 buffer->pagecount << PAGE_SHIFT, in dma_heap_attach() 165 if (vmf->pgoff > buffer->pagecount) in dma_heap_vm_fault()
|
D | heap-helpers.h | 39 pgoff_t pagecount; member
|
/kernel/linux/linux-5.10/drivers/hv/ |
D | channel.c | 248 int pagecount; in create_gpadl_header() local 257 pagecount = hv_gpadl_size(type, size) >> HV_HYP_PAGE_SHIFT; in create_gpadl_header() 265 if (pagecount > pfncount) { in create_gpadl_header() 282 pagecount * sizeof(u64); in create_gpadl_header() 291 pfnleft = pagecount - pfncount; in create_gpadl_header() 351 sizeof(struct gpa_range) + pagecount * sizeof(u64); in create_gpadl_header() 363 pagecount * sizeof(u64); in create_gpadl_header() 366 for (i = 0; i < pagecount; i++) in create_gpadl_header() 913 u32 pagecount, void *buffer, u32 bufferlen, in vmbus_sendpacket_pagebuffer() argument 924 if (pagecount > MAX_PAGE_BUFFER_COUNT) in vmbus_sendpacket_pagebuffer() [all …]
|
/kernel/linux/linux-5.10/samples/vfio-mdev/ |
D | mbochs.c | 154 pgoff_t pagecount; member 173 pgoff_t pagecount; member 539 mdev_state->pagecount = mdev_state->memsize >> PAGE_SHIFT; in mbochs_create() 540 mdev_state->pages = kcalloc(mdev_state->pagecount, in mbochs_create() 547 kobj->name, type->mbytes, mdev_state->pagecount); in mbochs_create() 721 if (WARN_ON(pgoff >= mdev_state->pagecount)) in mbochs_get_page() 738 for (i = 0; i < mdev_state->pagecount; i++) { in mbochs_put_pages() 754 if (page_offset >= mdev_state->pagecount) in mbochs_region_vm_fault() 791 if (WARN_ON(vmf->pgoff >= dmabuf->pagecount)) in mbochs_dmabuf_vm_fault() 831 dmabuf->mode.offset, dmabuf->mode.size, dmabuf->pagecount); in mbochs_print_dmabuf() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
D | user_exp_rcv.c | 563 unsigned pagecount, pageidx, setcount = 0, i; in find_phys_blocks() local 577 for (pageidx = 0, pagecount = 1, i = 1; i <= npages; i++) { in find_phys_blocks() 597 while (pagecount) { in find_phys_blocks() 598 int maxpages = pagecount; in find_phys_blocks() 599 u32 bufsize = pagecount * PAGE_SIZE; in find_phys_blocks() 612 pagecount -= maxpages; in find_phys_blocks() 617 pagecount = 1; in find_phys_blocks() 620 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/google/gve/ |
D | gve_rx.c | 289 int pagecount; in gve_rx() local 323 pagecount = page_count(page_info->page); in gve_rx() 324 if (pagecount == 1) { in gve_rx() 340 } else if (pagecount >= 2) { in gve_rx() 346 WARN(pagecount < 1, "Pagecount should never be < 1"); in gve_rx()
|
/kernel/linux/patches/linux-5.10/zhiyuan_patch/ |
D | kernel.patch | 696 + pgoff_t pagecount; 720 + buffer->pagecount, 0, 721 + buffer->pagecount << PAGE_SHIFT, 759 - unsigned long nr_pages = buffer->pagecount; 829 + if (vmf->pgoff > buffer->pagecount) 859 + vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL); 916 + cma_release(cma_heap->cma, buffer->cma_pages, buffer->pagecount); 950 + pgoff_t pagecount = size >> PAGE_SHIFT; 977 + cma_pages = cma_alloc(cma_heap->cma, pagecount, align, GFP_KERNEL); 985 + unsigned long nr_clear_pages = pagecount; [all …]
|
/kernel/linux/linux-5.10/fs/nfs/ |
D | pagelist.c | 903 unsigned int pagecount, pageused; in nfs_generic_pgio() local 906 pagecount = nfs_page_array_len(mirror->pg_base, mirror->pg_count); in nfs_generic_pgio() 907 pg_array->npages = pagecount; in nfs_generic_pgio() 909 if (pagecount <= ARRAY_SIZE(pg_array->page_array)) in nfs_generic_pgio() 912 pg_array->pagevec = kcalloc(pagecount, sizeof(struct page *), gfp_flags); in nfs_generic_pgio() 931 if (pageused > pagecount) in nfs_generic_pgio() 936 if (WARN_ON_ONCE(pageused != pagecount)) { in nfs_generic_pgio()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/include/linux/ |
D | hyperv.h | 1142 u32 pagecount,
|
/kernel/linux/patches/linux-5.10/yangfan_patch/ |
D | drivers.patch | 6235 + pgoff_t pagecount; 6259 + buffer->pagecount, 0, 6260 + buffer->pagecount << PAGE_SHIFT, 6298 - unsigned long nr_pages = buffer->pagecount; 6366 + if (vmf->pgoff > buffer->pagecount) 6396 + vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL); 6453 + cma_release(cma_heap->cma, buffer->cma_pages, buffer->pagecount); 6487 + pgoff_t pagecount = size >> PAGE_SHIFT; 6514 + cma_pages = cma_alloc(cma_heap->cma, pagecount, align, GFP_KERNEL); 6522 + unsigned long nr_clear_pages = pagecount; [all …]
|