Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/i2c/busses/
Di2c-xiic.c78 unsigned int nmsgs; member
342 if ((xiic_tx_space(i2c) == 0) && (i2c->nmsgs == 1)) { in xiic_fill_tx_fifo()
355 i2c->nmsgs = 0; in xiic_wakeup()
380 i2c->tx_msg, i2c->nmsgs); in xiic_process()
427 __func__, i2c->nmsgs); in xiic_process()
433 if (i2c->nmsgs > 1) { in xiic_process()
434 i2c->nmsgs--; in xiic_process()
453 if ((i2c->nmsgs == 1) && !i2c->rx_msg && in xiic_process()
477 __func__, i2c->nmsgs); in xiic_process()
478 if (i2c->nmsgs > 1) { in xiic_process()
[all …]
Di2c-kempld.c69 int nmsgs; member
163 i2c->nmsgs--; in kempld_i2c_process()
168 if (i2c->nmsgs) { in kempld_i2c_process()
204 i2c->nmsgs = num; in kempld_i2c_xfer()
Di2c-ocores.c37 int nmsgs; member
173 i2c->nmsgs--; in ocores_process()
178 if (i2c->nmsgs) { /* end? */ in ocores_process()
222 i2c->nmsgs = num; in ocores_xfer()
/Linux-v4.19/drivers/i2c/
Di2c-dev.c242 unsigned nmsgs, struct i2c_msg *msgs) in i2cdev_ioctl_rdwr() argument
247 data_ptrs = kmalloc_array(nmsgs, sizeof(u8 __user *), GFP_KERNEL); in i2cdev_ioctl_rdwr()
254 for (i = 0; i < nmsgs; i++) { in i2cdev_ioctl_rdwr()
302 res = i2c_transfer(client->adapter, msgs, nmsgs); in i2cdev_ioctl_rdwr()
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()
510 u32 nmsgs; member
532 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS) in compat_i2cdev_ioctl()
535 rdwr_pa = kmalloc_array(rdwr_arg.nmsgs, sizeof(struct i2c_msg), in compat_i2cdev_ioctl()
[all …]
/Linux-v4.19/include/uapi/linux/
Di2c-dev.h67 __u32 nmsgs; /* number of i2c_msgs */ member
/Linux-v4.19/drivers/misc/sgi-xp/
Dxpc_sn2.c1914 u32 nmsgs; in xpc_pull_remote_msg_sn2() local
1930 nmsgs = ch_sn2->w_remote_GP.put - ch_sn2->next_msg_to_pull; in xpc_pull_remote_msg_sn2()
1931 if (msg_index + nmsgs > ch->remote_nentries) { in xpc_pull_remote_msg_sn2()
1933 nmsgs = ch->remote_nentries - msg_index; in xpc_pull_remote_msg_sn2()
1942 nmsgs * ch->entry_size); in xpc_pull_remote_msg_sn2()
1947 "ret=%d\n", nmsgs, ch_sn2->next_msg_to_pull, in xpc_pull_remote_msg_sn2()
1956 ch_sn2->next_msg_to_pull += nmsgs; in xpc_pull_remote_msg_sn2()
/Linux-v4.19/Documentation/i2c/
Ddev-interface130 int nmsgs; /* number of messages to exchange */