Lines Matching defs:lcv
549 int slots, lcv, lazyalloc = 0;
643 for (lcv = 0; lcv < slots; lcv += n) {
644 srcslot = entry->aref.ar_pageoff + lcv;
645 i = UVM_AMAP_SLOTIDX(lcv);
652 if (lcv + n > slots)
653 n = slots - lcv;
659 chunk = amap_chunk_get(amap, lcv, 1, PR_NOWAIT);
747 * note that if we unlock the amap then we must ReStart the "lcv" for
904 int stopslot, *ppref, lcv, prevlcv;
916 for (lcv = 0 ; lcv < curslot ; lcv += len) {
917 pp_getreflen(ppref, lcv, &ref, &len);
918 if (lcv + len > curslot) { /* goes past start? */
919 pp_setreflen(ppref, lcv, ref, curslot - lcv);
920 pp_setreflen(ppref, curslot, ref, len - (curslot -lcv));
921 len = curslot - lcv; /* new length of entry @ lcv */
923 prevlcv = lcv;
925 if (lcv != 0)
941 if (lcv != curslot)
944 for (/* lcv already set */; lcv < stopslot ; lcv += len) {
945 pp_getreflen(ppref, lcv, &ref, &len);
946 if (lcv + len > stopslot) { /* goes past end? */
947 pp_setreflen(ppref, lcv, ref, stopslot - lcv);
949 len - (stopslot - lcv));
950 len = stopslot - lcv;
955 if (lcv == prevlcv + prevlen && ref == prevref) {
958 pp_setreflen(ppref, lcv, ref, len);
961 amap_wiperange(amap, lcv, len);
1179 int i, lcv, n, slot;
1188 for (i = 0, lcv = slot; lcv < slot + npages; i += n, lcv += n) {
1189 n = UVM_AMAP_CHUNK - UVM_AMAP_SLOTIDX(lcv);
1190 if (lcv + n > slot + npages)
1191 n = slot + npages - lcv;
1193 chunk = amap_chunk_get(amap, lcv, 0, PR_NOWAIT);
1198 &chunk->ac_anon[UVM_AMAP_SLOTIDX(lcv)],