Lines Matching refs:can
11 #include <linux/can.h>
12 #include <linux/can/dev.h>
13 #include <linux/can/error.h>
14 #include <linux/can/platform/sja1000.h>
138 struct can_priv can;
289 priv->can.state = CAN_STATE_STOPPED;
316 priv->can.state = CAN_STATE_ERROR_ACTIVE;
319 if (!(priv->can.ctrlmode &
328 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)
330 if (priv->can.ctrlmode & CAN_CTRLMODE_PRESUME_ACK)
464 if (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT &&
480 enum can_state can_state = priv->can.state;
528 priv->can.can_stats.bus_error++;
574 priv->can.can_stats.arbitration_lost++;
584 if (can_state != priv->can.state) {
640 if (priv->can.state != CAN_STATE_BUS_OFF &&
761 if (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT)
817 struct can_bittiming *bt = &priv->can.bittiming;
828 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES)
1149 port_priv->can.clock.freq = F81604_CAN_CLOCK;
1151 port_priv->can.termination_const = f81604_termination;
1152 port_priv->can.termination_const_cnt =
1154 port_priv->can.bittiming_const = &f81604_bittiming_const;
1155 port_priv->can.do_set_bittiming = f81604_set_bittiming;
1156 port_priv->can.do_set_mode = f81604_set_mode;
1157 port_priv->can.do_set_termination = f81604_set_termination;
1158 port_priv->can.do_get_berr_counter = f81604_get_berr_counter;
1159 port_priv->can.ctrlmode_supported =