Home
last modified time | relevance | path

Searched refs:head (Results 1 – 14 of 14) sorted by relevance

/devicemodel/include/
A Dtree.h80 #define SPLAY_ROOT(head) ((head)->sph_root) argument
81 #define SPLAY_EMPTY(head) (SPLAY_ROOT(head) == NULL) argument
99 (head)->sph_root = SPLAY_LEFT((head)->sph_root, field); \
105 (head)->sph_root = SPLAY_RIGHT((head)->sph_root, field); \
127 if (SPLAY_EMPTY(head)) \
131 return head->sph_root; \
195 (head)->sph_root = SPLAY_RIGHT((head)->sph_root,\
199 (head)->sph_root = SPLAY_LEFT((head)->sph_root, field);\
324 #define RB_ROOT(head) ((head)->rbh_root) argument
325 #define RB_EMPTY(head) (RB_ROOT(head) == NULL) argument
[all …]
A Dusb_core.h172 int head; member
226 index_valid(int head, int tail, int maxcnt, int idx) { in index_valid() argument
227 if (head <= tail) in index_valid()
228 return (idx >= head && idx < tail); in index_valid()
230 return (idx >= head && idx < maxcnt) || in index_valid()
A Dmevent.h56 #define list_foreach_safe(var, head, field, tvar) \ argument
57 for ((var) = LIST_FIRST((head)); \
A Dsbuf.h16 return (sbuf->head == sbuf->tail); in sbuf_is_empty()
A Dblock_if.h73 uint32_t head; member
A Dioc.h683 uint32_t head; member
/devicemodel/core/
A Dsbuf.c36 from = (void *)sbuf + SBUF_HEAD_SIZE + sbuf->head; in sbuf_get()
42 sbuf->head = sbuf_next_ptr(sbuf->head, sbuf->ele_size, sbuf->size); in sbuf_get()
52 sbuf->head = sbuf->tail; in sbuf_clear_buffered()
86 if ((next_tail == sbuf->head) && ((sbuf->flags & OVERWRITE_EN) == 0U)) { in sbuf_put()
90 if (next_tail == sbuf->head) { in sbuf_put()
102 sbuf->head = sbuf_next_ptr(sbuf->head, in sbuf_put()
123 sbuf->head = 0; in sbuf_init()
A Dmain.c947 sbuf->head = 0; in vm_init_asyncio()
/devicemodel/hw/platform/
A Dusb_pmapper.c200 xfer->epid, xfer->head, xfer->tail, xfer->ndata, in usb_dev_comp_cb()
375 idx = xfer->head; in usb_dev_prepare_xfer()
405 *head = first; in usb_dev_prepare_xfer()
709 idx = xfer->head; in usb_dev_prepare_ctrl_xfer()
757 int i, idx, buf_idx, head, tail, size; in usb_dev_data() local
791 for (idx = head; in usb_dev_data()
818 r->blk_head = head; in usb_dev_data()
820 xfer->reqs[head] = r; in usb_dev_data()
824 xfer->head, xfer->tail, xfer->ndata, r->seq, in usb_dev_data()
829 for (idx = head, buf_idx = 0; in usb_dev_data()
[all …]
A Dioc_cbc.c40 if (pos != ring->head) { in cbc_copy_to_ring()
58 ring->head = (ring->head + bytes) & (CBC_RING_BUFFER_SIZE - 1); in cbc_ring_skips()
86 pos = (ring->head + i) & (CBC_RING_BUFFER_SIZE - 1); in cbc_verify_chksum()
135 avalids = ring->tail - ring->head; in cbc_unpack_link()
153 if (ring->buf[ring->head] != CBC_SOF_VALUE) { in cbc_unpack_link()
161 els_pos = (ring->head + CBC_ELS_POS) & in cbc_unpack_link()
192 chksum_pos = (ring->head + frame_len - 1) & in cbc_unpack_link()
A Dusb_mouse.c330 idx = xfer->head; in umouse_request()
711 idx = xfer->head; in umouse_data_handler()
741 USB_DATA_SET_ERRCODE(&xfer->data[xfer->head], USB_NAK); in umouse_data_handler()
A Dioc.c1089 pos = (ring->head + i) & (CBC_RING_BUFFER_SIZE - 1); in ioc_build_request()
/devicemodel/hw/
A Dblock_if.c420 DPRINTF(("%s: Misaligned offset 0x%llx \n\r", __func__, (info->aligned_dn_start + info->head))); in blockif_dump_align_info()
441 __func__, info->head, info->tail, info->org_size, info->bounced_size, in blockif_dump_align_info()
557 info->head = start % alignment; in blockif_init_alignment_info()
558 info->aligned_dn_start = start - info->head; in blockif_init_alignment_info()
567 info->bounced_size = info->head + info->org_size + info->tail; in blockif_init_alignment_info()
636 done = info->head; in blockif_complete_bounced_read()
710 uint32_t head = info->head; in blockif_init_bounced_write() local
730 if (head != 0) { in blockif_init_bounced_write()
762 memcpy(info->bounce_iov.iov_base, head_iov.iov_base, head); in blockif_init_bounced_write()
763 done += head; in blockif_init_bounced_write()
/devicemodel/hw/pci/
A Dxhci.c2432 xfer->head = 0; in pci_xhci_cmd_reset_ep()
2907 for (i = (uint32_t)xfer->head; xfer->ndata > 0; ) { in pci_xhci_xfer_complete()
2926 xfer->head = (int)i; in pci_xhci_xfer_complete()
2932 xfer->head = index_inc(xfer->head, xfer->max_blk_cnt); in pci_xhci_xfer_complete()
3058 if (USB_DATA_GET_ERRCODE(&xfer->data[xfer->head]) == in pci_xhci_try_usb_xfer()

Completed in 38 milliseconds