Home
last modified time | relevance | path

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

/drivers/i2c/busses/
Di2c-pasemi.c52 static inline void reg_write(struct pasemi_smbus *smbus, int reg, int val) in reg_write() argument
54 dev_dbg(&smbus->dev->dev, "smbus write reg %lx val %08x\n", in reg_write()
55 smbus->base + reg, val); in reg_write()
56 outl(val, smbus->base + reg); in reg_write()
59 static inline int reg_read(struct pasemi_smbus *smbus, int reg) in reg_read() argument
62 ret = inl(smbus->base + reg); in reg_read()
63 dev_dbg(&smbus->dev->dev, "smbus read reg %lx val %08x\n", in reg_read()
64 smbus->base + reg, ret); in reg_read()
68 #define TXFIFO_WR(smbus, reg) reg_write((smbus), REG_MTXFIFO, (reg)) argument
69 #define RXFIFO_RD(smbus) reg_read((smbus), REG_MRXFIFO) argument
[all …]
Di2c-amd8111.c68 static int amd_ec_wait_write(struct amd_smbus *smbus) in amd_ec_wait_write() argument
72 while ((inb(smbus->base + AMD_EC_SC) & AMD_EC_SC_IBF) && --timeout) in amd_ec_wait_write()
76 dev_warn(&smbus->dev->dev, in amd_ec_wait_write()
84 static int amd_ec_wait_read(struct amd_smbus *smbus) in amd_ec_wait_read() argument
88 while ((~inb(smbus->base + AMD_EC_SC) & AMD_EC_SC_OBF) && --timeout) in amd_ec_wait_read()
92 dev_warn(&smbus->dev->dev, in amd_ec_wait_read()
100 static int amd_ec_read(struct amd_smbus *smbus, unsigned char address, in amd_ec_read() argument
105 status = amd_ec_wait_write(smbus); in amd_ec_read()
108 outb(AMD_EC_CMD_RD, smbus->base + AMD_EC_CMD); in amd_ec_read()
110 status = amd_ec_wait_write(smbus); in amd_ec_read()
[all …]
Di2c-nforce2.c74 #define NVIDIA_SMB_PRTCL (smbus->base + 0x00) /* protocol, PEC */
75 #define NVIDIA_SMB_STS (smbus->base + 0x01) /* status */
76 #define NVIDIA_SMB_ADDR (smbus->base + 0x02) /* address */
77 #define NVIDIA_SMB_CMD (smbus->base + 0x03) /* command */
78 #define NVIDIA_SMB_DATA (smbus->base + 0x04) /* 32 data registers */
79 #define NVIDIA_SMB_BCNT (smbus->base + 0x24) /* number of data
81 #define NVIDIA_SMB_STATUS_ABRT (smbus->base + 0x3c) /* register used to
84 #define NVIDIA_SMB_CTRL (smbus->base + 0x3e) /* control register */
136 struct nforce2_smbus *smbus = adap->algo_data; in nforce2_abort() local
155 struct nforce2_smbus *smbus = adap->algo_data; in nforce2_check_status() local
[all …]
Di2c-mlxbf.c428 struct mlxbf_i2c_resource *smbus; member
518 if (mlxbf_smbus_poll(priv->smbus->io, addr, mask, true, timeout)) in mlxbf_smbus_master_wait_for_idle()
529 if (mlxbf_smbus_poll(priv->smbus->io, MLXBF_I2C_SMBUS_MASTER_GW, in mlxbf_i2c_smbus_master_lock()
540 writel(0, priv->smbus->io + MLXBF_I2C_SMBUS_MASTER_GW); in mlxbf_i2c_smbus_master_unlock()
580 mlxbf_smbus_poll(priv->smbus->io, MLXBF_I2C_SMBUS_MASTER_GW, in mlxbf_i2c_smbus_check_status()
593 master_status_bits = readl(priv->smbus->io + in mlxbf_i2c_smbus_check_status()
635 iowrite32be(data32, priv->smbus->io + addr + offset); in mlxbf_i2c_smbus_write_data()
656 data32 = ioread32be(priv->smbus->io + addr + offset); in mlxbf_i2c_smbus_read_data()
663 data32 = ioread32be(priv->smbus->io + addr + offset); in mlxbf_i2c_smbus_read_data()
689 writel(0x0, priv->smbus->io + MLXBF_I2C_SMBUS_MASTER_STATUS); in mlxbf_i2c_smbus_enable()
[all …]
Di2c-stm32f7.c280 bool smbus; member
1538 } else if (f7_msg->smbus) { in stm32f7_i2c_isr_event()
1548 if (f7_msg->smbus) in stm32f7_i2c_isr_event()
1580 if (f7_msg->smbus) { in stm32f7_i2c_isr_event_thread()
1661 f7_msg->smbus = false; in stm32f7_i2c_xfer()
1718 f7_msg->smbus = true; in stm32f7_i2c_smbus_xfer()
DKconfig211 tristate "Intel Cherry Trail Whiskey Cove PMIC smbus controller"
/drivers/i2c/
DMakefile8 i2c-core-objs := i2c-core-base.o i2c-core-smbus.o
13 obj-$(CONFIG_I2C_SMBUS) += i2c-smbus.o
DKconfig96 will be called i2c-smbus.
/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()
1274 cyapa->smbus = true; in cyapa_probe()
DMakefile43 psmouse-$(CONFIG_MOUSE_PS2_SMBUS) += psmouse-smbus.o
Dcyapa_gen3.c281 if (cyapa->smbus) { in cyapa_read_byte()
294 if (cyapa->smbus) { in cyapa_write_byte()
320 if (cyapa->smbus) { in cyapa_read_block()
Dcyapa.h341 bool smbus; member
/drivers/rtc/
Drtc-rs5c372.c126 unsigned smbus:1; member
154 if (rs5c->smbus) { in rs5c_get_regs()
658 rs5c372->smbus = smbus_mode; in rs5c372_probe()
/drivers/usb/host/
Dpci-quirks.c515 struct pci_dev *nb, *smbus; in usb_amd_dev_put() local
528 smbus = amd_chipset.smbus_dev; in usb_amd_dev_put()
540 pci_dev_put(smbus); in usb_amd_dev_put()
/drivers/platform/chrome/
DKconfig22 This driver instantiates i2c and smbus devices such as