Lines Matching refs:sz
43 ssize_t sz, size; in bootctrl_read_metadata() local
60 sz = read(fd, buf, size); in bootctrl_read_metadata()
61 if (sz == 0) { in bootctrl_read_metadata()
63 } else if (sz < 0) { in bootctrl_read_metadata()
72 size -= sz; in bootctrl_read_metadata()
73 buf += sz; in bootctrl_read_metadata()
89 ssize_t sz, size; in bootctrl_write_metadata() local
107 sz = write(fd, buf, size); in bootctrl_write_metadata()
108 if (sz == 0) { in bootctrl_write_metadata()
110 } else if (sz < 0) { in bootctrl_write_metadata()
119 size -= sz; in bootctrl_write_metadata()
120 buf += sz; in bootctrl_write_metadata()
141 ssize_t size = COMMAND_LINE_SIZE, sz; in bootctrl_get_active_slot() local
160 sz = read(fd, buf, size); in bootctrl_get_active_slot()
161 if (sz == 0) { in bootctrl_get_active_slot()
163 } else if (sz < 0) { in bootctrl_get_active_slot()
173 size -= sz; in bootctrl_get_active_slot()
174 buf += sz; in bootctrl_get_active_slot()