Home
last modified time | relevance | path

Searched refs:ctrlmode (Results 1 – 25 of 32) sorted by relevance

12

/Linux-v4.19/drivers/net/can/usb/
Ducan.c592 if (!(up->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) && in ucan_rx_can_msg()
967 u16 ctrlmode; in ucan_open() local
983 ctrlmode = 0; in ucan_open()
984 if (up->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in ucan_open()
985 ctrlmode |= UCAN_MODE_LOOPBACK; in ucan_open()
986 if (up->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in ucan_open()
987 ctrlmode |= UCAN_MODE_SILENT; in ucan_open()
988 if (up->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in ucan_open()
989 ctrlmode |= UCAN_MODE_3_SAMPLES; in ucan_open()
990 if (up->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT) in ucan_open()
[all …]
Dgs_usb.c583 u32 ctrlmode; in gs_can_open() local
649 ctrlmode = dev->can.ctrlmode; in gs_can_open()
652 if (ctrlmode & CAN_CTRLMODE_LOOPBACK) in gs_can_open()
654 else if (ctrlmode & CAN_CTRLMODE_LISTENONLY) in gs_can_open()
660 if (ctrlmode & CAN_CTRLMODE_ONE_SHOT) in gs_can_open()
663 if (ctrlmode & CAN_CTRLMODE_3_SAMPLES) in gs_can_open()
689 if (!(dev->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)) in gs_can_open()
Dusb_8dev.c257 u32 ctrlmode = priv->can.ctrlmode; in usb_8dev_cmd_open() local
274 if (ctrlmode & CAN_CTRLMODE_LOOPBACK) in usb_8dev_cmd_open()
276 if (ctrlmode & CAN_CTRLMODE_LISTENONLY) in usb_8dev_cmd_open()
278 if (ctrlmode & CAN_CTRLMODE_ONE_SHOT) in usb_8dev_cmd_open()
Desd_usb2.c911 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in esd_usb2_set_bittiming()
929 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in esd_usb2_set_bittiming()
/Linux-v4.19/drivers/net/can/sja1000/
Dsja1000.c152 if (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) in set_normal_mode()
161 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in set_normal_mode()
163 if (priv->can.ctrlmode & CAN_CTRLMODE_PRESUME_ACK) in set_normal_mode()
253 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in sja1000_set_bittiming()
324 if (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT) in sja1000_start_xmit()
327 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in sja1000_start_xmit()
527 if (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT && in sja1000_interrupt()
/Linux-v4.19/drivers/net/can/ifi_canfd/
Difi_canfd.c237 if (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) in ifi_canfd_irq_enable()
584 if (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) in ifi_canfd_poll()
754 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in ifi_canfd_start()
757 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in ifi_canfd_start()
760 if ((priv->can.ctrlmode & CAN_CTRLMODE_FD) && in ifi_canfd_start()
761 !(priv->can.ctrlmode & CAN_CTRLMODE_FD_NON_ISO)) in ifi_canfd_start()
764 if (!(priv->can.ctrlmode & CAN_CTRLMODE_FD)) in ifi_canfd_start()
904 if ((priv->can.ctrlmode & CAN_CTRLMODE_FD) && can_is_canfd_skb(skb)) { in ifi_canfd_start_xmit()
993 priv->can.ctrlmode = CAN_CTRLMODE_FD; in ifi_canfd_plat_probe()
/Linux-v4.19/drivers/net/can/peak_canfd/
Dpeak_canfd.c133 priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES); in pucan_set_timing_slow()
511 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in peak_canfd_start()
575 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in peak_canfd_open()
576 if (priv->can.ctrlmode & CAN_CTRLMODE_FD_NON_ISO) in peak_canfd_open()
696 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in peak_canfd_start_xmit()
721 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) in peak_canfd_start_xmit()
/Linux-v4.19/drivers/net/can/
Dgrcan.c567 !(priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)) { in grcan_lost_one_shot_frame()
595 if (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT) in grcan_err()
859 | (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT in grcan_running_reset()
868 !(priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)) in grcan_running_reset()
1003 | (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY ? in grcan_start()
1005 | (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES ? in grcan_start()
1009 | (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT in grcan_start()
1036 if (!(priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)) in grcan_set_mode()
1089 if (!(priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)) in grcan_open()
1152 !(priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)) in grcan_transmit_catch_up()
[all …]
Dsun4i_can.c284 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in sun4ican_set_bittiming()
337 if (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) in sun4i_can_start()
345 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in sun4i_can_start()
347 else if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in sun4i_can_start()
453 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in sun4ican_start_xmit()
Ddev.c766 priv->ctrlmode &= ~CAN_CTRLMODE_FD; in can_change_mtu()
775 priv->ctrlmode |= CAN_CTRLMODE_FD; in can_change_mtu()
803 if ((priv->ctrlmode & CAN_CTRLMODE_FD) && in open_candev()
982 priv->ctrlmode &= ~cm->mask; in can_changelink()
983 priv->ctrlmode |= maskedflags; in can_changelink()
986 if (priv->ctrlmode & CAN_CTRLMODE_FD) in can_changelink()
1113 struct can_ctrlmode cm = {.flags = priv->ctrlmode}; in can_fill_info()
Dflexcan.c812 (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)) in flexcan_irq()
829 !(priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)) { in flexcan_irq()
879 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in flexcan_set_bittiming()
881 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in flexcan_set_bittiming()
883 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in flexcan_set_bittiming()
967 priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) in flexcan_chip_start()
Djanz-ican3.c793 if (mod->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in ican3_set_bus_state()
958 if (mod->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT) in can_frame_to_ican3()
1096 if (!(mod->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)) in ican3_handle_cevtind()
Dat91_can.c362 reg_br = ((priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) ? 1 << 24 : 0) | in at91_set_bittiming()
402 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in at91_chip_start()
/Linux-v4.19/include/linux/can/
Ddev.h55 u32 ctrlmode; /* current options setting */ member
132 priv->ctrlmode = static_mode; in can_set_static_ctrlmode()
/Linux-v4.19/drivers/net/can/m_can/
Dm_can.c804 if ((priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) && in m_can_handle_bus_errors()
994 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in m_can_set_bittiming()
1109 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) in m_can_chip_config()
1118 if (priv->can.ctrlmode & CAN_CTRLMODE_FD_NON_ISO) in m_can_chip_config()
1121 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) in m_can_chip_config()
1126 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) { in m_can_chip_config()
1132 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in m_can_chip_config()
1141 if (!(priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)) in m_can_chip_config()
1427 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in m_can_start_xmit()
/Linux-v4.19/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c260 (dev->can.ctrlmode & CAN_CTRLMODE_FD_NON_ISO) ? in pcan_usb_fd_build_restart_cmd()
280 (dev->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) ? in pcan_usb_fd_build_restart_cmd()
404 dev->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES); in pcan_usb_fd_set_bittiming_slow()
889 dev->can.ctrlmode |= CAN_CTRLMODE_FD_NON_ISO; in pcan_usb_fd_init()
910 dev->can.ctrlmode = ppdev->dev.can.ctrlmode; in pcan_usb_fd_init()
Dpcan_usb.c225 if (dev->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in pcan_usb_set_bittiming()
787 dev->can.ctrlmode & CAN_CTRLMODE_LISTENONLY); in pcan_usb_start()
Dpcan_usb_pro.c461 ccbt = (dev->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) ? 0x00800000 : 0; in pcan_usb_pro_set_bittiming()
808 dev->can.ctrlmode & CAN_CTRLMODE_LISTENONLY); in pcan_usb_pro_start()
/Linux-v4.19/drivers/net/can/c_can/
Dc_can.c585 if ((priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) && in c_can_chip_config()
586 (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK)) { in c_can_chip_config()
590 } else if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) { in c_can_chip_config()
594 } else if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) { in c_can_chip_config()
972 if (!(priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)) in c_can_handle_bus_err()
/Linux-v4.19/drivers/net/can/spi/
Dhi311x.c450 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in hi3110_set_normal_mode()
452 else if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in hi3110_set_normal_mode()
480 (priv->can.ctrlmode & in hi3110_do_set_bittiming()
710 (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)) { in hi3110_can_ist()
Dmcp251x.c567 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) { in mcp251x_set_normal_mode()
570 } else if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) { in mcp251x_set_normal_mode()
601 (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES ? in mcp251x_do_set_bittiming()
/Linux-v4.19/drivers/net/can/softing/
Dsofting_fw.c424 return (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) in softing_error_reporting()
510 iowrite16((priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) ? 1 : 0, in softing_startstop()
550 iowrite16((priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) ? 1 : 0, in softing_startstop()
/Linux-v4.19/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_hydra.c1401 (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT ? in kvaser_usb_hydra_frame_to_cmd_ext()
1549 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in kvaser_usb_hydra_set_data_bittiming()
1550 if (priv->can.ctrlmode & CAN_CTRLMODE_FD_NON_ISO) in kvaser_usb_hydra_set_data_bittiming()
1812 if ((priv->can.ctrlmode & in kvaser_usb_hydra_set_opt_mode()
1829 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in kvaser_usb_hydra_set_opt_mode()
/Linux-v4.19/drivers/net/can/mscan/
Dmscan.c527 BTR1_SET_SAM(priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES)); in mscan_do_set_bittiming()
579 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in mscan_open()
/Linux-v4.19/drivers/net/can/rcar/
Drcar_canfd.c1196 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in rcar_canfd_set_bittiming()
1366 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in rcar_canfd_start_xmit()
1425 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in rcar_canfd_rx_pkt()
1451 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in rcar_canfd_rx_pkt()

12