Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/i2c/busses/
Di2c-pasemi-core.c44 static inline void reg_write(struct pasemi_smbus *smbus, int reg, int val) in reg_write() argument
46 dev_dbg(smbus->dev, "smbus write reg %x val %08x\n", reg, val); in reg_write()
47 iowrite32(val, smbus->ioaddr + reg); in reg_write()
50 static inline int reg_read(struct pasemi_smbus *smbus, int reg) in reg_read() argument
53 ret = ioread32(smbus->ioaddr + reg); in reg_read()
54 dev_dbg(smbus->dev, "smbus read reg %x val %08x\n", reg, ret); in reg_read()
58 #define TXFIFO_WR(smbus, reg) reg_write((smbus), REG_MTXFIFO, (reg)) argument
59 #define RXFIFO_RD(smbus) reg_read((smbus), REG_MRXFIFO) argument
61 static void pasemi_reset(struct pasemi_smbus *smbus) in pasemi_reset() argument
63 u32 val = (CTL_MTR | CTL_MRR | (smbus->clk_div & CTL_CLK_M)); in pasemi_reset()
[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-pasemi-platform.c19 struct pasemi_smbus smbus; member
32 data->smbus.clk_div = DIV_ROUND_UP(clk_rate, 16 * frequency); in pasemi_platform_i2c_calc_clk_div()
33 if (data->smbus.clk_div < 4) in pasemi_platform_i2c_calc_clk_div()
34 return dev_err_probe(data->smbus.dev, -EINVAL, in pasemi_platform_i2c_calc_clk_div()
37 if (data->smbus.clk_div > 0xff) in pasemi_platform_i2c_calc_clk_div()
38 return dev_err_probe(data->smbus.dev, -EINVAL, in pasemi_platform_i2c_calc_clk_div()
49 struct pasemi_smbus *smbus; in pasemi_platform_i2c_probe() local
58 smbus = &data->smbus; in pasemi_platform_i2c_probe()
59 smbus->dev = dev; in pasemi_platform_i2c_probe()
61 smbus->ioaddr = devm_platform_ioremap_resource(pdev, 0); in pasemi_platform_i2c_probe()
[all …]
Di2c-pasemi-pci.c28 struct pasemi_smbus *smbus; in pasemi_smb_pci_probe() local
36 smbus = devm_kzalloc(&dev->dev, sizeof(*smbus), GFP_KERNEL); in pasemi_smb_pci_probe()
37 if (!smbus) in pasemi_smb_pci_probe()
40 smbus->dev = &dev->dev; in pasemi_smb_pci_probe()
43 smbus->clk_div = CLK_100K_DIV; in pasemi_smb_pci_probe()
49 smbus->hw_rev = PASEMI_HW_REV_PCI; in pasemi_smb_pci_probe()
55 smbus->ioaddr = pcim_iomap(dev, 0, 0); in pasemi_smb_pci_probe()
56 if (!smbus->ioaddr) in pasemi_smb_pci_probe()
59 smbus->adapter.class = I2C_CLASS_HWMON | I2C_CLASS_SPD; in pasemi_smb_pci_probe()
60 error = pasemi_i2c_common_probe(smbus); in pasemi_smb_pci_probe()
[all …]
Di2c-pasemi-core.h21 int pasemi_i2c_common_probe(struct pasemi_smbus *smbus);
Di2c-mlxbf.c416 struct mlxbf_i2c_resource *smbus; member
2324 ret = mlxbf_i2c_init_resource(pdev, &priv->smbus, in mlxbf_i2c_probe()
2331 priv->timer->io = priv->smbus->io; in mlxbf_i2c_probe()
2332 priv->mst->io = priv->smbus->io + MLXBF_I2C_MST_ADDR_OFFSET; in mlxbf_i2c_probe()
2333 priv->slv->io = priv->smbus->io + MLXBF_I2C_SLV_ADDR_OFFSET; in mlxbf_i2c_probe()
2443 params = priv->smbus->params; in mlxbf_i2c_remove()
Di2c-stm32f7.c278 bool smbus; member
1552 } else if (f7_msg->smbus) { in stm32f7_i2c_isr_event()
1562 if (f7_msg->smbus) in stm32f7_i2c_isr_event()
1594 if (f7_msg->smbus) { in stm32f7_i2c_isr_event_thread()
1685 f7_msg->smbus = false; in stm32f7_i2c_xfer()
1745 f7_msg->smbus = true; in stm32f7_i2c_smbus_xfer()
/linux-6.1.9/Documentation/devicetree/bindings/hwmon/
Dstts751.txt8 - smbus-timeout-disable: when set, the smbus timeout function will be disabled
Djedec,jc42.yaml56 smbus-timeout-disable:
58 When set, the smbus timeout function will be disabled. This is not
Dmax6697.txt20 - smbus-timeout-disable
60 smbus-timeout-disable;
/linux-6.1.9/drivers/i2c/
DMakefile8 i2c-core-objs := i2c-core-base.o i2c-core-smbus.o
13 obj-$(CONFIG_I2C_SMBUS) += i2c-smbus.o
/linux-6.1.9/Documentation/i2c/
Ddev-interface.rst28 #include <i2c/smbus.h>
151 You can do SMBus level transactions (see documentation file smbus-protocol.rst
201 performs an SMBus transaction using i2c-core-smbus.c:i2c_smbus_xfer().
214 i2c-core-smbus.c:i2c_smbus_xfer() calls either
216 i2c-core-smbus.c:i2c_smbus_xfer_emulated() which in turn calls
Dindex.rst15 smbus-protocol
/linux-6.1.9/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()
1273 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()
/linux-6.1.9/drivers/rtc/
Drtc-rs5c372.c128 unsigned smbus:1; member
156 if (rs5c->smbus) { in rs5c_get_regs()
837 rs5c372->smbus = smbus_mode; in rs5c372_probe()
/linux-6.1.9/Documentation/devicetree/bindings/i2c/
Di2c.txt90 - smbus
95 - smbus-alert
/linux-6.1.9/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()
/linux-6.1.9/Documentation/driver-api/
Di2c.rst47 .. kernel-doc:: drivers/i2c/i2c-core-smbus.c
Dipmb.rst78 If xmit of data to be done using raw i2c block vs smbus
/linux-6.1.9/include/trace/events/
Dsmbus.h8 #define TRACE_SYSTEM smbus
/linux-6.1.9/arch/arm/boot/dts/
Dat91-nattis-2-natte-2.dts189 smbus-timeout-disable;
Dat91-tse850-3.dts204 smbus-timeout-disable;

12