| /OK3568_Linux_fs/kernel/drivers/i2c/busses/ |
| H A D | i2c-xiic.c | 72 unsigned int nmsgs; member 355 if ((xiic_tx_space(i2c) == 0) && (i2c->nmsgs == 1)) { in xiic_fill_tx_fifo() 368 i2c->nmsgs = 0; in xiic_wakeup() 393 i2c->tx_msg, i2c->nmsgs); in xiic_process() 440 __func__, i2c->nmsgs); in xiic_process() 446 if (i2c->nmsgs > 1) { in xiic_process() 447 i2c->nmsgs--; in xiic_process() 466 if ((i2c->nmsgs == 1) && !i2c->rx_msg && in xiic_process() 490 __func__, i2c->nmsgs); in xiic_process() 491 if (i2c->nmsgs > 1) { in xiic_process() [all …]
|
| H A D | i2c-kempld.c | 61 int nmsgs; member 155 i2c->nmsgs--; in kempld_i2c_process() 160 if (i2c->nmsgs) { in kempld_i2c_process() 196 i2c->nmsgs = num; in kempld_i2c_xfer()
|
| /OK3568_Linux_fs/kernel/drivers/i2c/ |
| H A D | i2c-dev.c | 237 unsigned nmsgs, struct i2c_msg *msgs) in i2cdev_ioctl_rdwr() argument 242 data_ptrs = kmalloc_array(nmsgs, sizeof(u8 __user *), GFP_KERNEL); in i2cdev_ioctl_rdwr() 249 for (i = 0; i < nmsgs; i++) { in i2cdev_ioctl_rdwr() 298 res = i2c_transfer(client->adapter, msgs, nmsgs); in i2cdev_ioctl_rdwr() 444 if (!rdwr_arg.msgs || rdwr_arg.nmsgs == 0) in i2cdev_ioctl() 451 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS) in i2cdev_ioctl() 455 rdwr_arg.nmsgs * sizeof(struct i2c_msg)); in i2cdev_ioctl() 459 return i2cdev_ioctl_rdwr(client, rdwr_arg.nmsgs, rdwr_pa); in i2cdev_ioctl() 517 u32 nmsgs; member 539 if (!rdwr_arg.msgs || rdwr_arg.nmsgs == 0) in compat_i2cdev_ioctl() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/i2c/ |
| H A D | intel_i2c.c | 205 static int intel_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) in intel_i2c_xfer() argument 210 debug("i2c_xfer: %d messages\n", nmsgs); in intel_i2c_xfer() 218 if (nmsgs > 2 || nmsgs == 0) { in intel_i2c_xfer() 223 omsg = nmsgs == 1 ? &dummy : msg; in intel_i2c_xfer() 224 dmsg = nmsgs == 1 ? msg : msg + 1; in intel_i2c_xfer()
|
| H A D | cros_ec_ldo.c | 21 int nmsgs) in cros_ec_ldo_xfer() argument 23 bool is_read = nmsgs > 1; in cros_ec_ldo_xfer() 30 if (!nmsgs || !msg->len || (msg->flags & I2C_M_RD)) { in cros_ec_ldo_xfer()
|
| H A D | ast_i2c.c | 274 static int ast_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) in ast_i2c_xfer() argument 282 debug("i2c_xfer: %d messages\n", nmsgs); in ast_i2c_xfer() 283 for (; nmsgs > 0; nmsgs--, msg++) { in ast_i2c_xfer() 288 msg->len, (nmsgs == 1)); in ast_i2c_xfer() 293 msg->len, (nmsgs == 1)); in ast_i2c_xfer()
|
| H A D | i2c-uniphier.c | 149 int nmsgs) in uniphier_i2c_xfer() argument 155 for (; nmsgs > 0; nmsgs--, msg++) { in uniphier_i2c_xfer() 157 stop = nmsgs > 1 && msg[1].flags & I2C_M_RD ? false : true; in uniphier_i2c_xfer()
|
| H A D | sandbox_i2c.c | 69 int nmsgs) in sandbox_i2c_xfer() argument 95 is_read = nmsgs > 1; in sandbox_i2c_xfer() 102 return ops->xfer(emul, msg, nmsgs); in sandbox_i2c_xfer()
|
| H A D | i2c-cdns.c | 368 int nmsgs) in cdns_i2c_xfer() argument 376 if (nmsgs > 1) { in cdns_i2c_xfer() 384 for (count = 0; (count < nmsgs - 1) && hold_quirk; count++) { in cdns_i2c_xfer() 397 debug("i2c_xfer: %d messages\n", nmsgs); in cdns_i2c_xfer() 398 for (; nmsgs > 0; nmsgs--, msg++) { in cdns_i2c_xfer()
|
| H A D | lpc32xx_i2c.c | 299 int nmsgs) 310 if (nmsgs > 2 || nmsgs == 0) { 315 omsg = nmsgs == 1 ? &dummy : msg; 316 dmsg = nmsgs == 1 ? msg : msg + 1;
|
| H A D | tegra186_bpmp_i2c.c | 38 int nmsgs) in tegra186_bpmp_i2c_xfer() argument 50 for (i = 0; i < nmsgs; i++) { in tegra186_bpmp_i2c_xfer() 79 for (i = 0; i < nmsgs; i++) { in tegra186_bpmp_i2c_xfer()
|
| H A D | cros_ec_tunnel.c | 26 int nmsgs) in cros_ec_i2c_xfer() argument 30 return cros_ec_i2c_tunnel(dev->parent, i2c_bus->remote_bus, msg, nmsgs); in cros_ec_i2c_xfer()
|
| H A D | rk_i2c.c | 466 int nmsgs) in rockchip_i2c_xfer() argument 475 debug("i2c_xfer: %d messages\n", nmsgs); in rockchip_i2c_xfer() 476 if (nmsgs > 2 || ((nmsgs == 2) && (msg->flags & I2C_M_RD))) { in rockchip_i2c_xfer() 486 for (; nmsgs > 0; nmsgs--, msg++) { in rockchip_i2c_xfer()
|
| H A D | tegra_i2c.c | 477 int nmsgs) in tegra_i2c_xfer() argument 482 debug("i2c_xfer: %d messages\n", nmsgs); in tegra_i2c_xfer() 483 for (; nmsgs > 0; nmsgs--, msg++) { in tegra_i2c_xfer() 484 bool next_is_read = nmsgs > 1 && (msg[1].flags & I2C_M_RD); in tegra_i2c_xfer()
|
| H A D | i2c-gpio.c | 254 static int i2c_gpio_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) in i2c_gpio_xfer() argument 259 for (; nmsgs > 0; nmsgs--, msg++) { in i2c_gpio_xfer() 260 bool next_is_read = nmsgs > 1 && (msg[1].flags & I2C_M_RD); in i2c_gpio_xfer()
|
| H A D | i2c-uniphier-f.c | 259 int nmsgs) in uniphier_fi2c_xfer() argument 269 for (; nmsgs > 0; nmsgs--, msg++) { in uniphier_fi2c_xfer() 271 stop = nmsgs > 1 && msg[1].flags & I2C_M_RD ? false : true; in uniphier_fi2c_xfer()
|
| H A D | mv_i2c.c | 537 static int mv_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) in mv_i2c_xfer() argument 548 if (nmsgs > 2 || nmsgs == 0) { in mv_i2c_xfer() 553 omsg = nmsgs == 1 ? &dummy : msg; in mv_i2c_xfer() 554 dmsg = nmsgs == 1 ? msg : msg + 1; in mv_i2c_xfer()
|
| H A D | fsl_i2c.c | 608 static int fsl_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) 617 if (nmsgs > 2 || nmsgs == 0) { 622 omsg = nmsgs == 1 ? &dummy : msg; 623 dmsg = nmsgs == 1 ? msg : msg + 1;
|
| H A D | mvtwsi.c | 806 static int mvtwsi_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) 815 if (nmsgs > 2 || nmsgs == 0) { 820 omsg = nmsgs == 1 ? &dummy : msg; 821 dmsg = nmsgs == 1 ? msg : msg + 1;
|
| H A D | davinci_i2c.c | 436 int nmsgs) 441 debug("i2c_xfer: %d messages\n", nmsgs); 442 for (; nmsgs > 0; nmsgs--, msg++) {
|
| H A D | designware_i2c.c | 487 int nmsgs) 492 debug("i2c_xfer: %d messages\n", nmsgs); 493 for (; nmsgs > 0; nmsgs--, msg++) {
|
| /OK3568_Linux_fs/u-boot/drivers/power/pmic/ |
| H A D | i2c_pmic_emul.c | 81 int nmsgs) in sandbox_i2c_pmic_xfer() argument 85 for (; nmsgs > 0; nmsgs--, msg++) { in sandbox_i2c_pmic_xfer() 86 bool next_is_read = nmsgs > 1 && (msg[1].flags & I2C_M_RD); in sandbox_i2c_pmic_xfer()
|
| /OK3568_Linux_fs/u-boot/drivers/misc/ |
| H A D | i2c_eeprom_emul.c | 51 int nmsgs) in sandbox_i2c_eeprom_xfer() argument 58 for (; nmsgs > 0; nmsgs--, msg++) { in sandbox_i2c_eeprom_xfer()
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | i2c.h | 117 uint nmsgs; member 218 int dm_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs); 385 int (*xfer)(struct udevice *bus, struct i2c_msg *msg, int nmsgs); 552 void i2c_dump_msgs(struct i2c_msg *msg, int nmsgs);
|
| /OK3568_Linux_fs/u-boot/drivers/rtc/ |
| H A D | i2c_rtc_emul.c | 166 int nmsgs) in sandbox_i2c_rtc_xfer() argument 176 for (; nmsgs > 0; nmsgs--, msg++) { in sandbox_i2c_rtc_xfer()
|