Lines Matching refs:sm

24 static inline void free_sm_outbuf(struct hmdfs_send_command *sm)
26 if (sm->out_buf && sm->out_len != 0)
27 kfree(sm->out_buf);
28 sm->out_len = 0;
29 sm->out_buf = NULL;
40 struct hmdfs_send_command sm = {
46 hmdfs_init_cmd(&sm.operations, F_OPEN);
55 ret = hmdfs_sendmessage_request(con, &sm);
58 if (!ret && (sm.out_len == 0 || !sm.out_buf))
62 resp = sm.out_buf;
74 free_sm_outbuf(&sm);
82 struct hmdfs_send_command sm = {
87 hmdfs_init_cmd(&sm.operations, F_RELEASE);
95 hmdfs_sendmessage_request(con, &sm);
105 struct hmdfs_send_command sm = {
112 hmdfs_init_cmd(&sm.operations, F_FSYNC);
122 ret = hmdfs_sendmessage_request(con, &sm);
124 free_sm_outbuf(&sm);
135 struct hmdfs_send_command sm = {
141 hmdfs_init_cmd(&sm.operations, F_READPAGE);
147 sm.out_buf = page;
152 ret = hmdfs_sendpage_request(con, &sm);
426 struct hmdfs_send_command sm = {
432 hmdfs_init_cmd(&sm.operations, F_ITERATE);
437 get_file(sm.local_filp);
454 ret = hmdfs_sendmessage_request(con, &sm);
470 struct hmdfs_send_command sm = {
477 hmdfs_init_cmd(&sm.operations, F_MKDIR);
487 ret = hmdfs_sendmessage_request(con, &sm);
490 if (!sm.out_buf) {
494 resp = sm.out_buf;
502 free_sm_outbuf(&sm);
519 struct hmdfs_send_command sm = {
526 hmdfs_init_cmd(&sm.operations, F_CREATE);
537 ret = hmdfs_sendmessage_request(con, &sm);
540 if (!sm.out_buf) {
544 resp = sm.out_buf;
552 free_sm_outbuf(&sm);
566 struct hmdfs_send_command sm = {
573 hmdfs_init_cmd(&sm.operations, F_RMDIR);
582 ret = hmdfs_sendmessage_request(con, &sm);
583 free_sm_outbuf(&sm);
597 struct hmdfs_send_command sm = {
604 hmdfs_init_cmd(&sm.operations, F_UNLINK);
613 ret = hmdfs_sendmessage_request(con, &sm);
615 free_sm_outbuf(&sm);
633 struct hmdfs_send_command sm = {
640 hmdfs_init_cmd(&sm.operations, F_RENAME);
659 ret = hmdfs_sendmessage_request(con, &sm);
660 free_sm_outbuf(&sm);
672 struct hmdfs_send_command sm = {
678 hmdfs_init_cmd(&sm.operations, F_SETATTR);
688 ret = hmdfs_sendmessage_request(con, &sm);
731 struct hmdfs_send_command sm = {
738 hmdfs_init_cmd(&sm.operations, F_GETATTR);
745 ret = hmdfs_sendmessage_request(con, &sm);
746 if (!ret && (sm.out_len == 0 || !sm.out_buf))
751 hmdfs_update_getattr_ret(sm.out_buf, result);
755 free_sm_outbuf(&sm);
787 struct hmdfs_send_command sm = {
794 hmdfs_init_cmd(&sm.operations, F_STATFS);
801 ret = hmdfs_sendmessage_request(con, &sm);
805 if (!ret && (sm.out_len == 0 || !sm.out_buf))
810 hmdfs_update_statfs_ret(sm.out_buf, buf);
813 free_sm_outbuf(&sm);
871 struct hmdfs_send_command sm = {
878 hmdfs_init_cmd(&sm.operations, F_GETXATTR);
887 ret = hmdfs_sendmessage_request(con, &sm);
888 if (!ret && (sm.out_len == 0 || !sm.out_buf))
893 hmdfs_update_getxattr_ret(sm.out_buf, value, size, &ret);
897 free_sm_outbuf(&sm);
911 struct hmdfs_send_command sm = {
917 hmdfs_init_cmd(&sm.operations, F_SETXATTR);
932 ret = hmdfs_sendmessage_request(con, &sm);
961 struct hmdfs_send_command sm = {
968 hmdfs_init_cmd(&sm.operations, F_LISTXATTR);
975 ret = hmdfs_sendmessage_request(con, &sm);
976 if (!ret && (sm.out_len == 0 || !sm.out_buf))
981 hmdfs_update_listxattr_ret(sm.out_buf, list, size, &ret);
985 free_sm_outbuf(&sm);
1034 struct hmdfs_send_command sm = {
1040 hmdfs_init_cmd(&sm.operations, F_DROP_PUSH);
1047 hmdfs_sendmessage_request(con, &sm);