Lines Matching refs:ctlr

476 	uint16_t ctlr, str;  in can_rcar_leave_sleep_mode()  local
479 ctlr = can_rcar_read16(config, RCAR_CAN_CTLR); in can_rcar_leave_sleep_mode()
480 ctlr &= ~RCAR_CAN_CTLR_SLPM; in can_rcar_leave_sleep_mode()
481 can_rcar_write16(config, RCAR_CAN_CTLR, ctlr); in can_rcar_leave_sleep_mode()
493 uint16_t ctlr; in can_rcar_enter_reset_mode() local
496 ctlr = can_rcar_read16(config, RCAR_CAN_CTLR); in can_rcar_enter_reset_mode()
497 ctlr &= ~RCAR_CAN_CTLR_CANM_MASK; in can_rcar_enter_reset_mode()
498 ctlr |= RCAR_CAN_CTLR_CANM_RESET; in can_rcar_enter_reset_mode()
500 ctlr |= RCAR_CAN_CTLR_CANM_HALT; in can_rcar_enter_reset_mode()
502 can_rcar_write16(config, RCAR_CAN_CTLR, ctlr); in can_rcar_enter_reset_mode()
513 uint16_t ctlr; in can_rcar_enter_halt_mode() local
516 ctlr = can_rcar_read16(config, RCAR_CAN_CTLR); in can_rcar_enter_halt_mode()
517 ctlr &= ~RCAR_CAN_CTLR_CANM_MASK; in can_rcar_enter_halt_mode()
518 ctlr |= RCAR_CAN_CTLR_CANM_HALT; in can_rcar_enter_halt_mode()
519 can_rcar_write16(config, RCAR_CAN_CTLR, ctlr); in can_rcar_enter_halt_mode()
535 uint16_t ctlr, str; in can_rcar_enter_operation_mode() local
538 ctlr = can_rcar_read16(config, RCAR_CAN_CTLR); in can_rcar_enter_operation_mode()
539 ctlr &= ~RCAR_CAN_CTLR_CANM_MASK; in can_rcar_enter_operation_mode()
540 can_rcar_write16(config, RCAR_CAN_CTLR, ctlr); in can_rcar_enter_operation_mode()
696 uint16_t ctlr = can_rcar_read16(config, RCAR_CAN_CTLR); in can_rcar_set_mode() local
700 ctlr |= RCAR_CAN_CTLR_BOM_ENT; in can_rcar_set_mode()
703 ctlr &= ~RCAR_CAN_CTLR_BOM_ENT; in can_rcar_set_mode()
706 can_rcar_write16(config, RCAR_CAN_CTLR, ctlr); in can_rcar_set_mode()
1014 uint16_t ctlr; in can_rcar_init() local
1099 ctlr = can_rcar_read16(config, RCAR_CAN_CTLR); in can_rcar_init()
1100 ctlr |= RCAR_CAN_CTLR_IDFM_MIXED; /* Select mixed ID mode */ in can_rcar_init()
1101 ctlr &= ~RCAR_CAN_CTLR_BOM_ENT; /* Clear entry to halt automatically at bus-off */ in can_rcar_init()
1102 ctlr |= RCAR_CAN_CTLR_MBM; /* Select FIFO mailbox mode */ in can_rcar_init()
1103 ctlr |= RCAR_CAN_CTLR_MLM; /* Overrun mode */ in can_rcar_init()
1104 ctlr &= ~RCAR_CAN_CTLR_SLPM; /* Clear CAN Sleep mode */ in can_rcar_init()
1105 can_rcar_write16(config, RCAR_CAN_CTLR, ctlr); in can_rcar_init()