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);
425 struct hmdfs_send_command sm = {
431 hmdfs_init_cmd(&sm.operations, F_ITERATE);
436 get_file(sm.local_filp);
453 ret = hmdfs_sendmessage_request(con, &sm);
469 struct hmdfs_send_command sm = {
476 hmdfs_init_cmd(&sm.operations, F_MKDIR);
486 ret = hmdfs_sendmessage_request(con, &sm);
489 if (!sm.out_buf) {
493 resp = sm.out_buf;
501 free_sm_outbuf(&sm);
518 struct hmdfs_send_command sm = {
525 hmdfs_init_cmd(&sm.operations, F_CREATE);
536 ret = hmdfs_sendmessage_request(con, &sm);
539 if (!sm.out_buf) {
543 resp = sm.out_buf;
551 free_sm_outbuf(&sm);
565 struct hmdfs_send_command sm = {
572 hmdfs_init_cmd(&sm.operations, F_RMDIR);
581 ret = hmdfs_sendmessage_request(con, &sm);
582 free_sm_outbuf(&sm);
596 struct hmdfs_send_command sm = {
603 hmdfs_init_cmd(&sm.operations, F_UNLINK);
612 ret = hmdfs_sendmessage_request(con, &sm);
614 free_sm_outbuf(&sm);
632 struct hmdfs_send_command sm = {
639 hmdfs_init_cmd(&sm.operations, F_RENAME);
658 ret = hmdfs_sendmessage_request(con, &sm);
659 free_sm_outbuf(&sm);
671 struct hmdfs_send_command sm = {
677 hmdfs_init_cmd(&sm.operations, F_SETATTR);
687 ret = hmdfs_sendmessage_request(con, &sm);
730 struct hmdfs_send_command sm = {
737 hmdfs_init_cmd(&sm.operations, F_GETATTR);
744 ret = hmdfs_sendmessage_request(con, &sm);
745 if (!ret && (sm.out_len == 0 || !sm.out_buf))
750 hmdfs_update_getattr_ret(sm.out_buf, result);
754 free_sm_outbuf(&sm);
786 struct hmdfs_send_command sm = {
793 hmdfs_init_cmd(&sm.operations, F_STATFS);
800 ret = hmdfs_sendmessage_request(con, &sm);
804 if (!ret && (sm.out_len == 0 || !sm.out_buf))
809 hmdfs_update_statfs_ret(sm.out_buf, buf);
812 free_sm_outbuf(&sm);
870 struct hmdfs_send_command sm = {
877 hmdfs_init_cmd(&sm.operations, F_GETXATTR);
886 ret = hmdfs_sendmessage_request(con, &sm);
887 if (!ret && (sm.out_len == 0 || !sm.out_buf))
892 hmdfs_update_getxattr_ret(sm.out_buf, value, size, &ret);
896 free_sm_outbuf(&sm);
910 struct hmdfs_send_command sm = {
916 hmdfs_init_cmd(&sm.operations, F_SETXATTR);
931 ret = hmdfs_sendmessage_request(con, &sm);
960 struct hmdfs_send_command sm = {
967 hmdfs_init_cmd(&sm.operations, F_LISTXATTR);
974 ret = hmdfs_sendmessage_request(con, &sm);
975 if (!ret && (sm.out_len == 0 || !sm.out_buf))
980 hmdfs_update_listxattr_ret(sm.out_buf, list, size, &ret);
984 free_sm_outbuf(&sm);
1033 struct hmdfs_send_command sm = {
1039 hmdfs_init_cmd(&sm.operations, F_DROP_PUSH);
1046 hmdfs_sendmessage_request(con, &sm);