/linux-6.6.21/drivers/bluetooth/ |
D | bluecard_cs.c | 73 unsigned long tx_state; member 224 if (!test_bit(XMIT_SENDING_READY, &(info->tx_state))) in bluecard_write_wakeup() 227 if (test_and_set_bit(XMIT_SENDING, &(info->tx_state))) { in bluecard_write_wakeup() 228 set_bit(XMIT_WAKEUP, &(info->tx_state)); in bluecard_write_wakeup() 240 clear_bit(XMIT_WAKEUP, &(info->tx_state)); in bluecard_write_wakeup() 245 if (test_bit(XMIT_BUFFER_NUMBER, &(info->tx_state))) { in bluecard_write_wakeup() 246 if (!test_bit(XMIT_BUF_TWO_READY, &(info->tx_state))) in bluecard_write_wakeup() 252 if (!test_bit(XMIT_BUF_ONE_READY, &(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() [all …]
|
D | dtl1_cs.c | 76 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() 141 if (test_and_set_bit(XMIT_SENDING, &(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() [all …]
|
D | btmtksdio.c | 134 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() 189 err = wait_on_bit_timeout(&bdev->tx_state, BTMTKSDIO_TX_WAIT_VND_EVT, in mtk_hci_wmt_sync() 193 clear_bit(BTMTKSDIO_TX_WAIT_VND_EVT, &bdev->tx_state); in mtk_hci_wmt_sync() 199 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() 319 test_bit(BTMTKSDIO_PATCH_ENABLED, &bdev->tx_state)) { in btmtksdio_fw_pmctrl() 364 test_bit(BTMTKSDIO_PATCH_ENABLED, &bdev->tx_state)) in btmtksdio_drv_pmctrl() 388 if (test_bit(BTMTKSDIO_TX_WAIT_VND_EVT, &bdev->tx_state)) { in btmtksdio_recv_event() [all …]
|
D | btmtkuart.c | 70 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() 136 err = wait_on_bit_timeout(&bdev->tx_state, BTMTKUART_TX_WAIT_VND_EVT, 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() 199 if (test_bit(BTMTKUART_TX_WAIT_VND_EVT, &bdev->tx_state)) { in btmtkuart_recv_event() 213 &bdev->tx_state)) { in btmtkuart_recv_event() 216 wake_up_bit(&bdev->tx_state, BTMTKUART_TX_WAIT_VND_EVT); in btmtkuart_recv_event() 244 clear_bit(BTMTKUART_TX_STATE_WAKEUP, &bdev->tx_state); in btmtkuart_tx_work() [all …]
|
D | btnxpuart.c | 153 unsigned long tx_state; member 307 set_bit(BTNXPUART_TX_STATE_ACTIVE, &nxpdev->tx_state); in btnxpuart_tx_wakeup() 337 !test_bit(BTNXPUART_SERDEV_OPEN, &nxpdev->tx_state)) in ps_control() 379 if (test_bit(BTNXPUART_TX_STATE_ACTIVE, &nxpdev->tx_state)) { in ps_timeout_func() 549 &nxpdev->tx_state), in nxp_download_firmware() 656 return test_bit(BTNXPUART_FW_DOWNLOADING, &nxpdev->tx_state); in is_fw_downloading() 661 if (test_bit(BTNXPUART_CHECK_BOOT_SIGNATURE, &nxpdev->tx_state)) { in process_boot_signature() 662 clear_bit(BTNXPUART_CHECK_BOOT_SIGNATURE, &nxpdev->tx_state); in process_boot_signature() 684 clear_bit(BTNXPUART_FW_DOWNLOADING, &nxpdev->tx_state); in nxp_request_firmware() 777 clear_bit(BTNXPUART_FW_DOWNLOADING, &nxpdev->tx_state); in nxp_recv_fw_req_v1() [all …]
|
D | hci_ldisc.c | 130 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()
|
D | hci_serdev.c | 68 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()
|
D | bt3c_cs.c | 78 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()
|
D | hci_ath.c | 91 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()
|
/linux-6.6.21/sound/drivers/ |
D | serial-generic.c | 52 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()
|
/linux-6.6.21/drivers/net/can/ |
D | ti_hecc.c | 639 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() 653 can_change_state(priv->ndev, cf, 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 695 tx_state = rec <= tec ? CAN_STATE_ERROR_WARNING : 0; in ti_hecc_interrupt() 697 ti_hecc_change_state(ndev, rx_state, tx_state); in ti_hecc_interrupt() 703 tx_state = rec <= tec ? CAN_STATE_ERROR_PASSIVE : 0; 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() [all …]
|
D | kvaser_pciefd.c | 1176 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()
|
/linux-6.6.21/drivers/net/hamradio/ |
D | yam.c | 119 int tx_state; member 595 if ((yp->tx_state == TX_TAIL) || (yp->txd == 0)) in yam_start_tx() 599 yp->tx_state = TX_HEAD; in yam_start_tx() 607 if (yp->magic != YAM_MAGIC || yp->tx_state != TX_OFF || in yam_arbitrate() 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() [all …]
|
D | scc.c | 400 scc->stat.tx_state = TXS_ACTIVE; in scc_txint() 421 scc->stat.tx_state = TXS_NEWFRAME; /* next frame... */ in scc_txint() 497 if (scc->stat.tx_state == TXS_ACTIVE && (status & TxEOM)) in scc_exint() 1073 scc->stat.tx_state = TXS_IDLE2; in scc_tx_done() 1082 scc->stat.tx_state = TXS_BUSY; in scc_tx_done() 1132 if (scc->stat.tx_state == TXS_WAIT) /* maxkeyup or idle timeout */ in t_dwait() 1135 scc->stat.tx_state = TXS_IDLE; in t_dwait() 1140 scc->stat.tx_state = TXS_BUSY; in t_dwait() 1201 if (scc->stat.tx_state == TXS_TIMEOUT) /* we had a timeout? */ in t_tail() 1203 scc->stat.tx_state = TXS_WAIT; in t_tail() [all …]
|
D | hdlcdrv.c | 274 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()
|
/linux-6.6.21/net/nfc/nci/ |
D | uart.c | 61 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()
|
/linux-6.6.21/drivers/net/can/dev/ |
D | dev.c | 94 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()
|
/linux-6.6.21/net/dccp/ccids/ |
D | ccid3.c | 54 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()
|
D | ccid3.h | 92 enum ccid3_hc_tx_states tx_state:8; member
|
/linux-6.6.21/drivers/firmware/tegra/ |
D | ivc.c | 431 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()
|
/linux-6.6.21/drivers/misc/ti-st/ |
D | st_core.c | 470 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()
|
/linux-6.6.21/drivers/tty/serial/ |
D | imx.c | 232 enum imx_tx_state tx_state; member 411 if (sport->tx_state == OFF) in imx_uart_stop_tx() 436 if (sport->tx_state == SEND) { in imx_uart_stop_tx() 437 sport->tx_state = WAIT_AFTER_SEND; in imx_uart_stop_tx() 448 if (sport->tx_state == WAIT_AFTER_RTS || in imx_uart_stop_tx() 449 sport->tx_state == WAIT_AFTER_SEND) { in imx_uart_stop_tx() 464 sport->tx_state = OFF; in imx_uart_stop_tx() 467 sport->tx_state = OFF; in imx_uart_stop_tx() 683 if (sport->tx_state == OFF) { in imx_uart_start_tx() 695 sport->tx_state = WAIT_AFTER_RTS; in imx_uart_start_tx() [all …]
|
/linux-6.6.21/include/uapi/linux/ |
D | scc.h | 127 unsigned int tx_state; /* Transmitter state */ member
|
/linux-6.6.21/drivers/usb/host/ |
D | fhci-tds.c | 265 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()
|
/linux-6.6.21/drivers/net/can/sja1000/ |
D | sja1000.c | 413 enum can_state rx_state, tx_state; in sja1000_err() local 510 tx_state = txerr >= rxerr ? state : 0; in sja1000_err() 513 can_change_state(dev, cf, tx_state, rx_state); in sja1000_err()
|