Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/i2c/busses/
Di2c-xiic.c75 unsigned int nmsgs; member
343 if ((xiic_tx_space(i2c) == 0) && (i2c->nmsgs == 1)) { in xiic_fill_tx_fifo()
356 i2c->nmsgs = 0; in xiic_wakeup()
381 i2c->tx_msg, i2c->nmsgs); in xiic_process()
428 __func__, i2c->nmsgs); in xiic_process()
434 if (i2c->nmsgs > 1) { in xiic_process()
435 i2c->nmsgs--; in xiic_process()
454 if ((i2c->nmsgs == 1) && !i2c->rx_msg && in xiic_process()
478 __func__, i2c->nmsgs); in xiic_process()
479 if (i2c->nmsgs > 1) { in xiic_process()
[all …]
Di2c-kempld.c69 int nmsgs; member
164 i2c->nmsgs--; in kempld_i2c_process()
169 if (i2c->nmsgs) { in kempld_i2c_process()
205 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()
225 i2c->nmsgs = num; in ocores_xfer()
/linux-4.4.14/arch/tile/kernel/
Dmessaging.c51 int nmsgs = 0; in hv_message_intr() local
79 ++nmsgs; in hv_message_intr()
106 if (nmsgs == 0) in hv_message_intr()
/linux-4.4.14/drivers/i2c/
Di2c-dev.c253 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS) in i2cdev_ioctl_rdwr()
257 rdwr_arg.nmsgs * sizeof(struct i2c_msg)); in i2cdev_ioctl_rdwr()
261 data_ptrs = kmalloc(rdwr_arg.nmsgs * sizeof(u8 __user *), GFP_KERNEL); in i2cdev_ioctl_rdwr()
268 for (i = 0; i < rdwr_arg.nmsgs; i++) { in i2cdev_ioctl_rdwr()
314 res = i2c_transfer(client->adapter, rdwr_pa, rdwr_arg.nmsgs); in i2cdev_ioctl_rdwr()
/linux-4.4.14/include/uapi/linux/
Di2c-dev.h66 __u32 nmsgs; /* number of i2c_msgs */ member
/linux-4.4.14/fs/
Dcompat_ioctl.c662 u32 nmsgs; member
684 u32 nmsgs; in do_i2c_rdwr_ioctl() local
687 if (get_user(nmsgs, &udata->nmsgs)) in do_i2c_rdwr_ioctl()
689 if (nmsgs > I2C_RDWR_IOCTL_MAX_MSGS) in do_i2c_rdwr_ioctl()
697 nmsgs * sizeof(struct i2c_msg)); in do_i2c_rdwr_ioctl()
700 if (put_user(nmsgs, &tdata->cmd.nmsgs) || in do_i2c_rdwr_ioctl()
704 for (i = 0; i < nmsgs; i++) { in do_i2c_rdwr_ioctl()
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_intr.c503 static unsigned nmsgs, supp_msgs; in handle_frequent_errors() local
511 if (nmsgs > 10) { in handle_frequent_errors()
519 nmsgs = 0; in handle_frequent_errors()
521 } else if (!nmsgs++ || time_after(nc, nextmsg_time)) { in handle_frequent_errors()
/linux-4.4.14/drivers/misc/sgi-xp/
Dxpc_sn2.c1917 u32 nmsgs; in xpc_pull_remote_msg_sn2() local
1933 nmsgs = ch_sn2->w_remote_GP.put - ch_sn2->next_msg_to_pull; in xpc_pull_remote_msg_sn2()
1934 if (msg_index + nmsgs > ch->remote_nentries) { in xpc_pull_remote_msg_sn2()
1936 nmsgs = ch->remote_nentries - msg_index; in xpc_pull_remote_msg_sn2()
1945 nmsgs * ch->entry_size); in xpc_pull_remote_msg_sn2()
1950 "ret=%d\n", nmsgs, ch_sn2->next_msg_to_pull, in xpc_pull_remote_msg_sn2()
1959 ch_sn2->next_msg_to_pull += nmsgs; in xpc_pull_remote_msg_sn2()
/linux-4.4.14/Documentation/i2c/
Ddev-interface130 int nmsgs; /* number of messages to exchange */