Searched refs:size_read (Results 1 – 3 of 3) sorted by relevance
166 int32_t size_read; in file_copy() local178 size_read = read(priv->fd, mem, min_u32(CHUNKSIZE, size)); in file_copy()179 if (size_read < 0) { in file_copy()185 size -= size_read; in file_copy()186 mem += size_read; in file_copy()187 } while (size && size_read); in file_copy()189 return size_read ? mem - start : -EIO; in file_copy()
234 int32_t size_read; in copy_flash() local246 size_read = read(context->fds[MTD_FD].fd, mem, in copy_flash()248 if (size_read < 0) { in copy_flash()254 size -= size_read; in copy_flash()255 mem += size_read; in copy_flash()256 } while (size && size_read); in copy_flash()258 return size_read ? mem - start : -MBOX_R_SYSTEM_ERROR; in copy_flash()
266 int32_t size_read; in mtd_copy() local278 size_read = read(priv->fd, mem, in mtd_copy()280 if (size_read < 0) { in mtd_copy()286 size -= size_read; in mtd_copy()287 mem += size_read; in mtd_copy()288 } while (size && size_read); in mtd_copy()290 return size_read ? mem - start : -EIO; in mtd_copy()