/Linux-v4.19/drivers/net/can/usb/ |
D | ucan.c | 592 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 …]
|
D | gs_usb.c | 583 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()
|
D | usb_8dev.c | 257 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()
|
D | esd_usb2.c | 911 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/ |
D | sja1000.c | 152 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/ |
D | ifi_canfd.c | 237 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/ |
D | peak_canfd.c | 133 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/ |
D | grcan.c | 567 !(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 …]
|
D | sun4i_can.c | 284 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()
|
D | dev.c | 766 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()
|
D | flexcan.c | 812 (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()
|
D | janz-ican3.c | 793 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()
|
D | at91_can.c | 362 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/ |
D | dev.h | 55 u32 ctrlmode; /* current options setting */ member 132 priv->ctrlmode = static_mode; in can_set_static_ctrlmode()
|
/Linux-v4.19/drivers/net/can/m_can/ |
D | m_can.c | 804 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/ |
D | pcan_usb_fd.c | 260 (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()
|
D | pcan_usb.c | 225 if (dev->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in pcan_usb_set_bittiming() 787 dev->can.ctrlmode & CAN_CTRLMODE_LISTENONLY); in pcan_usb_start()
|
D | pcan_usb_pro.c | 461 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/ |
D | c_can.c | 585 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/ |
D | hi311x.c | 450 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()
|
D | mcp251x.c | 567 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/ |
D | softing_fw.c | 424 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/ |
D | kvaser_usb_hydra.c | 1401 (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/ |
D | mscan.c | 527 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/ |
D | rcar_canfd.c | 1196 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()
|