Home
last modified time | relevance | path

Searched refs:buf_get (Results 1 – 1 of 1) sorted by relevance

/drivers/usb/gadget/
Du_serial.c88 char *buf_get; member
162 gb->buf_get = gb->buf_buf; in gs_buf_alloc()
185 gb->buf_get = gb->buf_put; in gs_buf_clear()
197 return (gb->buf_size + gb->buf_put - gb->buf_get) % gb->buf_size; in gs_buf_data_avail()
208 return (gb->buf_size + gb->buf_get - gb->buf_put - 1) % gb->buf_size; in gs_buf_space_avail()
267 len = gb->buf_buf + gb->buf_size - gb->buf_get; in gs_buf_get()
269 memcpy(buf, gb->buf_get, len); in gs_buf_get()
271 gb->buf_get = gb->buf_buf + count - len; in gs_buf_get()
273 memcpy(buf, gb->buf_get, count); in gs_buf_get()
275 gb->buf_get += count; in gs_buf_get()
[all …]