Searched refs:avail (Results 1 – 1 of 1) sorted by relevance
66 size_t start, want, avail; in coap_write_block_opt() local77 avail = pdu->max_size - pdu->length - 4; in coap_write_block_opt()81 if (want <= avail) { in coap_write_block_opt()89 if (data_length - start <= avail) { in coap_write_block_opt()97 if (avail < 16) { /* bad luck, this is the smallest block size */ in coap_write_block_opt()101 debug("decrease block size for %zu to %d\n", avail, coap_fls(avail) - 5); in coap_write_block_opt()103 block->szx = coap_fls(avail) - 5; in coap_write_block_opt()