| /third_party/mesa3d/src/vulkan/wsi/ |
| H A D | wsi_common_x11.c | 961 * the combined status. The chain status will eventually be returned from 969 _x11_swapchain_result(struct x11_swapchain *chain, VkResult result, in _x11_swapchain_result() argument 973 if (chain->status < 0) in _x11_swapchain_result() 974 return chain->status; in _x11_swapchain_result() 976 /* If we have a new error, mark it as permanent on the chain and return. */ in _x11_swapchain_result() 982 chain->status = result; in _x11_swapchain_result() 995 if (chain->status != VK_SUBOPTIMAL_KHR) { in _x11_swapchain_result() 1000 chain->status = result; in _x11_swapchain_result() 1005 return chain->status; in _x11_swapchain_result() 1007 #define x11_swapchain_result(chain, resul in _x11_swapchain_result() 1013 struct x11_swapchain *chain = (struct x11_swapchain *)wsi_chain; x11_get_wsi_image() local 1021 x11_handle_dri3_present_event(struct x11_swapchain *chain, xcb_present_generic_event_t *event) x11_handle_dri3_present_event() argument 1114 x11_acquire_next_image_poll_x11(struct x11_swapchain *chain, uint32_t *image_index, uint64_t timeout) x11_acquire_next_image_poll_x11() argument 1183 x11_acquire_next_image_from_queue(struct x11_swapchain *chain, uint32_t *image_index_out, uint64_t timeout) x11_acquire_next_image_from_queue() argument 1213 x11_present_to_x11_dri3(struct x11_swapchain *chain, uint32_t image_index, uint64_t target_msc) x11_present_to_x11_dri3() argument 1293 x11_present_to_x11_sw(struct x11_swapchain *chain, uint32_t image_index, uint64_t target_msc) x11_present_to_x11_sw() argument 1344 x11_present_to_x11(struct x11_swapchain *chain, uint32_t image_index, uint64_t target_msc) x11_present_to_x11() argument 1363 struct x11_swapchain *chain = (struct x11_swapchain *)anv_chain; x11_acquire_next_image() local 1416 struct x11_swapchain *chain = (struct x11_swapchain *)anv_chain; x11_queue_present() local 1486 x11_driver_owned_images(const struct x11_swapchain *chain) x11_driver_owned_images() argument 1509 struct x11_swapchain *chain = state; x11_manage_fifo_queues() local 1639 x11_image_init(VkDevice device_h, struct x11_swapchain *chain, const VkSwapchainCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks* pAllocator, struct x11_image *image) x11_image_init() argument 1775 x11_image_finish(struct x11_swapchain *chain, const VkAllocationCallbacks* pAllocator, struct x11_image *image) x11_image_finish() argument 1881 struct x11_swapchain *chain = (struct x11_swapchain *)anv_chain; x11_swapchain_destroy() local 1952 struct x11_swapchain *chain; x11_surface_create_swapchain() local [all...] |
| H A D | wsi_common_win32.c | 53 struct wsi_win32_swapchain *chain; member 306 struct wsi_win32_swapchain *chain, in wsi_win32_image_init() 311 assert(chain->base.use_buffer_blit); in wsi_win32_image_init() 312 VkResult result = wsi_create_image(&chain->base, &chain->base.image_info, in wsi_win32_image_init() 318 chain->wnd = win32_surface->hwnd; in wsi_win32_image_init() 319 chain->chain_dc = GetDC(chain->wnd); in wsi_win32_image_init() 321 image->dc = CreateCompatibleDC(chain->chain_dc); in wsi_win32_image_init() 342 image->chain in wsi_win32_image_init() 305 wsi_win32_image_init(VkDevice device_h, struct wsi_win32_swapchain *chain, const VkSwapchainCreateInfoKHR *create_info, const VkAllocationCallbacks *allocator, struct wsi_win32_image *image) wsi_win32_image_init() argument 348 wsi_win32_image_finish(struct wsi_win32_swapchain *chain, const VkAllocationCallbacks *allocator, struct wsi_win32_image *image) wsi_win32_image_finish() argument 362 struct wsi_win32_swapchain *chain = wsi_win32_swapchain_destroy() local 379 struct wsi_win32_swapchain *chain = wsi_win32_get_wsi_image() local 390 struct wsi_win32_swapchain *chain = wsi_win32_acquire_next_image() local 406 struct wsi_win32_swapchain *chain = (struct wsi_win32_swapchain *) drv_chain; wsi_win32_queue_present() local 442 struct wsi_win32_swapchain *chain; wsi_win32_surface_create_swapchain() local [all...] |
| H A D | wsi_common_wayland.c | 953 struct wsi_wl_swapchain *chain = (struct wsi_wl_swapchain *)wsi_chain; in wsi_wl_swapchain_get_wsi_image() local 954 return &chain->images[image_index].base; in wsi_wl_swapchain_get_wsi_image() 962 struct wsi_wl_swapchain *chain = (struct wsi_wl_swapchain *)wsi_chain; in wsi_wl_swapchain_acquire_next_image() local 965 int wl_fd = wl_display_get_fd(chain->display->wl_display); in wsi_wl_swapchain_acquire_next_image() 974 int ret = wl_display_dispatch_queue_pending(chain->display->wl_display, in wsi_wl_swapchain_acquire_next_image() 975 chain->display->queue); in wsi_wl_swapchain_acquire_next_image() 980 for (uint32_t i = 0; i < chain->base.image_count; i++) { in wsi_wl_swapchain_acquire_next_image() 981 if (!chain->images[i].busy) { in wsi_wl_swapchain_acquire_next_image() 984 chain->images[i].busy = true; in wsi_wl_swapchain_acquire_next_image() 996 ret = wl_display_prepare_read_queue(chain in wsi_wl_swapchain_acquire_next_image() 1035 struct wsi_wl_swapchain *chain = data; frame_handle_done() local 1052 struct wsi_wl_swapchain *chain = (struct wsi_wl_swapchain *)wsi_chain; wsi_wl_swapchain_queue_present() local 1135 wsi_wl_image_init(struct wsi_wl_swapchain *chain, struct wsi_wl_image *image, const VkSwapchainCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks* pAllocator) wsi_wl_image_init() argument 1216 wsi_wl_swapchain_images_free(struct wsi_wl_swapchain *chain) wsi_wl_swapchain_images_free() argument 1232 wsi_wl_swapchain_chain_free(struct wsi_wl_swapchain *chain, const VkAllocationCallbacks *pAllocator) wsi_wl_swapchain_chain_free() argument 1252 struct wsi_wl_swapchain *chain = (struct wsi_wl_swapchain *)wsi_chain; wsi_wl_swapchain_destroy() local 1271 struct wsi_wl_swapchain *chain; wsi_wl_surface_create_swapchain() local [all...] |
| H A D | wsi_common_drm.c | 109 prepare_signal_dma_buf_from_semaphore(struct wsi_swapchain *chain, in prepare_signal_dma_buf_from_semaphore() argument 114 if (!(chain->wsi->semaphore_export_handle_types & in prepare_signal_dma_buf_from_semaphore() 137 result = chain->wsi->CreateSemaphore(chain->device, &semaphore_info, in prepare_signal_dma_buf_from_semaphore() 138 &chain->alloc, in prepare_signal_dma_buf_from_semaphore() 139 &chain->dma_buf_semaphore); in prepare_signal_dma_buf_from_semaphore() 147 wsi_prepare_signal_dma_buf_from_semaphore(struct wsi_swapchain *chain, in wsi_prepare_signal_dma_buf_from_semaphore() argument 153 if (unlikely(chain->signal_dma_buf_from_semaphore == 0)) { in wsi_prepare_signal_dma_buf_from_semaphore() 154 result = prepare_signal_dma_buf_from_semaphore(chain, image); in wsi_prepare_signal_dma_buf_from_semaphore() 156 chain in wsi_prepare_signal_dma_buf_from_semaphore() 165 wsi_signal_dma_buf_from_semaphore(const struct wsi_swapchain *chain, const struct wsi_image *image) wsi_signal_dma_buf_from_semaphore() argument 203 wsi_create_sync_for_dma_buf_wait(const struct wsi_swapchain *chain, const struct wsi_image *image, enum vk_sync_features req_features, struct vk_sync **sync_out) wsi_create_sync_for_dma_buf_wait() argument 321 wsi_configure_native_image(const struct wsi_swapchain *chain, const VkSwapchainCreateInfoKHR *pCreateInfo, uint32_t num_modifier_lists, const uint32_t *num_modifiers, const uint64_t *const *modifiers, struct wsi_image_info *info) wsi_configure_native_image() argument 462 wsi_create_native_image_mem(const struct wsi_swapchain *chain, const struct wsi_image_info *info, struct wsi_image *image) wsi_create_native_image_mem() argument 565 wsi_create_prime_image_mem(const struct wsi_swapchain *chain, const struct wsi_image_info *info, struct wsi_image *image) wsi_create_prime_image_mem() argument 595 wsi_configure_prime_image(UNUSED const struct wsi_swapchain *chain, const VkSwapchainCreateInfoKHR *pCreateInfo, bool use_modifier, struct wsi_image_info *info) wsi_configure_prime_image() argument [all...] |
| H A D | wsi_common.c | 271 struct wsi_swapchain *chain, in wsi_swapchain_init() 280 memset(chain, 0, sizeof(*chain)); in wsi_swapchain_init() 282 vk_object_base_init(device, &chain->base, VK_OBJECT_TYPE_SWAPCHAIN_KHR); in wsi_swapchain_init() 284 chain->wsi = wsi; in wsi_swapchain_init() 285 chain->device = _device; in wsi_swapchain_init() 286 chain->alloc = *pAllocator; in wsi_swapchain_init() 288 chain->use_buffer_blit = use_buffer_blit || (WSI_DEBUG & WSI_DEBUG_BUFFER); in wsi_swapchain_init() 290 chain->use_buffer_blit = true; in wsi_swapchain_init() 292 chain in wsi_swapchain_init() 270 wsi_swapchain_init(const struct wsi_device *wsi, struct wsi_swapchain *chain, VkDevice _device, const VkSwapchainCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, bool use_buffer_blit) wsi_swapchain_init() argument 384 wsi_swapchain_finish(struct wsi_swapchain *chain) wsi_swapchain_finish() argument 413 wsi_configure_image(const struct wsi_swapchain *chain, const VkSwapchainCreateInfoKHR *pCreateInfo, VkExternalMemoryHandleTypeFlags handle_types, struct wsi_image_info *info) wsi_configure_image() argument 515 wsi_destroy_image_info(const struct wsi_swapchain *chain, struct wsi_image_info *info) wsi_destroy_image_info() argument 525 wsi_create_image(const struct wsi_swapchain *chain, const struct wsi_image_info *info, struct wsi_image *image) wsi_create_image() argument 566 wsi_destroy_image(const struct wsi_swapchain *chain, struct wsi_image *image) wsi_destroy_image() argument 887 wsi_signal_semaphore_for_image(struct vk_device *device, const struct wsi_swapchain *chain, const struct wsi_image *image, VkSemaphore _semaphore) wsi_signal_semaphore_for_image() argument 919 wsi_signal_fence_for_image(struct vk_device *device, const struct wsi_swapchain *chain, const struct wsi_image *image, VkFence _fence) wsi_signal_fence_for_image() argument 1337 wsi_create_buffer_image_mem(const struct wsi_swapchain *chain, const struct wsi_image_info *info, struct wsi_image *image, VkExternalMemoryHandleTypeFlags handle_types, bool implicit_sync) wsi_create_buffer_image_mem() argument 1447 wsi_finish_create_buffer_image(const struct wsi_swapchain *chain, const struct wsi_image_info *info, struct wsi_image *image) wsi_finish_create_buffer_image() argument 1548 wsi_configure_buffer_image(UNUSED const struct wsi_swapchain *chain, const VkSwapchainCreateInfoKHR *pCreateInfo, uint32_t stride_align, uint32_t size_align, struct wsi_image_info *info) wsi_configure_buffer_image() argument 1586 wsi_create_cpu_linear_image_mem(const struct wsi_swapchain *chain, const struct wsi_image_info *info, struct wsi_image *image) wsi_create_cpu_linear_image_mem() argument 1651 wsi_create_cpu_buffer_image_mem(const struct wsi_swapchain *chain, const struct wsi_image_info *info, struct wsi_image *image) wsi_create_cpu_buffer_image_mem() argument 1671 wsi_configure_cpu_image(const struct wsi_swapchain *chain, const VkSwapchainCreateInfoKHR *pCreateInfo, uint8_t *(alloc_shm)(struct wsi_image *image, unsigned size), struct wsi_image_info *info) wsi_configure_cpu_image() argument [all...] |
| H A D | wsi_common_private.h | 68 VkResult (*create_mem)(const struct wsi_swapchain *chain, 72 VkResult (*finish_create)(const struct wsi_swapchain *chain, 146 struct wsi_swapchain *chain, 156 void wsi_swapchain_finish(struct wsi_swapchain *chain); 168 wsi_configure_native_image(const struct wsi_swapchain *chain, 176 wsi_configure_prime_image(UNUSED const struct wsi_swapchain *chain, 182 wsi_configure_cpu_image(const struct wsi_swapchain *chain, 189 wsi_create_buffer_image_mem(const struct wsi_swapchain *chain, 196 wsi_finish_create_buffer_image(const struct wsi_swapchain *chain, 201 wsi_configure_buffer_image(UNUSED const struct wsi_swapchain *chain, [all...] |
| /third_party/skia/third_party/externals/dawn/src/tests/unittests/wire/ |
| H A D | WireExtensionTests.cpp | 36 clientExt.chain.sType = WGPUSType_PrimitiveDepthClampingState; in TEST_F() 37 clientExt.chain.next = nullptr; in TEST_F() 43 renderPipelineDesc.primitive.nextInChain = &clientExt.chain; in TEST_F() 51 EXPECT_EQ(ext->chain.sType, clientExt.chain.sType); in TEST_F() 53 EXPECT_EQ(ext->chain.next, nullptr); in TEST_F() 69 clientExt2.chain.sType = WGPUSType_PrimitiveDepthClampingState; in TEST_F() 70 clientExt2.chain.next = nullptr; in TEST_F() 74 clientExt1.chain.sType = WGPUSType_PrimitiveDepthClampingState; in TEST_F() 75 clientExt1.chain in TEST_F() [all...] |
| /third_party/nghttp2/lib/ |
| H A D | nghttp2_buf.c | 91 static int buf_chain_new(nghttp2_buf_chain **chain, size_t chunk_length, in buf_chain_new() argument 95 *chain = nghttp2_mem_malloc(mem, sizeof(nghttp2_buf_chain)); in buf_chain_new() 96 if (*chain == NULL) { in buf_chain_new() 100 (*chain)->next = NULL; in buf_chain_new() 102 rv = nghttp2_buf_init2(&(*chain)->buf, chunk_length, mem); in buf_chain_new() 104 nghttp2_mem_free(mem, *chain); in buf_chain_new() 111 static void buf_chain_del(nghttp2_buf_chain *chain, nghttp2_mem *mem) { in buf_chain_del() argument 112 nghttp2_buf_free(&chain->buf, mem); in buf_chain_del() 113 nghttp2_mem_free(mem, chain); in buf_chain_del() 131 nghttp2_buf_chain *chain; in nghttp2_bufs_init3() local 160 nghttp2_buf_chain *chain; nghttp2_bufs_realloc() local 185 nghttp2_buf_chain *chain, *next_chain; nghttp2_bufs_free() local 204 nghttp2_buf_chain *chain; nghttp2_bufs_wrap_init() local 305 nghttp2_buf_chain *chain; bufs_alloc_chain() local 435 nghttp2_buf_chain *chain; nghttp2_bufs_remove() local 470 nghttp2_buf_chain *chain; nghttp2_bufs_remove_copy() local 487 nghttp2_buf_chain *chain, *ci; nghttp2_bufs_reset() local 522 nghttp2_buf_chain *chain; nghttp2_bufs_next_present() local [all...] |
| /third_party/node/deps/nghttp2/lib/ |
| H A D | nghttp2_buf.c | 91 static int buf_chain_new(nghttp2_buf_chain **chain, size_t chunk_length, in buf_chain_new() argument 95 *chain = nghttp2_mem_malloc(mem, sizeof(nghttp2_buf_chain)); in buf_chain_new() 96 if (*chain == NULL) { in buf_chain_new() 100 (*chain)->next = NULL; in buf_chain_new() 102 rv = nghttp2_buf_init2(&(*chain)->buf, chunk_length, mem); in buf_chain_new() 104 nghttp2_mem_free(mem, *chain); in buf_chain_new() 111 static void buf_chain_del(nghttp2_buf_chain *chain, nghttp2_mem *mem) { in buf_chain_del() argument 112 nghttp2_buf_free(&chain->buf, mem); in buf_chain_del() 113 nghttp2_mem_free(mem, chain); in buf_chain_del() 131 nghttp2_buf_chain *chain; in nghttp2_bufs_init3() local 160 nghttp2_buf_chain *chain; nghttp2_bufs_realloc() local 185 nghttp2_buf_chain *chain, *next_chain; nghttp2_bufs_free() local 204 nghttp2_buf_chain *chain; nghttp2_bufs_wrap_init() local 305 nghttp2_buf_chain *chain; bufs_alloc_chain() local 435 nghttp2_buf_chain *chain; nghttp2_bufs_remove() local 470 nghttp2_buf_chain *chain; nghttp2_bufs_remove_copy() local 487 nghttp2_buf_chain *chain, *ci; nghttp2_bufs_reset() local 522 nghttp2_buf_chain *chain; nghttp2_bufs_next_present() local [all...] |
| /third_party/skia/third_party/externals/dawn/generator/templates/dawn_native/ |
| H A D | ChainUtils.h | 24 void FindInChain(const ChainedStruct* chain, const {{as_cppEnum(value.name)}}** out); 28 // Verifies that |chain| only contains ChainedStructs of types enumerated in 30 // |oneOfConstraints| defines a set of sTypes that cannot coexist in the same chain. 32 // ValidateSTypes(chain, { { ShaderModuleSPIRVDescriptor, ShaderModuleWGSLDescriptor } })) 33 // ValidateSTypes(chain, { { Extension1 }, { Extension2 } }) 34 MaybeError ValidateSTypes(const ChainedStruct* chain, 38 MaybeError ValidateSingleSTypeInner(const ChainedStruct* chain, T sType) { in ValidateSingleSTypeInner() argument 39 DAWN_INVALID_IF(chain->sType != sType, in ValidateSingleSTypeInner() 40 "Unsupported sType (%s). Expected (%s)", chain->sType, sType); in ValidateSingleSTypeInner() 45 MaybeError ValidateSingleSTypeInner(const ChainedStruct* chain, argument 55 ValidateSingleSType(const ChainedStruct* chain, T sType) ValidateSingleSType() argument 67 ValidateSingleSType(const ChainedStruct* chain, T sType, Args... sTypes) ValidateSingleSType() argument [all...] |
| H A D | ChainUtils.cpp | 23 void FindInChain(const ChainedStruct* chain, const {{as_cppEnum(value.name)}}** out) { in FindInChain() argument 24 for (; chain; chain = chain->nextInChain) { 25 if (chain->sType == wgpu::SType::{{as_cppEnum(value.name)}}) { 26 *out = static_cast<const {{as_cppEnum(value.name)}}*>(chain); 34 MaybeError ValidateSTypes(const ChainedStruct* chain, in ValidateSTypes() argument 37 for (; chain; chain = chain in ValidateSTypes() [all...] |
| /third_party/node/deps/openssl/openssl/crypto/ec/curve448/ |
| H A D | scalar.c | 53 c448_dsword_t chain = 0; in sc_subx() local 58 chain = (chain + accum[i]) - sub->limb[i]; in sc_subx() 59 out->limb[i] = (c448_word_t)chain; in sc_subx() 60 chain >>= WBITS; in sc_subx() 62 borrow = (c448_word_t)chain + extra; /* = 0 or -1 */ in sc_subx() 64 chain = 0; in sc_subx() 66 chain = (chain + out->limb[i]) + (p->limb[i] & borrow); in sc_subx() 67 out->limb[i] = (c448_word_t)chain; in sc_subx() 83 c448_dword_t chain = 0; sc_montmul() local 127 c448_dword_t chain = 0; ossl_curve448_scalar_add() local 229 c448_dword_t chain = 0; ossl_curve448_scalar_halve() local [all...] |
| /third_party/openssl/crypto/ec/curve448/ |
| H A D | scalar.c | 53 c448_dsword_t chain = 0; in sc_subx() local 58 chain = (chain + accum[i]) - sub->limb[i]; in sc_subx() 59 out->limb[i] = (c448_word_t)chain; in sc_subx() 60 chain >>= WBITS; in sc_subx() 62 borrow = (c448_word_t)chain + extra; /* = 0 or -1 */ in sc_subx() 64 chain = 0; in sc_subx() 66 chain = (chain + out->limb[i]) + (p->limb[i] & borrow); in sc_subx() 67 out->limb[i] = (c448_word_t)chain; in sc_subx() 83 c448_dword_t chain = 0; sc_montmul() local 127 c448_dword_t chain = 0; ossl_curve448_scalar_add() local 229 c448_dword_t chain = 0; ossl_curve448_scalar_halve() local [all...] |
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
| H A D | licm_conditions.cpp | 75 auto chain = conditionChainManager_.FindConditionChain(block); in FindHoistableConditionChains() local 76 if (chain == nullptr) { in FindHoistableConditionChains() 79 auto multiplePredsSucc = chain->GetMultiplePredecessorsSuccessor(); in FindHoistableConditionChains() 80 auto singlePredSucc = chain->GetSinglePredecessorSuccessor(); in FindHoistableConditionChains() 82 << "Found conditions chain " << chain->GetFirstBlock()->GetId() << "->" << chain->GetLastBlock()->GetId() in FindHoistableConditionChains() 84 if (!IsHoistable(chain)) { in FindHoistableConditionChains() 85 COMPILER_LOG(DEBUG, LICM_COND_OPT) << "Skip not hoistable chain"; in FindHoistableConditionChains() 88 auto hoistPhiAvailable = IsHoistPhiAvailable(chain, multiplePredsSuc in FindHoistableConditionChains() 99 IsHoistable(const ConditionChain *chain) IsHoistable() argument 127 IsHoistPhiAvailable(const ConditionChain *chain, ArenaVector<BasicBlock *> &preds, const BasicBlock *singlePredSucc) IsHoistPhiAvailable() argument 138 AllPhiAllowConditionChainHoisting(const ConditionChain *chain, const BasicBlock *multiplePredsSucc, bool hoistPhiAvailable) AllPhiAllowConditionChainHoisting() argument 154 SamePhiInputFromChain(Inst *phi, const ConditionChain *chain) SamePhiInputFromChain() argument 226 auto chain = chainCtx.GetChain(); HoistConditionChains() local 254 SaveProcessedBlocks(const ConditionChain *chain) SaveProcessedBlocks() argument 267 SplitChainFirstBasicBlock(ConditionChain *chain) SplitChainFirstBasicBlock() argument 282 auto chain = chainCtx.GetChain(); ReplaceChainWithSingleBlock() local 319 AddPhiInst(BasicBlock *bb, const ConditionChain *chain) AddPhiInst() argument 332 AddSingleIfImmInst(BasicBlock *bb, const ConditionChain *chain, Inst *input) AddSingleIfImmInst() argument 351 auto chain = chainCtx.GetChain(); UpdateMultiplePredecessorsSuccessorsPreds() local 379 UpdatePhis(const ConditionChain *chain, BasicBlock *multiplePredsSucc, BasicBlock *phiBlock, bool hoistPhiAvailable) UpdatePhis() argument [all...] |
| H A D | licm_conditions.h | 28 ConditionChainContext(ConditionChain *chain, BasicBlock *multiplePredecessorsSuccessor, in ConditionChainContext() argument 30 : chain_(chain), in ConditionChainContext() 100 static bool IsHoistPhiAvailable(const ConditionChain *chain, ArenaVector<BasicBlock *> &preds, 104 bool IsHoistable(const ConditionChain *chain); 107 bool AllPhiAllowConditionChainHoisting(const ConditionChain *chain, const BasicBlock *multiplePredsSucc, 109 Inst *SamePhiInputFromChain(Inst *phi, const ConditionChain *chain); 111 void SplitChainFirstBasicBlock(ConditionChain *chain); 114 PhiInst *AddPhiInst(BasicBlock *bb, const ConditionChain *chain); 115 void AddSingleIfImmInst(BasicBlock *bb, const ConditionChain *chain, Inst *input); 116 void SaveProcessedBlocks(const ConditionChain *chain); [all...] |
| /third_party/ffmpeg/libavformat/ |
| H A D | rtpenc_mpegts.c | 38 MuxChain *chain = s->priv_data; in rtp_mpegts_write_close() local 40 if (chain->mpegts_ctx) { in rtp_mpegts_write_close() 41 av_write_trailer(chain->mpegts_ctx); in rtp_mpegts_write_close() 42 ffio_free_dyn_buf(&chain->mpegts_ctx->pb); in rtp_mpegts_write_close() 43 avformat_free_context(chain->mpegts_ctx); in rtp_mpegts_write_close() 45 if (chain->rtp_ctx) { in rtp_mpegts_write_close() 46 av_write_trailer(chain->rtp_ctx); in rtp_mpegts_write_close() 47 avformat_free_context(chain->rtp_ctx); in rtp_mpegts_write_close() 50 av_packet_free(&chain->pkt); in rtp_mpegts_write_close() 57 MuxChain *chain in rtp_mpegts_write_header() local 140 MuxChain *chain = s->priv_data; rtp_mpegts_write_packet() local [all...] |
| /foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
| H A D | firewall_manager.cpp | 101 int32_t FirewallManager::IsFirewallChian(ChainType chain) in IsFirewallChian() argument 103 if (chain != ChainType::CHAIN_OHFW_DOZABLE && chain != ChainType::CHAIN_OHFW_POWERSAVING in IsFirewallChian() 104 && chain != ChainType::CHAIN_OHFW_UNDOZABLE && chain != ChainType::CHAIN_OHFW_ALLOWED_LIST_BOX) { in IsFirewallChian() 110 std::string FirewallManager::FetchChainName(ChainType chain) in FetchChainName() argument 112 NETNATIVE_LOG_D("FirewallManager FetchChainName: chain=%{public}d", chain); in FetchChainName() 114 switch (chain) { in FetchChainName() 143 FirewallType FirewallManager::FetchChainType(ChainType chain) in FetchChainType() argument 248 IptablesNewChain(ChainType chain) IptablesNewChain() argument 255 IptablesDeleteChain(ChainType chain) IptablesDeleteChain() argument 277 SetUidsAllowedListChain(ChainType chain, const std::vector<uint32_t> &uids) SetUidsAllowedListChain() argument 326 SetUidsDeniedListChain(ChainType chain, const std::vector<uint32_t> &uids) SetUidsDeniedListChain() argument 360 EnableChain(ChainType chain, bool enable) EnableChain() argument 400 SetUidRule(ChainType chain, uint32_t uid, FirewallRule firewallRule) SetUidRule() argument [all...] |
| /third_party/mesa3d/src/freedreno/rnn/ |
| H A D | rnn.c | 82 xmlNode *chain = attr->children; in getcontent() local 85 while (chain) { in getcontent() 86 if (chain->type == XML_TEXT_NODE) in getcontent() 87 size += strlen(chain->content); in getcontent() 88 chain = chain->next; in getcontent() 91 chain = attr->children; in getcontent() 92 while (chain) { in getcontent() 93 if (chain->type == XML_TEXT_NODE) { in getcontent() 94 char* sp = chain in getcontent() 112 xmlNode *chain = attr->children; getattrib() local 239 xmlNode *chain = node->children; parsevalue() local 278 xmlNode *chain = node->children; parsespectype() local 343 xmlNode *chain = node->children; parseenum() local 374 xmlNode *chain = node->children; parsebitfield() local 448 xmlNode *chain = node->children; parsebitset() local 541 xmlNode *chain = node->children; trydelem() local 609 xmlNode *chain = node->children; trydelem() local 652 xmlNode *chain = node->children; parsegroup() local 728 xmlNode *chain = node->children; parsedomain() local 754 xmlNode *chain = node->children; parsecopyright() local 942 xmlNode *chain = root->children; rnn_parsefile() local [all...] |
| /third_party/openssl/test/ |
| H A D | bio_prefix_text.c | 21 * This program sets up a chain of BIO_f_filter() on top of bio_out, how 24 * text from bio_in and prints it out through the BIO chain. 40 static BIO **chain = NULL; variable 53 * idx is the index to the BIO_f_filter chain(), where 0 is closest 86 if (!BIO_write_ex(chain[amount - 1], buf, bytes_in, &bytes)) in run_pipe() 99 chain = OPENSSL_zalloc(sizeof(*chain) * n); in setup_bio_chain() 101 if (chain != NULL) { in setup_bio_chain() 112 chain[i] = BIO_push(curr, next); in setup_bio_chain() 113 if (chain[ in setup_bio_chain() [all...] |
| H A D | cmp_protect_test.c | 29 STACK_OF(X509) *chain; 46 sk_X509_free(fixture->chain); in tear_down() 330 /* The cert chain tests use EC certs so we skip them in no-ec builds */ 336 STACK_OF(X509) *chain = in execute_cmp_build_cert_chain_test() 340 if (TEST_ptr(chain)) { in execute_cmp_build_cert_chain_test() 341 /* Check whether chain built is equal to the expected one */ in execute_cmp_build_cert_chain_test() 342 ret = TEST_int_eq(0, STACK_OF_X509_cmp(chain, fixture->chain)); in execute_cmp_build_cert_chain_test() 343 sk_X509_pop_free(chain, X509_free); in execute_cmp_build_cert_chain_test() 352 chain in execute_cmp_build_cert_chain_test() [all...] |
| /third_party/gn/src/gn/ |
| H A D | header_checker_unittest.cc | 66 // Some headers that are automatically set up with a public dependency chain. 86 // chain so that A -> P -> C. A will depend on C via two different paths. in TEST_F() 100 HeaderChecker::Chain chain; in TEST_F() local 101 EXPECT_FALSE(checker->IsDependencyOf(&a_, &a_, &chain, &is_permitted)); in TEST_F() 104 chain.clear(); in TEST_F() 106 EXPECT_TRUE(checker->IsDependencyOf(&b_, &a_, &chain, &is_permitted)); in TEST_F() 107 ASSERT_EQ(2u, chain.size()); in TEST_F() 108 EXPECT_EQ(HeaderChecker::ChainLink(&b_, true), chain[0]); in TEST_F() local 109 EXPECT_EQ(HeaderChecker::ChainLink(&a_, true), chain[1]); in TEST_F() local 114 chain in TEST_F() 118 EXPECT_EQ(HeaderChecker::ChainLink(&c_, true), chain[0]); TEST_F() local 119 EXPECT_EQ(HeaderChecker::ChainLink(&b_, true), chain[1]); TEST_F() local 120 EXPECT_EQ(HeaderChecker::ChainLink(&a_, true), chain[2]); TEST_F() local 137 EXPECT_EQ(HeaderChecker::ChainLink(&c_, false), chain[0]); TEST_F() local 138 EXPECT_EQ(HeaderChecker::ChainLink(&p, true), chain[1]); TEST_F() local 139 EXPECT_EQ(HeaderChecker::ChainLink(&a_, true), chain[2]); TEST_F() local 148 EXPECT_EQ(HeaderChecker::ChainLink(&c_, false), chain[0]); TEST_F() local 149 EXPECT_EQ(HeaderChecker::ChainLink(&p, true), chain[1]); TEST_F() local 261 HeaderChecker::Chain chain; TEST_F() local 267 EXPECT_EQ(HeaderChecker::ChainLink(&d_, false), chain[0]); TEST_F() local 268 EXPECT_EQ(HeaderChecker::ChainLink(&z, false), chain[1]); TEST_F() local 269 EXPECT_EQ(HeaderChecker::ChainLink(&a_, true), chain[2]); TEST_F() local 281 EXPECT_EQ(HeaderChecker::ChainLink(&d_, true), chain[0]); TEST_F() local 282 EXPECT_EQ(HeaderChecker::ChainLink(&c_, true), chain[1]); TEST_F() local 283 EXPECT_EQ(HeaderChecker::ChainLink(&b_, true), chain[2]); TEST_F() local 284 EXPECT_EQ(HeaderChecker::ChainLink(&a_, true), chain[3]); TEST_F() local [all...] |
| H A D | header_checker.cc | 57 // Given a reverse dependency chain where the target chain[0]'s includes are 58 // being used by chain[end] and not all deps are public, returns the string 60 std::string GetDependencyChainPublicError(const HeaderChecker::Chain& chain) { in GetDependencyChainPublicError() argument 63 chain[chain.size() - 1].target->label().GetUserVisibleName(false) + in GetDependencyChainPublicError() 65 chain[0].target->label().GetUserVisibleName(false) + "\n"; in GetDependencyChainPublicError() 67 // Invalid chains should always be 0 (no chain) or more than two in GetDependencyChainPublicError() 70 DCHECK(chain.size() != 1 && chain in GetDependencyChainPublicError() 384 Chain chain; // Prevent reallocating in the loop. CheckInclude() local 517 IsDependencyOf(const Target* search_for, const Target* search_from, Chain* chain, bool* is_permitted) const IsDependencyOf() argument [all...] |
| /foundation/communication/netmanager_base/services/netpolicymanager/src/common/ |
| H A D | netsys_policy_wrapper.cpp | 90 uint32_t chain = ChainType::CHAIN_OHFW_ALLOWED_LIST_BOX; in PowerSaveUpdataAllowedList() local 91 auto netsysReturnValue = NetsysController::GetInstance().FirewallSetUidRule(chain, uids, firewallRule); in PowerSaveUpdataAllowedList() 97 int32_t NetsysPolicyWrapper::FirewallSetUidsAllowedListChain(uint32_t chain, const std::vector<uint32_t> &uids) in FirewallSetUidsAllowedListChain() argument 99 auto netsysReturnValue = NetsysController::GetInstance().FirewallSetUidsAllowedListChain(chain, uids); in FirewallSetUidsAllowedListChain() 100 NETMGR_LOG_D("SetUidsAllowedListChain chain[%{public}u] uids size[%{public}zu] netsys return[%{public}d]", chain, in FirewallSetUidsAllowedListChain() 105 int32_t NetsysPolicyWrapper::FirewallSetUidsDeniedListChain(uint32_t chain, const std::vector<uint32_t> &uids) in FirewallSetUidsDeniedListChain() argument 107 auto netsysReturnValue = NetsysController::GetInstance().FirewallSetUidsDeniedListChain(chain, uids); in FirewallSetUidsDeniedListChain() 108 NETMGR_LOG_D("SetUidsDeniedListChain chain[%{public}u] uids size[%{public}zu] netsys return[%{public}d]", chain, in FirewallSetUidsDeniedListChain() 113 FirewallSetUidRule(uint32_t chain, const std::vector<uint32_t> &uids, uint32_t firewallRule) FirewallSetUidRule() argument 120 FirewallEnableChain(uint32_t chain, bool enable) FirewallEnableChain() argument [all...] |
| /foundation/communication/netmanager_base/services/netmanagernative/include/manager/ |
| H A D | firewall_manager.h | 39 * Set uids allowed list chain 41 * @param chain Chain type 46 int32_t SetUidsAllowedListChain(NetManagerStandard::ChainType chain, const std::vector<uint32_t> &uids); 49 * Set uids denied list chain 51 * @param chain Chain type 56 int32_t SetUidsDeniedListChain(NetManagerStandard::ChainType chain, const std::vector<uint32_t> &uids); 59 * Enable chain 61 * @param chain Chain type 66 int32_t EnableChain(NetManagerStandard::ChainType chain, bool enable); 71 * @param chain Chai [all...] |
| /arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
| H A D | optionalLowering.cpp | 51 Expr *const expr, ir::ChainExpression *const chain) in LowerOptionalExpr() 67 sequenceExpr->SetParent(chain->Parent()); in LowerOptionalExpr() 72 stmts[1]->AsExpressionStatement()->GetExpression()->AsConditionalExpression()->SetAlternate(chain->GetExpression()); in LowerOptionalExpr() 79 ir::ChainExpression *chain) in LowerExpression() 84 [](auto *e, auto *obj) { e->SetObject(obj); }, ctx, expr, chain); in LowerExpression() member 88 ir::ChainExpression *chain) in LowerExpression() 93 [](auto *e, auto *callee) { e->SetCallee(callee); }, ctx, expr, chain); in LowerExpression() 112 static ir::AstNode *LowerChain(public_lib::Context *ctx, ir::ChainExpression *const chain) 114 auto optional = FindOptionalInChain(chain->GetExpression()); 116 return LowerExpression(ctx, optional->AsMemberExpression(), chain); 50 LowerOptionalExpr(GetSource const &getSource, SetSource const &setSource, public_lib::Context *ctx, Expr *const expr, ir::ChainExpression *const chain) LowerOptionalExpr() argument 78 LowerExpression(public_lib::Context *ctx, ir::MemberExpression *const expr, ir::ChainExpression *chain) LowerExpression() argument 87 LowerExpression(public_lib::Context *ctx, ir::CallExpression *const expr, ir::ChainExpression *chain) LowerExpression() argument [all...] |