Home
last modified time | relevance | path

Searched refs:page_num (Results 1 – 25 of 31) sorted by relevance

12

/drivers/gpu/drm/omapdrm/
Domap_gem_dmabuf.c89 unsigned long page_num) in omap_gem_dmabuf_kmap() argument
94 omap_gem_cpu_sync_page(obj, page_num); in omap_gem_dmabuf_kmap()
95 return kmap(pages[page_num]); in omap_gem_dmabuf_kmap()
99 unsigned long page_num, void *addr) in omap_gem_dmabuf_kunmap() argument
104 kunmap(pages[page_num]); in omap_gem_dmabuf_kunmap()
/drivers/gpu/drm/i915/gem/selftests/
Dmock_dmabuf.c79 static void *mock_dmabuf_kmap(struct dma_buf *dma_buf, unsigned long page_num) in mock_dmabuf_kmap() argument
83 return kmap(mock->pages[page_num]); in mock_dmabuf_kmap()
86 static void mock_dmabuf_kunmap(struct dma_buf *dma_buf, unsigned long page_num, void *addr) in mock_dmabuf_kunmap() argument
90 return kunmap(mock->pages[page_num]); in mock_dmabuf_kunmap()
Dhuge_pages.c603 unsigned long page_num; in igt_mock_ppgtt_huge_fill() local
609 for_each_prime_number_from(page_num, 1, max_pages) { in igt_mock_ppgtt_huge_fill()
611 u64 size = page_num << PAGE_SHIFT; in igt_mock_ppgtt_huge_fill()
/drivers/tee/optee/
Drpc.c245 size_t page_num; in handle_rpc_func_cmd_shm_alloc() local
247 pages = tee_shm_get_pages(shm, &page_num); in handle_rpc_func_cmd_shm_alloc()
248 if (!pages || !page_num) { in handle_rpc_func_cmd_shm_alloc()
253 pages_list = optee_allocate_pages_list(page_num); in handle_rpc_func_cmd_shm_alloc()
260 call_ctx->num_entries = page_num; in handle_rpc_func_cmd_shm_alloc()
274 optee_fill_pages_list(pages_list, pages, page_num, in handle_rpc_func_cmd_shm_alloc()
/drivers/gpu/drm/i915/gem/
Di915_gem_dmabuf.c96 static void *i915_gem_dmabuf_kmap(struct dma_buf *dma_buf, unsigned long page_num) in i915_gem_dmabuf_kmap() argument
101 if (page_num >= obj->base.size >> PAGE_SHIFT) in i915_gem_dmabuf_kmap()
111 page = i915_gem_object_get_page(obj, page_num); in i915_gem_dmabuf_kmap()
122 static void i915_gem_dmabuf_kunmap(struct dma_buf *dma_buf, unsigned long page_num, void *addr) in i915_gem_dmabuf_kunmap() argument
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_prime.c75 unsigned long page_num) in vmw_prime_dmabuf_kmap() argument
81 unsigned long page_num, void *addr) in vmw_prime_dmabuf_kunmap() argument
/drivers/staging/gasket/
Dgasket_page_table.c1092 uint page_num; in gasket_page_table_lookup_page() local
1097 page_num = gasket_simple_page_idx(pg_tbl, dev_addr); in gasket_page_table_lookup_page()
1098 if (page_num >= pg_tbl->num_simple_entries) in gasket_page_table_lookup_page()
1101 pte = pg_tbl->entries + page_num; in gasket_page_table_lookup_page()
1106 page_num = gasket_extended_lvl0_page_idx(pg_tbl, dev_addr); in gasket_page_table_lookup_page()
1107 if (page_num >= pg_tbl->num_extended_entries) in gasket_page_table_lookup_page()
1110 pte = pg_tbl->entries + pg_tbl->num_simple_entries + page_num; in gasket_page_table_lookup_page()
1115 page_num = gasket_extended_lvl1_page_idx(pg_tbl, dev_addr); in gasket_page_table_lookup_page()
1116 pte = pte->sublevel + page_num; in gasket_page_table_lookup_page()
/drivers/dma-buf/
Dudmabuf.c96 static void *kmap_udmabuf(struct dma_buf *buf, unsigned long page_num) in kmap_udmabuf() argument
99 struct page *page = ubuf->pages[page_num]; in kmap_udmabuf()
104 static void kunmap_udmabuf(struct dma_buf *buf, unsigned long page_num, in kunmap_udmabuf() argument
Ddma-buf.c1035 void *dma_buf_kmap(struct dma_buf *dmabuf, unsigned long page_num) in dma_buf_kmap() argument
1041 return dmabuf->ops->map(dmabuf, page_num); in dma_buf_kmap()
1053 void dma_buf_kunmap(struct dma_buf *dmabuf, unsigned long page_num, in dma_buf_kunmap() argument
1059 dmabuf->ops->unmap(dmabuf, page_num, vaddr); in dma_buf_kunmap()
/drivers/net/wireless/realtek/rtw88/
Ddebug.c25 u32 page_num; member
221 u32 buf_size = debugfs_priv->rsvd_page.page_num * page_size; in rtw_debugfs_get_rsvd_page()
260 u32 offset, page_num; in rtw_debugfs_set_rsvd_page() local
265 num = sscanf(tmp, "%d %d", &offset, &page_num); in rtw_debugfs_set_rsvd_page()
273 debugfs_priv->rsvd_page.page_num = page_num; in rtw_debugfs_set_rsvd_page()
/drivers/gpu/drm/i915/gvt/
Ddmabuf.c48 u32 page_num; in vgpu_gem_get_pages() local
58 page_num = obj->base.size >> PAGE_SHIFT; in vgpu_gem_get_pages()
59 ret = sg_alloc_table(st, page_num, GFP_KERNEL); in vgpu_gem_get_pages()
66 for_each_sg(st->sgl, sg, page_num, i) { in vgpu_gem_get_pages()
/drivers/net/ethernet/mellanox/mlx5/core/
Dport.c310 static int mlx5_eeprom_high_page_offset(int page_num) in mlx5_eeprom_high_page_offset() argument
312 if (!page_num) /* Page 0 always start from low page */ in mlx5_eeprom_high_page_offset()
316 return page_num * MLX5_EEPROM_HIGH_PAGE_LENGTH; in mlx5_eeprom_high_page_offset()
322 int module_num, page_num, status, err; in mlx5_query_module_eeprom() local
336 page_num = mlx5_eeprom_page(offset); in mlx5_query_module_eeprom()
341 offset -= mlx5_eeprom_high_page_offset(page_num); in mlx5_query_module_eeprom()
352 MLX5_SET(mcia_reg, in, page_number, page_num); in mlx5_query_module_eeprom()
/drivers/net/ethernet/pensando/ionic/
Dionic_bus.h13 void __iomem *ionic_bus_map_dbpage(struct ionic *ionic, int page_num);
Dionic_bus_pci.c95 void __iomem *ionic_bus_map_dbpage(struct ionic *ionic, int page_num) in ionic_bus_map_dbpage() argument
99 (u64)page_num << PAGE_SHIFT, PAGE_SIZE); in ionic_bus_map_dbpage()
/drivers/iommu/
Dmtk_iommu_v1.c301 unsigned int page_num = size >> MT2701_IOMMU_PAGE_SHIFT; in mtk_iommu_map() local
309 for (i = 0; i < page_num; i++) { in mtk_iommu_map()
333 unsigned int page_num = size >> MT2701_IOMMU_PAGE_SHIFT; in mtk_iommu_unmap() local
336 memset(pgt_base_iova, 0, page_num * sizeof(u32)); in mtk_iommu_unmap()
/drivers/gpu/drm/udl/
Dudl_dmabuf.c143 static void *udl_dmabuf_kmap(struct dma_buf *dma_buf, unsigned long page_num) in udl_dmabuf_kmap() argument
151 unsigned long page_num, void *addr) in udl_dmabuf_kunmap() argument
/drivers/crypto/qat/qat_common/
Dicp_qat_uclo.h329 unsigned int page_num; member
340 unsigned int page_num; member
/drivers/gpu/drm/i915/selftests/
Di915_buddy.c616 unsigned long page_num; in igt_buddy_alloc_range() local
643 for_each_prime_number_from(page_num, 1, ULONG_MAX - 1) { in igt_buddy_alloc_range()
647 size = min(page_num * mm.chunk_size, rem); in igt_buddy_alloc_range()
/drivers/gpu/drm/gma500/
Dframebuffer.c106 int page_num; in psbfb_vm_fault() local
114 page_num = vma_pages(vma); in psbfb_vm_fault()
119 for (i = 0; i < page_num; i++) { in psbfb_vm_fault()
/drivers/net/wireless/intel/iwlwifi/fw/
Derror-dump.h337 __le32 page_num; member
/drivers/infiniband/hw/efa/
Defa_verbs.c1347 params->page_num, params->page_shift); in efa_create_inline_pbl()
1352 "inline_pbl_array - pages[%u]\n", params->page_num); in efa_create_inline_pbl()
1364 err = pbl_create(dev, pbl, mr->umem, params->page_num, in efa_create_pbl()
1450 params.page_num = DIV_ROUND_UP(length + (start & (pg_sz - 1)), in efa_reg_mr()
1455 start, length, params.page_shift, params.page_num); in efa_reg_mr()
1458 if (params.page_num <= inline_size) { in efa_reg_mr()
Defa_com_cmd.h175 u32 page_num; member
Defa_admin_cmds_defs.h374 u32 page_num; member
/drivers/xen/
Dgntdev-dmabuf.c346 unsigned long page_num) in dmabuf_exp_ops_kmap() argument
353 unsigned long page_num, void *addr) in dmabuf_exp_ops_kunmap() argument
/drivers/staging/rts5208/
Dms.c1252 u16 block_addr, u8 page_num, u8 *buf, int buf_len) argument
1274 data[5] = page_num;
1333 u8 page_num, u8 *buf, int buf_len) argument
1356 data[5] = page_num;
1389 static int ms_read_page(struct rtsx_chip *chip, u16 block_addr, u8 page_num) argument
1409 data[5] = page_num;

12