| /openbmc/qemu/hw/vfio/ |
| H A D | cpr-iommufd.c | 56 CprVFIODevice *elem = g_new0(CprVFIODevice, 1); in vfio_cpr_save_device() local 58 elem->name = g_strdup(vbasedev->name); in vfio_cpr_save_device() 59 elem->namelen = strlen(vbasedev->name) + 1; in vfio_cpr_save_device() 60 elem->ioas_id = vbasedev->cpr.ioas_id; in vfio_cpr_save_device() 61 elem->devid = vbasedev->devid; in vfio_cpr_save_device() 62 elem->hwpt_id = vbasedev->cpr.hwpt_id; in vfio_cpr_save_device() 63 QLIST_INSERT_HEAD(&cpr_state.vfio_devices, elem, next); in vfio_cpr_save_device() 69 CprVFIODevice *elem; in find_device() local 71 QLIST_FOREACH(elem, head, next) { in find_device() 72 if (!strcmp(elem->name, name)) { in find_device() [all …]
|
| /openbmc/qemu/hw/remote/ |
| H A D | iommu.c | 43 RemoteIommuElem *elem = NULL; in remote_iommu_find_add_as() local 47 elem = g_hash_table_lookup(iommu->elem_by_devfn, INT2VOIDP(devfn)); in remote_iommu_find_add_as() 49 if (!elem) { in remote_iommu_find_add_as() 50 elem = g_new0(RemoteIommuElem, 1); in remote_iommu_find_add_as() 51 g_hash_table_insert(iommu->elem_by_devfn, INT2VOIDP(devfn), elem); in remote_iommu_find_add_as() 54 if (!elem->mr) { in remote_iommu_find_add_as() 55 elem->mr = MEMORY_REGION(object_new(TYPE_MEMORY_REGION)); in remote_iommu_find_add_as() 56 memory_region_set_size(elem->mr, UINT64_MAX); 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() [all …]
|
| /openbmc/openbmc/poky/scripts/lib/build_perf/ |
| H A D | report.py | 26 def metadata_xml_to_json(elem): argument 28 assert elem.tag == 'metadata', "Invalid metadata file format" 30 def _xml_to_json(elem): argument 33 for child in elem.getchildren(): 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 55 data['name'] = elem.attrib['name'] 56 data['legend'] = elem.attrib['legend'] [all …]
|
| /openbmc/qemu/migration/ |
| H A D | cpr.c | 51 CprFd *elem = g_new0(CprFd, 1); in cpr_save_fd() local 54 elem->name = g_strdup(name); in cpr_save_fd() 55 elem->namelen = strlen(name) + 1; in cpr_save_fd() 56 elem->id = id; in cpr_save_fd() 57 elem->fd = fd; in cpr_save_fd() 58 QLIST_INSERT_HEAD(&cpr_state.fds, elem, next); in cpr_save_fd() 63 CprFd *elem; in find_fd() local 65 QLIST_FOREACH(elem, head, next) { in find_fd() 66 if (!strcmp(elem->name, name) && elem->id == id) { in find_fd() 67 return elem; in find_fd() [all …]
|
| /openbmc/qemu/hw/9pfs/ |
| H A D | virtio-9p-device.c | 35 VirtQueueElement *elem = v->elems[pdu->idx]; in virtio_9p_push_and_notify() local 38 virtqueue_push(v->vq, elem, pdu->size); in virtio_9p_push_and_notify() 39 g_free(elem); in virtio_9p_push_and_notify() 52 VirtQueueElement *elem; in handle_9p_output() local 57 elem = virtqueue_pop(vq, sizeof(VirtQueueElement)); in handle_9p_output() 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() 76 v->elems[pdu->idx] = elem; in handle_9p_output() 84 virtqueue_detach_element(vq, elem, 0); in handle_9p_output() [all …]
|
| /openbmc/qemu/hw/audio/ |
| H A D | virtio-snd.c | 111 g_free(buffer->elem); in virtio_snd_pcm_buffer_free() 118 g_free(cmd->elem); in virtio_snd_ctrl_cmd_free() 164 size_t msg_sz = iov_to_buf(cmd->elem->out_sg, in virtio_snd_handle_pcm_info() 165 cmd->elem->out_num, in virtio_snd_handle_pcm_info() 185 if (iov_size(cmd->elem->in_sg, cmd->elem->in_num) < in virtio_snd_handle_pcm_info() 191 iov_size(cmd->elem->in_sg, cmd->elem->in_num), in virtio_snd_handle_pcm_info() 223 iov_from_buf(cmd->elem->in_sg, in virtio_snd_handle_pcm_info() 224 cmd->elem->in_num, in virtio_snd_handle_pcm_info() 293 size_t msg_sz = iov_to_buf(cmd->elem->out_sg, in virtio_snd_handle_pcm_set_params() 294 cmd->elem->out_num, in virtio_snd_handle_pcm_set_params() [all …]
|
| /openbmc/qemu/hw/virtio/ |
| H A D | vhost-shadow-virtqueue.c | 273 const hwaddr *in_addr, VirtQueueElement *elem) in vhost_svq_add() argument 290 svq->desc_state[qemu_head].elem = elem; in vhost_svq_add() 298 VirtQueueElement *elem) in vhost_svq_add_element() argument 300 return vhost_svq_add(svq, elem->out_sg, elem->out_num, elem->out_addr, in vhost_svq_add_element() 301 elem->in_sg, elem->in_num, elem->in_addr, elem); in vhost_svq_add_element() 327 g_autofree VirtQueueElement *elem = NULL; in vhost_handle_guest_kick() local 331 elem = g_steal_pointer(&svq->next_guest_avail_elem); in vhost_handle_guest_kick() 333 elem = virtqueue_pop(svq->vq, sizeof(*elem)); in vhost_handle_guest_kick() 336 if (!elem) { in vhost_handle_guest_kick() 341 r = svq->ops->avail_handler(svq, elem, svq->ops_opaque); in vhost_handle_guest_kick() [all …]
|
| H A D | virtio-balloon.c | 343 VirtQueueElement *elem; in virtio_balloon_handle_report() local 345 while ((elem = virtqueue_pop(vq, sizeof(VirtQueueElement)))) { in virtio_balloon_handle_report() 359 for (i = 0; i < elem->in_num; i++) { in virtio_balloon_handle_report() 360 void *addr = elem->in_sg[i].iov_base; in virtio_balloon_handle_report() 361 size_t size = elem->in_sg[i].iov_len; in virtio_balloon_handle_report() 378 trace_virtio_balloon_bad_addr(elem->in_addr[i]); in virtio_balloon_handle_report() 395 virtqueue_push(vq, elem, 0); in virtio_balloon_handle_report() 397 g_free(elem); in virtio_balloon_handle_report() 404 VirtQueueElement *elem; in virtio_balloon_handle_output() local 412 elem = virtqueue_pop(vq, sizeof(VirtQueueElement)); in virtio_balloon_handle_output() [all …]
|
| H A D | vhost-vsock-common.c | 162 VirtQueueElement *elem; in vhost_vsock_common_send_transport_reset() local 168 elem = virtqueue_pop(vq, sizeof(VirtQueueElement)); in vhost_vsock_common_send_transport_reset() 169 if (!elem) { in vhost_vsock_common_send_transport_reset() 174 if (elem->out_num) { in vhost_vsock_common_send_transport_reset() 180 if (iov_from_buf(elem->in_sg, elem->in_num, 0, in vhost_vsock_common_send_transport_reset() 186 virtqueue_push(vq, elem, sizeof(event)); in vhost_vsock_common_send_transport_reset() 189 g_free(elem); in vhost_vsock_common_send_transport_reset() 193 virtqueue_detach_element(vq, elem, 0); in vhost_vsock_common_send_transport_reset() 194 g_free(elem); in vhost_vsock_common_send_transport_reset()
|
| H A D | virtio-crypto.c | 32 VirtQueueElement *elem; member 270 VirtQueueElement *elem = sreq->elem; in virtio_crypto_create_session_completion() local 273 struct iovec *in_iov = elem->in_sg; in virtio_crypto_create_session_completion() 274 unsigned in_num = elem->in_num; in virtio_crypto_create_session_completion() 280 virtqueue_detach_element(vq, elem, 0); in virtio_crypto_create_session_completion() 297 virtqueue_detach_element(vq, elem, 0); in virtio_crypto_create_session_completion() 300 virtqueue_push(vq, elem, sizeof(input)); in virtio_crypto_create_session_completion() 304 g_free(elem); in virtio_crypto_create_session_completion() 312 VirtQueueElement *elem = sreq->elem; in virtio_crypto_destroy_session_completion() local 314 struct iovec *in_iov = elem->in_sg; in virtio_crypto_destroy_session_completion() [all …]
|
| H A D | virtio.c | 810 static void virtqueue_unmap_sg(VirtQueue *vq, const VirtQueueElement *elem, in virtqueue_unmap_sg() argument 818 for (i = 0; i < elem->in_num; i++) { in virtqueue_unmap_sg() 819 size_t size = MIN(len - offset, elem->in_sg[i].iov_len); in virtqueue_unmap_sg() 821 dma_memory_unmap(dma_as, elem->in_sg[i].iov_base, in virtqueue_unmap_sg() 822 elem->in_sg[i].iov_len, in virtqueue_unmap_sg() 828 for (i = 0; i < elem->out_num; i++) in virtqueue_unmap_sg() 829 dma_memory_unmap(dma_as, elem->out_sg[i].iov_base, in virtqueue_unmap_sg() 830 elem->out_sg[i].iov_len, in virtqueue_unmap_sg() 832 elem->out_sg[i].iov_len); in virtqueue_unmap_sg() 844 void virtqueue_detach_element(VirtQueue *vq, const VirtQueueElement *elem, in virtqueue_detach_element() argument [all …]
|
| /openbmc/qemu/hw/input/ |
| H A D | virtio-input.c | 25 VirtQueueElement *elem; in virtio_input_send() local 48 elem = virtqueue_pop(vinput->evt, sizeof(VirtQueueElement)); in virtio_input_send() 49 if (!elem) { in virtio_input_send() 51 virtqueue_unpop(vinput->evt, vinput->queue[i].elem, 0); 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 [all …]
|
| /openbmc/qemu/hw/core/ |
| H A D | qdev-clock.c | 93 const struct ClockPortInitElem *elem; in qdev_init_clocks() local 95 for (elem = &clocks[0]; elem->name != NULL; elem++) { in qdev_init_clocks() 98 assert(elem->offset > sizeof(DeviceState)); in qdev_init_clocks() 99 clkp = ((void *)dev) + elem->offset; in qdev_init_clocks() 100 if (elem->is_output) { in qdev_init_clocks() 101 *clkp = qdev_init_clock_out(dev, elem->name); in qdev_init_clocks() 103 *clkp = qdev_init_clock_in(dev, elem->name, elem->callback, dev, in qdev_init_clocks() 104 elem->callback_events); in qdev_init_clocks()
|
| H A D | qdev-properties.c | 657 const char *name, char *elem) in array_elem_prop() argument 668 .offset = (uintptr_t)elem - (uintptr_t)obj, in array_elem_prop() 684 char *elem = *arrayptr; in release_prop_array() local 692 Property elem_prop = array_elem_prop(obj, prop, name, elem); in release_prop_array() 694 elem += prop->arrayfieldsize; in release_prop_array() 711 ArrayElementList *list, *elem, *next; in set_prop_array() local 727 elem = list; in set_prop_array() 728 while (elem) { in set_prop_array() 731 elem->value = g_malloc0(prop->arrayfieldsize); in set_prop_array() 732 elem_prop = array_elem_prop(obj, prop, name, elem->value); in set_prop_array() [all …]
|
| /openbmc/qemu/util/ |
| H A D | thread-pool.c | 177 ThreadPoolElementAio *elem, *next; in thread_pool_completion_bh() local 182 QLIST_FOREACH_SAFE(elem, &pool->head, all, next) { in thread_pool_completion_bh() 183 if (elem->state != THREAD_DONE) { in thread_pool_completion_bh() 187 trace_thread_pool_complete_aio(pool, elem, elem->common.opaque, in thread_pool_completion_bh() 188 elem->ret); 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() [all …]
|
| /openbmc/qemu/contrib/vhost-user-scsi/ |
| H A D | vhost-user-scsi.c | 235 VuVirtqElement *elem = NULL; in vus_proc_req() local 255 elem = vu_queue_pop(vu_dev, vq, sizeof(VuVirtqElement)); in vus_proc_req() 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() 265 if (elem->out_sg[0].iov_len < sizeof(VirtIOSCSICmdReq)) { in vus_proc_req() 270 req = (VirtIOSCSICmdReq *)elem->out_sg[0].iov_base; in vus_proc_req() 272 if (elem->in_sg[0].iov_len < sizeof(VirtIOSCSICmdResp)) { in vus_proc_req() 277 rsp = (VirtIOSCSICmdResp *)elem->in_sg[0].iov_base; in vus_proc_req() [all …]
|
| /openbmc/qemu/hw/char/ |
| H A D | virtio-serial-bus.c | 103 VirtQueueElement *elem; in write_to_port() local 116 elem = virtqueue_pop(vq, sizeof(VirtQueueElement)); in write_to_port() 117 if (!elem) { in write_to_port() 121 len = iov_from_buf(elem->in_sg, elem->in_num, 0, in write_to_port() 125 virtqueue_push(vq, elem, len); in write_to_port() 126 g_free(elem); in write_to_port() 135 VirtQueueElement *elem; in discard_vq_data() local 141 elem = virtqueue_pop(vq, sizeof(VirtQueueElement)); in discard_vq_data() 142 if (!elem) { in discard_vq_data() 145 virtqueue_push(vq, elem, 0); in discard_vq_data() [all …]
|
| /openbmc/qemu/contrib/vhost-user-input/ |
| H A D | main.c | 34 VuVirtqElement *elem; member 43 VuVirtqElement *elem; in vi_input_send() local 61 elem = vu_queue_pop(dev, vq, sizeof(VuVirtqElement)); in vi_input_send() 62 if (!elem) { in vi_input_send() 64 vu_queue_unpop(dev, vq, vi->queue[i].elem, 0); in vi_input_send() 70 vi->queue[i].elem = elem; in vi_input_send() 75 elem = vi->queue[i].elem; in vi_input_send() 76 len = iov_from_buf(elem->in_sg, elem->in_num, in vi_input_send() 78 vu_queue_push(dev, vq, elem, len); in vi_input_send() 79 free(elem); in vi_input_send() [all …]
|
| /openbmc/qemu/trace/ |
| H A D | trace-hmp-cmds.c | 78 TraceEventInfoList *elem; in hmp_info_trace_events() local 91 for (elem = events; elem != NULL; elem = elem->next) { in hmp_info_trace_events() 93 elem->value->name, in hmp_info_trace_events() 94 elem->value->state == TRACE_EVENT_STATE_ENABLED ? 1 : 0); in hmp_info_trace_events()
|
| /openbmc/qemu/contrib/vhost-user-blk/ |
| H A D | vhost-user-blk.c | 47 VuVirtqElement *elem; member 106 vu_queue_push(vu_dev, req->vq, req->elem, in vub_req_complete() 110 g_free(req->elem); in vub_req_complete() 230 VuVirtqElement *elem; in vub_virtio_process_req() local 236 elem = vu_queue_pop(vu_dev, vq, sizeof(VuVirtqElement) + sizeof(VubReq)); in vub_virtio_process_req() 237 if (!elem) { in vub_virtio_process_req() 242 if (elem->out_num < 1 || elem->in_num < 1) { in vub_virtio_process_req() 244 g_free(elem); in vub_virtio_process_req() 251 req->elem = elem; in vub_virtio_process_req() 253 in_num = elem->in_num; in vub_virtio_process_req() [all …]
|
| /openbmc/qemu/tests/ |
| H A D | vhost-user-bridge.c | 178 VuVirtqElement *elem = NULL; in vubr_handle_tx() local 187 elem = vu_queue_pop(dev, vq, sizeof(VuVirtqElement)); in vubr_handle_tx() 188 if (!elem) { in vubr_handle_tx() 192 out_num = elem->out_num; in vubr_handle_tx() 193 out_sg = elem->out_sg; in vubr_handle_tx() 224 vu_queue_push(dev, vq, elem, 0); in vubr_handle_tx() 227 free(elem); in vubr_handle_tx() 228 elem = NULL; in vubr_handle_tx() 231 free(elem); in vubr_handle_tx() 276 VuVirtqElement *elem = NULL; in vubr_backend_recv_cb() local [all …]
|
| /openbmc/phosphor-webui/app/common/directives/ |
| H A D | input.js | 7 var elem = window.document.getElementById(element[0].id); 14 if (!scope[attrs.ngModel] && elem) { 15 elem.focus();
|
| /openbmc/openbmc/poky/scripts/ |
| H A D | oe-trim-schemas | 14 def child (elem, name): argument 15 for e in elem.getchildren(): 20 def children (elem, name=None): argument 21 l = elem.getchildren()
|
| /openbmc/u-boot/arch/arm/mach-rockchip/ |
| H A D | spl-boot-order.c | 104 int elem; in board_boot_order() local 116 for (elem = 0; in board_boot_order() 118 "u-boot,spl-boot-order", elem, NULL)); in board_boot_order() 119 elem++) { in board_boot_order()
|
| /openbmc/qemu/subprojects/libvduse/ |
| H A D | libvduse.c | 629 VduseVirtqElement *elem; in vduse_queue_alloc_element() local 630 size_t in_sg_ofs = ALIGN_UP(sz, __alignof__(elem->in_sg[0])); in vduse_queue_alloc_element() 631 size_t out_sg_ofs = in_sg_ofs + in_num * sizeof(elem->in_sg[0]); in vduse_queue_alloc_element() 632 size_t out_sg_end = out_sg_ofs + out_num * sizeof(elem->out_sg[0]); in vduse_queue_alloc_element() 635 elem = malloc(out_sg_end); in vduse_queue_alloc_element() 636 if (!elem) { in vduse_queue_alloc_element() 639 elem->out_num = out_num; in vduse_queue_alloc_element() 640 elem->in_num = in_num; in vduse_queue_alloc_element() 641 elem->in_sg = (void *)elem + in_sg_ofs; in vduse_queue_alloc_element() 642 elem->out_sg = (void *)elem + out_sg_ofs; in vduse_queue_alloc_element() [all …]
|