Searched refs:sbuf (Results 1 – 10 of 10) sorted by relevance
| /hypervisor/common/ |
| A D | sbuf.c | 51 uint32_t sbuf_put(struct shared_buf *sbuf, uint8_t *data, uint32_t max_len) in sbuf_put() argument 59 ele_size = sbuf->ele_size; in sbuf_put() 60 next_tail = sbuf_next_ptr(sbuf->tail, ele_size, sbuf->size); in sbuf_put() 62 if ((next_tail == sbuf->head) && ((sbuf->flags & OVERWRITE_EN) == 0U)) { in sbuf_put() 66 if (next_tail == sbuf->head) { in sbuf_put() 68 sbuf->overrun_cnt += sbuf->flags & OVERRUN_CNT_EN; in sbuf_put() 71 to = (void *)sbuf + SBUF_HEAD_SIZE + sbuf->tail; in sbuf_put() 78 sbuf->head = sbuf_next_ptr(sbuf->head, in sbuf_put() 79 ele_size, sbuf->size); in sbuf_put() 81 sbuf->tail = next_tail; in sbuf_put() [all …]
|
| A D | vm_event.c | 16 struct shared_buf *sbuf = (struct shared_buf *)hva; in init_vm_event() local 20 if (sbuf != NULL) { in init_vm_event() 21 if (sbuf->magic == SBUF_MAGIC) { in init_vm_event() 22 vm->sw.vm_event_sbuf = sbuf; in init_vm_event() 34 struct shared_buf *sbuf = (struct shared_buf *)vm->sw.vm_event_sbuf; in send_vm_event() local 38 if (sbuf != NULL) { in send_vm_event() 40 size_sent = sbuf_put(sbuf, (uint8_t *)event, sizeof(*event)); in send_vm_event()
|
| /hypervisor/debug/ |
| A D | profiling.c | 260 if (sbuf->tail >= sbuf->head) { in profiling_sbuf_put_variable() 261 remaining_space = sbuf->size - (sbuf->tail - sbuf->head); in profiling_sbuf_put_variable() 263 remaining_space = sbuf->head - sbuf->tail; in profiling_sbuf_put_variable() 280 offset = sbuf->size - sbuf->tail; in profiling_sbuf_put_variable() 322 sbuf = per_cpu(sbuf, get_pcpu_id())[ACRN_SEP]; in profiling_generate_data() 333 if (sbuf->tail >= sbuf->head) { in profiling_generate_data() 335 - (sbuf->tail - sbuf->head); in profiling_generate_data() 337 remaining_space = sbuf->head - sbuf->tail; in profiling_generate_data() 400 if (sbuf->tail >= sbuf->head) { in profiling_generate_data() 402 = sbuf->size - (sbuf->tail - sbuf->head); in profiling_generate_data() [all …]
|
| A D | logmsg.c | 95 struct shared_buf *sbuf = per_cpu(sbuf, pcpu_id)[ACRN_HVLOG]; in do_logmsg() local 98 if (sbuf != NULL) { in do_logmsg() 100 (void)sbuf_put_many(sbuf, LOG_ENTRY_SIZE, (uint8_t *)buffer, in do_logmsg()
|
| A D | sbuf.c | 24 per_cpu(sbuf, pcpu_id)[sbuf_id] = (struct shared_buf *) hva; in sbuf_share_setup() local 37 per_cpu(sbuf, pcpu_id)[sbuf_id] = 0U; in sbuf_reset() local
|
| A D | trace.c | 44 if (per_cpu(sbuf, cpu_id)[ACRN_TRACE] == NULL) { in trace_check() local 53 struct shared_buf *sbuf = per_cpu(sbuf, cpu_id)[ACRN_TRACE]; in trace_put() local 59 (void)sbuf_put(sbuf, (uint8_t *)entry, sizeof(*entry)); in trace_put()
|
| /hypervisor/include/common/ |
| A D | sbuf.h | 20 uint32_t sbuf_put(struct shared_buf *sbuf, uint8_t *data, uint32_t max_len); 21 uint32_t sbuf_put_many(struct shared_buf *sbuf, uint32_t elem_size, uint8_t *data, uint32_t data_si…
|
| /hypervisor/dm/ |
| A D | io_req.c | 177 struct shared_buf *sbuf = in get_asyncio_desc() local 180 if (sbuf != NULL) { in get_asyncio_desc() 218 struct shared_buf *sbuf = in acrn_insert_asyncio() local 222 if (sbuf != NULL) { in acrn_insert_asyncio() 224 while (sbuf_put(sbuf, (uint8_t *)&asyncio_fd, sizeof(asyncio_fd)) == 0U) { in acrn_insert_asyncio() 350 struct shared_buf *sbuf = (struct shared_buf *)hva; in init_asyncio() local 354 if (sbuf != NULL) { in init_asyncio() 355 if (sbuf->magic == SBUF_MAGIC) { in init_asyncio() 356 vm->sw.asyncio_sbuf = sbuf; in init_asyncio()
|
| /hypervisor/include/arch/x86/asm/ |
| A D | per_cpu.h | 28 struct shared_buf *sbuf[ACRN_SBUF_PER_PCPU_ID_MAX]; member
|
| /hypervisor/ |
| A D | Makefile | 240 HW_C_SRCS += common/sbuf.c
|
Completed in 17 milliseconds