Searched refs:smbus (Results 1 – 11 of 11) sorted by relevance
/drivers/i2c/busses/ |
D | i2c-pasemi.c | 60 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 …]
|
D | i2c-amd8111.c | 71 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 …]
|
D | i2c-nforce2.c | 82 #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/ |
D | cyapa.c | 170 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()
|
D | cyapa_gen3.c | 323 if (cyapa->smbus) { in cyapa_read_byte() 336 if (cyapa->smbus) { in cyapa_write_byte() 362 if (cyapa->smbus) { in cyapa_read_block()
|
D | cyapa.h | 329 bool smbus; member
|
/drivers/i2c/ |
D | Makefile | 7 obj-$(CONFIG_I2C_SMBUS) += i2c-smbus.o
|
D | Kconfig | 94 will be called i2c-smbus.
|
/drivers/rtc/ |
D | rtc-rs5c372.c | 100 unsigned smbus:1; member 128 if (rs5c->smbus) { in rs5c_get_regs() 597 rs5c372->smbus = smbus_mode; in rs5c372_probe()
|
/drivers/usb/host/ |
D | pci-quirks.c | 439 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/ |
D | Kconfig | 21 This driver instantiates i2c and smbus devices such as
|