/kernel/linux/linux-6.6/drivers/vfio/ |
H A D | container.c | 5 * VFIO container (/dev/vfio/vfio) 80 static bool vfio_iommu_driver_allowed(struct vfio_container *container, in vfio_iommu_driver_allowed() argument 85 return container->noiommu == (driver->ops == &vfio_noiommu_ops); in vfio_iommu_driver_allowed() 143 * it's freed via kref. Must support container/group/device being 148 struct vfio_container *container; in vfio_container_release() local 149 container = container_of(kref, struct vfio_container, kref); in vfio_container_release() 151 kfree(container); in vfio_container_release() 154 static void vfio_container_get(struct vfio_container *container) in vfio_container_get() argument 156 kref_get(&container->kref); in vfio_container_get() 159 static void vfio_container_put(struct vfio_container *container) in vfio_container_put() argument 185 vfio_container_ioctl_check_extension(struct vfio_container *container, unsigned long arg) vfio_container_ioctl_check_extension() argument 235 __vfio_container_attach_groups(struct vfio_container *container, struct vfio_iommu_driver *driver, void *data) __vfio_container_attach_groups() argument 260 vfio_ioctl_set_iommu(struct vfio_container *container, unsigned long arg) vfio_ioctl_set_iommu() argument 330 struct vfio_container *container = filep->private_data; vfio_fops_unl_ioctl() local 361 struct vfio_container *container; vfio_fops_open() local 378 struct vfio_container *container = filep->private_data; vfio_fops_release() local 397 struct vfio_container *container; vfio_container_from_file() local 416 vfio_container_attach_group(struct vfio_container *container, struct vfio_group *group) vfio_container_attach_group() argument 470 struct vfio_container *container = group->container; vfio_group_detach_container() local 535 struct vfio_container *container = device->group->container; vfio_device_container_pin_pages() local 551 struct vfio_container *container = device->group->container; vfio_device_container_unpin_pages() local 564 struct vfio_container *container = device->group->container; vfio_device_container_dma_rw() local [all...] |
H A D | vfio_iommu_spapr_tce.c | 50 * A container needs to remember which preregistered region it has 59 * The container descriptor supports only a single group per container. 60 * Required by the API as the container is not supplied with the IOMMU group 75 static long tce_iommu_mm_set(struct tce_container *container) in tce_iommu_mm_set() argument 77 if (container->mm) { in tce_iommu_mm_set() 78 if (container->mm == current->mm) in tce_iommu_mm_set() 83 container->mm = current->mm; in tce_iommu_mm_set() 84 mmgrab(container->mm); in tce_iommu_mm_set() 89 static long tce_iommu_prereg_free(struct tce_container *container, in tce_iommu_prereg_free() argument 104 tce_iommu_unregister_pages(struct tce_container *container, __u64 vaddr, __u64 size) tce_iommu_unregister_pages() argument 136 tce_iommu_register_pages(struct tce_container *container, __u64 vaddr, __u64 size) tce_iommu_register_pages() argument 198 tce_groups_attached(struct tce_container *container) tce_groups_attached() argument 203 tce_iommu_find_table(struct tce_container *container, phys_addr_t ioba, struct iommu_table **ptbl) tce_iommu_find_table() argument 226 tce_iommu_find_free_table(struct tce_container *container) tce_iommu_find_free_table() argument 238 tce_iommu_enable(struct tce_container *container) tce_iommu_enable() argument 305 tce_iommu_disable(struct tce_container *container) tce_iommu_disable() argument 318 struct tce_container *container; tce_iommu_open() local 346 struct tce_container *container = iommu_data; tce_iommu_release() local 390 tce_iommu_prereg_ua_to_hpa(struct tce_container *container, unsigned long tce, unsigned long shift, unsigned long *phpa, struct mm_iommu_table_group_mem_t **pmem) tce_iommu_prereg_ua_to_hpa() argument 410 tce_iommu_unuse_page_v2(struct tce_container *container, struct iommu_table *tbl, unsigned long entry) tce_iommu_unuse_page_v2() argument 432 tce_iommu_clear(struct tce_container *container, struct iommu_table *tbl, unsigned long entry, unsigned long pages) tce_iommu_clear() argument 500 tce_iommu_build(struct tce_container *container, struct iommu_table *tbl, unsigned long entry, unsigned long tce, unsigned long pages, enum dma_data_direction direction) tce_iommu_build() argument 548 tce_iommu_build_v2(struct tce_container *container, struct iommu_table *tbl, unsigned long entry, unsigned long tce, unsigned long pages, enum dma_data_direction direction) tce_iommu_build_v2() argument 607 tce_iommu_create_table(struct tce_container *container, struct iommu_table_group *table_group, int num, __u32 page_shift, __u64 window_size, __u32 levels, struct iommu_table **ptbl) tce_iommu_create_table() argument 635 tce_iommu_free_table(struct tce_container *container, struct iommu_table *tbl) tce_iommu_free_table() argument 644 tce_iommu_create_window(struct tce_container *container, __u32 page_shift, __u64 window_size, __u32 levels, __u64 *start_addr) tce_iommu_create_window() argument 709 tce_iommu_remove_window(struct tce_container *container, __u64 start_addr) tce_iommu_remove_window() argument 748 tce_iommu_create_default_window(struct tce_container *container) tce_iommu_create_default_window() argument 831 struct tce_container *container = iommu_data; tce_iommu_ioctl() local 1190 tce_iommu_release_ownership(struct tce_container *container, struct iommu_table_group *table_group) tce_iommu_release_ownership() argument 1205 tce_iommu_take_ownership(struct tce_container *container, struct iommu_table_group *table_group) tce_iommu_take_ownership() argument 1235 struct tce_container *container = iommu_data; tce_iommu_attach_group() local 1315 struct tce_container *container = iommu_data; tce_iommu_detach_group() local [all...] |
/kernel/linux/linux-5.10/drivers/vfio/ |
H A D | vfio_iommu_spapr_tce.c | 48 * A container needs to remember which preregistered region it has 57 * The container descriptor supports only a single group per container. 58 * Required by the API as the container is not supplied with the IOMMU group 73 static long tce_iommu_mm_set(struct tce_container *container) in tce_iommu_mm_set() argument 75 if (container->mm) { in tce_iommu_mm_set() 76 if (container->mm == current->mm) in tce_iommu_mm_set() 81 container->mm = current->mm; in tce_iommu_mm_set() 82 mmgrab(container->mm); in tce_iommu_mm_set() 87 static long tce_iommu_prereg_free(struct tce_container *container, in tce_iommu_prereg_free() argument 102 tce_iommu_unregister_pages(struct tce_container *container, __u64 vaddr, __u64 size) tce_iommu_unregister_pages() argument 134 tce_iommu_register_pages(struct tce_container *container, __u64 vaddr, __u64 size) tce_iommu_register_pages() argument 196 tce_groups_attached(struct tce_container *container) tce_groups_attached() argument 201 tce_iommu_find_table(struct tce_container *container, phys_addr_t ioba, struct iommu_table **ptbl) tce_iommu_find_table() argument 224 tce_iommu_find_free_table(struct tce_container *container) tce_iommu_find_free_table() argument 236 tce_iommu_enable(struct tce_container *container) tce_iommu_enable() argument 303 tce_iommu_disable(struct tce_container *container) tce_iommu_disable() argument 316 struct tce_container *container; tce_iommu_open() local 344 struct tce_container *container = iommu_data; tce_iommu_release() local 380 tce_iommu_unuse_page(struct tce_container *container, unsigned long hpa) tce_iommu_unuse_page() argument 389 tce_iommu_prereg_ua_to_hpa(struct tce_container *container, unsigned long tce, unsigned long shift, unsigned long *phpa, struct mm_iommu_table_group_mem_t **pmem) tce_iommu_prereg_ua_to_hpa() argument 409 tce_iommu_unuse_page_v2(struct tce_container *container, struct iommu_table *tbl, unsigned long entry) tce_iommu_unuse_page_v2() argument 431 tce_iommu_clear(struct tce_container *container, struct iommu_table *tbl, unsigned long entry, unsigned long pages) tce_iommu_clear() argument 499 tce_iommu_build(struct tce_container *container, struct iommu_table *tbl, unsigned long entry, unsigned long tce, unsigned long pages, enum dma_data_direction direction) tce_iommu_build() argument 547 tce_iommu_build_v2(struct tce_container *container, struct iommu_table *tbl, unsigned long entry, unsigned long tce, unsigned long pages, enum dma_data_direction direction) tce_iommu_build_v2() argument 606 tce_iommu_create_table(struct tce_container *container, struct iommu_table_group *table_group, int num, __u32 page_shift, __u64 window_size, __u32 levels, struct iommu_table **ptbl) tce_iommu_create_table() argument 634 tce_iommu_free_table(struct tce_container *container, struct iommu_table *tbl) tce_iommu_free_table() argument 643 tce_iommu_create_window(struct tce_container *container, __u32 page_shift, __u64 window_size, __u32 levels, __u64 *start_addr) tce_iommu_create_window() argument 708 tce_iommu_remove_window(struct tce_container *container, __u64 start_addr) tce_iommu_remove_window() argument 747 tce_iommu_create_default_window(struct tce_container *container) tce_iommu_create_default_window() argument 779 struct tce_container *container = iommu_data; tce_iommu_ioctl() local 1141 tce_iommu_release_ownership(struct tce_container *container, struct iommu_table_group *table_group) tce_iommu_release_ownership() argument 1160 tce_iommu_take_ownership(struct tce_container *container, struct iommu_table_group *table_group) tce_iommu_take_ownership() argument 1187 tce_iommu_release_ownership_ddw(struct tce_container *container, struct iommu_table_group *table_group) tce_iommu_release_ownership_ddw() argument 1204 tce_iommu_take_ownership_ddw(struct tce_container *container, struct iommu_table_group *table_group) tce_iommu_take_ownership_ddw() argument 1244 struct tce_container *container = iommu_data; tce_iommu_attach_group() local 1327 struct tce_container *container = iommu_data; tce_iommu_detach_group() local [all...] |
H A D | vfio.c | 75 struct vfio_container *container; member 279 * it's freed via kref. Must support container/group/device being 282 static void vfio_container_get(struct vfio_container *container) in vfio_container_get() argument 284 kref_get(&container->kref); in vfio_container_get() 289 struct vfio_container *container; in vfio_container_release() local 290 container = container_of(kref, struct vfio_container, kref); in vfio_container_release() 292 kfree(container); in vfio_container_release() 295 static void vfio_container_put(struct vfio_container *container) in vfio_container_put() argument 297 kref_put(&container->kref, vfio_container_release); in vfio_container_put() 946 * in use. The container persist in vfio_unregister_group_dev() 980 vfio_ioctl_check_extension(struct vfio_container *container, unsigned long arg) vfio_ioctl_check_extension() argument 1033 __vfio_container_attach_groups(struct vfio_container *container, struct vfio_iommu_driver *driver, void *data) __vfio_container_attach_groups() argument 1057 vfio_ioctl_set_iommu(struct vfio_container *container, unsigned long arg) vfio_ioctl_set_iommu() argument 1134 struct vfio_container *container = filep->private_data; vfio_fops_unl_ioctl() local 1165 struct vfio_container *container; vfio_fops_open() local 1182 struct vfio_container *container = filep->private_data; vfio_fops_release() local 1198 struct vfio_container *container = filep->private_data; vfio_fops_read() local 1213 struct vfio_container *container = filep->private_data; vfio_fops_write() local 1227 struct vfio_container *container = filep->private_data; vfio_fops_mmap() local 1254 struct vfio_container *container = group->container; __vfio_group_unset_container() local 1316 struct vfio_container *container; vfio_group_set_container() local 1898 struct vfio_container *container; vfio_pin_pages() local 1950 struct vfio_container *container; vfio_unpin_pages() local 2010 struct vfio_container *container; vfio_group_pin_pages() local 2057 struct vfio_container *container; vfio_group_unpin_pages() local 2108 struct vfio_container *container; vfio_dma_rw() local 2132 struct vfio_container *container; vfio_register_iommu_notifier() local 2156 struct vfio_container *container; vfio_unregister_iommu_notifier() local [all...] |
/kernel/liteos_a/kernel/extended/container/ |
H A D | los_time_container.c | 61 TimeContainer *newTimeContainer = parent->container->timeForChildContainer; in CreateTimeContainer() 64 child->container->timeContainer = newTimeContainer; in CreateTimeContainer() 65 child->container->timeForChildContainer = newTimeContainer; in CreateTimeContainer() 88 TimeContainer *currTimeContainer = parent->container->timeContainer; in OsCopyTimeContainer() 90 if (currTimeContainer == parent->container->timeForChildContainer) { in OsCopyTimeContainer() 93 child->container->timeContainer = currTimeContainer; in OsCopyTimeContainer() 94 child->container->timeForChildContainer = currTimeContainer; in OsCopyTimeContainer() 111 newContainer->timeContainer = curr->container->timeContainer; in OsUnshareTimeContainer() 112 newContainer->timeForChildContainer = curr->container->timeForChildContainer; in OsUnshareTimeContainer() 125 TimeContainer *timeForChild = CreateNewTimeContainer(curr->container in OsUnshareTimeContainer() 147 OsSetNsTimeContainer(UINT32 flags, Container *container, Container *newContainer) OsSetNsTimeContainer() argument 167 OsTimeContainerDestroy(Container *container) OsTimeContainerDestroy() argument [all...] |
H A D | los_container.c | 50 processCB->container = &g_rootContainer; in OsContainerInitSystemProcess() 54 LOS_AtomicInc(&processCB->container->rc); in OsContainerInitSystemProcess() 56 (VOID)OsAllocSpecifiedVpidUnsafe(processCB->processID, processCB->container->pidContainer, processCB, NULL); in OsContainerInitSystemProcess() 243 Container *container = (Container *)LOS_MemAlloc(m_aucSysMem1, sizeof(Container)); in CreateContainer() local 244 if (container == NULL) { in CreateContainer() 248 (VOID)memset_s(container, sizeof(Container), 0, sizeof(Container)); in CreateContainer() 250 LOS_AtomicInc(&container->rc); in CreateContainer() 251 return container; in CreateContainer() 257 /* Pid container initialization must precede other container initializatio in CopyContainers() 425 DeInitContainers(UINT32 flags, Container *container, LosProcessCB *processCB) DeInitContainers() argument 470 Container *container = processCB->container; OsGetContainerID() local 629 SetNsCreateNewContainers(UINT32 flags, Container *newContainer, Container *container) SetNsCreateNewContainers() argument [all...] |
H A D | los_pid_container.c | 45 PidContainer *pidContainer = processCB->container->pidContainer; in FreeVpid() 63 if (pidContainer == processCB->container->pidContainer) { in FreeVpid() 64 processCB->container->pidContainer = NULL; in FreeVpid() 134 PidContainer *pidContainer = processCB->container->pidContainer; in OsAllocVpid() 189 PidContainer *pidContainer = processCB->container->pidContainer; in OsAllocVtid() 222 PidContainer *pidContainer = curr->container->pidContainer; in OsPidContainerDestroyAllProcess() 246 PRINT_ERR("Pid container kill all process failed, pid %u, errno=%d\n", index, -ret); in OsPidContainerDestroyAllProcess() 251 PRINT_ERR("Pid container wait pid %d failed, errno=%d\n", index, -ret); in OsPidContainerDestroyAllProcess() 295 VOID OsPidContainerDestroy(Container *container, LosProcessCB *processCB) in OsPidContainerDestroy() argument 297 if (container in OsPidContainerDestroy() 493 OsSetNsPidContainer(UINT32 flags, Container *container, Container *newContainer) OsSetNsPidContainer() argument [all...] |
H A D | los_uts_container.c | 94 UtsContainer *parentContainer = parent->container->utsContainer; in CreateUtsContainer() 104 child->container->utsContainer = newUtsContainer; in CreateUtsContainer() 127 UtsContainer *currUtsContainer = parent->container->utsContainer; in OsCopyUtsContainer() 132 child->container->utsContainer = currUtsContainer; in OsCopyUtsContainer() 147 UtsContainer *parentContainer = curr->container->utsContainer; in OsUnshareUtsContainer() 175 UINT32 OsSetNsUtsContainer(UINT32 flags, Container *container, Container *newContainer) in OsSetNsUtsContainer() argument 178 newContainer->utsContainer = container->utsContainer; in OsSetNsUtsContainer() 179 LOS_AtomicInc(&container->utsContainer->rc); in OsSetNsUtsContainer() 183 newContainer->utsContainer = OsCurrProcessGet()->container->utsContainer; in OsSetNsUtsContainer() 188 VOID OsUtsContainerDestroy(Container *container) in OsUtsContainerDestroy() argument 216 Container *container = OsCurrProcessGet()->container; OsGetCurrUtsName() local [all...] |
H A D | los_ipc_container.c | 83 IpcContainer *parentContainer = parent->container->ipcContainer; in CreateIpcContainer() 91 child->container->ipcContainer = newIpcContainer; in CreateIpcContainer() 114 IpcContainer *currIpcContainer = parent->container->ipcContainer; in OsCopyIpcContainer() 119 child->container->ipcContainer = currIpcContainer; in OsCopyIpcContainer() 134 IpcContainer *parentContainer = curr->container->ipcContainer; in OsUnshareIpcContainer() 160 UINT32 OsSetNsIpcContainer(UINT32 flags, Container *container, Container *newContainer) in OsSetNsIpcContainer() argument 163 newContainer->ipcContainer = container->ipcContainer; in OsSetNsIpcContainer() 164 LOS_AtomicInc(&container->ipcContainer->rc); in OsSetNsIpcContainer() 168 newContainer->ipcContainer = OsCurrProcessGet()->container->ipcContainer; in OsSetNsIpcContainer() 173 VOID OsIpcContainerDestroy(Container *container) in OsIpcContainerDestroy() argument [all...] |
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A D | AnyTest.java | 45 TestAny container = TestAny.newBuilder().setValue(Any.pack(message)).build(); in testAnyGeneratedApi() 47 assertTrue(container.getValue().is(TestAllTypes.class)); in testAnyGeneratedApi() 48 assertFalse(container.getValue().is(TestAny.class)); in testAnyGeneratedApi() 50 TestAllTypes result = container.getValue().unpack(TestAllTypes.class); in testAnyGeneratedApi() 56 container.getValue().unpack(TestAny.class); in testAnyGeneratedApi() 63 TestAny.Builder containerBuilder = container.toBuilder(); in testAnyGeneratedApi() 65 container = containerBuilder.build(); in testAnyGeneratedApi() 67 container.getValue().unpack(TestAllTypes.class); in testAnyGeneratedApi() 79 TestAny container = TestAny.newBuilder().setValue(Any.pack(message, "xxx.com")).build(); in testCustomTypeUrls() 82 "xxx.com/" + TestAllTypes.getDescriptor().getFullName(), container in testCustomTypeUrls() [all...] |
/third_party/gn/src/base/ |
H A D | stl_util.h | 32 void IterateAndEraseIf(Container& container, Predicate pred) { in IterateAndEraseIf() argument 33 for (auto it = container.begin(); it != container.end();) { in IterateAndEraseIf() 35 it = container.erase(it); in IterateAndEraseIf() 78 // Returns true if the container is sorted. 81 // Note: Use reverse iterator on container to ensure we only require in STLIsSorted() 122 // Returns true if the sorted container |a1| contains all elements of the sorted 123 // container |a2|. 133 // They provide a generic way to erase elements from a container. 142 void Erase(std::basic_string<CharT, Traits, Allocator>& container, in Erase() argument 149 EraseIf(std::basic_string<CharT, Traits, Allocator>& container, Predicate pred) EraseIf() argument 156 Erase(std::deque<T, Allocator>& container, const Value& value) Erase() argument 162 EraseIf(std::deque<T, Allocator>& container, Predicate pred) EraseIf() argument 168 Erase(std::vector<T, Allocator>& container, const Value& value) Erase() argument 174 EraseIf(std::vector<T, Allocator>& container, Predicate pred) EraseIf() argument 180 Erase(std::forward_list<T, Allocator>& container, const Value& value) Erase() argument 188 EraseIf(std::forward_list<T, Allocator>& container, Predicate pred) EraseIf() argument 193 Erase(std::list<T, Allocator>& container, const Value& value) Erase() argument 201 EraseIf(std::list<T, Allocator>& container, Predicate pred) EraseIf() argument 206 EraseIf(std::map<Key, T, Compare, Allocator>& container, Predicate pred) EraseIf() argument 211 EraseIf(std::multimap<Key, T, Compare, Allocator>& container, Predicate pred) EraseIf() argument 217 EraseIf(std::set<Key, Compare, Allocator>& container, Predicate pred) EraseIf() argument 222 EraseIf(std::multiset<Key, Compare, Allocator>& container, Predicate pred) EraseIf() argument 233 EraseIf(std::unordered_map<Key, T, Hash, KeyEqual, Allocator>& container, Predicate pred) EraseIf() argument 244 EraseIf( std::unordered_multimap<Key, T, Hash, KeyEqual, Allocator>& container, Predicate pred) EraseIf() argument 255 EraseIf(std::unordered_set<Key, Hash, KeyEqual, Allocator>& container, Predicate pred) EraseIf() argument 265 EraseIf(std::unordered_multiset<Key, Hash, KeyEqual, Allocator>& container, Predicate pred) EraseIf() argument [all...] |
/third_party/libuv/test/ |
H A D | benchmark-million-async.c | 33 static struct async_container* container; variable 47 i = fastrand() % ARRAY_SIZE(container->async_handles); in thread_cb() 48 uv_async_send(container->async_handles + i); in thread_cb() 54 container->async_events++; in async_cb() 65 for (i = 0; i < ARRAY_SIZE(container->async_handles); i++) { in timer_cb() 66 uv_async_t* handle = container->async_handles + i; in timer_cb() 69 container->handles_seen++; in timer_cb() 89 container = malloc(sizeof(*container)); in BENCHMARK_IMPL() 90 ASSERT_NOT_NULL(container); in BENCHMARK_IMPL() [all...] |
/third_party/skia/third_party/externals/microhttpd/src/testspdy/ |
H A D | test_struct_namevalue.c | 107 struct SPDY_NameValue *container; in main() local 114 if(NULL == (container = SPDY_name_value_create ())) in main() 119 if(NULL != SPDY_name_value_lookup (container, "anything", &ret)) in main() 124 if(SPDY_name_value_iterate (container, NULL, NULL) != 0) in main() 131 if(SPDY_YES != SPDY_name_value_add(container,pairs[i],pairs[i+1])) in main() 136 if(SPDY_name_value_iterate (container, NULL, NULL) != ((i / 2) + 1)) in main() 142 if(NULL != SPDY_name_value_lookup (container, "anything", &ret)) in main() 149 value = SPDY_name_value_lookup(container,pairs[i], &ret); in main() 158 SPDY_name_value_iterate (container, &iterate_cb, &cls); in main() 161 if(SPDY_name_value_iterate (container, in main() [all...] |
/third_party/skia/third_party/externals/microhttpd/src/microspdy/ |
H A D | structures.c | 35 SPDYF_name_value_is_empty(struct SPDY_NameValue *container) in SPDYF_name_value_is_empty() argument 37 SPDYF_ASSERT(NULL != container, "NULL is not an empty container!"); in SPDYF_name_value_is_empty() 38 return (NULL == container->name && NULL == container->value) ? SPDY_YES : SPDY_NO; in SPDYF_name_value_is_empty() 56 SPDY_name_value_add (struct SPDY_NameValue *container, in SPDY_name_value_add() argument 67 if(NULL == container || NULL == name || NULL == value || 0 == (len = strlen(name))) in SPDY_name_value_add() 78 if(SPDYF_name_value_is_empty(container)) in SPDY_name_value_add() 80 //container is empty/just created in SPDY_name_value_add() 81 if (NULL == (container in SPDY_name_value_add() 190 SPDY_name_value_lookup(struct SPDY_NameValue *container, const char *name, int *num_values) SPDY_name_value_lookup() argument 218 SPDY_name_value_destroy(struct SPDY_NameValue *container) SPDY_name_value_destroy() argument 237 SPDY_name_value_iterate(struct SPDY_NameValue *container, SPDY_NameValueIterator iterator, void *iterator_cls) SPDY_name_value_iterate() argument 457 SPDYF_name_value_to_stream(struct SPDY_NameValue * container[], int num_containers, void **stream) SPDYF_name_value_to_stream() argument 554 SPDYF_name_value_from_stream(void *stream, size_t size, struct SPDY_NameValue ** container) SPDYF_name_value_from_stream() argument [all...] |
/third_party/json/tests/src/ |
H A D | unit-byte_container_with_subtype.cpp | 19 SECTION("empty container") 21 nlohmann::byte_container_with_subtype<std::vector<std::uint8_t>> container; variable 23 CHECK(!container.has_subtype()); 24 CHECK(container.subtype() == static_cast<subtype_type>(-1)); 26 container.clear_subtype(); 27 CHECK(!container.has_subtype()); 28 CHECK(container.subtype() == static_cast<subtype_type>(-1)); 30 container.set_subtype(42); 31 CHECK(container.has_subtype()); 32 CHECK(container [all...] |
/third_party/protobuf/php/src/Google/Protobuf/Internal/ |
H A D | MapFieldIter.php | 50 private $container; variable 60 public function __construct($container, $key_type) 62 $this->container = $container; variable 73 return reset($this->container); 83 return current($this->container); 93 $key = key($this->container); 122 return next($this->container); 132 return key($this->container) !== null;
|
H A D | RepeatedField.php | 53 private $container; variable 76 $this->container = []; variable 126 return $this->container[$offset]; 189 $this->container[] = $value; 191 $count = count($this->container); 198 $this->container[$offset] = $value; 215 $count = count($this->container); 222 array_pop($this->container); 236 return isset($this->container[$offset]); 244 return new RepeatedFieldIter($this->container); [all...] |
/third_party/skia/third_party/externals/dawn/src/common/ |
H A D | ityp_stack_vec.h | 35 this->container().resize(static_cast<I>(size)); in stack_vec() 49 this->container().resize(static_cast<I>(size)); 53 this->container().reserve(static_cast<I>(size)); 57 return this->container().data(); in data() 61 return this->container().data(); in data() 65 return this->container().begin(); 69 return this->container().begin(); 73 return this->container().end(); 77 return this->container().end(); 81 return this->container() in front() [all...] |
/third_party/skia/tests/ |
H A D | TemplatesTest.cpp | 88 TContainer container; in test_container_apis() local 89 // The default constructor may or may not init to empty, depending on the type of container. in test_container_apis() 91 container.reset((TCount)1); in test_container_apis() 92 REPORTER_ASSERT(reporter, container.get()); in test_container_apis() 93 REPORTER_ASSERT(reporter, container.get() == container.data()); in test_container_apis() 95 container.reset((TCount)kStackPreallocCount); in test_container_apis() 96 REPORTER_ASSERT(reporter, container.get()); in test_container_apis() 97 REPORTER_ASSERT(reporter, container.get() == container in test_container_apis() [all...] |
/third_party/vk-gl-cts/framework/delibs/decpp/ |
H A D | deSTLUtil.hpp | 40 //! Test whether `item` is a member of `container`. The type `C` must be an 44 inline bool contains (const C& container, const typename C::key_type& item) in contains() argument 46 const typename C::const_iterator it = container.find(item); in contains() 47 return (it != container.end()); in contains() 75 // Utilities for map-like container types 121 size_t dataSize (const T& container) in dataSize() argument 123 return (container.size() * sizeof(typename T::value_type)); in dataSize() 128 T* dataOrNull (std::vector<T>& container) in dataOrNull() argument 130 return (container.empty() ? nullptr : container in dataOrNull() 135 dataOrNull(const std::vector<T>& container) dataOrNull() argument 142 sizeU32(const T& container) sizeU32() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/aacraid/ |
H A D | commsup.c | 1066 u32 channel, id, lun, container; in aac_handle_aif() local 1075 /* Sniff for container changes */ in aac_handle_aif() 1079 container = channel = id = lun = (u32)-1; in aac_handle_aif() 1091 container = le32_to_cpu(((__le32 *)aifcmd->data)[1]); in aac_handle_aif() 1092 if ((container >> 28)) { in aac_handle_aif() 1093 container = (u32)-1; in aac_handle_aif() 1096 channel = (container >> 24) & 0xF; in aac_handle_aif() 1098 container = (u32)-1; in aac_handle_aif() 1101 id = container & 0xFFFF; in aac_handle_aif() 1103 container in aac_handle_aif() [all...] |
/kernel/linux/linux-6.6/drivers/scsi/aacraid/ |
H A D | commsup.c | 1066 u32 channel, id, lun, container; in aac_handle_aif() local 1075 /* Sniff for container changes */ in aac_handle_aif() 1079 container = channel = id = lun = (u32)-1; in aac_handle_aif() 1091 container = le32_to_cpu(((__le32 *)aifcmd->data)[1]); in aac_handle_aif() 1092 if ((container >> 28)) { in aac_handle_aif() 1093 container = (u32)-1; in aac_handle_aif() 1096 channel = (container >> 24) & 0xF; in aac_handle_aif() 1098 container = (u32)-1; in aac_handle_aif() 1101 id = container & 0xFFFF; in aac_handle_aif() 1103 container in aac_handle_aif() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/basics/ |
H A D | vector.c | 37 vector->container = NULL; in dal_vector_construct() 45 vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); in dal_vector_construct() 46 if (vector->container == NULL) in dal_vector_construct() 64 vector->container = NULL; in dal_vector_presized_costruct() 72 vector->container = kcalloc(count, struct_size, GFP_KERNEL); in dal_vector_presized_costruct() 74 if (vector->container == NULL) in dal_vector_presized_costruct() 83 vector->container + i * struct_size, in dal_vector_presized_costruct() 135 kfree(vector->container); in dal_vector_destruct() 160 if (vector->container == NULL || index >= vector->count) in dal_vector_at_index() 162 return vector->container in dal_vector_at_index() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/basics/ |
H A D | vector.c | 35 vector->container = NULL; in dal_vector_construct() 43 vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); in dal_vector_construct() 44 if (vector->container == NULL) in dal_vector_construct() 61 vector->container = NULL; in dal_vector_presized_costruct() 69 vector->container = kcalloc(count, struct_size, GFP_KERNEL); in dal_vector_presized_costruct() 71 if (vector->container == NULL) in dal_vector_presized_costruct() 80 vector->container + i * struct_size, in dal_vector_presized_costruct() 132 kfree(vector->container); in dal_vector_destruct() 157 if (vector->container == NULL || index >= vector->count) in dal_vector_at_index() 159 return vector->container in dal_vector_at_index() [all...] |
/third_party/mesa3d/.gitlab-ci/container/debian/ |
H A D | x86_test-vk.sh | 66 apt-key add .gitlab-ci/container/debian/winehq.gpg.key 140 . .gitlab-ci/container/install-wine-apitrace.sh 151 . .gitlab-ci/container/container_pre_build.sh 155 . .gitlab-ci/container/build-libdrm.sh 159 . .gitlab-ci/container/build-wayland.sh 163 . .gitlab-ci/container/build-hang-detection.sh 167 PIGLIT_BUILD_TARGETS="piglit_replayer" . .gitlab-ci/container/build-piglit.sh 171 . .gitlab-ci/container/build-fossilize.sh 175 . .gitlab-ci/container/build-deqp.sh 179 . .gitlab-ci/container/buil [all...] |