/qemu/chardev/ |
H A D | char-ringbuf.c | 39 size_t prod; member 52 return d->prod - d->cons; in DECLARE_INSTANCE_CHECKER() 65 d->cbuf[d->prod++ & (d->size - 1)] = buf[i]; in ringbuf_chr_write() 66 if (d->prod - d->cons > d->size) { in ringbuf_chr_write() 67 d->cons = d->prod - d->size; in ringbuf_chr_write() 80 for (i = 0; i < len && d->cons != d->prod; i++) { in ringbuf_chr_read() 111 d->prod = 0; in qemu_chr_open_ringbuf()
|
H A D | char-mux.c | 196 while (be && d->prod[m] != d->cons[m] && in mux_chr_accept_input() 209 if ((d->prod[m] - d->cons[m]) < MUX_BUFFER_SIZE) { in mux_chr_can_read() 232 if (d->prod[m] == d->cons[m] && in mux_chr_read() 237 d->buffer[m][d->prod[m]++ & MUX_BUFFER_MASK] = buf[i]; in mux_chr_read()
|
H A D | chardev-internal.h | 48 int prod[MAX_MUX]; member
|
/qemu/hw/9pfs/ |
H A D | xen-9p-backend.c | 77 RING_IDX cons, prod, masked_prod, masked_cons; in xen_9pfs_in_sg() local 80 prod = ring->intf->in_prod; in xen_9pfs_in_sg() 82 masked_prod = xen_9pfs_mask(prod, XEN_FLEX_RING_SIZE(ring->ring_order)); in xen_9pfs_in_sg() 103 RING_IDX cons, prod, masked_prod, masked_cons; in xen_9pfs_out_sg() local 106 prod = ring->intf->out_prod; in xen_9pfs_out_sg() 108 masked_prod = xen_9pfs_mask(prod, XEN_FLEX_RING_SIZE(ring->ring_order)); in xen_9pfs_out_sg() 232 RING_IDX prod; in xen_9pfs_push_and_notify() local 242 prod = ring->intf->in_prod; in xen_9pfs_push_and_notify() 244 ring->intf->in_prod = prod + pdu->size; in xen_9pfs_push_and_notify() 269 RING_IDX cons, prod, masked_prod, masked_cons, queued; in xen_9pfs_receive() local [all …]
|
/qemu/include/hw/xen/interface/io/ |
H A D | ring.h | 444 static inline RING_IDX name##_queued(RING_IDX prod, \ 450 if (prod == cons) \ 453 prod = name##_mask(prod, ring_size); \ 456 if (prod == cons) \ 459 if (prod > cons) \ 460 size = prod - cons; \ 462 size = ring_size - (cons - prod); \
|
/qemu/hw/char/ |
H A D | xen_console.c | 67 XENCONS_RING_IDX cons, prod, size; in OBJECT_DECLARE_SIMPLE_TYPE() local 71 prod = intf->out_prod; in OBJECT_DECLARE_SIMPLE_TYPE() 74 size = prod - cons; in OBJECT_DECLARE_SIMPLE_TYPE() 83 while (cons != prod) in OBJECT_DECLARE_SIMPLE_TYPE() 120 XENCONS_RING_IDX cons, prod, space; in ring_free_bytes() local 123 prod = intf->in_prod; in ring_free_bytes() 126 space = prod - cons; in ring_free_bytes() 143 XENCONS_RING_IDX prod; in xencons_receive() local 151 prod = intf->in_prod; in xencons_receive() 153 intf->in[MASK_XENCONS_IDX(prod++, intf->in)] = in xencons_receive() [all …]
|
/qemu/target/hexagon/ |
H A D | fma_emu.c | 602 Accum prod; in internal_fmafx() local 605 accum_init(&prod); in internal_fmafx() 629 prod.mant = int128_mul_6464(float32_getmant(a), float32_getmant(b)); in internal_fmafx() 635 prod.exp = float32_getexp(a) + float32_getexp(b) - SF_BIAS - 23; in internal_fmafx() 636 prod.sign = a_sign ^ b_sign; in internal_fmafx() 638 prod.exp = -2 * WAY_BIG_EXP; in internal_fmafx() 645 result = accum_add(prod, acc); in internal_fmafx() 650 result = accum_add(prod, acc); in internal_fmafx() 652 result = prod; in internal_fmafx() 671 unsigned long long int prod; in internal_mpyhh() local [all …]
|
/qemu/hw/display/ |
H A D | xenfb.c | 131 uint32_t prod; in xenfb_kbd_event() local 138 prod = page->in_prod; in xenfb_kbd_event() 145 XENKBD_IN_RING_REF(page, prod) = *event; in xenfb_kbd_event() 147 page->in_prod = prod + 1; in xenfb_kbd_event() 676 uint32_t cons, prod; in xenfb_queue_full() local 681 prod = page->in_prod; in xenfb_queue_full() 688 uint32_t prod; in xenfb_send_event() local 691 prod = page->in_prod; in xenfb_send_event() 696 page->in_prod = prod + 1; in xenfb_send_event() 814 uint32_t prod, cons, out_cons; in xenfb_handle_events() local [all …]
|
H A D | qxl.c | 401 uint32_t prod; in init_qxl_ram() local 416 prod = ring->prod & SPICE_RING_INDEX_MASK(ring); in init_qxl_ram() 418 ring->items[prod].el = 0; in init_qxl_ram() 693 uint32_t prod; in qxl_push_free_res() local 722 prod = ring->prod & SPICE_RING_INDEX_MASK(ring); in qxl_push_free_res() 728 ring->items[prod].el = 0; in qxl_push_free_res() 740 uint32_t prod; in interface_release_resource() local 761 prod = ring->prod & SPICE_RING_INDEX_MASK(ring); in interface_release_resource() 767 if (ring->items[prod].el == 0) { in interface_release_resource() 772 ring->items[prod].el = id; in interface_release_resource() [all …]
|
H A D | trace-events | 90 qxl_ring_res_push_rest(int qid, uint32_t ring_has, uint32_t ring_size, uint32_t prod, uint32_t cons…
|
/qemu/hw/usb/ |
H A D | dev-audio.c | 581 uint64_t prod; member 591 buf->prod = 0; in streambuf_init() 603 int64_t free = buf->size - (buf->prod - buf->cons); in streambuf_put() 613 assert(buf->prod % USBAUDIO_PACKET_SIZE(channels) == 0); in streambuf_put() 614 usb_packet_copy(p, buf->data + (buf->prod % buf->size), in streambuf_put() 616 buf->prod += USBAUDIO_PACKET_SIZE(channels); in streambuf_put() 622 int64_t used = buf->prod - buf->cons; in streambuf_get() 630 *len = MIN(buf->prod - buf->cons, in streambuf_get()
|
H A D | quirks.h | 37 #define USB_DEVICE_AND_INTERFACE_INFO(vend, prod, iclass, isubclass, iproto) \ argument 38 .vendor_id = vend, .product_id = prod, .interface_class = iclass, \
|
/qemu/target/ppc/ |
H A D | int_helper.c | 976 int32_t prod[16]; in VMRG() local 984 r->s32[i] = c->s32[i] + prod[4 * i] + prod[4 * i + 1] + in VMRG() 985 prod[4 * i + 2] + prod[4 * i + 3]; in VMRG() 991 int32_t prod[8]; in helper_VMSUMSHM() local 999 r->s32[i] = c->s32[i] + prod[2 * i] + prod[2 * i + 1]; in helper_VMSUMSHM() 1006 int32_t prod[8]; in helper_VMSUMSHS() local 1015 int64_t t = (int64_t)c->s32[i] + prod[2 * i] + prod[2 * i + 1]; in helper_VMSUMSHS() 1035 r->u32[i] = c->u32[i] + prod[4 * i] + prod[4 * i + 1] + in helper_VMSUMUBM() 1036 prod[4 * i + 2] + prod[4 * i + 3]; in helper_VMSUMUBM() 1042 uint32_t prod[8]; in helper_VMSUMUHM() local [all …]
|
/qemu/hw/arm/ |
H A D | smmuv3-internal.h | 222 #define Q_PROD(q) ((q)->prod & INDEX_MASK(q)) 228 #define Q_PROD_WRAP(q) (((q)->prod & WRAP_MASK(q)) >> (q)->log2size) 232 return ((q->cons ^ q->prod) & WRAP_INDEX_MASK(q)) == WRAP_MASK(q); in smmuv3_q_full() 237 return (q->cons & WRAP_INDEX_MASK(q)) == (q->prod & WRAP_INDEX_MASK(q)); in smmuv3_q_empty() 242 q->prod = (q->prod + 1) & WRAP_INDEX_MASK(q); in queue_prod_incr()
|
H A D | trace-events | 28 smmuv3_cmdq_consume(uint32_t prod, uint32_t cons, uint8_t prod_wrap, uint8_t cons_wrap) "prod=%d co… 30 smmuv3_cmdq_consume_out(uint32_t prod, uint32_t cons, uint8_t prod_wrap, uint8_t cons_wrap) "prod:%…
|
H A D | smmuv3.c | 296 s->cmdq.prod = 0; in smmuv3_init_regs() 300 s->eventq.prod = 0; in smmuv3_init_regs() 1490 s->cmdq.prod = data; in smmu_writel() 1507 s->eventq.prod = data; in smmu_writel() 1655 *data = s->cmdq.prod; in smmu_readl() 1667 *data = s->eventq.prod; in smmu_readl() 1774 VMSTATE_UINT32(prod, SMMUQueue),
|
/qemu/include/hw/ppc/ |
H A D | spapr_cpu_core.h | 50 bool prod; /* not migrated, only used to improve dispatch latencies */ member
|
/qemu/include/hw/arm/ |
H A D | smmuv3.h | 29 uint32_t prod; member
|
/qemu/hw/i386/kvm/ |
H A D | xen_xenstore.c | 1095 XENSTORE_RING_IDX prod = qatomic_read(&s->xs->req_prod); in copy_from_ring() local 1103 unsigned int avail = prod - cons; in copy_from_ring() 1155 XENSTORE_RING_IDX prod = qatomic_read(&s->xs->rsp_prod); in copy_to_ring() local 1170 unsigned int avail = cons + XENSTORE_RING_SIZE - prod; in copy_to_ring() 1171 unsigned int offset = MASK_XENSTORE_IDX(prod); in copy_to_ring() 1196 prod += copylen; in copy_to_ring() 1202 qatomic_set(&s->xs->rsp_prod, prod); in copy_to_ring()
|
/qemu/target/hexagon/imported/ |
H A D | float.idef | 235 fHIDE(size8u_t prod;) 236 prod = fMPY32UU(fGETUWORD(0,RssV),fGETUWORD(0,RttV)); 237 RddV = (prod >> 32) << 1; 238 if (fGETUWORD(0,prod) != 0) fSETBIT(0,RddV,1);
|
H A D | mpy.idef | 1086 fHIDE(unsigned long long x; unsigned long long prod;) 1090 prod = 0; 1092 if((y >> i) & 1) prod ^= (x << i); 1094 RddV = prod; 1122 fHIDE(unsigned long long x; unsigned long long prod;) 1126 prod = 0; 1128 if((y >> i) & 1) prod ^= (x << i); 1130 RxxV ^= prod;
|
/qemu/hw/ppc/ |
H A D | spapr_hcall.c | 501 if (spapr_cpu->prod) { in h_cede() 502 spapr_cpu->prod = false; in h_cede() 525 if (spapr_cpu->prod) { in h_confer_self() 526 spapr_cpu->prod = false; in h_confer_self() 643 spapr_cpu->prod = true; in h_prod()
|
H A D | spapr.c | 4628 spapr_cpu->prod = false; in spapr_cpu_exec_enter()
|
/qemu/include/hw/xen/interface/ |
H A D | trace.h | 300 uint32_t prod; /* Offset of next item to be produced by Xen. */ member
|
/qemu/target/hexagon/imported/mmvec/ |
H A D | ext.idef | 1432 fHIDE(size8s_t prod;) 1433 prod = fMPY32SU(VuV.w[i],fGETUHALF(0,VvV.w[i])); 1434 VddV.v[1].w[i] = prod >> 16; 1435 VddV.v[0].w[i] = prod << 16) 1439 fHIDE(size8s_t prod;) 1440 prod = fMPY32SS(VuV.w[i],fGETHALF(1,VvV.w[i])) + fSE32_64(VxxV.v[1].w[i]); 1441 VxxV.v[1].w[i] = prod >> 16; 1443 fSETHALF(1, VxxV.v[0].w[i], prod & 0x0000ffff))
|