Home
last modified time | relevance | path

Searched refs:elem (Results 1 – 25 of 196) sorted by relevance

12345678

/linux-6.6.21/drivers/infiniband/sw/rxe/
Drxe_pool.c16 void (*cleanup)(struct rxe_pool_elem *elem);
24 .elem_offset = offsetof(struct rxe_ucontext, elem),
32 .elem_offset = offsetof(struct rxe_pd, elem),
40 .elem_offset = offsetof(struct rxe_ah, elem),
48 .elem_offset = offsetof(struct rxe_srq, elem),
57 .elem_offset = offsetof(struct rxe_qp, elem),
66 .elem_offset = offsetof(struct rxe_cq, elem),
75 .elem_offset = offsetof(struct rxe_mr, elem),
84 .elem_offset = offsetof(struct rxe_mw, elem),
119 int __rxe_add_to_pool(struct rxe_pool *pool, struct rxe_pool_elem *elem, in __rxe_add_to_pool() argument
[all …]
Drxe_pool.h34 void (*cleanup)(struct rxe_pool_elem *elem);
58 int __rxe_add_to_pool(struct rxe_pool *pool, struct rxe_pool_elem *elem,
60 #define rxe_add_to_pool(pool, obj) __rxe_add_to_pool(pool, &(obj)->elem, true)
62 &(obj)->elem, sleepable)
67 int __rxe_get(struct rxe_pool_elem *elem);
68 #define rxe_get(obj) __rxe_get(&(obj)->elem)
70 int __rxe_put(struct rxe_pool_elem *elem);
71 #define rxe_put(obj) __rxe_put(&(obj)->elem)
73 int __rxe_cleanup(struct rxe_pool_elem *elem, bool sleepable);
74 #define rxe_cleanup(obj) __rxe_cleanup(&(obj)->elem, true)
[all …]
Drxe.h45 "uc#%d %s: " fmt, (uc)->elem.index, __func__, ##__VA_ARGS__)
47 "pd#%d %s: " fmt, (pd)->elem.index, __func__, ##__VA_ARGS__)
49 "ah#%d %s: " fmt, (ah)->elem.index, __func__, ##__VA_ARGS__)
51 "srq#%d %s: " fmt, (srq)->elem.index, __func__, ##__VA_ARGS__)
53 "qp#%d %s: " fmt, (qp)->elem.index, __func__, ##__VA_ARGS__)
55 "cq#%d %s: " fmt, (cq)->elem.index, __func__, ##__VA_ARGS__)
57 "mr#%d %s: " fmt, (mr)->elem.index, __func__, ##__VA_ARGS__)
59 "mw#%d %s: " fmt, (mw)->elem.index, __func__, ##__VA_ARGS__)
66 "uc#%d %s: " fmt, (uc)->elem.index, __func__, ##__VA_ARGS__)
68 "pd#%d %s: " fmt, (pd)->elem.index, __func__, ##__VA_ARGS__)
[all …]
/linux-6.6.21/drivers/isdn/mISDN/
Ddsp_pipeline.c21 struct mISDN_dsp_element *elem; member
26 struct mISDN_dsp_element *elem; member
39 struct mISDN_dsp_element *elem = dev_get_drvdata(dev); in attr_show_args() local
44 for (i = 0; i < elem->num_args; i++) in attr_show_args()
46 elem->args[i].name, in attr_show_args()
47 elem->args[i].def ? "Default: " : "", in attr_show_args()
48 elem->args[i].def ? elem->args[i].def : "", in attr_show_args()
49 elem->args[i].def ? "\n" : "", in attr_show_args()
50 elem->args[i].desc); in attr_show_args()
68 int mISDN_dsp_element_register(struct mISDN_dsp_element *elem) in mISDN_dsp_element_register() argument
[all …]
/linux-6.6.21/tools/net/ynl/lib/
Dnlspec.py197 for elem in self.yaml['attributes']:
198 if 'value' in elem:
199 val = elem['value']
201 attr = self.new_attr(elem, val)
207 for elem in self.yaml['attributes']:
208 attr = real_set[elem['name']]
212 def new_attr(self, elem, value): argument
213 return SpecAttr(self.family, self, elem, value)
265 def new_member(self, family, elem): argument
266 return SpecStructMember(family, elem)
[all …]
/linux-6.6.21/sound/usb/
Dmixer_scarlett.c235 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_info() local
238 uinfo->count = elem->channels; in scarlett_ctl_switch_info()
247 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_get() local
250 for (i = 0; i < elem->channels; i++) { in scarlett_ctl_switch_get()
251 err = snd_usb_get_cur_mix_value(elem, i, i, &val); in scarlett_ctl_switch_get()
265 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_put() local
269 for (i = 0; i < elem->channels; i++) { in scarlett_ctl_switch_put()
270 err = snd_usb_get_cur_mix_value(elem, i, i, &oval); in scarlett_ctl_switch_put()
277 err = snd_usb_set_cur_mix_value(elem, i, i, val); in scarlett_ctl_switch_put()
290 struct usb_mixer_elem_info *elem = mixer_elem_list_to_info(list); in scarlett_ctl_resume() local
[all …]
Dmixer_us16x08.c183 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_route_get() local
187 ucontrol->value.enumerated.item[0] = elem->cache_val[index]; in snd_us16x08_route_get()
195 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_route_put() local
196 struct snd_usb_audio *chip = elem->head.mixer->chip; in snd_us16x08_route_put()
229 elem->cached |= 1 << index; in snd_us16x08_route_put()
230 elem->cache_val[index] = val; in snd_us16x08_route_put()
252 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_master_get() local
255 ucontrol->value.integer.value[0] = elem->cache_val[index]; in snd_us16x08_master_get()
263 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_master_put() local
264 struct snd_usb_audio *chip = elem->head.mixer->chip; in snd_us16x08_master_put()
[all …]
Dmixer_scarlett_gen2.c1737 struct usb_mixer_elem_info *elem; in scarlett2_add_new_ctl() local
1740 elem = kzalloc(sizeof(*elem), GFP_KERNEL); in scarlett2_add_new_ctl()
1741 if (!elem) in scarlett2_add_new_ctl()
1748 elem->head.mixer = mixer; in scarlett2_add_new_ctl()
1749 elem->control = index; in scarlett2_add_new_ctl()
1750 elem->head.id = 0; in scarlett2_add_new_ctl()
1751 elem->channels = channels; in scarlett2_add_new_ctl()
1752 elem->val_type = USB_MIXER_BESPOKEN; in scarlett2_add_new_ctl()
1754 kctl = snd_ctl_new1(ncontrol, elem); in scarlett2_add_new_ctl()
1756 kfree(elem); in scarlett2_add_new_ctl()
[all …]
/linux-6.6.21/fs/xfs/
Dxfs_mru_cache.c192 struct xfs_mru_cache_elem *elem) in _xfs_mru_cache_list_insert() argument
215 list_add_tail(&elem->list_node, mru->lists + grp); in _xfs_mru_cache_list_insert()
232 struct xfs_mru_cache_elem *elem, *next; in _xfs_mru_cache_clear_reap_list() local
236 list_for_each_entry_safe(elem, next, &mru->reap_list, list_node) { in _xfs_mru_cache_clear_reap_list()
239 radix_tree_delete(&mru->store, elem->key); in _xfs_mru_cache_clear_reap_list()
245 list_move(&elem->list_node, &tmp); in _xfs_mru_cache_clear_reap_list()
249 list_for_each_entry_safe(elem, next, &tmp, list_node) { in _xfs_mru_cache_clear_reap_list()
250 list_del_init(&elem->list_node); in _xfs_mru_cache_clear_reap_list()
251 mru->free_func(mru->data, elem); in _xfs_mru_cache_clear_reap_list()
422 struct xfs_mru_cache_elem *elem) in xfs_mru_cache_insert() argument
[all …]
/linux-6.6.21/samples/kmemleak/
Dkmemleak-test.c37 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, tmp, &test_list, list) in kmemleak_test_exit()
95 list_del(&elem->list); in kmemleak_test_exit()
/linux-6.6.21/drivers/platform/x86/hp/hp-bioscfg/
Denum-attributes.c133 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].integer.value; in hp_populate_enumeration_elements_from_package()
159 pr_warn("Unsupported object type [%d]\n", enum_obj[elem].type); in hp_populate_enumeration_elements_from_package()
164 if (expected_enum_types[eloc] != enum_obj[elem].type) { in hp_populate_enumeration_elements_from_package()
166 expected_enum_types[eloc], elem, enum_obj[elem].type); in hp_populate_enumeration_elements_from_package()
[all …]
Dstring-attributes.c137 int elem; in hp_populate_string_elements_from_package() local
146 for (elem = 1, eloc = 1; elem < string_obj_count; elem++, eloc++) { in hp_populate_string_elements_from_package()
151 switch (string_obj[elem].type) { in hp_populate_string_elements_from_package()
153 if (elem != PREREQUISITES) { in hp_populate_string_elements_from_package()
154 ret = hp_convert_hexstr_to_str(string_obj[elem].string.pointer, in hp_populate_string_elements_from_package()
155 string_obj[elem].string.length, in hp_populate_string_elements_from_package()
163 int_value = (u32)string_obj[elem].integer.value; in hp_populate_string_elements_from_package()
166 pr_warn("Unsupported object type [%d]\n", string_obj[elem].type); in hp_populate_string_elements_from_package()
171 if (expected_string_types[eloc] != string_obj[elem].type) { in hp_populate_string_elements_from_package()
173 expected_string_types[eloc], elem, string_obj[elem].type); in hp_populate_string_elements_from_package()
[all …]
Dint-attributes.c147 int elem; in hp_populate_integer_elements_from_package() local
156 for (elem = 1, eloc = 1; elem < integer_obj_count; elem++, eloc++) { in hp_populate_integer_elements_from_package()
161 switch (integer_obj[elem].type) { in hp_populate_integer_elements_from_package()
163 if (elem != PREREQUISITES) { in hp_populate_integer_elements_from_package()
164 ret = hp_convert_hexstr_to_str(integer_obj[elem].string.pointer, in hp_populate_integer_elements_from_package()
165 integer_obj[elem].string.length, in hp_populate_integer_elements_from_package()
172 int_value = (u32)integer_obj[elem].integer.value; in hp_populate_integer_elements_from_package()
175 pr_warn("Unsupported object type [%d]\n", integer_obj[elem].type); in hp_populate_integer_elements_from_package()
179 if (expected_integer_types[eloc] != integer_obj[elem].type) { in hp_populate_integer_elements_from_package()
181 expected_integer_types[eloc], elem, integer_obj[elem].type); in hp_populate_integer_elements_from_package()
[all …]
Dorder-list-attributes.c138 int elem; in hp_populate_ordered_list_elements_from_package() local
151 for (elem = 1, eloc = 1; eloc < ORD_ELEM_CNT; elem++, eloc++) { in hp_populate_ordered_list_elements_from_package()
153 switch (order_obj[elem].type) { in hp_populate_ordered_list_elements_from_package()
155 if (elem != PREREQUISITES && elem != ORD_LIST_ELEMENTS) { in hp_populate_ordered_list_elements_from_package()
156 ret = hp_convert_hexstr_to_str(order_obj[elem].string.pointer, in hp_populate_ordered_list_elements_from_package()
157 order_obj[elem].string.length, in hp_populate_ordered_list_elements_from_package()
164 int_value = (u32)order_obj[elem].integer.value; in hp_populate_ordered_list_elements_from_package()
167 pr_warn("Unsupported object type [%d]\n", order_obj[elem].type); in hp_populate_ordered_list_elements_from_package()
172 if (expected_order_types[eloc] != order_obj[elem].type) { in hp_populate_ordered_list_elements_from_package()
174 expected_order_types[eloc], elem, order_obj[elem].type); in hp_populate_ordered_list_elements_from_package()
[all …]
/linux-6.6.21/sound/pci/cs5535audio/
Dcs5535audio_olpc.c146 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.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in olpc_quirks()
167 strscpy(elem.name, "V_REFOUT Enable", sizeof(elem.name)); in olpc_quirks()
168 snd_ctl_remove_id(card, &elem); in olpc_quirks()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dasync_stack_depth.c36 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()
/linux-6.6.21/drivers/staging/media/atomisp/pci/base/circbuf/interface/
Dia_css_circbuf.h101 ia_css_circbuf_elem_t *elem, in ia_css_circbuf_elem_set_val() argument
104 OP___assert(elem); in ia_css_circbuf_elem_set_val()
106 elem->val = val; in ia_css_circbuf_elem_set_val()
115 ia_css_circbuf_elem_t *elem) in ia_css_circbuf_elem_init() argument
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()
279 ia_css_circbuf_elem_t elem) in ia_css_circbuf_write() argument
287 ia_css_circbuf_elem_cpy(&elem, &cb->elems[cb->desc->end]); in ia_css_circbuf_write()
305 ia_css_circbuf_elem_t elem; in ia_css_circbuf_push() local
310 ia_css_circbuf_elem_init(&elem); in ia_css_circbuf_push()
[all …]
/linux-6.6.21/drivers/scsi/
Dch.c223 ch_elem_to_typecode(scsi_changer *ch, u_int elem) in ch_elem_to_typecode() argument
228 if (elem >= ch->firsts[i] && in ch_elem_to_typecode()
229 elem < ch->firsts[i] + in ch_elem_to_typecode()
237 ch_read_element_status(scsi_changer *ch, u_int elem, char *data) in ch_read_element_status() argument
252 ch_elem_to_typecode(ch,elem); in ch_read_element_status()
253 cmd[2] = (elem >> 8) & 0xff; in ch_read_element_status()
254 cmd[3] = elem & 0xff; in ch_read_element_status()
259 if (((buffer[16] << 8) | buffer[17]) != elem) { in ch_read_element_status()
261 elem,(buffer[16] << 8) | buffer[17]); in ch_read_element_status()
272 DPRINTK("READ ELEMENT STATUS for element 0x%x failed\n",elem); in ch_read_element_status()
[all …]
/linux-6.6.21/drivers/scsi/csiostor/
Dcsio_defs.h47 #define CSIO_INC_STATS(elem, val) ((elem)->stats.val++) argument
48 #define CSIO_DEC_STATS(elem, val) ((elem)->stats.val--) argument
72 #define csio_list_next(elem) (((struct list_head *)(elem))->next) argument
73 #define csio_list_prev(elem) (((struct list_head *)(elem))->prev) argument
/linux-6.6.21/tools/perf/util/cs-etm-decoder/
Dcs-etm-decoder.c306 const ocsd_generic_trace_elem *elem, in cs_etm_decoder__do_hard_timestamp() argument
323 converted_timestamp = elem->timestamp ? in cs_etm_decoder__do_hard_timestamp()
324 cs_etm__convert_sample_time(etmq, elem->timestamp) : 0; in cs_etm_decoder__do_hard_timestamp()
433 const ocsd_generic_trace_elem *elem, in cs_etm_decoder__buffer_range() argument
446 switch (elem->isa) { in cs_etm_decoder__buffer_range()
464 packet->start_addr = elem->st_addr; in cs_etm_decoder__buffer_range()
465 packet->end_addr = elem->en_addr; in cs_etm_decoder__buffer_range()
466 packet->instr_count = elem->num_instr_range; in cs_etm_decoder__buffer_range()
467 packet->last_instr_type = elem->last_i_type; in cs_etm_decoder__buffer_range()
468 packet->last_instr_subtype = elem->last_i_subtype; in cs_etm_decoder__buffer_range()
[all …]
/linux-6.6.21/net/netfilter/ipset/
Dip_set_bitmap_ipmac.c86 const struct bitmap_ipmac_elem *elem; in bitmap_ipmac_do_test() local
90 elem = get_const_elem(map->extensions, e->id, dsize); in bitmap_ipmac_do_test()
91 if (e->add_mac && elem->filled == MAC_FILLED) in bitmap_ipmac_do_test()
92 return ether_addr_equal(e->ether, elem->ether); in bitmap_ipmac_do_test()
100 const struct bitmap_ipmac_elem *elem; in bitmap_ipmac_gc_test() local
104 elem = get_const_elem(map->extensions, id, dsize); in bitmap_ipmac_gc_test()
106 return elem->filled == MAC_FILLED; in bitmap_ipmac_gc_test()
110 bitmap_ipmac_is_filled(const struct bitmap_ipmac_elem *elem) in bitmap_ipmac_is_filled() argument
112 return elem->filled == MAC_FILLED; in bitmap_ipmac_is_filled()
146 struct bitmap_ipmac_elem *elem; in bitmap_ipmac_do_add() local
[all …]
Dip_set_hash_netiface.c52 u8 elem; member
61 u8 elem; member
83 hash_netiface4_do_data_match(const struct hash_netiface4_elem *elem) in hash_netiface4_do_data_match() argument
85 return elem->nomatch ? -ENOTEMPTY : 1; in hash_netiface4_do_data_match()
89 hash_netiface4_data_set_flags(struct hash_netiface4_elem *elem, u32 flags) in hash_netiface4_data_set_flags() argument
91 elem->nomatch = (flags >> 16) & IPSET_FLAG_NOMATCH; in hash_netiface4_data_set_flags()
95 hash_netiface4_data_reset_flags(struct hash_netiface4_elem *elem, u8 *flags) in hash_netiface4_data_reset_flags() argument
97 swap(*flags, elem->nomatch); in hash_netiface4_data_reset_flags()
101 hash_netiface4_data_netmask(struct hash_netiface4_elem *elem, u8 cidr) in hash_netiface4_data_netmask() argument
103 elem->ip &= ip_set_netmask(cidr); in hash_netiface4_data_netmask()
[all …]
Dip_set_hash_netnet.c69 hash_netnet4_do_data_match(const struct hash_netnet4_elem *elem) in hash_netnet4_do_data_match() argument
71 return elem->nomatch ? -ENOTEMPTY : 1; in hash_netnet4_do_data_match()
75 hash_netnet4_data_set_flags(struct hash_netnet4_elem *elem, u32 flags) in hash_netnet4_data_set_flags() argument
77 elem->nomatch = (flags >> 16) & IPSET_FLAG_NOMATCH; in hash_netnet4_data_set_flags()
81 hash_netnet4_data_reset_flags(struct hash_netnet4_elem *elem, u8 *flags) in hash_netnet4_data_reset_flags() argument
83 swap(*flags, elem->nomatch); in hash_netnet4_data_reset_flags()
87 hash_netnet4_data_reset_elem(struct hash_netnet4_elem *elem, in hash_netnet4_data_reset_elem() argument
90 elem->ip[1] = orig->ip[1]; in hash_netnet4_data_reset_elem()
94 hash_netnet4_data_netmask(struct hash_netnet4_elem *elem, u8 cidr, bool inner) in hash_netnet4_data_netmask() argument
97 elem->ip[1] &= ip_set_netmask(cidr); in hash_netnet4_data_netmask()
[all …]
/linux-6.6.21/net/core/
Dsock_map.c869 struct bpf_shtab_elem *elem; in sock_hash_lookup_elem_raw() local
871 hlist_for_each_entry_rcu(elem, head, node) { in sock_hash_lookup_elem_raw()
872 if (elem->hash == hash && in sock_hash_lookup_elem_raw()
873 !memcmp(&elem->key, key, key_size)) in sock_hash_lookup_elem_raw()
874 return elem; in sock_hash_lookup_elem_raw()
885 struct bpf_shtab_elem *elem; in __sock_hash_lookup_elem() local
891 elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); in __sock_hash_lookup_elem()
893 return elem ? elem->sk : NULL; in __sock_hash_lookup_elem()
897 struct bpf_shtab_elem *elem) in sock_hash_free_elem() argument
900 kfree_rcu(elem, rcu); in sock_hash_free_elem()
[all …]
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/
Dqed_spq.c143 le32_to_cpu(p_ent->elem.hdr.cid), in qed_spq_block()
144 qed_get_ramrod_cmd_id_str(p_ent->elem.hdr.protocol_id, in qed_spq_block()
145 p_ent->elem.hdr.cmd_id), in qed_spq_block()
146 p_ent->elem.hdr.cmd_id, in qed_spq_block()
147 qed_get_protocol_type_str(p_ent->elem.hdr.protocol_id), in qed_spq_block()
148 p_ent->elem.hdr.protocol_id, in qed_spq_block()
149 le16_to_cpu(p_ent->elem.hdr.echo)); in qed_spq_block()
179 p_ent->elem.hdr.cid, in qed_spq_fill_entry()
180 qed_get_ramrod_cmd_id_str(p_ent->elem.hdr.protocol_id, in qed_spq_fill_entry()
181 p_ent->elem.hdr.cmd_id), in qed_spq_fill_entry()
[all …]

12345678