Home
last modified time | relevance | path

Searched refs:num_pages (Results 1 – 25 of 51) sorted by relevance

123

/freebsd/sys/dev/gve/
H A Dgve_qpl.c68 pmap_qremove(qpl->kva, qpl->num_pages); in gve_free_qpl()
69 kva_free(qpl->kva, PAGE_SIZE * qpl->num_pages); in gve_free_qpl()
72 for (i = 0; i < qpl->num_pages; i++) { in gve_free_qpl()
112 qpl->num_pages = 0; in gve_alloc_qpl()
148 qpl->num_pages++; in gve_alloc_qpl()
193 int num_pages; in gve_alloc_qpls() local
203 num_pages = gve_is_gqi(priv) ? in gve_alloc_qpls()
207 err = gve_alloc_qpl(priv, i, num_pages, in gve_alloc_qpls()
213 num_pages = gve_is_gqi(priv) ? priv->rx_desc_cnt : GVE_RX_NUM_QPL_PAGES_DQO; in gve_alloc_qpls()
215 err = gve_alloc_qpl(priv, i, num_pages, /*single_kva=*/false); in gve_alloc_qpls()
H A Dgve_adminq.h269 __be32 num_pages; member
/freebsd/sys/dev/drm2/ttm/
H A Dttm_bo_util.c336 add = new_mem->num_pages - 1; in ttm_bo_move_memcpy()
339 for (i = 0; i < new_mem->num_pages; ++i) { in ttm_bo_move_memcpy()
478 unsigned long num_pages, in ttm_bo_kmap_ttm() argument
494 if (num_pages == 1 && (mem->placement & TTM_PL_FLAG_CACHED)) { in ttm_bo_kmap_ttm()
512 map->num_pages = num_pages; in ttm_bo_kmap_ttm()
513 map->virtual = (void *)kva_alloc(num_pages * PAGE_SIZE); in ttm_bo_kmap_ttm()
515 for (i = 0; i < num_pages; i++) { in ttm_bo_kmap_ttm()
521 &ttm->pages[start_page], num_pages); in ttm_bo_kmap_ttm()
528 unsigned long start_page, unsigned long num_pages, in ttm_bo_kmap() argument
539 if (num_pages > bo->num_pages) in ttm_bo_kmap()
[all …]
H A Dttm_tt.c52 ttm->pages = malloc(ttm->num_pages * sizeof(void *), in ttm_tt_alloc_page_directory()
58 ttm->ttm.pages = malloc(ttm->ttm.num_pages * sizeof(void *), in ttm_dma_tt_alloc_page_directory()
60 ttm->dma_address = malloc(ttm->ttm.num_pages * in ttm_dma_tt_alloc_page_directory()
117 drm_clflush_pages(ttm->pages, ttm->num_pages); in ttm_tt_set_caching()
119 for (i = 0; i < ttm->num_pages; ++i) { in ttm_tt_set_caching()
187 ttm->num_pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; in ttm_tt_init()
217 ttm->num_pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; in ttm_dma_tt_init()
287 for (i = 0; i < ttm->num_pages; ++i) { in ttm_tt_swapin()
327 IDX_TO_OFF(ttm->num_pages), VM_PROT_DEFAULT, 0, in ttm_tt_swapout()
338 for (i = 0; i < ttm->num_pages; ++i) { in ttm_tt_swapout()
H A Dttm_agp_backend.c56 for (i = 0; i < ttm->num_pages; i++) { in ttm_agp_bind()
67 ttm->num_pages << PAGE_SHIFT, agp_be->offset); in ttm_agp_bind()
78 return -agp_unbind_pages(agp_be->bridge, ttm->num_pages << PAGE_SHIFT, in ttm_agp_unbind()
115 agp_be->pages = malloc(agp_be->ttm.num_pages * sizeof(*agp_be->pages), in ttm_agp_tt_create()
H A Dttm_bo_api.h104 unsigned long num_pages; member
195 unsigned long num_pages; member
288 int num_pages; member
657 unsigned long num_pages, struct ttm_bo_kmap_obj *map);
H A Dttm_bo_vm.c71 unsigned long num_pages) in ttm_bo_vm_lookup_rb() argument
92 if (unlikely((best_bo->vm_node->start + best_bo->num_pages) < in ttm_bo_vm_lookup_rb()
93 (page_start + num_pages))) in ttm_bo_vm_lookup_rb()
422 if (unlikely(kmap_offset >= bo->num_pages)) {
428 io_size = bo->num_pages - kmap_offset;
493 if (unlikely(kmap_offset >= bo->num_pages))
497 io_size = bo->num_pages - kmap_offset;
H A Dttm_bo.c81 bo, bo->mem.num_pages, bo->mem.size >> 10, in ttm_bo_mem_space_debug()
386 bo->ttm = bdev->driver->ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT, in ttm_bo_add_ttm()
392 bo->ttm = bdev->driver->ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT, in ttm_bo_add_ttm()
1125 mem.num_pages = bo->num_pages; in ttm_bo_move_buffer()
1126 mem.size = mem.num_pages << PAGE_SHIFT; in ttm_bo_move_buffer()
1152 mem->start + mem->num_pages > placement->lpfn)) in ttm_bo_mem_compat()
1176 (placement->lpfn - placement->fpfn) < bo->num_pages) in ttm_bo_validate()
1210 (bo->mem.num_pages > (placement->lpfn - placement->fpfn)))); in ttm_bo_check_placement()
1228 unsigned long num_pages; in ttm_bo_init() local
1241 num_pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; in ttm_bo_init()
[all …]
H A Dttm_bo_manager.c72 mem->num_pages, mem->page_alignment, in ttm_bo_man_get_node()
78 node = drm_mm_get_block_atomic_range(node, mem->num_pages, in ttm_bo_man_get_node()
H A Dttm_bo_driver.h117 unsigned long num_pages; member
663 extern void ttm_tt_cache_flush(struct vm_page *pages[], unsigned long num_pages);
/freebsd/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_2835_arm.c401 unsigned int num_pages, i; in create_pagelist() local
411 num_pages = (count + offset + PAGE_SIZE - 1) / PAGE_SIZE; in create_pagelist()
421 (num_pages * sizeof(unsigned long)) + in create_pagelist()
422 (num_pages * sizeof(pages[0])); in create_pagelist()
460 pages = (vm_page_t*)(addrs + num_pages); in create_pagelist()
464 (type == PAGELIST_READ ? VM_PROT_WRITE : 0 ) | VM_PROT_READ, pages, num_pages); in create_pagelist()
466 if (actual_pages != num_pages) { in create_pagelist()
483 for (i = 1; i < num_pages; i++) { in create_pagelist()
545 unsigned int num_pages, i; in free_pagelist() local
553 num_pages = in free_pagelist()
[all …]
H A Dvchiq_arm.c1498 int num_pages; in dump_phys_mem() local
1516 num_pages = (offset + num_bytes + PAGE_SIZE - 1) / PAGE_SIZE; in dump_phys_mem()
1518 pages = kmalloc(sizeof(struct page *) * num_pages, GFP_KERNEL); in dump_phys_mem()
1522 num_pages); in dump_phys_mem()
1530 num_pages, /* len */ in dump_phys_mem()
1566 for (page_idx = 0; page_idx < num_pages; page_idx++) in dump_phys_mem()
/freebsd/sys/dev/vmware/vmci/
H A Dvmci_kernel_if.c23 size_t num_pages; /* Num pages incl. header. */ member
515 const size_t num_pages = CEILING(size, PAGE_SIZE) + 1; in vmci_alloc_queue() local
516 const size_t dmas_size = num_pages * sizeof(struct vmci_dma_alloc); in vmci_alloc_queue()
533 queue->kernel_if->num_pages = num_pages; in vmci_alloc_queue()
536 for (i = 0; i < num_pages; i++) { in vmci_alloc_queue()
574 const size_t num_pages = CEILING(size, PAGE_SIZE) + 1; in vmci_free_queue() local
578 for (i = 0; i < num_pages; i++) in vmci_free_queue()
/freebsd/sys/dev/drm2/
H A Ddrm_agpsupport.c432 unsigned long num_pages, in drm_agp_bind_pages() argument
441 mem = agp_allocate_memory(dev->agp->bridge, num_pages, in drm_agp_bind_pages()
445 num_pages); in drm_agp_bind_pages()
449 for (i = 0; i < num_pages; i++) in drm_agp_bind_pages()
451 mem->page_count = num_pages; in drm_agp_bind_pages()
H A Ddrm_os_freebsd.c381 drm_clflush_pages(vm_page_t *pages, unsigned long num_pages) in drm_clflush_pages() argument
385 pmap_invalidate_cache_pages(pages, num_pages); in drm_clflush_pages()
/freebsd/sys/dev/oce/
H A Doce_mbox.c1646 int rc, num_pages = 0; in oce_mbox_create_rq() local
1661 num_pages = oce_page_list(rq->ring, &fwcmd->params.req.pages[0]); in oce_mbox_create_rq()
1669 fwcmd->params.req.num_pages = num_pages; in oce_mbox_create_rq()
1701 int rc = 0, version, num_pages; in oce_mbox_create_wq() local
1723 num_pages = oce_page_list(wq->ring, &fwcmd->params.req.pages[0]); in oce_mbox_create_wq()
1726 fwcmd->params.req.num_pages = num_pages; in oce_mbox_create_wq()
1761 uint32_t num_pages; in oce_mbox_create_eq() local
1773 num_pages in oce_mbox_create_eq()
1807 uint32_t num_pages, page_size; oce_mbox_cq_create() local
2279 int rc = 0, num_pages = 0; oce_mbox_create_rq_v2() local
[all...]
H A Doce_hw.h762 uint32_t num_pages:16; member
779 uint32_t num_pages:16;
803 uint32_t num_pages:16; member
818 uint32_t num_pages:16;
1247 uint32_t num_pages:16; member
1265 uint32_t num_pages:16;
1329 uint32_t num_pages:16; member
1346 uint32_t num_pages:16;
1373 uint32_t num_pages:16; member
1393 uint32_t num_pages:16;
[all …]
H A Doce_queue.c638 uint32_t num_pages; in oce_mq_create() local
670 num_pages = oce_page_list(mq->ring, &fwcmd->params.req.pages[0]); in oce_mq_create()
675 ctx->v1.num_pages = num_pages; in oce_mq_create()
688 ctx->v0.num_pages = num_pages; in oce_mq_create()
/freebsd/sys/dev/ocs_fc/
H A Dsli4.c1819 uint32_t num_pages = 0; in sli_cmd_common_create_cq() local
1829 num_pages = sli_page_count(qmem->size, page_bytes); in sli_cmd_common_create_cq()
1830 cmd_size = sizeof(sli4_req_common_create_cq_v0_t) + (8 * num_pages); in sli_cmd_common_create_cq()
1849 num_pages = sli_page_count(qmem->size, page_bytes); in sli_cmd_common_create_cq()
1850 cmd_size = sizeof(sli4_req_common_create_cq_v2_t) + (8 * num_pages); in sli_cmd_common_create_cq()
1878 cqv0->num_pages = num_pages; in sli_cmd_common_create_cq()
1879 switch (cqv0->num_pages) { in sli_cmd_common_create_cq()
1890 ocs_log_test(sli4->os, "num_pages %d not valid\n", cqv0->num_pages); in sli_cmd_common_create_cq()
1901 p < cqv0->num_pages; in sli_cmd_common_create_cq()
1923 cqv2->num_pages = num_pages; in sli_cmd_common_create_cq()
[all …]
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mem.c127 int page_shift, size_t offset, size_t num_pages, in __mlx5_ib_populate_pas() argument
146 for (i = 0; i < num_pages; ++i) { in __mlx5_ib_populate_pas()
/freebsd/sys/dev/virtio/balloon/
H A Dvirtio_balloon.h44 uint32_t num_pages; member
/freebsd/sys/vm/
H A Dvm_param.h134 #define num_pages(x) \ macro
/freebsd/sys/dev/vmware/pvscsi/
H A Dpvscsi.h71 uint32_t num_pages; member
H A Dpvscsi.c111 struct pvscsi_dma *dma, uint64_t *ppn_list, uint32_t num_pages);
502 uint64_t *ppn_list, uint32_t num_pages) in pvscsi_dma_alloc_ppns() argument
508 error = pvscsi_dma_alloc(sc, dma, num_pages * PAGE_SIZE, PAGE_SIZE); in pvscsi_dma_alloc_ppns()
516 for (i = 0; i < num_pages; i++) { in pvscsi_dma_alloc_ppns()
734 cmd.num_pages = sc->msg_ring_num_pages; in pvscsi_setup_msg_ring()
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DMemory.cpp364 const size_t num_pages = (byte_size + page_size - 1) / page_size; in AllocatePage() local
365 const size_t page_byte_size = num_pages * page_size; in AllocatePage()

123