Searched refs:total_img_len (Results 1 - 1 of 1) sorted by relevance
/kernel/linux/common_modules/tzdriver/core/ |
H A D | teek_app_load.c | 21 static int32_t teek_open_app_file(struct file *fp, char **file_buf, uint32_t total_img_len) in teek_open_app_file() argument 27 if (total_img_len == 0 || total_img_len > MAX_IMAGE_LEN) { in teek_open_app_file() 28 tloge("img len is invalied %u\n", total_img_len); in teek_open_app_file() 32 file_buffer = vmalloc(total_img_len); in teek_open_app_file() 34 tloge("alloc TA file buffer(size=%u) failed\n", total_img_len); in teek_open_app_file() 38 read_size = (uint32_t)kernel_read(fp, file_buffer, total_img_len, &pos); in teek_open_app_file() 39 if (read_size != total_img_len) { in teek_open_app_file() 40 tloge("read ta file failed, read size/total size=%u/%u\n", read_size, total_img_len); in teek_open_app_file()
|
Completed in 1 milliseconds