Lines Matching defs:smb_msg
714 cifs_readv_from_socket(struct TCP_Server_Info *server, struct msghdr *smb_msg)
719 for (total_read = 0; msg_data_left(smb_msg); total_read += length) {
731 length = smbd_recv(server->smbd_conn, smb_msg);
733 length = sock_recvmsg(server->ssocket, smb_msg, 0);
774 struct msghdr smb_msg = {};
777 iov_iter_kvec(&smb_msg.msg_iter, ITER_DEST, &iov, 1, to_read);
779 return cifs_readv_from_socket(server, &smb_msg);
785 struct msghdr smb_msg = {};
788 * iov_iter_discard already sets smb_msg.type and count and iov_offset
792 iov_iter_discard(&smb_msg.msg_iter, ITER_DEST, to_read);
794 return cifs_readv_from_socket(server, &smb_msg);
801 struct msghdr smb_msg = {};
805 iov_iter_bvec(&smb_msg.msg_iter, ITER_DEST, &bv, 1, to_read);
806 return cifs_readv_from_socket(server, &smb_msg);
813 struct msghdr smb_msg = { .msg_iter = *iter };
816 iov_iter_truncate(&smb_msg.msg_iter, to_read);
817 ret = cifs_readv_from_socket(server, &smb_msg);