Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/mgmt/ec_host_cmd/
Dec_host_cmd_handler.c86 static uint8_t cal_checksum(const uint8_t *const buffer, const uint16_t size) in cal_checksum() function
205 tx_header->checksum = cal_checksum((uint8_t *)tx_header, TX_HEADER_SIZE); in send_status_response()
238 if (cal_checksum((uint8_t *)rx_header, rx_valid_data_size) != 0) { in verify_rx()
281 tx_header->checksum = cal_checksum(tx->buf, tx_valid_data_size); in prepare_response()
/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/uart/src/
Dmain.c24 static uint8_t cal_checksum(const uint8_t *const buffer, const uint16_t size) in cal_checksum() function
92 cmd->checksum = cal_checksum((uint8_t *)cmd, CMD_HEADER_SIZE + sizeof(*cmd_data)); in prepare_hello_cmd()
119 rsp->checksum = cal_checksum(tx_buf, sizeof(tx_buf)); in test_hello()