Lines Matching refs:pending
1089 int coap_pending_init(struct coap_pending *pending, in coap_pending_init() argument
1094 memset(pending, 0, sizeof(*pending)); in coap_pending_init()
1096 pending->id = coap_header_get_id(request); in coap_pending_init()
1098 memcpy(&pending->addr, addr, sizeof(*addr)); in coap_pending_init()
1100 pending->data = request->data; in coap_pending_init()
1101 pending->len = request->offset; in coap_pending_init()
1102 pending->t0 = k_uptime_get_32(); in coap_pending_init()
1103 pending->retries = retries; in coap_pending_init()
1232 bool coap_pending_cycle(struct coap_pending *pending) in coap_pending_cycle() argument
1234 if (pending->timeout == 0) { in coap_pending_cycle()
1236 pending->timeout = init_ack_timeout(); in coap_pending_cycle()
1241 if (pending->retries == 0) { in coap_pending_cycle()
1245 pending->t0 += pending->timeout; in coap_pending_cycle()
1246 pending->timeout = pending->timeout << 1; in coap_pending_cycle()
1247 pending->retries--; in coap_pending_cycle()
1252 void coap_pending_clear(struct coap_pending *pending) in coap_pending_clear() argument
1254 pending->timeout = 0; in coap_pending_clear()
1255 pending->data = NULL; in coap_pending_clear()