/u-boot/drivers/i2c/ |
A D | xilinx_xiic.c | 108 struct i2c_msg *msg, int nmsgs) in xiic_read_rx() argument 142 struct i2c_msg *msg, int nmsgs) in xiic_fill_tx_fifo() argument 153 if ((msg->len - pos == 0) && nmsgs == 1) { in xiic_fill_tx_fifo() 162 u16 flags, u32 len, u32 nmsgs) in xilinx_xiic_set_addr() argument 172 if (nmsgs == 1 && len == 0) in xilinx_xiic_set_addr() 181 u32 nmsgs) in xilinx_xiic_read_common() argument 208 if (nmsgs == 1) in xilinx_xiic_read_common() 212 return xiic_read_rx(priv, msg, nmsgs); in xilinx_xiic_read_common() 216 int nmsgs) in xilinx_xiic_write_common() argument 222 xiic_fill_tx_fifo(priv, msg, nmsgs); in xilinx_xiic_write_common() [all …]
|
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()
|
A D | sandbox_i2c.c | 47 int nmsgs) in sandbox_i2c_xfer() argument 73 is_read = nmsgs > 1; in sandbox_i2c_xfer() 81 return ops->xfer(emul, msg, nmsgs); in sandbox_i2c_xfer()
|
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()
|
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()
|
A D | i2c-uniphier.c | 152 int nmsgs) in uniphier_i2c_xfer() argument 158 for (; nmsgs > 0; nmsgs--, msg++) { in uniphier_i2c_xfer() 160 stop = nmsgs > 1 && msg[1].flags & I2C_M_RD ? false : true; in uniphier_i2c_xfer()
|
A D | i2c-cdns.c | 403 int nmsgs) in cdns_i2c_xfer() argument 410 int num_msgs = nmsgs; in cdns_i2c_xfer() 414 if (nmsgs > 1) { in cdns_i2c_xfer() 422 for (count = 0; (count < nmsgs - 1) && hold_quirk; count++) { in cdns_i2c_xfer() 435 debug("i2c_xfer: %d messages\n", nmsgs); in cdns_i2c_xfer() 437 nmsgs > 0; nmsgs--, msg++) { in cdns_i2c_xfer() 448 nmsgs = num_msgs; in cdns_i2c_xfer()
|
A D | tegra186_bpmp_i2c.c | 40 int nmsgs) in tegra186_bpmp_i2c_xfer() argument 52 for (i = 0; i < nmsgs; i++) { in tegra186_bpmp_i2c_xfer() 81 for (i = 0; i < nmsgs; i++) { in tegra186_bpmp_i2c_xfer()
|
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()
|
A D | lpc32xx_i2c.c | 303 int nmsgs) 314 if (nmsgs > 2 || nmsgs == 0) { 319 omsg = nmsgs == 1 ? &dummy : msg; 320 dmsg = nmsgs == 1 ? msg : msg + 1;
|
A D | ocores_i2c.c | 70 int nmsgs; member 184 i2c->nmsgs--; in ocores_process() 189 if (i2c->nmsgs) { /* end? */ in ocores_process() 350 i2c->nmsgs = num; in ocores_xfer_core() 362 static int ocores_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) in ocores_i2c_xfer() argument 367 debug("i2c_xfer: %d messages\n", nmsgs); in ocores_i2c_xfer() 369 ret = ocores_xfer_core(bus, msg, nmsgs, 1); in ocores_i2c_xfer() 371 if (ret != nmsgs) { in ocores_i2c_xfer()
|
A D | i2c-versatile.c | 213 struct i2c_msg *msg, int nmsgs) in versatile_i2c_xfer() argument 218 for ( ; nmsgs > 0; nmsgs--, msg++) { in versatile_i2c_xfer()
|
A D | i2c-cortina.c | 279 static int ca_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) in ca_i2c_xfer() argument 284 debug("i2c_xfer: %d messages\n", nmsgs); in ca_i2c_xfer() 285 for (; nmsgs > 0; nmsgs--, msg++) { in ca_i2c_xfer()
|
A D | i2c-uniphier-f.c | 249 int nmsgs) in uniphier_fi2c_xfer() argument 259 for (; nmsgs > 0; nmsgs--, msg++) { in uniphier_fi2c_xfer() 261 stop = nmsgs > 1 && msg[1].flags & I2C_M_RD ? false : true; in uniphier_fi2c_xfer()
|
A D | ihs_i2c.c | 302 static int ihs_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) in ihs_i2c_xfer() argument 311 if (nmsgs > 2 || nmsgs == 0) { in ihs_i2c_xfer() 316 omsg = nmsgs == 1 ? &dummy : msg; in ihs_i2c_xfer() 317 dmsg = nmsgs == 1 ? msg : msg + 1; in ihs_i2c_xfer()
|
A D | tegra_i2c.c | 478 int nmsgs) in tegra_i2c_xfer() argument 483 debug("i2c_xfer: %d messages\n", nmsgs); in tegra_i2c_xfer() 484 for (; nmsgs > 0; nmsgs--, msg++) { in tegra_i2c_xfer() 485 bool next_is_read = nmsgs > 1 && (msg[1].flags & I2C_M_RD); in tegra_i2c_xfer()
|
A D | i2c-gpio.c | 270 static int i2c_gpio_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) in i2c_gpio_xfer() argument 275 for (; nmsgs > 0; nmsgs--, msg++) { in i2c_gpio_xfer() 276 bool next_is_read = nmsgs > 1 && (msg[1].flags & I2C_M_RD); in i2c_gpio_xfer()
|
A D | rcar_iic.c | 181 static int rcar_iic_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) in rcar_iic_xfer() argument 185 for (; nmsgs > 0; nmsgs--, msg++) { in rcar_iic_xfer()
|
A D | mv_i2c.c | 538 static int mv_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) in mv_i2c_xfer() argument 549 if (nmsgs > 2 || nmsgs == 0) { in mv_i2c_xfer() 554 omsg = nmsgs == 1 ? &dummy : msg; in mv_i2c_xfer() 555 dmsg = nmsgs == 1 ? msg : msg + 1; in mv_i2c_xfer()
|
A D | fsl_i2c.c | 611 static int fsl_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) 621 if (nmsgs > 2 || nmsgs == 0) { 626 omsg = nmsgs == 1 ? &dummy : msg; 627 dmsg = nmsgs == 1 ? msg : msg + 1;
|
A D | meson_i2c.c | 217 int nmsgs) in meson_i2c_xfer() argument 222 for (i = 0; i < nmsgs; i++) { in meson_i2c_xfer() 223 ret = meson_i2c_xfer_msg(i2c, msg + i, i == nmsgs - 1); in meson_i2c_xfer()
|
/u-boot/drivers/power/pmic/ |
A D | i2c_pmic_emul.c | 84 int nmsgs) in sandbox_i2c_pmic_xfer() argument 88 for (; nmsgs > 0; nmsgs--, msg++) { in sandbox_i2c_pmic_xfer() 89 bool next_is_read = nmsgs > 1 && (msg[1].flags & I2C_M_RD); in sandbox_i2c_pmic_xfer()
|
/u-boot/drivers/misc/ |
A D | i2c_eeprom_emul.c | 74 int nmsgs) in sandbox_i2c_eeprom_xfer() argument 86 for (; nmsgs > 0; nmsgs--, msg++) { in sandbox_i2c_eeprom_xfer()
|
/u-boot/drivers/rtc/ |
A D | i2c_rtc_emul.c | 168 int nmsgs) in sandbox_i2c_rtc_xfer() argument 178 for (; nmsgs > 0; nmsgs--, msg++) { in sandbox_i2c_rtc_xfer()
|
/u-boot/include/ |
A D | i2c.h | 166 uint nmsgs; member 253 int dm_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs); 377 int (*xfer)(struct udevice *bus, struct i2c_msg *msg, int nmsgs); 544 void i2c_dump_msgs(struct i2c_msg *msg, int nmsgs);
|