Lines Matching refs:oparms
2205 create_durable_v2_buf(struct cifs_open_parms *oparms) in create_durable_v2_buf() argument
2207 struct cifs_fid *pfid = oparms->fid; in create_durable_v2_buf()
2228 buf->dcontext.Timeout = cpu_to_le32(oparms->tcon->handle_timeout); in create_durable_v2_buf()
2276 struct cifs_open_parms *oparms) in add_durable_v2_context() argument
2281 iov[num].iov_base = create_durable_v2_buf(oparms); in add_durable_v2_context()
2296 struct cifs_open_parms *oparms) in add_durable_reconnect_v2_context() argument
2302 oparms->reconnect = false; in add_durable_reconnect_v2_context()
2304 iov[num].iov_base = create_reconnect_durable_v2_buf(oparms->fid); in add_durable_reconnect_v2_context()
2320 struct cifs_open_parms *oparms, bool use_persistent) in add_durable_context() argument
2326 if (oparms->reconnect) in add_durable_context()
2328 oparms); in add_durable_context()
2330 return add_durable_v2_context(iov, num_iovec, oparms); in add_durable_context()
2333 if (oparms->reconnect) { in add_durable_context()
2334 iov[num].iov_base = create_reconnect_durable_buf(oparms->fid); in add_durable_context()
2336 oparms->reconnect = false; in add_durable_context()
2785 struct cifs_open_parms *oparms, __le16 *path) in SMB2_open_init() argument
2806 if (oparms->create_options & CREATE_OPTION_READONLY) in SMB2_open_init()
2808 if (oparms->create_options & CREATE_OPTION_SPECIAL) in SMB2_open_init()
2812 req->DesiredAccess = cpu_to_le32(oparms->desired_access); in SMB2_open_init()
2817 req->CreateDisposition = cpu_to_le32(oparms->disposition); in SMB2_open_init()
2818 req->CreateOptions = cpu_to_le32(oparms->create_options & CREATE_OPTIONS_MASK); in SMB2_open_init()
2865 (oparms->create_options & CREATE_NOT_FILE)) in SMB2_open_init()
2869 oparms->fid->lease_key, oplock); in SMB2_open_init()
2883 rc = add_durable_context(iov, &n_iov, oparms, in SMB2_open_init()
2897 rc = add_posix_context(iov, &n_iov, oparms->mode); in SMB2_open_init()
2916 if ((oparms->disposition != FILE_OPEN) && (oparms->cifs_sb)) { in SMB2_open_init()
2920 if ((oparms->cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MODE_FROM_SID) && in SMB2_open_init()
2921 (oparms->mode != ACL_NO_MODE)) in SMB2_open_init()
2925 oparms->mode = ACL_NO_MODE; in SMB2_open_init()
2928 if (oparms->cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UID_FROM_ACL) in SMB2_open_init()
2940 cifs_dbg(FYI, "add sd with mode 0x%x\n", oparms->mode); in SMB2_open_init()
2941 rc = add_sd_context(iov, &n_iov, oparms->mode, set_owner); in SMB2_open_init()
2975 SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms, __le16 *path, in SMB2_open() argument
2982 struct cifs_tcon *tcon = oparms->tcon; in SMB2_open()
3004 &rqst, oplock, oparms, path); in SMB2_open()
3009 oparms->create_options, oparms->desired_access); in SMB2_open()
3025 oparms->create_options, oparms->desired_access, rc); in SMB2_open()
3036 oparms->create_options, oparms->desired_access); in SMB2_open()
3039 oparms->fid->persistent_fid = rsp->PersistentFileId; in SMB2_open()
3040 oparms->fid->volatile_fid = rsp->VolatileFileId; in SMB2_open()
3041 oparms->fid->access = oparms->desired_access; in SMB2_open()
3043 oparms->fid->mid = le64_to_cpu(rsp->hdr.MessageId); in SMB2_open()
3059 smb2_parse_contexts(server, rsp, &oparms->fid->epoch, in SMB2_open()
3060 oparms->fid->lease_key, oplock, buf, posix); in SMB2_open()