Home
last modified time | relevance | path

Searched refs:xmit (Results 1 – 25 of 167) sorted by relevance

1234567

/openbmc/linux/drivers/input/joystick/iforce/
H A Diforce-serio.c41 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,
H A Diforce-usb.c32 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,
H A Diforce-packets.c41 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()
/openbmc/linux/net/sched/
H A Dsch_frag.c18 int (*xmit)(struct sk_buff *skb); member
47 return data->xmit(skb); in sch_frag_xmit()
51 int (*xmit)(struct sk_buff *skb)) in sch_frag_prepare_frag()
59 data->xmit = xmit; in sch_frag_prepare_frag()
85 u16 mru, int (*xmit)(struct sk_buff *skb)) in sch_fragment()
98 sch_frag_prepare_frag(skb, xmit); in sch_fragment()
113 sch_frag_prepare_frag(skb, xmit); in sch_fragment()
140 int sch_frag_xmit_hook(struct sk_buff *skb, int (*xmit)(struct sk_buff *skb)) in sch_frag_xmit_hook()
146 err = sch_fragment(dev_net(skb->dev), skb, mru, xmit); in sch_frag_xmit_hook()
148 err = xmit(skb); in sch_frag_xmit_hook()
/openbmc/linux/drivers/media/pci/bt8xx/
H A Dbttv-i2c.c127 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 …]
/openbmc/linux/samples/bpf/
H A Dtest_lwt_bpf.sh145 install_test xmit test_ctx
156 remove_prog xmit
298 install_test xmit push_ll_and_redirect
306 remove_prog xmit
319 remove_prog xmit
324 install_test xmit test_rewrite
337 install_test xmit fill_garbage
345 remove_prog xmit
350 install_test xmit nop
355 remove_prog xmit
[all …]
/openbmc/linux/drivers/tty/
H A Damiserial.c156 if (info->xmit.head != info->xmit.tail in rs_start()
276 if (info->xmit.head == info->xmit.tail in transmit_chars()
285 amiga_custom.serdat = info->xmit.buf[info->xmit.tail++] | 0x100; in transmit_chars()
287 info->xmit.tail = info->xmit.tail & (UART_XMIT_SIZE - 1); in transmit_chars()
298 if (info->xmit.head == info->xmit.tail) { in transmit_chars()
498 info->xmit.head = info->xmit.tail = 0; in startup()
717 info->xmit.buf[info->xmit.head++] = ch; in rs_put_char()
728 if (info->xmit.head == info->xmit.tail in rs_flush_chars()
763 memcpy(info->xmit.buf + info->xmit.head, buf, c); in rs_write()
771 if (info->xmit.head != info->xmit.tail in rs_write()
[all …]
/openbmc/linux/drivers/tty/serial/
H A Dsunhv.c44 while (!uart_circ_empty(xmit)) { in transmit_chars_putchar()
45 long status = sun4v_con_putchar(xmit->buf[xmit->tail]); in transmit_chars_putchar()
56 while (!uart_circ_empty(xmit)) { in transmit_chars_write()
57 unsigned long ra = __pa(xmit->buf + xmit->tail); in transmit_chars_write()
60 len = CIRC_CNT_TO_END(xmit->head, xmit->tail, in transmit_chars_write()
168 void (*transmit_chars)(struct uart_port *port, struct circ_buf *xmit);
199 struct circ_buf *xmit; in transmit_chars() local
204 xmit = &port->state->xmit; in transmit_chars()
205 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) in transmit_chars()
208 sunhv_ops->transmit_chars(port, xmit); in transmit_chars()
[all …]
H A Dtimbuart.c98 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()
120 struct circ_buf *xmit = &port->state->xmit; in timbuart_handle_tx_port() local
122 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) in timbuart_handle_tx_port()
133 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in timbuart_handle_tx_port()
144 if (!uart_circ_empty(xmit)) in timbuart_handle_tx_port()
H A Dtegra-tcu.c94 struct circ_buf *xmit = &port->state->xmit; in tegra_tcu_uart_start_tx() local
98 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in tegra_tcu_uart_start_tx()
102 tegra_tcu_write(tcu, &xmit->buf[xmit->tail], count); in tegra_tcu_uart_start_tx()
H A Dserial-tegra.c487 struct circ_buf *xmit = &tup->uport.state->xmit; in tegra_uart_fill_tx_fifo() local
491 BUG_ON(uart_circ_empty(xmit)); in tegra_uart_fill_tx_fifo()
497 tegra_uart_write(tup, xmit->buf[xmit->tail], UART_TX); in tegra_uart_fill_tx_fifo()
517 struct circ_buf *xmit = &tup->uport.state->xmit; in tegra_uart_tx_dma_complete() local
537 struct circ_buf *xmit = &tup->uport.state->xmit; in tegra_uart_start_tx_dma() local
567 struct circ_buf *xmit = &tup->uport.state->xmit; in tegra_uart_start_next_tx() local
572 tail = (unsigned long)&xmit->buf[xmit->tail]; in tegra_uart_start_next_tx()
573 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in tegra_uart_start_next_tx()
589 struct circ_buf *xmit = &u->state->xmit; in tegra_uart_start_tx() local
631 struct circ_buf *xmit = &tup->uport.state->xmit; in tegra_uart_handle_tx_pio() local
[all …]
H A Dicom.c224 } xmit[NUM_XBUFFS]; member
483 icom_port->statStg->xmit[index].leLengthASD = in get_port_memory()
488 icom_port->statStg->xmit[index].leBuffer = in get_port_memory()
496 icom_port->statStg->xmit[index].leBuffer = in get_port_memory()
883 int temp_tail = port->state->xmit.tail; in icom_write()
898 port->state->xmit.buf[temp_tail]; in icom_write()
905 icom_port->statStg->xmit[0].flags = in icom_write()
907 icom_port->statStg->xmit[0].leLength = in icom_write()
965 icom_port->statStg->xmit[0].flags &= in xmit_interrupt()
974 icom_port->uart_port.state->xmit.tail++; in xmit_interrupt()
[all …]
H A Dmen_z135_uart.c296 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()
358 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in men_z135_handle_tx()
362 if (!uart_circ_empty(xmit)) in men_z135_handle_tx()
H A Dstm32-usart.c695 struct circ_buf *xmit = &port->state->xmit; in stm32_usart_transmit_chars_pio() local
697 while (!uart_circ_empty(xmit)) { in stm32_usart_transmit_chars_pio()
701 writel_relaxed(xmit->buf[xmit->tail], port->membase + ofs->tdr); in stm32_usart_transmit_chars_pio()
706 if (uart_circ_empty(xmit)) in stm32_usart_transmit_chars_pio()
715 struct circ_buf *xmit = &port->state->xmit; in stm32_usart_transmit_chars_dma() local
732 if (xmit->tail < xmit->head) { in stm32_usart_transmit_chars_dma()
733 memcpy(&stm32port->tx_buf[0], &xmit->buf[xmit->tail], count); in stm32_usart_transmit_chars_dma()
742 memcpy(&stm32port->tx_buf[0], &xmit->buf[xmit->tail], one); in stm32_usart_transmit_chars_dma()
791 struct circ_buf *xmit = &port->state->xmit; in stm32_usart_transmit_chars() local
843 if (uart_circ_empty(xmit)) { in stm32_usart_transmit_chars()
[all …]
H A Dfsl_linflexuart.c177 struct circ_buf *xmit = &sport->state->xmit; in linflex_transmit_buffer() local
179 while (!uart_circ_empty(xmit)) { in linflex_transmit_buffer()
180 linflex_put_char(sport, xmit->buf[xmit->tail]); in linflex_transmit_buffer()
184 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in linflex_transmit_buffer()
187 if (uart_circ_empty(xmit)) in linflex_transmit_buffer()
203 struct circ_buf *xmit = &sport->state->xmit; in linflex_txint() local
213 if (uart_circ_empty(xmit) || uart_tx_stopped(sport)) { in linflex_txint()
H A Ddigicolor-usart.c182 struct circ_buf *xmit = &port->state->xmit; in digicolor_uart_tx() local
197 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) { in digicolor_uart_tx()
202 while (!uart_circ_empty(xmit)) { in digicolor_uart_tx()
203 writeb(xmit->buf[xmit->tail], port->membase + UA_EMI_REC); in digicolor_uart_tx()
210 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in digicolor_uart_tx()
H A Dclps711x.c149 struct circ_buf *xmit = &port->state->xmit; in uart_clps711x_int_tx() local
158 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) { in uart_clps711x_int_tx()
166 while (!uart_circ_empty(xmit)) { in uart_clps711x_int_tx()
169 writew(xmit->buf[xmit->tail], port->membase + UARTDR_OFFSET); in uart_clps711x_int_tx()
177 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in uart_clps711x_int_tx()
H A Dmsm_serial.c440 struct circ_buf *xmit = &port->state->xmit; in msm_complete_tx_dma() local
474 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in msm_complete_tx_dma()
484 struct circ_buf *xmit = &msm_port->uart.state->xmit; in msm_handle_tx_dma() local
491 cpu_addr = &xmit->buf[xmit->tail]; in msm_handle_tx_dma()
839 struct circ_buf *xmit = &port->state->xmit; in msm_handle_tx_pio() local
867 buf[i] = xmit->buf[xmit->tail + i]; in msm_handle_tx_pio()
875 if (uart_circ_empty(xmit)) in msm_handle_tx_pio()
878 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in msm_handle_tx_pio()
885 struct circ_buf *xmit = &msm_port->uart.state->xmit; in msm_handle_tx() local
914 pio_count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in msm_handle_tx()
[all …]
H A Dqcom_geni_serial.c520 if (!uart_circ_empty(&uport->state->xmit)) { in qcom_geni_serial_console_write()
634 struct circ_buf *xmit = &uport->state->xmit; in qcom_geni_serial_start_tx_dma() local
641 if (uart_circ_empty(xmit)) in qcom_geni_serial_start_tx_dma()
644 xmit_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in qcom_geni_serial_start_tx_dma()
648 ret = geni_se_tx_dma_prep(&port->se, &xmit->buf[xmit->tail], in qcom_geni_serial_start_tx_dma()
877 struct circ_buf *xmit = &uport->state->xmit; in qcom_geni_serial_send_chunk_fifo() local
886 buf[c] = xmit->buf[xmit->tail]; in qcom_geni_serial_send_chunk_fifo()
901 struct circ_buf *xmit = &uport->state->xmit; in qcom_geni_serial_handle_tx_fifo() local
914 pending = uart_circ_chars_pending(xmit); in qcom_geni_serial_handle_tx_fifo()
964 struct circ_buf *xmit = &uport->state->xmit; in qcom_geni_serial_handle_tx_dma() local
[all …]
H A Dsunsab.c235 struct circ_buf *xmit = &up->port.state->xmit; in transmit_chars() local
255 if (uart_circ_empty(xmit) || uart_tx_stopped(&up->port)) { in transmit_chars()
268 writeb(xmit->buf[xmit->tail], in transmit_chars()
271 if (uart_circ_empty(xmit)) in transmit_chars()
279 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in transmit_chars()
282 if (uart_circ_empty(xmit)) in transmit_chars()
438 struct circ_buf *xmit = &up->port.state->xmit; in sunsab_start_tx() local
441 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) in sunsab_start_tx()
454 writeb(xmit->buf[xmit->tail], in sunsab_start_tx()
457 if (uart_circ_empty(xmit)) in sunsab_start_tx()
H A Dimx.c532 struct circ_buf *xmit = &sport->port.state->xmit; in imx_uart_transmit_buffer() local
566 while (!uart_circ_empty(xmit) && in imx_uart_transmit_buffer()
570 imx_uart_writel(sport, xmit->buf[xmit->tail], URTX0); in imx_uart_transmit_buffer()
577 if (uart_circ_empty(xmit)) in imx_uart_transmit_buffer()
585 struct circ_buf *xmit = &sport->port.state->xmit; in imx_uart_dma_tx_callback() local
620 struct circ_buf *xmit = &sport->port.state->xmit; in imx_uart_dma_tx() local
637 if (xmit->tail < xmit->head || xmit->head == 0) { in imx_uart_dma_tx()
639 sg_init_one(sgl, xmit->buf + xmit->tail, sport->tx_bytes); in imx_uart_dma_tx()
643 sg_set_buf(sgl, xmit->buf + xmit->tail, in imx_uart_dma_tx()
644 UART_XMIT_SIZE - xmit->tail); in imx_uart_dma_tx()
[all …]
H A Dip22zilog.c358 struct circ_buf *xmit; in ip22zilog_transmit_chars() local
401 xmit = &up->port.state->xmit; in ip22zilog_transmit_chars()
402 if (uart_circ_empty(xmit)) in ip22zilog_transmit_chars()
408 writeb(xmit->buf[xmit->tail], &channel->data); in ip22zilog_transmit_chars()
414 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in ip22zilog_transmit_chars()
603 struct circ_buf *xmit = &port->state->xmit; in ip22zilog_start_tx() local
605 if (uart_circ_empty(xmit)) in ip22zilog_start_tx()
607 writeb(xmit->buf[xmit->tail], &channel->data); in ip22zilog_start_tx()
613 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in ip22zilog_start_tx()
/openbmc/linux/drivers/tty/serial/8250/
H A D8250_dma.c18 struct circ_buf *xmit = &p->port.state->xmit; in __dma_tx_complete() local
31 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in __dma_tx_complete()
89 struct circ_buf *xmit = &p->port.state->xmit; in serial8250_tx_dma() local
105 if (uart_tx_stopped(&p->port) || uart_circ_empty(xmit)) { in serial8250_tx_dma()
110 dma->tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in serial8250_tx_dma()
115 dma->tx_addr + xmit->tail, in serial8250_tx_dma()
256 p->port.state->xmit.buf, in serial8250_request_dma()
/openbmc/linux/include/linux/
H A Dserial_core.h700 struct circ_buf xmit; member
724 struct circ_buf *xmit = &up->state->xmit; in uart_xmit_advance() local
726 xmit->tail = (xmit->tail + chars) & (UART_XMIT_SIZE - 1); in uart_xmit_advance()
765 struct circ_buf *xmit = &__port->state->xmit; \
776 if (uart_circ_empty(xmit) || uart_tx_stopped(__port)) \
779 (ch) = xmit->buf[xmit->tail]; \
781 xmit->tail = (xmit->tail + 1) % UART_XMIT_SIZE; \
786 pending = uart_circ_chars_pending(xmit); \
/openbmc/linux/net/core/
H A Dlwt_bpf.c24 struct bpf_lwt_prog xmit; member
273 if (bpf->xmit.prog) { in bpf_xmit()
278 ret = run_lwt_bpf(skb, &bpf->xmit, dst, CAN_REDIRECT); in bpf_xmit()
323 bpf_lwt_prog_destroy(&bpf->xmit); in bpf_destroy_state()
415 ret = bpf_parse_prog(tb[LWT_BPF_XMIT], &bpf->xmit, in bpf_build_state()
468 bpf_fill_lwt_prog(skb, LWT_BPF_XMIT, &bpf->xmit) < 0) in bpf_fill_encap_info()
508 bpf_lwt_prog_cmp(&a_bpf->xmit, &b_bpf->xmit); in bpf_encap_cmp()
516 .xmit = bpf_xmit,

1234567