Lines Matching refs:rpc_resp
6105 struct ksmbd_rpc_command *rpc_resp; in smb2_read_pipe() local
6112 rpc_resp = ksmbd_rpc_read(work->sess, id); in smb2_read_pipe()
6113 if (rpc_resp) { in smb2_read_pipe()
6114 if (rpc_resp->flags != KSMBD_RPC_OK) { in smb2_read_pipe()
6120 kvmalloc(rpc_resp->payload_sz, GFP_KERNEL | __GFP_ZERO); in smb2_read_pipe()
6126 memcpy(work->aux_payload_buf, rpc_resp->payload, in smb2_read_pipe()
6127 rpc_resp->payload_sz); in smb2_read_pipe()
6129 nbytes = rpc_resp->payload_sz; in smb2_read_pipe()
6132 kvfree(rpc_resp); in smb2_read_pipe()
6147 kvfree(rpc_resp); in smb2_read_pipe()
6357 struct ksmbd_rpc_command *rpc_resp; in smb2_write_pipe() local
6378 rpc_resp = ksmbd_rpc_write(work->sess, id, data_buf, length); in smb2_write_pipe()
6379 if (rpc_resp) { in smb2_write_pipe()
6380 if (rpc_resp->flags == KSMBD_RPC_ENOTIMPLEMENTED) { in smb2_write_pipe()
6382 kvfree(rpc_resp); in smb2_write_pipe()
6386 if (rpc_resp->flags != KSMBD_RPC_OK) { in smb2_write_pipe()
6389 kvfree(rpc_resp); in smb2_write_pipe()
6392 kvfree(rpc_resp); in smb2_write_pipe()
7468 struct ksmbd_rpc_command *rpc_resp; in fsctl_pipe_transceive() local
7472 rpc_resp = ksmbd_rpc_ioctl(work->sess, id, data_buf, in fsctl_pipe_transceive()
7474 if (rpc_resp) { in fsctl_pipe_transceive()
7475 if (rpc_resp->flags == KSMBD_RPC_SOME_NOT_MAPPED) { in fsctl_pipe_transceive()
7481 } else if (rpc_resp->flags == KSMBD_RPC_ENOTIMPLEMENTED) { in fsctl_pipe_transceive()
7484 } else if (rpc_resp->flags != KSMBD_RPC_OK) { in fsctl_pipe_transceive()
7489 nbytes = rpc_resp->payload_sz; in fsctl_pipe_transceive()
7490 if (rpc_resp->payload_sz > out_buf_len) { in fsctl_pipe_transceive()
7495 if (!rpc_resp->payload_sz) { in fsctl_pipe_transceive()
7501 memcpy((char *)rsp->Buffer, rpc_resp->payload, nbytes); in fsctl_pipe_transceive()
7504 kvfree(rpc_resp); in fsctl_pipe_transceive()