| /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/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/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 | 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 | vhost-shadow-virtqueue.h | 19 VirtQueueElement *elem; member 42 VirtQueueElement *elem, 119 const VirtQueueElement *elem, uint32_t len); 123 const hwaddr *in_addr, VirtQueueElement *elem);
|
| H A D | virtio-rng.c | 51 VirtQueueElement *elem; in chr_read() local 72 elem = virtqueue_pop(vrng->vq, sizeof(VirtQueueElement)); in chr_read() 73 if (!elem) { in chr_read() 77 len = iov_from_buf(elem->in_sg, elem->in_num, in chr_read() 81 virtqueue_push(vrng->vq, elem, len); in chr_read() 83 g_free(elem); in chr_read()
|
| H A D | virtio-pmem.c | 30 VirtQueueElement elem; member 58 int len = iov_from_buf(req_data->elem.in_sg, req_data->elem.in_num, 0, in done_cb() 62 virtqueue_push(req_data->pmem->rq_vq, &req_data->elem, len); in done_cb() 81 if (req_data->elem.out_num < 1 || req_data->elem.in_num < 1) { in virtio_pmem_flush()
|
| /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()
|
| /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 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 …]
|
| /openbmc/u-boot/Documentation/sphinx/ |
| H A D | rstFlatTable.py | 367 for elem in cellItem[0]: 368 if isinstance(elem, colSpan): 369 cspan = elem.get("span") 370 elem.parent.remove(elem) 372 if isinstance(elem, rowSpan): 373 rspan = elem.get("span") 374 elem.parent.remove(elem)
|
| /openbmc/qemu/block/export/ |
| H A D | vhost-user-blk-server.c | 29 VuVirtqElement elem; member 47 vu_queue_push(vu_dev, req->vq, &req->elem, in_len); in vu_blk_req_complete() 61 VuVirtqElement *elem = &req->elem; in vu_blk_virtio_process_req() local 64 struct iovec *in_iov = elem->in_sg; in vu_blk_virtio_process_req() 65 struct iovec *out_iov = elem->out_sg; in vu_blk_virtio_process_req() 66 unsigned in_num = elem->in_num; in vu_blk_virtio_process_req() 67 unsigned out_num = elem->out_num; in vu_blk_virtio_process_req()
|
| /openbmc/rest-dbus/resources/ |
| H A D | dbus.js | 331 var elem = jQuery('<option>'); 332 elem.text(bus.name); 333 elem.data('bus', bus); 334 select.append(elem); 336 elem.attr('selected', 'true'); 341 var elem = jQuery("option:selected", e.target); 342 var b = elem.data('bus');
|