Lines Matching refs:reg_addr
170 uint32_t reg_addr; member
202 return sys_read16(config->reg_addr + offs); in can_rcar_read16()
208 sys_write16(value, config->reg_addr + offs); in can_rcar_write16()
230 err_cnt->tx_err_cnt = sys_read8(config->reg_addr + RCAR_CAN_TECR); in can_rcar_get_error_count()
231 err_cnt->rx_err_cnt = sys_read8(config->reg_addr + RCAR_CAN_RECR); in can_rcar_get_error_count()
262 eifr = sys_read8(config->reg_addr + RCAR_CAN_EIFR); in can_rcar_error()
266 ecsr = sys_read8(config->reg_addr + RCAR_CAN_ECSR); in can_rcar_error()
270 config->reg_addr + RCAR_CAN_ECSR); in can_rcar_error()
275 config->reg_addr + RCAR_CAN_ECSR); in can_rcar_error()
280 config->reg_addr + RCAR_CAN_ECSR); in can_rcar_error()
285 config->reg_addr + RCAR_CAN_ECSR); in can_rcar_error()
290 config->reg_addr + RCAR_CAN_ECSR); in can_rcar_error()
295 config->reg_addr + RCAR_CAN_ECSR); in can_rcar_error()
300 config->reg_addr + RCAR_CAN_ECSR); in can_rcar_error()
304 config->reg_addr + RCAR_CAN_EIFR); in can_rcar_error()
310 config->reg_addr + RCAR_CAN_EIFR); in can_rcar_error()
317 config->reg_addr + RCAR_CAN_EIFR); in can_rcar_error()
322 sys_write8(RCAR_CAN_IER_ERSIE, config->reg_addr + RCAR_CAN_IER); in can_rcar_error()
325 config->reg_addr + RCAR_CAN_EIFR); in can_rcar_error()
330 sys_write8(RCAR_CAN_IER_ERSIE, config->reg_addr + RCAR_CAN_IER); in can_rcar_error()
333 config->reg_addr + RCAR_CAN_EIFR); in can_rcar_error()
340 config->reg_addr + RCAR_CAN_EIFR); in can_rcar_error()
345 config->reg_addr + RCAR_CAN_EIFR); in can_rcar_error()
350 config->reg_addr + RCAR_CAN_EIFR); in can_rcar_error()
391 val = sys_read32(config->reg_addr + RCAR_CAN_MB_60); in can_rcar_rx_isr()
399 frame.dlc = sys_read16(config->reg_addr + in can_rcar_rx_isr()
413 frame.data[i] = sys_read8(config->reg_addr + in can_rcar_rx_isr()
419 frame.timestamp = sys_read8(config->reg_addr + in can_rcar_rx_isr()
422 frame.timestamp |= sys_read8(config->reg_addr + in can_rcar_rx_isr()
426 sys_write8(0xff, config->reg_addr + RCAR_CAN_RFPCR); in can_rcar_rx_isr()
437 isr = sys_read8(config->reg_addr + RCAR_CAN_ISR); in can_rcar_isr()
441 sys_write8(isr, config->reg_addr + RCAR_CAN_ISR); in can_rcar_isr()
447 unsent = sys_read8(config->reg_addr + RCAR_CAN_TFCR); in can_rcar_isr()
457 isr = sys_read8(config->reg_addr + RCAR_CAN_ISR); in can_rcar_isr()
459 sys_write8(isr, config->reg_addr + RCAR_CAN_ISR); in can_rcar_isr()
463 while (!(sys_read8(config->reg_addr + RCAR_CAN_RFCR) in can_rcar_isr()
468 isr = sys_read8(config->reg_addr + RCAR_CAN_ISR); in can_rcar_isr()
470 sys_write8(isr, config->reg_addr + RCAR_CAN_ISR); in can_rcar_isr()
557 sys_write8(RCAR_CAN_RFCR_RFE, config->reg_addr + RCAR_CAN_RFCR); in can_rcar_enter_operation_mode()
558 sys_write8(RCAR_CAN_TFCR_TFE, config->reg_addr + RCAR_CAN_TFCR); in can_rcar_enter_operation_mode()
643 sys_write8((uint8_t)~RCAR_CAN_TFCR_TFE, config->reg_addr + RCAR_CAN_TFCR); in can_rcar_stop()
644 sys_write8(RCAR_CAN_TFCR_TFE, config->reg_addr + RCAR_CAN_TFCR); in can_rcar_stop()
693 sys_write8(tcr, config->reg_addr + RCAR_CAN_TCR); in can_rcar_set_mode()
738 config->reg_addr + RCAR_CAN_BCR); in can_rcar_set_bittiming()
768 regs[i].value = sys_read8(config->reg_addr + regs[i].address); in can_rcar_set_timing()
788 sys_write8(regs[i].value, config->reg_addr + regs[i].address); in can_rcar_set_timing()
931 sys_write32(identifier, config->reg_addr + RCAR_CAN_MB_56); in can_rcar_send()
933 sys_write16(frame->dlc, config->reg_addr in can_rcar_send()
938 sys_write8(frame->data[i], config->reg_addr in can_rcar_send()
948 sys_write8(0xff, config->reg_addr + RCAR_CAN_TFPCR); in can_rcar_send()
1108 sys_write32(0, config->reg_addr + RCAR_CAN_MKR8); in can_rcar_init()
1109 sys_write32(0, config->reg_addr + RCAR_CAN_MKR9); in can_rcar_init()
1111 sys_write32(0, config->reg_addr + RCAR_CAN_MKIVLR0); in can_rcar_init()
1112 sys_write32(0, config->reg_addr + RCAR_CAN_MKIVLR1); in can_rcar_init()
1116 sys_write32(0, config->reg_addr + RCAR_CAN_FIDCR0); in can_rcar_init()
1118 config->reg_addr + RCAR_CAN_FIDCR1); in can_rcar_init()
1122 config->reg_addr + RCAR_CAN_MIER1); in can_rcar_init()
1125 config->reg_addr + RCAR_CAN_IER); in can_rcar_init()
1128 sys_write8(RCAR_CAN_ECSR_EDPM, config->reg_addr + RCAR_CAN_ECSR); in can_rcar_init()
1131 sys_write8(0xFF, config->reg_addr + RCAR_CAN_EIER); in can_rcar_init()
1191 .reg_addr = DT_INST_REG_ADDR(n), \