• Home
  • Raw
  • Download

Lines Matching full:resp

333 				       struct open_response *resp)  in hmdfs_update_open_response()  argument
343 resp->ino = cpu_to_le64(info->real_ino); in hmdfs_update_open_response()
344 resp->file_ver = cpu_to_le64(hmdfs_server_pack_fid_ver(con, cmd)); in hmdfs_update_open_response()
345 resp->file_id = cpu_to_le32(info->file_id); in hmdfs_update_open_response()
346 resp->file_size = cpu_to_le64(size); in hmdfs_update_open_response()
347 resp->ctime = cpu_to_le64(ctime.tv_sec); in hmdfs_update_open_response()
348 resp->ctime_nsec = cpu_to_le32(ctime.tv_nsec); in hmdfs_update_open_response()
360 resp->stable_ctime = cpu_to_le64(0); in hmdfs_update_open_response()
361 resp->stable_ctime_nsec = cpu_to_le32(0); in hmdfs_update_open_response()
364 resp->stable_ctime = resp->ctime; in hmdfs_update_open_response()
365 resp->stable_ctime_nsec = resp->ctime_nsec; in hmdfs_update_open_response()
367 resp->stable_ctime = cpu_to_le64(precision.tv_sec); in hmdfs_update_open_response()
368 resp->stable_ctime_nsec = cpu_to_le32(precision.tv_nsec); in hmdfs_update_open_response()
416 struct open_response *resp = NULL; in hmdfs_server_open() local
422 resp = kzalloc(sizeread, GFP_KERNEL); in hmdfs_server_open()
424 if (!resp || !info) { in hmdfs_server_open()
440 hmdfs_update_open_response(con, cmd, info, resp); in hmdfs_server_open()
442 trace_hmdfs_server_open_exit(con, resp, info->file, 0); in hmdfs_server_open()
443 ret = hmdfs_sendmessage_response(con, cmd, sizeread, resp, 0); in hmdfs_server_open()
450 kfree(resp); in hmdfs_server_open()
458 kfree(resp); in hmdfs_server_open()
568 struct atomic_open_response *resp) in hmdfs_server_do_atomic_open() argument
593 hmdfs_update_open_response(con, cmd, info, &resp->open_resp); in hmdfs_server_do_atomic_open()
594 resp->i_mode = cpu_to_le16(file_inode(info->file)->i_mode); in hmdfs_server_do_atomic_open()
611 struct atomic_open_response *resp = NULL; in hmdfs_server_atomic_open() local
615 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in hmdfs_server_atomic_open()
616 if (!resp || !info) { in hmdfs_server_atomic_open()
621 err = hmdfs_server_do_atomic_open(con, cmd, recv, info, resp); in hmdfs_server_atomic_open()
627 err = hmdfs_sendmessage_response(con, cmd, sizeof(*resp), resp, in hmdfs_server_atomic_open()
637 kfree(resp); in hmdfs_server_atomic_open()
759 struct readpages_response *resp = NULL; in alloc_readpages_resp() local
762 resp = vmalloc(len); in alloc_readpages_resp()
764 resp = kmalloc(len, GFP_KERNEL); in alloc_readpages_resp()
766 return resp; in alloc_readpages_resp()
769 static void free_readpages_resp(struct readpages_response *resp, in free_readpages_resp() argument
773 vfree(resp); in free_readpages_resp()
775 kfree(resp); in free_readpages_resp()
786 struct readpages_response *resp = NULL; in hmdfs_server_readpages() local
802 resp = alloc_readpages_resp(read_len); in hmdfs_server_readpages()
803 if (!resp) { in hmdfs_server_readpages()
809 ret = kernel_read(file, resp->buf, read_len, &pos); in hmdfs_server_readpages()
815 hmdfs_sendmessage_response(con, cmd, ret, resp, 0); in hmdfs_server_readpages()
817 free_readpages_resp(resp, read_len); in hmdfs_server_readpages()
821 free_readpages_resp(resp, read_len); in hmdfs_server_readpages()
832 struct readpages_open_response *resp) in hmdfs_do_readpages_open() argument
847 ret = kernel_read(info->file, resp->buf, le32_to_cpu(recv->size), &pos); in hmdfs_do_readpages_open()
851 hmdfs_update_open_response(con, cmd, info, &resp->open_resp); in hmdfs_do_readpages_open()
852 memset(resp->reserved, 0, sizeof(resp->reserved)); in hmdfs_do_readpages_open()
853 ret = hmdfs_sendmessage_response(con, cmd, sizeof(*resp) + ret, resp, in hmdfs_do_readpages_open()
873 struct readpages_open_response *resp = NULL; in hmdfs_server_readpages_open() local
890 resp_len = read_len + sizeof(*resp); in hmdfs_server_readpages_open()
891 resp = vmalloc(resp_len); in hmdfs_server_readpages_open()
892 if (!resp) { in hmdfs_server_readpages_open()
897 ret = hmdfs_do_readpages_open(con, cmd, recv, info, resp); in hmdfs_server_readpages_open()
899 vfree(resp); in hmdfs_server_readpages_open()
1563 struct getattr_response *resp) in update_getattr_response() argument
1566 resp->ino = cpu_to_le64( in update_getattr_response()
1568 resp->mode = cpu_to_le16(inode->i_mode); in update_getattr_response()
1571 resp->result_mask = cpu_to_le32(STATX_BASIC_STATS | STATX_BTIME); in update_getattr_response()
1572 resp->fsid = cpu_to_le64(ks->dev); in update_getattr_response()
1573 resp->nlink = cpu_to_le32(ks->nlink); in update_getattr_response()
1574 resp->uid = cpu_to_le32(ks->uid.val); in update_getattr_response()
1575 resp->gid = cpu_to_le32(ks->gid.val); in update_getattr_response()
1576 resp->size = cpu_to_le64(ks->size); in update_getattr_response()
1577 resp->blocks = cpu_to_le64(ks->blocks); in update_getattr_response()
1578 resp->blksize = cpu_to_le32(ks->blksize); in update_getattr_response()
1579 resp->atime = cpu_to_le64(ks->atime.tv_sec); in update_getattr_response()
1580 resp->atime_nsec = cpu_to_le32(ks->atime.tv_nsec); in update_getattr_response()
1581 resp->mtime = cpu_to_le64(ks->mtime.tv_sec); in update_getattr_response()
1582 resp->mtime_nsec = cpu_to_le32(ks->mtime.tv_nsec); in update_getattr_response()
1583 resp->ctime = cpu_to_le64(ks->ctime.tv_sec); in update_getattr_response()
1584 resp->ctime_nsec = cpu_to_le32(ks->ctime.tv_nsec); in update_getattr_response()
1585 resp->crtime = cpu_to_le64(ks->btime.tv_sec); in update_getattr_response()
1586 resp->crtime_nsec = cpu_to_le32(ks->btime.tv_nsec); in update_getattr_response()
1595 struct getattr_response *resp = NULL; in hmdfs_server_getattr() local
1606 resp = kzalloc(size_read, GFP_KERNEL); in hmdfs_server_getattr()
1607 if (!resp) { in hmdfs_server_getattr()
1636 update_getattr_response(con, inode, &ks, resp); in hmdfs_server_getattr()
1646 resp->result_mask = cpu_to_le32(0); in hmdfs_server_getattr()
1648 hmdfs_sendmessage_response(con, cmd, size_read, resp, err); in hmdfs_server_getattr()
1649 kfree(resp); in hmdfs_server_getattr()
1656 kfree(resp); in hmdfs_server_getattr()
1661 static void init_statfs_response(struct statfs_response *resp, in init_statfs_response() argument
1664 resp->f_type = cpu_to_le64(HMDFS_SUPER_MAGIC); in init_statfs_response()
1665 resp->f_bsize = cpu_to_le64(st->f_bsize); in init_statfs_response()
1666 resp->f_blocks = cpu_to_le64(st->f_blocks); in init_statfs_response()
1667 resp->f_bfree = cpu_to_le64(st->f_bfree); in init_statfs_response()
1668 resp->f_bavail = cpu_to_le64(st->f_bavail); in init_statfs_response()
1669 resp->f_files = cpu_to_le64(st->f_files); in init_statfs_response()
1670 resp->f_ffree = cpu_to_le64(st->f_ffree); in init_statfs_response()
1671 resp->f_fsid_0 = cpu_to_le32(st->f_fsid.val[0]); in init_statfs_response()
1672 resp->f_fsid_1 = cpu_to_le32(st->f_fsid.val[1]); in init_statfs_response()
1673 resp->f_namelen = cpu_to_le64(st->f_namelen); in init_statfs_response()
1674 resp->f_frsize = cpu_to_le64(st->f_frsize); in init_statfs_response()
1675 resp->f_flags = cpu_to_le64(st->f_flags); in init_statfs_response()
1677 resp->f_spare_0 = cpu_to_le64(st->f_spare[0]); in init_statfs_response()
1678 resp->f_spare_1 = cpu_to_le64(st->f_spare[1]); in init_statfs_response()
1679 resp->f_spare_2 = cpu_to_le64(st->f_spare[2]); in init_statfs_response()
1680 resp->f_spare_3 = cpu_to_le64(st->f_spare[3]); in init_statfs_response()
1687 struct statfs_response *resp = NULL; in hmdfs_server_statfs() local
1698 resp = kmalloc(sizeof(*resp), GFP_KERNEL); in hmdfs_server_statfs()
1699 if (!resp) { in hmdfs_server_statfs()
1720 init_statfs_response(resp, st); in hmdfs_server_statfs()
1731 hmdfs_sendmessage_response(con, cmd, sizeof(*resp), resp, 0); in hmdfs_server_statfs()
1733 kfree(resp); in hmdfs_server_statfs()
1757 struct getxattr_response *resp = NULL; in hmdfs_server_getxattr() local
1764 resp = kzalloc(size_read, GFP_KERNEL); in hmdfs_server_getxattr()
1765 if (!resp) in hmdfs_server_getxattr()
1784 err = vfs_getxattr(path.dentry, name, resp->value, size); in hmdfs_server_getxattr()
1790 resp->size = cpu_to_le32(err); in hmdfs_server_getxattr()
1791 hmdfs_sendmessage_response(con, cmd, size_read, resp, 0); in hmdfs_server_getxattr()
1794 kfree(resp); in hmdfs_server_getxattr()
1802 kfree(resp); in hmdfs_server_getxattr()
1857 struct listxattr_response *resp = NULL; in hmdfs_server_listxattr() local
1863 resp = kzalloc(size_read, GFP_KERNEL); in hmdfs_server_listxattr()
1864 if (!resp) { in hmdfs_server_listxattr()
1886 err = vfs_listxattr(path.dentry, resp->list, size); in hmdfs_server_listxattr()
1892 resp->size = cpu_to_le32(err); in hmdfs_server_listxattr()
1893 hmdfs_sendmessage_response(con, cmd, size_read, resp, 0); in hmdfs_server_listxattr()
1896 kfree(resp); in hmdfs_server_listxattr()
1904 kfree(resp); in hmdfs_server_listxattr()