Lines Matching refs:rcnt
338 ssize_t rcnt; in psz_kmsg_recover_data() local
363 rcnt = info->read((char *)buf, zone->buffer_size + sizeof(*buf), in psz_kmsg_recover_data()
365 if (rcnt != zone->buffer_size + sizeof(*buf)) in psz_kmsg_recover_data()
366 return rcnt < 0 ? rcnt : -EIO; in psz_kmsg_recover_data()
375 ssize_t rcnt, len; in psz_kmsg_recover_meta() local
396 rcnt = info->read((char *)buf, len, zone->off); in psz_kmsg_recover_meta()
397 if (rcnt == -ENOMSG) { in psz_kmsg_recover_meta()
401 } else if (rcnt != len) { in psz_kmsg_recover_meta()
403 return rcnt < 0 ? rcnt : -EIO; in psz_kmsg_recover_meta()
487 ssize_t rcnt, len, start, off; in psz_recover_zone() local
502 rcnt = info->read((char *)&tmpbuf, len, zone->off); in psz_recover_zone()
503 if (rcnt != len) { in psz_recover_zone()
505 return rcnt < 0 ? rcnt : -EIO; in psz_recover_zone()
544 rcnt = info->read(buf, len - start, off + start); in psz_recover_zone()
545 if (rcnt != len - start) { in psz_recover_zone()
547 ret = rcnt < 0 ? rcnt : -EIO; in psz_recover_zone()
552 rcnt = info->read(buf + len - start, start, off); in psz_recover_zone()
553 if (rcnt != start) { in psz_recover_zone()
555 ret = rcnt < 0 ? rcnt : -EIO; in psz_recover_zone()