Searched refs:nmsgs (Results 1 – 10 of 10) sorted by relevance
244 unsigned nmsgs, struct i2c_msg *msgs) in i2cdev_ioctl_rdwr() argument258 for (i = 0; i < nmsgs; i++) { in i2cdev_ioctl_rdwr()306 res = i2c_transfer(client->adapter, msgs, nmsgs); in i2cdev_ioctl_rdwr()452 if (!rdwr_arg.msgs || rdwr_arg.nmsgs == 0) in i2cdev_ioctl()459 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS) in i2cdev_ioctl()463 rdwr_arg.nmsgs, sizeof(struct i2c_msg)); in i2cdev_ioctl()467 res = i2cdev_ioctl_rdwr(client, rdwr_arg.nmsgs, rdwr_pa); in i2cdev_ioctl()527 u32 nmsgs; member549 if (!rdwr_arg.msgs || rdwr_arg.nmsgs == 0) in compat_i2cdev_ioctl()552 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS) in compat_i2cdev_ioctl()[all …]
335 int nmsgs = read_write == I2C_SMBUS_READ ? 2 : 1; in i2c_smbus_xfer_emulated() local361 nmsgs = 1; in i2c_smbus_xfer_emulated()367 nmsgs = 1; in i2c_smbus_xfer_emulated()388 nmsgs = 2; /* Special case */ in i2c_smbus_xfer_emulated()415 nmsgs = 2; /* Another special case */ in i2c_smbus_xfer_emulated()459 if (nmsgs == 1) /* Write only */ in i2c_smbus_xfer_emulated()465 if (msg[nmsgs - 1].flags & I2C_M_RD) in i2c_smbus_xfer_emulated()466 msg[nmsgs - 1].len++; in i2c_smbus_xfer_emulated()469 status = __i2c_transfer(adapter, msg, nmsgs); in i2c_smbus_xfer_emulated()472 if (status != nmsgs) { in i2c_smbus_xfer_emulated()[all …]
91 unsigned int nmsgs; member723 i2c->nmsgs = 0; in xiic_wakeup()816 i2c->nmsgs--; in xiic_process()847 i2c->nmsgs--; in xiic_process()946 if (i2c->nmsgs > 1) { in xiic_recv_atomic()947 i2c->nmsgs--; in xiic_recv_atomic()1066 if (i2c->nmsgs == 1) in xiic_start_recv()1116 i2c->nmsgs--; in xiic_send_rem_atomic()1277 i2c->nmsgs = num; in xiic_start_xfer()1344 i2c->nmsgs = 0; in xiic_xfer()[all …]
73 int nmsgs; member241 if (i2c->nmsgs == 1) in cgbc_i2c_xfer_msg()261 if (i2c->nmsgs > 1 || msg->len - i2c->pos > max_len) in cgbc_i2c_xfer_msg()284 i2c->nmsgs--; in cgbc_i2c_xfer_msg()290 if (i2c->nmsgs == 0) in cgbc_i2c_xfer_msg()309 i2c->nmsgs = num; in cgbc_i2c_xfer()
61 int nmsgs; member155 i2c->nmsgs--; in kempld_i2c_process()160 if (i2c->nmsgs) { in kempld_i2c_process()196 i2c->nmsgs = num; in kempld_i2c_xfer()
42 int nmsgs; member188 i2c->nmsgs--; in ocores_process()193 if (i2c->nmsgs) { /* end? */ in ocores_process()375 i2c->nmsgs = num; in ocores_xfer_core()
142 vss->nmsgs = periods; in virtsnd_pcm_msg_alloc()177 for (i = 0; vss->msgs && i < vss->nmsgs; ++i) in virtsnd_pcm_msg_free()182 vss->nmsgs = 0; in virtsnd_pcm_msg_free()
62 unsigned int nmsgs; member
52 __u32 nmsgs; /* number of i2c_msgs */ member
134 int nmsgs; /* number of messages to exchange */