• Home
  • Raw
  • Download

Lines Matching refs:mcr

203 	u32 mcr;		/* 0x00 */  member
347 reg = flexcan_read(&regs->mcr); in flexcan_chip_enable()
349 flexcan_write(reg, &regs->mcr); in flexcan_chip_enable()
351 while (timeout-- && (flexcan_read(&regs->mcr) & FLEXCAN_MCR_LPM_ACK)) in flexcan_chip_enable()
354 if (flexcan_read(&regs->mcr) & FLEXCAN_MCR_LPM_ACK) in flexcan_chip_enable()
366 reg = flexcan_read(&regs->mcr); in flexcan_chip_disable()
368 flexcan_write(reg, &regs->mcr); in flexcan_chip_disable()
370 while (timeout-- && !(flexcan_read(&regs->mcr) & FLEXCAN_MCR_LPM_ACK)) in flexcan_chip_disable()
373 if (!(flexcan_read(&regs->mcr) & FLEXCAN_MCR_LPM_ACK)) in flexcan_chip_disable()
385 reg = flexcan_read(&regs->mcr); in flexcan_chip_freeze()
387 flexcan_write(reg, &regs->mcr); in flexcan_chip_freeze()
389 while (timeout-- && !(flexcan_read(&regs->mcr) & FLEXCAN_MCR_FRZ_ACK)) in flexcan_chip_freeze()
392 if (!(flexcan_read(&regs->mcr) & FLEXCAN_MCR_FRZ_ACK)) in flexcan_chip_freeze()
404 reg = flexcan_read(&regs->mcr); in flexcan_chip_unfreeze()
406 flexcan_write(reg, &regs->mcr); in flexcan_chip_unfreeze()
408 while (timeout-- && (flexcan_read(&regs->mcr) & FLEXCAN_MCR_FRZ_ACK)) in flexcan_chip_unfreeze()
411 if (flexcan_read(&regs->mcr) & FLEXCAN_MCR_FRZ_ACK) in flexcan_chip_unfreeze()
422 flexcan_write(FLEXCAN_MCR_SOFTRST, &regs->mcr); in flexcan_chip_softreset()
423 while (timeout-- && (flexcan_read(&regs->mcr) & FLEXCAN_MCR_SOFTRST)) in flexcan_chip_softreset()
426 if (flexcan_read(&regs->mcr) & FLEXCAN_MCR_SOFTRST) in flexcan_chip_softreset()
807 flexcan_read(&regs->mcr), flexcan_read(&regs->ctrl)); in flexcan_set_bittiming()
845 reg_mcr = flexcan_read(&regs->mcr); in flexcan_chip_start()
851 flexcan_write(reg_mcr, &regs->mcr); in flexcan_chip_start()
950 flexcan_read(&regs->mcr), flexcan_read(&regs->ctrl)); in flexcan_chip_start()
1101 reg = flexcan_read(&regs->mcr); in register_flexcandev()
1104 flexcan_write(reg, &regs->mcr); in register_flexcandev()
1110 reg = flexcan_read(&regs->mcr); in register_flexcandev()