Lines Matching refs:port_write_buf
114 struct gs_buf port_write_buf; member
338 len = gs_buf_data_avail(&port->port_write_buf); in gs_send_packet()
342 size = gs_buf_get(&port->port_write_buf, packet, size); in gs_send_packet()
385 req->zero = (gs_buf_data_avail(&port->port_write_buf) == 0); in gs_start_tx()
774 if (port->port_write_buf.buf_buf == NULL) { in gs_open()
777 status = gs_buf_alloc(&port->port_write_buf, WRITE_BUF_SIZE); in gs_open()
826 cond = (p->port_usb == NULL) || !gs_buf_data_avail(&p->port_write_buf); in gs_writes_finished()
862 if (gs_buf_data_avail(&port->port_write_buf) > 0 && gser) { in gs_close()
876 gs_buf_free(&port->port_write_buf); in gs_close()
878 gs_buf_clear(&port->port_write_buf); in gs_close()
903 count = gs_buf_put(&port->port_write_buf, buf, count); in gs_write()
922 status = gs_buf_put(&port->port_write_buf, &ch, 1); in gs_put_char()
949 room = gs_buf_space_avail(&port->port_write_buf); in gs_write_room()
965 chars = gs_buf_data_avail(&port->port_write_buf); in gs_chars_in_buffer()
1272 gs_buf_free(&port->port_write_buf); in gserial_disconnect()