Home
last modified time | relevance | path

Searched refs:SMB_CSR (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/i2c/busses/
Di2c-sibyte.c24 #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()
[all …]
/linux-6.1.9/arch/mips/sibyte/swarm/
Drtc_m41t81.c81 #define SMB_CSR(reg) IOADDR(A_SMB_REGISTER(1, reg)) macro
85 while (__raw_readq(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY) in m41t81_read()
88 __raw_writeq(addr & 0xff, SMB_CSR(R_SMB_CMD)); in m41t81_read()
90 SMB_CSR(R_SMB_START)); in m41t81_read()
92 while (__raw_readq(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY) in m41t81_read()
96 SMB_CSR(R_SMB_START)); in m41t81_read()
98 while (__raw_readq(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY) in m41t81_read()
101 if (__raw_readq(SMB_CSR(R_SMB_STATUS)) & M_SMB_ERROR) { in m41t81_read()
103 __raw_writeq(M_SMB_ERROR, SMB_CSR(R_SMB_STATUS)); in m41t81_read()
107 return __raw_readq(SMB_CSR(R_SMB_DATA)) & 0xff; in m41t81_read()
[all …]
Drtc_xicor1241.c56 #define SMB_CSR(reg) IOADDR(A_SMB_REGISTER(1, reg)) macro
60 while (__raw_readq(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY) in xicor_read()
63 __raw_writeq((addr >> 8) & 0x7, SMB_CSR(R_SMB_CMD)); in xicor_read()
64 __raw_writeq(addr & 0xff, SMB_CSR(R_SMB_DATA)); in xicor_read()
66 SMB_CSR(R_SMB_START)); in xicor_read()
68 while (__raw_readq(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY) in xicor_read()
72 SMB_CSR(R_SMB_START)); in xicor_read()
74 while (__raw_readq(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY) in xicor_read()
77 if (__raw_readq(SMB_CSR(R_SMB_STATUS)) & M_SMB_ERROR) { in xicor_read()
79 __raw_writeq(M_SMB_ERROR, SMB_CSR(R_SMB_STATUS)); in xicor_read()
[all …]
/linux-6.1.9/drivers/net/ethernet/marvell/
Dsky2.h1021 SMB_CSR = 0x0e44, /* 32 bit SMBus Control/Status Register */ enumerator