/linux-6.1.9/drivers/i2c/busses/ |
D | i2c-pasemi-core.c | 44 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 …]
|
D | i2c-amd8111.c | 68 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 …]
|
D | i2c-nforce2.c | 74 #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 …]
|
D | i2c-pasemi-platform.c | 19 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 …]
|
D | i2c-pasemi-pci.c | 28 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 …]
|
D | i2c-pasemi-core.h | 21 int pasemi_i2c_common_probe(struct pasemi_smbus *smbus);
|
D | i2c-mlxbf.c | 416 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()
|
D | i2c-stm32f7.c | 278 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/ |
D | stts751.txt | 8 - smbus-timeout-disable: when set, the smbus timeout function will be disabled
|
D | jedec,jc42.yaml | 56 smbus-timeout-disable: 58 When set, the smbus timeout function will be disabled. This is not
|
D | max6697.txt | 20 - smbus-timeout-disable 60 smbus-timeout-disable;
|
/linux-6.1.9/drivers/i2c/ |
D | Makefile | 8 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/ |
D | dev-interface.rst | 28 #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
|
D | index.rst | 15 smbus-protocol
|
/linux-6.1.9/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() 1273 cyapa->smbus = true; in cyapa_probe()
|
D | Makefile | 43 psmouse-$(CONFIG_MOUSE_PS2_SMBUS) += psmouse-smbus.o
|
D | cyapa_gen3.c | 281 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/ |
D | rtc-rs5c372.c | 128 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/ |
D | i2c.txt | 90 - smbus 95 - smbus-alert
|
/linux-6.1.9/drivers/usb/host/ |
D | pci-quirks.c | 515 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/ |
D | i2c.rst | 47 .. kernel-doc:: drivers/i2c/i2c-core-smbus.c
|
D | ipmb.rst | 78 If xmit of data to be done using raw i2c block vs smbus
|
/linux-6.1.9/include/trace/events/ |
D | smbus.h | 8 #define TRACE_SYSTEM smbus
|
/linux-6.1.9/arch/arm/boot/dts/ |
D | at91-nattis-2-natte-2.dts | 189 smbus-timeout-disable;
|
D | at91-tse850-3.dts | 204 smbus-timeout-disable;
|