Lines Matching defs:block
86 /* processing a block response when this flag is set */
136 coap_block_t block = { .num = 0, .m = 0, .szx = 6 };
439 /* TODO: check if we are looking at the correct block number */
549 "\t-L value\tSum of one or more COAP_BLOCK_* flag valuess for block\n"
877 block.num = size;
886 coap_log_warn("Minimum block size is 16\n");
889 coap_log_warn("Maximum block size is 1024\n");
896 block.szx = (coap_fls(size >> 4) - 1) & 0x07;
923 block.m = (opt == COAP_OPTION_BLOCK1 || opt == COAP_OPTION_Q_BLOCK1) &&
924 ((1ull << (block.szx + 4)) < payload.length);
927 (block.num << 4 | block.m << 3 | block.szx));
1876 /* set block option if requested at commandline */