Lines Matching refs:buf_bytes
70 size_t buf_bytes = 1024; in alloc_gpu_memory() local
77 ptr_1 = rte_gpu_mem_alloc(gpu_id, buf_bytes, 0); in alloc_gpu_memory()
83 ptr_1, buf_bytes); in alloc_gpu_memory()
86 ptr_2 = rte_gpu_mem_alloc(gpu_id, buf_bytes, align); in alloc_gpu_memory()
92 ptr_2, buf_bytes); in alloc_gpu_memory()
139 size_t buf_bytes = 1024; in register_cpu_memory() local
145 ptr = rte_zmalloc(NULL, buf_bytes, 0); in register_cpu_memory()
151 ret = rte_gpu_mem_register(gpu_id, buf_bytes, ptr); in register_cpu_memory()
156 printf("CPU memory registered at 0x%p %zdB\n", ptr, buf_bytes); in register_cpu_memory()
193 size_t buf_bytes = 1024; in gpu_mem_cpu_map() local
200 ptr_gpu = rte_gpu_mem_alloc(gpu_id, buf_bytes, align); in gpu_mem_cpu_map()
206 ptr_gpu, buf_bytes); in gpu_mem_cpu_map()
208 ptr_cpu = rte_gpu_mem_cpu_map(gpu_id, buf_bytes, ptr_gpu); in gpu_mem_cpu_map()