Home
last modified time | relevance | path

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

/linux/drivers/i2c/busses/
A Di2c-xiic.c72 unsigned int nmsgs; member
371 i2c->nmsgs = 0; in xiic_wakeup()
450 __func__, i2c->nmsgs); in xiic_process()
456 if (i2c->nmsgs > 1) { in xiic_process()
457 i2c->nmsgs--; in xiic_process()
502 if (i2c->nmsgs > 1) { in xiic_process()
503 i2c->nmsgs--; in xiic_process()
600 if (i2c->nmsgs == 1) in xiic_start_recv()
670 i2c->nmsgs = num; in xiic_start_xfer()
706 i2c->nmsgs = 0; in xiic_xfer()
[all …]
A Di2c-kempld.c61 int nmsgs; member
155 i2c->nmsgs--; in kempld_i2c_process()
160 if (i2c->nmsgs) { in kempld_i2c_process()
196 i2c->nmsgs = num; in kempld_i2c_xfer()
A Di2c-ocores.c43 int nmsgs; member
199 i2c->nmsgs--; in ocores_process()
204 if (i2c->nmsgs) { /* end? */ in ocores_process()
384 i2c->nmsgs = num; in ocores_xfer_core()
/linux/drivers/i2c/
A Di2c-dev.c236 unsigned nmsgs, struct i2c_msg *msgs) in i2cdev_ioctl_rdwr() argument
248 for (i = 0; i < nmsgs; i++) { in i2cdev_ioctl_rdwr()
297 res = i2c_transfer(client->adapter, msgs, nmsgs); in i2cdev_ioctl_rdwr()
443 if (!rdwr_arg.msgs || rdwr_arg.nmsgs == 0) in i2cdev_ioctl()
450 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS) in i2cdev_ioctl()
454 rdwr_arg.nmsgs * sizeof(struct i2c_msg)); in i2cdev_ioctl()
458 return i2cdev_ioctl_rdwr(client, rdwr_arg.nmsgs, rdwr_pa); in i2cdev_ioctl()
516 u32 nmsgs; member
538 if (!rdwr_arg.msgs || rdwr_arg.nmsgs == 0) in compat_i2cdev_ioctl()
541 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS) in compat_i2cdev_ioctl()
[all …]
A Di2c-core-smbus.c334 int nmsgs = read_write == I2C_SMBUS_READ ? 2 : 1; in i2c_smbus_xfer_emulated() local
360 nmsgs = 1; in i2c_smbus_xfer_emulated()
366 nmsgs = 1; in i2c_smbus_xfer_emulated()
387 nmsgs = 2; /* Special case */ in i2c_smbus_xfer_emulated()
414 nmsgs = 2; /* Another special case */ in i2c_smbus_xfer_emulated()
458 if (nmsgs == 1) /* Write only */ in i2c_smbus_xfer_emulated()
464 if (msg[nmsgs - 1].flags & I2C_M_RD) in i2c_smbus_xfer_emulated()
465 msg[nmsgs - 1].len++; in i2c_smbus_xfer_emulated()
468 status = __i2c_transfer(adapter, msg, nmsgs); in i2c_smbus_xfer_emulated()
471 if (status != nmsgs) { in i2c_smbus_xfer_emulated()
[all …]
/linux/sound/virtio/
A Dvirtio_pcm_msg.c142 vss->nmsgs = periods; in virtsnd_pcm_msg_alloc()
178 for (i = 0; vss->msgs && i < vss->nmsgs; ++i) in virtsnd_pcm_msg_free()
183 vss->nmsgs = 0; in virtsnd_pcm_msg_free()
A Dvirtio_pcm.h59 unsigned int nmsgs; member
/linux/include/uapi/linux/
A Di2c-dev.h52 __u32 nmsgs; /* number of i2c_msgs */ member
/linux/Documentation/i2c/
A Ddev-interface.rst134 int nmsgs; /* number of messages to exchange */

Completed in 21 milliseconds