Lines Matching refs:RAW3215_BUFFER_SIZE
39 #define RAW3215_BUFFER_SIZE 65536 /* output buffer size */ macro
194 (RAW3215_BUFFER_SIZE - 1); in raw3215_mk_write_req()
205 ix = (ix + 1) & (RAW3215_BUFFER_SIZE - 1); in raw3215_mk_write_req()
207 len = ((ix - 1 - req->start) & (RAW3215_BUFFER_SIZE - 1)) + 1; in raw3215_mk_write_req()
224 if (ix + count > RAW3215_BUFFER_SIZE) in raw3215_mk_write_req()
225 count = RAW3215_BUFFER_SIZE - ix; in raw3215_mk_write_req()
228 ix = (ix + count) & (RAW3215_BUFFER_SIZE - 1); in raw3215_mk_write_req()
339 if (tty && RAW3215_BUFFER_SIZE - raw->count >= RAW3215_MIN_SPACE) in raw3215_next_io()
469 (RAW3215_BUFFER_SIZE - 1); in raw3215_drop()
472 return RAW3215_BUFFER_SIZE - raw->count; in raw3215_drop()
485 while (RAW3215_BUFFER_SIZE - raw->count < length) { in raw3215_make_room()
498 if (RAW3215_BUFFER_SIZE - raw->count >= length) in raw3215_make_room()
563 raw->head = (raw->head + 1) & (RAW3215_BUFFER_SIZE - 1); in raw3215_addtext()
675 info->buffer = kzalloc(RAW3215_BUFFER_SIZE, GFP_KERNEL | GFP_DMA); in raw3215_alloc_info()
832 i = min_t(int, count, RAW3215_BUFFER_SIZE - 1); in handle_write()
871 raw3215_make_room(raw, RAW3215_BUFFER_SIZE, false); in con3215_notify()
1015 if ((RAW3215_BUFFER_SIZE - raw->count - TAB_STOP_SIZE) >= 0) in tty3215_write_room()
1016 return RAW3215_BUFFER_SIZE - raw->count - TAB_STOP_SIZE; in tty3215_write_room()