Home
last modified time | relevance | path

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

/linux-6.6.21/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()
168 if (vmf->pgoff > buffer->pagecount) in cma_heap_vm_fault()
198 vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL); in cma_heap_do_vmap()
259 cma_release(cma_heap->cma, buffer->cma_pages, buffer->pagecount); in cma_heap_dma_buf_release()
285 pgoff_t pagecount = size >> PAGE_SHIFT; in cma_heap_allocate() local
303 cma_pages = cma_alloc(cma_heap->cma, pagecount, align, false); in cma_heap_allocate()
309 unsigned long nr_clear_pages = pagecount; in cma_heap_allocate()
330 buffer->pages = kmalloc_array(pagecount, sizeof(*buffer->pages), GFP_KERNEL); in cma_heap_allocate()
[all …]
/linux-6.6.21/drivers/dma-buf/
Dudmabuf.c27 pgoff_t pagecount; member
39 if (pgoff >= ubuf->pagecount) in udmabuf_vm_fault()
69 vaddr = vm_map_ram(ubuf->pages, ubuf->pagecount, -1); in vmap_udmabuf()
83 vm_unmap_ram(map->vaddr, ubuf->pagecount); in vunmap_udmabuf()
96 ret = sg_alloc_table_from_pages(sg, ubuf->pages, ubuf->pagecount, in get_sg_table()
97 0, ubuf->pagecount << PAGE_SHIFT, in get_sg_table()
142 for (pg = 0; pg < ubuf->pagecount; pg++) in release_udmabuf()
221 ubuf->pagecount += list[i].size >> PAGE_SHIFT; in udmabuf_create()
222 if (ubuf->pagecount > pglimit) in udmabuf_create()
226 if (!ubuf->pagecount) in udmabuf_create()
[all …]
/linux-6.6.21/drivers/net/ethernet/google/gve/
Dgve_utils.c73 int pagecount = page_count(page_info->page); in gve_dec_pagecnt_bias() local
78 page_info->pagecnt_bias = INT_MAX - pagecount; in gve_dec_pagecnt_bias()
81 page_ref_add(page_info->page, INT_MAX - pagecount); in gve_dec_pagecnt_bias()
Dgve_rx.c417 int pagecount = page_count(page_info->page); in gve_rx_can_recycle_buffer() local
420 if (pagecount == page_info->pagecnt_bias) in gve_rx_can_recycle_buffer()
423 else if (pagecount > page_info->pagecnt_bias) in gve_rx_can_recycle_buffer()
425 WARN(pagecount < page_info->pagecnt_bias, in gve_rx_can_recycle_buffer()
Dgve_rx_dqo.c423 int pagecount; in gve_try_recycle_buf() local
429 pagecount = gve_buf_ref_cnt(buf_state); in gve_try_recycle_buf()
436 if (pagecount == 1) { in gve_try_recycle_buf()
/linux-6.6.21/drivers/hv/
Dchannel.c314 int pagecount; in create_gpadl_header() local
323 pagecount = hv_gpadl_size(type, size) >> HV_HYP_PAGE_SHIFT; in create_gpadl_header()
331 if (pagecount > pfncount) { in create_gpadl_header()
348 pagecount * sizeof(u64); in create_gpadl_header()
357 pfnleft = pagecount - pfncount; in create_gpadl_header()
417 sizeof(struct gpa_range) + pagecount * sizeof(u64); in create_gpadl_header()
429 pagecount * sizeof(u64); in create_gpadl_header()
432 for (i = 0; i < pagecount; i++) in create_gpadl_header()
1105 u32 pagecount, void *buffer, u32 bufferlen, in vmbus_sendpacket_pagebuffer() argument
1116 if (pagecount > MAX_PAGE_BUFFER_COUNT) in vmbus_sendpacket_pagebuffer()
[all …]
/linux-6.6.21/samples/vfio-mdev/
Dmbochs.c163 pgoff_t pagecount; member
183 pgoff_t pagecount; member
537 mdev_state->pagecount = mdev_state->memsize >> PAGE_SHIFT; in mbochs_init_dev()
538 mdev_state->pages = kcalloc(mdev_state->pagecount, in mbochs_init_dev()
558 type->type.pretty_name, type->mbytes, mdev_state->pagecount); in mbochs_init_dev()
748 if (WARN_ON(pgoff >= mdev_state->pagecount)) in mbochs_get_page()
765 for (i = 0; i < mdev_state->pagecount; i++) { in mbochs_put_pages()
781 if (page_offset >= mdev_state->pagecount) in mbochs_region_vm_fault()
819 if (WARN_ON(vmf->pgoff >= dmabuf->pagecount)) in mbochs_dmabuf_vm_fault()
859 dmabuf->mode.offset, dmabuf->mode.size, dmabuf->pagecount); in mbochs_print_dmabuf()
[all …]
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Duser_exp_rcv.c567 unsigned pagecount, pageidx, setcount = 0, i; in find_phys_blocks() local
581 for (pageidx = 0, pagecount = 1, i = 1; i <= npages; i++) { in find_phys_blocks()
601 while (pagecount) { in find_phys_blocks()
602 int maxpages = pagecount; in find_phys_blocks()
603 u32 bufsize = pagecount * PAGE_SIZE; in find_phys_blocks()
616 pagecount -= maxpages; in find_phys_blocks()
621 pagecount = 1; in find_phys_blocks()
624 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-6.6.21/fs/nfs/
Dpagelist.c995 unsigned int pagecount, pageused; in nfs_generic_pgio() local
999 pagecount = nfs_page_array_len(pg_base, mirror->pg_count); in nfs_generic_pgio()
1000 pg_array->npages = pagecount; in nfs_generic_pgio()
1002 if (pagecount <= ARRAY_SIZE(pg_array->page_array)) in nfs_generic_pgio()
1005 pg_array->pagevec = kcalloc(pagecount, sizeof(struct page *), gfp_flags); in nfs_generic_pgio()
1032 if (pageused > pagecount) in nfs_generic_pgio()
1039 if (WARN_ON_ONCE(pageused != pagecount)) { in nfs_generic_pgio()
/linux-6.6.21/arch/x86/hyperv/
Divm.c513 static bool hv_vtom_set_host_visibility(unsigned long kbuffer, int pagecount, bool enc) in hv_vtom_set_host_visibility() argument
526 for (i = 0, pfn = 0; i < pagecount; i++) { in hv_vtom_set_host_visibility()
530 if (pfn == HV_MAX_MODIFY_GPA_REP_COUNT || i == pagecount - 1) { in hv_vtom_set_host_visibility()
/linux-6.6.21/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-6.6.21/include/linux/
Dhyperv.h1208 u32 pagecount,