Home
last modified time | relevance | path

Searched refs:oparms (Results 1 – 16 of 16) sorted by relevance

/linux/fs/smb/client/
H A Dsmb2file.c143 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 Dsmb2inode.c177 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()
694 rc = smb2_parse_contexts(server, &rsp_iov[0], &oparms->fid->epoch, in smb2_compound_op()
695 oparms->fid->lease_key, &oplock, &idata->fi, NULL); in smb2_compound_op()
958 struct cifs_open_parms oparms; in smb2_query_path_info() local
1009 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_READ_ATTRIBUTES, in smb2_query_path_info()
1012 &oparms, in_iov, cmds, num_cmds, in smb2_query_path_info()
1049 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, MAXIMUM_ALLOWED, in smb2_query_path_info()
[all …]
H A Dlink.c234 struct cifs_open_parms oparms; in cifs_query_mf_symlink() local
239 oparms = (struct cifs_open_parms) { in cifs_query_mf_symlink()
249 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, &query_data); in cifs_query_mf_symlink()
279 struct cifs_open_parms oparms; in cifs_create_mf_symlink() local
282 oparms = (struct cifs_open_parms) { in cifs_create_mf_symlink()
292 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in cifs_create_mf_symlink()
318 struct cifs_open_parms oparms; in smb3_query_mf_symlink() local
325 oparms = (struct cifs_open_parms) { in smb3_query_mf_symlink()
347 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, pfile_info, NULL, in smb3_query_mf_symlink()
381 struct cifs_open_parms oparms; in smb3_create_mf_symlink() local
[all …]
H A Dsmb1ops.c875 static int cifs_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock, in cifs_open_file() argument
882 if (!(oparms->tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_open_file()
883 rc = SMBLegacyOpen(xid, oparms->tcon, oparms->path, in cifs_open_file()
884 oparms->disposition, in cifs_open_file()
885 oparms->desired_access, in cifs_open_file()
886 oparms->create_options, in cifs_open_file()
887 &oparms->fid->netfid, oplock, &fi, in cifs_open_file()
888 oparms->cifs_sb->local_nls, in cifs_open_file()
889 cifs_remap(oparms->cifs_sb)); in cifs_open_file()
891 rc = CIFS_open(xid, oparms, oplock, &fi); in cifs_open_file()
[all …]
H A Dsmb2pdu.c2488 create_durable_v2_buf(struct cifs_open_parms *oparms) in create_durable_v2_buf() argument
2490 struct cifs_fid *pfid = oparms->fid; in create_durable_v2_buf()
2511 buf->dcontext.Timeout = cpu_to_le32(oparms->tcon->handle_timeout); in create_durable_v2_buf()
2515 if (!oparms->replay) { in create_durable_v2_buf()
2563 struct cifs_open_parms *oparms) in add_durable_v2_context() argument
2567 iov[num].iov_base = create_durable_v2_buf(oparms); in add_durable_v2_context()
2577 struct cifs_open_parms *oparms) in add_durable_reconnect_v2_context() argument
2582 oparms->reconnect = false; in add_durable_reconnect_v2_context()
2584 iov[num].iov_base = create_reconnect_durable_v2_buf(oparms->fid); in add_durable_reconnect_v2_context()
2594 struct cifs_open_parms *oparms, bool use_persistent) in add_durable_context() argument
[all …]
H A Dcached_dir.c141 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()
331 oparms.fid->persistent_fid = o_rsp->PersistentFileId; in open_cached_dir()
332 oparms.fid->volatile_fid = o_rsp->VolatileFileId; in open_cached_dir()
334 oparms.fid->mid = le64_to_cpu(o_rsp->hdr.MessageId); in open_cached_dir()
345 &oparms.fid->epoch, in open_cached_dir()
346 oparms.fid->lease_key, in open_cached_dir()
H A Dsmb2ops.c878 struct cifs_open_parms oparms; in smb3_qfs_tcon() local
882 oparms = (struct cifs_open_parms) { in smb3_qfs_tcon()
895 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb3_qfs_tcon()
923 struct cifs_open_parms oparms; in smb2_qfs_tcon() local
926 oparms = (struct cifs_open_parms) { in smb2_qfs_tcon()
935 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb2_qfs_tcon()
954 struct cifs_open_parms oparms; in smb2_is_path_accessible() local
971 oparms = (struct cifs_open_parms) { in smb2_is_path_accessible()
980 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in smb2_is_path_accessible()
1185 struct cifs_open_parms oparms; in smb2_set_ea() local
[all …]
H A Dreparse.c254 struct cifs_open_parms oparms; in detect_directory_symlink_target() local
327 oparms = CIFS_OPARMS(cifs_sb, tcon, resolved_path, in detect_directory_symlink_target()
329 oparms.fid = &fid; in detect_directory_symlink_target()
333 oparms.create_options = cifs_create_options(cifs_sb, in detect_directory_symlink_target()
335 open_rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in detect_directory_symlink_target()
352 oparms.create_options = cifs_create_options(cifs_sb, in detect_directory_symlink_target()
354 open_rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in detect_directory_symlink_target()
H A Dsmb2proto.h105 int smb2_open_file(const unsigned int xid, struct cifs_open_parms *oparms,
133 int SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms,
139 struct cifs_open_parms *oparms, __le16 *path);
H A Dcifsacl.c1447 struct cifs_open_parms oparms; in get_cifs_acl_by_path() local
1455 oparms = (struct cifs_open_parms) { in get_cifs_acl_by_path()
1466 oparms.desired_access |= SYSTEM_SECURITY; in get_cifs_acl_by_path()
1468 rc = CIFS_open(xid, &oparms, &oplock, NULL); in get_cifs_acl_by_path()
1512 struct cifs_open_parms oparms; in set_cifs_acl() local
1527 oparms = (struct cifs_open_parms) { in set_cifs_acl()
1537 rc = CIFS_open(xid, &oparms, &oplock, NULL); in set_cifs_acl()
H A Ddir.c193 struct cifs_open_parms oparms; local
342 oparms = (struct cifs_open_parms) {
353 rc = server->ops->open(xid, &oparms, oplock, buf);
H A Dfile.c550 struct cifs_open_parms oparms; in cifs_nt_open() local
591 oparms = (struct cifs_open_parms) { in cifs_nt_open()
601 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open()
1236 struct cifs_open_parms oparms; in cifs_reopen_file() local
1291 oparms.reconnect = true; in cifs_reopen_file()
1313 oparms = (struct cifs_open_parms) { in cifs_reopen_file()
1331 rc = server->ops->open(xid, &oparms, &oplock, NULL); in cifs_reopen_file()
1332 if (rc == -ENOENT && oparms.reconnect == false) { in cifs_reopen_file()
1334 rc = server->ops->open(xid, &oparms, &oplock, NULL); in cifs_reopen_file()
1336 oparms.reconnect = true; in cifs_reopen_file()
[all …]
H A Dinode.c526 struct cifs_open_parms oparms; in cifs_sfu_type() local
555 oparms = (struct cifs_open_parms) { in cifs_sfu_type()
569 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in cifs_sfu_type()
1794 struct cifs_open_parms oparms; in cifs_rename_pending_delete() local
1817 oparms = (struct cifs_open_parms) { in cifs_rename_pending_delete()
1827 rc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_rename_pending_delete()
2423 struct cifs_open_parms oparms; local
2467 oparms = (struct cifs_open_parms) {
2478 rc = CIFS_open(xid, &oparms, &oplock, NULL);
H A Dcifsglob.h476 int (*open)(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock,
2255 struct cifs_open_parms oparms; member
/linux/net/sched/
H A Dact_connmark.c104 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 Dact_pedit.c164 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()