Home
last modified time | relevance | path

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

12

/u-boot/drivers/i2c/
A Dxilinx_xiic.c108 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 Dcros_ec_ldo.c21 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 Dsandbox_i2c.c47 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 Dintel_i2c.c205 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 Dcros_ec_tunnel.c26 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 Di2c-uniphier.c152 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 Di2c-cdns.c403 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 Dtegra186_bpmp_i2c.c40 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 Dast_i2c.c274 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 Dlpc32xx_i2c.c303 int nmsgs)
314 if (nmsgs > 2 || nmsgs == 0) {
319 omsg = nmsgs == 1 ? &dummy : msg;
320 dmsg = nmsgs == 1 ? msg : msg + 1;
A Docores_i2c.c70 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 Di2c-versatile.c213 struct i2c_msg *msg, int nmsgs) in versatile_i2c_xfer() argument
218 for ( ; nmsgs > 0; nmsgs--, msg++) { in versatile_i2c_xfer()
A Di2c-cortina.c279 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 Di2c-uniphier-f.c249 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 Dihs_i2c.c302 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 Dtegra_i2c.c478 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 Di2c-gpio.c270 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 Drcar_iic.c181 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 Dmv_i2c.c538 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 Dfsl_i2c.c611 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 Dmeson_i2c.c217 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 Di2c_pmic_emul.c84 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 Di2c_eeprom_emul.c74 int nmsgs) in sandbox_i2c_eeprom_xfer() argument
86 for (; nmsgs > 0; nmsgs--, msg++) { in sandbox_i2c_eeprom_xfer()
/u-boot/drivers/rtc/
A Di2c_rtc_emul.c168 int nmsgs) in sandbox_i2c_rtc_xfer() argument
178 for (; nmsgs > 0; nmsgs--, msg++) { in sandbox_i2c_rtc_xfer()
/u-boot/include/
A Di2c.h166 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);

Completed in 27 milliseconds

12