Lines Matching full:sm
24 static inline void free_sm_outbuf(struct hmdfs_send_command *sm) in free_sm_outbuf() argument
26 if (sm->out_buf && sm->out_len != 0) in free_sm_outbuf()
27 kfree(sm->out_buf); in free_sm_outbuf()
28 sm->out_len = 0; in free_sm_outbuf()
29 sm->out_buf = NULL; in free_sm_outbuf()
40 struct hmdfs_send_command sm = { in hmdfs_send_open() local
46 hmdfs_init_cmd(&sm.operations, F_OPEN); in hmdfs_send_open()
55 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_send_open()
58 if (!ret && (sm.out_len == 0 || !sm.out_buf)) in hmdfs_send_open()
62 resp = sm.out_buf; in hmdfs_send_open()
74 free_sm_outbuf(&sm); in hmdfs_send_open()
82 struct hmdfs_send_command sm = { in hmdfs_send_close() local
87 hmdfs_init_cmd(&sm.operations, F_RELEASE); in hmdfs_send_close()
95 hmdfs_sendmessage_request(con, &sm); in hmdfs_send_close()
105 struct hmdfs_send_command sm = { in hmdfs_send_fsync() local
112 hmdfs_init_cmd(&sm.operations, F_FSYNC); in hmdfs_send_fsync()
122 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_send_fsync()
124 free_sm_outbuf(&sm); in hmdfs_send_fsync()
135 struct hmdfs_send_command sm = { in hmdfs_client_readpage() local
141 hmdfs_init_cmd(&sm.operations, F_READPAGE); in hmdfs_client_readpage()
147 sm.out_buf = page; in hmdfs_client_readpage()
152 ret = hmdfs_sendpage_request(con, &sm); in hmdfs_client_readpage()
425 struct hmdfs_send_command sm = { in hmdfs_client_start_readdir() local
431 hmdfs_init_cmd(&sm.operations, F_ITERATE); in hmdfs_client_start_readdir()
436 get_file(sm.local_filp); in hmdfs_client_start_readdir()
453 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_client_start_readdir()
469 struct hmdfs_send_command sm = { in hmdfs_client_start_mkdir() local
476 hmdfs_init_cmd(&sm.operations, F_MKDIR); in hmdfs_client_start_mkdir()
486 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_client_start_mkdir()
489 if (!sm.out_buf) { in hmdfs_client_start_mkdir()
493 resp = sm.out_buf; in hmdfs_client_start_mkdir()
501 free_sm_outbuf(&sm); in hmdfs_client_start_mkdir()
518 struct hmdfs_send_command sm = { in hmdfs_client_start_create() local
525 hmdfs_init_cmd(&sm.operations, F_CREATE); in hmdfs_client_start_create()
536 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_client_start_create()
539 if (!sm.out_buf) { in hmdfs_client_start_create()
543 resp = sm.out_buf; in hmdfs_client_start_create()
551 free_sm_outbuf(&sm); in hmdfs_client_start_create()
565 struct hmdfs_send_command sm = { in hmdfs_client_start_rmdir() local
572 hmdfs_init_cmd(&sm.operations, F_RMDIR); in hmdfs_client_start_rmdir()
581 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_client_start_rmdir()
582 free_sm_outbuf(&sm); in hmdfs_client_start_rmdir()
596 struct hmdfs_send_command sm = { in hmdfs_client_start_unlink() local
603 hmdfs_init_cmd(&sm.operations, F_UNLINK); in hmdfs_client_start_unlink()
612 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_client_start_unlink()
614 free_sm_outbuf(&sm); in hmdfs_client_start_unlink()
632 struct hmdfs_send_command sm = { in hmdfs_client_start_rename() local
639 hmdfs_init_cmd(&sm.operations, F_RENAME); in hmdfs_client_start_rename()
658 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_client_start_rename()
659 free_sm_outbuf(&sm); in hmdfs_client_start_rename()
671 struct hmdfs_send_command sm = { in hmdfs_send_setattr() local
677 hmdfs_init_cmd(&sm.operations, F_SETATTR); in hmdfs_send_setattr()
687 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_send_setattr()
730 struct hmdfs_send_command sm = { in hmdfs_send_getattr() local
737 hmdfs_init_cmd(&sm.operations, F_GETATTR); in hmdfs_send_getattr()
744 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_send_getattr()
745 if (!ret && (sm.out_len == 0 || !sm.out_buf)) in hmdfs_send_getattr()
750 hmdfs_update_getattr_ret(sm.out_buf, result); in hmdfs_send_getattr()
754 free_sm_outbuf(&sm); in hmdfs_send_getattr()
786 struct hmdfs_send_command sm = { in hmdfs_send_statfs() local
793 hmdfs_init_cmd(&sm.operations, F_STATFS); in hmdfs_send_statfs()
800 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_send_statfs()
804 if (!ret && (sm.out_len == 0 || !sm.out_buf)) in hmdfs_send_statfs()
809 hmdfs_update_statfs_ret(sm.out_buf, buf); in hmdfs_send_statfs()
812 free_sm_outbuf(&sm); in hmdfs_send_statfs()
870 struct hmdfs_send_command sm = { in hmdfs_send_getxattr() local
877 hmdfs_init_cmd(&sm.operations, F_GETXATTR); in hmdfs_send_getxattr()
886 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_send_getxattr()
887 if (!ret && (sm.out_len == 0 || !sm.out_buf)) in hmdfs_send_getxattr()
892 hmdfs_update_getxattr_ret(sm.out_buf, value, size, &ret); in hmdfs_send_getxattr()
896 free_sm_outbuf(&sm); in hmdfs_send_getxattr()
910 struct hmdfs_send_command sm = { in hmdfs_send_setxattr() local
916 hmdfs_init_cmd(&sm.operations, F_SETXATTR); in hmdfs_send_setxattr()
931 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_send_setxattr()
960 struct hmdfs_send_command sm = { in hmdfs_send_listxattr() local
967 hmdfs_init_cmd(&sm.operations, F_LISTXATTR); in hmdfs_send_listxattr()
974 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_send_listxattr()
975 if (!ret && (sm.out_len == 0 || !sm.out_buf)) in hmdfs_send_listxattr()
980 hmdfs_update_listxattr_ret(sm.out_buf, list, size, &ret); in hmdfs_send_listxattr()
984 free_sm_outbuf(&sm); in hmdfs_send_listxattr()
1033 struct hmdfs_send_command sm = { in hmdfs_send_drop_push() local
1039 hmdfs_init_cmd(&sm.operations, F_DROP_PUSH); in hmdfs_send_drop_push()
1046 hmdfs_sendmessage_request(con, &sm); in hmdfs_send_drop_push()