Lines Matching defs:rest
94 int hdr_len, len, rest;
125 rest = log_size - sc->log_idx - 1;
126 if (rest >= hdr_len) {
132 bcopy(hdr, &sc->log_buff[sc->log_idx], rest);
133 bcopy(&hdr[rest], sc->log_buff,
134 hdr_len - rest);
135 sc->log_idx = hdr_len - rest;
139 rest = log_size - sc->log_idx - 1;
140 if (rest >= len) {
145 bcopy(tmp, &sc->log_buff[sc->log_idx], rest);
146 bcopy(&tmp[rest], sc->log_buff, len - rest);
147 sc->log_idx = len - rest;
159 rest = NANDSIM_ENTRY_SIZE - str_index;
160 if (rest >= hdr_len) {
167 strcpy(string, &hdr[rest]);
168 str_index = hdr_len - rest;
170 rest = NANDSIM_ENTRY_SIZE - str_index;
171 if (rest >= len) {
178 strcpy(string, &tmp[rest]);
179 str_index = len - rest;