Lines Matching defs:lp
44 struct lump *lp;
46 lp = malloc(sizeof *lp);
47 if (lp == NULL)
49 lp->start = start;
50 lp->len = len;
51 lp->state = state;
52 TAILQ_INSERT_TAIL(&lumps, lp, list);
55 static struct lump *lp;
259 lp = TAILQ_FIRST(&lumps);
260 if (lp == NULL)
262 while (lp->len > 0 && !aborting) {
264 start = lp->start;
265 len = lp->len;
266 state = lp->state;
268 i = MIN(lp->len, (off_t)bigsize);
269 if (lp->state == 1)
270 i = MIN(lp->len, (off_t)medsize);
271 if (lp->state > 1)
272 i = MIN(lp->len, (off_t)minsize);
274 if (t1 != t2 || lp->len < (off_t)bigsize) {
286 j = pread(fdr, buf, i, lp->start);
290 j = pwrite(fdw, buf, i, lp->start);
295 lp->start, i);
296 lp->start += i;
297 lp->len -= i;
301 lp->start, i, strerror(errno));
308 new_lump(lp->start, i, lp->state + 1);
309 lp->start += i;
310 lp->len -= i;
316 TAILQ_REMOVE(&lumps, lp, list);
317 free(lp);