/external/crosvm/rutabaga_gfx/src/rutabaga_gralloc/ |
D | gralloc.rs | 189 fn allocate_memory(&mut self, reqs: ImageMemoryRequirements) -> RutabagaResult<RutabagaHandle>; in allocate_memory() 308 let mut reqs = gralloc.get_image_memory_requirements(info)?; in get_image_memory_requirements() localVariable 309 reqs.size = round_up_to_page_size(reqs.size as usize) as u64; in get_image_memory_requirements() 310 Ok(reqs) in get_image_memory_requirements() 316 reqs: ImageMemoryRequirements, in allocate_memory() 318 let backend = self.determine_optimal_backend(reqs.info); in allocate_memory() 325 gralloc.allocate_memory(reqs) in allocate_memory() 365 let reqs = gralloc.get_image_memory_requirements(info).unwrap(); in create_render_target() localVariable 368 assert_eq!(reqs.strides[0] >= min_reqs.strides[0], true); in create_render_target() 369 assert_eq!(reqs.size >= min_reqs.size, true); in create_render_target() [all …]
|
D | minigbm.rs | 101 let mut reqs: ImageMemoryRequirements = Default::default(); in get_image_memory_requirements() localVariable 109 reqs.map_info = RUTABAGA_MAP_CACHE_CACHED; in get_image_memory_requirements() 111 reqs.map_info = RUTABAGA_MAP_CACHE_WC; in get_image_memory_requirements() 114 reqs.modifier = gbm_buffer.format_modifier(); in get_image_memory_requirements() 116 reqs.strides[plane] = gbm_buffer.plane_stride(plane); in get_image_memory_requirements() 117 reqs.offsets[plane] = gbm_buffer.plane_offset(plane); in get_image_memory_requirements() 131 reqs.info = info; in get_image_memory_requirements() 132 reqs.size = size; in get_image_memory_requirements() 133 Ok(reqs) in get_image_memory_requirements() 136 fn allocate_memory(&mut self, reqs: ImageMemoryRequirements) -> RutabagaResult<RutabagaHandle> { in allocate_memory() [all …]
|
D | system_gralloc.rs | 41 let mut reqs = canonical_image_requirements(info)?; in get_image_memory_requirements() localVariable 42 reqs.map_info = RUTABAGA_MAP_CACHE_CACHED; in get_image_memory_requirements() 43 Ok(reqs) in get_image_memory_requirements() 46 fn allocate_memory(&mut self, reqs: ImageMemoryRequirements) -> RutabagaResult<RutabagaHandle> { in allocate_memory() 47 let shm = SharedMemory::named("rutabaga_gralloc", reqs.size)?; in allocate_memory()
|
D | vulkano_gralloc.rs | 212 let mut reqs: ImageMemoryRequirements = Default::default(); in get_image_memory_requirements() localVariable 234 reqs.strides[plane] = layout.row_pitch as u32; in get_image_memory_requirements() 235 reqs.offsets[plane] = layout.offset as u32; in get_image_memory_requirements() 282 reqs.info = info; in get_image_memory_requirements() 283 reqs.size = memory_requirements.size as u64; in get_image_memory_requirements() 287 reqs.map_info = RUTABAGA_MAP_CACHE_CACHED; in get_image_memory_requirements() 289 reqs.map_info = RUTABAGA_MAP_CACHE_WC; in get_image_memory_requirements() 293 reqs.vulkan_info = Some(VulkanInfo { in get_image_memory_requirements() 298 Ok(reqs) in get_image_memory_requirements() 301 fn allocate_memory(&mut self, reqs: ImageMemoryRequirements) -> RutabagaResult<RutabagaHandle> { in allocate_memory() [all …]
|
/external/strace/tests-mx32/ |
D | netlink_protocol.c | 125 struct reqs { in send_query() struct 130 TAIL_ALLOC_OBJECT_CONST_PTR(struct reqs, reqs); in send_query() 131 memcpy(&reqs->req1, &c_req, sizeof(c_req)); in send_query() 132 memcpy(&reqs->req2, &c_req, sizeof(c_req)); in send_query() 134 rc = sendto(fd, reqs, sizeof(*reqs), MSG_DONTWAIT, NULL, 0); in send_query() 140 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP, in send_query() 141 reqs->req2.nlh.nlmsg_len, NLM_F_DUMP, in send_query() 142 (unsigned) sizeof(*reqs), sprintrc(rc)); in send_query() 145 void *const efault2 = tail_memdup(&reqs->req1, sizeof(reqs->req1)); in send_query() 146 rc = sendto(fd, efault2, sizeof(*reqs), MSG_DONTWAIT, NULL, 0); in send_query() [all …]
|
/external/strace/tests-m32/ |
D | netlink_protocol.c | 125 struct reqs { in send_query() struct 130 TAIL_ALLOC_OBJECT_CONST_PTR(struct reqs, reqs); in send_query() 131 memcpy(&reqs->req1, &c_req, sizeof(c_req)); in send_query() 132 memcpy(&reqs->req2, &c_req, sizeof(c_req)); in send_query() 134 rc = sendto(fd, reqs, sizeof(*reqs), MSG_DONTWAIT, NULL, 0); in send_query() 140 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP, in send_query() 141 reqs->req2.nlh.nlmsg_len, NLM_F_DUMP, in send_query() 142 (unsigned) sizeof(*reqs), sprintrc(rc)); in send_query() 145 void *const efault2 = tail_memdup(&reqs->req1, sizeof(reqs->req1)); in send_query() 146 rc = sendto(fd, efault2, sizeof(*reqs), MSG_DONTWAIT, NULL, 0); in send_query() [all …]
|
/external/strace/tests/ |
D | netlink_protocol.c | 125 struct reqs { in send_query() struct 130 TAIL_ALLOC_OBJECT_CONST_PTR(struct reqs, reqs); in send_query() 131 memcpy(&reqs->req1, &c_req, sizeof(c_req)); in send_query() 132 memcpy(&reqs->req2, &c_req, sizeof(c_req)); in send_query() 134 rc = sendto(fd, reqs, sizeof(*reqs), MSG_DONTWAIT, NULL, 0); in send_query() 140 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP, in send_query() 141 reqs->req2.nlh.nlmsg_len, NLM_F_DUMP, in send_query() 142 (unsigned) sizeof(*reqs), sprintrc(rc)); in send_query() 145 void *const efault2 = tail_memdup(&reqs->req1, sizeof(reqs->req1)); in send_query() 146 rc = sendto(fd, efault2, sizeof(*reqs), MSG_DONTWAIT, NULL, 0); in send_query() [all …]
|
/external/crosvm/rutabaga_gfx/src/cross_domain/ |
D | cross_domain.rs | 95 let reqs = self.gralloc.lock().get_image_memory_requirements(info)?; in get_image_requirements() localVariable 98 strides: reqs.strides, in get_image_requirements() 99 offsets: reqs.offsets, in get_image_requirements() 100 modifier: reqs.modifier, in get_image_requirements() 101 size: reqs.size, in get_image_requirements() 103 map_info: reqs.map_info, in get_image_requirements() 109 if let Some(ref vk_info) = reqs.vulkan_info { in get_image_requirements() 131 self.requirements_blobs.insert(self.blob_id, reqs); in get_image_requirements() 143 let reqs = self in context_create_blob() localVariable 148 if reqs.size != resource_create_blob.size { in context_create_blob() [all …]
|
/external/grpc-grpc/src/ruby/bin/ |
D | math_client.rb | 58 reqs = [1, 2, 3, 4, 5].map { |x| Math::Num.new(num: x) } 59 GRPC.logger.info("sum(1, 2, 3, 4, 5): reqs=#{reqs.inspect}") 60 resp = stub.sum(reqs) # reqs.is_a?(Enumerable) 80 reqs = [] 81 reqs << Math::DivArgs.new(dividend: 7, divisor: 3) 82 reqs << Math::DivArgs.new(dividend: 5, divisor: 2) 83 reqs << Math::DivArgs.new(dividend: 7, divisor: 2) 84 GRPC.logger.info("div(7/3), div(5/2), div(7/2): reqs=#{reqs.inspect}") 85 resp = stub.div_many(reqs)
|
/external/python/cpython2/Lib/distutils/tests/ |
D | test_register.py | 57 self.reqs = [] 63 self.reqs.append(req) 143 self.assertEqual(len(self.conn.reqs), 2) 144 req1 = dict(self.conn.reqs[0].headers) 145 req2 = dict(self.conn.reqs[1].headers) 147 self.assertIn('xxx', self.conn.reqs[1].data) 173 self.assertEqual(len(self.conn.reqs), 1) 174 req = self.conn.reqs[0] 191 self.assertEqual(len(self.conn.reqs), 1) 192 req = self.conn.reqs[0]
|
/external/python/cpython3/Lib/distutils/tests/ |
D | test_register.py | 57 self.reqs = [] 63 self.reqs.append(req) 151 self.assertEqual(len(self.conn.reqs), 2) 152 req1 = dict(self.conn.reqs[0].headers) 153 req2 = dict(self.conn.reqs[1].headers) 157 self.assertIn(b'xxx', self.conn.reqs[1].data) 183 self.assertEqual(len(self.conn.reqs), 1) 184 req = self.conn.reqs[0] 201 self.assertEqual(len(self.conn.reqs), 1) 202 req = self.conn.reqs[0]
|
/external/rust/crates/clap/src/args/ |
D | group.rs | 310 if let Some(ref mut reqs) = self.requires { in requires() 311 reqs.push(n); in requires() 531 let reqs = vec!["r1", "r2", "r3", "r4"]; in groups() localVariable 535 assert_eq!(g.requires, Some(reqs)); in groups() 554 let reqs = vec!["r1", "r2", "r3", "r4"]; in test_debug() localVariable 567 Some(reqs), in test_debug() 588 let reqs = vec!["r1", "r2", "r3", "r4"]; in test_from() localVariable 593 assert_eq!(g2.requires, Some(reqs)); in test_from() 619 let reqs = vec!["r1", "r2", "r3", "r4"]; in test_yaml() localVariable 622 assert_eq!(g.requires, Some(reqs)); in test_yaml()
|
/external/ipsec-tools/src/libipsec/ |
D | test-policy.c | 54 } reqs[] = { variable 111 for (i = 0; i < sizeof(reqs)/sizeof(reqs[0]); i++) { in test1() 112 printf("#%d [%s]\n", i + 1, reqs[i].str); in test1() 114 result = test1sub1(&reqs[i]); in test1() 115 if (result == 0 && reqs[i].result == 1) { in test1() 117 } else if (result == 1 && reqs[i].result == 0) { in test1()
|
/external/oboe/src/opensles/ |
D | EngineOpenSLES.cpp | 83 const SLboolean reqs[] = {SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE}; in createAudioPlayer() local 87 sizeof(ids) / sizeof(ids[0]), ids, reqs); in createAudioPlayer() 95 const SLboolean reqs[] = {SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE}; in createAudioRecorder() local 99 sizeof(ids) / sizeof(ids[0]), ids, reqs); in createAudioRecorder()
|
/external/grpc-grpc/src/ruby/qps/ |
D | worker.rb | 38 def run_server(reqs) argument 43 reqs.each do |req| 57 def run_client(reqs) argument 61 reqs.each do |req|
|
/external/skia/tools/gpu/gl/interface/ |
D | gen_interface.go | 124 reqs := getReqs(feature) 125 if len(reqs) == 0 { 131 for i, req := range reqs { 178 if feature.Required && reqs[0] != CORE_REQUIREMENT { 312 reqs := std.GetReqs(feature) 313 if reqs == nil || len(reqs) == 0 { 317 for _, r := range reqs {
|
/external/mesa3d/src/vulkan/wsi/ |
D | wsi_common_drm.c | 283 VkMemoryRequirements reqs; in wsi_create_native_image() local 284 wsi->GetImageMemoryRequirements(chain->device, image->image, &reqs); in wsi_create_native_image() 305 .allocationSize = reqs.size, in wsi_create_native_image() 307 reqs.memoryTypeBits), in wsi_create_native_image() 391 image->sizes[0] = reqs.size; in wsi_create_native_image() 454 VkMemoryRequirements reqs; in wsi_create_prime_image() local 455 wsi->GetBufferMemoryRequirements(chain->device, image->prime.buffer, &reqs); in wsi_create_prime_image() 456 assert(reqs.size <= linear_size); in wsi_create_prime_image() 478 .memoryTypeIndex = select_memory_type(wsi, 0, reqs.memoryTypeBits), in wsi_create_prime_image() 516 wsi->GetImageMemoryRequirements(chain->device, image->image, &reqs); in wsi_create_prime_image() [all …]
|
/external/rust/crates/clap/src/app/ |
D | usage.rs | 69 let mut reqs: Vec<&str> = p.required().map(|r| &**r).collect(); in create_help_usage() localVariable 70 reqs.sort(); in create_help_usage() 71 reqs.dedup(); in create_help_usage() 72 get_required_usage_from(p, &reqs, None, None, false) in create_help_usage() 324 reqs: &[&'a str], in get_required_usage_from() 331 reqs, in get_required_usage_from() 380 for a in reqs { in get_required_usage_from() 381 get_requires!(a, flags, iter, new_reqs, reqs); in get_required_usage_from() 382 get_requires!(a, opts, iter, new_reqs, reqs); in get_required_usage_from() 383 get_requires!(a, positionals, values, new_reqs, reqs); in get_required_usage_from() [all …]
|
/external/grpc-grpc/src/ruby/lib/grpc/generic/ |
D | service.rb | 173 define_method(mth_name) do |reqs, metadata = {}| 175 client_streamer(route, reqs, marshal, unmarshal, metadata) 183 define_method(mth_name) do |reqs, metadata = {}, &blk| 185 bidi_streamer(route, reqs, marshal, unmarshal, metadata, &blk)
|
/external/angle/src/libANGLE/renderer/gl/ |
D | generate_gl_dispatch_table.py | 346 reqs = (major, minor) 349 gl_required = reqs 351 print('Upgrade ' + entry_point + ' to ' + str(reqs) + ' instead of ' + 353 gl_required = reqs 356 ' instead of ' + str(reqs)) 359 gles2_required = reqs 361 print("Duplicate for " + entry_point + ": " + str(reqs) + " and " +
|
/external/grpc-grpc/src/ruby/pb/test/ |
D | server.rb | 201 def full_duplex_call(reqs, _call) argument 204 FullDuplexEnumerator.new(reqs).each_item 207 def half_duplex_call(reqs) argument 210 full_duplex_call(reqs)
|
/external/python/setuptools/setuptools/tests/ |
D | test_dist.py | 45 reqs = ''' 54 for r in reqs 56 assert [dist.key for dist in resolved_dists if dist] == reqs
|
/external/mesa3d/src/freedreno/vulkan/ |
D | tu_legacy.c | 137 tu_GetBufferMemoryRequirements(VkDevice device, VkBuffer buffer, VkMemoryRequirements *reqs) in tu_GetBufferMemoryRequirements() argument 144 *reqs = reqs2.memoryRequirements; in tu_GetBufferMemoryRequirements() 148 tu_GetImageMemoryRequirements(VkDevice device, VkImage image, VkMemoryRequirements *reqs) in tu_GetImageMemoryRequirements() argument 155 *reqs = reqs2.memoryRequirements; in tu_GetImageMemoryRequirements() 162 VkSparseImageMemoryRequirements *reqs) in tu_GetImageSparseMemoryRequirements() argument 169 if (!reqs) in tu_GetImageSparseMemoryRequirements() 179 reqs[i] = reqs2[i].memoryRequirements; in tu_GetImageSparseMemoryRequirements()
|
/external/deqp/external/vulkancts/framework/vulkan/ |
D | vkYCbCrImageWithMemory.cpp | 49 const VkMemoryRequirements reqs = getImageMemoryRequirements(vk, device, *m_image); in YCbCrImageWithMemory() local 50 m_allocations.push_back(AllocationSp(allocator.allocate(reqs, requirement).release())); in YCbCrImageWithMemory()
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_dump.c | 85 VkMemoryRequirements reqs; in dump_image_init() local 86 anv_GetImageMemoryRequirements(vk_device, image->image, &reqs); in dump_image_init() 91 .allocationSize = reqs.size, in dump_image_init() 205 VkMemoryRequirements reqs; in dump_image_write_to_ppm() local 206 anv_GetImageMemoryRequirements(vk_device, image->image, &reqs); in dump_image_write_to_ppm() 209 result = anv_MapMemory(vk_device, image->memory, 0, reqs.size, 0, (void **)&map); in dump_image_write_to_ppm()
|