Home
last modified time | relevance | path

Searched refs:smbus (Results 1 – 11 of 11) sorted by relevance

/drivers/i2c/busses/
Di2c-pasemi.c60 static inline void reg_write(struct pasemi_smbus *smbus, int reg, int val) in reg_write() argument
62 dev_dbg(&smbus->dev->dev, "smbus write reg %lx val %08x\n", in reg_write()
63 smbus->base + reg, val); in reg_write()
64 outl(val, smbus->base + reg); in reg_write()
67 static inline int reg_read(struct pasemi_smbus *smbus, int reg) in reg_read() argument
70 ret = inl(smbus->base + reg); in reg_read()
71 dev_dbg(&smbus->dev->dev, "smbus read reg %lx val %08x\n", in reg_read()
72 smbus->base + reg, ret); in reg_read()
76 #define TXFIFO_WR(smbus, reg) reg_write((smbus), REG_MTXFIFO, (reg)) argument
77 #define RXFIFO_RD(smbus) reg_read((smbus), REG_MRXFIFO) argument
[all …]
Di2c-amd8111.c71 static int amd_ec_wait_write(struct amd_smbus *smbus) in amd_ec_wait_write() argument
75 while ((inb(smbus->base + AMD_EC_SC) & AMD_EC_SC_IBF) && --timeout) in amd_ec_wait_write()
79 dev_warn(&smbus->dev->dev, in amd_ec_wait_write()
87 static int amd_ec_wait_read(struct amd_smbus *smbus) in amd_ec_wait_read() argument
91 while ((~inb(smbus->base + AMD_EC_SC) & AMD_EC_SC_OBF) && --timeout) in amd_ec_wait_read()
95 dev_warn(&smbus->dev->dev, in amd_ec_wait_read()
103 static int amd_ec_read(struct amd_smbus *smbus, unsigned char address, in amd_ec_read() argument
108 status = amd_ec_wait_write(smbus); in amd_ec_read()
111 outb(AMD_EC_CMD_RD, smbus->base + AMD_EC_CMD); in amd_ec_read()
113 status = amd_ec_wait_write(smbus); in amd_ec_read()
[all …]
Di2c-nforce2.c82 #define NVIDIA_SMB_PRTCL (smbus->base + 0x00) /* protocol, PEC */
83 #define NVIDIA_SMB_STS (smbus->base + 0x01) /* status */
84 #define NVIDIA_SMB_ADDR (smbus->base + 0x02) /* address */
85 #define NVIDIA_SMB_CMD (smbus->base + 0x03) /* command */
86 #define NVIDIA_SMB_DATA (smbus->base + 0x04) /* 32 data registers */
87 #define NVIDIA_SMB_BCNT (smbus->base + 0x24) /* number of data
89 #define NVIDIA_SMB_STATUS_ABRT (smbus->base + 0x3c) /* register used to
92 #define NVIDIA_SMB_CTRL (smbus->base + 0x3e) /* control register */
144 struct nforce2_smbus *smbus = adap->algo_data; in nforce2_abort() local
163 struct nforce2_smbus *smbus = adap->algo_data; in nforce2_check_status() local
[all …]
/drivers/input/mouse/
Dcyapa.c170 bool smbus = false; in cyapa_get_state() local
190 if (cyapa->smbus && (error == -ETIMEDOUT || error == -ENXIO)) { in cyapa_get_state()
194 smbus = true; in cyapa_get_state()
226 !smbus && even_addr) { in cyapa_get_state()
237 if (!smbus) { in cyapa_get_state()
251 } while (--retries > 0 && !smbus); in cyapa_get_state()
1279 cyapa->smbus = true; in cyapa_probe()
Dcyapa_gen3.c323 if (cyapa->smbus) { in cyapa_read_byte()
336 if (cyapa->smbus) { in cyapa_write_byte()
362 if (cyapa->smbus) { in cyapa_read_block()
Dcyapa.h329 bool smbus; member
/drivers/i2c/
DMakefile7 obj-$(CONFIG_I2C_SMBUS) += i2c-smbus.o
DKconfig94 will be called i2c-smbus.
/drivers/rtc/
Drtc-rs5c372.c100 unsigned smbus:1; member
128 if (rs5c->smbus) { in rs5c_get_regs()
597 rs5c372->smbus = smbus_mode; in rs5c372_probe()
/drivers/usb/host/
Dpci-quirks.c439 struct pci_dev *nb, *smbus; in usb_amd_dev_put() local
452 smbus = amd_chipset.smbus_dev; in usb_amd_dev_put()
464 pci_dev_put(smbus); in usb_amd_dev_put()
/drivers/platform/chrome/
DKconfig21 This driver instantiates i2c and smbus devices such as