Home
last modified time | relevance | path

Searched refs:szx (Results 1 - 6 of 6) sorted by relevance

/third_party/libcoap/src/
H A Dcoap_block.c71 block->aszx = block->szx = COAP_OPT_BLOCK_SZX(option); in coap_get_block_b()
72 if (block->szx == 7) { in coap_get_block_b()
81 block->szx = 6; /* BERT is 1024 block chunks */ in coap_get_block_b()
93 block->chunk_size = (size_t)1 << (block->szx + 4); in coap_get_block_b()
121 block->szx = block_b.szx; in coap_get_block()
139 block->szx = block->aszx = blk_size; in setup_block_b()
150 unsigned int szx; in setup_block_b() local
159 szx = block->szx; in setup_block_b()
[all...]
H A Dcoap_net.c1209 (block.num << 4) | (0 << 3) | block.szx), in coap_send()
1223 (block.num << 4) | (0 << 3) | block.szx), in coap_send()
1233 (block.num << 4) | (block.m << 3) | block.szx), in coap_send()
1249 block.szx), in coap_send()
1268 (0 << 4) | (1 << 3) | block.szx), in coap_send()
H A Dcoap_resource.c1089 block.szx)),
/third_party/libcoap/include/coap3/
H A Dcoap_block.h45 unsigned int szx:3; /**< block size */ member
54 unsigned int szx:3; /**< block size (0-6) */ member
76 * For zero-length options (i.e. num == m == szx == 0), COAP_OPT_BLOCK_LAST
102 * bytes of data for a block size of 1 << (@p szx + 4).
105 coap_more_blocks(size_t data_len, unsigned int num, uint16_t szx) { in coap_more_blocks() argument
106 return ((num+1) << (szx + 4)) < data_len; in coap_more_blocks()
H A Dcoap_block_internal.h151 uint8_t szx; /**< size of individual blocks */ member
187 uint8_t szx; /**< size of individual blocks */ member
/third_party/libcoap/examples/
H A Dcoap-client.c136 coap_block_t block = { .num = 0, .m = 0, .szx = 6 };
896 block.szx = (coap_fls(size >> 4) - 1) & 0x07; in cmdline_blocksize()
924 ((1ull << (block.szx + 4)) < payload.length); in set_blocksize()
927 (block.num << 4 | block.m << 3 | block.szx)); in set_blocksize()

Completed in 15 milliseconds