Home | History | Annotate | Download | only in src

Lines Matching refs:curFrame

179     FileBufferFrame *curFrame;
301 PortFile->endFrame = PortFile->curFrame = PortFile->startFrame;
305 PortFile->curPos = PortFile->curFrame->buffer;
309 curFrame = PortFile->curFrame;
312 if (end > curFrame->size)
314 curFrame = curFrame->next;
315 passert(end > curFrame->size);
316 end -= curFrame->size;
317 passert(curFrame);
322 PortFile->endPos = curFrame->buffer + end;
389 FileBufferFrame *curFrame = PortFile->curFrame;
404 if (PortFile->curPos == curFrame->buffer + curFrame->size) /* end of this frame */
407 curFrame = PortFile->curFrame = curFrame->next;
408 PortFile->curPos = curFrame->buffer;
411 if (curFrame == PortFile->endFrame) /* last frame */
414 cbAvail = curFrame->size - (PortFile->curPos - curFrame->buffer);
447 FileBufferFrame *curFrame;
452 curFrame = PortFile->curFrame;
464 if (PortFile->curPos == curFrame->buffer + curFrame->size) /* end of this frame */
466 if (curFrame->next == NULL)
472 curFrame->next = nextFrame;
473 nextFrame->prev = curFrame;
474 nextFrame->index = curFrame->index + 1;
476 curFrame = PortFile->curFrame = nextFrame;
488 curFrame = curFrame->next;
492 cbAvail = curFrame->size - (PortFile->curPos - curFrame->buffer);
499 if (curFrame == PortFile->endFrame && PortFile->endPos < PortFile->curPos)
514 FileBufferFrame *curFrame;
526 PortFile->curFrame = PortFile->endFrame;
530 PortFile->curFrame = PortFile->startFrame;
538 curFrame = PortFile->curFrame;
547 if (PortFile->curPos == curFrame->buffer + curFrame->size) /* end of this frame */
550 curFrame = curFrame->next;
551 if (curFrame == NULL)
553 PortFile->curFrame = curFrame->next;
554 PortFile->curPos = curFrame->buffer;
556 if (curFrame == PortFile->endFrame) /* last frame */
559 cbAvail = curFrame->size - (PortFile->curPos - curFrame->buffer);
571 if (PortFile->curPos <= curFrame->buffer) /* start of this frame */
574 curFrame = curFrame->next;
575 if (curFrame == NULL)
577 PortFile->curFrame = curFrame;
578 PortFile->curPos = curFrame->buffer + curFrame->size;
580 cbAvail = PortFile->curPos - curFrame->buffer;
597 FileBufferFrame *curFrame = PortFile->curFrame;
602 size = PortFile->curPos - curFrame->buffer;
605 while (curFrame = curFrame->prev)
606 size += curFrame->size;
814 PortFile->curFrame = PortFile->startFrame;