Lines Matching defs:block

746       coap_block_b_t block;
748 if (coap_get_block_b(session, pdu, opt_iter.number, &block)) {
749 if (block.m) {
754 block.m = 0;
757 ((block.num << 4) |
758 (block.m << 3) |
759 block.aszx)),
1044 coap_block_b_t block;
1143 if (coap_get_block_b(session, pdu, COAP_OPTION_BLOCK1, &block) &&
1144 (block.m == 1 || block.bert == 1)) {
1148 if (coap_get_block_b(session, pdu, COAP_OPTION_Q_BLOCK1, &block) &&
1149 (block.m == 1 || block.bert == 1)) {
1176 memset(&block, 0, sizeof(block));
1205 if (coap_get_block_b(session, pdu, COAP_OPTION_Q_BLOCK2, &block)) {
1209 (block.num << 4) | (0 << 3) | block.szx),
1223 (block.num << 4) | (0 << 3) | block.szx),
1229 if (coap_get_block_b(session, pdu, COAP_OPTION_Q_BLOCK1, &block)) {
1233 (block.num << 4) | (block.m << 3) | block.szx),
1247 (block.num << 4) |
1248 (block.m << 3) |
1249 block.szx),
1261 coap_get_block_b(session, pdu, COAP_OPTION_Q_BLOCK2, &block)) {
1262 if (block.num == 0 && block.m == 0) {
1268 (0 << 4) | (1 << 3) | block.szx),
1367 if (coap_get_block_b(session, pdu, COAP_OPTION_Q_BLOCK1, &block)) {
1368 mid = coap_send_q_block1(session, block, pdu, COAP_SEND_INC_PDU);
1527 * Need to check that this instance is not sending any block options as
2539 * Data does not fit into a packet and no libcoap block support
2779 coap_block_b_t block;
3115 if (coap_get_block_b(session, pdu, COAP_OPTION_BLOCK2, &block)) {
3116 if (block.num != 0) {
3122 &block)) {
3123 if (block.num != 0) {
3247 coap_get_block_b(session, response, COAP_OPTION_Q_BLOCK2, &block) &&
3248 block.m) {
3249 if (coap_send_q_block2(session, resource, query, pdu->code, block,
3303 if (coap_get_block_b(session, pdu, COAP_OPTION_Q_BLOCK1, &block)) {
3305 if (block.m) {
3311 if (block.m && ((block.num + 1) % COAP_MAX_PAYLOADS(session))) {
3403 /* See if need to send next block to server */
3405 /* Next block transmitted, no need to inform app */
3410 /* Need to see if needing to request next block */
3413 /* Next block transmitted, ack sent no need to inform app */
3654 coap_block_b_t block;
3661 &block)) {
3662 if (block.m) {
3665 coap_send_q_block1(session, block, sent->pdu,
3669 coap_send_q_blocks(session, sent->pdu->lg_xmit, block,