Lines Matching refs:req
324 void hmdfs_writepage_cb(struct hmdfs_peer *peer, const struct hmdfs_req *req,
327 struct hmdfs_writepage_context *ctx = req->private;
353 kfree(req->data);
364 struct hmdfs_req req;
381 req.data = write_data;
382 req.data_len = send_len;
384 req.private = param;
385 req.private_len = sizeof(*param);
387 req.timeout = TIMEOUT_CONFIG;
388 hmdfs_init_cmd(&req.operations, F_WRITEPAGE);
389 ret = hmdfs_send_async_request(con, &req);
425 struct readdir_request *req = kzalloc(send_len, GFP_KERNEL);
427 .data = req,
433 if (!req)
438 req->path_len = cpu_to_le32(path_len);
439 strncpy(req->path, path, path_len);
446 req->dcache_crtime = header->dcache_crtime;
447 req->dcache_crtime_nsec = header->dcache_crtime_nsec;
448 req->dentry_ctime = header->dentry_ctime;
449 req->dentry_ctime_nsec = header->dentry_ctime_nsec;
450 req->num = header->num;
451 req->verify_cache = cpu_to_le32(1);
455 kfree(req);
730 struct getattr_request *req = kzalloc(send_len, GFP_KERNEL);
732 .data = req,
739 if (!req)
742 req->path_len = cpu_to_le32(path_len);
743 req->lookup_flags = cpu_to_le32(lookup_flags);
744 strncpy(req->buf, send_buf, path_len);
754 kfree(req);
786 struct statfs_request *req = kzalloc(send_len, GFP_KERNEL);
788 .data = req,
795 if (!req)
798 req->path_len = cpu_to_le32(path_len);
799 strncpy(req->path, path, path_len);
812 kfree(req);
820 struct hmdfs_req req;
830 hmdfs_init_cmd(&req.operations, F_SYNCFS);
831 req.timeout = syncfs_timeout;
834 req.data = syncfs_req;
835 req.data_len = sizeof(*syncfs_req);
837 ret = hmdfs_send_async_request(con, &req);
870 struct getxattr_request *req = kzalloc(send_len, GFP_KERNEL);
872 .data = req,
879 if (!req)
882 req->path_len = cpu_to_le32(path_len);
883 req->name_len = cpu_to_le32(name_len);
884 req->size = cpu_to_le32(size);
885 strncpy(req->buf, send_buf, path_len);
886 strncpy(req->buf + path_len + 1, name, name_len);
896 kfree(req);
910 struct setxattr_request *req = kzalloc(send_len, GFP_KERNEL);
912 .data = req,
918 if (!req)
921 req->path_len = cpu_to_le32(path_len);
922 req->name_len = cpu_to_le32(name_len);
923 req->size = cpu_to_le32(size);
924 req->flags = cpu_to_le32(flags);
925 strncpy(req->buf, send_buf, path_len);
926 strncpy(req->buf + path_len + 1, name, name_len);
928 req->del = true;
930 memcpy(req->buf + path_len + name_len + 2, value, size);
933 kfree(req);
960 struct listxattr_request *req = kzalloc(send_len, GFP_KERNEL);
962 .data = req,
969 if (!req)
972 req->path_len = cpu_to_le32(path_len);
973 req->size = cpu_to_le32(size);
974 strncpy(req->buf, send_buf, path_len);
984 kfree(req);
989 void hmdfs_recv_syncfs_cb(struct hmdfs_peer *peer, const struct hmdfs_req *req,
993 struct syncfs_request *syncfs_req = (struct syncfs_request *)req->data;