Lines Matching refs:size
74 int check_ifwi_file_scu_emmc(void *data, size_t size) in check_ifwi_file_scu_emmc() argument
78 if (get_image_fw_rev(data, size, &img_fw_rev)) { in check_ifwi_file_scu_emmc()
102 static uint32_t xor_compute(char *ptr, uint32_t size) in xor_compute() argument
107 for (i = 0; i < size; i+=4) in xor_compute()
140 static int write_umip_emmc(uint32_t addr_offset, void *data, size_t size) in write_umip_emmc() argument
156 if (size > BOOT_IFWI_SIZE) { in write_umip_emmc()
158 (size - BOOT_IFWI_SIZE)); in write_umip_emmc()
161 size = BOOT_IFWI_SIZE; in write_umip_emmc()
189 if (addr_offset + size <= BOOT_IFWI_SIZE) in write_umip_emmc()
191 memset(ptr + addr_offset, 0, size); in write_umip_emmc()
193 memcpy(ptr + addr_offset, data, size); in write_umip_emmc()
266 int update_ifwi_file_scu_emmc(void *data, size_t size) in update_ifwi_file_scu_emmc() argument
268 return write_umip_emmc(IFWI_OFFSET, data, size); in update_ifwi_file_scu_emmc()
271 int flash_ifwi_scu_emmc(void *data, unsigned size) in flash_ifwi_scu_emmc() argument
275 ret = check_ifwi_file_scu_emmc(data, size); in flash_ifwi_scu_emmc()
277 return update_ifwi_file_scu_emmc(data, size); in flash_ifwi_scu_emmc()