/external/grpc-grpc/src/core/lib/channel/ |
D | handshaker.cc | 95 grpc_handshake_manager* mgr = static_cast<grpc_handshake_manager*>( in grpc_handshake_manager_create() local 97 gpr_mu_init(&mgr->mu); in grpc_handshake_manager_create() 98 gpr_ref_init(&mgr->refs, 1); in grpc_handshake_manager_create() 99 return mgr; in grpc_handshake_manager_create() 103 grpc_handshake_manager* mgr) { in grpc_handshake_manager_pending_list_add() argument 104 GPR_ASSERT(mgr->prev == nullptr); in grpc_handshake_manager_pending_list_add() 105 GPR_ASSERT(mgr->next == nullptr); in grpc_handshake_manager_pending_list_add() 106 mgr->next = *head; in grpc_handshake_manager_pending_list_add() 108 (*head)->prev = mgr; in grpc_handshake_manager_pending_list_add() 110 *head = mgr; in grpc_handshake_manager_pending_list_add() [all …]
|
/external/adhd/cras/src/server/ |
D | cras_alsa_ucm.c | 76 snd_use_case_mgr_t *mgr; member 82 static inline const char *uc_verb(struct cras_use_case_mgr *mgr) in uc_verb() argument 84 return use_case_verbs[mgr->use_case]; in uc_verb() 87 static int device_enabled(struct cras_use_case_mgr *mgr, const char *dev) in device_enabled() argument 94 num_devs = snd_use_case_get_list(mgr->mgr, "_enadevs", &list); in device_enabled() 108 static int modifier_enabled(struct cras_use_case_mgr *mgr, const char *mod) in modifier_enabled() argument 114 num_mods = snd_use_case_get_list(mgr->mgr, "_enamods", &list); in modifier_enabled() 126 static int get_var(struct cras_use_case_mgr *mgr, const char *var, in get_var() argument 137 rc = snd_use_case_get(mgr->mgr, id, value); in get_var() 143 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 | 88 struct pb_slab_manager *mgr; member 174 pb_slab_manager(struct pb_manager *mgr) in pb_slab_manager() argument 176 assert(mgr); in pb_slab_manager() 177 return (struct pb_slab_manager *)mgr; in pb_slab_manager() 182 pb_slab_range_manager(struct pb_manager *mgr) in pb_slab_range_manager() argument 184 assert(mgr); in pb_slab_range_manager() 185 return (struct pb_slab_range_manager *)mgr; in pb_slab_range_manager() 198 struct pb_slab_manager *mgr = slab->mgr; in pb_slab_buffer_destroy() local 201 mtx_lock(&mgr->mutex); in pb_slab_buffer_destroy() 212 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 mtx_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 | 55 struct pb_cache_manager *mgr; member 77 pb_cache_manager(struct pb_manager *mgr) in pb_cache_manager() argument 79 assert(mgr); in pb_cache_manager() 80 return (struct pb_cache_manager *)mgr; in pb_cache_manager() 90 buf->mgr = NULL; in pb_cache_manager_remove_buffer() 111 struct pb_cache_manager *mgr = buf->mgr; in pb_cache_buffer_destroy() local 113 if (!mgr) { in pb_cache_buffer_destroy() 185 if (buf->mgr->provider->is_buffer_busy) { in pb_cache_can_reclaim_buffer() 186 if (buf->mgr->provider->is_buffer_busy(buf->mgr->provider, buf->buffer)) in pb_cache_can_reclaim_buffer() 206 struct pb_cache_manager *mgr = pb_cache_manager(_mgr); in pb_cache_manager_create_buffer() local [all …]
|
D | pb_bufmgr_debug.c | 73 struct pb_debug_manager *mgr; member 111 pb_debug_manager(struct pb_manager *mgr) in pb_debug_manager() argument 113 assert(mgr); in pb_debug_manager() 114 return (struct pb_debug_manager *)mgr; in pb_debug_manager() 232 struct pb_debug_manager *mgr = buf->mgr; in pb_debug_buffer_destroy() local 238 mtx_lock(&mgr->mutex); in pb_debug_buffer_destroy() 240 mtx_unlock(&mgr->mutex); in pb_debug_buffer_destroy() 341 pb_debug_manager_dump_locked(struct pb_debug_manager *mgr) in pb_debug_manager_dump_locked() argument 346 curr = mgr->list.next; in pb_debug_manager_dump_locked() 348 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 …]
|
/external/syzkaller/syz-ci/ |
D | manager.go | 113 mgr := &Manager{ 130 os.RemoveAll(mgr.currentDir) 131 return mgr 139 func (mgr *Manager) loop() { 143 latestInfo := mgr.checkLatest() 147 log.Logf(0, "%v: using latest image built on %v", mgr.name, latestInfo.KernelCommit) 150 mgr.restartManager() 152 log.Logf(0, "%v: latest image is on %v", mgr.name, latestInfo.KernelCommit) 162 commit, err := mgr.repo.Poll(mgr.mgrcfg.Repo, mgr.mgrcfg.Branch) 164 mgr.Errorf("failed to poll: %v", err) [all …]
|
D | jobs.go | 62 for _, mgr := range jp.managers { 63 names = append(names, mgr.name) 73 var mgr *Manager 76 mgr = m 80 if mgr == nil { 86 mgr: mgr, 102 mgr *Manager member 106 req, mgr := job.req, job.mgr 108 Manager: mgr.name, 110 OS: mgr.managercfg.TargetOS, [all …]
|
/external/syzkaller/syz-manager/ |
D | manager.go | 166 mgr := &Manager{ 189 mgr.corpusDB, err = db.Open(filepath.Join(cfg.Workdir, "corpus.db")) 195 mgr.initHTTP() 196 mgr.collectUsedFiles() 199 s, err := rpctype.NewRPCServer(cfg.RPC, mgr) 204 mgr.port = s.Addr().(*net.TCPAddr).Port 208 mgr.dash = dashapi.New(cfg.DashboardClient, cfg.DashboardAddr, cfg.DashboardKey) 217 mgr.mu.Lock() 218 if mgr.firstConnect.IsZero() { 219 mgr.mu.Unlock() [all …]
|
D | html.go | 31 func (mgr *Manager) initHTTP() { 32 http.HandleFunc("/", mgr.httpSummary) 33 http.HandleFunc("/syscalls", mgr.httpSyscalls) 34 http.HandleFunc("/corpus", mgr.httpCorpus) 35 http.HandleFunc("/crash", mgr.httpCrash) 36 http.HandleFunc("/cover", mgr.httpCover) 37 http.HandleFunc("/prio", mgr.httpPrio) 38 http.HandleFunc("/file", mgr.httpFile) 39 http.HandleFunc("/report", mgr.httpReport) 40 http.HandleFunc("/rawcover", mgr.httpRawCover) [all …]
|
D | hub.go | 17 func (mgr *Manager) hubSyncLoop() { 19 mgr: mgr, 20 cfg: mgr.cfg, 21 target: mgr.target, 22 stats: mgr.stats, 23 enabledCalls: mgr.checkResult.EnabledCalls[mgr.cfg.Sandbox], 24 fresh: mgr.fresh, 25 hubReproQueue: mgr.hubReproQueue, 27 if mgr.cfg.Reproduce && mgr.dash != nil { 28 hc.needMoreRepros = mgr.needMoreRepros [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_vbuf.c | 187 u_vbuf_create_vertex_elements(struct u_vbuf *mgr, unsigned count, 189 static void u_vbuf_delete_vertex_elements(struct u_vbuf *mgr, void *cso); 306 struct u_vbuf *mgr = CALLOC_STRUCT(u_vbuf); in u_vbuf_create() local 308 mgr->caps = *caps; in u_vbuf_create() 309 mgr->aux_vertex_buffer_slot = aux_vertex_buffer_index; in u_vbuf_create() 310 mgr->pipe = pipe; in u_vbuf_create() 311 mgr->cso_cache = cso_cache_create(); in u_vbuf_create() 312 mgr->translate_cache = translate_cache_create(); in u_vbuf_create() 313 memset(mgr->fallback_vbs, ~0, sizeof(mgr->fallback_vbs)); in u_vbuf_create() 315 mgr->has_signed_vb_offset = in u_vbuf_create() [all …]
|
D | u_vbuf.h | 67 void u_vbuf_destroy(struct u_vbuf *mgr); 70 void u_vbuf_set_vertex_elements(struct u_vbuf *mgr, unsigned count, 72 void u_vbuf_set_vertex_buffers(struct u_vbuf *mgr, 75 void u_vbuf_draw_vbo(struct u_vbuf *mgr, const struct pipe_draw_info *info); 78 void u_vbuf_save_vertex_elements(struct u_vbuf *mgr); 79 void u_vbuf_restore_vertex_elements(struct u_vbuf *mgr); 80 void u_vbuf_save_aux_vertex_buffer_slot(struct u_vbuf *mgr); 81 void u_vbuf_restore_aux_vertex_buffer_slot(struct u_vbuf *mgr);
|
/external/syzkaller/syz-hub/state/ |
D | state.go | 115 mgr := &Manager{ 122 mgr.corpusSeq = loadSeqFile(mgr.corpusSeqFile) 123 if st.corpusSeq < mgr.corpusSeq { 124 st.corpusSeq = mgr.corpusSeq 126 mgr.reproSeq = loadSeqFile(mgr.reproSeqFile) 127 if mgr.reproSeq == 0 { 128 mgr.reproSeq = st.reproSeq 130 if st.reproSeq < mgr.reproSeq { 131 st.reproSeq = mgr.reproSeq 134 mgr.Corpus, err = db.Open(mgr.corpusFile) [all …]
|
/external/syzkaller/tools/syz-runtest/ |
D | runtest.go | 56 mgr := &Manager{ 69 s, err := rpctype.NewRPCServer(cfg.RPC, mgr) 73 mgr.port = s.Addr().(*net.TCPAddr).Port 84 rep, err := mgr.boot(name, i) 91 if err := mgr.finishRequest(name, rep); err != nil { 97 mgr.checkResult = <-mgr.checkResultC 98 close(mgr.checkResultReady) 100 for sandbox, ids := range mgr.checkResult.EnabledCalls { 107 for _, feat := range mgr.checkResult.Features { 116 Features: mgr.checkResult.Features, [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/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/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/libdrm/amdgpu/ |
D | amdgpu_vamgr.c | 44 drm_private void amdgpu_vamgr_init(struct amdgpu_bo_va_mgr *mgr, uint64_t start, in amdgpu_vamgr_init() argument 49 mgr->va_max = max; in amdgpu_vamgr_init() 50 mgr->va_alignment = alignment; in amdgpu_vamgr_init() 52 list_inithead(&mgr->va_holes); in amdgpu_vamgr_init() 53 pthread_mutex_init(&mgr->bo_va_mutex, NULL); in amdgpu_vamgr_init() 54 pthread_mutex_lock(&mgr->bo_va_mutex); in amdgpu_vamgr_init() 56 n->size = mgr->va_max - start; in amdgpu_vamgr_init() 58 list_add(&n->list, &mgr->va_holes); in amdgpu_vamgr_init() 59 pthread_mutex_unlock(&mgr->bo_va_mutex); in amdgpu_vamgr_init() 62 drm_private void amdgpu_vamgr_deinit(struct amdgpu_bo_va_mgr *mgr) in amdgpu_vamgr_deinit() argument [all …]
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_misc.cpp | 237 virtual BaseMemoryManager *mgr() const = 0; 245 mgr()->setMemoryWritable(); in setMemoryWritable() 248 mgr()->setMemoryExecutable(); in setMemoryExecutable() 251 mgr()->setPoisonMemory(poison); in setPoisonMemory() 254 mgr()->AllocateGOT(); in AllocateGOT() 259 HasGOT = mgr()->isManagingGOT(); in AllocateGOT() 262 return mgr()->getGOTBase(); in getGOTBase() 266 return mgr()->startFunctionBody(F, ActualSize); in startFunctionBody() 271 return mgr()->allocateStub(F, StubSize, Alignment); in allocateStub() 276 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 …]
|