Home
last modified time | relevance | path

Searched refs:tx_state (Results 1 – 25 of 51) sorted by relevance

123

/openbmc/linux/drivers/bluetooth/
H A Dbluecard_cs.c73 unsigned long tx_state; member
228 set_bit(XMIT_WAKEUP, &(info->tx_state)); in bluecard_write_wakeup()
240 clear_bit(XMIT_WAKEUP, &(info->tx_state)); in bluecard_write_wakeup()
279 clear_bit(ready_bit, &(info->tx_state)); in bluecard_write_wakeup()
329 change_bit(XMIT_BUFFER_NUMBER, &(info->tx_state)); in bluecard_write_wakeup()
333 clear_bit(XMIT_SENDING, &(info->tx_state)); in bluecard_write_wakeup()
532 set_bit(XMIT_BUF_ONE_READY, &(info->tx_state)); in bluecard_interrupt()
538 set_bit(XMIT_BUF_TWO_READY, &(info->tx_state)); in bluecard_interrupt()
760 set_bit(XMIT_BUF_ONE_READY, &(info->tx_state)); in bluecard_open()
761 set_bit(XMIT_BUF_TWO_READY, &(info->tx_state)); in bluecard_open()
[all …]
H A Ddtl1_cs.c76 unsigned long tx_state; member
136 if (test_bit(XMIT_WAITING, &(info->tx_state))) { in dtl1_write_wakeup()
137 set_bit(XMIT_WAKEUP, &(info->tx_state)); in dtl1_write_wakeup()
142 set_bit(XMIT_WAKEUP, &(info->tx_state)); in dtl1_write_wakeup()
151 clear_bit(XMIT_WAKEUP, &(info->tx_state)); in dtl1_write_wakeup()
164 set_bit(XMIT_WAITING, &(info->tx_state)); in dtl1_write_wakeup()
173 } while (test_bit(XMIT_WAKEUP, &(info->tx_state))); in dtl1_write_wakeup()
175 clear_bit(XMIT_SENDING, &(info->tx_state)); in dtl1_write_wakeup()
192 clear_bit(XMIT_WAITING, &(info->tx_state)); in dtl1_control()
344 clear_bit(XMIT_WAITING, &(info->tx_state)); in dtl1_interrupt()
[all …]
H A Dbtmtksdio.c134 unsigned long tx_state; member
172 set_bit(BTMTKSDIO_TX_WAIT_VND_EVT, &bdev->tx_state); in mtk_hci_wmt_sync()
176 clear_bit(BTMTKSDIO_TX_WAIT_VND_EVT, &bdev->tx_state); in mtk_hci_wmt_sync()
278 clear_bit(BTMTKSDIO_HW_TX_READY, &bdev->tx_state); in btmtksdio_tx_packet()
402 &bdev->tx_state)) { in btmtksdio_recv_event()
586 set_bit(BTMTKSDIO_HW_TX_READY, &bdev->tx_state); in btmtksdio_txrx_work()
641 set_bit(BTMTKSDIO_FUNC_ENABLED, &bdev->tx_state); in btmtksdio_open()
728 clear_bit(BTMTKSDIO_FUNC_ENABLED, &bdev->tx_state); in btmtksdio_close()
832 set_bit(BTMTKSDIO_PATCH_ENABLED, &bdev->tx_state); in mt76xx_setup()
890 set_bit(BTMTKSDIO_PATCH_ENABLED, &bdev->tx_state); in mt79xx_setup()
[all …]
H A Dbtmtkuart.c70 unsigned long tx_state; member
119 set_bit(BTMTKUART_TX_WAIT_VND_EVT, &bdev->tx_state); in mtk_hci_wmt_sync()
123 clear_bit(BTMTKUART_TX_WAIT_VND_EVT, &bdev->tx_state); in mtk_hci_wmt_sync()
140 clear_bit(BTMTKUART_TX_WAIT_VND_EVT, &bdev->tx_state); in mtk_hci_wmt_sync()
146 clear_bit(BTMTKUART_TX_WAIT_VND_EVT, &bdev->tx_state); in mtk_hci_wmt_sync()
213 &bdev->tx_state)) { in btmtkuart_recv_event()
244 clear_bit(BTMTKUART_TX_STATE_WAKEUP, &bdev->tx_state); in btmtkuart_tx_work()
282 clear_bit(BTMTKUART_TX_STATE_ACTIVE, &bdev->tx_state); in btmtkuart_tx_work()
288 set_bit(BTMTKUART_TX_STATE_WAKEUP, &bdev->tx_state); in btmtkuart_tx_wakeup()
616 clear_bit(BTMTKUART_REQUIRED_WAKEUP, &bdev->tx_state); in btmtkuart_setup()
[all …]
H A Dbtnxpuart.c155 unsigned long tx_state; member
326 set_bit(BTNXPUART_TX_STATE_ACTIVE, &nxpdev->tx_state); in btnxpuart_tx_wakeup()
359 !test_bit(BTNXPUART_SERDEV_OPEN, &nxpdev->tx_state)) in ps_control()
601 &nxpdev->tx_state), in nxp_download_firmware()
1015 clear_bit(BTNXPUART_FW_DOWNLOADING, &nxpdev->tx_state); in nxp_recv_fw_req_v3()
1081 &nxpdev->tx_state), in nxp_check_boot_sign()
1140 set_bit(BTNXPUART_IR_IN_PROGRESS, &nxpdev->tx_state); in nxp_hw_err()
1163 set_bit(BTNXPUART_FW_DOWNLOADING, &nxpdev->tx_state); in nxp_shutdown()
1318 set_bit(BTNXPUART_SERDEV_OPEN, &nxpdev->tx_state); in btnxpuart_open()
1333 clear_bit(BTNXPUART_SERDEV_OPEN, &nxpdev->tx_state); in btnxpuart_close()
[all …]
H A Dhci_ldisc.c130 set_bit(HCI_UART_TX_WAKEUP, &hu->tx_state); in hci_uart_tx_wakeup()
131 if (test_and_set_bit(HCI_UART_SENDING, &hu->tx_state)) in hci_uart_tx_wakeup()
157 clear_bit(HCI_UART_TX_WAKEUP, &hu->tx_state); in hci_uart_write_work()
176 clear_bit(HCI_UART_SENDING, &hu->tx_state); in hci_uart_write_work()
177 if (test_bit(HCI_UART_TX_WAKEUP, &hu->tx_state)) in hci_uart_write_work()
180 wake_up_bit(&hu->tx_state, HCI_UART_SENDING); in hci_uart_write_work()
218 return wait_on_bit_timeout(&hu->tx_state, HCI_UART_SENDING, in hci_uart_wait_until_sent()
H A Dhci_serdev.c68 clear_bit(HCI_UART_TX_WAKEUP, &hu->tx_state); in hci_uart_write_work()
87 clear_bit(HCI_UART_SENDING, &hu->tx_state); in hci_uart_write_work()
88 } while (test_bit(HCI_UART_TX_WAKEUP, &hu->tx_state)); in hci_uart_write_work()
H A Dbt3c_cs.c78 unsigned long tx_state; member
185 if (test_and_set_bit(XMIT_SENDING, &(info->tx_state))) in bt3c_write_wakeup()
198 clear_bit(XMIT_SENDING, &(info->tx_state)); in bt3c_write_wakeup()
364 clear_bit(XMIT_SENDING, &(info->tx_state)); in bt3c_interrupt()
H A Dhci_ath.c91 clear_bit(HCI_UART_SENDING, &hu->tx_state); in ath_hci_uart_work()
233 set_bit(HCI_UART_SENDING, &hu->tx_state); in ath_enqueue()
/openbmc/linux/sound/drivers/
H A Dserial-generic.c52 unsigned long tx_state; member
58 if (test_and_set_bit(SERIAL_TX_STATE_ACTIVE, &drvdata->tx_state)) in snd_serial_generic_tx_wakeup()
59 set_bit(SERIAL_TX_STATE_WAKEUP, &drvdata->tx_state); in snd_serial_generic_tx_wakeup()
74 clear_bit(SERIAL_TX_STATE_WAKEUP, &drvdata->tx_state); in snd_serial_generic_tx_work()
89 if (!test_bit(SERIAL_TX_STATE_WAKEUP, &drvdata->tx_state)) in snd_serial_generic_tx_work()
93 clear_bit(SERIAL_TX_STATE_ACTIVE, &drvdata->tx_state); in snd_serial_generic_tx_work()
/openbmc/linux/drivers/net/can/
H A Dti_hecc.c639 enum can_state tx_state) in ti_hecc_change_state() argument
649 priv->can.state = max(tx_state, rx_state); in ti_hecc_change_state()
655 if (max(tx_state, rx_state) != CAN_STATE_BUS_OFF) { in ti_hecc_change_state()
688 enum can_state rx_state, tx_state; in ti_hecc_interrupt() local
697 ti_hecc_change_state(ndev, rx_state, tx_state); in ti_hecc_interrupt()
705 ti_hecc_change_state(ndev, rx_state, tx_state); in ti_hecc_interrupt()
711 tx_state = CAN_STATE_BUS_OFF; in ti_hecc_interrupt()
717 ti_hecc_change_state(ndev, rx_state, tx_state); in ti_hecc_interrupt()
720 enum can_state new_state, tx_state, rx_state; in ti_hecc_interrupt() local
733 tx_state = rec <= tec ? new_state : 0; in ti_hecc_interrupt()
[all …]
H A Dkvaser_pciefd.c1176 enum can_state tx_state, in kvaser_pciefd_change_state() argument
1179 can_change_state(can->can.dev, cf, tx_state, rx_state); in kvaser_pciefd_change_state()
1199 enum can_state *tx_state, in kvaser_pciefd_packet_to_state() argument
1218 *tx_state = bec->txerr >= bec->rxerr ? *new_state : 0; in kvaser_pciefd_packet_to_state()
1226 enum can_state old_state, new_state, tx_state, rx_state; in kvaser_pciefd_rx_error_frame() local
1236 kvaser_pciefd_packet_to_state(p, &bec, &new_state, &tx_state, &rx_state); in kvaser_pciefd_rx_error_frame()
1239 kvaser_pciefd_change_state(can, cf, new_state, tx_state, rx_state); in kvaser_pciefd_rx_error_frame()
1298 enum can_state old_state, new_state, tx_state, rx_state; in kvaser_pciefd_handle_status_resp() local
1305 kvaser_pciefd_packet_to_state(p, &bec, &new_state, &tx_state, &rx_state); in kvaser_pciefd_handle_status_resp()
1317 kvaser_pciefd_change_state(can, cf, new_state, tx_state, rx_state); in kvaser_pciefd_handle_status_resp()
/openbmc/linux/drivers/net/hamradio/
H A Dyam.c119 int tx_state; member
599 yp->tx_state = TX_HEAD; in yam_start_tx()
653 switch (yp->tx_state) { in yam_tx_byte()
660 yp->tx_state = TX_OFF; in yam_tx_byte()
663 yp->tx_state = TX_DATA; in yam_tx_byte()
681 yp->tx_state = TX_DATA; in yam_tx_byte()
691 yp->tx_state = TX_CRC1; in yam_tx_byte()
698 yp->tx_state = TX_CRC2; in yam_tx_byte()
708 yp->tx_state = TX_TAIL; in yam_tx_byte()
711 yp->tx_state = TX_HEAD; in yam_tx_byte()
[all …]
H A Dscc.c400 scc->stat.tx_state = TXS_ACTIVE; in scc_txint()
1082 scc->stat.tx_state = TXS_BUSY; in scc_tx_done()
1135 scc->stat.tx_state = TXS_IDLE; in t_dwait()
1140 scc->stat.tx_state = TXS_BUSY; in t_dwait()
1203 scc->stat.tx_state = TXS_WAIT; in t_tail()
1208 scc->stat.tx_state = TXS_IDLE; in t_tail()
1227 scc->stat.tx_state = TXS_IDLE; in t_busy()
1280 scc->stat.tx_state = TXS_WAIT; in t_idle()
1288 scc->stat.tx_state = TXS_IDLE; in scc_init_timer()
1683 if(scc->stat.tx_state == TXS_IDLE || scc->stat.tx_state == TXS_IDLE2) { in scc_net_tx()
[all …]
H A Dhdlcdrv.c274 switch (s->hdlctx.tx_state) { in hdlcdrv_transmitter()
287 if (s->hdlctx.tx_state == 1) { in hdlcdrv_transmitter()
295 s->hdlctx.tx_state = 1; in hdlcdrv_transmitter()
303 s->hdlctx.tx_state = 0; in hdlcdrv_transmitter()
315 s->hdlctx.tx_state = 2; in hdlcdrv_transmitter()
321 s->hdlctx.tx_state = 0; in hdlcdrv_transmitter()
355 s->hdlctx.tx_state = 0; in start_tx()
451 s->hdlctx.tx_state = 1; in hdlcdrv_open()
651 s->hdlctx.tx_state = 1; in hdlcdrv_setup()
/openbmc/linux/net/nfc/nci/
H A Duart.c61 if (test_and_set_bit(NCI_UART_SENDING, &nu->tx_state)) { in nci_uart_tx_wakeup()
62 set_bit(NCI_UART_TX_WAKEUP, &nu->tx_state); in nci_uart_tx_wakeup()
78 clear_bit(NCI_UART_TX_WAKEUP, &nu->tx_state); in nci_uart_write_work()
96 if (test_bit(NCI_UART_TX_WAKEUP, &nu->tx_state)) in nci_uart_write_work()
102 clear_bit(NCI_UART_SENDING, &nu->tx_state); in nci_uart_write_work()
/openbmc/linux/drivers/net/can/dev/
H A Ddev.c94 enum can_state tx_state, enum can_state rx_state) in can_change_state() argument
97 enum can_state new_state = max(tx_state, rx_state); in can_change_state()
120 cf->data[1] |= tx_state >= rx_state ? in can_change_state()
121 can_tx_state_to_frame(dev, tx_state) : 0; in can_change_state()
122 cf->data[1] |= tx_state <= rx_state ? in can_change_state()
/openbmc/linux/net/dccp/ccids/
H A Dccid3.c54 enum ccid3_hc_tx_states oldstate = hc->tx_state; in ccid3_hc_tx_set_state()
60 hc->tx_state = state; in ccid3_hc_tx_set_state()
203 ccid3_tx_state_name(hc->tx_state)); in ccid3_hc_tx_no_feedback_timer()
210 if (hc->tx_state == TFRC_SSTATE_FBACK) in ccid3_hc_tx_no_feedback_timer()
287 if (hc->tx_state == TFRC_SSTATE_NO_SENT) { in ccid3_hc_tx_send_packet()
393 if (hc->tx_state == TFRC_SSTATE_NO_FBACK) { in ccid3_hc_tx_packet_recv()
498 hc->tx_state = TFRC_SSTATE_NO_SENT; in ccid3_hc_tx_init()
H A Dccid3.h92 enum ccid3_hc_tx_states tx_state:8;
/openbmc/linux/drivers/firmware/tegra/
H A Divc.c431 enum tegra_ivc_state rx_state, tx_state; in tegra_ivc_notified() local
436 tx_state = tegra_ivc_header_read_field(&ivc->tx.map, tx.state); in tegra_ivc_notified()
476 } else if (tx_state == TEGRA_IVC_STATE_SYNC && in tegra_ivc_notified()
516 } else if (tx_state == TEGRA_IVC_STATE_ACK) { in tegra_ivc_notified()
549 if (tx_state != TEGRA_IVC_STATE_ESTABLISHED) in tegra_ivc_notified()
/openbmc/linux/drivers/misc/ti-st/
H A Dst_core.c470 if (test_and_set_bit(ST_TX_SENDING, &st_data->tx_state)) { in st_tx_wakeup()
473 set_bit(ST_TX_WAKEUP, &st_data->tx_state); in st_tx_wakeup()
481 clear_bit(ST_TX_WAKEUP, &st_data->tx_state); in st_tx_wakeup()
500 } while (test_bit(ST_TX_WAKEUP, &st_data->tx_state)); in st_tx_wakeup()
503 clear_bit(ST_TX_SENDING, &st_data->tx_state); in st_tx_wakeup()
/openbmc/linux/drivers/tty/serial/
H A Dimx.c234 enum imx_tx_state tx_state; member
413 if (sport->tx_state == OFF) in imx_uart_stop_tx()
438 if (sport->tx_state == SEND) { in imx_uart_stop_tx()
439 sport->tx_state = WAIT_AFTER_SEND; in imx_uart_stop_tx()
466 sport->tx_state = OFF; in imx_uart_stop_tx()
469 sport->tx_state = OFF; in imx_uart_stop_tx()
694 if (sport->tx_state == OFF) { in imx_uart_start_tx()
711 sport->tx_state = WAIT_AFTER_RTS; in imx_uart_start_tx()
722 if (sport->tx_state == WAIT_AFTER_SEND in imx_uart_start_tx()
738 sport->tx_state = SEND; in imx_uart_start_tx()
[all …]
/openbmc/linux/include/uapi/linux/
H A Dscc.h127 unsigned int tx_state; /* Transmitter state */ member
/openbmc/linux/drivers/usb/host/
H A Dfhci-tds.c265 out_be32(&ep->ep_pram_ptr->tx_state, 0); in fhci_init_ep_registers()
510 out_be32(&ep->ep_pram_ptr->tx_state, 0); in fhci_flush_bds()
559 out_be32(&ep->ep_pram_ptr->tx_state, 0); in fhci_flush_actual_frame()
/openbmc/linux/drivers/net/can/slcan/
H A Dslcan-core.c265 enum can_state state, rx_state, tx_state; in slcan_bump_state() local
299 tx_state = txerr >= rxerr ? state : 0; in slcan_bump_state()
301 can_change_state(dev, cf, tx_state, rx_state); in slcan_bump_state()

123