Home
last modified time | relevance | path

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

/linux-6.12.1/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()
197 vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL); in cma_heap_do_vmap()
258 cma_release(cma_heap->cma, buffer->cma_pages, buffer->pagecount); in cma_heap_dma_buf_release()
284 pgoff_t pagecount = size >> PAGE_SHIFT; in cma_heap_allocate() local
302 cma_pages = cma_alloc(cma_heap->cma, pagecount, align, false); in cma_heap_allocate()
308 unsigned long nr_clear_pages = pagecount; in cma_heap_allocate()
329 buffer->pages = kmalloc_array(pagecount, sizeof(*buffer->pages), GFP_KERNEL); in cma_heap_allocate()
[all …]
/linux-6.12.1/drivers/dma-buf/
Dudmabuf.c28 pgoff_t pagecount; member
48 if (pgoff >= ubuf->pagecount) in udmabuf_vm_fault()
83 pages = kmalloc_array(ubuf->pagecount, sizeof(*pages), GFP_KERNEL); in vmap_udmabuf()
87 for (pg = 0; pg < ubuf->pagecount; pg++) in vmap_udmabuf()
90 vaddr = vm_map_ram(pages, ubuf->pagecount, -1); in vmap_udmabuf()
105 vm_unmap_ram(map->vaddr, ubuf->pagecount); in vunmap_udmabuf()
121 ret = sg_alloc_table(sg, ubuf->pagecount, GFP_KERNEL); in get_sg_table()
125 for_each_sg(sg->sgl, sgl, ubuf->pagecount, i) in get_sg_table()
283 exp_info.size = ubuf->pagecount << PAGE_SHIFT; in export_udmabuf()
317 ubuf->pagecount += list[i].size >> PAGE_SHIFT; in udmabuf_create()
[all …]
/linux-6.12.1/drivers/net/ethernet/google/gve/
Dgve_utils.c96 int pagecount = page_count(page_info->page); in gve_dec_pagecnt_bias() local
101 page_info->pagecnt_bias = INT_MAX - pagecount; in gve_dec_pagecnt_bias()
104 page_ref_add(page_info->page, INT_MAX - pagecount); in gve_dec_pagecnt_bias()
Dgve_rx.c499 int pagecount = page_count(page_info->page); in gve_rx_can_recycle_buffer() local
502 if (pagecount == page_info->pagecnt_bias) in gve_rx_can_recycle_buffer()
505 else if (pagecount > page_info->pagecnt_bias) in gve_rx_can_recycle_buffer()
507 WARN(pagecount < page_info->pagecnt_bias, in gve_rx_can_recycle_buffer()
Dgve_rx_dqo.c564 int pagecount; in gve_try_recycle_buf() local
570 pagecount = gve_buf_ref_cnt(buf_state); in gve_try_recycle_buf()
577 if (pagecount == 1) { in gve_try_recycle_buf()
/linux-6.12.1/samples/vfio-mdev/
Dmbochs.c166 pgoff_t pagecount; member
186 pgoff_t pagecount; member
540 mdev_state->pagecount = mdev_state->memsize >> PAGE_SHIFT; in mbochs_init_dev()
541 mdev_state->pages = kcalloc(mdev_state->pagecount, in mbochs_init_dev()
561 type->type.pretty_name, type->mbytes, mdev_state->pagecount); in mbochs_init_dev()
751 if (WARN_ON(pgoff >= mdev_state->pagecount)) in mbochs_get_page()
768 for (i = 0; i < mdev_state->pagecount; i++) { in mbochs_put_pages()
784 if (page_offset >= mdev_state->pagecount) in mbochs_region_vm_fault()
822 if (WARN_ON(vmf->pgoff >= dmabuf->pagecount)) in mbochs_dmabuf_vm_fault()
862 dmabuf->mode.offset, dmabuf->mode.size, dmabuf->pagecount); in mbochs_print_dmabuf()
[all …]
/linux-6.12.1/arch/x86/hyperv/
Divm.c526 static int hv_vtom_clear_present(unsigned long kbuffer, int pagecount, bool enc) in hv_vtom_clear_present() argument
528 return set_memory_np(kbuffer, pagecount); in hv_vtom_clear_present()
539 static int hv_vtom_set_host_visibility(unsigned long kbuffer, int pagecount, bool enc) in hv_vtom_set_host_visibility() argument
555 for (i = 0, pfn = 0; i < pagecount; i++) { in hv_vtom_set_host_visibility()
567 if (pfn == HV_MAX_MODIFY_GPA_REP_COUNT || i == pagecount - 1) { in hv_vtom_set_host_visibility()
586 err = set_memory_p(kbuffer, pagecount); in hv_vtom_set_host_visibility()
/linux-6.12.1/drivers/hv/
Dchannel.c316 int pagecount; in create_gpadl_header() local
325 pagecount = hv_gpadl_size(type, size) >> HV_HYP_PAGE_SHIFT; in create_gpadl_header()
330 pfncount = umin(pagecount, pfnsize / sizeof(u64)); in create_gpadl_header()
346 pagecount * sizeof(u64); in create_gpadl_header()
355 pfnleft = pagecount - pfncount; in create_gpadl_header()
1088 u32 pagecount, void *buffer, u32 bufferlen, in vmbus_sendpacket_pagebuffer() argument
1099 if (pagecount > MAX_PAGE_BUFFER_COUNT) in vmbus_sendpacket_pagebuffer()
1107 ((MAX_PAGE_BUFFER_COUNT - pagecount) * in vmbus_sendpacket_pagebuffer()
1119 desc.rangecount = pagecount; in vmbus_sendpacket_pagebuffer()
1121 for (i = 0; i < pagecount; i++) { in vmbus_sendpacket_pagebuffer()
/linux-6.12.1/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.12.1/fs/nfs/
Dpagelist.c885 unsigned int pagecount, pageused; in nfs_generic_pgio() local
889 pagecount = nfs_page_array_len(pg_base, mirror->pg_count); in nfs_generic_pgio()
890 pg_array->npages = pagecount; in nfs_generic_pgio()
892 if (pagecount <= ARRAY_SIZE(pg_array->page_array)) in nfs_generic_pgio()
895 pg_array->pagevec = kcalloc(pagecount, sizeof(struct page *), gfp_flags); in nfs_generic_pgio()
922 if (pageused > pagecount) in nfs_generic_pgio()
929 if (WARN_ON_ONCE(pageused != pagecount)) { in nfs_generic_pgio()
/linux-6.12.1/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.12.1/include/linux/
Dhyperv.h1231 u32 pagecount,