Lines Matching refs:ir

630 	uint32_t ir;  in can_mcan_line_0_isr()  local
633 err = can_mcan_read_reg(dev, CAN_MCAN_IR, &ir); in can_mcan_line_0_isr()
638 while ((ir & events) != 0U) { in can_mcan_line_0_isr()
639 err = can_mcan_write_reg(dev, CAN_MCAN_IR, ir & events); in can_mcan_line_0_isr()
644 if ((ir & (CAN_MCAN_IR_BO | CAN_MCAN_IR_EP | CAN_MCAN_IR_EW)) != 0U) { in can_mcan_line_0_isr()
649 if ((ir & CAN_MCAN_IR_TEFN) != 0U) { in can_mcan_line_0_isr()
653 if ((ir & CAN_MCAN_IR_TEFL) != 0U) { in can_mcan_line_0_isr()
658 if ((ir & CAN_MCAN_IR_ARA) != 0U) { in can_mcan_line_0_isr()
662 if ((ir & CAN_MCAN_IR_MRAF) != 0U) { in can_mcan_line_0_isr()
667 if ((ir & (CAN_MCAN_IR_PEA | CAN_MCAN_IR_PED)) != 0U) { in can_mcan_line_0_isr()
674 err = can_mcan_read_reg(dev, CAN_MCAN_IR, &ir); in can_mcan_line_0_isr()
797 uint32_t ir; in can_mcan_line_1_isr() local
800 err = can_mcan_read_reg(dev, CAN_MCAN_IR, &ir); in can_mcan_line_1_isr()
805 if ((ir & CAN_MCAN_IR_PEA) != 0U) { in can_mcan_line_1_isr()
806 LOG_DBG("Protocol error in arbitration phase: ir: 0x%x", ir); in can_mcan_line_1_isr()
809 if ((ir & CAN_MCAN_IR_PED) != 0U) { in can_mcan_line_1_isr()
810 LOG_DBG("Protocol error in data phase: ir: 0x%x", ir); in can_mcan_line_1_isr()
813 while ((ir & events) != 0U) { in can_mcan_line_1_isr()
814 err = can_mcan_write_reg(dev, CAN_MCAN_IR, events & ir); in can_mcan_line_1_isr()
819 if ((ir & CAN_MCAN_IR_RF0N) != 0U) { in can_mcan_line_1_isr()
825 if ((ir & CAN_MCAN_IR_RF1N) != 0U) { in can_mcan_line_1_isr()
831 if ((ir & CAN_MCAN_IR_RF0L) != 0U) { in can_mcan_line_1_isr()
836 if ((ir & CAN_MCAN_IR_RF1L) != 0U) { in can_mcan_line_1_isr()
841 err = can_mcan_read_reg(dev, CAN_MCAN_IR, &ir); in can_mcan_line_1_isr()