Home
last modified time | relevance | path

Searched refs:CAN_CTRLMODE_FD (Results 1 – 23 of 23) sorted by relevance

/linux/drivers/net/can/dev/
H A Ddev.c322 if (ctrlmode_static & CAN_CTRLMODE_FD) in can_change_mtu()
325 priv->ctrlmode &= ~CAN_CTRLMODE_FD; in can_change_mtu()
330 if (!(priv->ctrlmode_supported & CAN_CTRLMODE_FD) && in can_change_mtu()
331 !(ctrlmode_static & CAN_CTRLMODE_FD)) in can_change_mtu()
334 priv->ctrlmode |= CAN_CTRLMODE_FD; in can_change_mtu()
408 if ((priv->ctrlmode & CAN_CTRLMODE_FD) && in open_candev()
H A Dnetlink.c72 is_can_fd = cm->flags & cm->mask & CAN_CTRLMODE_FD; in can_validate()
215 if (!(maskedflags & CAN_CTRLMODE_FD)) in can_changelink()
227 if (priv->ctrlmode & CAN_CTRLMODE_FD) { in can_changelink()
/linux/drivers/net/can/ifi_canfd/
H A Difi_canfd.c773 if ((priv->can.ctrlmode & CAN_CTRLMODE_FD) && in ifi_canfd_start()
777 if (!(priv->can.ctrlmode & CAN_CTRLMODE_FD)) in ifi_canfd_start()
914 if ((priv->can.ctrlmode & CAN_CTRLMODE_FD) && can_is_canfd_skb(skb)) { in ifi_canfd_start_xmit()
1009 priv->can.ctrlmode = CAN_CTRLMODE_FD; in ifi_canfd_plat_probe()
1014 CAN_CTRLMODE_FD | in ifi_canfd_plat_probe()
/linux/drivers/net/can/usb/etas_es58x/
H A Des58x_fd.c50 if (ctrlmode & (CAN_CTRLMODE_FD | CAN_CTRLMODE_FD_NON_ISO)) in es58x_fd_cmd_type()
423 } else if (ctrlmode & CAN_CTRLMODE_FD) { in es58x_fd_enable_channel()
529 CAN_CTRLMODE_3_SAMPLES | CAN_CTRLMODE_FD | CAN_CTRLMODE_FD_NON_ISO |
H A Des58x_core.c2061 if (param->ctrlmode_supported & CAN_CTRLMODE_FD) { in es58x_init_priv()
/linux/include/uapi/linux/can/
H A Dnetlink.h100 #define CAN_CTRLMODE_FD 0x20 /* CAN FD mode */ macro
/linux/drivers/net/can/flexcan/
H A Dflexcan-core.c1240 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in flexcan_set_bittiming_cbt()
1291 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in flexcan_set_bittiming_cbt()
1336 if (priv->can.ctrlmode_supported & CAN_CTRLMODE_FD) in flexcan_set_bittiming()
1362 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) in flexcan_ram_init()
1374 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) in flexcan_rx_offload_setup()
1514 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) in flexcan_chip_start()
1561 if (priv->can.ctrlmode_supported & CAN_CTRLMODE_FD) { in flexcan_chip_start()
1568 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in flexcan_chip_start()
1722 (priv->can.ctrlmode & CAN_CTRLMODE_FD)) { in flexcan_open()
2191 priv->can.ctrlmode_supported |= CAN_CTRLMODE_FD | in flexcan_probe()
/linux/drivers/net/can/peak_canfd/
H A Dpeak_canfd.c582 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in peak_canfd_open()
728 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) in peak_canfd_start_xmit()
825 CAN_CTRLMODE_FD | in alloc_peak_canfd_dev()
/linux/include/linux/can/
H A Ddev.h139 if (static_mode & CAN_CTRLMODE_FD) in can_set_static_ctrlmode()
/linux/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_fd.c1161 .ctrlmode_supported = CAN_CTRLMODE_FD |
1237 .ctrlmode_supported = CAN_CTRLMODE_FD |
1313 .ctrlmode_supported = CAN_CTRLMODE_FD |
1389 .ctrlmode_supported = CAN_CTRLMODE_FD |
/linux/drivers/net/can/rcar/
H A Drcar_canfd.c1326 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in rcar_canfd_set_bittiming()
1514 if ((priv->can.ctrlmode & CAN_CTRLMODE_FD) || is_gen4(gpriv)) { in rcar_canfd_start_xmit()
1573 if ((priv->can.ctrlmode & CAN_CTRLMODE_FD) || is_gen4(gpriv)) { in rcar_canfd_rx_pkt()
1579 if ((priv->can.ctrlmode & CAN_CTRLMODE_FD) && in rcar_canfd_rx_pkt()
1601 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in rcar_canfd_rx_pkt()
1798 err = can_set_static_ctrlmode(ndev, CAN_CTRLMODE_FD); in rcar_canfd_channel_probe()
/linux/drivers/net/can/usb/
H A Dgs_usb.c889 if (ctrlmode & CAN_CTRLMODE_FD) { in gs_can_open()
971 if (ctrlmode & CAN_CTRLMODE_FD) in gs_can_open()
1296 dev->can.ctrlmode_supported |= CAN_CTRLMODE_FD; in gs_make_candev()
1502 if (parent->canch[i]->can.ctrlmode_supported & CAN_CTRLMODE_FD) { in gs_usb_probe()
H A Desd_usb.c1125 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in esd_usb_3_set_bittiming()
1219 priv->can.ctrlmode_supported |= CAN_CTRLMODE_FD; in esd_usb_probe_one_net()
/linux/drivers/net/can/rockchip/
H A Drockchip_canfd-rx.c234 !(priv->can.ctrlmode & CAN_CTRLMODE_FD)) { in rkcanfd_handle_rx_int_one()
H A Drockchip_canfd-core.c137 if (!(priv->can.ctrlmode & CAN_CTRLMODE_FD)) in rkcanfd_set_bittiming()
911 priv->can.ctrlmode_supported |= CAN_CTRLMODE_FD; in rkcanfd_probe()
/linux/drivers/net/can/m_can/
H A Dm_can.c1389 if (cdev->can.ctrlmode & CAN_CTRLMODE_FD) { in m_can_set_bittiming()
1529 if (cdev->can.ctrlmode & CAN_CTRLMODE_FD) in m_can_chip_config()
1541 if (cdev->can.ctrlmode & CAN_CTRLMODE_FD) in m_can_chip_config()
1730 CAN_CTRLMODE_FD | in m_can_dev_setup()
1857 if (cdev->can.ctrlmode & CAN_CTRLMODE_FD) { in m_can_tx_handler()
/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-core.c562 if (!(priv->can.ctrlmode & CAN_CTRLMODE_FD)) in mcp251xfd_set_bittiming()
660 else if (priv->can.ctrlmode & CAN_CTRLMODE_FD) in mcp251xfd_get_normal_mode()
2088 CAN_CTRLMODE_FD | CAN_CTRLMODE_FD_NON_ISO | in mcp251xfd_probe()
H A Dmcp251xfd.h690 return priv->can.ctrlmode & (CAN_CTRLMODE_LISTENONLY | CAN_CTRLMODE_FD); in mcp251xfd_is_fd_mode()
/linux/drivers/net/can/ctucanfd/
H A Dctucanfd_base.c338 mode_reg = (mode->flags & CAN_CTRLMODE_FD) ? in ctucan_set_mode()
1369 | CAN_CTRLMODE_FD in ctucan_probe_common()
/linux/drivers/net/can/usb/kvaser_usb/
H A Dkvaser_usb_hydra.c1696 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in kvaser_usb_hydra_set_data_bittiming()
1885 card_data->ctrlmode_supported |= CAN_CTRLMODE_FD; in kvaser_usb_hydra_get_software_details()
1978 (CAN_CTRLMODE_FD | CAN_CTRLMODE_FD_NON_ISO)) == in kvaser_usb_hydra_set_opt_mode()
H A Dkvaser_usb_core.c843 if (priv->can.ctrlmode_supported & CAN_CTRLMODE_FD) { in kvaser_usb_init_one()
/linux/drivers/net/can/
H A Dkvaser_pciefd.c580 if (can->can.ctrlmode & CAN_CTRLMODE_FD) { in kvaser_pciefd_setup_controller()
1000 CAN_CTRLMODE_FD | in kvaser_pciefd_setup_can_ctrls()
H A Dxilinx_can.c1983 priv->can.ctrlmode_supported |= CAN_CTRLMODE_FD | in xcan_probe()