Home
last modified time | relevance | path

Searched refs:pagecount (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.15/drivers/dma-buf/heaps/
Dcma_heap.c38 pgoff_t pagecount; member
62 buffer->pagecount, 0, in cma_heap_attach()
63 buffer->pagecount << PAGE_SHIFT, in cma_heap_attach()
166 if (vmf->pgoff > buffer->pagecount) in cma_heap_vm_fault()
196 vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL); in cma_heap_do_vmap()
257 cma_release(cma_heap->cma, buffer->cma_pages, buffer->pagecount); in cma_heap_dma_buf_release()
283 pgoff_t pagecount = size >> PAGE_SHIFT; in cma_heap_allocate() local
301 cma_pages = cma_alloc(cma_heap->cma, pagecount, align, false); in cma_heap_allocate()
307 unsigned long nr_clear_pages = pagecount; in cma_heap_allocate()
328 buffer->pages = kmalloc_array(pagecount, sizeof(*buffer->pages), GFP_KERNEL); in cma_heap_allocate()
[all …]
/Linux-v5.15/drivers/dma-buf/
Dudmabuf.c25 pgoff_t pagecount; member
67 ret = sg_alloc_table_from_pages(sg, ubuf->pages, ubuf->pagecount, in get_sg_table()
68 0, ubuf->pagecount << PAGE_SHIFT, in get_sg_table()
113 for (pg = 0; pg < ubuf->pagecount; pg++) in release_udmabuf()
189 ubuf->pagecount += list[i].size >> PAGE_SHIFT; in udmabuf_create()
190 if (ubuf->pagecount > pglimit) in udmabuf_create()
193 ubuf->pages = kmalloc_array(ubuf->pagecount, sizeof(*ubuf->pages), in udmabuf_create()
263 exp_info.size = ubuf->pagecount << PAGE_SHIFT; in udmabuf_create()
/Linux-v5.15/drivers/net/ethernet/google/gve/
Dgve_utils.c71 int pagecount = page_count(page_info->page); in gve_dec_pagecnt_bias() local
76 page_info->pagecnt_bias = INT_MAX - pagecount; in gve_dec_pagecnt_bias()
79 page_ref_add(page_info->page, INT_MAX - pagecount); in gve_dec_pagecnt_bias()
Dgve_rx.c304 int pagecount = page_count(page); in gve_rx_can_recycle_buffer() local
307 if (pagecount == 1) in gve_rx_can_recycle_buffer()
310 else if (pagecount >= 2) in gve_rx_can_recycle_buffer()
312 WARN(pagecount < 1, "Pagecount should never be < 1"); in gve_rx_can_recycle_buffer()
Dgve_rx_dqo.c383 int pagecount; in gve_try_recycle_buf() local
389 pagecount = gve_buf_ref_cnt(buf_state); in gve_try_recycle_buf()
396 if (pagecount == 1) { in gve_try_recycle_buf()
/Linux-v5.15/drivers/hv/
Dchannel.c313 int pagecount; in create_gpadl_header() local
322 pagecount = hv_gpadl_size(type, size) >> HV_HYP_PAGE_SHIFT; in create_gpadl_header()
330 if (pagecount > pfncount) { in create_gpadl_header()
347 pagecount * sizeof(u64); in create_gpadl_header()
356 pfnleft = pagecount - pfncount; in create_gpadl_header()
416 sizeof(struct gpa_range) + pagecount * sizeof(u64); in create_gpadl_header()
428 pagecount * sizeof(u64); in create_gpadl_header()
431 for (i = 0; i < pagecount; i++) in create_gpadl_header()
1055 u32 pagecount, void *buffer, u32 bufferlen, in vmbus_sendpacket_pagebuffer() argument
1066 if (pagecount > MAX_PAGE_BUFFER_COUNT) in vmbus_sendpacket_pagebuffer()
[all …]
/Linux-v5.15/samples/vfio-mdev/
Dmbochs.c155 pgoff_t pagecount; member
175 pgoff_t pagecount; member
533 mdev_state->pagecount = mdev_state->memsize >> PAGE_SHIFT; in mbochs_probe()
534 mdev_state->pages = kcalloc(mdev_state->pagecount, in mbochs_probe()
541 type->name, type->mbytes, mdev_state->pagecount); in mbochs_probe()
724 if (WARN_ON(pgoff >= mdev_state->pagecount)) in mbochs_get_page()
741 for (i = 0; i < mdev_state->pagecount; i++) { in mbochs_put_pages()
757 if (page_offset >= mdev_state->pagecount) in mbochs_region_vm_fault()
795 if (WARN_ON(vmf->pgoff >= dmabuf->pagecount)) in mbochs_dmabuf_vm_fault()
835 dmabuf->mode.offset, dmabuf->mode.size, dmabuf->pagecount); in mbochs_print_dmabuf()
[all …]
/Linux-v5.15/drivers/infiniband/hw/hfi1/
Duser_exp_rcv.c521 unsigned pagecount, pageidx, setcount = 0, i; in find_phys_blocks() local
535 for (pageidx = 0, pagecount = 1, i = 1; i <= npages; i++) { in find_phys_blocks()
555 while (pagecount) { in find_phys_blocks()
556 int maxpages = pagecount; in find_phys_blocks()
557 u32 bufsize = pagecount * PAGE_SIZE; in find_phys_blocks()
570 pagecount -= maxpages; in find_phys_blocks()
575 pagecount = 1; in find_phys_blocks()
578 pagecount++; in find_phys_blocks()
Dtid_rdma.c886 u32 pagecount, pageidx, setcount = 0, i; in tid_rdma_find_phys_blocks_4k() local
899 for (pageidx = 0, pagecount = 1, i = 1; i <= npages; i++) { in tid_rdma_find_phys_blocks_4k()
920 while (pagecount) { in tid_rdma_find_phys_blocks_4k()
921 int maxpages = pagecount; in tid_rdma_find_phys_blocks_4k()
922 u32 bufsize = pagecount * PAGE_SIZE; in tid_rdma_find_phys_blocks_4k()
938 pagecount -= maxpages; in tid_rdma_find_phys_blocks_4k()
943 pagecount = 1; in tid_rdma_find_phys_blocks_4k()
947 pagecount++; in tid_rdma_find_phys_blocks_4k()
/Linux-v5.15/fs/nfs/
Dpagelist.c903 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()
/Linux-v5.15/drivers/usb/atm/
Dueagle-atm.c724 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()
/Linux-v5.15/include/linux/
Dhyperv.h1180 u32 pagecount,