Home
last modified time | relevance | path

Searched refs:size_read (Results 1 – 3 of 3) sorted by relevance

/openbmc/hiomapd/file/
H A Dbackend.c166 int32_t size_read; in file_copy() local
178 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()
/openbmc/phosphor-mboxd/
H A Dmboxd_flash.c234 int32_t size_read; in copy_flash() local
246 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()
/openbmc/hiomapd/mtd/
H A Dbackend.c266 int32_t size_read; in mtd_copy() local
278 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()