Lines Matching refs:cbAvail
1399 size_t cbAvail = ps->current->datacount; in store_read_buffer_avail() local
1404 cbAvail += STORE_BUFFER_SIZE; in store_read_buffer_avail()
1410 if (cbAvail > ps->readpos) in store_read_buffer_avail()
1411 return cbAvail - ps->readpos; in store_read_buffer_avail()
1451 size_t cbAvail = store_read_buffer_size(ps) - ps->readpos; in store_read_imp() local
1453 if (cbAvail > 0) in store_read_imp()
1455 if (cbAvail > st) cbAvail = st; in store_read_imp()
1456 memcpy(pb, ps->next->buffer + ps->readpos, cbAvail); in store_read_imp()
1457 st -= cbAvail; in store_read_imp()
1458 pb += cbAvail; in store_read_imp()
1459 ps->readpos += cbAvail; in store_read_imp()
3229 size_t cb, cbAvail; in modifier_progressive_read() local
3241 cbAvail = store_read_buffer_avail(&pm->this); in modifier_progressive_read()
3243 cbAvail += pm->buffer_count - pm->buffer_position; in modifier_progressive_read()
3245 if (cb > cbAvail) in modifier_progressive_read()
3248 if (cbAvail == 0) in modifier_progressive_read()
3251 cb = cbAvail; in modifier_progressive_read()