/linux/drivers/input/joystick/iforce/ |
A D | iforce-serio.c | 41 if (iforce->xmit.head == iforce->xmit.tail) { in iforce_serio_xmit() 51 serio_write(iforce_serio->serio, iforce->xmit.buf[iforce->xmit.tail]); in iforce_serio_xmit() 52 cs ^= iforce->xmit.buf[iforce->xmit.tail]; in iforce_serio_xmit() 53 XMIT_INC(iforce->xmit.tail, 1); in iforce_serio_xmit() 55 for (i=iforce->xmit.buf[iforce->xmit.tail]; i >= 0; --i) { in iforce_serio_xmit() 57 iforce->xmit.buf[iforce->xmit.tail]); in iforce_serio_xmit() 58 cs ^= iforce->xmit.buf[iforce->xmit.tail]; in iforce_serio_xmit() 59 XMIT_INC(iforce->xmit.tail, 1); in iforce_serio_xmit() 114 .xmit = iforce_serio_xmit,
|
A D | iforce-usb.c | 32 if (iforce->xmit.head == iforce->xmit.tail) { in __iforce_usb_xmit() 38 ((char *)iforce_usb->out->transfer_buffer)[0] = iforce->xmit.buf[iforce->xmit.tail]; in __iforce_usb_xmit() 39 XMIT_INC(iforce->xmit.tail, 1); in __iforce_usb_xmit() 40 n = iforce->xmit.buf[iforce->xmit.tail]; in __iforce_usb_xmit() 41 XMIT_INC(iforce->xmit.tail, 1); in __iforce_usb_xmit() 47 c = CIRC_CNT_TO_END(iforce->xmit.head, iforce->xmit.tail, XMIT_SIZE); in __iforce_usb_xmit() 51 &iforce->xmit.buf[iforce->xmit.tail], in __iforce_usb_xmit() 55 &iforce->xmit.buf[0], in __iforce_usb_xmit() 58 XMIT_INC(iforce->xmit.tail, n); in __iforce_usb_xmit() 132 .xmit = iforce_usb_xmit,
|
A D | iforce-packets.c | 41 head = iforce->xmit.head; in iforce_send_packet() 42 tail = iforce->xmit.tail; in iforce_send_packet() 53 XMIT_INC(iforce->xmit.head, n+2); in iforce_send_packet() 58 iforce->xmit.buf[head] = HI(cmd); in iforce_send_packet() 60 iforce->xmit.buf[head] = LO(cmd); in iforce_send_packet() 66 memcpy(&iforce->xmit.buf[head], in iforce_send_packet() 70 memcpy(&iforce->xmit.buf[0], in iforce_send_packet() 81 iforce->xport_ops->xmit(iforce); in iforce_send_packet()
|
/linux/drivers/tty/serial/ |
A D | sunhv.c | 44 while (!uart_circ_empty(xmit)) { in transmit_chars_putchar() 45 long status = sun4v_con_putchar(xmit->buf[xmit->tail]); in transmit_chars_putchar() 50 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in transmit_chars_putchar() 57 while (!uart_circ_empty(xmit)) { in transmit_chars_write() 58 unsigned long ra = __pa(xmit->buf + xmit->tail); in transmit_chars_write() 61 len = CIRC_CNT_TO_END(xmit->head, xmit->tail, in transmit_chars_write() 66 xmit->tail = (xmit->tail + sent) & (UART_XMIT_SIZE - 1); in transmit_chars_write() 201 struct circ_buf *xmit; in transmit_chars() local 206 xmit = &port->state->xmit; in transmit_chars() 210 sunhv_ops->transmit_chars(port, xmit); in transmit_chars() [all …]
|
A D | sprd_serial.c | 209 struct circ_buf *xmit = &port->state->xmit; in sprd_stop_tx_dma() local 218 xmit->tail = (xmit->tail + trans_len) & (UART_XMIT_SIZE - 1); in sprd_stop_tx_dma() 232 struct circ_buf *xmit = &port->state->xmit; in sprd_tx_buf_remap() local 235 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in sprd_tx_buf_remap() 238 (void *)&(xmit->buf[xmit->tail]), in sprd_tx_buf_remap() 249 struct circ_buf *xmit = &port->state->xmit; in sprd_complete_tx_dma() local 256 xmit->tail = (xmit->tail + sp->tx_dma.trans_len) & (UART_XMIT_SIZE - 1); in sprd_complete_tx_dma() 325 struct circ_buf *xmit = &port->state->xmit; in sprd_start_tx_dma() local 629 struct circ_buf *xmit = &port->state->xmit; in sprd_tx() local 646 serial_out(port, SPRD_TXD, xmit->buf[xmit->tail]); in sprd_tx() [all …]
|
A D | liteuart.c | 129 struct circ_buf *xmit = &port->state->xmit; in liteuart_start_tx() local 136 } else if (!uart_circ_empty(xmit)) { in liteuart_start_tx() 137 while (xmit->head != xmit->tail) { in liteuart_start_tx() 138 ch = xmit->buf[xmit->tail]; in liteuart_start_tx() 139 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in liteuart_start_tx() 145 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in liteuart_start_tx()
|
A D | mux.c | 184 struct circ_buf *xmit = &port->state->xmit; in mux_write() local 193 if(uart_circ_empty(xmit) || uart_tx_stopped(port)) { in mux_write() 200 UART_PUT_CHAR(port, xmit->buf[xmit->tail]); in mux_write() 201 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mux_write() 203 if(uart_circ_empty(xmit)) in mux_write() 211 if(uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in mux_write() 214 if (uart_circ_empty(xmit)) in mux_write()
|
A D | serial-tegra.c | 488 struct circ_buf *xmit = &tup->uport.state->xmit; in tegra_uart_fill_tx_fifo() local 498 tegra_uart_write(tup, xmit->buf[xmit->tail], UART_TX); in tegra_uart_fill_tx_fifo() 499 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in tegra_uart_fill_tx_fifo() 519 struct circ_buf *xmit = &tup->uport.state->xmit; in tegra_uart_tx_dma_complete() local 528 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in tegra_uart_tx_dma_complete() 539 struct circ_buf *xmit = &tup->uport.state->xmit; in tegra_uart_start_tx_dma() local 569 struct circ_buf *xmit = &tup->uport.state->xmit; in tegra_uart_start_next_tx() local 574 tail = (unsigned long)&xmit->buf[xmit->tail]; in tegra_uart_start_next_tx() 591 struct circ_buf *xmit = &u->state->xmit; in tegra_uart_start_tx() local 616 struct circ_buf *xmit = &tup->uport.state->xmit; in tegra_uart_stop_tx() local [all …]
|
A D | timbuart.c | 98 struct circ_buf *xmit = &port->state->xmit; in timbuart_tx_chars() local 101 !uart_circ_empty(xmit)) { in timbuart_tx_chars() 102 iowrite8(xmit->buf[xmit->tail], in timbuart_tx_chars() 104 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in timbuart_tx_chars() 121 struct circ_buf *xmit = &port->state->xmit; in timbuart_handle_tx_port() local 123 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) in timbuart_handle_tx_port() 134 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in timbuart_handle_tx_port() 145 if (!uart_circ_empty(xmit)) in timbuart_handle_tx_port()
|
A D | tegra-tcu.c | 95 struct circ_buf *xmit = &port->state->xmit; in tegra_tcu_uart_start_tx() local 99 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in tegra_tcu_uart_start_tx() 103 tegra_tcu_write(tcu, &xmit->buf[xmit->tail], count); in tegra_tcu_uart_start_tx() 104 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in tegra_tcu_uart_start_tx()
|
A D | 21285.c | 157 struct circ_buf *xmit = &port->state->xmit; in serial21285_tx_chars() local 166 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) { in serial21285_tx_chars() 172 *CSR_UARTDR = xmit->buf[xmit->tail]; in serial21285_tx_chars() 173 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in serial21285_tx_chars() 175 if (uart_circ_empty(xmit)) in serial21285_tx_chars() 179 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in serial21285_tx_chars() 182 if (uart_circ_empty(xmit)) in serial21285_tx_chars()
|
A D | mvebu-uart.c | 194 struct circ_buf *xmit = &port->state->xmit; in mvebu_uart_start_tx() local 196 if (IS_EXTENDED(port) && !uart_circ_empty(xmit)) { in mvebu_uart_start_tx() 197 writel(xmit->buf[xmit->tail], port->membase + UART_TSH(port)); in mvebu_uart_start_tx() 198 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mvebu_uart_start_tx() 299 struct circ_buf *xmit = &port->state->xmit; in mvebu_uart_tx_chars() local 310 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) { in mvebu_uart_tx_chars() 316 writel(xmit->buf[xmit->tail], port->membase + UART_TSH(port)); in mvebu_uart_tx_chars() 317 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mvebu_uart_tx_chars() 320 if (uart_circ_empty(xmit)) in mvebu_uart_tx_chars() 328 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in mvebu_uart_tx_chars() [all …]
|
A D | pch_uart.c | 770 struct circ_buf *xmit = &port->state->xmit; in pch_dma_tx_complete() local 775 xmit->tail += sg_dma_len(sg); in pch_dma_tx_complete() 792 struct circ_buf *xmit = &port->state->xmit; in pop_tx() local 799 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in pop_tx() 801 pch_uart_hal_write(priv, &xmit->buf[xmit->tail], sz); in pop_tx() 802 xmit->tail = (xmit->tail + sz) & (UART_XMIT_SIZE - 1); in pop_tx() 876 struct circ_buf *xmit = &port->state->xmit; in handle_tx() local 892 if (pop_tx_x(priv, xmit->buf)) { in handle_tx() 898 size = min(xmit->head - xmit->tail, fifo_size); in handle_tx() 921 struct circ_buf *xmit = &port->state->xmit; in dma_handle_tx() local [all …]
|
A D | altera_uart.c | 252 struct circ_buf *xmit = &port->state->xmit; in altera_uart_tx_chars() local 264 if (xmit->head == xmit->tail) in altera_uart_tx_chars() 266 altera_uart_writel(port, xmit->buf[xmit->tail], in altera_uart_tx_chars() 268 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in altera_uart_tx_chars() 272 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in altera_uart_tx_chars() 275 if (xmit->head == xmit->tail) { in altera_uart_tx_chars()
|
A D | atmel_serial.c | 824 struct circ_buf *xmit = &port->state->xmit; in atmel_tx_chars() local 837 atmel_uart_write_char(port, xmit->buf[xmit->tail]); in atmel_tx_chars() 838 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in atmel_tx_chars() 867 struct circ_buf *xmit = &port->state->xmit; in atmel_complete_tx_dma() local 932 struct circ_buf *xmit = &port->state->xmit; in atmel_tx_dma() local 954 xmit->tail, in atmel_tx_dma() 1450 struct circ_buf *xmit = &port->state->xmit; in atmel_tx_pdc() local 1458 xmit->tail += pdc->ofs; in atmel_tx_pdc() 1475 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in atmel_tx_pdc() 1501 struct circ_buf *xmit = &port->state->xmit; in atmel_prepare_tx_pdc() local [all …]
|
A D | apbuart.c | 125 struct circ_buf *xmit = &port->state->xmit; in apbuart_tx_chars() local 135 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) { in apbuart_tx_chars() 143 UART_PUT_CHAR(port, xmit->buf[xmit->tail]); in apbuart_tx_chars() 144 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in apbuart_tx_chars() 146 if (uart_circ_empty(xmit)) in apbuart_tx_chars() 150 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in apbuart_tx_chars() 153 if (uart_circ_empty(xmit)) in apbuart_tx_chars()
|
A D | stm32-usart.c | 429 struct circ_buf *xmit = &port->state->xmit; in stm32_usart_transmit_chars_pio() local 440 writel_relaxed(xmit->buf[xmit->tail], port->membase + ofs->tdr); in stm32_usart_transmit_chars_pio() 441 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in stm32_usart_transmit_chars_pio() 446 if (uart_circ_empty(xmit)) in stm32_usart_transmit_chars_pio() 456 struct circ_buf *xmit = &port->state->xmit; in stm32_usart_transmit_chars_dma() local 470 if (xmit->tail < xmit->head) { in stm32_usart_transmit_chars_dma() 471 memcpy(&stm32port->tx_buf[0], &xmit->buf[xmit->tail], count); in stm32_usart_transmit_chars_dma() 480 memcpy(&stm32port->tx_buf[0], &xmit->buf[xmit->tail], one); in stm32_usart_transmit_chars_dma() 509 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in stm32_usart_transmit_chars_dma() 522 struct circ_buf *xmit = &port->state->xmit; in stm32_usart_transmit_chars() local [all …]
|
A D | mcf.c | 330 struct circ_buf *xmit = &port->state->xmit; in mcf_tx_chars() local 341 if (xmit->head == xmit->tail) in mcf_tx_chars() 343 writeb(xmit->buf[xmit->tail], port->membase + MCFUART_UTB); in mcf_tx_chars() 344 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE -1); in mcf_tx_chars() 348 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in mcf_tx_chars() 351 if (xmit->head == xmit->tail) { in mcf_tx_chars()
|
A D | men_z135_uart.c | 296 struct circ_buf *xmit = &port->state->xmit; in men_z135_handle_tx() local 306 if (uart_circ_empty(xmit)) in men_z135_handle_tx() 316 qlen = uart_circ_chars_pending(xmit); in men_z135_handle_tx() 348 head = xmit->head & (UART_XMIT_SIZE - 1); in men_z135_handle_tx() 349 tail = xmit->tail & (UART_XMIT_SIZE - 1); in men_z135_handle_tx() 354 memcpy_toio(port->membase + MEN_Z135_TX_RAM, &xmit->buf[xmit->tail], n); in men_z135_handle_tx() 355 xmit->tail = (xmit->tail + n) & (UART_XMIT_SIZE - 1); in men_z135_handle_tx() 361 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in men_z135_handle_tx() 365 if (!uart_circ_empty(xmit)) in men_z135_handle_tx()
|
A D | st-asc.c | 241 struct circ_buf *xmit = &port->state->xmit; in asc_transmit_chars() local 264 if (uart_circ_empty(xmit)) { in asc_transmit_chars() 273 c = xmit->buf[xmit->tail]; in asc_transmit_chars() 274 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in asc_transmit_chars() 278 } while ((txroom > 0) && (!uart_circ_empty(xmit))); in asc_transmit_chars() 280 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in asc_transmit_chars() 283 if (uart_circ_empty(xmit)) in asc_transmit_chars() 429 struct circ_buf *xmit = &port->state->xmit; in asc_start_tx() local 431 if (!uart_circ_empty(xmit)) in asc_start_tx()
|
/linux/drivers/media/pci/bt8xx/ |
A D | bttv-i2c.c | 127 u32 xmit; in bttv_i2c_sendbytes() local 137 xmit |= BT878_I2C_NOSTOP; in bttv_i2c_sendbytes() 138 btwrite(xmit, BT848_I2C); in bttv_i2c_sendbytes() 152 xmit |= BT878_I2C_NOSTOP; in bttv_i2c_sendbytes() 153 btwrite(xmit, BT848_I2C); in bttv_i2c_sendbytes() 177 u32 xmit; in bttv_i2c_readbytes() local 184 xmit |= BT848_I2C_W3B; in bttv_i2c_readbytes() 186 xmit |= BT878_I2C_NOSTOP; in bttv_i2c_readbytes() 188 xmit |= BT878_I2C_NOSTART; in bttv_i2c_readbytes() 191 if (!(xmit & BT878_I2C_NOSTART)) in bttv_i2c_readbytes() [all …]
|
/linux/net/sched/ |
A D | sch_frag.c | 17 int (*xmit)(struct sk_buff *skb); member 46 return data->xmit(skb); in sch_frag_xmit() 50 int (*xmit)(struct sk_buff *skb)) in sch_frag_prepare_frag() 58 data->xmit = xmit; in sch_frag_prepare_frag() 84 u16 mru, int (*xmit)(struct sk_buff *skb)) in sch_fragment() 97 sch_frag_prepare_frag(skb, xmit); in sch_fragment() 112 sch_frag_prepare_frag(skb, xmit); in sch_fragment() 139 int sch_frag_xmit_hook(struct sk_buff *skb, int (*xmit)(struct sk_buff *skb)) in sch_frag_xmit_hook() 145 err = sch_fragment(dev_net(skb->dev), skb, mru, xmit); in sch_frag_xmit_hook() 147 err = xmit(skb); in sch_frag_xmit_hook()
|
/linux/drivers/tty/ |
A D | amiserial.c | 155 if (info->xmit.head != info->xmit.tail in rs_start() 275 if (info->xmit.head == info->xmit.tail in transmit_chars() 286 info->xmit.tail = info->xmit.tail & (SERIAL_XMIT_SIZE-1); in transmit_chars() 297 if (info->xmit.head == info->xmit.tail) { in transmit_chars() 497 info->xmit.head = info->xmit.tail = 0; in startup() 720 info->xmit.buf[info->xmit.head++] = ch; in rs_put_char() 731 if (info->xmit.head == info->xmit.tail in rs_flush_chars() 766 memcpy(info->xmit.buf + info->xmit.head, buf, c); in rs_write() 767 info->xmit.head = ((info->xmit.head + c) & in rs_write() 775 if (info->xmit.head != info->xmit.tail in rs_write() [all …]
|
/linux/samples/bpf/ |
A D | test_lwt_bpf.sh | 142 install_test xmit test_ctx 153 remove_prog xmit 295 install_test xmit push_ll_and_redirect 303 remove_prog xmit 316 remove_prog xmit 321 install_test xmit test_rewrite 334 install_test xmit fill_garbage 342 remove_prog xmit 347 install_test xmit nop 352 remove_prog xmit [all …]
|
/linux/drivers/tty/serial/8250/ |
A D | 8250_dma.c | 18 struct circ_buf *xmit = &p->port.state->xmit; in __dma_tx_complete() local 29 xmit->tail += dma->tx_size; in __dma_tx_complete() 30 xmit->tail &= UART_XMIT_SIZE - 1; in __dma_tx_complete() 33 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in __dma_tx_complete() 65 struct circ_buf *xmit = &p->port.state->xmit; in serial8250_tx_dma() local 72 if (uart_tx_stopped(&p->port) || uart_circ_empty(xmit)) { in serial8250_tx_dma() 78 dma->tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in serial8250_tx_dma() 81 dma->tx_addr + xmit->tail, in serial8250_tx_dma() 221 p->port.state->xmit.buf, in serial8250_request_dma()
|