/linux/drivers/net/can/usb/etas_es58x/ |
A D | es58x_fd.c | 47 u32 ctrlmode = es58x_priv(netdev)->can.ctrlmode; in es58x_fd_cmd_type() local 400 u32 ctrlmode; in es58x_fd_enable_channel() local 405 ctrlmode = priv->can.ctrlmode; in es58x_fd_enable_channel() 407 if (ctrlmode & CAN_CTRLMODE_3_SAMPLES) in es58x_fd_enable_channel() 414 if (ctrlmode & CAN_CTRLMODE_LISTENONLY) in es58x_fd_enable_channel() 415 tx_conf_msg.ctrlmode |= ES58X_FD_CTRLMODE_PASSIVE; in es58x_fd_enable_channel() 417 tx_conf_msg.ctrlmode |= ES58X_FD_CTRLMODE_ACTIVE; in es58x_fd_enable_channel() 419 if (ctrlmode & CAN_CTRLMODE_FD_NON_ISO) { in es58x_fd_enable_channel() 420 tx_conf_msg.ctrlmode |= ES58X_FD_CTRLMODE_FD_NON_ISO; in es58x_fd_enable_channel() 422 } else if (ctrlmode & CAN_CTRLMODE_FD) { in es58x_fd_enable_channel() [all …]
|
A D | es58x_fd.h | 114 u8 ctrlmode; member
|
/linux/include/linux/can/ |
A D | length.h | 135 static inline u8 can_get_cc_dlc(const struct can_frame *cf, const u32 ctrlmode) in can_get_cc_dlc() argument 138 if ((ctrlmode & CAN_CTRLMODE_CC_LEN8_DLC) && in can_get_cc_dlc() 149 const u32 ctrlmode) in can_frame_set_cc_len() argument 152 if (ctrlmode & CAN_CTRLMODE_CC_LEN8_DLC && dlc > CAN_MAX_DLEN) in can_frame_set_cc_len()
|
A D | dev.h | 70 u32 ctrlmode; /* current options setting */ member 102 return !!(priv->ctrlmode & CAN_CTRLMODE_TDC_MASK); in can_tdc_is_enabled() 141 priv->ctrlmode = static_mode; in can_set_static_ctrlmode()
|
A D | bittiming.h | 128 u32 *ctrlmode, u32 ctrlmode_supported); 141 u32 *ctrlmode, u32 ctrlmode_supported) in can_calc_tdco() argument
|
/linux/drivers/net/can/dev/ |
A D | netlink.c | 230 priv->ctrlmode &= ~cm->mask; in can_changelink() 231 priv->ctrlmode |= maskedflags; in can_changelink() 234 if (priv->ctrlmode & CAN_CTRLMODE_FD) { in can_changelink() 240 priv->ctrlmode &= ~CAN_CTRLMODE_TDC_MASK; in can_changelink() 249 priv->ctrlmode &= cm->flags | ~CAN_CTRLMODE_TDC_MASK; in can_changelink() 304 priv->ctrlmode &= ~CAN_CTRLMODE_TDC_MASK; in can_changelink() 312 &priv->ctrlmode, priv->ctrlmode_supported); in can_changelink() 375 if (priv->ctrlmode & CAN_CTRLMODE_TDC_MANUAL || in can_tdc_get_size() 452 if (priv->ctrlmode & CAN_CTRLMODE_TDC_MANUAL) { in can_tdc_fill_info() 478 struct can_ctrlmode cm = {.flags = priv->ctrlmode}; in can_fill_info()
|
A D | bittiming.c | 180 u32 *ctrlmode, u32 ctrlmode_supported) in can_calc_tdco() argument 186 *ctrlmode &= ~CAN_CTRLMODE_TDC_MASK; in can_calc_tdco() 200 *ctrlmode |= CAN_CTRLMODE_TDC_AUTO; in can_calc_tdco()
|
A D | dev.c | 315 priv->ctrlmode &= ~CAN_CTRLMODE_FD; in can_change_mtu() 324 priv->ctrlmode |= CAN_CTRLMODE_FD; in can_change_mtu() 351 if ((priv->ctrlmode & CAN_CTRLMODE_FD) && in open_candev()
|
/linux/drivers/net/can/sja1000/ |
A 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() 297 fi = can_get_cc_dlc(cf, priv->can.ctrlmode); in sja1000_start_xmit() 323 if (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT) in sja1000_start_xmit() 326 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in sja1000_start_xmit() 369 can_frame_set_cc_len(cf, fi & 0x0F, priv->can.ctrlmode); in sja1000_rx() 525 if (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT && in sja1000_interrupt()
|
/linux/drivers/net/can/usb/ |
A D | ucan.c | 963 u16 ctrlmode; in ucan_open() local 979 ctrlmode = 0; in ucan_open() 980 if (up->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in ucan_open() 981 ctrlmode |= UCAN_MODE_LOOPBACK; in ucan_open() 982 if (up->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in ucan_open() 983 ctrlmode |= UCAN_MODE_SILENT; in ucan_open() 984 if (up->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in ucan_open() 985 ctrlmode |= UCAN_MODE_3_SAMPLES; in ucan_open() 986 if (up->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT) in ucan_open() 987 ctrlmode |= UCAN_MODE_ONE_SHOT; in ucan_open() [all …]
|
A D | gs_usb.c | 341 can_frame_set_cc_len(cf, hf->can_dlc, dev->can.ctrlmode); in gs_usb_receive_bulk_callback() 514 hf->can_dlc = can_get_cc_dlc(cf, dev->can.ctrlmode); in gs_can_start_xmit() 583 u32 ctrlmode; in gs_can_open() local 651 ctrlmode = dev->can.ctrlmode; in gs_can_open() 653 if (ctrlmode & CAN_CTRLMODE_LOOPBACK) in gs_can_open() 655 else if (ctrlmode & CAN_CTRLMODE_LISTENONLY) in gs_can_open() 661 if (ctrlmode & CAN_CTRLMODE_ONE_SHOT) in gs_can_open() 664 if (ctrlmode & CAN_CTRLMODE_3_SAMPLES) in gs_can_open() 691 if (!(dev->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)) in gs_can_open()
|
A D | usb_8dev.c | 247 u32 ctrlmode = priv->can.ctrlmode; in usb_8dev_cmd_open() local 264 if (ctrlmode & CAN_CTRLMODE_LOOPBACK) in usb_8dev_cmd_open() 266 if (ctrlmode & CAN_CTRLMODE_LISTENONLY) in usb_8dev_cmd_open() 268 if (ctrlmode & CAN_CTRLMODE_ONE_SHOT) in usb_8dev_cmd_open() 474 can_frame_set_cc_len(cf, msg->dlc & 0xF, priv->can.ctrlmode); in usb_8dev_rx_can_msg() 641 msg->dlc = can_get_cc_dlc(cf, priv->can.ctrlmode); in usb_8dev_start_xmit()
|
A D | esd_usb2.c | 327 priv->can.ctrlmode); in esd_usb2_rx_can_msg() 755 msg->msg.tx.dlc = can_get_cc_dlc(cf, priv->can.ctrlmode); in esd_usb2_start_xmit() 914 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in esd_usb2_set_bittiming() 932 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in esd_usb2_set_bittiming()
|
/linux/drivers/net/can/usb/peak_usb/ |
A D | pcan_usb.c | 281 if (dev->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in pcan_usb_set_bittiming() 658 can_frame_set_cc_len(cf, rec_len, mc->pdev->dev.can.ctrlmode); in pcan_usb_decode_data() 767 *pc = can_get_cc_dlc(cf, dev->can.ctrlmode); in pcan_usb_encode_msg() 779 if (dev->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in pcan_usb_encode_msg() 782 if (dev->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT) in pcan_usb_encode_msg() 792 if (dev->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in pcan_usb_encode_msg() 795 if (dev->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT) in pcan_usb_encode_msg() 856 dev->can.ctrlmode & CAN_CTRLMODE_LISTENONLY); in pcan_usb_start()
|
A D | pcan_usb_fd.c | 250 (dev->can.ctrlmode & CAN_CTRLMODE_FD_NON_ISO) ? in pcan_usb_fd_build_restart_cmd() 270 (dev->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) ? in pcan_usb_fd_build_restart_cmd() 394 dev->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES); in pcan_usb_fd_set_bittiming_slow() 502 dev->can.ctrlmode); in pcan_usb_fd_decode_canmsg() 772 dev->can.ctrlmode); in pcan_usb_fd_encode_msg() 779 if (dev->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT) in pcan_usb_fd_encode_msg() 913 dev->can.ctrlmode |= CAN_CTRLMODE_FD_NON_ISO; in pcan_usb_fd_init() 934 dev->can.ctrlmode = ppdev->dev.can.ctrlmode; in pcan_usb_fd_init()
|
/linux/drivers/net/can/ifi_canfd/ |
A 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() 994 priv->can.ctrlmode = CAN_CTRLMODE_FD; in ifi_canfd_plat_probe()
|
/linux/drivers/net/can/ |
A D | grcan.c | 563 !(priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)) { in grcan_lost_one_shot_frame() 591 if (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT) in grcan_err() 855 | (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT in grcan_running_reset() 864 !(priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)) in grcan_running_reset() 999 | (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY ? in grcan_start() 1001 | (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES ? in grcan_start() 1005 | (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT in grcan_start() 1032 if (!(priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)) in grcan_set_mode() 1085 if (!(priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)) in grcan_open() 1148 !(priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)) in grcan_transmit_catch_up() [all …]
|
A D | flexcan.c | 1287 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in flexcan_set_bittiming_cbt() 1338 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in flexcan_set_bittiming_cbt() 1373 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in flexcan_set_bittiming() 1375 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in flexcan_set_bittiming() 1377 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in flexcan_set_bittiming() 1409 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) in flexcan_ram_init() 1421 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) in flexcan_rx_offload_setup() 1555 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in flexcan_chip_start() 1561 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) in flexcan_chip_start() 1615 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in flexcan_chip_start() [all …]
|
A 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()
|
/linux/drivers/net/can/peak_canfd/ |
A D | peak_canfd.c | 124 priv->can.ctrlmode & in pucan_set_timing_slow() 521 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in peak_canfd_start() 585 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in peak_canfd_open() 586 if (priv->can.ctrlmode & CAN_CTRLMODE_FD_NON_ISO) in peak_canfd_open() 706 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in peak_canfd_start_xmit() 731 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) in peak_canfd_start_xmit()
|
/linux/drivers/net/can/m_can/ |
A D | m_can.c | 884 if ((cdev->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) && in m_can_handle_bus_errors() 889 if ((cdev->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) && in m_can_handle_bus_errors() 1187 if (cdev->can.ctrlmode & CAN_CTRLMODE_FD) { in m_can_set_bittiming() 1309 if (cdev->can.ctrlmode & CAN_CTRLMODE_FD) in m_can_chip_config() 1318 if (cdev->can.ctrlmode & CAN_CTRLMODE_FD_NON_ISO) in m_can_chip_config() 1321 if (cdev->can.ctrlmode & CAN_CTRLMODE_FD) in m_can_chip_config() 1326 if (cdev->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) { in m_can_chip_config() 1332 if (cdev->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in m_can_chip_config() 1336 if (cdev->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT) in m_can_chip_config() 1345 if (!(cdev->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)) in m_can_chip_config() [all …]
|
/linux/drivers/net/can/spi/mcp251xfd/ |
A D | mcp251xfd-core.c | 760 if (!(priv->can.ctrlmode & CAN_CTRLMODE_FD_NON_ISO)) in mcp251xfd_set_bittiming() 779 if (!(priv->can.ctrlmode & CAN_CTRLMODE_FD)) in mcp251xfd_set_bittiming() 859 if (priv->can.ctrlmode & (CAN_CTRLMODE_LISTENONLY | CAN_CTRLMODE_FD)) in mcp251xfd_chip_rx_fifo_init_one() 909 if (priv->can.ctrlmode & (CAN_CTRLMODE_LISTENONLY | CAN_CTRLMODE_FD)) in mcp251xfd_chip_fifo_init() 916 if (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT) in mcp251xfd_chip_fifo_init() 983 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in mcp251xfd_get_normal_mode() 985 else if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in mcp251xfd_get_normal_mode() 987 else if (priv->can.ctrlmode & CAN_CTRLMODE_FD) in mcp251xfd_get_normal_mode() 1043 if (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) in mcp251xfd_chip_interrupts_enable() 1497 priv->can.ctrlmode); in mcp251xfd_hw_rx_obj_to_skb() [all …]
|
/linux/drivers/net/can/spi/ |
A D | hi311x.c | 432 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in hi3110_set_normal_mode() 434 else if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in hi3110_set_normal_mode() 462 (priv->can.ctrlmode & in hi3110_do_set_bittiming() 692 (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)) { in hi3110_can_ist()
|
/linux/drivers/net/can/c_can/ |
A D | c_can_main.c | 604 if ((priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) && in c_can_chip_config() 605 (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK)) { in c_can_chip_config() 609 } else if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) { in c_can_chip_config() 613 } else if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) { in c_can_chip_config() 1021 if (!(priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)) in c_can_handle_bus_err()
|
/linux/drivers/net/can/softing/ |
A D | softing_fw.c | 413 return (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) in softing_error_reporting() 499 iowrite16((priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) ? 1 : 0, in softing_startstop() 539 iowrite16((priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) ? 1 : 0, in softing_startstop()
|