| /linux/drivers/i2c/busses/ |
| H A D | i2c-pasemi-core.c | 63 static inline void reg_write(struct pasemi_smbus *smbus, int reg, int val) in reg_write() argument 65 dev_dbg(smbus->dev, "smbus write reg %x val %08x\n", reg, val); in reg_write() 66 iowrite32(val, smbus->ioaddr + reg); in reg_write() 69 static inline int reg_read(struct pasemi_smbus *smbus, int reg) in reg_read() argument 72 ret = ioread32(smbus->ioaddr + reg); in reg_read() 73 dev_dbg(smbus->dev, "smbus read reg %x val %08x\n", reg, ret); in reg_read() 77 #define TXFIFO_WR(smbus, reg) reg_write((smbus), REG_MTXFIFO, (reg)) argument 78 #define RXFIFO_RD(smbus) reg_read((smbus), REG_MRXFIFO) argument 80 static void pasemi_reset(struct pasemi_smbus *smbus) in pasemi_reset() argument 82 u32 val = (CTL_MTR | CTL_MRR | CTL_UJM | (smbus->clk_div & CTL_CLK_M)); in pasemi_reset() [all …]
|
| H A 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 …]
|
| H A 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 */ 122 struct nforce2_smbus *smbus = adap->algo_data; in nforce2_abort() local 141 struct nforce2_smbus *smbus = adap->algo_data; in nforce2_check_status() local [all …]
|
| H A 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 59 smbus = &data->smbus; in pasemi_platform_i2c_probe() 60 smbus->dev = dev; in pasemi_platform_i2c_probe() 62 smbus->ioaddr = devm_platform_ioremap_resource(pdev, 0); in pasemi_platform_i2c_probe() [all …]
|
| H A 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; in pasemi_smb_pci_probe() 60 error = pasemi_i2c_common_probe(smbus); in pasemi_smb_pci_probe() [all …]
|
| H A D | i2c-pasemi-core.h | 24 int pasemi_i2c_common_probe(struct pasemi_smbus *smbus);
|
| H A D | i2c-mlxbf.c | 413 struct mlxbf_i2c_resource *smbus; 705 * Try to acquire the smbus gw lock before any reads of the GW register since in mlxbf_i2c_smbus_start_transaction() 1813 * Send byte to 'external' smbus master. This function is executed when in mlxbf_i2c_get_slave_from_addr() 1814 * an external smbus master wants to read data from the BlueField. in mlxbf_i2c_get_slave_from_addr() 1912 * Receive bytes from 'external' smbus master. This function is executed when in mlxbf_i2c_irq_send() 1913 * an external smbus master wants to write data to the BlueField. in mlxbf_i2c_irq_send() 1938 * Notify the slave backend that an smbus master wants to write data in mlxbf_i2c_irq_recv() 2041 dev_dbg(&adap->dev, "smbus quick, slave 0x%02x\n", addr); in mlxbf_i2c_smbus_xfer() 2048 dev_dbg(&adap->dev, "smbus %s byte, slave 0x%02x.\n", in mlxbf_i2c_smbus_xfer() 2055 dev_dbg(&adap->dev, "smbus in mlxbf_i2c_smbus_xfer() 420 struct mlxbf_i2c_resource *smbus; global() member [all...] |
| H A D | i2c-stm32f7.c | 284 bool smbus; member 751 if (!f7_msg->smbus) in stm32f7_i2c_dma_callback() 1636 if (f7_msg->smbus) in stm32f7_i2c_isr_event_thread() 1656 } else if (f7_msg->smbus) { in stm32f7_i2c_isr_event_thread() 1721 f7_msg->smbus = false; in stm32f7_i2c_xfer_core() 1802 f7_msg->smbus = true; in stm32f7_i2c_smbus_xfer()
|
| /linux/drivers/i2c/ |
| H A D | Makefile | 8 i2c-core-y := i2c-core-base.o i2c-core-smbus.o 14 obj-$(CONFIG_I2C_SMBUS) += i2c-smbus.o
|
| H A D | Kconfig | 97 will be called i2c-smbus.
|
| /linux/Documentation/devicetree/bindings/hwmon/ |
| H A D | max6697.txt | 20 - smbus-timeout-disable 60 smbus-timeout-disable;
|
| /linux/Documentation/i2c/ |
| H A 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
|
| H A D | index.rst | 15 smbus-protocol
|
| /linux/drivers/input/mouse/ |
| H A D | cyapa.c | 170 bool smbus = false; in cyapa_get_state() local 186 * On smbus systems in OP mode, the i2c_reg_read will fail with in cyapa_get_state() 187 * -ETIMEDOUT. In this case, try again using the smbus equivalent in cyapa_get_state() 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() 1264 /* i2c isn't supported, use smbus */ in cyapa_probe() 1266 cyapa->smbus in cyapa_probe() [all...] |
| H A D | Makefile | 41 psmouse-$(CONFIG_MOUSE_PS2_SMBUS) += psmouse-smbus.o
|
| H A 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()
|
| H A D | cyapa.h | 341 bool smbus; member
|
| /linux/drivers/rtc/ |
| H A 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/drivers/usb/host/ |
| H A D | pci-quirks.c | 471 struct pci_dev *nb, *smbus; in usb_amd_dev_put() local 484 smbus = amd_chipset.smbus_dev; in usb_amd_dev_put() 496 pci_dev_put(smbus); in usb_amd_dev_put()
|
| /linux/Documentation/driver-api/ |
| H A D | i2c.rst | 47 .. kernel-doc:: drivers/i2c/i2c-core-smbus.c
|
| H A D | ipmb.rst | 78 If xmit of data to be done using raw i2c block vs smbus
|
| /linux/include/trace/events/ |
| H A D | smbus.h | 8 #define TRACE_SYSTEM smbus
|
| /linux/arch/arm/boot/dts/microchip/ |
| H A D | at91-nattis-2-natte-2.dts | 189 smbus-timeout-disable;
|
| H A D | at91-tse850-3.dts | 204 smbus-timeout-disable;
|
| /linux/arch/arm/boot/dts/aspeed/ |
| H A D | aspeed-bmc-asrock-spc621d8hm3.dts | 125 /* M.2 slot smbus mux */
|