Searched refs:avail (Results 1 - 14 of 14) sorted by relevance

/haiku/src/add-ons/kernel/file_systems/websearchfs/
H A Dringbuff.c21 size_t avail; /* number of bytes in */ member in struct:ring_buffer
33 rb->avail = 0;
38 rb->avail = 0;
46 return (rb->size - rb->avail);
53 return rb->avail;
61 index = (rb->current + rb->avail) % rb->size;
69 rb->avail += len;
76 rb->avail += len;
79 ASSERT(rb->avail <= rb->size);
96 rb->avail
[all...]
H A Dringbuff.h11 size_t avail; /* number of bytes in */ member in struct:ring_buffer
/haiku/src/add-ons/kernel/bus_managers/virtio/
H A Dvirtio_ring.h47 /* The Guest uses this in avail->flags to advise the Host: don't
89 struct vring_avail *avail; member in struct:vring
123 #define vring_used_event(vr) ((vr)->avail->ring[(vr)->num])
146 vr->avail = (struct vring_avail *) (p +
149 (((addr_t) &vr->avail->ring[num] + align-1) & ~(align-1));
H A DVirtioQueue.cpp186 physAddr + ((addr_t)fRing.avail - (addr_t)fRing.desc),
216 fRing.avail->flags |= VRING_AVAIL_F_NO_INTERRUPT;
224 fRing.avail->flags &= ~VRING_AVAIL_F_NO_INTERRUPT;
364 uint16 available = fRing.avail->idx & (fRingSize - 1);
365 fRing.avail->ring[available] = index;
366 fRing.avail->idx++;
/haiku/src/bin/
H A Dchop.c190 ssize_t avail; // how many bytes we can safely grab from the current data block local
224 avail = end - beg + 1;
225 if (needed > avail)
226 needed = avail;
/haiku/src/libs/udis86/
H A Dsyn.c116 int avail; local
119 avail = u->asm_buf_size - u->asm_buf_fill - 1 /* nullchar */;
120 ret = vsnprintf((char*) u->asm_buf + u->asm_buf_fill, avail, fmt, ap);
121 if (ret < 0 || ret > avail) {
/haiku/src/system/libroot/posix/glibc/libio/
H A Dwgenops.c516 _IO_size_t avail; /* Extra space available for future expansion. */ local
522 avail = 100;
523 new_buffer = (wchar_t *) malloc ((avail + needed_size)
530 __wmempcpy (__wmempcpy (new_buffer + avail,
536 memcpy (new_buffer + avail,
539 memcpy (new_buffer + avail - least_mark,
547 __wmemcpy (new_buffer + avail,
551 memcpy (new_buffer + avail,
559 fp->_wide_data->_IO_save_end = new_buffer + avail + needed_size;
563 avail
[all...]
H A Dgenops.c263 _IO_size_t avail; /* Extra space available for future expansion. */ local
269 avail = 100;
270 new_buffer = (char *) malloc (avail + needed_size);
276 __mempcpy (__mempcpy (new_buffer + avail,
282 memcpy (new_buffer + avail,
285 memcpy (new_buffer + avail - least_mark,
291 memcpy (new_buffer + avail,
297 fp->_IO_save_end = new_buffer + avail + needed_size;
301 avail = current_Bsize - needed_size;
304 memmove (fp->_IO_save_base + avail,
[all...]
/haiku/src/system/libroot/posix/glibc/stdio-common/
H A Dvfscanf.c1261 int avail = width > 0 ? width : INT_MAX;
1270 while ((unsigned char) *cmpp == c && avail > 0)
1278 --avail;
1285 width = avail;
1320 int avail = width > 0 ? width : INT_MAX;
1323 while ((unsigned char) *cmpp == c && avail > 0)
1331 --avail;
1338 width = avail;
1382 int avail = width > 0 ? width : INT_MAX;
1384 while ((unsigned char) *cmpp == c && avail >
[all...]
/haiku/src/build/libgnuregex/
H A Dregex.c999 unsigned avail; /* Offset of next open position. */
1005 #define COMPILE_STACK_EMPTY (compile_stack.avail == 0)
1006 #define COMPILE_STACK_FULL (compile_stack.avail == compile_stack.size)
1009 #define COMPILE_STACK_TOP (compile_stack.stack[compile_stack.avail])
1138 compile_stack.avail = 0;
1614 compile_stack.avail++;
1657 assert (compile_stack.avail != 0);
1664 compile_stack.avail--;
2182 for (this_element = compile_stack.avail - 1;
2273 unsigned avail; /* Offse
991 unsigned avail; /* Offset of next open position. */ member in struct:__anon3
2262 unsigned avail; /* Offset of next open position. */ member in struct:__anon4
[all...]
/haiku/src/libs/compat/freebsd_iflib/
H A Diflib.c672 &iflib_encap_txq_avail_fail, 0, "# txq avail failures");
1159 /* some tx completed, increment avail */
1241 int error, avail; local
1251 avail = ctx->isc_rxd_available(ctx->ifc_softc,
1257 for (n = 0; avail > 0 && nm_i != hwtail_lim; n++, avail--) {
2470 "Watchdog timeout (TX: %d desc avail: %d pidx: %d) -- resetting\n",
2984 int avail, i; local
3012 if ((avail = iflib_rxd_avail(ctx, rxq, *cidxp, budget)) == 0) {
3021 for (budget_left = budget; budget_left > 0 && avail >
3851 int avail, bytes_sent, skipped, count, err, i; local
3961 int i, avail; local
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dsecurity.c4593 unsigned int avail; local
4596 avail = 0;
4607 avail |= DACL_SECURITY_INFORMATION;
4618 avail |= OWNER_SECURITY_INFORMATION;
4629 avail |= GROUP_SECURITY_INFORMATION;
4640 avail |= SACL_SECURITY_INFORMATION;
4679 if (selection & avail & DACL_SECURITY_INFORMATION) {
4687 if (selection & avail & SACL_SECURITY_INFORMATION) {
4695 if (selection & avail & OWNER_SECURITY_INFORMATION) {
4703 if (selection & avail
[all...]
/haiku/src/add-ons/kernel/drivers/network/ether/attansic_l2/dev/ae/
H A Dif_ae.c1432 unsigned int avail; local
1435 avail = AE_TXD_BUFSIZE_DEFAULT - (sc->txd_cur - sc->txd_ack);
1437 avail = sc->txd_ack - sc->txd_cur;
1439 return (avail);
/haiku/src/system/kernel/vm/
H A DVMAnonymousCache.cpp1576 mutex_init(&sAvailSwapSpaceLock, "avail swap space");
1788 uint32 avail = sAvailSwapSpace >> PAGE_SHIFT; local
1791 return avail;

Completed in 232 milliseconds