/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | reg.py | 33 def matchAPIProfile(api, profile, elem): 39 - elem - Element which (may) have 'api' and 'profile' 72 elem_api = elem.get('api') 80 elem_profile = elem.get('profile') 201 def __init__(self, elem): 209 self.elem = elem 219 """Return True if self.elem and info.elem have the same attribute 224 if required and key not in self.elem [all...] |
H A D | check_html_xrefs.py | 20 def find_parent_ids(elem, href): 26 elem - this node 27 href - href link text of elem""" 30 parent = elem.getparent() 58 for elem in id_elems: 59 id = elem.get('id') 72 for elem in ref_elems: 73 href = elem.get('href') 80 refs.append((elem, href)) 84 refs.append((elem, hre [all...] |
H A D | schema_generator.py | 169 typeElem = typeinfo.elem 182 for elem in typeElem: 183 if elem.tag == 'name': 184 body += " \"" + elem.text + "\": {\"$ref\": \"#/definitions/uint64_t" + "\"}," 190 for elem in typeElem: 191 if elem.tag == 'type': 192 storeType = elem.text 194 if elem.tag == 'name': 195 if elem.text == "VkBool32": 196 body += " \"" + elem [all...] |
/third_party/vulkan-headers/registry/ |
H A D | reg.py | 33 def matchAPIProfile(api, profile, elem): 39 - elem - Element which (may) have 'api' and 'profile' 72 elem_api = elem.get('api') 80 elem_profile = elem.get('profile') 201 def __init__(self, elem): 209 self.elem = elem 219 """Return True if self.elem and info.elem have the same attribute 224 if required and key not in self.elem [all...] |
/third_party/vk-gl-cts/framework/delibs/decpp/ |
H A D | deThreadSafeRingBuffer.hpp | 45 void pushFront (const T& elem); 46 bool tryPushFront (const T& elem); 51 void pushFrontInternal (const T& elem); 83 inline void ThreadSafeRingBuffer<T>::pushFrontInternal (const T& elem) in pushFrontInternal() argument 85 m_elements[m_front] = elem; in pushFrontInternal() 98 void ThreadSafeRingBuffer<T>::pushFront (const T& elem) in pushFront() argument 102 pushFrontInternal(elem); in pushFront() 108 bool ThreadSafeRingBuffer<T>::tryPushFront (const T& elem) in tryPushFront() argument 117 pushFrontInternal(elem); in tryPushFront() 130 T elem in popBack() local [all...] |
/third_party/python/Lib/unittest/ |
H A D | util.py | 122 'Returns list of (cnt_act, cnt_exp, elem) triples where the counts differ' 128 for i, elem in enumerate(s): 129 if elem is NULL: 133 if s[j] == elem: 137 if other_elem == elem: 141 diff = _Mismatch(cnt_s, cnt_t, elem) 144 for i, elem in enumerate(t): 145 if elem is NULL: 149 if t[j] == elem: 152 diff = _Mismatch(0, cnt_t, elem) [all...] |
/third_party/python/Lib/xml/etree/ |
H A D | ElementInclude.py | 101 # @param elem Root element. 116 def include(elem, loader=None, base_url=None, 123 if hasattr(elem, 'getroot'): 124 elem = elem.getroot() 128 _include(elem, loader, base_url, max_depth, set()) 131 def _include(elem, loader, base_url, max_depth, _parent_hrefs): 134 while i < len(elem): 135 e = elem[i] 159 elem[ [all...] |
/kernel/linux/linux-5.10/samples/kmemleak/ |
H A D | kmemleak-test.c | 37 struct test_node *elem; in kmemleak_test_init() local 68 elem = kzalloc(sizeof(*elem), GFP_KERNEL); in kmemleak_test_init() 69 pr_info("kzalloc(sizeof(*elem)) = %p\n", elem); in kmemleak_test_init() 70 if (!elem) in kmemleak_test_init() 72 INIT_LIST_HEAD(&elem->list); in kmemleak_test_init() 73 list_add_tail(&elem->list, &test_list); in kmemleak_test_init() 88 struct test_node *elem, *tmp; in kmemleak_test_exit() local 94 list_for_each_entry_safe(elem, tm in kmemleak_test_exit() [all...] |
/kernel/linux/linux-6.6/samples/kmemleak/ |
H A D | kmemleak-test.c | 37 struct test_node *elem; in kmemleak_test_init() local 68 elem = kzalloc(sizeof(*elem), GFP_KERNEL); in kmemleak_test_init() 69 pr_info("kzalloc(sizeof(*elem)) = %p\n", elem); in kmemleak_test_init() 70 if (!elem) in kmemleak_test_init() 72 INIT_LIST_HEAD(&elem->list); in kmemleak_test_init() 73 list_add_tail(&elem->list, &test_list); in kmemleak_test_init() 88 struct test_node *elem, *tmp; in kmemleak_test_exit() local 94 list_for_each_entry_safe(elem, tm in kmemleak_test_exit() [all...] |
/third_party/alsa-lib/src/topology/ |
H A D | text.c | 26 static int parse_text_values(snd_config_t *cfg, struct tplg_elem *elem) in parse_text_values() argument 28 struct tplg_texts *texts = elem->texts; in parse_text_values() 34 tplg_dbg(" Text Values: %s", elem->id); in parse_text_values() 67 struct tplg_elem *elem; in tplg_parse_text() local 69 elem = tplg_elem_new_common(tplg, cfg, NULL, SND_TPLG_TYPE_TEXT); in tplg_parse_text() 70 if (!elem) in tplg_parse_text() 80 err = parse_text_values(n, elem); in tplg_parse_text() 94 struct tplg_elem *elem, in tplg_save_text() 97 struct tplg_texts *texts = elem->texts; in tplg_save_text() 103 err = tplg_save_printf(dst, pfx, "'%s'.values [\n", elem in tplg_save_text() 93 tplg_save_text(snd_tplg_t *tplg ATTRIBUTE_UNUSED, struct tplg_elem *elem, struct tplg_buf *dst, const char *pfx) tplg_save_text() argument [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/base/circbuf/interface/ |
H A D | ia_css_circbuf.h | 97 * @param elem The pointer to the element. 101 ia_css_circbuf_elem_t *elem, in ia_css_circbuf_elem_set_val() 104 OP___assert(elem); in ia_css_circbuf_elem_set_val() 106 elem->val = val; in ia_css_circbuf_elem_set_val() 112 * @param elem The pointer to the element. 115 ia_css_circbuf_elem_t *elem) in ia_css_circbuf_elem_init() 117 OP___assert(elem); in ia_css_circbuf_elem_init() 118 ia_css_circbuf_elem_set_val(elem, 0); in ia_css_circbuf_elem_init() 275 * @param elem The new element. 279 ia_css_circbuf_elem_t elem) in ia_css_circbuf_write() 100 ia_css_circbuf_elem_set_val( ia_css_circbuf_elem_t *elem, uint32_t val) ia_css_circbuf_elem_set_val() argument 114 ia_css_circbuf_elem_init( ia_css_circbuf_elem_t *elem) ia_css_circbuf_elem_init() argument 277 ia_css_circbuf_write( ia_css_circbuf_t *cb, ia_css_circbuf_elem_t elem) ia_css_circbuf_write() argument 305 ia_css_circbuf_elem_t elem; ia_css_circbuf_push() local [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/base/circbuf/interface/ |
H A D | ia_css_circbuf.h | 97 * @param elem The pointer to the element. 101 ia_css_circbuf_elem_t *elem, in ia_css_circbuf_elem_set_val() 104 OP___assert(elem); in ia_css_circbuf_elem_set_val() 106 elem->val = val; in ia_css_circbuf_elem_set_val() 112 * @param elem The pointer to the element. 115 ia_css_circbuf_elem_t *elem) in ia_css_circbuf_elem_init() 117 OP___assert(elem); in ia_css_circbuf_elem_init() 118 ia_css_circbuf_elem_set_val(elem, 0); in ia_css_circbuf_elem_init() 275 * @param elem The new element. 279 ia_css_circbuf_elem_t elem) in ia_css_circbuf_write() 100 ia_css_circbuf_elem_set_val( ia_css_circbuf_elem_t *elem, uint32_t val) ia_css_circbuf_elem_set_val() argument 114 ia_css_circbuf_elem_init( ia_css_circbuf_elem_t *elem) ia_css_circbuf_elem_init() argument 277 ia_css_circbuf_write( ia_css_circbuf_t *cb, ia_css_circbuf_elem_t elem) ia_css_circbuf_write() argument 305 ia_css_circbuf_elem_t elem; ia_css_circbuf_push() local [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | tree.c | 28 void *elem; member 43 unsigned int v = cmp(key, t->elem); in av_tree_find() 46 next[v >> 31] = t->elem; in av_tree_find() 53 return t->elem; in av_tree_find() 64 unsigned int v = cmp(t->elem, key); in av_tree_insert() 68 return t->elem; in av_tree_insert() 73 key = t->elem = next_elem[i]; in av_tree_insert() 139 (*tp)->elem = key; in av_tree_insert() 156 int (*cmp)(void *opaque, void *elem), in av_tree_enumerate() 157 int (*enu)(void *opaque, void *elem)) in av_tree_enumerate() 155 av_tree_enumerate(AVTreeNode *t, void *opaque, int (*cmp)(void *opaque, void *elem), int (*enu)(void *opaque, void *elem)) av_tree_enumerate() argument [all...] |
/kernel/linux/linux-6.6/drivers/platform/x86/hp/hp-bioscfg/ |
H A D | enum-attributes.c | 133 int elem = 0; in hp_populate_enumeration_elements_from_package() local 140 for (elem = 1, eloc = 1; elem < enum_obj_count; elem++, eloc++) { in hp_populate_enumeration_elements_from_package() 145 switch (enum_obj[elem].type) { in hp_populate_enumeration_elements_from_package() 147 if (PREREQUISITES != elem && ENUM_POSSIBLE_VALUES != elem) { in hp_populate_enumeration_elements_from_package() 148 ret = hp_convert_hexstr_to_str(enum_obj[elem].string.pointer, in hp_populate_enumeration_elements_from_package() 149 enum_obj[elem].string.length, in hp_populate_enumeration_elements_from_package() 156 int_value = (u32)enum_obj[elem] in hp_populate_enumeration_elements_from_package() [all...] |
/third_party/alsa-utils/alsamixer/ |
H A D | mixer_widget.c | 61 static int elem_callback(snd_mixer_elem_t *elem ATTRIBUTE_UNUSED, unsigned int mask) in elem_callback() 76 static int mixer_callback(snd_mixer_t *mixer ATTRIBUTE_UNUSED, unsigned int mask, snd_mixer_elem_t *elem) in mixer_callback() argument 79 snd_mixer_elem_set_callback(elem, elem_callback); in mixer_callback() 233 snd_mixer_selem_get_id(controls[focus_control_index].elem, current_selem_id); in refocus_control() 260 err = snd_mixer_selem_get_enum_item(control->elem, i, &index); in change_enum_to_percent() 267 items = snd_mixer_selem_get_enum_items(control->elem); in change_enum_to_percent() 276 snd_mixer_selem_set_enum_item(control->elem, i, new_index); in change_enum_to_percent() 287 items = snd_mixer_selem_get_enum_items(control->elem); in change_enum_relative() 290 err = snd_mixer_selem_get_enum_item(control->elem, 0, &index); in change_enum_relative() 302 snd_mixer_selem_set_enum_item(control->elem, in change_enum_relative() [all...] |
/kernel/linux/linux-5.10/sound/pci/cs5535audio/ |
H A D | cs5535audio_olpc.c | 146 struct snd_ctl_elem_id elem; in olpc_quirks() local 159 memset(&elem, 0, sizeof(elem)); in olpc_quirks() 160 elem.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in olpc_quirks() 161 strlcpy(elem.name, "High Pass Filter Enable", sizeof(elem.name)); in olpc_quirks() 162 snd_ctl_remove_id(card, &elem); in olpc_quirks() 165 memset(&elem, 0, sizeof(elem)); in olpc_quirks() 166 elem in olpc_quirks() [all...] |
/kernel/linux/linux-6.6/sound/pci/cs5535audio/ |
H A D | cs5535audio_olpc.c | 146 struct snd_ctl_elem_id elem; in olpc_quirks() local 159 memset(&elem, 0, sizeof(elem)); in olpc_quirks() 160 elem.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in olpc_quirks() 161 strscpy(elem.name, "High Pass Filter Enable", sizeof(elem.name)); in olpc_quirks() 162 snd_ctl_remove_id(card, &elem); in olpc_quirks() 165 memset(&elem, 0, sizeof(elem)); in olpc_quirks() 166 elem in olpc_quirks() [all...] |
/third_party/pulseaudio/src/pulsecore/ |
H A D | flist.c | 137 pa_flist_elem *elem; in pa_flist_free() local 138 while((elem = stack_pop(l, &l->stored))) in pa_flist_free() 139 free_cb(pa_atomic_ptr_load(&elem->ptr)); in pa_flist_free() 147 pa_flist_elem *elem; in pa_flist_push() local 151 elem = stack_pop(l, &l->empty); in pa_flist_push() 152 if (elem == NULL) { in pa_flist_push() 157 pa_atomic_ptr_store(&elem->ptr, p); in pa_flist_push() 158 stack_push(l, &l->stored, elem); in pa_flist_push() 164 pa_flist_elem *elem; in pa_flist_pop() local 168 elem in pa_flist_pop() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | async_stack_depth.c | 36 struct hmap_elem *elem; in pseudo_call_check() local 39 elem = bpf_map_lookup_elem(&hmap, &(int){0}); in pseudo_call_check() 40 if (!elem) in pseudo_call_check() 44 return bpf_timer_set_callback(&elem->timer, timer_cb) + buf[0]; in pseudo_call_check() 51 struct hmap_elem *elem; in async_call_root_check() local 54 elem = bpf_map_lookup_elem(&hmap, &(int){0}); in async_call_root_check() 55 if (!elem) in async_call_root_check() 58 return bpf_timer_set_callback(&elem->timer, bad_timer_cb) + buf[0]; in async_call_root_check()
|
/foundation/communication/netmanager_base/utils/common_utils/include/ |
H A D | delayed_queue.h | 37 for (const auto &elem : elems_[index_]) {
in DelayedQueue() 38 if (elem) {
in DelayedQueue() 39 elem->Execute();
in DelayedQueue() 41 indexMap_.erase(elem);
in DelayedQueue() 66 void Put(const std::shared_ptr<T> &elem)
in Put() argument 69 if (indexMap_.find(elem) != indexMap_.end()) {
in Put() 70 int oldIndex = indexMap_[elem];
in Put() 72 (elems_[oldIndex].find(elem) != elems_[oldIndex].end())) {
in Put() 73 elems_[oldIndex].erase(elem);
in Put() 77 elems_[index].insert(elem);
in Put() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/ |
H A D | rxe_pool.h | 102 int rxe_add_to_pool(struct rxe_pool *pool, struct rxe_pool_entry *elem); 107 void rxe_add_index(void *elem); 110 void rxe_drop_index(void *elem); 115 void rxe_add_key(void *elem, void *key); 117 /* remove elem from rb tree */ 118 void rxe_drop_key(void *elem); 130 #define rxe_add_ref(elem) kref_get(&(elem)->pelem.ref_cnt) 133 #define rxe_drop_ref(elem) kref_put(&(elem) [all...] |
/third_party/EGL/api/ |
H A D | reg.py | 29 # elem - Element which (may) have 'api' and 'profile' 53 def matchAPIProfile(api, profile, elem): 57 if ('api' in elem.attrib): 60 elem.get('api') + "'") 61 elif (api != elem.get('api')): 64 if ('profile' in elem.attrib): 67 elem.get('profile') + "'") 68 elif (profile != elem.get('profile')): 78 # elem - lxml.etree Element for this feature 83 def __init__(self, elem) [all...] |
/third_party/openGLES/xml/ |
H A D | reg.py | 28 # elem - Element which (may) have 'api' and 'profile' 52 def matchAPIProfile(api, profile, elem): 56 if ('api' in elem.attrib): 59 elem.get('api') + "'") 60 elif (api != elem.get('api')): 63 if ('profile' in elem.attrib): 66 elem.get('profile') + "'") 67 elif (profile != elem.get('profile')): 77 # elem - lxml.etree Element for this feature 82 def __init__(self, elem) [all...] |
/third_party/skia/third_party/externals/opengl-registry/xml/ |
H A D | reg.py | 39 # elem - Element which (may) have 'api' and 'profile' 63 def matchAPIProfile(api, profile, elem): 67 if ('api' in elem.attrib): 70 elem.get('api') + "'") 71 elif (api != elem.get('api')): 74 if ('profile' in elem.attrib): 77 elem.get('profile') + "'") 78 elif (profile != elem.get('profile')): 88 # elem - lxml.etree Element for this feature 93 def __init__(self, elem) [all...] |
/third_party/skia/third_party/externals/egl-registry/api/ |
H A D | reg.py | 40 # elem - Element which (may) have 'api' and 'profile' 64 def matchAPIProfile(api, profile, elem): 68 if ('api' in elem.attrib): 71 elem.get('api') + "'") 72 elif (api != elem.get('api')): 75 if ('profile' in elem.attrib): 78 elem.get('profile') + "'") 79 elif (profile != elem.get('profile')): 89 # elem - lxml.etree Element for this feature 94 def __init__(self, elem) [all...] |