Home
last modified time | relevance | path

Searched refs:nmsgs (Results 1 – 25 of 39) sorted by relevance

12

/external/u-boot/drivers/i2c/
Dintel_i2c.c204 static int intel_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) in intel_i2c_xfer() argument
209 debug("i2c_xfer: %d messages\n", nmsgs); in intel_i2c_xfer()
217 if (nmsgs > 2 || nmsgs == 0) { in intel_i2c_xfer()
222 omsg = nmsgs == 1 ? &dummy : msg; in intel_i2c_xfer()
223 dmsg = nmsgs == 1 ? msg : msg + 1; in intel_i2c_xfer()
Dcros_ec_ldo.c20 int nmsgs) in cros_ec_ldo_xfer() argument
22 bool is_read = nmsgs > 1; in cros_ec_ldo_xfer()
29 if (!nmsgs || !msg->len || (msg->flags & I2C_M_RD)) { in cros_ec_ldo_xfer()
Dast_i2c.c271 static int ast_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) in ast_i2c_xfer() argument
279 debug("i2c_xfer: %d messages\n", nmsgs); in ast_i2c_xfer()
280 for (; nmsgs > 0; nmsgs--, msg++) { in ast_i2c_xfer()
285 msg->len, (nmsgs == 1)); in ast_i2c_xfer()
290 msg->len, (nmsgs == 1)); in ast_i2c_xfer()
Dsandbox_i2c.c66 int nmsgs) in sandbox_i2c_xfer() argument
92 is_read = nmsgs > 1; in sandbox_i2c_xfer()
99 return ops->xfer(emul, msg, nmsgs); in sandbox_i2c_xfer()
Di2c-uniphier.c151 int nmsgs) in uniphier_i2c_xfer() argument
157 for (; nmsgs > 0; nmsgs--, msg++) { in uniphier_i2c_xfer()
159 stop = nmsgs > 1 && msg[1].flags & I2C_M_RD ? false : true; in uniphier_i2c_xfer()
Di2c-cdns.c365 int nmsgs) in cdns_i2c_xfer() argument
373 if (nmsgs > 1) { in cdns_i2c_xfer()
381 for (count = 0; (count < nmsgs - 1) && hold_quirk; count++) { in cdns_i2c_xfer()
394 debug("i2c_xfer: %d messages\n", nmsgs); in cdns_i2c_xfer()
395 for (; nmsgs > 0; nmsgs--, msg++) { in cdns_i2c_xfer()
Dlpc32xx_i2c.c298 int nmsgs)
309 if (nmsgs > 2 || nmsgs == 0) {
314 omsg = nmsgs == 1 ? &dummy : msg;
315 dmsg = nmsgs == 1 ? msg : msg + 1;
Dtegra186_bpmp_i2c.c37 int nmsgs) in tegra186_bpmp_i2c_xfer() argument
49 for (i = 0; i < nmsgs; i++) { in tegra186_bpmp_i2c_xfer()
78 for (i = 0; i < nmsgs; i++) { in tegra186_bpmp_i2c_xfer()
Dcros_ec_tunnel.c25 int nmsgs) in cros_ec_i2c_xfer() argument
29 return cros_ec_i2c_tunnel(dev->parent, i2c_bus->remote_bus, msg, nmsgs); in cros_ec_i2c_xfer()
Dihs_i2c.c294 static int ihs_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) in ihs_i2c_xfer() argument
303 if (nmsgs > 2 || nmsgs == 0) { in ihs_i2c_xfer()
308 omsg = nmsgs == 1 ? &dummy : msg; in ihs_i2c_xfer()
309 dmsg = nmsgs == 1 ? msg : msg + 1; in ihs_i2c_xfer()
Dtegra_i2c.c474 int nmsgs) in tegra_i2c_xfer() argument
479 debug("i2c_xfer: %d messages\n", nmsgs); in tegra_i2c_xfer()
480 for (; nmsgs > 0; nmsgs--, msg++) { in tegra_i2c_xfer()
481 bool next_is_read = nmsgs > 1 && (msg[1].flags & I2C_M_RD); in tegra_i2c_xfer()
Di2c-gpio.c254 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()
Di2c-uniphier-f.c248 int nmsgs) in uniphier_fi2c_xfer() argument
258 for (; nmsgs > 0; nmsgs--, msg++) { in uniphier_fi2c_xfer()
260 stop = nmsgs > 1 && msg[1].flags & I2C_M_RD ? false : true; in uniphier_fi2c_xfer()
Dmv_i2c.c536 static int mv_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) in mv_i2c_xfer() argument
547 if (nmsgs > 2 || nmsgs == 0) { in mv_i2c_xfer()
552 omsg = nmsgs == 1 ? &dummy : msg; in mv_i2c_xfer()
553 dmsg = nmsgs == 1 ? msg : msg + 1; in mv_i2c_xfer()
Drk_i2c.c330 int nmsgs) in rockchip_i2c_xfer() argument
335 debug("i2c_xfer: %d messages\n", nmsgs); in rockchip_i2c_xfer()
336 for (; nmsgs > 0; nmsgs--, msg++) { in rockchip_i2c_xfer()
Dfsl_i2c.c606 static int fsl_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs)
616 if (nmsgs > 2 || nmsgs == 0) {
621 omsg = nmsgs == 1 ? &dummy : msg;
622 dmsg = nmsgs == 1 ? msg : msg + 1;
Drcar_iic.c177 static int rcar_iic_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) in rcar_iic_xfer() argument
181 for (; nmsgs > 0; nmsgs--, msg++) { in rcar_iic_xfer()
Dmvtwsi.c830 static int mvtwsi_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs)
839 if (nmsgs > 2 || nmsgs == 0) {
844 omsg = nmsgs == 1 ? &dummy : msg;
845 dmsg = nmsgs == 1 ? msg : msg + 1;
Dmeson_i2c.c208 int nmsgs) in meson_i2c_xfer() argument
213 for (i = 0; i < nmsgs; i++) { in meson_i2c_xfer()
214 ret = meson_i2c_xfer_msg(i2c, msg + i, i == nmsgs - 1); in meson_i2c_xfer()
Ddavinci_i2c.c435 int nmsgs)
440 debug("i2c_xfer: %d messages\n", nmsgs);
441 for (; nmsgs > 0; nmsgs--, msg++) {
Ddesignware_i2c.c488 int nmsgs)
493 debug("i2c_xfer: %d messages\n", nmsgs);
494 for (; nmsgs > 0; nmsgs--, msg++) {
/external/u-boot/drivers/power/pmic/
Di2c_pmic_emul.c82 int nmsgs) in sandbox_i2c_pmic_xfer() argument
86 for (; nmsgs > 0; nmsgs--, msg++) { in sandbox_i2c_pmic_xfer()
87 bool next_is_read = nmsgs > 1 && (msg[1].flags & I2C_M_RD); in sandbox_i2c_pmic_xfer()
/external/u-boot/drivers/misc/
Di2c_eeprom_emul.c48 int nmsgs) in sandbox_i2c_eeprom_xfer() argument
55 for (; nmsgs > 0; nmsgs--, msg++) { in sandbox_i2c_eeprom_xfer()
/external/u-boot/include/
Di2c.h116 uint nmsgs; member
203 int dm_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs);
370 int (*xfer)(struct udevice *bus, struct i2c_msg *msg, int nmsgs);
537 void i2c_dump_msgs(struct i2c_msg *msg, int nmsgs);
/external/u-boot/drivers/rtc/
Di2c_rtc_emul.c163 int nmsgs) in sandbox_i2c_rtc_xfer() argument
173 for (; nmsgs > 0; nmsgs--, msg++) { in sandbox_i2c_rtc_xfer()

12