Home
last modified time | relevance | path

Searched refs:avail (Results 1 – 6 of 6) sorted by relevance

/tools/virtio/ringtest/
Dvirtio_ring_0_9.c103 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/
Dprobe-file.c1116 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/
Dvringh_test.c116 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()
Dvirtio_test.c76 .avail_user_addr = (uint64_t)(unsigned long)info->vring.avail, in vhost_vq_setup()
/tools/include/uapi/sound/
Dasound.h487 snd_pcm_uframes_t avail; /* number of frames available */ member
781 size_t avail; /* available bytes */ member
/tools/testing/selftests/bpf/
Dtest_sockmap.c1278 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()