Lines Matching refs:info

95 	struct serial_state *info = dev_id;
97 receive_chars(&info->port);
110 struct serial_state *info = tty->driver_data;
113 if (!info->xmit.buf)
117 if (CIRC_SPACE(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE) == 0) {
121 info->xmit.buf[info->xmit.head] = ch;
122 info->xmit.head = (info->xmit.head + 1) & (SERIAL_XMIT_SIZE-1);
127 static void transmit_chars(struct tty_struct *tty, struct serial_state *info,
135 if (info->x_char) {
136 char c = info->x_char;
140 info->x_char = 0;
145 if (info->xmit.head == info->xmit.tail || tty->stopped) {
148 info->xmit.head, info->xmit.tail, tty->stopped);
160 count = min(CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE),
161 SERIAL_XMIT_SIZE - info->xmit.tail);
162 console->write(console, info->xmit.buf+info->xmit.tail, count);
164 info->xmit.tail = (info->xmit.tail+count) & (SERIAL_XMIT_SIZE-1);
169 count = CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE);
171 console->write(console, info->xmit.buf, count);
172 info->xmit.tail += count;
180 struct serial_state *info = tty->driver_data;
182 if (info->xmit.head == info->xmit.tail || tty->stopped ||
183 !info->xmit.buf)
186 transmit_chars(tty, info, NULL);
192 struct serial_state *info = tty->driver_data;
196 if (!info->xmit.buf)
201 c = CIRC_SPACE_TO_END(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE);
207 memcpy(info->xmit.buf + info->xmit.head, buf, c);
208 info->xmit.head = ((info->xmit.head + c) &
218 if (CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE) &&
220 transmit_chars(tty, info, NULL);
227 struct serial_state *info = tty->driver_data;
229 return CIRC_SPACE(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE);
234 struct serial_state *info = tty->driver_data;
236 return CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE);
241 struct serial_state *info = tty->driver_data;
245 info->xmit.head = info->xmit.tail = 0;
257 struct serial_state *info = tty->driver_data;
259 info->x_char = ch;
265 transmit_chars(tty, info, NULL);
287 struct serial_state *info = tty->driver_data;
290 if (info->x_char)
291 info->x_char = 0;
333 struct serial_state *info = container_of(port, struct serial_state,
338 if (info->irq)
339 free_irq(info->irq, info);
341 if (info->xmit.buf) {
342 free_page((unsigned long) info->xmit.buf);
343 info->xmit.buf = NULL;
350 struct serial_state *info = tty->driver_data;
352 tty_port_close(&info->port, tty, filp);
357 struct serial_state *info = tty->driver_data;
360 tty_port_hangup(&info->port);
416 struct serial_state *info = rs_table + tty->index;
417 struct tty_port *port = &info->port;
419 tty->driver_data = info;