Home
last modified time | relevance | path

Searched refs:mgr (Results 1 – 25 of 116) sorted by relevance

12345

/third_party/libwebsockets/lib/core-net/
Dstate.c28 lws_state_reg_notifier(lws_state_manager_t *mgr, in lws_state_reg_notifier() argument
31 lws_dll2_add_head(&notify_link->list, &mgr->notify_list); in lws_state_reg_notifier()
41 lws_state_reg_notifier_list(lws_state_manager_t *mgr, in lws_state_reg_notifier_list() argument
46 lws_state_reg_notifier(mgr, *notify_link_array++); in lws_state_reg_notifier_list()
51 _systnm(lws_state_manager_t *mgr, int state, char *temp8) in _systnm() argument
53 if (!mgr->state_names) { in _systnm()
58 return mgr->state_names[state]; in _systnm()
63 _report(lws_state_manager_t *mgr, int a, int b) in _report() argument
69 lws_start_foreach_dll(struct lws_dll2 *, d, mgr->notify_list.head) { in _report()
73 if (l->notify_cb(mgr, l, a, b)) { in _report()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_bufmgr_slab.c84 struct pb_slab_manager *mgr; member
170 pb_slab_manager(struct pb_manager *mgr) in pb_slab_manager() argument
172 assert(mgr); in pb_slab_manager()
173 return (struct pb_slab_manager *)mgr; in pb_slab_manager()
178 pb_slab_range_manager(struct pb_manager *mgr) in pb_slab_range_manager() argument
180 assert(mgr); in pb_slab_range_manager()
181 return (struct pb_slab_range_manager *)mgr; in pb_slab_range_manager()
194 struct pb_slab_manager *mgr = slab->mgr; in pb_slab_buffer_destroy() local
197 mtx_lock(&mgr->mutex); in pb_slab_buffer_destroy()
208 list_addtail(&slab->head, &mgr->slabs); in pb_slab_buffer_destroy()
[all …]
Dpb_cache.c40 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(mgr->winsys, buf); in destroy_buffer_locked()
85 struct pb_cache *mgr = entry->mgr; in pb_cache_add_buffer() local
86 struct list_head *cache = &mgr->buckets[entry->bucket_index]; in pb_cache_add_buffer()
90 simple_mtx_lock(&mgr->mutex); in pb_cache_add_buffer()
95 for (i = 0; i < mgr->num_heaps; i++) in pb_cache_add_buffer()
96 release_expired_buffers_locked(&mgr->buckets[i], current_time); in pb_cache_add_buffer()
[all …]
Dpb_bufmgr_cache.c55 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 …]
Dpb_bufmgr_debug.c73 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()
343 pb_debug_manager_dump_locked(struct pb_debug_manager *mgr) in pb_debug_manager_dump_locked() argument
348 curr = mgr->list.next; in pb_debug_manager_dump_locked()
350 while(curr != &mgr->list) { in pb_debug_manager_dump_locked()
[all …]
Dpb_bufmgr_mm.c69 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 …]
Dpb_cache.h44 struct pb_cache *mgr; member
71 struct pb_buffer *pb_cache_reclaim_buffer(struct pb_cache *mgr, pb_size size,
74 void pb_cache_release_all_buffers(struct pb_cache *mgr);
75 void pb_cache_init_entry(struct pb_cache *mgr, struct pb_cache_entry *entry,
77 void pb_cache_init(struct pb_cache *mgr, uint num_heaps,
83 void pb_cache_deinit(struct pb_cache *mgr);
Dpb_buffer_fenced.c117 struct fenced_manager *mgr; member
154 fenced_manager(struct pb_manager *mgr) in fenced_manager() argument
156 assert(mgr); in fenced_manager()
157 return (struct fenced_manager *)mgr; in fenced_manager()
300 assert(fenced_buf->mgr == fenced_mgr); in fenced_buffer_remove_locked()
496 assert(fenced_buf->mgr->cpu_total_size >= fenced_buf->size); in fenced_buffer_destroy_cpu_storage_locked()
497 fenced_buf->mgr->cpu_total_size -= fenced_buf->size; in fenced_buffer_destroy_cpu_storage_locked()
651 struct fenced_manager *fenced_mgr = fenced_buf->mgr; in fenced_buffer_destroy()
668 struct fenced_manager *fenced_mgr = fenced_buf->mgr; in fenced_buffer_map()
722 struct fenced_manager *fenced_mgr = fenced_buf->mgr; in fenced_buffer_unmap()
[all …]
Dpb_bufmgr.h68 (*destroy)( struct pb_manager *mgr );
71 (*create_buffer)( struct pb_manager *mgr,
82 (*flush)( struct pb_manager *mgr );
85 (*is_buffer_busy)( struct pb_manager *mgr,
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_vbuf.c196 u_vbuf_create_vertex_elements(struct u_vbuf *mgr, unsigned count,
343 struct u_vbuf *mgr = CALLOC_STRUCT(u_vbuf); in u_vbuf_create() local
345 mgr->caps = *caps; in u_vbuf_create()
346 mgr->pipe = pipe; in u_vbuf_create()
355 mgr->pc = util_primconvert_create_config(pipe, &cfg); in u_vbuf_create()
357 mgr->translate_cache = translate_cache_create(); in u_vbuf_create()
358 memset(mgr->fallback_vbs, ~0, sizeof(mgr->fallback_vbs)); in u_vbuf_create()
359 mgr->allowed_vb_mask = u_bit_consecutive(0, mgr->caps.max_vertex_buffers); in u_vbuf_create()
361 mgr->has_signed_vb_offset = in u_vbuf_create()
365 cso_cache_init(&mgr->cso_cache, pipe); in u_vbuf_create()
[all …]
Du_vbuf.h75 void u_vbuf_destroy(struct u_vbuf *mgr);
78 void u_vbuf_set_flatshade_first(struct u_vbuf *mgr, bool flatshade_first);
79 void u_vbuf_set_vertex_elements(struct u_vbuf *mgr,
81 void u_vbuf_unset_vertex_elements(struct u_vbuf *mgr);
82 void u_vbuf_set_vertex_buffers(struct u_vbuf *mgr,
87 void u_vbuf_draw_vbo(struct u_vbuf *mgr, const struct pipe_draw_info *info,
97 void u_vbuf_save_vertex_elements(struct u_vbuf *mgr);
98 void u_vbuf_restore_vertex_elements(struct u_vbuf *mgr);
/third_party/gstreamer/gstplugins_bad/sys/dvb/
Dcamresourcemanager.c44 CamResourceManager *mgr; in cam_resource_manager_new() local
46 mgr = g_new0 (CamResourceManager, 1); in cam_resource_manager_new()
47 application = CAM_AL_APPLICATION (mgr); in cam_resource_manager_new()
55 return mgr; in cam_resource_manager_new()
59 cam_resource_manager_destroy (CamResourceManager * mgr) in cam_resource_manager_destroy() argument
61 _cam_al_application_destroy (CAM_AL_APPLICATION (mgr)); in cam_resource_manager_destroy()
62 g_free (mgr); in cam_resource_manager_destroy()
75 send_simple (CamResourceManager * mgr, CamSLSession * session, guint tag) in send_simple() argument
82 cam_al_calc_buffer_size (CAM_AL_APPLICATION (mgr)->al, 0, &buffer_size, in send_simple()
86 ret = cam_al_application_write (CAM_AL_APPLICATION (mgr), session, in send_simple()
[all …]
/third_party/libdrm/amdgpu/
Damdgpu_vamgr.c44 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 …]
/third_party/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_buffer.c61 struct vmw_gmr_bufmgr *mgr; member
91 vmw_gmr_bufmgr(struct pb_manager *mgr) in vmw_gmr_bufmgr() argument
93 assert(mgr); in vmw_gmr_bufmgr()
99 return (struct vmw_gmr_bufmgr *)mgr; in vmw_gmr_bufmgr()
110 assert(buf->mgr->vws->cache_maps); in vmw_gmr_buffer_destroy()
163 if (!--buf->map_count && !buf->mgr->vws->cache_maps) { in vmw_gmr_buffer_unmap()
214 struct vmw_gmr_bufmgr *mgr = vmw_gmr_bufmgr(_mgr); in vmw_gmr_bufmgr_create_buffer() local
215 struct vmw_winsys_screen *vws = mgr->vws; in vmw_gmr_bufmgr_create_buffer()
228 buf->mgr = mgr; in vmw_gmr_bufmgr_create_buffer()
247 vmw_gmr_bufmgr_flush(struct pb_manager *mgr) in vmw_gmr_bufmgr_flush() argument
[all …]
Dpb_buffer_simple_fenced.c102 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 …]
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_bufmgr.cpp48 d3d12_bufmgr(struct pb_manager *mgr) in d3d12_bufmgr() argument
50 assert(mgr); in d3d12_bufmgr()
52 return (struct d3d12_bufmgr *)mgr; in d3d12_bufmgr()
277 struct d3d12_bufmgr *mgr = d3d12_bufmgr(pmgr); in d3d12_bufmgr_create_buffer() local
296 buf->bo = d3d12_bo_new(mgr->dev, size, pb_desc); in d3d12_bufmgr_create_buffer()
315 d3d12_bufmgr_flush(struct pb_manager *mgr) in d3d12_bufmgr_flush() argument
323 struct d3d12_bufmgr *mgr = d3d12_bufmgr(_mgr); in d3d12_bufmgr_destroy() local
324 FREE(mgr); in d3d12_bufmgr_destroy()
330 struct d3d12_bufmgr *mgr; in d3d12_bufmgr_create() local
332 mgr = CALLOC_STRUCT(d3d12_bufmgr); in d3d12_bufmgr_create()
[all …]
/third_party/libwebsockets/include/libwebsockets/
Dlws-state.h30 typedef int (*lws_state_notify_t)(struct lws_state_manager *mgr,
66 lws_state_reg_notifier(lws_state_manager_t *mgr, lws_state_notify_link_t *nl);
90 lws_state_reg_notifier_list(lws_state_manager_t *mgr,
104 lws_state_transition_steps(lws_state_manager_t *mgr, int target);
115 lws_state_transition(lws_state_manager_t *mgr, int target);
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/
Dupdatestate_eliminate.cc55 auto mgr = GetManager(given_node); in OnlyUsedByOneNode() local
56 if (mgr == nullptr) { in OnlyUsedByOneNode()
59 auto &node_users = mgr->node_users(); in OnlyUsedByOneNode()
70 auto mgr = GetManager(be_used_node); in OnlyUsedByTwoNode() local
71 if (mgr == nullptr || first_node == second_node) { in OnlyUsedByTwoNode()
74 auto &node_users = mgr->node_users(); in OnlyUsedByTwoNode()
149 auto mgr = GetManager(update_state); in EliminateUpdateStateWithDepend() local
150 if (mgr == nullptr) { in EliminateUpdateStateWithDepend()
156 mgr->Replace(depend, depend_input); in EliminateUpdateStateWithDepend()
164 mgr->Replace(depend, new_depend); in EliminateUpdateStateWithDepend()
[all …]
/third_party/skia/docs/examples/
DSkFontMgr_example2.cpp18 sk_sp<SkFontMgr> mgr(SkFontMgr::RefDefault()); in draw() local
19 for (int i = 0; i < mgr->countFamilies(); ++i) { in draw()
21 mgr->getFamilyName(i, &familyName); in draw()
22 sk_sp<SkFontStyleSet> styleSet(mgr->createStyleSet(i)); in draw()
32 SkFont font(mgr->legacyMakeTypeface(familyName.c_str(), fontStyle), textScale); in draw()
DSkFontMgr_example.cpp17 sk_sp<SkFontMgr> mgr(SkFontMgr::RefDefault()); in draw() local
18 for (int i = 0; i < mgr->countFamilies(); ++i) { in draw()
20 mgr->getFamilyName(i, &familyName); in draw()
21 sk_sp<SkFontStyleSet> styleSet(mgr->createStyleSet(i)); in draw()
/third_party/grpc/src/core/lib/channel/
Dhandshaker.cc184 auto* mgr = static_cast<HandshakeManager*>(arg); in CallNextHandshakerFn() local
187 MutexLock lock(&mgr->mu_); in CallNextHandshakerFn()
188 done = mgr->CallNextHandshakerLocked(GRPC_ERROR_REF(error)); in CallNextHandshakerFn()
194 mgr->Unref(); in CallNextHandshakerFn()
199 auto* mgr = static_cast<HandshakeManager*>(arg); in OnTimeoutFn() local
201 mgr->Shutdown(GRPC_ERROR_CREATE_FROM_STATIC_STRING("Handshake timed out")); in OnTimeoutFn()
203 mgr->Unref(); in OnTimeoutFn()
253 void grpc_handshake_manager_add(grpc_handshake_manager* mgr, in grpc_handshake_manager_add() argument
258 mgr->Add(refd_hs); in grpc_handshake_manager_add()
/third_party/mindspore/tests/ut/cpp/ir/
Dmanager_test.cc642 auto mgr = Manage(fg); in TEST_F() local
643 ASSERT_NE(mgr, nullptr); in TEST_F()
649 auto a_users = mgr->node_users()[a]; in TEST_F()
652 mgr->AddEdge(u1, a); in TEST_F()
658 a_users = mgr->node_users()[a]; in TEST_F()
663 mgr->Replace(u1, u2); in TEST_F()
669 a_users = mgr->node_users()[a]; in TEST_F()
672 mgr->AddEdge(u2, a); in TEST_F()
678 a_users = mgr->node_users()[a]; in TEST_F()
700 auto mgr = Manage(fg); in TEST_F() local
[all …]
/third_party/boost/libs/locale/src/shared/
Dlocalization_backend.cpp245 localization_backend_manager mgr; in init() local
247 mgr.adopt_backend("icu",impl_icu::create_localization_backend()); in init()
251 mgr.adopt_backend("posix",impl_posix::create_localization_backend()); in init()
255 mgr.adopt_backend("winapi",impl_win::create_localization_backend()); in init()
259 mgr.adopt_backend("std",impl_std::create_localization_backend()); in init()
262 localization_backend_manager::global(mgr); in init()
270 localization_backend_manager mgr = localization_backend_manager_global(); in global() local
271 return mgr; in global()
276 localization_backend_manager mgr = localization_backend_manager_global(); in global() local
278 return mgr; in global()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_misc.cpp186 virtual BaseMemoryManager *mgr() const = 0;
196 return mgr()->allocateCodeSection(Size, Alignment, SectionID, in allocateCodeSection()
204 return mgr()->allocateDataSection(Size, Alignment, SectionID, in allocateDataSection()
209 mgr()->registerEHFrames(Addr, LoadAddr, Size); in registerEHFrames()
213 mgr()->deregisterEHFrames(); in deregisterEHFrames()
217 mgr()->deregisterEHFrames(Addr, LoadAddr, Size); in deregisterEHFrames()
222 return mgr()->getPointerToNamedFunction(Name, AbortOnFailure); in getPointerToNamedFunction()
225 return mgr()->finalizeMemory(ErrMsg); in finalizeMemory()
260 BaseMemoryManager *mgr() const { in mgr() function in ShaderMemoryManager
/third_party/boost/libs/locale/performance/
Dperf_format.cpp23 …boost::locale::localization_backend_manager mgr = boost::locale::localization_backend_manager::glo… in main() local
24 mgr.select(argv[1]); in main()
25 generator gen(mgr); in main()

12345