Lines Matching defs:nbytes
896 * @nbytes: Size in bytes
903 static ssize_t ibmvmc_read(struct file *file, char *buf, size_t nbytes,
915 pr_debug("ibmvmc: read: file = 0x%lx, buf = 0x%lx, nbytes = 0x%lx\n",
917 (unsigned long)nbytes);
919 if (nbytes == 0)
922 if (nbytes > ibmvmc.max_mtu) {
923 pr_warn("ibmvmc: read: nbytes invalid 0x%x\n",
924 (unsigned int)nbytes);
979 nbytes = min_t(size_t, nbytes, buffer->msg_len);
980 n = copy_to_user((void *)buf, buffer->real_addr_local, nbytes);
981 dev_dbg(adapter->dev, "read: copy to user nbytes = 0x%lx.\n", nbytes);
983 retval = nbytes;