Lines Matching full:resp
39 struct open_response *resp; in hmdfs_send_open() local
60 resp = sm.out_buf; in hmdfs_send_open()
62 open_ret->ino = le64_to_cpu(resp->ino); in hmdfs_send_open()
63 open_ret->fid.ver = le64_to_cpu(resp->file_ver); in hmdfs_send_open()
64 open_ret->fid.id = le32_to_cpu(resp->file_id); in hmdfs_send_open()
65 open_ret->file_size = le64_to_cpu(resp->file_size); in hmdfs_send_open()
66 open_ret->remote_ctime.tv_sec = le64_to_cpu(resp->ctime); in hmdfs_send_open()
67 open_ret->remote_ctime.tv_nsec = le32_to_cpu(resp->ctime_nsec); in hmdfs_send_open()
68 open_ret->stable_ctime.tv_sec = le64_to_cpu(resp->stable_ctime); in hmdfs_send_open()
69 open_ret->stable_ctime.tv_nsec = le32_to_cpu(resp->stable_ctime_nsec); in hmdfs_send_open()
319 const struct hmdfs_resp *resp) in hmdfs_writepage_cb() argument
323 int ret = resp->ret_code; in hmdfs_writepage_cb()
463 struct hmdfs_inodeinfo_response *resp = NULL; in hmdfs_client_start_mkdir() local
486 resp = sm.out_buf; in hmdfs_client_start_mkdir()
487 mkdir_ret->i_mode = le16_to_cpu(resp->i_mode); in hmdfs_client_start_mkdir()
488 mkdir_ret->i_size = le64_to_cpu(resp->i_size); in hmdfs_client_start_mkdir()
489 mkdir_ret->i_mtime = le64_to_cpu(resp->i_mtime); in hmdfs_client_start_mkdir()
490 mkdir_ret->i_mtime_nsec = le32_to_cpu(resp->i_mtime_nsec); in hmdfs_client_start_mkdir()
491 mkdir_ret->i_ino = le64_to_cpu(resp->i_ino); in hmdfs_client_start_mkdir()
510 struct hmdfs_inodeinfo_response *resp = NULL; in hmdfs_client_start_create() local
534 resp = sm.out_buf; in hmdfs_client_start_create()
535 create_ret->i_mode = le16_to_cpu(resp->i_mode); in hmdfs_client_start_create()
536 create_ret->i_size = le64_to_cpu(resp->i_size); in hmdfs_client_start_create()
537 create_ret->i_mtime = le64_to_cpu(resp->i_mtime); in hmdfs_client_start_create()
538 create_ret->i_mtime_nsec = le32_to_cpu(resp->i_mtime_nsec); in hmdfs_client_start_create()
539 create_ret->i_ino = le64_to_cpu(resp->i_ino); in hmdfs_client_start_create()
676 static void hmdfs_update_getattr_ret(struct getattr_response *resp, in hmdfs_update_getattr_ret() argument
681 stat->result_mask = le32_to_cpu(resp->result_mask); in hmdfs_update_getattr_ret()
685 stat->ino = le64_to_cpu(resp->ino); in hmdfs_update_getattr_ret()
686 stat->mode = le16_to_cpu(resp->mode); in hmdfs_update_getattr_ret()
687 stat->nlink = le32_to_cpu(resp->nlink); in hmdfs_update_getattr_ret()
688 stat->uid.val = le32_to_cpu(resp->uid); in hmdfs_update_getattr_ret()
689 stat->gid.val = le32_to_cpu(resp->gid); in hmdfs_update_getattr_ret()
690 stat->size = le64_to_cpu(resp->size); in hmdfs_update_getattr_ret()
691 stat->blocks = le64_to_cpu(resp->blocks); in hmdfs_update_getattr_ret()
692 stat->blksize = le32_to_cpu(resp->blksize); in hmdfs_update_getattr_ret()
693 stat->atime.tv_sec = le64_to_cpu(resp->atime); in hmdfs_update_getattr_ret()
694 stat->atime.tv_nsec = le32_to_cpu(resp->atime_nsec); in hmdfs_update_getattr_ret()
695 stat->mtime.tv_sec = le64_to_cpu(resp->mtime); in hmdfs_update_getattr_ret()
696 stat->mtime.tv_nsec = le32_to_cpu(resp->mtime_nsec); in hmdfs_update_getattr_ret()
697 stat->ctime.tv_sec = le64_to_cpu(resp->ctime); in hmdfs_update_getattr_ret()
698 stat->ctime.tv_nsec = le32_to_cpu(resp->ctime_nsec); in hmdfs_update_getattr_ret()
699 stat->btime.tv_sec = le64_to_cpu(resp->crtime); in hmdfs_update_getattr_ret()
700 stat->btime.tv_nsec = le32_to_cpu(resp->crtime_nsec); in hmdfs_update_getattr_ret()
701 result->fsid = le64_to_cpu(resp->fsid); in hmdfs_update_getattr_ret()
740 static void hmdfs_update_statfs_ret(struct statfs_response *resp, in hmdfs_update_statfs_ret() argument
743 buf->f_type = le64_to_cpu(resp->f_type); in hmdfs_update_statfs_ret()
744 buf->f_bsize = le64_to_cpu(resp->f_bsize); in hmdfs_update_statfs_ret()
745 buf->f_blocks = le64_to_cpu(resp->f_blocks); in hmdfs_update_statfs_ret()
746 buf->f_bfree = le64_to_cpu(resp->f_bfree); in hmdfs_update_statfs_ret()
747 buf->f_bavail = le64_to_cpu(resp->f_bavail); in hmdfs_update_statfs_ret()
748 buf->f_files = le64_to_cpu(resp->f_files); in hmdfs_update_statfs_ret()
749 buf->f_ffree = le64_to_cpu(resp->f_ffree); in hmdfs_update_statfs_ret()
750 buf->f_fsid.val[0] = le32_to_cpu(resp->f_fsid_0); in hmdfs_update_statfs_ret()
751 buf->f_fsid.val[1] = le32_to_cpu(resp->f_fsid_1); in hmdfs_update_statfs_ret()
752 buf->f_namelen = le64_to_cpu(resp->f_namelen); in hmdfs_update_statfs_ret()
753 buf->f_frsize = le64_to_cpu(resp->f_frsize); in hmdfs_update_statfs_ret()
754 buf->f_flags = le64_to_cpu(resp->f_flags); in hmdfs_update_statfs_ret()
755 buf->f_spare[0] = le64_to_cpu(resp->f_spare_0); in hmdfs_update_statfs_ret()
756 buf->f_spare[1] = le64_to_cpu(resp->f_spare_1); in hmdfs_update_statfs_ret()
757 buf->f_spare[2] = le64_to_cpu(resp->f_spare_2); in hmdfs_update_statfs_ret()
758 buf->f_spare[3] = le64_to_cpu(resp->f_spare_3); in hmdfs_update_statfs_ret()
825 static void hmdfs_update_getxattr_ret(struct getxattr_response *resp, in hmdfs_update_getxattr_ret() argument
828 ssize_t size = le32_to_cpu(resp->size); in hmdfs_update_getxattr_ret()
836 memcpy(value, resp->value, size); in hmdfs_update_getxattr_ret()
912 static void hmdfs_update_listxattr_ret(struct listxattr_response *resp, in hmdfs_update_listxattr_ret() argument
915 ssize_t size = le32_to_cpu(resp->size); in hmdfs_update_listxattr_ret()
924 memcpy(list, resp->list, size); in hmdfs_update_listxattr_ret()
963 const struct hmdfs_resp *resp) in hmdfs_recv_syncfs_cb() argument
972 "Recv stale syncfs resp[ver: %llu] from device %llu, current ver %llu", in hmdfs_recv_syncfs_cb()
980 sbi->hsi.remote_ret = resp->ret_code; in hmdfs_recv_syncfs_cb()
982 if (resp->ret_code) { in hmdfs_recv_syncfs_cb()
984 resp->ret_code, peer->device_id); in hmdfs_recv_syncfs_cb()