Home
last modified time | relevance | path

Searched refs:last_token (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/net/lib/coap_client/src/
Dmain.c37 static uint8_t last_token[2][COAP_TOKEN_MAX_LEN]; variable
102 for (int i = 0; i < ARRAY_SIZE(last_token); i++) { in store_token()
103 if (memcmp(last_token[i], empty_token, 8) == 0) { in store_token()
104 memcpy(last_token[i], buf + TOKEN_OFFSET, COAP_TOKEN_MAX_LEN); in store_token()
112 for (int i = 0; i < ARRAY_SIZE(last_token); i++) { in restore_token()
113 if (memcmp(last_token[i], empty_token, 8) != 0) { in restore_token()
114 memcpy(buf + TOKEN_OFFSET, last_token[i], COAP_TOKEN_MAX_LEN); in restore_token()
115 memset(last_token[i], 0, COAP_TOKEN_MAX_LEN); in restore_token()
503 memset(last_token, 0, sizeof(last_token)); in test_setup()
/Zephyr-latest/drivers/usb/device/
Dusb_dc_it82xx2.c164 enum it82xx2_trans_type last_token; member
584 (udata0.last_token == IN_TOKEN && in it82xx2_check_setup_following_out()
606 udata0.last_token = udata0.now_token; in it82xx2_handler_setup()
616 udata0.last_token = udata0.now_token; in it82xx2_handler_setup()
622 udata0.last_token = udata0.now_token; in it82xx2_handler_setup()
653 udata0.last_token = udata0.now_token; in it82xx2_handler_in()
703 udata0.last_token = udata0.now_token; in it82xx2_handler_out()
722 udata0.last_token = udata0.now_token; in it82xx2_handler_out()