Lines Matching refs:req

323 void hmdfs_writepage_cb(struct hmdfs_peer *peer, const struct hmdfs_req *req,
326 struct hmdfs_writepage_context *ctx = req->private;
352 kfree(req->data);
363 struct hmdfs_req req;
380 req.data = write_data;
381 req.data_len = send_len;
383 req.private = param;
384 req.private_len = sizeof(*param);
386 req.timeout = TIMEOUT_CONFIG;
387 hmdfs_init_cmd(&req.operations, F_WRITEPAGE);
388 ret = hmdfs_send_async_request(con, &req);
424 struct readdir_request *req = kzalloc(send_len, GFP_KERNEL);
426 .data = req,
432 if (!req)
437 req->path_len = cpu_to_le32(path_len);
438 strncpy(req->path, path, path_len);
445 req->dcache_crtime = header->dcache_crtime;
446 req->dcache_crtime_nsec = header->dcache_crtime_nsec;
447 req->dentry_ctime = header->dentry_ctime;
448 req->dentry_ctime_nsec = header->dentry_ctime_nsec;
449 req->num = header->num;
450 req->verify_cache = cpu_to_le32(1);
454 kfree(req);
729 struct getattr_request *req = kzalloc(send_len, GFP_KERNEL);
731 .data = req,
738 if (!req)
741 req->path_len = cpu_to_le32(path_len);
742 req->lookup_flags = cpu_to_le32(lookup_flags);
743 strncpy(req->buf, send_buf, path_len);
753 kfree(req);
785 struct statfs_request *req = kzalloc(send_len, GFP_KERNEL);
787 .data = req,
794 if (!req)
797 req->path_len = cpu_to_le32(path_len);
798 strncpy(req->path, path, path_len);
811 kfree(req);
819 struct hmdfs_req req;
829 hmdfs_init_cmd(&req.operations, F_SYNCFS);
830 req.timeout = syncfs_timeout;
833 req.data = syncfs_req;
834 req.data_len = sizeof(*syncfs_req);
836 ret = hmdfs_send_async_request(con, &req);
869 struct getxattr_request *req = kzalloc(send_len, GFP_KERNEL);
871 .data = req,
878 if (!req)
881 req->path_len = cpu_to_le32(path_len);
882 req->name_len = cpu_to_le32(name_len);
883 req->size = cpu_to_le32(size);
884 strncpy(req->buf, send_buf, path_len);
885 strncpy(req->buf + path_len + 1, name, name_len);
895 kfree(req);
909 struct setxattr_request *req = kzalloc(send_len, GFP_KERNEL);
911 .data = req,
917 if (!req)
920 req->path_len = cpu_to_le32(path_len);
921 req->name_len = cpu_to_le32(name_len);
922 req->size = cpu_to_le32(size);
923 req->flags = cpu_to_le32(flags);
924 strncpy(req->buf, send_buf, path_len);
925 strncpy(req->buf + path_len + 1, name, name_len);
927 req->del = true;
929 memcpy(req->buf + path_len + name_len + 2, value, size);
932 kfree(req);
959 struct listxattr_request *req = kzalloc(send_len, GFP_KERNEL);
961 .data = req,
968 if (!req)
971 req->path_len = cpu_to_le32(path_len);
972 req->size = cpu_to_le32(size);
973 strncpy(req->buf, send_buf, path_len);
983 kfree(req);
988 void hmdfs_recv_syncfs_cb(struct hmdfs_peer *peer, const struct hmdfs_req *req,
992 struct syncfs_request *syncfs_req = (struct syncfs_request *)req->data;