Lines Matching refs:cnt
68 size_t cnt; in alloc() local
78 cnt = GetByteCount(); in alloc()
81 getid(), cnt, size)); in alloc()
133 if ((cnt <= MIN_ZBUFFER) && (size <= MIN_ZBUFFER) && in alloc()
149 ncpy = (cnt < size) ? (unsigned int)cnt : in alloc()
157 if ((cnt > MIN_ZBUFFER) && (zflag != 0)) { in alloc()
311 off_t cnt; in ReadData() local
316 cnt = (off_t)len; in ReadData()
324 if ((pos < 0.) || (cnt < 0)) in ReadData()
342 if (cnt > resid) in ReadData()
343 cnt = resid; in ReadData()
347 if (GetHeader().Bytes_to_Bytes(cnt) > 0) { in ReadData()
350 (int)cnt); in ReadData()
356 len = (size_t)cnt; in ReadData()
357 pos = GetHeader().Bytes_to_Time(offset + cnt); in ReadData()
376 off_t cnt; in WriteData() local
381 cnt = (off_t)len; in WriteData()
389 if ((pos < 0.) || (cnt < 0)) in WriteData()
407 if (cnt > resid) in WriteData()
408 cnt = resid; in WriteData()
412 if (GetHeader().Bytes_to_Bytes(cnt) > 0) { in WriteData()
415 (int)cnt); in WriteData()
421 len = (size_t)cnt; in WriteData()
422 pos = GetHeader().Bytes_to_Time(offset + cnt); in WriteData()
468 size_t cnt; in AsyncCopy() local
504 cnt = (size_t)GetHeader().Time_to_Bytes(lim); in AsyncCopy()
505 if (cnt == 0) { in AsyncCopy()
513 if ((bptr + cnt) > (caddr_t)svcnt) { in AsyncCopy()
515 cnt = (size_t)((caddr_t)svcnt - bptr); in AsyncCopy()
517 if (GetHeader().Bytes_to_Bytes(cnt) == 0) { in AsyncCopy()
526 svcnt = cnt; in AsyncCopy()
527 err = to->WriteData(bptr, cnt, topos); in AsyncCopy()
532 if (!err && (cnt < svcnt)) { in AsyncCopy()