/drivers/input/joystick/iforce/ |
H A D | iforce-serio.c | 44 if (iforce->xmit.head == iforce->xmit.tail) { 54 serio_write(iforce->serio, iforce->xmit.buf[iforce->xmit.tail]); 55 cs ^= iforce->xmit.buf[iforce->xmit.tail]; 56 XMIT_INC(iforce->xmit.tail, 1); 58 for (i=iforce->xmit.buf[iforce->xmit.tail]; i >= 0; --i) { 59 serio_write(iforce->serio, iforce->xmit [all...] |
H A D | iforce-usb.c | 37 if (iforce->xmit.head == iforce->xmit.tail) { 43 ((char *)iforce->out->transfer_buffer)[0] = iforce->xmit.buf[iforce->xmit.tail]; 44 XMIT_INC(iforce->xmit.tail, 1); 45 n = iforce->xmit.buf[iforce->xmit.tail]; 46 XMIT_INC(iforce->xmit.tail, 1); 52 c = CIRC_CNT_TO_END(iforce->xmit.head, iforce->xmit [all...] |
H A D | iforce-packets.c | 59 * Update head and tail of xmit buffer 63 head = iforce->xmit.head; 64 tail = iforce->xmit.tail; 69 "not enough space in xmit buffer to send new packet\n"); 75 XMIT_INC(iforce->xmit.head, n+2); 78 * Store packet in xmit buffer 80 iforce->xmit.buf[head] = HI(cmd); 82 iforce->xmit.buf[head] = LO(cmd); 88 memcpy(&iforce->xmit.buf[head], 92 memcpy(&iforce->xmit [all...] |
/drivers/tty/serial/8250/ |
H A D | 8250_dma.c | 22 struct circ_buf *xmit = &p->port.state->xmit; local 32 xmit->tail += dma->tx_size; 33 xmit->tail &= UART_XMIT_SIZE - 1; 36 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) 39 if (!uart_circ_empty(xmit) && !uart_tx_stopped(&p->port)) 70 struct circ_buf *xmit = &p->port.state->xmit; local 74 uart_circ_empty(xmit)) 77 dma->tx_size = CIRC_CNT_TO_END(xmit [all...] |
/drivers/media/pci/bt8xx/ |
H A D | bttv-i2c.c | 141 u32 xmit; local 149 xmit = (msg->addr << 25) | (msg->buf[0] << 16) | I2C_HW; 151 xmit |= BT878_I2C_NOSTOP; 152 btwrite(xmit, BT848_I2C); 164 xmit = (msg->buf[cnt] << 24) | I2C_HW | BT878_I2C_NOSTART; 166 xmit |= BT878_I2C_NOSTOP; 167 btwrite(xmit, BT848_I2C); 176 if (i2c_debug && !(xmit & BT878_I2C_NOSTOP)) 191 u32 xmit; local 196 xmit [all...] |
/drivers/tty/serial/ |
H A D | sunhv.c | 46 static void transmit_chars_putchar(struct uart_port *port, struct circ_buf *xmit) argument 48 while (!uart_circ_empty(xmit)) { 49 long status = sun4v_con_putchar(xmit->buf[xmit->tail]); 54 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); 59 static void transmit_chars_write(struct uart_port *port, struct circ_buf *xmit) argument 61 while (!uart_circ_empty(xmit)) { 62 unsigned long ra = __pa(xmit->buf + xmit 199 struct circ_buf *xmit; local [all...] |
H A D | mrst_max3110.c | 180 struct circ_buf *xmit = &max->con_xmit; local 182 if (uart_circ_chars_free(xmit)) { 183 xmit->buf[xmit->head] = (char)ch; 184 xmit->head = (xmit->head + 1) & (PAGE_SIZE - 1); 268 struct circ_buf *xmit) 282 while (!uart_circ_empty(xmit)) { 283 left = uart_circ_chars_pending(xmit); 290 obuf[i] = (u8)xmit 267 send_circ_buf(struct uart_max3110 *max, struct circ_buf *xmit) argument 315 struct circ_buf *xmit = &port->state->xmit; local 412 struct circ_buf *xmit = &max->con_xmit; local [all...] |
H A D | tilegx.c | 136 struct circ_buf *xmit; local 144 xmit = &port->state->xmit; 152 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) 155 while (!uart_circ_empty(xmit)) { 156 ch = xmit->buf[xmit->tail]; 159 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); 167 if (uart_circ_chars_pending(xmit) < WAKEUP_CHAR 260 struct circ_buf *xmit; local [all...] |
H A D | mux.c | 192 struct circ_buf *xmit = &port->state->xmit; local 201 if(uart_circ_empty(xmit) || uart_tx_stopped(port)) { 208 UART_PUT_CHAR(port, xmit->buf[xmit->tail]); 209 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); 211 if(uart_circ_empty(xmit)) 219 if(uart_circ_chars_pending(xmit) < WAKEUP_CHARS) 222 if (uart_circ_empty(xmit)) [all...] |
H A D | timbuart.c | 112 struct circ_buf *xmit = &port->state->xmit; local 115 !uart_circ_empty(xmit)) { 116 iowrite8(xmit->buf[xmit->tail], 118 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); 135 struct circ_buf *xmit = &port->state->xmit; local 137 if (uart_circ_empty(xmit) || uart_tx_stoppe [all...] |
H A D | sn_console.c | 533 struct circ_buf *xmit; local 542 xmit = &port->sc_port.state->xmit; 551 if (uart_circ_empty(xmit) || uart_tx_stopped(&port->sc_port)) { 557 head = xmit->head; 558 tail = xmit->tail; 559 start = &xmit->buf[tail]; 586 xmit->tail = tail; 587 start = &xmit->buf[tail]; 592 if (uart_circ_chars_pending(xmit) < WAKEUP_CHAR [all...] |
H A D | bfin_uart.c | 149 struct circ_buf *xmit = &uart->port.state->xmit; local 157 xmit->tail = (xmit->tail + uart->tx_count) & (UART_XMIT_SIZE - 1); 319 struct circ_buf *xmit = &uart->port.state->xmit; local 321 if (uart_circ_empty(xmit) || uart_tx_stopped(&uart->port)) { 341 while ((UART_GET_LSR(uart) & THRE) && xmit->tail != xmit->head) { 342 UART_PUT_CHAR(uart, xmit 377 struct circ_buf *xmit = &uart->port.state->xmit; local 506 struct circ_buf *xmit = &uart->port.state->xmit; local [all...] |
H A D | serial-tegra.c | 357 struct circ_buf *xmit = &tup->uport.state->xmit; local 361 BUG_ON(uart_circ_empty(xmit)); 367 tegra_uart_write(tup, xmit->buf[xmit->tail], UART_TX); 368 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); 388 struct circ_buf *xmit = &tup->uport.state->xmit; local 397 xmit 408 struct circ_buf *xmit = &tup->uport.state->xmit; local 437 struct circ_buf *xmit = &tup->uport.state->xmit; local 456 struct circ_buf *xmit = &u->state->xmit; local 481 struct circ_buf *xmit = &tup->uport.state->xmit; local 499 struct circ_buf *xmit = &tup->uport.state->xmit; local [all...] |
H A D | 21285.c | 121 struct circ_buf *xmit = &port->state->xmit; local 130 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) { 136 *CSR_UARTDR = xmit->buf[xmit->tail]; 137 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); 139 if (uart_circ_empty(xmit)) 143 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) 146 if (uart_circ_empty(xmit)) [all...] |
H A D | sirfsoc_uart.c | 204 struct circ_buf *xmit = &port->state->xmit; local 209 tran_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); 210 tran_start = (unsigned long)(xmit->buf + xmit->tail); 211 if (uart_circ_empty(xmit) || uart_tx_stopped(port) || 265 xmit->buf + xmit->tail, 443 struct circ_buf *xmit local 464 struct circ_buf *xmit = &port->state->xmit; local 626 struct circ_buf *xmit = &port->state->xmit; local [all...] |
H A D | netx-serial.c | 141 struct circ_buf *xmit = &port->state->xmit; local 150 if (uart_tx_stopped(port) || uart_circ_empty(xmit)) { 156 /* send xmit->buf[xmit->tail] 158 writel(xmit->buf[xmit->tail], port->membase + UART_DR); 159 xmit->tail = (xmit->tail + 1) & 162 if (uart_circ_empty(xmit)) 186 struct circ_buf *xmit = &port->state->xmit; local [all...] |
H A D | st-asc.c | 241 struct circ_buf *xmit = &port->state->xmit; local 264 if (uart_circ_empty(xmit)) { 273 c = xmit->buf[xmit->tail]; 274 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); 278 } while ((txroom > 0) && (!uart_circ_empty(xmit))); 280 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) 283 if (uart_circ_empty(xmit)) 404 struct circ_buf *xmit = &port->state->xmit; local [all...] |
H A D | mxs-auart.c | 197 struct circ_buf *xmit = &s->port.state->xmit; local 206 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) 248 struct circ_buf *xmit = &s->port.state->xmit; local 258 while (!uart_circ_empty(xmit) && !uart_tx_stopped(&s->port)) { 260 CIRC_CNT_TO_END(xmit->head, 261 xmit->tail, 263 memcpy(buffer + i, xmit->buf + xmit [all...] |
H A D | fsl_lpuart.c | 346 struct circ_buf *xmit = &sport->port.state->xmit; local 351 while (!uart_circ_empty(xmit) && 353 writeb(xmit->buf[xmit->tail], sport->port.membase + UARTDR); 354 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); 358 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) 361 if (uart_circ_empty(xmit)) 370 struct circ_buf *xmit local 397 struct circ_buf *xmit = &sport->port.state->xmit; local 417 struct circ_buf *xmit = &sport->port.state->xmit; local 524 struct circ_buf *xmit = &sport->port.state->xmit; local 542 struct circ_buf *xmit = &sport->port.state->xmit; local 568 struct circ_buf *xmit = &sport->port.state->xmit; local 598 struct circ_buf *xmit = &sport->port.state->xmit; local [all...] |
H A D | men_z135_uart.c | 292 struct circ_buf *xmit = &port->state->xmit; local 302 if (uart_circ_empty(xmit)) 312 qlen = uart_circ_chars_pending(xmit); 343 head = xmit->head & (UART_XMIT_SIZE - 1); 344 tail = xmit->tail & (UART_XMIT_SIZE - 1); 349 memcpy_toio(port->membase + MEN_Z135_TX_RAM, &xmit->buf[xmit->tail], n); 350 xmit->tail = (xmit [all...] |
H A D | arc_uart.c | 165 struct circ_buf *xmit = &port->state->xmit; local 174 } else if (!uart_circ_empty(xmit)) { 175 ch = xmit->buf[xmit->tail]; 176 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); 185 * If num chars in xmit buffer are too few, ask tty layer for more. 188 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
|
H A D | nwpserial.c | 263 struct circ_buf *xmit; local 265 xmit = &up->port.state->xmit; 272 while (!(uart_circ_empty(xmit) || uart_tx_stopped(&up->port))) { 273 nwpserial_putchar(up, xmit->buf[xmit->tail]); 274 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE-1);
|
/drivers/net/wireless/b43legacy/ |
H A D | Makefile | 7 b43legacy-y += xmit.o
|
/drivers/tty/ |
H A D | amiserial.c | 96 struct circ_buf xmit; member in struct:serial_state 117 /* number of characters left in xmit buffer before we ask for more */ 216 if (info->xmit.head != info->xmit.tail 217 && info->xmit.buf 349 if (info->xmit.head == info->xmit.tail 358 custom.serdat = info->xmit.buf[info->xmit.tail++] | 0x100; 360 info->xmit [all...] |
/drivers/net/wan/ |
H A D | hdlc_raw_eth.c | 42 return dev_to_hdlc(dev)->xmit(skb, dev); 48 .xmit = eth_tx,
|