Lines Matching refs:SMB_CSR
24 #define SMB_CSR(a,r) ((long)(a->reg_base + r)) macro
35 while (csr_in32(SMB_CSR(adap, R_SMB_STATUS)) & M_SMB_BUSY) in smbus_xfer()
42 V_SMB_TT_QUICKCMD), SMB_CSR(adap, R_SMB_START)); in smbus_xfer()
47 SMB_CSR(adap, R_SMB_START)); in smbus_xfer()
50 csr_out32(V_SMB_CMD(command), SMB_CSR(adap, R_SMB_CMD)); in smbus_xfer()
52 SMB_CSR(adap, R_SMB_START)); in smbus_xfer()
56 csr_out32(V_SMB_CMD(command), SMB_CSR(adap, R_SMB_CMD)); in smbus_xfer()
59 SMB_CSR(adap, R_SMB_START)); in smbus_xfer()
63 SMB_CSR(adap, R_SMB_DATA)); in smbus_xfer()
65 SMB_CSR(adap, R_SMB_START)); in smbus_xfer()
69 csr_out32(V_SMB_CMD(command), SMB_CSR(adap, R_SMB_CMD)); in smbus_xfer()
72 SMB_CSR(adap, R_SMB_START)); in smbus_xfer()
76 SMB_CSR(adap, R_SMB_DATA)); in smbus_xfer()
78 SMB_CSR(adap, R_SMB_DATA)); in smbus_xfer()
80 SMB_CSR(adap, R_SMB_START)); in smbus_xfer()
87 while (csr_in32(SMB_CSR(adap, R_SMB_STATUS)) & M_SMB_BUSY) in smbus_xfer()
90 error = csr_in32(SMB_CSR(adap, R_SMB_STATUS)); in smbus_xfer()
93 csr_out32(M_SMB_ERROR, SMB_CSR(adap, R_SMB_STATUS)); in smbus_xfer()
98 data->byte = csr_in32(SMB_CSR(adap, R_SMB_DATA)) & 0xff; in smbus_xfer()
100 data->word = csr_in32(SMB_CSR(adap, R_SMB_DATA)) & 0xffff; in smbus_xfer()
130 csr_out32(speed, SMB_CSR(adap,R_SMB_FREQ)); in i2c_sibyte_add_bus()
131 csr_out32(0, SMB_CSR(adap,R_SMB_CONTROL)); in i2c_sibyte_add_bus()