| /linux/fs/smb/client/ |
| H A D | smb2file.c | 143 int smb2_open_file(const unsigned int xid, struct cifs_open_parms *oparms, in smb2_open_file() argument 154 struct cifs_fid *fid = oparms->fid; in smb2_open_file() 158 smb2_path = cifs_convert_path_to_utf16(oparms->path, oparms->cifs_sb); in smb2_open_file() 168 if (!(oparms->desired_access & FILE_READ_ATTRIBUTES) && in smb2_open_file() 169 !(oparms->desired_access & GENERIC_READ) && in smb2_open_file() 170 !(oparms->desired_access & GENERIC_EXECUTE) && in smb2_open_file() 171 !(oparms->desired_access & GENERIC_ALL) && in smb2_open_file() 172 !(oparms->desired_access & MAXIMUM_ALLOWED)) { in smb2_open_file() 173 oparms->desired_access |= FILE_READ_ATTRIBUTES; in smb2_open_file() 178 rc = SMB2_open(xid, oparms, smb2_path, &smb2_oplock, smb2_data, NULL, &err_iov, in smb2_open_file() [all …]
|
| H A D | smb2inode.c | 177 struct cifs_open_parms *oparms, struct kvec *in_iov, in smb2_compound_op() argument 257 vars->oparms = *oparms; in smb2_compound_op() 258 vars->oparms.fid = &fid; in smb2_compound_op() 263 &rqst[num_rqst], &oplock, &vars->oparms, in smb2_compound_op() 686 rc = smb2_parse_contexts(server, &rsp_iov[0], &oparms->fid->epoch, in smb2_compound_op() 687 oparms->fid->lease_key, &oplock, &idata->fi, NULL); in smb2_compound_op() 950 struct cifs_open_parms oparms; in smb2_query_path_info() local 1001 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_READ_ATTRIBUTES, in smb2_query_path_info() 1004 &oparms, in_iov, cmds, num_cmds, in smb2_query_path_info() 1041 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, MAXIMUM_ALLOWED, in smb2_query_path_info() [all …]
|
| H A D | link.c | 235 struct cifs_open_parms oparms; in cifs_query_mf_symlink() local 240 oparms = (struct cifs_open_parms) { in cifs_query_mf_symlink() 250 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, &query_data); in cifs_query_mf_symlink() 280 struct cifs_open_parms oparms; in cifs_create_mf_symlink() local 283 oparms = (struct cifs_open_parms) { in cifs_create_mf_symlink() 293 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in cifs_create_mf_symlink() 319 struct cifs_open_parms oparms; in smb3_query_mf_symlink() local 326 oparms = (struct cifs_open_parms) { in smb3_query_mf_symlink() 348 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, pfile_info, NULL, in smb3_query_mf_symlink() 382 struct cifs_open_parms oparms; in smb3_create_mf_symlink() local [all …]
|
| H A D | smb2pdu.c | 2491 create_durable_v2_buf(struct cifs_open_parms *oparms) in create_durable_v2_buf() argument 2493 struct cifs_fid *pfid = oparms->fid; in create_durable_v2_buf() 2514 buf->dcontext.Timeout = cpu_to_le32(oparms->tcon->handle_timeout); in create_durable_v2_buf() 2518 if (!oparms->replay) { in create_durable_v2_buf() 2567 struct cifs_open_parms *oparms) in add_durable_v2_context() argument 2571 iov[num].iov_base = create_durable_v2_buf(oparms); in add_durable_v2_context() 2581 struct cifs_open_parms *oparms) in add_durable_reconnect_v2_context() argument 2586 oparms->reconnect = false; in add_durable_reconnect_v2_context() 2588 iov[num].iov_base = create_reconnect_durable_v2_buf(oparms->fid); in add_durable_reconnect_v2_context() 2598 struct cifs_open_parms *oparms, bool use_persistent) in add_durable_context() argument [all …]
|
| H A D | cached_dir.c | 141 struct cifs_open_parms oparms; in open_cached_dir() local 273 oparms = (struct cifs_open_parms) { in open_cached_dir() 286 &rqst[0], &oplock, &oparms, utf16_path); in open_cached_dir() 327 oparms.fid->persistent_fid = o_rsp->PersistentFileId; in open_cached_dir() 328 oparms.fid->volatile_fid = o_rsp->VolatileFileId; in open_cached_dir() 330 oparms.fid->mid = le64_to_cpu(o_rsp->hdr.MessageId); in open_cached_dir() 341 &oparms.fid->epoch, in open_cached_dir() 342 oparms.fid->lease_key, in open_cached_dir()
|
| H A D | smb1ops.c | 934 static int cifs_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock, in cifs_open_file() argument 941 if (!(oparms->tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_open_file() 942 rc = SMBLegacyOpen(xid, oparms->tcon, oparms->path, in cifs_open_file() 943 oparms->disposition, in cifs_open_file() 944 oparms->desired_access, in cifs_open_file() 945 oparms->create_options, in cifs_open_file() 946 &oparms->fid->netfid, oplock, &fi, in cifs_open_file() 947 oparms->cifs_sb->local_nls, in cifs_open_file() 948 cifs_remap(oparms->cifs_sb)); in cifs_open_file() 950 rc = CIFS_open(xid, oparms, oplock, &fi); in cifs_open_file() [all …]
|
| H A D | smb2ops.c | 872 struct cifs_open_parms oparms; in smb3_qfs_tcon() local 876 oparms = (struct cifs_open_parms) { in smb3_qfs_tcon() 889 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb3_qfs_tcon() 917 struct cifs_open_parms oparms; in smb2_qfs_tcon() local 920 oparms = (struct cifs_open_parms) { in smb2_qfs_tcon() 929 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb2_qfs_tcon() 948 struct cifs_open_parms oparms; in smb2_is_path_accessible() local 965 oparms = (struct cifs_open_parms) { in smb2_is_path_accessible() 974 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in smb2_is_path_accessible() 1179 struct cifs_open_parms oparms; in smb2_set_ea() local [all …]
|
| H A D | reparse.c | 253 struct cifs_open_parms oparms; in detect_directory_symlink_target() local 326 oparms = CIFS_OPARMS(cifs_sb, tcon, resolved_path, in detect_directory_symlink_target() 328 oparms.fid = &fid; in detect_directory_symlink_target() 332 oparms.create_options = cifs_create_options(cifs_sb, in detect_directory_symlink_target() 334 open_rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in detect_directory_symlink_target() 351 oparms.create_options = cifs_create_options(cifs_sb, in detect_directory_symlink_target() 353 open_rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in detect_directory_symlink_target()
|
| H A D | smb2proto.h | 115 int smb2_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock, 148 extern int SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms, 156 __u8 *oplock, struct cifs_open_parms *oparms,
|
| H A D | cifsacl.c | 1451 struct cifs_open_parms oparms; in get_cifs_acl_by_path() local 1459 oparms = (struct cifs_open_parms) { in get_cifs_acl_by_path() 1470 oparms.desired_access |= SYSTEM_SECURITY; in get_cifs_acl_by_path() 1472 rc = CIFS_open(xid, &oparms, &oplock, NULL); in get_cifs_acl_by_path() 1516 struct cifs_open_parms oparms; in set_cifs_acl() local 1531 oparms = (struct cifs_open_parms) { in set_cifs_acl() 1541 rc = CIFS_open(xid, &oparms, &oplock, NULL); in set_cifs_acl()
|
| H A D | dir.c | 192 struct cifs_open_parms oparms; local 340 oparms = (struct cifs_open_parms) { 351 rc = server->ops->open(xid, &oparms, oplock, buf);
|
| H A D | file.c | 551 struct cifs_open_parms oparms; in cifs_nt_open() local 599 oparms = (struct cifs_open_parms) { in cifs_nt_open() 609 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open() 1252 struct cifs_open_parms oparms; in cifs_reopen_file() local 1307 oparms.reconnect = true; in cifs_reopen_file() 1334 oparms = (struct cifs_open_parms) { in cifs_reopen_file() 1352 rc = server->ops->open(xid, &oparms, &oplock, NULL); in cifs_reopen_file() 1353 if (rc == -ENOENT && oparms.reconnect == false) { in cifs_reopen_file() 1355 rc = server->ops->open(xid, &oparms, &oplock, NULL); in cifs_reopen_file() 1357 oparms.reconnect = true; in cifs_reopen_file() [all …]
|
| H A D | cifssmb.c | 1198 CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, int *oplock, in CIFS_open() argument 1207 struct cifs_sb_info *cifs_sb = oparms->cifs_sb; in CIFS_open() 1208 struct cifs_tcon *tcon = oparms->tcon; in CIFS_open() 1211 int create_options = oparms->create_options; in CIFS_open() 1212 int desired_access = oparms->desired_access; in CIFS_open() 1213 int disposition = oparms->disposition; in CIFS_open() 1214 const char *path = oparms->path; in CIFS_open() 1297 oparms->fid->netfid = rsp->Fid; in CIFS_open() 1298 oparms->fid->access = desired_access; in CIFS_open() 2820 struct cifs_open_parms oparms; in cifs_query_reparse_point() local [all …]
|
| H A D | inode.c | 531 struct cifs_open_parms oparms; in cifs_sfu_type() local 560 oparms = (struct cifs_open_parms) { in cifs_sfu_type() 574 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in cifs_sfu_type() 1797 struct cifs_open_parms oparms; in cifs_rename_pending_delete() local 1820 oparms = (struct cifs_open_parms) { in cifs_rename_pending_delete() 1830 rc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_rename_pending_delete() 2424 struct cifs_open_parms oparms; local 2468 oparms = (struct cifs_open_parms) { 2479 rc = CIFS_open(xid, &oparms, &oplock, NULL);
|
| H A D | cifsglob.h | 476 int (*open)(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock, 2222 struct cifs_open_parms oparms; member
|
| H A D | cifsproto.h | 501 extern int CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms,
|
| /linux/net/sched/ |
| H A D | act_connmark.c | 104 struct tcf_connmark_parms *nparms, *oparms; in tcf_connmark_init() local 174 oparms = rcu_replace_pointer(ci->parms, nparms, lockdep_is_held(&ci->tcf_lock)); in tcf_connmark_init() 180 if (oparms) in tcf_connmark_init() 181 kfree_rcu(oparms, rcu); in tcf_connmark_init()
|
| H A D | act_pedit.c | 164 struct tcf_pedit_parms *oparms, *nparms; in tcf_pedit_init() local 285 oparms = rcu_replace_pointer(p->parms, nparms, 1); in tcf_pedit_init() 288 if (oparms) in tcf_pedit_init() 289 call_rcu(&oparms->rcu, tcf_pedit_cleanup_rcu); in tcf_pedit_init()
|