Lines Matching defs:count
327 static int next_zero(struct ALLOC_CONTEXT *alctx, s32 bufpos, s32 count)
333 while ((index < 0) && (bufpos < count)) {
359 static int next_one(struct ALLOC_CONTEXT *alctx, s32 bufpos, s32 count)
365 while ((index < 0) && (bufpos < count)) {
394 static int run_alloc(struct ALLOC_CONTEXT *alctx, s32 count)
400 if (count > alctx->rl_allocated) {
430 static int merge_run(struct ALLOC_CONTEXT *alctx, s64 lcn, s32 count)
440 excess = alctx->gathered_clusters + count
449 && (count < alctx->rl[0].length);
455 excess = alctx->gathered_clusters + count
465 && (alctx->rl[k + drop].length < count)) {
469 alctx->rl[k].length = count;
485 && (alctx->rl[k].length > count)) {
489 alctx->rl[k+1].length = count;
492 alctx->gathered_clusters += count;
512 s32 count;
534 count = offbuf + index - alctx->lcn;
537 if (merge_run(alctx, alctx->lcn, count)) {
708 s64 br; /* byte count in buf */