/external/adhd/cras/src/server/ |
D | cras_alsa_ucm.c | 61 snd_use_case_mgr_t *mgr; member 67 static inline const char *uc_verb(struct cras_use_case_mgr *mgr) in uc_verb() argument 69 return use_case_verbs[mgr->use_case]; in uc_verb() 72 static int device_enabled(struct cras_use_case_mgr *mgr, const char *dev) in device_enabled() argument 79 num_devs = snd_use_case_get_list(mgr->mgr, "_enadevs", &list); in device_enabled() 93 static int modifier_enabled(struct cras_use_case_mgr *mgr, const char *mod) in modifier_enabled() argument 99 num_mods = snd_use_case_get_list(mgr->mgr, "_enamods", &list); in modifier_enabled() 111 static int get_var(struct cras_use_case_mgr *mgr, const char *var, in get_var() argument 122 rc = snd_use_case_get(mgr->mgr, id, value); in get_var() 128 static int get_int(struct cras_use_case_mgr *mgr, const char *var, in get_int() argument [all …]
|
D | cras_alsa_ucm.h | 39 void ucm_destroy(struct cras_use_case_mgr *mgr); 48 int ucm_set_use_case(struct cras_use_case_mgr *mgr, 57 int ucm_swap_mode_exists(struct cras_use_case_mgr *mgr); 68 int ucm_enable_swap_mode(struct cras_use_case_mgr *mgr, const char *node_name, 80 int ucm_set_enabled(struct cras_use_case_mgr *mgr, const char *dev, int enable); 90 char *ucm_get_flag(struct cras_use_case_mgr *mgr, const char *flag_name); 100 char *ucm_get_cap_control(struct cras_use_case_mgr *mgr, const char *ucm_dev); 109 char *ucm_get_mic_positions(struct cras_use_case_mgr *mgr); 120 const char *ucm_get_override_type_name(struct cras_use_case_mgr *mgr, 132 char *ucm_get_dev_for_jack(struct cras_use_case_mgr *mgr, const char *jack, [all …]
|
/external/mesa3d/src/gallium/auxiliary/pipebuffer/ |
D | pb_bufmgr_slab.c | 89 struct pb_slab_manager *mgr; member 175 pb_slab_manager(struct pb_manager *mgr) in pb_slab_manager() argument 177 assert(mgr); in pb_slab_manager() 178 return (struct pb_slab_manager *)mgr; in pb_slab_manager() 183 pb_slab_range_manager(struct pb_manager *mgr) in pb_slab_range_manager() argument 185 assert(mgr); in pb_slab_range_manager() 186 return (struct pb_slab_range_manager *)mgr; in pb_slab_range_manager() 199 struct pb_slab_manager *mgr = slab->mgr; in pb_slab_buffer_destroy() local 202 pipe_mutex_lock(mgr->mutex); in pb_slab_buffer_destroy() 213 LIST_ADDTAIL(&slab->head, &mgr->slabs); in pb_slab_buffer_destroy() [all …]
|
D | pb_cache.c | 40 struct pb_cache *mgr = entry->mgr; in destroy_buffer_locked() local 46 assert(mgr->num_buffers); in destroy_buffer_locked() 47 --mgr->num_buffers; in destroy_buffer_locked() 48 mgr->cache_size -= buf->size; in destroy_buffer_locked() 50 mgr->destroy_buffer(buf); in destroy_buffer_locked() 87 struct pb_cache *mgr = entry->mgr; in pb_cache_add_buffer() local 88 struct list_head *cache = &mgr->buckets[entry->bucket_index]; in pb_cache_add_buffer() 92 pipe_mutex_lock(mgr->mutex); in pb_cache_add_buffer() 95 for (i = 0; i < ARRAY_SIZE(mgr->buckets); i++) in pb_cache_add_buffer() 96 release_expired_buffers_locked(&mgr->buckets[i]); in pb_cache_add_buffer() [all …]
|
D | pb_bufmgr_alt.c | 54 pb_alt_manager(struct pb_manager *mgr) in pb_alt_manager() argument 56 assert(mgr); in pb_alt_manager() 57 return (struct pb_alt_manager *)mgr; in pb_alt_manager() 66 struct pb_alt_manager *mgr = pb_alt_manager(_mgr); in pb_alt_manager_create_buffer() local 69 buf = mgr->provider1->create_buffer(mgr->provider1, size, desc); in pb_alt_manager_create_buffer() 73 buf = mgr->provider2->create_buffer(mgr->provider2, size, desc); in pb_alt_manager_create_buffer() 81 struct pb_alt_manager *mgr = pb_alt_manager(_mgr); in pb_alt_manager_flush() local 83 assert(mgr->provider1->flush); in pb_alt_manager_flush() 84 if(mgr->provider1->flush) in pb_alt_manager_flush() 85 mgr->provider1->flush(mgr->provider1); in pb_alt_manager_flush() [all …]
|
D | pb_bufmgr_cache.c | 56 struct pb_cache_manager *mgr; member 78 pb_cache_manager(struct pb_manager *mgr) in pb_cache_manager() argument 80 assert(mgr); in pb_cache_manager() 81 return (struct pb_cache_manager *)mgr; in pb_cache_manager() 91 buf->mgr = NULL; in pb_cache_manager_remove_buffer() 112 struct pb_cache_manager *mgr = buf->mgr; in pb_cache_buffer_destroy() local 114 if (!mgr) { in pb_cache_buffer_destroy() 186 if (buf->mgr->provider->is_buffer_busy) { in pb_cache_can_reclaim_buffer() 187 if (buf->mgr->provider->is_buffer_busy(buf->mgr->provider, buf->buffer)) in pb_cache_can_reclaim_buffer() 207 struct pb_cache_manager *mgr = pb_cache_manager(_mgr); in pb_cache_manager_create_buffer() local [all …]
|
D | pb_bufmgr_debug.c | 74 struct pb_debug_manager *mgr; member 112 pb_debug_manager(struct pb_manager *mgr) in pb_debug_manager() argument 114 assert(mgr); in pb_debug_manager() 115 return (struct pb_debug_manager *)mgr; in pb_debug_manager() 233 struct pb_debug_manager *mgr = buf->mgr; in pb_debug_buffer_destroy() local 239 pipe_mutex_lock(mgr->mutex); in pb_debug_buffer_destroy() 241 pipe_mutex_unlock(mgr->mutex); in pb_debug_buffer_destroy() 342 pb_debug_manager_dump_locked(struct pb_debug_manager *mgr) in pb_debug_manager_dump_locked() argument 347 curr = mgr->list.next; in pb_debug_manager_dump_locked() 349 while(curr != &mgr->list) { in pb_debug_manager_dump_locked() [all …]
|
D | pb_bufmgr_ondemand.c | 50 struct pb_ondemand_manager *mgr; member 84 pb_ondemand_manager(struct pb_manager *mgr) in pb_ondemand_manager() argument 86 assert(mgr); in pb_ondemand_manager() 87 return (struct pb_ondemand_manager *)mgr; in pb_ondemand_manager() 144 struct pb_manager *provider = buf->mgr->provider; in pb_ondemand_buffer_instantiate() 240 struct pb_ondemand_manager *mgr = pb_ondemand_manager(_mgr); in pb_ondemand_manager_create_buffer() local 253 buf->mgr = mgr; in pb_ondemand_manager_create_buffer() 271 struct pb_ondemand_manager *mgr = pb_ondemand_manager(_mgr); in pb_ondemand_manager_flush() local 273 mgr->provider->flush(mgr->provider); in pb_ondemand_manager_flush() 280 struct pb_ondemand_manager *mgr = pb_ondemand_manager(_mgr); in pb_ondemand_manager_destroy() local [all …]
|
D | pb_bufmgr_mm.c | 69 mm_pb_manager(struct pb_manager *mgr) in mm_pb_manager() argument 71 assert(mgr); in mm_pb_manager() 72 return (struct mm_pb_manager *)mgr; in mm_pb_manager() 80 struct mm_pb_manager *mgr; member 98 struct mm_pb_manager *mm = mm_buf->mgr; in mm_buffer_destroy() 115 struct mm_pb_manager *mm = mm_buf->mgr; in mm_buffer_map() 136 struct mm_pb_manager *mm = mm_buf->mgr; in mm_buffer_validate() 146 struct mm_pb_manager *mm = mm_buf->mgr; in mm_buffer_fence() 157 struct mm_pb_manager *mm = mm_buf->mgr; in mm_buffer_get_base_buffer() 175 mm_bufmgr_create_buffer(struct pb_manager *mgr, in mm_bufmgr_create_buffer() argument [all …]
|
D | pb_bufmgr_pool.c | 77 pool_pb_manager(struct pb_manager *mgr) in pool_pb_manager() argument 79 assert(mgr); in pool_pb_manager() 80 return (struct pool_pb_manager *)mgr; in pool_pb_manager() 88 struct pool_pb_manager *mgr; member 109 struct pool_pb_manager *pool = pool_buf->mgr; in pool_buffer_destroy() 124 struct pool_pb_manager *pool = pool_buf->mgr; in pool_buffer_map() 149 struct pool_pb_manager *pool = pool_buf->mgr; in pool_buffer_validate() 159 struct pool_pb_manager *pool = pool_buf->mgr; in pool_buffer_fence() 170 struct pool_pb_manager *pool = pool_buf->mgr; in pool_buffer_get_base_buffer() 188 pool_bufmgr_create_buffer(struct pb_manager *mgr, in pool_bufmgr_create_buffer() argument [all …]
|
D | pb_cache.h | 43 struct pb_cache *mgr; member 68 struct pb_buffer *pb_cache_reclaim_buffer(struct pb_cache *mgr, pb_size size, 71 void pb_cache_release_all_buffers(struct pb_cache *mgr); 72 void pb_cache_init_entry(struct pb_cache *mgr, struct pb_cache_entry *entry, 74 void pb_cache_init(struct pb_cache *mgr, uint usecs, float size_factor, 78 void pb_cache_deinit(struct pb_cache *mgr);
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_vbuf.c | 190 u_vbuf_create_vertex_elements(struct u_vbuf *mgr, unsigned count, 192 static void u_vbuf_delete_vertex_elements(struct u_vbuf *mgr, void *cso); 308 struct u_vbuf *mgr = CALLOC_STRUCT(u_vbuf); in u_vbuf_create() local 310 mgr->caps = *caps; in u_vbuf_create() 311 mgr->aux_vertex_buffer_slot = aux_vertex_buffer_index; in u_vbuf_create() 312 mgr->pipe = pipe; in u_vbuf_create() 313 mgr->cso_cache = cso_cache_create(); in u_vbuf_create() 314 mgr->translate_cache = translate_cache_create(); in u_vbuf_create() 315 memset(mgr->fallback_vbs, ~0, sizeof(mgr->fallback_vbs)); in u_vbuf_create() 317 mgr->uploader = u_upload_create(pipe, 1024 * 1024, in u_vbuf_create() [all …]
|
D | u_vbuf.h | 64 void u_vbuf_destroy(struct u_vbuf *mgr); 67 void u_vbuf_set_vertex_elements(struct u_vbuf *mgr, unsigned count, 69 void u_vbuf_set_vertex_buffers(struct u_vbuf *mgr, 72 void u_vbuf_set_index_buffer(struct u_vbuf *mgr, 74 void u_vbuf_draw_vbo(struct u_vbuf *mgr, const struct pipe_draw_info *info); 77 void u_vbuf_save_vertex_elements(struct u_vbuf *mgr); 78 void u_vbuf_restore_vertex_elements(struct u_vbuf *mgr); 79 void u_vbuf_save_aux_vertex_buffer_slot(struct u_vbuf *mgr); 80 void u_vbuf_restore_aux_vertex_buffer_slot(struct u_vbuf *mgr);
|
/external/libdrm/amdgpu/ |
D | amdgpu_vamgr.c | 47 drm_private void amdgpu_vamgr_init(struct amdgpu_bo_va_mgr *mgr, uint64_t start, in amdgpu_vamgr_init() argument 50 mgr->va_offset = start; in amdgpu_vamgr_init() 51 mgr->va_max = max; in amdgpu_vamgr_init() 52 mgr->va_alignment = alignment; in amdgpu_vamgr_init() 54 list_inithead(&mgr->va_holes); in amdgpu_vamgr_init() 55 pthread_mutex_init(&mgr->bo_va_mutex, NULL); in amdgpu_vamgr_init() 58 drm_private void amdgpu_vamgr_deinit(struct amdgpu_bo_va_mgr *mgr) in amdgpu_vamgr_deinit() argument 61 LIST_FOR_EACH_ENTRY_SAFE(hole, tmp, &mgr->va_holes, list) { in amdgpu_vamgr_deinit() 65 pthread_mutex_destroy(&mgr->bo_va_mutex); in amdgpu_vamgr_deinit() 69 amdgpu_vamgr_find_va(struct amdgpu_bo_va_mgr *mgr, uint64_t size, in amdgpu_vamgr_find_va() argument [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | DebugCheckers.cpp | 37 void checkASTCodeBody(const Decl *D, AnalysisManager& mgr, in checkASTCodeBody() argument 39 if (AnalysisDeclContext *AC = mgr.getAnalysisDeclContext(D)) { in checkASTCodeBody() 48 void ento::registerDominatorsTreeDumper(CheckerManager &mgr) { in registerDominatorsTreeDumper() argument 49 mgr.registerChecker<DominatorsTreeDumper>(); in registerDominatorsTreeDumper() 59 void checkASTCodeBody(const Decl *D, AnalysisManager& mgr, in checkASTCodeBody() argument 61 if (LiveVariables* L = mgr.getAnalysis<LiveVariables>(D)) { in checkASTCodeBody() 62 L->dumpBlockLiveness(mgr.getSourceManager()); in checkASTCodeBody() 68 void ento::registerLiveVariablesDumper(CheckerManager &mgr) { in registerLiveVariablesDumper() argument 69 mgr.registerChecker<LiveVariablesDumper>(); in registerLiveVariablesDumper() 79 void checkASTCodeBody(const Decl *D, AnalysisManager& mgr, in checkASTCodeBody() argument [all …]
|
/external/adhd/cras/src/tests/ |
D | alsa_ucm_unittest.cc | 117 struct cras_use_case_mgr *mgr; in TEST() local 121 mgr = ucm_create("foo"); in TEST() 122 EXPECT_NE(static_cast<snd_use_case_mgr_t*>(NULL), mgr->mgr); in TEST() 127 ucm_destroy(mgr); in TEST() 132 struct cras_use_case_mgr *mgr = &cras_ucm_mgr; in TEST() local 138 EXPECT_EQ(0, ucm_set_enabled(mgr, "Dev1", 0)); in TEST() 141 EXPECT_EQ(0, ucm_set_enabled(mgr, "Dev1", 1)); in TEST() 148 struct cras_use_case_mgr *mgr = &cras_ucm_mgr; in TEST() local 156 EXPECT_EQ(0, ucm_set_enabled(mgr, "Dev1", 1)); in TEST() 159 EXPECT_EQ(0, ucm_set_enabled(mgr, "Dev1", 0)); in TEST() [all …]
|
/external/clang/include/clang/StaticAnalyzer/Core/ |
D | Checker.h | 31 static void _checkDecl(void *checker, const Decl *D, AnalysisManager& mgr, in _checkDecl() argument 33 ((const CHECKER *)checker)->checkASTDecl(cast<DECL>(D), mgr, BR); in _checkDecl() 41 static void _register(CHECKER *checker, CheckerManager &mgr) { in _register() argument 42 mgr._registerForDecl(CheckerManager::CheckDeclFunc(checker, in _register() 50 static void _checkBody(void *checker, const Decl *D, AnalysisManager& mgr, in _checkBody() argument 52 ((const CHECKER *)checker)->checkASTCodeBody(D, mgr, BR); in _checkBody() 57 static void _register(CHECKER *checker, CheckerManager &mgr) { in _register() argument 58 mgr._registerForBody(CheckerManager::CheckDeclFunc(checker, in _register() 67 AnalysisManager& mgr, in _checkEndOfTranslationUnit() argument 69 ((const CHECKER *)checker)->checkEndOfTranslationUnit(TU, mgr, BR); in _checkEndOfTranslationUnit() [all …]
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_misc.cpp | 229 virtual BaseMemoryManager *mgr() const = 0; 237 mgr()->setMemoryWritable(); in setMemoryWritable() 240 mgr()->setMemoryExecutable(); in setMemoryExecutable() 243 mgr()->setPoisonMemory(poison); in setPoisonMemory() 246 mgr()->AllocateGOT(); in AllocateGOT() 251 HasGOT = mgr()->isManagingGOT(); in AllocateGOT() 254 return mgr()->getGOTBase(); in getGOTBase() 258 return mgr()->startFunctionBody(F, ActualSize); in startFunctionBody() 263 return mgr()->allocateStub(F, StubSize, Alignment); in allocateStub() 268 mgr()->endFunctionBody(F, FunctionStart, FunctionEnd); in endFunctionBody() [all …]
|
/external/mesa3d/src/gallium/winsys/svga/drm/ |
D | vmw_buffer.c | 61 struct vmw_gmr_bufmgr *mgr; member 90 vmw_gmr_bufmgr(struct pb_manager *mgr) in vmw_gmr_bufmgr() argument 92 assert(mgr); in vmw_gmr_bufmgr() 93 return (struct vmw_gmr_bufmgr *)mgr; in vmw_gmr_bufmgr() 198 struct vmw_gmr_bufmgr *mgr = vmw_gmr_bufmgr(_mgr); in vmw_gmr_bufmgr_create_buffer() local 199 struct vmw_winsys_screen *vws = mgr->vws; in vmw_gmr_bufmgr_create_buffer() 212 buf->mgr = mgr; in vmw_gmr_bufmgr_create_buffer() 231 vmw_gmr_bufmgr_flush(struct pb_manager *mgr) in vmw_gmr_bufmgr_flush() argument 240 struct vmw_gmr_bufmgr *mgr = vmw_gmr_bufmgr(_mgr); in vmw_gmr_bufmgr_destroy() local 241 FREE(mgr); in vmw_gmr_bufmgr_destroy() [all …]
|
D | pb_buffer_simple_fenced.c | 102 struct fenced_manager *mgr; member 132 fenced_manager(struct pb_manager *mgr) in fenced_manager() argument 134 assert(mgr); in fenced_manager() 135 return (struct fenced_manager *)mgr; in fenced_manager() 263 assert(fenced_buf->mgr == fenced_mgr); in fenced_buffer_remove_locked() 507 struct fenced_manager *fenced_mgr = fenced_buf->mgr; in fenced_buffer_destroy() 524 struct fenced_manager *fenced_mgr = fenced_buf->mgr; in fenced_buffer_map() 577 struct fenced_manager *fenced_mgr = fenced_buf->mgr; in fenced_buffer_unmap() 600 struct fenced_manager *fenced_mgr = fenced_buf->mgr; in fenced_buffer_validate() 649 struct fenced_manager *fenced_mgr = fenced_buf->mgr; in fenced_buffer_fence() [all …]
|
/external/autotest/tko/migrations/ |
D | 022_widen_attribute_value_field.py | 1 def migrate_up(mgr): argument 2 mgr.execute("alter table test_attributes modify column value varchar(1024);") 3 mgr.execute("alter table iteration_attributes modify column value varchar(1024);") 5 def migrate_down(mgr): argument 6 mgr.execute("alter table test_attributes modify column value varchar(100);") 7 mgr.execute("alter table iteration_attributes modify column value varchar(100);")
|
/external/webrtc/webrtc/test/channel_transport/ |
D | udp_socket_manager_unittest.cc | 29 UdpSocketManager* mgr = UdpSocketManager::Create(id, threads); in TEST() local 31 EXPECT_FALSE(mgr->Init(id, threads)) in TEST() 41 UdpSocketManager* mgr = UdpSocketManager::Create(id, threads); in TEST() local 44 mgr, in TEST() 51 EXPECT_EQ(true, mgr->RemoveSocket(socket)); in TEST() 66 UdpSocketManager* mgr = UdpSocketManager::Create(id, threads); in TEST() 69 mgr, in TEST()
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | KeyguardManagerTest.java | 22 KeyguardManager mgr = ( KeyguardManager ) activity.getSystemService( KEYGUARD_SERVICE ); in testIsInRestrcitedInputMode() local 23 assertThat( mgr.inKeyguardRestrictedInputMode(), equalTo( false ) ); in testIsInRestrcitedInputMode() 24 ShadowKeyguardManager shadowMgr = shadowOf(mgr); in testIsInRestrcitedInputMode() 26 assertThat( mgr.inKeyguardRestrictedInputMode(), equalTo( true ) ); in testIsInRestrcitedInputMode() 32 KeyguardManager mgr = ( KeyguardManager ) activity.getSystemService( KEYGUARD_SERVICE ); in testShouldBeAbleToDisableTheKeyguardLock() local 33 KeyguardManager.KeyguardLock lock = mgr.newKeyguardLock(KEYGUARD_SERVICE); in testShouldBeAbleToDisableTheKeyguardLock()
|
/external/pdfium/testing/libfuzzer/ |
D | xfa_codec_fuzzer.h | 27 auto mgr = pdfium::MakeUnique<CCodec_ModuleMgr>(); in Fuzz() local 28 mgr->SetBmpModule(pdfium::MakeUnique<CCodec_BmpModule>()); in Fuzz() 29 mgr->SetGifModule(pdfium::MakeUnique<CCodec_GifModule>()); in Fuzz() 30 mgr->SetPngModule(pdfium::MakeUnique<CCodec_PngModule>()); in Fuzz() 31 mgr->SetTiffModule(pdfium::MakeUnique<CCodec_TiffModule>()); in Fuzz() 34 mgr->CreateProgressiveDecoder(); in Fuzz()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | Store.h | 251 : store(store), mgr(smgr) { in StoreRef() 253 mgr.incrementReferenceCount(store); in StoreRef() 257 : store(sr.store), mgr(sr.mgr) in StoreRef() 260 mgr.incrementReferenceCount(store); in StoreRef() 265 mgr.decrementReferenceCount(store); in ~StoreRef() 269 assert(&newStore.mgr == &mgr); 271 mgr.incrementReferenceCount(newStore.store); 272 mgr.decrementReferenceCount(store);
|