Lines Matching defs:mode
87 #define XCAN_MSR_LBACK_MASK 0x00000002 /* Loop back mode select */
88 #define XCAN_MSR_SLEEP_MASK 0x00000001 /* Sleep mode select */
106 #define XCAN_SR_NORMAL_MASK 0x00000008 /* Normal mode */
107 #define XCAN_SR_LBACK_MASK 0x00000002 /* Loop back mode */
108 #define XCAN_SR_CONFIG_MASK 0x00000001 /* Configuration mode */
352 * set_reset_mode - Resets the CAN device mode
355 * This is the driver reset mode routine.The driver
356 * enters into configuration mode.
370 netdev_warn(ndev, "timed out for config mode\n");
398 /* Check whether Xilinx CAN is in configuration mode.
399 * It cannot set bit timing if Xilinx CAN is not in configuration mode.
405 "BUG! Cannot set bittiming - CAN is not in config mode\n");
455 * the CAN device into a proper mode.
466 /* Check if it is in reset mode */
492 /* Check whether it is loopback mode or normal mode */
515 * xcan_do_set_mode - This sets the mode of the driver
517 * @mode: Tells the mode of the driver
524 static int xcan_do_set_mode(struct net_device *ndev, enum can_mode mode)
528 switch (mode) {
636 * xcan_start_xmit_fifo - Starts the transmission (FIFO mode)
670 * xcan_start_xmit_mailbox - Starts the transmission (mailbox mode)
1317 * IRQ_NONE - If CAN device is in sleep mode, IRQ_HANDLED otherwise
1367 * interrupts and put the device into configuration mode.
1374 /* Disable interrupts and leave the can in configuration mode */
1408 /* Set chip into reset mode */
1411 netdev_err(ndev, "mode resetting failed!\n");
1506 * Put the driver into low power mode.
1558 * Put the driver into low power mode.
1704 "missing rx-fifo-depth property (mailbox mode is not supported)\n");