Searched refs:avail (Results 1 – 6 of 6) sorted by relevance
/tools/virtio/ringtest/ |
D | virtio_ring_0_9.c | 103 unsigned avail; in add_inbuf() local 135 avail = guest.avail_idx++; in add_inbuf() 136 ring.avail->ring[avail & (ring_size - 1)] = in add_inbuf() 137 (head | (avail & ~(ring_size - 1))) ^ 0x8000; in add_inbuf() 142 avail = (ring_size - 1) & (guest.avail_idx++); in add_inbuf() 143 ring.avail->ring[avail] = head; in add_inbuf() 148 ring.avail->idx = guest.avail_idx; in add_inbuf() 262 unsigned index = ring.avail->ring[head & (ring_size - 1)]; in avail_empty() 266 return head == ring.avail->idx; in avail_empty() 277 head = ring.avail->ring[used_idx & (ring_size - 1)]; in use_buf() [all …]
|
/tools/perf/util/ |
D | probe-file.c | 1116 bool avail; member 1119 [idx] = {.pattern = pat, .avail = false} 1152 if (!ftrace_readme_table[i].avail) in scan_ftrace_readme() 1153 ftrace_readme_table[i].avail = in scan_ftrace_readme() 1164 return ftrace_readme_table[type].avail; in scan_ftrace_readme()
|
/tools/virtio/ |
D | vringh_test.c | 116 err = get_user(avail_idx, &vrh->vring.avail->idx); in vringh_get_head() 128 err = get_user(*head, &vrh->vring.avail->ring[i]); in vringh_get_head() 190 vrh.vring.desc, vrh.vring.avail, vrh.vring.used); in parallel_test() 496 vrh.vring.desc, vrh.vring.avail, vrh.vring.used); in main()
|
D | virtio_test.c | 76 .avail_user_addr = (uint64_t)(unsigned long)info->vring.avail, in vhost_vq_setup()
|
/tools/include/uapi/sound/ |
D | asound.h | 487 snd_pcm_uframes_t avail; /* number of frames available */ member 781 size_t avail; /* available bytes */ member
|
/tools/testing/selftests/bpf/ |
D | test_sockmap.c | 1278 size_t avail = dst_cap - strlen(dst); in append_str() local 1280 if (avail <= 1) /* just zero byte could be written */ in append_str() 1283 strncat(dst, src, avail - 1); /* strncat() adds + 1 for zero byte */ in append_str()
|