/Linux-v5.10/drivers/input/joystick/iforce/ |
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,
|
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,
|
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-v5.10/drivers/tty/serial/ |
D | sunhv.c | 42 static void transmit_chars_putchar(struct uart_port *port, struct circ_buf *xmit) in transmit_chars_putchar() argument 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() 55 static void transmit_chars_write(struct uart_port *port, struct circ_buf *xmit) in transmit_chars_write() argument 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() 170 void (*transmit_chars)(struct uart_port *port, struct circ_buf *xmit); [all …]
|
D | sirfsoc_uart.c | 180 struct circ_buf *xmit = &port->state->xmit; in sirfsoc_uart_tx_with_dma() local 185 tran_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in sirfsoc_uart_tx_with_dma() 186 tran_start = (unsigned long)(xmit->buf + xmit->tail); in sirfsoc_uart_tx_with_dma() 187 if (uart_circ_empty(xmit) || uart_tx_stopped(port) || in sirfsoc_uart_tx_with_dma() 241 xmit->buf + xmit->tail, in sirfsoc_uart_tx_with_dma() 426 struct circ_buf *xmit = &port->state->xmit; in sirfsoc_uart_pio_tx_chars() local 428 while (!uart_circ_empty(xmit) && in sirfsoc_uart_pio_tx_chars() 433 xmit->buf[xmit->tail]); in sirfsoc_uart_pio_tx_chars() 434 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sirfsoc_uart_pio_tx_chars() 438 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in sirfsoc_uart_pio_tx_chars() [all …]
|
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()
|
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() 259 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in sprd_complete_tx_dma() 262 if (uart_circ_empty(xmit) || sprd_tx_buf_remap(port) || in sprd_complete_tx_dma() 325 struct circ_buf *xmit = &port->state->xmit; in sprd_start_tx_dma() local [all …]
|
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()
|
D | timbuart.c | 100 struct circ_buf *xmit = &port->state->xmit; in timbuart_tx_chars() local 103 !uart_circ_empty(xmit)) { in timbuart_tx_chars() 104 iowrite8(xmit->buf[xmit->tail], in timbuart_tx_chars() 106 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in timbuart_tx_chars() 123 struct circ_buf *xmit = &port->state->xmit; in timbuart_handle_tx_port() local 125 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) in timbuart_handle_tx_port() 136 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in timbuart_handle_tx_port() 147 if (!uart_circ_empty(xmit)) in timbuart_handle_tx_port()
|
D | serial-tegra.c | 483 struct circ_buf *xmit = &tup->uport.state->xmit; in tegra_uart_fill_tx_fifo() local 487 BUG_ON(uart_circ_empty(xmit)); in tegra_uart_fill_tx_fifo() 493 tegra_uart_write(tup, xmit->buf[xmit->tail], UART_TX); in tegra_uart_fill_tx_fifo() 494 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in tegra_uart_fill_tx_fifo() 514 struct circ_buf *xmit = &tup->uport.state->xmit; in tegra_uart_tx_dma_complete() local 523 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in tegra_uart_tx_dma_complete() 525 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in tegra_uart_tx_dma_complete() 534 struct circ_buf *xmit = &tup->uport.state->xmit; in tegra_uart_start_tx_dma() local 538 tx_phys_addr = tup->tx_dma_buf_phys + xmit->tail; in tegra_uart_start_tx_dma() 564 struct circ_buf *xmit = &tup->uport.state->xmit; in tegra_uart_start_next_tx() local [all …]
|
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()
|
D | stm32-usart.c | 324 struct circ_buf *xmit = &port->state->xmit; in stm32_transmit_chars_pio() local 331 while (!uart_circ_empty(xmit)) { in stm32_transmit_chars_pio() 335 writel_relaxed(xmit->buf[xmit->tail], port->membase + ofs->tdr); in stm32_transmit_chars_pio() 336 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in stm32_transmit_chars_pio() 341 if (uart_circ_empty(xmit)) in stm32_transmit_chars_pio() 351 struct circ_buf *xmit = &port->state->xmit; in stm32_transmit_chars_dma() local 361 count = uart_circ_chars_pending(xmit); in stm32_transmit_chars_dma() 366 if (xmit->tail < xmit->head) { in stm32_transmit_chars_dma() 367 memcpy(&stm32port->tx_buf[0], &xmit->buf[xmit->tail], count); in stm32_transmit_chars_dma() 369 size_t one = UART_XMIT_SIZE - xmit->tail; in stm32_transmit_chars_dma() [all …]
|
D | mvebu-uart.c | 195 struct circ_buf *xmit = &port->state->xmit; in mvebu_uart_start_tx() local 197 if (IS_EXTENDED(port) && !uart_circ_empty(xmit)) { in mvebu_uart_start_tx() 198 writel(xmit->buf[xmit->tail], port->membase + UART_TSH(port)); in mvebu_uart_start_tx() 199 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mvebu_uart_start_tx() 300 struct circ_buf *xmit = &port->state->xmit; in mvebu_uart_tx_chars() local 311 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) { in mvebu_uart_tx_chars() 317 writel(xmit->buf[xmit->tail], port->membase + UART_TSH(port)); in mvebu_uart_tx_chars() 318 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mvebu_uart_tx_chars() 321 if (uart_circ_empty(xmit)) in mvebu_uart_tx_chars() 329 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in mvebu_uart_tx_chars() [all …]
|
D | pch_uart.c | 774 struct circ_buf *xmit = &port->state->xmit; in pch_dma_tx_complete() local 779 xmit->tail += sg_dma_len(sg); in pch_dma_tx_complete() 782 xmit->tail &= UART_XMIT_SIZE - 1; in pch_dma_tx_complete() 796 struct circ_buf *xmit = &port->state->xmit; in pop_tx() local 798 if (uart_tx_stopped(port) || uart_circ_empty(xmit) || count >= size) in pop_tx() 803 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in pop_tx() 805 pch_uart_hal_write(priv, &xmit->buf[xmit->tail], sz); in pop_tx() 806 xmit->tail = (xmit->tail + sz) & (UART_XMIT_SIZE - 1); in pop_tx() 808 } while (!uart_circ_empty(xmit) && count < size); in pop_tx() 880 struct circ_buf *xmit = &port->state->xmit; in handle_tx() local [all …]
|
D | apbuart.c | 127 struct circ_buf *xmit = &port->state->xmit; in apbuart_tx_chars() local 137 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) { in apbuart_tx_chars() 145 UART_PUT_CHAR(port, xmit->buf[xmit->tail]); in apbuart_tx_chars() 146 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in apbuart_tx_chars() 148 if (uart_circ_empty(xmit)) in apbuart_tx_chars() 152 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in apbuart_tx_chars() 155 if (uart_circ_empty(xmit)) in apbuart_tx_chars()
|
D | altera_uart.c | 254 struct circ_buf *xmit = &port->state->xmit; in altera_uart_tx_chars() local 266 if (xmit->head == xmit->tail) in altera_uart_tx_chars() 268 altera_uart_writel(port, xmit->buf[xmit->tail], in altera_uart_tx_chars() 270 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in altera_uart_tx_chars() 274 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in altera_uart_tx_chars() 277 if (xmit->head == xmit->tail) { in altera_uart_tx_chars()
|
D | atmel_serial.c | 824 struct circ_buf *xmit = &port->state->xmit; in atmel_tx_chars() local 833 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) in atmel_tx_chars() 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() 840 if (uart_circ_empty(xmit)) in atmel_tx_chars() 844 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in atmel_tx_chars() 847 if (!uart_circ_empty(xmit)) { in atmel_tx_chars() 867 struct circ_buf *xmit = &port->state->xmit; in atmel_complete_tx_dma() local 875 xmit->tail += atmel_port->tx_len; in atmel_complete_tx_dma() 876 xmit->tail &= UART_XMIT_SIZE - 1; in atmel_complete_tx_dma() [all …]
|
D | mcf.c | 332 struct circ_buf *xmit = &port->state->xmit; in mcf_tx_chars() local 343 if (xmit->head == xmit->tail) in mcf_tx_chars() 345 writeb(xmit->buf[xmit->tail], port->membase + MCFUART_UTB); in mcf_tx_chars() 346 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE -1); in mcf_tx_chars() 350 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in mcf_tx_chars() 353 if (xmit->head == xmit->tail) { in mcf_tx_chars()
|
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()
|
D | fsl_linflexuart.c | 162 struct circ_buf *xmit = &sport->state->xmit; in linflex_transmit_buffer() local 166 while (!uart_circ_empty(xmit)) { in linflex_transmit_buffer() 167 c = xmit->buf[xmit->tail]; in linflex_transmit_buffer() 176 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in linflex_transmit_buffer() 183 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in linflex_transmit_buffer() 186 if (uart_circ_empty(xmit)) in linflex_transmit_buffer() 202 struct circ_buf *xmit = &sport->state->xmit; in linflex_txint() local 222 if (uart_circ_empty(xmit) || uart_tx_stopped(sport)) { in linflex_txint() 229 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in linflex_txint()
|
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-v5.10/drivers/media/pci/bt8xx/ |
D | bttv-i2c.c | 127 u32 xmit; in bttv_i2c_sendbytes() local 135 xmit = (msg->addr << 25) | (msg->buf[0] << 16) | I2C_HW; in bttv_i2c_sendbytes() 137 xmit |= BT878_I2C_NOSTOP; in bttv_i2c_sendbytes() 138 btwrite(xmit, BT848_I2C); in bttv_i2c_sendbytes() 150 xmit = (msg->buf[cnt] << 24) | I2C_HW | BT878_I2C_NOSTART; in bttv_i2c_sendbytes() 152 xmit |= BT878_I2C_NOSTOP; in bttv_i2c_sendbytes() 153 btwrite(xmit, BT848_I2C); in bttv_i2c_sendbytes() 162 if (i2c_debug && !(xmit & BT878_I2C_NOSTOP)) in bttv_i2c_sendbytes() 177 u32 xmit; in bttv_i2c_readbytes() local 182 xmit = (msg->addr << 25) | (1 << 24) | I2C_HW; in bttv_i2c_readbytes() [all …]
|
/Linux-v5.10/samples/bpf/ |
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 308 install_test xmit fill_garbage_and_redirect 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 [all …]
|
/Linux-v5.10/drivers/tty/ |
D | amiserial.c | 86 struct circ_buf xmit; member 178 if (info->xmit.head != info->xmit.tail in rs_start() 179 && info->xmit.buf in rs_start() 311 if (info->xmit.head == info->xmit.tail in transmit_chars() 320 custom.serdat = info->xmit.buf[info->xmit.tail++] | 0x100; in transmit_chars() 322 info->xmit.tail = info->xmit.tail & (SERIAL_XMIT_SIZE-1); in transmit_chars() 325 if (CIRC_CNT(info->xmit.head, in transmit_chars() 326 info->xmit.tail, in transmit_chars() 333 if (info->xmit.head == info->xmit.tail) { in transmit_chars() 496 if (info->xmit.buf) in startup() [all …]
|
/Linux-v5.10/drivers/tty/serial/8250/ |
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()
|