Lines Matching refs:cb_size
921 SANE_Int cb_size; /* size of the circular buffer */
941 if (ps->round_req == ps->cb_size)
942 remaining = TxSource_remaining(pself) - ps->cb_size + ps->cb_line_size;
964 DBG(DL_DATA_TRACE, "%s: remaining=%d, pself->remaining=%d, round_req=%d, cb_size=%d\n",
965 me, remaining, pself->remaining(pself), ps->round_req, ps->cb_size);
990 ps->cb_start = (ps->cb_start + ps->round_read)%ps->cb_size;
992 r = (ps->cb_start + ps->ch_offset[0])%ps->cb_size;
993 g = (ps->cb_start + ps->ch_offset[1])%ps->cb_size;
994 b = (ps->cb_start + ps->ch_offset[2])%ps->cb_size;
1092 pself->cb_size = pself->cb_line_size*lines_in_buffer;
1095 pself->round_req = pself->cb_size;
1098 pself->cbuf = (SANE_Byte *) malloc(pself->cb_size);
1120 pself->cb_line_size, lines_in_buffer, pself->cb_size);