• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/can/

Lines Matching refs:can

6  * This program is free software; you can redistribute it and/or modify it
20 #include <linux/can.h>
21 #include <linux/can/dev.h>
22 #include <linux/can/error.h>
132 * Copied from drivers/net/can/sja1000/sja1000.h
193 struct can_priv can;
922 * drivers/net/can/sja1000/sja1000.c file, and adapted as necessary
928 enum can_state state = mod->can.state;
933 /* we can only handle the SJA1000 part */
985 mod->can.can_stats.bus_error++;
1012 if (state != mod->can.state && (state == CAN_STATE_ERROR_WARNING ||
1016 mod->can.can_stats.error_warning++;
1021 mod->can.can_stats.error_passive++;
1031 mod->can.state = state;
1312 /* re-enable interrupts so we can send messages */
1376 if (mod->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)
1397 mod->can.state = CAN_STATE_ERROR_ACTIVE;
1410 mod->can.state = CAN_STATE_STOPPED;
1435 /* check that we can actually transmit */
1477 * emulate it the best we can using ECHO skbs. Get the next TX
1500 /* This structure was stolen from drivers/net/can/sja1000/sja1000.c */
1514 * This routine was stolen from drivers/net/can/sja1000/sja1000.c
1522 struct can_bittiming *bt = &mod->can.bittiming;
1529 if (mod->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES)
1559 mod->can.state = CAN_STATE_ERROR_ACTIVE;
1692 mod->can.clock.freq = ICAN3_CAN_CLOCK;
1693 mod->can.bittiming_const = &ican3_bittiming_const;
1694 mod->can.do_set_bittiming = ican3_set_bittiming;
1695 mod->can.do_set_mode = ican3_set_mode;
1696 mod->can.do_get_berr_counter = ican3_get_berr_counter;
1697 mod->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES