Lines Matching refs:ccount
277 int ccount; in ps2_cqueue_reset() local
283 ccount = (q->cwptr - q->rptr) & (PS2_BUFFER_SIZE - 1); in ps2_cqueue_reset()
284 q->count -= ccount; in ps2_cqueue_reset()
1028 int ccount = 0; in ps2_common_post_load() local
1032 ccount = (q->cwptr - q->rptr) & (PS2_BUFFER_SIZE - 1); in ps2_common_post_load()
1033 if (ccount > PS2_QUEUE_HEADROOM) { in ps2_common_post_load()
1034 ccount = PS2_QUEUE_HEADROOM; in ps2_common_post_load()
1039 if (q->count < ccount) { in ps2_common_post_load()
1040 q->count = ccount; in ps2_common_post_load()
1041 } else if (q->count > ccount + PS2_QUEUE_SIZE) { in ps2_common_post_load()
1042 q->count = ccount + PS2_QUEUE_SIZE; in ps2_common_post_load()
1048 q->cwptr = ccount ? (q->rptr + ccount) & (PS2_BUFFER_SIZE - 1) : -1; in ps2_common_post_load()