Lines Matching refs:TO_REG
17 #define TO_REG(x) (x >> 2) macro
19 #define APB2OPB_VERSION TO_REG(0x00)
20 #define APB2OPB_TRIGGER TO_REG(0x04)
22 #define APB2OPB_CONTROL TO_REG(0x08)
25 #define APB2OPB_OPB2FSI TO_REG(0x0c)
28 #define APB2OPB_OPB0_SEL TO_REG(0x10)
29 #define APB2OPB_OPB1_SEL TO_REG(0x28)
32 #define APB2OPB_OPB0_MODE TO_REG(0x14)
33 #define APB2OPB_OPB1_MODE TO_REG(0x2c)
36 #define APB2OPB_OPB0_XFER TO_REG(0x18)
37 #define APB2OPB_OPB1_XFER TO_REG(0x30)
41 #define APB2OPB_OPB0_ADDR TO_REG(0x1c)
42 #define APB2OPB_OPB0_WRITE_DATA TO_REG(0x20)
44 #define APB2OPB_OPB1_ADDR TO_REG(0x34)
45 #define APB2OPB_OPB1_WRITE_DATA TO_REG(0x38)
47 #define APB2OPB_IRQ_STS TO_REG(0x48)
51 #define APB2OPB_OPB0_WRITE_WORD_ENDIAN TO_REG(0x4c)
53 #define APB2OPB_OPB0_WRITE_BYTE_ENDIAN TO_REG(0x50)
55 #define APB2OPB_OPB1_WRITE_WORD_ENDIAN TO_REG(0x54)
56 #define APB2OPB_OPB1_WRITE_BYTE_ENDIAN TO_REG(0x58)
57 #define APB2OPB_OPB0_READ_BYTE_ENDIAN TO_REG(0x5c)
58 #define APB2OPB_OPB1_READ_BYTE_ENDIAN TO_REG(0x60)
61 #define APB2OPB_OPB0_READ_DATA TO_REG(0x84)
62 #define APB2OPB_OPB1_READ_DATA TO_REG(0x90)
99 unsigned int reg = TO_REG(addr); in fsi_aspeed_apb2opb_read()
117 unsigned int reg = TO_REG(addr); in fsi_aspeed_apb2opb_write()