Lines Matching refs:block
147 static coap_block_t block = { variable
1198 block.num, block.szx); in coap_new_request()
1393 block.szx = COAP_OPT_BLOCK_SZX(block_opt); in coap_message_handler()
1394 block.num = coap_opt_block_num(block_opt); in coap_message_handler()
1398 block.szx, block.num); in coap_message_handler()
1400 if (payload.length <= (block.num+1) * in coap_message_handler()
1401 (1 << (block.szx + 4))) { in coap_message_handler()
1414 block.num++; in coap_message_handler()
1415 block.m = ((block.num+1) * in coap_message_handler()
1416 (1 << (block.szx + 4)) < in coap_message_handler()
1419 debug("send block %d\n", block.num); in coap_message_handler()
1423 (block.num << 4) | in coap_message_handler()
1424 (block.m << 3) | in coap_message_handler()
1425 block.szx), buf); in coap_message_handler()
1430 block.num, in coap_message_handler()
1431 block.szx); in coap_message_handler()
1495 block.m = (opt == COAP_OPTION_BLOCK1) && in set_blocksize()
1496 ((1u << (block.szx + 4)) < payload.length); in set_blocksize()
1499 (block.num << 4 | block.m << 3 | block.szx)); in set_blocksize()