Home
last modified time | relevance | path

Searched refs:map_flags (Results 1 – 25 of 65) sorted by relevance

123

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_lru_map.c30 static int create_map(int map_type, int map_flags, unsigned int size) in create_map() argument
35 sizeof(unsigned long long), size, map_flags); in create_map()
98 static void test_lru_sanity0(int map_type, int map_flags) in test_lru_sanity0() argument
105 map_flags); in test_lru_sanity0()
109 if (map_flags & BPF_F_NO_COMMON_LRU) in test_lru_sanity0()
110 lru_map_fd = create_map(map_type, map_flags, 2 * nr_cpus); in test_lru_sanity0()
112 lru_map_fd = create_map(map_type, map_flags, 2); in test_lru_sanity0()
186 static void test_lru_sanity1(int map_type, int map_flags, unsigned int tgt_free) in test_lru_sanity1() argument
194 if (map_flags & BPF_F_NO_COMMON_LRU) in test_lru_sanity1()
199 map_flags); in test_lru_sanity1()
[all …]
Dtest_maps.c35 static int map_flags; variable
52 2, map_flags); in test_hashmap()
143 2, map_flags); in test_hashmap_sizes()
165 sizeof(bpf_percpu(value, 0)), 2, map_flags); in test_hashmap_percpu()
268 max_entries, map_flags); in test_hashmap_walk()
487 map_flags); in test_queuemap()
491 map_flags); in test_queuemap()
493 if (map_flags & BPF_F_NO_PREALLOC) { in test_queuemap()
545 map_flags); in test_stackmap()
549 map_flags); in test_stackmap()
[all …]
Dtest_queue_stack_map.h18 .map_flags = 0,
26 .map_flags = 0,
/external/ltp/testcases/kernel/mem/mtest06/
Dmmap2.c161 int map_flags = MAP_SHARED; in main() local
195 map_flags = MAP_PRIVATE; in main()
253 map_flags = map_flags | MAP_ANONYMOUS; in main()
256 map_flags, fd, 0); in main()
/external/minigbm/cros_gralloc/gralloc0/
Dgralloc0.cc84 uint32_t map_flags = BO_MAP_NONE; in gralloc0_convert_map_usage() local
87 map_flags |= BO_MAP_READ; in gralloc0_convert_map_usage()
89 map_flags |= BO_MAP_WRITE; in gralloc0_convert_map_usage()
91 return map_flags; in gralloc0_convert_map_usage()
300 uint32_t map_flags; in gralloc0_lock_async() local
324 map_flags = gralloc0_convert_map_usage(usage); in gralloc0_lock_async()
325 ret = mod->driver->lock(handle, fence_fd, &rect, map_flags, addr); in gralloc0_lock_async()
342 uint32_t map_flags; in gralloc0_lock_async_ycbcr() local
368 map_flags = gralloc0_convert_map_usage(usage); in gralloc0_lock_async_ycbcr()
369 ret = mod->driver->lock(handle, fence_fd, &rect, map_flags, addr); in gralloc0_lock_async_ycbcr()
/external/minigbm/cros_gralloc/
Dcros_gralloc_buffer.cc47 int32_t cros_gralloc_buffer::lock(const struct rectangle *rect, uint32_t map_flags, in lock() argument
63 if (map_flags) { in lock()
68 vaddr = drv_bo_map(bo_, rect, map_flags, &lock_data_[0], 0); in lock()
/external/mesa3d/src/gallium/auxiliary/util/
Du_upload_mgr.c48 unsigned map_flags; /* Bitmask of PIPE_TRANSFER_* flags. */ member
78 upload->map_flags = PIPE_TRANSFER_WRITE | in u_upload_create()
84 upload->map_flags = PIPE_TRANSFER_WRITE | in u_upload_create()
191 0, size, upload->map_flags, in u_upload_alloc_buffer()
240 upload->map_flags, in u_upload_alloc()
/external/minigbm/
Dvirtio_gpu.c140 static void *virtio_virgl_bo_map(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags) in virtio_virgl_bo_map() argument
155 return mmap(0, bo->total_size, drv_get_prot(map_flags), MAP_SHARED, bo->drv->fd, in virtio_virgl_bo_map()
218 static void *virtio_gpu_bo_map(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags) in virtio_gpu_bo_map() argument
222 return virtio_virgl_bo_map(bo, vma, plane, map_flags); in virtio_gpu_bo_map()
224 return drv_dumb_bo_map(bo, vma, plane, map_flags); in virtio_gpu_bo_map()
262 if (!(mapping->vma->map_flags & BO_MAP_WRITE)) in virtio_gpu_bo_flush()
Ddrv.c395 void *drv_bo_map(struct bo *bo, const struct rectangle *rect, uint32_t map_flags, in drv_bo_map() argument
406 assert(BO_MAP_READ_WRITE & map_flags); in drv_bo_map()
419 prior->vma->map_flags != map_flags) in drv_bo_map()
434 prior->vma->map_flags != map_flags) in drv_bo_map()
444 addr = bo->drv->backend->bo_map(bo, mapping.vma, plane, map_flags); in drv_bo_map()
455 mapping.vma->map_flags = map_flags; in drv_bo_map()
Dmediatek.c75 static void *mediatek_bo_map(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags) in mediatek_bo_map() argument
90 void *addr = mmap(0, bo->total_size, drv_get_prot(map_flags), MAP_SHARED, bo->drv->fd, in mediatek_bo_map()
132 if (priv && (mapping->vma->map_flags & BO_MAP_WRITE)) in mediatek_bo_flush()
Dvc4.c61 static void *vc4_bo_map(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags) in vc4_bo_map() argument
76 return mmap(NULL, bo->total_size, drv_get_prot(map_flags), MAP_SHARED, bo->drv->fd, in vc4_bo_map()
Dhelpers.h21 void *drv_dumb_bo_map(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags);
24 int drv_get_prot(uint32_t map_flags);
Dgbm.c231 uint32_t map_flags; in gbm_bo_map() local
236 map_flags = (transfer_flags & GBM_BO_TRANSFER_READ) ? BO_MAP_READ : BO_MAP_NONE; in gbm_bo_map()
237 map_flags |= (transfer_flags & GBM_BO_TRANSFER_WRITE) ? BO_MAP_WRITE : BO_MAP_NONE; in gbm_bo_map()
239 addr = drv_bo_map(bo->bo, &rect, map_flags, (struct mapping **)map_data, plane); in gbm_bo_map()
Damdgpu.c205 static void *amdgpu_map_bo(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags) in amdgpu_map_bo() argument
211 return dri_bo_map(bo, vma, plane, map_flags); in amdgpu_map_bo()
224 return mmap(0, bo->total_size, drv_get_prot(map_flags), MAP_SHARED, bo->drv->fd, in amdgpu_map_bo()
Drockchip.c234 static void *rockchip_bo_map(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags) in rockchip_bo_map() argument
254 void *addr = mmap(0, bo->total_size, drv_get_prot(map_flags), MAP_SHARED, bo->drv->fd, in rockchip_bo_map()
296 if (priv && (mapping->vma->map_flags & BO_MAP_WRITE)) in rockchip_bo_flush()
Ddrv.h87 uint32_t map_flags; member
129 void *drv_bo_map(struct bo *bo, const struct rectangle *rect, uint32_t map_flags,
Dtegra.c298 static void *tegra_bo_map(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags) in tegra_bo_map() argument
313 void *addr = mmap(0, bo->total_size, drv_get_prot(map_flags), MAP_SHARED, bo->drv->fd, in tegra_bo_map()
345 if (priv && (mapping->vma->map_flags & BO_MAP_WRITE)) in tegra_bo_flush()
/external/mesa3d/src/gallium/winsys/sw/dri/
Ddri_sw_winsys.c47 unsigned map_flags; member
145 dri_sw_dt->map_flags = flags; in dri_sw_displaytarget_map()
154 if (dri_sw_dt->front_private && (dri_sw_dt->map_flags & PIPE_TRANSFER_WRITE)) { in dri_sw_displaytarget_unmap()
158 dri_sw_dt->map_flags = 0; in dri_sw_displaytarget_unmap()
/external/u-boot/include/
Dpci.h635 #define pci_bus_to_virt(dev, addr, flags, len, map_flags) \ argument
638 (len), (map_flags))
649 #define pci_mem_to_virt(dev, addr, len, map_flags) \ argument
650 pci_bus_to_virt((dev), (addr), PCI_REGION_MEM, (len), (map_flags))
653 #define pci_io_to_virt(dev, addr, len, map_flags) \ argument
654 pci_bus_to_virt((dev), (addr), PCI_REGION_IO, (len), (map_flags))
1313 #define dm_pci_bus_to_virt(dev, addr, flags, len, map_flags) \ argument
1315 (len), (map_flags))
1328 #define dm_pci_mem_to_virt(dev, addr, len, map_flags) \ argument
1329 dm_pci_bus_to_virt((dev), (addr), PCI_REGION_MEM, (len), (map_flags))
[all …]
/external/syzkaller/sys/fuchsia/
Dvmars.txt8 zx_vmar_allocate(parent_handle zx_vmar, offset intptr, size intptr, map_flags flags[vmar_allocate_f…
9 zx_vmar_map(handle zx_vmar, vmar_offset intptr, vmo zx_vmo, vmo_offset int64, len intptr, map_flags
/external/strace/tests-mx32/
Dbpf.c283 .map_flags = 63,
305 .map_flags = 0xffffffc0,
326 .map_flags = 0xc0dedead,
330 .size = offsetofend(struct BPF_MAP_CREATE_struct, map_flags),
344 .map_flags = 0xc0dedead,
363 .map_flags = 0xc0dedead,
383 .map_flags = 0xc0dedead,
405 .map_flags = 0xc0dedead,
/external/strace/tests-m32/
Dbpf.c283 .map_flags = 63,
305 .map_flags = 0xffffffc0,
326 .map_flags = 0xc0dedead,
330 .size = offsetofend(struct BPF_MAP_CREATE_struct, map_flags),
344 .map_flags = 0xc0dedead,
363 .map_flags = 0xc0dedead,
383 .map_flags = 0xc0dedead,
405 .map_flags = 0xc0dedead,
/external/strace/tests/
Dbpf.c283 .map_flags = 63,
305 .map_flags = 0xffffffc0,
326 .map_flags = 0xc0dedead,
330 .size = offsetofend(struct BPF_MAP_CREATE_struct, map_flags),
344 .map_flags = 0xc0dedead,
363 .map_flags = 0xc0dedead,
383 .map_flags = 0xc0dedead,
405 .map_flags = 0xc0dedead,
/external/strace/
Dbpf_attr_check.c39 static_assert(SoM(struct BPF_MAP_CREATE_struct, map_flags) == SoM(union bpf_attr, map_flags),
41 …tatic_assert(offsetof(struct BPF_MAP_CREATE_struct, map_flags) == offsetof(union bpf_attr, map_fla…
591 static_assert(SoM(struct bpf_map_info_struct, map_flags) == SoM(struct bpf_map_info, map_flags),
593 …tatic_assert(offsetof(struct bpf_map_info_struct, map_flags) == offsetof(struct bpf_map_info, map_…
/external/strace/m4/
Dbpf_attr.m47 struct bpf_map_info.map_flags,
47 union bpf_attr.map_flags,

123