Searched refs:avail (Results 1 – 3 of 3) sorted by relevance
24 int avail = buffEnd - buff; in buff_addc() local26 if (avail <= 0) /* already in overflow mode */ in buff_addc()29 if (avail == 1) { /* overflowing, the last byte is reserved for zero */ in buff_addc()50 int avail = (buffEnd - buff); in buff_addb() local52 if (avail <= 0 || len <= 0) /* already overflowing */ in buff_addb()55 if (len > avail) in buff_addb()56 len = avail; in buff_addb()74 int avail; in buff_add() local76 avail = (buffEnd - buff); in buff_add()78 if (avail > 0) { in buff_add()[all …]
316 size_t avail = MAX_PAYLOAD; in local_socket_event_func() local320 while(avail > 0) { in local_socket_event_func()321 r = adb_read(fd, x, avail); in local_socket_event_func()322 …LS(%d): post adb_read(fd=%d,...) r=%d (errno=%d) avail=%d\n", s->id, s->fd, r, r<0?errno:0, avail); in local_socket_event_func()324 avail -= r; in local_socket_event_func()339 if((avail == MAX_PAYLOAD) || (s->peer == 0)) { in local_socket_event_func()342 p->len = MAX_PAYLOAD - avail; in local_socket_event_func()
334 size_t avail = ctx->partition->erase_size - ctx->consumed; in mtd_read_data() local335 size_t copy = len - read < avail ? len - read : avail; in mtd_read_data()482 size_t avail = ctx->partition->erase_size - ctx->stored; in mtd_write_data() local483 size_t copy = len - wrote < avail ? len - wrote : avail; in mtd_write_data()