Searched refs:nmsgs (Results 1 - 25 of 51) sorted by relevance

123

/u-boot/drivers/i2c/
H A Dxilinx_xiic.c108 struct i2c_msg *msg, int nmsgs)
142 struct i2c_msg *msg, int nmsgs)
153 if ((msg->len - pos == 0) && nmsgs == 1) {
162 u16 flags, u32 len, u32 nmsgs)
172 if (nmsgs == 1 && len == 0)
181 u32 nmsgs)
201 xilinx_xiic_set_addr(dev, msg->addr, msg->flags, msg->len, nmsgs);
205 writew((msg->len & 0xff) | ((nmsgs == 1) ? XIIC_TX_DYN_STOP_MASK : 0),
208 if (nmsgs == 1)
212 return xiic_read_rx(priv, msg, nmsgs);
107 xiic_read_rx(struct xilinx_xiic_priv *priv, struct i2c_msg *msg, int nmsgs) argument
141 xiic_fill_tx_fifo(struct xilinx_xiic_priv *priv, struct i2c_msg *msg, int nmsgs) argument
161 xilinx_xiic_set_addr(struct udevice *dev, u8 addr, u16 flags, u32 len, u32 nmsgs) argument
180 xilinx_xiic_read_common(struct udevice *dev, struct i2c_msg *msg, u32 nmsgs) argument
215 xilinx_xiic_write_common(struct udevice *dev, struct i2c_msg *msg, int nmsgs) argument
268 xilinx_xiic_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) argument
[all...]
H A Dcros_ec_tunnel.c26 int nmsgs)
30 return cros_ec_i2c_tunnel(dev->parent, i2c_bus->remote_bus, msg, nmsgs);
25 cros_ec_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) argument
H A Dcros_ec_ldo.c21 int nmsgs)
23 bool is_read = nmsgs > 1;
30 if (!nmsgs || !msg->len || (msg->flags & I2C_M_RD)) {
20 cros_ec_ldo_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) argument
H A Dsandbox_i2c.c47 int nmsgs)
73 is_read = nmsgs > 1;
81 return ops->xfer(emul, msg, nmsgs);
46 sandbox_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) argument
H A Dintel_i2c.c205 static int intel_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) argument
210 debug("i2c_xfer: %d messages\n", nmsgs);
218 if (nmsgs > 2 || nmsgs == 0) {
223 omsg = nmsgs == 1 ? &dummy : msg;
224 dmsg = nmsgs == 1 ? msg : msg + 1;
H A Dihs_i2c.c191 static int ihs_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) argument
200 if (nmsgs > 2 || nmsgs == 0) {
205 omsg = nmsgs == 1 ? &dummy : msg;
206 dmsg = nmsgs == 1 ? msg : msg + 1;
H A Dtegra186_bpmp_i2c.c40 int nmsgs)
52 for (i = 0; i < nmsgs; i++) {
81 for (i = 0; i < nmsgs; i++) {
39 tegra186_bpmp_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) argument
H A Dast_i2c.c282 static int ast_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) argument
290 debug("i2c_xfer: %d messages\n", nmsgs);
291 for (; nmsgs > 0; nmsgs--, msg++) {
296 msg->len, (nmsgs == 1));
301 msg->len, (nmsgs == 1));
H A Di2c-cdns.c413 int nmsgs)
420 int num_msgs = nmsgs;
424 if (nmsgs > 1) {
432 for (count = 0; (count < nmsgs - 1) && hold_quirk; count++) {
445 debug("i2c_xfer: %d messages\n", nmsgs);
447 nmsgs > 0;) {
458 nmsgs = num_msgs;
464 nmsgs--;
412 cdns_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) argument
H A Di2c-uniphier.c152 int nmsgs)
158 for (; nmsgs > 0; nmsgs--, msg++) {
160 stop = nmsgs > 1 && msg[1].flags & I2C_M_RD ? false : true;
151 uniphier_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) argument
H A Dast2600_i2c.c144 static int ast2600_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) argument
152 for (; nmsgs > 0; nmsgs--, msg++) {
157 msg->len, (nmsgs == 1));
162 msg->len, (nmsgs == 1));
H A Dlpc32xx_i2c.c298 int nmsgs)
309 if (nmsgs > 2 || nmsgs == 0) {
314 omsg = nmsgs == 1 ? &dummy : msg;
315 dmsg = nmsgs == 1 ? msg : msg + 1;
H A Docores_i2c.c70 int nmsgs; member in struct:ocores_i2c_bus
184 i2c->nmsgs--;
189 if (i2c->nmsgs) { /* end? */
350 i2c->nmsgs = num;
362 static int ocores_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) argument
367 debug("i2c_xfer: %d messages\n", nmsgs);
369 ret = ocores_xfer_core(bus, msg, nmsgs, 1);
371 if (ret != nmsgs) {
H A Di2c-uniphier-f.c249 int nmsgs)
259 for (; nmsgs > 0; nmsgs--, msg++) {
261 stop = nmsgs > 1 && msg[1].flags & I2C_M_RD ? false : true;
248 uniphier_fi2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) argument
H A Ddavinci_i2c.c342 int nmsgs)
347 debug("i2c_xfer: %d messages\n", nmsgs);
348 for (; nmsgs > 0; nmsgs--, msg++) {
341 davinci_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) argument
H A Di2c-gpio.c270 static int i2c_gpio_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) argument
275 for (; nmsgs > 0; nmsgs--, msg++) {
276 bool next_is_read = nmsgs > 1 && (msg[1].flags & I2C_M_RD);
H A Di2c-cortina.c279 static int ca_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) argument
284 debug("i2c_xfer: %d messages\n", nmsgs);
285 for (; nmsgs > 0; nmsgs--, msg++) {
H A Dsun8i_rsb.c205 static int sun8i_rsb_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) argument
214 if (nmsgs == 2 && msg[1].flags == I2C_M_RD && msg[1].len == 1)
218 if (nmsgs == 1 && msg[0].len == 2)
H A Dsun6i_p2wi.c156 static int sun6i_p2wi_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) argument
161 if (nmsgs == 2 && msg[1].flags == I2C_M_RD && msg[1].len == 1)
165 if (nmsgs == 1 && msg[0].len == 2)
H A Di2c-versatile.c213 struct i2c_msg *msg, int nmsgs)
218 for ( ; nmsgs > 0; nmsgs--, msg++) {
212 versatile_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs) argument
H A Drcar_iic.c181 static int rcar_iic_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) argument
185 for (; nmsgs > 0; nmsgs--, msg++) {
/u-boot/drivers/power/pmic/
H A Di2c_pmic_emul.c85 int nmsgs)
89 for (; nmsgs > 0; nmsgs--, msg++) {
90 bool next_is_read = nmsgs > 1 && (msg[1].flags & I2C_M_RD);
84 sandbox_i2c_pmic_xfer(struct udevice *emul, struct i2c_msg *msg, int nmsgs) argument
/u-boot/include/
H A Di2c.h165 * @nmsgs: Number of elements in the array
169 uint nmsgs; member in struct:i2c_msg_list
267 * @nmsgs: Number of messages to transfer
270 int dm_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs);
389 * @nmsgs: Number of messages in the list
394 int (*xfer)(struct udevice *bus, struct i2c_msg *msg, int nmsgs);
571 * @nmsgs: Number of messages
573 void i2c_dump_msgs(struct i2c_msg *msg, int nmsgs);
/u-boot/drivers/rtc/
H A Di2c_rtc_emul.c149 int nmsgs)
159 for (; nmsgs > 0; nmsgs--, msg++) {
148 sandbox_i2c_rtc_xfer(struct udevice *emul, struct i2c_msg *msg, int nmsgs) argument
/u-boot/drivers/misc/
H A Di2c_eeprom_emul.c74 int nmsgs)
86 for (; nmsgs > 0; nmsgs--, msg++) {
73 sandbox_i2c_eeprom_xfer(struct udevice *emul, struct i2c_msg *msg, int nmsgs) argument

Completed in 194 milliseconds

123