Lines Matching refs:nbytes

5007 	int nbytes = 0, streamlen, stream_name_len, next, idx = 0;  in get_file_stream_info()  local
5063 file_info = (struct smb2_file_stream_info *)&rsp->Buffer[nbytes]; in get_file_stream_info()
5073 nbytes += next; in get_file_stream_info()
5082 &rsp->Buffer[nbytes]; in get_file_stream_info()
5089 nbytes += sizeof(struct smb2_file_stream_info) + streamlen; in get_file_stream_info()
5096 rsp->OutputBufferLength = cpu_to_le32(nbytes); in get_file_stream_info()
6605 int nbytes = 0, err; in smb2_read_pipe() local
6633 nbytes = rpc_resp->payload_sz; in smb2_read_pipe()
6636 aux_payload_buf, nbytes); in smb2_read_pipe()
6652 rsp->DataLength = cpu_to_le32(nbytes); in smb2_read_pipe()
6724 ssize_t nbytes = 0, remain_bytes = 0; in smb2_read() local
6816 nbytes = ksmbd_vfs_read(work, fp, length, &offset, aux_payload_buf); in smb2_read()
6817 if (nbytes < 0) { in smb2_read()
6818 err = nbytes; in smb2_read()
6822 if ((nbytes == 0 && length != 0) || nbytes < mincount) { in smb2_read()
6831 nbytes, offset, mincount); in smb2_read()
6837 nbytes); in smb2_read()
6840 nbytes = 0; in smb2_read()
6850 rsp->DataLength = cpu_to_le32(nbytes); in smb2_read()
6855 aux_payload_buf, nbytes); in smb2_read()
6960 ssize_t nbytes; in smb2_write_rdma_channel() local
6975 ret = ksmbd_vfs_write(work, fp, data_buf, length, &offset, sync, &nbytes); in smb2_write_rdma_channel()
6980 return nbytes; in smb2_write_rdma_channel()
6996 ssize_t nbytes; in smb2_write() local
7082 writethrough, &nbytes); in smb2_write()
7089 nbytes = smb2_write_rdma_channel(work, req, fp, offset, length, in smb2_write()
7091 if (nbytes < 0) { in smb2_write()
7092 err = (int)nbytes; in smb2_write()
7100 rsp->DataLength = cpu_to_le32(nbytes); in smb2_write()
7825 int nbytes = 0; in fsctl_query_iface_info_ioctl() local
7846 nbytes + sizeof(struct network_interface_info_ioctl_rsp)) { in fsctl_query_iface_info_ioctl()
7852 &rsp->Buffer[nbytes]; in fsctl_query_iface_info_ioctl()
7893 nbytes += sizeof(struct network_interface_info_ioctl_rsp); in fsctl_query_iface_info_ioctl()
7917 nbytes += sizeof(struct network_interface_info_ioctl_rsp); in fsctl_query_iface_info_ioctl()
7928 return nbytes; in fsctl_query_iface_info_ioctl()
8012 int nbytes = 0; in fsctl_pipe_transceive() local
8031 nbytes = rpc_resp->payload_sz; in fsctl_pipe_transceive()
8034 nbytes = out_buf_len; in fsctl_pipe_transceive()
8043 memcpy((char *)rsp->Buffer, rpc_resp->payload, nbytes); in fsctl_pipe_transceive()
8047 return nbytes; in fsctl_pipe_transceive()
8120 unsigned int cnt_code, nbytes = 0, out_buf_len, in_buf_len; in smb2_ioctl() local
8171 nbytes = sizeof(struct file_object_buf_type1_ioctl_rsp); in smb2_ioctl()
8188 nbytes = fsctl_pipe_transceive(work, id, out_buf_len, req, rsp); in smb2_ioctl()
8214 nbytes = sizeof(struct validate_negotiate_info_rsp); in smb2_ioctl()
8222 nbytes = ret; in smb2_ioctl()
8236 nbytes = sizeof(struct resume_key_ioctl_rsp); in smb2_ioctl()
8257 nbytes = sizeof(struct copychunk_ioctl_rsp); in smb2_ioctl()
8331 sizeof(struct file_allocated_range_buffer), &nbytes); in smb2_ioctl()
8335 nbytes = 0; in smb2_ioctl()
8339 nbytes *= sizeof(struct file_allocated_range_buffer); in smb2_ioctl()
8358 nbytes = sizeof(struct reparse_data_buffer); in smb2_ioctl()
8436 rsp->OutputCount = cpu_to_le32(nbytes); in smb2_ioctl()
8441 ret = ksmbd_iov_pin_rsp(work, rsp, sizeof(struct smb2_ioctl_rsp) + nbytes); in smb2_ioctl()