Home
last modified time | relevance | path

Searched refs:rx_state (Results 1 – 25 of 27) sorted by relevance

12

/drivers/bluetooth/
Dhci_bcsp.c61 } rx_state; member
438 bcsp->rx_state != BCSP_W4_CRC) in bcsp_unslip_one_byte()
449 bcsp->rx_state != BCSP_W4_CRC) in bcsp_unslip_one_byte()
458 bcsp->rx_state != BCSP_W4_CRC) in bcsp_unslip_one_byte()
468 bcsp->rx_state = BCSP_W4_PKT_DELIMITER; in bcsp_unslip_one_byte()
570 bcsp->rx_state = BCSP_W4_PKT_DELIMITER; in bcsp_complete_rx_pkt()
586 hu, count, bcsp->rx_state, bcsp->rx_count); in bcsp_recv()
595 bcsp->rx_state = BCSP_W4_PKT_START; in bcsp_recv()
604 switch (bcsp->rx_state) { in bcsp_recv()
611 bcsp->rx_state = BCSP_W4_PKT_DELIMITER; in bcsp_recv()
[all …]
Dbt3c_cs.c80 unsigned long rx_state; member
237 info->rx_state = RECV_WAIT_PACKET_TYPE; in bt3c_receive()
247 if (info->rx_state == RECV_WAIT_PACKET_TYPE) { in bt3c_receive()
255 info->rx_state = RECV_WAIT_EVENT_HEADER; in bt3c_receive()
260 info->rx_state = RECV_WAIT_ACL_HEADER; in bt3c_receive()
265 info->rx_state = RECV_WAIT_SCO_HEADER; in bt3c_receive()
296 switch (info->rx_state) { in bt3c_receive()
300 info->rx_state = RECV_WAIT_DATA; in bt3c_receive()
307 info->rx_state = RECV_WAIT_DATA; in bt3c_receive()
313 info->rx_state = RECV_WAIT_DATA; in bt3c_receive()
[all …]
Dbluecard_cs.c75 unsigned long rx_state; member
389 info->rx_state = RECV_WAIT_PACKET_TYPE; in bluecard_receive()
398 if (info->rx_state == RECV_WAIT_PACKET_TYPE) { in bluecard_receive()
418 info->rx_state = RECV_WAIT_EVENT_HEADER; in bluecard_receive()
423 info->rx_state = RECV_WAIT_ACL_HEADER; in bluecard_receive()
428 info->rx_state = RECV_WAIT_SCO_HEADER; in bluecard_receive()
456 switch (info->rx_state) { in bluecard_receive()
460 info->rx_state = RECV_WAIT_DATA; in bluecard_receive()
467 info->rx_state = RECV_WAIT_DATA; in bluecard_receive()
473 info->rx_state = RECV_WAIT_DATA; in bluecard_receive()
[all …]
Ddtl1_cs.c78 unsigned long rx_state; member
223 info->rx_state = RECV_WAIT_NSH; in dtl1_receive()
236 switch (info->rx_state) { in dtl1_receive()
238 info->rx_state = RECV_WAIT_DATA; in dtl1_receive()
273 info->rx_state = RECV_WAIT_NSH; in dtl1_receive()
445 info->rx_state = RECV_WAIT_NSH; in dtl1_open()
/drivers/net/caif/
Dcaif_hsi.c546 while (nfrms < cfhsi->rx_state.nfrms) { in cfhsi_rx_pld()
579 cfhsi->rx_state.nfrms = nfrms; in cfhsi_rx_pld()
615 int desc_pld_len = 0, rx_len, rx_state; in cfhsi_rx_done() local
633 if (cfhsi->rx_state.state == CFHSI_RX_STATE_DESC) { in cfhsi_rx_done()
649 if (cfhsi->rx_state.pld_len > 0 && in cfhsi_rx_done()
654 cfhsi->rx_state.pld_len); in cfhsi_rx_done()
656 cfhsi->rx_state.piggy_desc = true; in cfhsi_rx_done()
679 rx_state = CFHSI_RX_STATE_PAYLOAD; in cfhsi_rx_done()
682 rx_state = CFHSI_RX_STATE_DESC; in cfhsi_rx_done()
703 if (cfhsi->rx_state.state == CFHSI_RX_STATE_DESC) { in cfhsi_rx_done()
[all …]
/drivers/net/can/
Dti_hecc.c634 enum can_state rx_state, in ti_hecc_change_state() argument
645 priv->can.state = max(tx_state, rx_state); in ti_hecc_change_state()
649 can_change_state(priv->ndev, cf, tx_state, rx_state); in ti_hecc_change_state()
651 if (max(tx_state, rx_state) != CAN_STATE_BUS_OFF) { in ti_hecc_change_state()
683 enum can_state rx_state, tx_state; in ti_hecc_interrupt() local
689 rx_state = rec >= tec ? CAN_STATE_ERROR_WARNING : 0; in ti_hecc_interrupt()
692 ti_hecc_change_state(ndev, rx_state, tx_state); in ti_hecc_interrupt()
697 rx_state = rec >= tec ? CAN_STATE_ERROR_PASSIVE : 0; in ti_hecc_interrupt()
700 ti_hecc_change_state(ndev, rx_state, tx_state); in ti_hecc_interrupt()
705 rx_state = CAN_STATE_BUS_OFF; in ti_hecc_interrupt()
[all …]
Dkvaser_pciefd.c1200 enum can_state rx_state) in kvaser_pciefd_change_state() argument
1202 can_change_state(can->can.dev, cf, tx_state, rx_state); in kvaser_pciefd_change_state()
1224 enum can_state *rx_state) in kvaser_pciefd_packet_to_state() argument
1243 *rx_state = bec->txerr <= bec->rxerr ? *new_state : 0; in kvaser_pciefd_packet_to_state()
1250 enum can_state old_state, new_state, tx_state, rx_state; in kvaser_pciefd_rx_error_frame() local
1263 &rx_state); in kvaser_pciefd_rx_error_frame()
1269 rx_state); in kvaser_pciefd_rx_error_frame()
1332 enum can_state old_state, new_state, tx_state, rx_state; in kvaser_pciefd_handle_status_resp() local
1340 &rx_state); in kvaser_pciefd_handle_status_resp()
1357 rx_state); in kvaser_pciefd_handle_status_resp()
Ddev.c375 enum can_state tx_state, enum can_state rx_state) in can_change_state() argument
378 enum can_state new_state = max(tx_state, rx_state); in can_change_state()
399 cf->data[1] |= tx_state >= rx_state ? in can_change_state()
401 cf->data[1] |= tx_state <= rx_state ? in can_change_state()
402 can_rx_state_to_frame(dev, rx_state) : 0; in can_change_state()
Dsun4i_can.c517 enum can_state rx_state, tx_state; in sun4i_can_err() local
616 rx_state = txerr <= rxerr ? state : 0; in sun4i_can_err()
619 can_change_state(dev, cf, tx_state, rx_state); in sun4i_can_err()
Dflexcan.c741 enum can_state new_state, rx_state, tx_state; in flexcan_irq_state() local
753 rx_state = unlikely(reg_esr & FLEXCAN_ESR_RX_WRN) ? in flexcan_irq_state()
755 new_state = max(tx_state, rx_state); in flexcan_irq_state()
760 rx_state = bec.rxerr >= bec.txerr ? new_state : 0; in flexcan_irq_state()
772 can_change_state(dev, cf, tx_state, rx_state); in flexcan_irq_state()
Dxilinx_can.c918 enum can_state rx_state = txerr <= rxerr ? new_state : 0; in xcan_set_error_state()
924 can_change_state(ndev, cf, tx_state, rx_state); in xcan_set_error_state()
/drivers/misc/ti-st/
Dst_kim.c68 kim_gdata->rx_state = ST_W4_PACKET_TYPE; in validate_firmware_response()
104 kim_gdata->rx_state = ST_W4_DATA; in kim_check_data_len()
111 kim_gdata->rx_state = ST_W4_PACKET_TYPE; in kim_check_data_len()
151 switch (kim_gdata->rx_state) { in kim_int_recv()
156 kim_gdata->rx_state = ST_W4_PACKET_TYPE; in kim_int_recv()
171 kim_gdata->rx_state = ST_W4_HEADER; in kim_int_recv()
186 kim_gdata->rx_state = ST_W4_PACKET_TYPE; in kim_int_recv()
Dst_core.c176 st_gdata->rx_state = ST_W4_DATA; in st_check_data_len()
183 st_gdata->rx_state = ST_W4_PACKET_TYPE; in st_check_data_len()
244 "rx_count %ld", count, st_gdata->rx_state, in st_int_recv()
261 switch (st_gdata->rx_state) { in st_int_recv()
269 st_gdata->rx_state = ST_W4_PACKET_TYPE; in st_int_recv()
367 st_gdata->rx_state = ST_W4_HEADER; in st_int_recv()
774 st_gdata->rx_state = ST_W4_PACKET_TYPE; in st_tty_close()
/drivers/net/hamradio/
Dhdlcdrv.c118 while (s->hdlcrx.rx_state && num >= 8) { in hdlc_rx_add_bytes()
120 s->hdlcrx.rx_state = 0; in hdlc_rx_add_bytes()
182 s->hdlcrx.rx_state = 0; /* abort received */ in hdlcdrv_receiver()
185 if (s->hdlcrx.rx_state) { in hdlcdrv_receiver()
194 s->hdlcrx.rx_state = 1; in hdlcdrv_receiver()
446 s->hdlcrx.rx_state = 0; in hdlcdrv_open()
643 s->hdlcrx.rx_state = 0; in hdlcdrv_setup()
/drivers/scsi/bnx2fc/
Dbnx2fc_hwi.c877 u8 rx_state = 0; in bnx2fc_process_cq_compl() local
907 rx_state = ((task->rxwr_txrd.var_ctx.rx_flags & in bnx2fc_process_cq_compl()
914 if (rx_state == FCOE_TASK_RX_STATE_COMPLETED) { in bnx2fc_process_cq_compl()
920 if (rx_state == FCOE_TASK_RX_STATE_ABTS_COMPLETED) in bnx2fc_process_cq_compl()
922 else if (rx_state == in bnx2fc_process_cq_compl()
927 rx_state); in bnx2fc_process_cq_compl()
946 if (rx_state == FCOE_TASK_RX_STATE_COMPLETED) in bnx2fc_process_cq_compl()
948 else if (rx_state == FCOE_TASK_RX_STATE_ABTS_COMPLETED) in bnx2fc_process_cq_compl()
950 else if (rx_state == in bnx2fc_process_cq_compl()
955 rx_state); in bnx2fc_process_cq_compl()
[all …]
Dbnx2fc.h592 u8 rx_state);
/drivers/net/can/sja1000/
Dsja1000.c397 enum can_state rx_state, tx_state; in sja1000_err() local
484 rx_state = txerr <= rxerr ? state : 0; in sja1000_err()
486 can_change_state(dev, cf, tx_state, rx_state); in sja1000_err()
/drivers/net/usb/
Dhso.c221 enum rx_ctrl_state rx_state; member
1170 (serial->rx_state == RX_PENDING))) { in put_rxbuf_data_and_resubmit_ctrl_urb()
1171 serial->rx_state = RX_SENT; in put_rxbuf_data_and_resubmit_ctrl_urb()
1174 serial->rx_state = RX_IDLE; in put_rxbuf_data_and_resubmit_ctrl_urb()
1264 serial->rx_state = RX_IDLE; in hso_serial_open()
1870 if (serial->rx_state == RX_IDLE && in intr_callback()
1875 serial->rx_state = RX_SENT; in intr_callback()
1878 serial->rx_state = RX_PENDING; in intr_callback()
/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_hydra.c866 enum can_state tx_state, rx_state; in kvaser_usb_hydra_update_state() local
870 rx_state = (bec->txerr <= bec->rxerr) ? in kvaser_usb_hydra_update_state()
872 can_change_state(netdev, cf, tx_state, rx_state); in kvaser_usb_hydra_update_state()
1014 enum can_state tx_state, rx_state; in kvaser_usb_hydra_error_frame() local
1018 rx_state = (bec.txerr <= bec.rxerr) ? in kvaser_usb_hydra_error_frame()
1021 can_change_state(netdev, cf, tx_state, rx_state); in kvaser_usb_hydra_error_frame()
Dkvaser_usb_leaf.c633 enum can_state cur_state, new_state, tx_state, rx_state; in kvaser_usb_leaf_rx_error_update_can_state() local
661 rx_state = (es->txerr <= es->rxerr) ? new_state : 0; in kvaser_usb_leaf_rx_error_update_can_state()
663 can_change_state(priv->netdev, cf, tx_state, rx_state); in kvaser_usb_leaf_rx_error_update_can_state()
/drivers/net/can/spi/
Dhi311x.c664 enum can_state rx_state, tx_state; in hi3110_can_ist() local
676 rx_state = txerr <= rxerr ? new_state : 0; in hi3110_can_ist()
677 can_change_state(net, cf, tx_state, rx_state); in hi3110_can_ist()
/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c526 enum can_state rx_state, tx_state; in pcan_usb_fd_decode_status() local
555 rx_state = (pdev->bec.txerr <= pdev->bec.rxerr) ? new_state : 0; in pcan_usb_fd_decode_status()
560 can_change_state(netdev, cf, tx_state, rx_state); in pcan_usb_fd_decode_status()
/drivers/usb/host/
Dfhci.h176 __be32 rx_state; /* Rx internal state */ member
/drivers/tty/serial/
Ducc_uart.c121 __be32 rx_state; /* 0x94, RX state, initialize to 0 */ member
718 out_be32(&uccup->rx_state, 0); in qe_uart_init_ucc()
/drivers/net/can/rcar/
Drcar_canfd.c1114 enum can_state rx_state, tx_state, state = priv->can.state; in rcar_canfd_state_change() local
1133 rx_state = txerr <= rxerr ? state : 0; in rcar_canfd_state_change()
1135 can_change_state(ndev, cf, tx_state, rx_state); in rcar_canfd_state_change()

12