Searched refs:can_base_addr (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/tests/qtest/ |
H A D | xlnx-canfd-test.c | 183 static void read_data(QTestState *qts, uint64_t can_base_addr, uint32_t *buf_rx, in read_data() argument 192 int_status = qtest_readl(qts, can_base_addr + R_ISR_OFFSET) & ISR_RXOK; in read_data() 197 fifo_status_reg_value = qtest_readl(qts, can_base_addr + in read_data() 207 buf_rx[0] = qtest_readl(qts, can_base_addr + R_RX0_ID_OFFSET); in read_data() 208 buf_rx[1] = qtest_readl(qts, can_base_addr + R_RX0_DLC_OFFSET); in read_data() 212 can_base_addr + R_RX0_DATA1_OFFSET + 4 * i); in read_data() 219 static void write_data(QTestState *qts, uint64_t can_base_addr, in write_data() argument 223 qtest_writel(qts, can_base_addr + R_TXID_OFFSET, buf_tx[0]); in write_data() 224 qtest_writel(qts, can_base_addr + R_TXDLC_OFFSET, buf_tx[1]); in write_data() 228 qtest_writel(qts, can_base_addr + R_TXDATA1_OFFSET + 4 * i, in write_data() [all …]
|
H A D | xlnx-can-test.c | 89 static void read_data(QTestState *qts, uint64_t can_base_addr, uint32_t *buf_rx) in read_data() argument 94 int_status = qtest_readl(qts, can_base_addr + R_ISR_OFFSET) & ISR_RXOK; in read_data() 99 buf_rx[0] = qtest_readl(qts, can_base_addr + R_RXID_OFFSET); in read_data() 100 buf_rx[1] = qtest_readl(qts, can_base_addr + R_RXDLC_OFFSET); in read_data() 101 buf_rx[2] = qtest_readl(qts, can_base_addr + R_RXDATA1_OFFSET); in read_data() 102 buf_rx[3] = qtest_readl(qts, can_base_addr + R_RXDATA2_OFFSET); in read_data() 108 static void send_data(QTestState *qts, uint64_t can_base_addr, in send_data() argument 114 qtest_writel(qts, can_base_addr + R_TXID_OFFSET, buf_tx[0]); in send_data() 115 qtest_writel(qts, can_base_addr + R_TXDLC_OFFSET, buf_tx[1]); in send_data() 116 qtest_writel(qts, can_base_addr + R_TXDATA1_OFFSET, buf_tx[2]); in send_data() [all …]
|