Home
last modified time | relevance | path

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

/AliOS-Things-master/components/ota/ota_agent/verify/
A Dota_verify_hash.c106 char *rd_buf = NULL; in ota_check_image_hash() local
134 rd_buf = ota_malloc(OTA_BUF_VERIFY); in ota_check_image_hash()
135 if (rd_buf == NULL) { in ota_check_image_hash()
147 ret = ota_read(&off, rd_buf, read_size); in ota_check_image_hash()
152 ret = ota_hash_update(&ctx, (const unsigned char *)rd_buf, read_size); in ota_check_image_hash()
156 ota_crc16_update(&crc_ctx, (void *)rd_buf, read_size); in ota_check_image_hash()
165 if (NULL != rd_buf) { in ota_check_image_hash()
166 ota_free(rd_buf); in ota_check_image_hash()
167 rd_buf = NULL; in ota_check_image_hash()
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmachine_spi.c94 STATIC mp_obj_t mp_machine_spi_write_readinto(mp_obj_t self, mp_obj_t wr_buf, mp_obj_t rd_buf) { in mp_machine_spi_write_readinto() argument
98 mp_get_buffer_raise(rd_buf, &dest, MP_BUFFER_WRITE); in mp_machine_spi_write_readinto()

Completed in 3 milliseconds