Home
last modified time | relevance | path

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

/linux/fs/smb/client/
H A Dsmb2file.c150 int smb2_open_file(const unsigned int xid, struct cifs_open_parms *oparms, in smb2_open_file() argument
161 struct cifs_fid *fid = oparms->fid; in smb2_open_file()
165 smb2_path = cifs_convert_path_to_utf16(oparms->path, oparms->cifs_sb); in smb2_open_file()
175 if (!(oparms->desired_access & FILE_READ_ATTRIBUTES) && in smb2_open_file()
176 !(oparms->desired_access & GENERIC_READ) && in smb2_open_file()
177 !(oparms->desired_access & GENERIC_EXECUTE) && in smb2_open_file()
178 !(oparms->desired_access & GENERIC_ALL) && in smb2_open_file()
179 !(oparms->desired_access & MAXIMUM_ALLOWED)) { in smb2_open_file()
180 oparms->desired_access |= FILE_READ_ATTRIBUTES; in smb2_open_file()
185 rc = SMB2_open(xid, oparms, smb2_path, &smb2_oplock, smb2_data, NULL, &err_iov, in smb2_open_file()
[all …]
H A Dsmb2inode.c202 struct cifs_open_parms *oparms, struct kvec *in_iov, in smb2_compound_op() argument
282 vars->oparms = *oparms; in smb2_compound_op()
283 vars->oparms.fid = &fid; in smb2_compound_op()
288 &rqst[num_rqst], &oplock, &vars->oparms, in smb2_compound_op()
583 rc = smb2_parse_contexts(server, &rsp_iov[0], &oparms->fid->epoch, in smb2_compound_op()
584 oparms->fid->lease_key, &oplock, &idata->fi, NULL); in smb2_compound_op()
847 struct cifs_open_parms oparms; in smb2_query_path_info() local
898 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_READ_ATTRIBUTES, in smb2_query_path_info()
901 &oparms, in_iov, cmds, num_cmds, in smb2_query_path_info()
938 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.c872 static int cifs_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock, in cifs_open_file() argument
879 if (!(oparms->tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_open_file()
880 rc = SMBLegacyOpen(xid, oparms->tcon, oparms->path, in cifs_open_file()
881 oparms->disposition, in cifs_open_file()
882 oparms->desired_access, in cifs_open_file()
883 oparms->create_options, in cifs_open_file()
884 &oparms->fid->netfid, oplock, &fi, in cifs_open_file()
885 oparms->cifs_sb->local_nls, in cifs_open_file()
886 cifs_remap(oparms->cifs_sb)); in cifs_open_file()
888 rc = CIFS_open(xid, oparms, oplock, &fi); in cifs_open_file()
[all …]
H A Dsmb2pdu.c2500 create_durable_v2_buf(struct cifs_open_parms *oparms) in create_durable_v2_buf() argument
2502 struct cifs_fid *pfid = oparms->fid; in create_durable_v2_buf()
2523 buf->dcontext.Timeout = cpu_to_le32(oparms->tcon->handle_timeout); in create_durable_v2_buf()
2527 if (!oparms->replay) { in create_durable_v2_buf()
2575 struct cifs_open_parms *oparms) in add_durable_v2_context() argument
2579 iov[num].iov_base = create_durable_v2_buf(oparms); in add_durable_v2_context()
2589 struct cifs_open_parms *oparms) in add_durable_reconnect_v2_context() argument
2594 oparms->reconnect = false; in add_durable_reconnect_v2_context()
2596 iov[num].iov_base = create_reconnect_durable_v2_buf(oparms->fid); in add_durable_reconnect_v2_context()
2606 struct cifs_open_parms *oparms, boo in add_durable_context() argument
2835 add_ea_context(struct cifs_open_parms * oparms,struct kvec * rq_iov,unsigned int * num_iovs) add_ea_context() argument
3084 SMB2_open_init(struct cifs_tcon * tcon,struct TCP_Server_Info * server,struct smb_rqst * rqst,__u8 * oplock,struct cifs_open_parms * oparms,__le16 * path) SMB2_open_init() argument
3264 SMB2_open(const unsigned int xid,struct cifs_open_parms * oparms,__le16 * path,__u8 * oplock,struct smb2_file_all_info * buf,struct create_posix_rsp * posix,struct kvec * err_iov,int * buftype) SMB2_open() 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()
339 oparms.fid->persistent_fid = o_rsp->PersistentFileId; in open_cached_dir()
340 oparms.fid->volatile_fid = o_rsp->VolatileFileId; in open_cached_dir()
342 oparms.fid->mid = le64_to_cpu(o_rsp->hdr.MessageId); in open_cached_dir()
353 &oparms.fid->epoch, in open_cached_dir()
354 oparms.fid->lease_key, in open_cached_dir()
H A Dsmb2ops.c889 struct cifs_open_parms oparms; in smb3_qfs_tcon() local
893 oparms = (struct cifs_open_parms) { in smb3_qfs_tcon()
906 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb3_qfs_tcon()
934 struct cifs_open_parms oparms; in smb2_qfs_tcon() local
937 oparms = (struct cifs_open_parms) { in smb2_qfs_tcon()
946 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb2_qfs_tcon()
965 struct cifs_open_parms oparms; in smb2_is_path_accessible() local
982 oparms = (struct cifs_open_parms) { in smb2_is_path_accessible()
991 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in smb2_is_path_accessible()
1196 struct cifs_open_parms oparms; in smb2_set_ea() local
1597 struct cifs_open_parms oparms; smb2_ioctl_query_info() local
2378 struct cifs_open_parms oparms; smb3_notify() local
2466 struct cifs_open_parms oparms; smb2_query_dir_first() local
2843 struct cifs_open_parms oparms; smb2_query_info_compound() local
3032 struct cifs_open_parms oparms; smb311_queryfs() local
3247 struct cifs_open_parms oparms; get_smb2_acl_by_path() local
3313 struct cifs_open_parms oparms; set_smb2_acl() local
5213 struct cifs_open_parms oparms; __cifs_sfu_make_node() 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.h110 int smb2_open_file(const unsigned int xid, struct cifs_open_parms *oparms,
138 int SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms,
144 struct cifs_open_parms *oparms, __le16 *path);
H A Dcifsacl.c1518 struct cifs_open_parms oparms; in get_cifs_acl_by_path() local
1526 oparms = (struct cifs_open_parms) { in get_cifs_acl_by_path()
1537 oparms.desired_access |= SYSTEM_SECURITY; in get_cifs_acl_by_path()
1539 rc = CIFS_open(xid, &oparms, &oplock, NULL); in get_cifs_acl_by_path()
1583 struct cifs_open_parms oparms; in set_cifs_acl() local
1598 oparms = (struct cifs_open_parms) { in set_cifs_acl()
1608 rc = CIFS_open(xid, &oparms, &oplock, NULL); in set_cifs_acl()
H A Dfile.c556 struct cifs_open_parms oparms; in cifs_nt_open() local
597 oparms = (struct cifs_open_parms) { in cifs_nt_open()
607 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open()
1248 struct cifs_open_parms oparms; in cifs_reopen_file() local
1303 oparms.reconnect = true; in cifs_reopen_file()
1325 oparms = (struct cifs_open_parms) { in cifs_reopen_file()
1343 rc = server->ops->open(xid, &oparms, &oplock, NULL); in cifs_reopen_file()
1344 if (rc == -ENOENT && oparms.reconnect == false) { in cifs_reopen_file()
1346 rc = server->ops->open(xid, &oparms, &oplock, NULL); in cifs_reopen_file()
1348 oparms 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 Ddir.c217 struct cifs_open_parms oparms; local
364 oparms = (struct cifs_open_parms) {
375 rc = server->ops->open(xid, &oparms, oplock, buf);
H A Dcifsglob.h473 int (*open)(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock,
2252 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()