Lines Matching defs:nseg
2193 int nseg = ((n+1) + GLH_SEG_SIZE-1) / GLH_SEG_SIZE;
2196 * 'nseg' segments have been freed up, or until we run out of buffer
2199 while(glh->nfree < nseg && glh->nbusy > 0)
2205 if(glh->nfree < nseg)
2208 * Record the line in the first 'nseg' segments of the list of unused segments.
2211 for(i=0,seg=glh->unused; i<nseg-1; i++,seg=seg->next, offset+=GLH_SEG_SIZE)
2228 glh->nbusy += nseg;
2229 glh->nfree -= nseg;
2291 int nseg; /* The number of segments being discarded */
2296 for(nseg=1,tail=hnode->head; tail->next; nseg++,tail=tail->next)
2304 glh->nbusy -= nseg;
2305 glh->nfree += nseg;