Home
last modified time | relevance | path

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

12345678910>>...12

/openbmc/linux/drivers/infiniband/sw/rxe/
H A Drxe_pool.c128 elem->pool = pool; in __rxe_add_to_pool()
129 elem->obj = (u8 *)elem - pool->elem_offset; in __rxe_add_to_pool()
130 kref_init(&elem->ref_cnt); in __rxe_add_to_pool()
160 elem = xa_load(xa, index); in rxe_pool_get_index()
161 if (elem && kref_get_unless_zero(&elem->ref_cnt)) in rxe_pool_get_index()
162 obj = elem->obj; in rxe_pool_get_index()
172 struct rxe_pool_elem *elem = container_of(kref, typeof(*elem), ref_cnt); in rxe_elem_release() local
174 complete(&elem->complete); in rxe_elem_release()
198 __rxe_put(elem); in __rxe_cleanup()
233 pool->cleanup(elem); in __rxe_cleanup()
[all …]
H A Drxe_pool.h34 void (*cleanup)(struct rxe_pool_elem *elem);
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)
77 #define rxe_read(obj) kref_read(&(obj)->elem.ref_cnt)
79 void __rxe_finalize(struct rxe_pool_elem *elem);
[all …]
H A 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__)
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__)
70 "ah#%d %s: " fmt, (ah)->elem.index, __func__, ##__VA_ARGS__)
[all …]
/openbmc/linux/drivers/isdn/mISDN/
H A Ddsp_pipeline.c21 struct mISDN_dsp_element *elem; member
26 struct mISDN_dsp_element *elem; member
46 elem->args[i].name, in attr_show_args()
48 elem->args[i].def ? elem->args[i].def : "", in attr_show_args()
50 elem->args[i].desc); in attr_show_args()
73 if (!elem) in mISDN_dsp_element_register()
81 entry->elem = elem; in mISDN_dsp_element_register()
120 if (!elem) in mISDN_dsp_element_unregister()
124 if (entry->elem == elem) { in mISDN_dsp_element_unregister()
220 elem = entry->elem; in dsp_pipeline_build()
[all …]
/openbmc/linux/tools/net/ynl/lib/
H A Dnlspec.py429 def new_enum(self, elem): argument
435 def new_struct(self, elem): argument
451 if 'value' in elem:
463 if 'notify' in elem or 'event' in elem:
469 elif 'do' in elem or 'dump' in elem:
470 mode = elem['do'] if 'do' in elem else elem['dump']
514 for elem in definitions:
515 if elem['type'] == 'enum' or elem['type'] == 'flags':
516 self.consts[elem['name']] = self.new_enum(elem)
518 self.consts[elem['name']] = self.new_struct(elem)
[all …]
/openbmc/linux/sound/usb/
H A Dmixer_scarlett.c451 if (elem->cached) in scarlett_ctl_enum_resume()
452 snd_usb_set_cur_mix_value(elem, 0, 0, *elem->cache_val); in scarlett_ctl_enum_resume()
462 int wValue = (elem->control << 8) | elem->idx_off; in scarlett_ctl_meter_get()
549 elem = kzalloc(sizeof(*elem), GFP_KERNEL); in add_new_ctl()
550 if (!elem) in add_new_ctl()
567 kfree(elem); in add_new_ctl()
579 *elem_ret = elem; in add_new_ctl()
616 &elem); in add_output_ctls()
626 &elem); in add_output_ctls()
857 &elem); in scarlett_controls_create_generic()
[all …]
H A Dmixer_us16x08.c329 elem->cached |= 1; in snd_us16x08_bus_put()
1036 if (elem) in elem_private_free()
1038 kfree(elem); in elem_private_free()
1055 elem = kzalloc(sizeof(*elem), GFP_KERNEL); in add_new_ctl()
1056 if (!elem) in add_new_ctl()
1061 elem->control = 0; in add_new_ctl()
1062 elem->idx_off = 0; in add_new_ctl()
1070 kfree(elem); in add_new_ctl()
1086 *elem_ret = elem; in add_new_ctl()
1333 &elem); in snd_us16x08_controls_create()
[all …]
/openbmc/qemu/hw/remote/
H A Diommu.c43 RemoteIommuElem *elem = NULL; in remote_iommu_find_add_as() local
49 if (!elem) { in remote_iommu_find_add_as()
50 elem = g_new0(RemoteIommuElem, 1); in remote_iommu_find_add_as()
54 if (!elem->mr) { in remote_iommu_find_add_as()
57 address_space_init(&elem->as, elem->mr, NULL); in remote_iommu_find_add_as()
62 return &elem->as; in remote_iommu_find_add_as()
68 RemoteIommuElem *elem = NULL; in remote_iommu_unplug_dev() local
74 elem = container_of(as, RemoteIommuElem, as); in remote_iommu_unplug_dev()
76 address_space_destroy(&elem->as); in remote_iommu_unplug_dev()
78 object_unref(elem->mr); in remote_iommu_unplug_dev()
[all …]
/openbmc/openbmc/poky/scripts/lib/build_perf/
H A Dreport.py26 def metadata_xml_to_json(elem): argument
30 def _xml_to_json(elem): argument
40 return _xml_to_json(elem)
43 def results_xml_to_json(elem): argument
51 def _read_measurement(elem): argument
54 data['type'] = elem.tag
60 if elem.tag == 'sysres':
61 for subel in elem:
88 def _read_testcase(elem): argument
90 assert elem.tag == 'testcase', "Expecting 'testcase' element instead of {}".format(elem.tag)
[all …]
/openbmc/linux/fs/xfs/
H A Dxfs_mru_cache.c192 struct xfs_mru_cache_elem *elem) in _xfs_mru_cache_list_insert() argument
422 struct xfs_mru_cache_elem *elem) in xfs_mru_cache_insert() argument
434 elem->key = key; in xfs_mru_cache_insert()
457 struct xfs_mru_cache_elem *elem; in xfs_mru_cache_remove() local
465 if (elem) in xfs_mru_cache_remove()
466 list_del(&elem->list_node); in xfs_mru_cache_remove()
469 return elem; in xfs_mru_cache_remove()
484 if (elem) in xfs_mru_cache_delete()
521 if (elem) { in xfs_mru_cache_lookup()
522 list_del(&elem->list_node); in xfs_mru_cache_lookup()
[all …]
/openbmc/qemu/hw/9pfs/
H A Dvirtio-9p-device.c39 g_free(elem); in virtio_9p_push_and_notify()
52 VirtQueueElement *elem; in handle_9p_output() local
58 if (!elem) { in handle_9p_output()
62 if (iov_size(elem->in_sg, elem->in_num) < 7) { in handle_9p_output()
69 len = iov_to_buf(elem->out_sg, elem->out_num, 0, &out, 7); in handle_9p_output()
85 g_free(elem); in handle_9p_output()
128 ret = v9fs_iov_vmarshal(elem->in_sg, elem->in_num, offset, 1, fmt, ap); in virtio_pdu_vmarshal()
146 ret = v9fs_iov_vunmarshal(elem->out_sg, elem->out_num, offset, 1, fmt, ap); in virtio_pdu_vunmarshal()
161 size_t buf_size = iov_size(elem->in_sg, elem->in_num); in virtio_init_in_iov_from_pdu()
171 *piov = elem->in_sg; in virtio_init_in_iov_from_pdu()
[all …]
/openbmc/linux/samples/kmemleak/
H A 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()
/openbmc/qemu/util/
H A Dthread-pool.c177 ThreadPoolElement *elem, *next; in thread_pool_completion_bh() local
187 trace_thread_pool_complete(pool, elem, elem->common.opaque, in thread_pool_completion_bh()
189 QLIST_REMOVE(elem, all); in thread_pool_completion_bh()
191 if (elem->common.cb) { in thread_pool_completion_bh()
200 elem->common.cb(elem->common.opaque, elem->ret); in thread_pool_completion_bh()
208 qemu_aio_unref(elem); in thread_pool_completion_bh()
211 qemu_aio_unref(elem); in thread_pool_completion_bh()
221 ThreadPool *pool = elem->pool; in thread_pool_cancel()
223 trace_thread_pool_cancel(elem, elem->common.opaque); in thread_pool_cancel()
230 elem->state = THREAD_DONE; in thread_pool_cancel()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A 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()
/openbmc/linux/sound/pci/cs5535audio/
H A 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()
/openbmc/qemu/hw/audio/
H A Dvirtio-snd.c120 g_free(cmd->elem); in virtio_snd_ctrl_cmd_free()
187 if (iov_size(cmd->elem->in_sg, cmd->elem->in_num) < in virtio_snd_handle_pcm_info()
193 iov_size(cmd->elem->in_sg, cmd->elem->in_num), in virtio_snd_handle_pcm_info()
783 while (elem) { in virtio_snd_handle_ctrl()
785 cmd->elem = elem; in virtio_snd_handle_ctrl()
896 size = iov_size(elem->out_sg, elem->out_num) - msg_sz; in virtio_snd_handle_tx_xfer()
899 buffer->elem = elem; in virtio_snd_handle_tx_xfer()
912 buffer->elem = elem; in virtio_snd_handle_tx_xfer()
976 size = iov_size(elem->in_sg, elem->in_num) - in virtio_snd_handle_rx_xfer()
979 buffer->elem = elem; in virtio_snd_handle_rx_xfer()
[all …]
/openbmc/linux/drivers/platform/x86/hp/hp-bioscfg/
H A 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()
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()
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()
213 if (elem >= enum_obj_count) { in hp_populate_enumeration_elements_from_package()
219 enum_obj[elem + reqs].string.length, in hp_populate_enumeration_elements_from_package()
[all …]
H A 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()
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()
222 if (elem >= string_obj_count) { in hp_populate_string_elements_from_package()
[all …]
/openbmc/linux/drivers/staging/media/atomisp/pci/base/circbuf/interface/
H A 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
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()
311 ia_css_circbuf_elem_set_val(&elem, val); in ia_css_circbuf_push()
[all …]
/openbmc/linux/drivers/scsi/
H A Dch.c299 u_int elem; in ch_readconfig() local
370 for (elem = 0; elem < ch->counts[CHET_DT]; elem++) { in ch_readconfig()
373 if (elem < CH_DT_MAX && -1 != dt_id[elem]) { in ch_readconfig()
374 id = dt_id[elem]; in ch_readconfig()
375 lun = dt_lun[elem]; in ch_readconfig()
386 ch->dt[elem] = NULL; in ch_readconfig()
399 ch->dt[elem] = in ch_readconfig()
403 if (!ch->dt[elem]) { in ch_readconfig()
519 elem, tag); in ch_set_voltag()
777 unsigned int elem; in ch_ioctl() local
[all …]
/openbmc/linux/drivers/scsi/csiostor/
H A 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
/openbmc/qemu/hw/virtio/
H A Dvhost-shadow-virtqueue.c251 VirtQueueElement *elem) in vhost_svq_add() argument
267 svq->desc_state[qemu_head].elem = elem; in vhost_svq_add()
277 return vhost_svq_add(svq, elem->out_sg, elem->out_num, elem->in_sg, in vhost_svq_add_element()
278 elem->in_num, elem); in vhost_svq_add_element()
310 elem = virtqueue_pop(svq->vq, sizeof(*elem)); in vhost_handle_guest_kick()
313 if (!elem) { in vhost_handle_guest_kick()
342 elem = NULL; in vhost_handle_guest_kick()
465 virtqueue_push(svq->vq, elem, len); in vhost_svq_push_elem()
488 if (!elem) { in vhost_svq_flush()
706 elem = g_steal_pointer(&svq->desc_state[i].elem); in vhost_svq_stop()
[all …]
/openbmc/linux/tools/perf/util/cs-etm-decoder/
H A Dcs-etm-decoder.c446 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()
471 if (elem->last_i_type == OCSD_INSTR_BR || elem->last_i_type == OCSD_INSTR_BR_INDIRECT) in cs_etm_decoder__buffer_range()
540 const ocsd_generic_trace_elem *elem, in cs_etm_decoder__set_tid() argument
552 if (elem->context.ctxt_id_valid) in cs_etm_decoder__set_tid()
553 tid = elem->context.context_id; in cs_etm_decoder__set_tid()
556 if (elem->context.vmid_valid) in cs_etm_decoder__set_tid()
557 tid = elem->context.vmid; in cs_etm_decoder__set_tid()
596 switch (elem->elem_type) { in cs_etm_decoder__gen_trace_elem_printer()
[all …]
/openbmc/qemu/contrib/vhost-user-scsi/
H A Dvhost-user-scsi.c235 VuVirtqElement *elem = NULL; in vus_proc_req() local
256 if (!elem) { in vus_proc_req()
260 g_debug("Popped elem@%p", elem); in vus_proc_req()
262 assert(!(elem->out_num > 1 && elem->in_num > 1)); in vus_proc_req()
263 assert(elem->out_num > 0 && elem->in_num > 0); in vus_proc_req()
270 req = (VirtIOSCSICmdReq *)elem->out_sg[0].iov_base; in vus_proc_req()
280 req, &elem->out_sg[1], elem->out_num - 1, in vus_proc_req()
281 rsp, &elem->in_sg[1], elem->in_num - 1) != 0) { in vus_proc_req()
286 vu_queue_push(vu_dev, vq, elem, 0); in vus_proc_req()
289 free(elem); in vus_proc_req()
[all …]
/openbmc/qemu/hw/input/
H A Dvirtio-input.c25 VirtQueueElement *elem; in virtio_input_send() local
49 if (!elem) { in virtio_input_send()
57 vinput->queue[i].elem = elem; in virtio_input_send()
62 elem = vinput->queue[i].elem; in virtio_input_send()
63 len = iov_from_buf(elem->in_sg, elem->in_num, in virtio_input_send()
65 virtqueue_push(vinput->evt, elem, len); in virtio_input_send()
66 g_free(elem); in virtio_input_send()
82 VirtQueueElement *elem; in virtio_input_handle_sts() local
87 if (!elem) { in virtio_input_handle_sts()
92 len = iov_to_buf(elem->out_sg, elem->out_num, in virtio_input_handle_sts()
[all …]

12345678910>>...12