Lines Matching refs:block
56 coap_block_t block = { .num = 0, .m = 0, .szx = 6 }; variable
171 coap_add_block(pdu, length, data, block.num, block.szx); in coap_new_request()
429 block.szx = COAP_OPT_BLOCK_SZX(block_opt); in message_handler()
430 block.num = coap_opt_block_num(block_opt); in message_handler()
433 block.szx, block.num); in message_handler()
435 if (payload.length <= (block.num+1) * (1 << (block.szx + 4))) { in message_handler()
466 block.num++; in message_handler()
467 block.m = ((block.num+1) * (1 << (block.szx + 4)) < payload.length); in message_handler()
469 debug("send block %d\n", block.num); in message_handler()
473 (block.num << 4) | (block.m << 3) | block.szx), buf); in message_handler()
478 block.num, in message_handler()
479 block.szx); in message_handler()
740 block.num = size; in cmdline_blocksize()
745 block.szx = (coap_fls(size >> 4) - 1) & 0x07; in cmdline_blocksize()
762 block.m = (opt == COAP_OPTION_BLOCK1) && in set_blocksize()
763 ((1u << (block.szx + 4)) < payload.length); in set_blocksize()
766 (block.num << 4 | block.m << 3 | block.szx)); in set_blocksize()