• Home
  • Raw
  • Download

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()
426 struct hmdfs_send_command sm = { in hmdfs_client_start_readdir() local
432 hmdfs_init_cmd(&sm.operations, F_ITERATE); in hmdfs_client_start_readdir()
437 get_file(sm.local_filp); in hmdfs_client_start_readdir()
454 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_client_start_readdir()
470 struct hmdfs_send_command sm = { in hmdfs_client_start_mkdir() local
477 hmdfs_init_cmd(&sm.operations, F_MKDIR); in hmdfs_client_start_mkdir()
487 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_client_start_mkdir()
490 if (!sm.out_buf) { in hmdfs_client_start_mkdir()
494 resp = sm.out_buf; in hmdfs_client_start_mkdir()
502 free_sm_outbuf(&sm); in hmdfs_client_start_mkdir()
519 struct hmdfs_send_command sm = { in hmdfs_client_start_create() local
526 hmdfs_init_cmd(&sm.operations, F_CREATE); in hmdfs_client_start_create()
537 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_client_start_create()
540 if (!sm.out_buf) { in hmdfs_client_start_create()
544 resp = sm.out_buf; in hmdfs_client_start_create()
552 free_sm_outbuf(&sm); in hmdfs_client_start_create()
566 struct hmdfs_send_command sm = { in hmdfs_client_start_rmdir() local
573 hmdfs_init_cmd(&sm.operations, F_RMDIR); in hmdfs_client_start_rmdir()
582 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_client_start_rmdir()
583 free_sm_outbuf(&sm); in hmdfs_client_start_rmdir()
597 struct hmdfs_send_command sm = { in hmdfs_client_start_unlink() local
604 hmdfs_init_cmd(&sm.operations, F_UNLINK); in hmdfs_client_start_unlink()
613 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_client_start_unlink()
615 free_sm_outbuf(&sm); in hmdfs_client_start_unlink()
633 struct hmdfs_send_command sm = { in hmdfs_client_start_rename() local
640 hmdfs_init_cmd(&sm.operations, F_RENAME); in hmdfs_client_start_rename()
659 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_client_start_rename()
660 free_sm_outbuf(&sm); in hmdfs_client_start_rename()
672 struct hmdfs_send_command sm = { in hmdfs_send_setattr() local
678 hmdfs_init_cmd(&sm.operations, F_SETATTR); in hmdfs_send_setattr()
688 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_send_setattr()
731 struct hmdfs_send_command sm = { in hmdfs_send_getattr() local
738 hmdfs_init_cmd(&sm.operations, F_GETATTR); in hmdfs_send_getattr()
745 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_send_getattr()
746 if (!ret && (sm.out_len == 0 || !sm.out_buf)) in hmdfs_send_getattr()
751 hmdfs_update_getattr_ret(sm.out_buf, result); in hmdfs_send_getattr()
755 free_sm_outbuf(&sm); in hmdfs_send_getattr()
787 struct hmdfs_send_command sm = { in hmdfs_send_statfs() local
794 hmdfs_init_cmd(&sm.operations, F_STATFS); in hmdfs_send_statfs()
801 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_send_statfs()
805 if (!ret && (sm.out_len == 0 || !sm.out_buf)) in hmdfs_send_statfs()
810 hmdfs_update_statfs_ret(sm.out_buf, buf); in hmdfs_send_statfs()
813 free_sm_outbuf(&sm); in hmdfs_send_statfs()
871 struct hmdfs_send_command sm = { in hmdfs_send_getxattr() local
878 hmdfs_init_cmd(&sm.operations, F_GETXATTR); in hmdfs_send_getxattr()
887 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_send_getxattr()
888 if (!ret && (sm.out_len == 0 || !sm.out_buf)) in hmdfs_send_getxattr()
893 hmdfs_update_getxattr_ret(sm.out_buf, value, size, &ret); in hmdfs_send_getxattr()
897 free_sm_outbuf(&sm); in hmdfs_send_getxattr()
911 struct hmdfs_send_command sm = { in hmdfs_send_setxattr() local
917 hmdfs_init_cmd(&sm.operations, F_SETXATTR); in hmdfs_send_setxattr()
932 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_send_setxattr()
961 struct hmdfs_send_command sm = { in hmdfs_send_listxattr() local
968 hmdfs_init_cmd(&sm.operations, F_LISTXATTR); in hmdfs_send_listxattr()
975 ret = hmdfs_sendmessage_request(con, &sm); in hmdfs_send_listxattr()
976 if (!ret && (sm.out_len == 0 || !sm.out_buf)) in hmdfs_send_listxattr()
981 hmdfs_update_listxattr_ret(sm.out_buf, list, size, &ret); in hmdfs_send_listxattr()
985 free_sm_outbuf(&sm); in hmdfs_send_listxattr()
1034 struct hmdfs_send_command sm = { in hmdfs_send_drop_push() local
1040 hmdfs_init_cmd(&sm.operations, F_DROP_PUSH); in hmdfs_send_drop_push()
1047 hmdfs_sendmessage_request(con, &sm); in hmdfs_send_drop_push()