Home
last modified time | relevance | path

Searched refs:prod (Results 1 – 16 of 16) sorted by relevance

/xen-4.10.0-shim-comet/xen/drivers/char/
A Dconsoled.c49 XENCONS_RING_IDX cons, prod; in consoled_guest_rx() local
57 prod = ACCESS_ONCE(cons_ring->out_prod); in consoled_guest_rx()
65 ASSERT((prod - cons) <= sizeof(cons_ring->out)); in consoled_guest_rx()
68 if ( cons == prod ) in consoled_guest_rx()
71 while ( cons != prod ) in consoled_guest_rx()
106 XENCONS_RING_IDX cons, prod; in consoled_guest_tx() local
112 prod = cons_ring->in_prod; in consoled_guest_tx()
120 ASSERT((prod - cons) <= sizeof(cons_ring->in)); in consoled_guest_tx()
123 if ( sizeof(cons_ring->in) - (prod - cons) == 0 ) in consoled_guest_tx()
126 cons_ring->in[MASK_XENCONS_IDX(prod++, cons_ring->in)] = c; in consoled_guest_tx()
[all …]
A Dxen_pv_console.c99 XENCONS_RING_IDX cons, prod; in pv_console_rx() local
105 prod = ACCESS_ONCE(cons_ring->in_prod); in pv_console_rx()
114 ASSERT((prod - cons) <= sizeof(cons_ring->in)); in pv_console_rx()
116 while ( cons != prod ) in pv_console_rx()
134 XENCONS_RING_IDX cons, prod; in pv_ring_puts() local
141 prod = cons_ring->out_prod; in pv_ring_puts()
149 ASSERT((prod - cons) <= sizeof(cons_ring->out)); in pv_ring_puts()
150 avail = sizeof(cons_ring->out) - (prod - cons); in pv_ring_puts()
163 cons_ring->out[MASK_XENCONS_IDX(prod++, cons_ring->out)] = '\r'; in pv_ring_puts()
168 cons_ring->out[MASK_XENCONS_IDX(prod++, cons_ring->out)] = in pv_ring_puts()
[all …]
/xen-4.10.0-shim-comet/tools/ocaml/libs/xb/
A Dxs_ring_stubs.c52 XENSTORE_RING_IDX cons, prod; /* offsets only */ in ml_interface_read() local
57 prod = *(volatile uint32_t*)&intf->req_prod; in ml_interface_read()
65 if ((prod - cons) > XENSTORE_RING_SIZE) in ml_interface_read()
69 total_data = prod - cons; in ml_interface_read()
111 XENSTORE_RING_IDX cons, prod; in ml_interface_write() local
116 prod = *(volatile uint32_t*)&intf->rsp_prod; in ml_interface_write()
124 if ((prod - cons) > XENSTORE_RING_SIZE) in ml_interface_write()
128 total_space = XENSTORE_RING_SIZE - (prod - cons); in ml_interface_write()
139 space = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(prod); in ml_interface_write()
142 memcpy(intf->rsp + MASK_XENSTORE_IDX(prod), buffer, len); in ml_interface_write()
[all …]
/xen-4.10.0-shim-comet/tools/xentrace/
A Dxentrace.c90 unsigned long prod, cons, size; member
143 membuf.prod = membuf.cons = 0; in membuf_alloc()
289 prod = membuf.prod % membuf.size; in membuf_dump()
291 if(prod > cons) in membuf_dump()
295 wsize = prod - cons; in membuf_dump()
316 wsize = prod; in membuf_dump()
327 membuf.cons = membuf.prod = 0; in membuf_dump()
716 prod = meta[i]->prod; in monitor_tbufs()
719 if ( cons == prod ) in monitor_tbufs()
727 if ( prod < cons ) in monitor_tbufs()
[all …]
/xen-4.10.0-shim-comet/tools/misc/
A Dxen-ringwatch231 prod = None
248 return self.prod == self._cons()
254 def __init__(self, prod, cons, event, **d):
256 self.prod = int(prod)
262 (type(self).__name__, self.prod, self.cons, self.event)
269 self.prod == other.prod and \
277 def __init__(self, prod, pvt, event, **d):
279 self.prod = int(prod)
285 (type(self).__name__, self.prod, self.pvt, self.event)
292 self.prod == other.prod and \
[all …]
/xen-4.10.0-shim-comet/xen/common/
A Dtrace.c112 typeof(dummy_size.prod) max_size; in calculate_tbuf_size()
238 buf->cons = buf->prod = 0; in alloc_trace_bufs()
455 if ( unlikely(prod & 3) || unlikely(prod >= 2 * data_size) || in bogus()
468 u32 prod = buf->prod, cons = buf->cons; in calc_unconsumed_bytes() local
472 if ( bogus(prod, cons) ) in calc_unconsumed_bytes()
475 x = prod - cons; in calc_unconsumed_bytes()
487 u32 prod = buf->prod, cons = buf->cons; in calc_bytes_to_wrap() local
491 if ( bogus(prod, cons) ) in calc_bytes_to_wrap()
494 x = data_size - prod; in calc_bytes_to_wrap()
513 u32 x = buf->prod, cons = buf->cons; in next_record()
[all …]
/xen-4.10.0-shim-comet/tools/xenstore/
A Dxenstored_domain.c94 XENSTORE_RING_IDX prod, in get_output_chunk() argument
100 return buf + MASK_XENSTORE_IDX(prod); in get_output_chunk()
104 XENSTORE_RING_IDX prod, in get_input_chunk() argument
108 if ((prod - cons) < *len) in get_input_chunk()
109 *len = prod - cons; in get_input_chunk()
119 XENSTORE_RING_IDX cons, prod; in writechn() local
123 prod = intf->rsp_prod; in writechn()
126 if (!check_indexes(cons, prod)) { in writechn()
149 XENSTORE_RING_IDX cons, prod; in readchn() local
153 prod = intf->req_prod; in readchn()
[all …]
/xen-4.10.0-shim-comet/xen/include/public/io/
A Dring.h432 static inline RING_IDX name##_queued(RING_IDX prod, \
438 if (prod == cons) \
441 prod = name##_mask(prod, ring_size); \
444 if (prod == cons) \
447 if (prod > cons) \
448 size = prod - cons; \
450 size = ring_size - (cons - prod); \
A Dlibxenvchan.h54 uint32_t cons, prod; member
/xen-4.10.0-shim-comet/tools/console/daemon/
A Dio.c290 XENCONS_RING_IDX cons, prod, size; in buffer_append() local
294 prod = intf->out_prod; in buffer_append()
297 size = prod - cons; in buffer_append()
310 while (cons != prod) in buffer_append()
963 XENCONS_RING_IDX cons, prod, space; in ring_free_bytes() local
966 prod = intf->in_prod; in ring_free_bytes()
969 space = prod - cons; in ring_free_bytes()
994 XENCONS_RING_IDX prod; in handle_tty_read() local
1015 prod = intf->in_prod; in handle_tty_read()
1017 intf->in[MASK_XENCONS_IDX(prod++, intf->in)] = in handle_tty_read()
[all …]
/xen-4.10.0-shim-comet/docs/misc/
A D9pfs.markdown324 prod cons
331 cons prod
372 - read *cons*, *prod* from shared memory
374 - verify *prod* against local copy (consumer shouldn't change it)
375 - write to array at position *prod* up to *cons*, wrapping around the circular
378 - increase *prod*
384 - read *prod*, *cons* from shared memory
387 - read from array at position *cons* up to *prod*, wrapping around the circular
395 in the buffer up to *prod*.
A Dpvcalls.markdown1012 prod cons
1019 cons prod
1026 static inline PVCALLS_RING_IDX pvcalls_ring_unconsumed(PVCALLS_RING_IDX prod,
1032 if (prod == cons)
1035 prod = _MASK_PVCALLS_IDX(prod, ring_size);
1038 if (prod == cons)
1041 if (prod > cons)
1042 size = prod - cons;
1045 size += prod;
/xen-4.10.0-shim-comet/tools/xenmon/
A Dxenbaked.c501 unsigned long start_offset, end_offset, cons, prod; in monitor_tbufs() local
504 prod = meta[i]->prod; in monitor_tbufs()
507 if ( cons == prod ) in monitor_tbufs()
511 end_offset = prod % data_size; in monitor_tbufs()
530 meta[i]->cons = prod; in monitor_tbufs()
/xen-4.10.0-shim-comet/tools/libvchan/
A Dio.c54 return ctrl->read.shr->prod; in rd_prod()
65 return &ctrl->write.shr->prod; in _wr_prod()
/xen-4.10.0-shim-comet/xen/include/public/
A Dtrace.h315 uint32_t prod; /* Offset of next item to be produced by Xen. */ member
/xen-4.10.0-shim-comet/docs/process/
A Dxen-release-management.pandoc144 4. Collect and track any issues reported, determine their severity, prod

Completed in 22 milliseconds