/u-boot/drivers/i2c/ |
H A D | xilinx_xiic.c | 108 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 D | cros_ec_tunnel.c | 26 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 D | cros_ec_ldo.c | 21 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 D | sandbox_i2c.c | 47 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 D | intel_i2c.c | 205 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 D | ihs_i2c.c | 191 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 D | tegra186_bpmp_i2c.c | 40 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 D | ast_i2c.c | 282 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 D | i2c-cdns.c | 413 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 D | i2c-uniphier.c | 152 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 D | ast2600_i2c.c | 144 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 D | lpc32xx_i2c.c | 298 int nmsgs) 309 if (nmsgs > 2 || nmsgs == 0) { 314 omsg = nmsgs == 1 ? &dummy : msg; 315 dmsg = nmsgs == 1 ? msg : msg + 1;
|
H A D | ocores_i2c.c | 70 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 D | i2c-uniphier-f.c | 249 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 D | davinci_i2c.c | 342 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 D | i2c-gpio.c | 270 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 D | i2c-cortina.c | 279 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 D | sun8i_rsb.c | 205 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 D | sun6i_p2wi.c | 156 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 D | i2c-versatile.c | 213 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 D | rcar_iic.c | 181 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 D | i2c_pmic_emul.c | 85 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 D | i2c.h | 165 * @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 D | i2c_rtc_emul.c | 149 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 D | i2c_eeprom_emul.c | 74 int nmsgs) 86 for (; nmsgs > 0; nmsgs--, msg++) { 73 sandbox_i2c_eeprom_xfer(struct udevice *emul, struct i2c_msg *msg, int nmsgs) argument
|