Home
last modified time | relevance | path

Searched refs:tcon (Results 1 – 25 of 90) sorted by relevance

1234

/Linux-v6.6/drivers/gpu/drm/sun4i/
Dsun4i_tcon.c84 static void sun4i_tcon_channel_set_status(struct sun4i_tcon *tcon, int channel, in sun4i_tcon_channel_set_status() argument
91 WARN_ON(!tcon->quirks->has_channel_0); in sun4i_tcon_channel_set_status()
92 regmap_update_bits(tcon->regs, SUN4I_TCON0_CTL_REG, in sun4i_tcon_channel_set_status()
95 clk = tcon->dclk; in sun4i_tcon_channel_set_status()
98 WARN_ON(!tcon->quirks->has_channel_1); in sun4i_tcon_channel_set_status()
99 regmap_update_bits(tcon->regs, SUN4I_TCON1_CTL_REG, in sun4i_tcon_channel_set_status()
102 clk = tcon->sclk1; in sun4i_tcon_channel_set_status()
118 static void sun4i_tcon_setup_lvds_phy(struct sun4i_tcon *tcon, in sun4i_tcon_setup_lvds_phy() argument
121 regmap_write(tcon->regs, SUN4I_TCON0_LVDS_ANA0_REG, in sun4i_tcon_setup_lvds_phy()
130 regmap_update_bits(tcon->regs, SUN4I_TCON0_LVDS_ANA1_REG, in sun4i_tcon_setup_lvds_phy()
[all …]
Dsun4i_tcon_dclk.c18 struct sun4i_tcon *tcon; member
74 struct sun4i_tcon *tcon = dclk->tcon; in sun4i_dclk_round_rate() local
79 for (i = tcon->dclk_min_div; i <= tcon->dclk_max_div; i++) { in sun4i_dclk_round_rate()
165 int sun4i_dclk_create(struct device *dev, struct sun4i_tcon *tcon) in sun4i_dclk_create() argument
172 parent_name = __clk_get_name(tcon->sclk0); in sun4i_dclk_create()
182 dclk->tcon = tcon; in sun4i_dclk_create()
190 dclk->regmap = tcon->regs; in sun4i_dclk_create()
193 tcon->dclk = clk_register(dev, &dclk->hw); in sun4i_dclk_create()
194 if (IS_ERR(tcon->dclk)) in sun4i_dclk_create()
195 return PTR_ERR(tcon->dclk); in sun4i_dclk_create()
[all …]
Dsun4i_rgb.c27 struct sun4i_tcon *tcon; member
66 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_mode_valid() local
121 tcon->dclk_min_div = 6; in sun4i_rgb_mode_valid()
122 tcon->dclk_max_div = 127; in sun4i_rgb_mode_valid()
123 rounded_rate = clk_round_rate(tcon->dclk, rate); in sun4i_rgb_mode_valid()
189 int sun4i_rgb_init(struct drm_device *drm, struct sun4i_tcon *tcon) in sun4i_rgb_init() argument
198 rgb->tcon = tcon; in sun4i_rgb_init()
201 ret = drm_of_find_panel_or_bridge(tcon->dev->of_node, 1, 0, in sun4i_rgb_init()
218 rgb->encoder.possible_crtcs = drm_crtc_mask(&tcon->crtc->crtc); in sun4i_rgb_init()
/Linux-v6.6/fs/smb/client/
Dioctl.c31 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_ioctl_query_info() local
57 if (tcon->ses->server->ops->ioctl_query_info) in cifs_ioctl_query_info()
58 rc = tcon->ses->server->ops->ioctl_query_info( in cifs_ioctl_query_info()
59 xid, tcon, cifs_sb, utf16_path, in cifs_ioctl_query_info()
120 static long smb_mnt_get_fsinfo(unsigned int xid, struct cifs_tcon *tcon, in smb_mnt_get_fsinfo() argument
131 fsinf->protocol_id = tcon->ses->server->vals->protocol_id; in smb_mnt_get_fsinfo()
133 le32_to_cpu(tcon->fsDevInfo.DeviceCharacteristics); in smb_mnt_get_fsinfo()
134 fsinf->device_type = le32_to_cpu(tcon->fsDevInfo.DeviceType); in smb_mnt_get_fsinfo()
135 fsinf->fs_attributes = le32_to_cpu(tcon->fsAttrInfo.Attributes); in smb_mnt_get_fsinfo()
137 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength); in smb_mnt_get_fsinfo()
[all …]
Dsmb1ops.c440 cifs_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in cifs_negotiate_wsize() argument
442 __u64 unix_cap = le64_to_cpu(tcon->fsUnixInfo.Capability); in cifs_negotiate_wsize()
443 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_wsize()
449 else if (tcon->unix_ext && (unix_cap & CIFS_UNIX_LARGE_WRITE_CAP)) in cifs_negotiate_wsize()
455 if (!tcon->unix_ext || !(unix_cap & CIFS_UNIX_LARGE_WRITE_CAP)) in cifs_negotiate_wsize()
475 cifs_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in cifs_negotiate_rsize() argument
477 __u64 unix_cap = le64_to_cpu(tcon->fsUnixInfo.Capability); in cifs_negotiate_rsize()
478 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_rsize()
493 if (tcon->unix_ext && (unix_cap & CIFS_UNIX_LARGE_READ_CAP)) in cifs_negotiate_rsize()
516 cifs_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in cifs_qfs_tcon() argument
[all …]
Dsmb2inode.c46 static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon, in smb2_compound_op() argument
60 struct cifs_ses *ses = tcon->ses; in smb2_compound_op()
80 if (smb3_encryption_required(tcon)) in smb2_compound_op()
97 .tcon = tcon, in smb2_compound_op()
109 rc = SMB2_open_init(tcon, server, in smb2_compound_op()
116 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
128 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
137 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
146 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
154 trace_smb3_query_info_compound_enter(xid, ses->Suid, tcon->tid, in smb2_compound_op()
[all …]
Dsmb2proto.h56 extern int smb2_query_reparse_tag(const unsigned int xid, struct cifs_tcon *tcon,
60 struct cifs_tcon *tcon,
64 extern int smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon,
70 umode_t mode, struct cifs_tcon *tcon,
74 umode_t mode, struct cifs_tcon *tcon,
78 struct cifs_tcon *tcon, const unsigned int xid);
79 extern int smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon,
81 extern int smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon,
83 extern int smb2_rename_path(const unsigned int xid, struct cifs_tcon *tcon,
86 extern int smb2_create_hardlink(const unsigned int xid, struct cifs_tcon *tcon,
[all …]
Ddfs.c233 struct cifs_tcon *tcon; in __dfs_mount_share() local
245 tcon = mnt_ctx->tcon; in __dfs_mount_share()
246 spin_lock(&tcon->tc_lock); in __dfs_mount_share()
247 if (!tcon->origin_fullpath) { in __dfs_mount_share()
248 tcon->origin_fullpath = origin_fullpath; in __dfs_mount_share()
251 spin_unlock(&tcon->tc_lock); in __dfs_mount_share()
253 if (list_empty(&tcon->dfs_ses_list)) { in __dfs_mount_share()
254 list_replace_init(&mnt_ctx->dfs_ses_list, &tcon->dfs_ses_list); in __dfs_mount_share()
255 queue_delayed_work(dfscache_wq, &tcon->dfs_cache_work, in __dfs_mount_share()
394 struct cifs_tcon *tcon = ses->tcon_ipc; in __tree_connect_ipc() local
[all …]
Dcifs_swn.c32 struct cifs_tcon *tcon; member
35 static int cifs_swn_auth_info_krb(struct cifs_tcon *tcon, struct sk_buff *skb) in cifs_swn_auth_info_krb() argument
46 static int cifs_swn_auth_info_ntlm(struct cifs_tcon *tcon, struct sk_buff *skb) in cifs_swn_auth_info_ntlm() argument
50 if (tcon->ses->user_name != NULL) { in cifs_swn_auth_info_ntlm()
51 ret = nla_put_string(skb, CIFS_GENL_ATTR_SWN_USER_NAME, tcon->ses->user_name); in cifs_swn_auth_info_ntlm()
56 if (tcon->ses->password != NULL) { in cifs_swn_auth_info_ntlm()
57 ret = nla_put_string(skb, CIFS_GENL_ATTR_SWN_PASSWORD, tcon->ses->password); in cifs_swn_auth_info_ntlm()
62 if (tcon->ses->domainName != NULL) { in cifs_swn_auth_info_ntlm()
63 ret = nla_put_string(skb, CIFS_GENL_ATTR_SWN_DOMAIN_NAME, tcon->ses->domainName); in cifs_swn_auth_info_ntlm()
114 if (swnreg->tcon->ses->server->use_swn_dstaddr) in cifs_swn_send_register_message()
[all …]
Dsmb2pdu.c73 int smb3_encryption_required(const struct cifs_tcon *tcon) in smb3_encryption_required() argument
75 if (!tcon || !tcon->ses) in smb3_encryption_required()
77 if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in smb3_encryption_required()
78 (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA)) in smb3_encryption_required()
80 if (tcon->seal && in smb3_encryption_required()
81 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required()
88 const struct cifs_tcon *tcon, in smb2_hdr_assemble() argument
126 if (!tcon) in smb2_hdr_assemble()
135 shdr->Id.SyncId.TreeId = cpu_to_le32(tcon->tid); in smb2_hdr_assemble()
137 if (tcon->ses) in smb2_hdr_assemble()
[all …]
Dcifsproto.h79 struct cifs_tcon *tcon,
153 extern int cifs_get_writable_path(struct cifs_tcon *tcon, const char *name,
157 extern int cifs_get_readable_path(struct cifs_tcon *tcon, const char *name,
265 extern void cifs_mark_open_files_invalid(struct cifs_tcon *tcon);
266 extern void cifs_reopen_persistent_handles(struct cifs_tcon *tcon);
299 extern void cifs_put_tcon(struct cifs_tcon *tcon);
310 extern int cifs_tree_connect(const unsigned int xid, struct cifs_tcon *tcon,
325 const char *tree, struct cifs_tcon *tcon,
328 extern int CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon,
334 extern int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon,
[all …]
Dconnect.c122 struct cifs_tcon *tcon = container_of(work, in smb2_query_server_interfaces() local
129 rc = SMB3_request_interfaces(0, tcon, false); in smb2_query_server_interfaces()
135 queue_delayed_work(cifsiod_wq, &tcon->query_interfaces, in smb2_query_server_interfaces()
196 struct cifs_tcon *tcon; in cifs_mark_tcp_ses_conns_for_reconnect() local
239 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_mark_tcp_ses_conns_for_reconnect()
240 tcon->need_reconnect = true; in cifs_mark_tcp_ses_conns_for_reconnect()
241 spin_lock(&tcon->tc_lock); in cifs_mark_tcp_ses_conns_for_reconnect()
242 tcon->status = TID_NEED_RECON; in cifs_mark_tcp_ses_conns_for_reconnect()
243 spin_unlock(&tcon->tc_lock); in cifs_mark_tcp_ses_conns_for_reconnect()
1866 struct cifs_tcon *tcon; in cifs_setup_ipc() local
[all …]
Dlink.c172 create_mf_symlink(const unsigned int xid, struct cifs_tcon *tcon, in create_mf_symlink() argument
188 if (tcon->ses->server->ops->create_mf_symlink) in create_mf_symlink()
189 rc = tcon->ses->server->ops->create_mf_symlink(xid, tcon, in create_mf_symlink()
205 check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, in check_mf_symlink() argument
223 if (tcon->ses->server->ops->query_mf_symlink) in check_mf_symlink()
224 rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon, in check_mf_symlink()
262 cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, in cifs_query_mf_symlink() argument
275 .tcon = tcon, in cifs_query_mf_symlink()
296 io_parms.tcon = tcon; in cifs_query_mf_symlink()
302 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_query_mf_symlink()
[all …]
Dsmb2misc.c547 smb2_tcon_has_lease(struct cifs_tcon *tcon, struct smb2_lease_break *rsp) in smb2_tcon_has_lease() argument
557 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in smb2_tcon_has_lease()
586 smb2_tcon_find_pending_open_lease(struct cifs_tcon *tcon, in smb2_tcon_find_pending_open_lease() argument
595 list_for_each_entry(open, &tcon->pending_opens, olist) { in smb2_tcon_find_pending_open_lease()
620 struct cifs_tcon *tcon; in smb2_is_valid_lease_break() local
631 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_valid_lease_break()
632 spin_lock(&tcon->open_file_lock); in smb2_is_valid_lease_break()
634 &tcon->stats.cifs_stats.num_oplock_brks); in smb2_is_valid_lease_break()
635 if (smb2_tcon_has_lease(tcon, rsp)) { in smb2_is_valid_lease_break()
636 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_lease_break()
[all …]
Dsmb2ops.c435 smb2_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb2_negotiate_wsize() argument
437 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize()
450 smb3_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb3_negotiate_wsize() argument
452 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize()
482 smb2_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb2_negotiate_rsize() argument
484 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize()
498 smb3_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb3_negotiate_rsize() argument
500 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize()
753 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount) in SMB3_request_interfaces() argument
758 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces()
[all …]
Dcifsfs.c193 struct cifs_tcon *tcon; in cifs_read_super() local
198 tcon = cifs_sb_master_tcon(cifs_sb); in cifs_read_super()
203 if (tcon->snapshot_time) in cifs_read_super()
206 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super()
218 if ((tcon->ses->server->vals->protocol_id == SMB10_PROT_ID) && in cifs_read_super()
219 ((tcon->ses->capabilities & in cifs_read_super()
220 tcon->ses->server->vals->cap_nt_find) == 0) && in cifs_read_super()
221 !tcon->unix_ext) { in cifs_read_super()
249 tcon->ses->server->ops->negotiate_rsize(tcon, cifs_sb->ctx); in cifs_read_super()
264 if (tcon->nocase) in cifs_read_super()
[all …]
Ddir.c40 struct cifs_tcon *tcon, int add_treename) in cifs_build_path_to_root() argument
53 dfsplen = strnlen(tcon->tree_name, MAX_TREE_SIZE + 1); in cifs_build_path_to_root()
62 memcpy(full_path, tcon->tree_name, dfsplen); in cifs_build_path_to_root()
74 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry() local
75 bool prefix = tcon->Flags & SMB_SHARE_IS_IN_DFS; in build_path_from_dentry()
141 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry_optional_prefix() local
143 return __build_path_from_dentry_optional_prefix(direntry, page, tcon->tree_name, in build_path_from_dentry_optional_prefix()
153 check_name(struct dentry *direntry, struct cifs_tcon *tcon) in check_name() argument
158 if (unlikely(tcon->fsAttrInfo.MaxPathNameComponentLength && in check_name()
160 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength))) in check_name()
[all …]
Dinode.c382 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_get_file_info_unix() local
394 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data); in cifs_get_file_info_unix()
419 struct cifs_tcon *tcon; in cifs_get_unix_fattr() local
428 tcon = tlink_tcon(tlink); in cifs_get_unix_fattr()
429 server = tcon->ses->server; in cifs_get_unix_fattr()
432 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data, in cifs_get_unix_fattr()
451 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path); in cifs_get_unix_fattr()
458 rc = server->ops->query_symlink(xid, tcon, in cifs_get_unix_fattr()
508 struct cifs_tcon *tcon; in cifs_sfu_type() local
534 tcon = tlink_tcon(tlink); in cifs_sfu_type()
[all …]
Dcifssmb.c69 cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command) in cifs_reconnect_tcon() argument
81 if (!tcon) in cifs_reconnect_tcon()
84 ses = tcon->ses; in cifs_reconnect_tcon()
91 spin_lock(&tcon->tc_lock); in cifs_reconnect_tcon()
92 if (tcon->status == TID_EXITING) { in cifs_reconnect_tcon()
94 spin_unlock(&tcon->tc_lock); in cifs_reconnect_tcon()
100 spin_unlock(&tcon->tc_lock); in cifs_reconnect_tcon()
103 rc = cifs_wait_for_server_reconnect(server, tcon->retry); in cifs_reconnect_tcon()
108 if (!cifs_chan_needs_reconnect(ses, server) && !tcon->need_reconnect) { in cifs_reconnect_tcon()
125 if (tcon->retry) in cifs_reconnect_tcon()
[all …]
Dfscache.c16 struct cifs_tcon *tcon, in cifs_fscache_fill_volume_coherency() argument
20 cd->resource_id = cpu_to_le64(tcon->resource_id); in cifs_fscache_fill_volume_coherency()
21 cd->vol_create_time = tcon->vol_create_time; in cifs_fscache_fill_volume_coherency()
22 cd->vol_serial_number = cpu_to_le32(tcon->vol_serial_number); in cifs_fscache_fill_volume_coherency()
25 int cifs_fscache_get_super_cookie(struct cifs_tcon *tcon) in cifs_fscache_get_super_cookie() argument
28 struct TCP_Server_Info *server = tcon->ses->server; in cifs_fscache_get_super_cookie()
36 tcon->fscache = NULL; in cifs_fscache_get_super_cookie()
48 sharename = extract_sharename(tcon->tree_name); in cifs_fscache_get_super_cookie()
63 cifs_fscache_fill_volume_coherency(tcon, &cd); in cifs_fscache_get_super_cookie()
77 tcon->fscache = vcookie; in cifs_fscache_get_super_cookie()
[all …]
Dcached_dir.c125 int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon, in open_cached_dir() argument
149 if (tcon == NULL || tcon->cfids == NULL || tcon->nohandlecache || in open_cached_dir()
150 is_smb1_server(tcon->ses->server) || (dir_cache_timeout == 0)) in open_cached_dir()
153 ses = tcon->ses; in open_cached_dir()
155 cfids = tcon->cfids; in open_cached_dir()
167 cfid = find_or_create_cached_dir(cfids, path, lookup_only, tcon->max_cached_dirs); in open_cached_dir()
207 if (smb3_encryption_required(tcon)) in open_cached_dir()
223 .tcon = tcon, in open_cached_dir()
231 rc = SMB2_open_init(tcon, server, in open_cached_dir()
235 smb2_set_next_command(tcon, &rqst[0]); in open_cached_dir()
[all …]
Dcifs_debug.c88 static void cifs_debug_tcon(struct seq_file *m, struct cifs_tcon *tcon) in cifs_debug_tcon() argument
90 __u32 dev_type = le32_to_cpu(tcon->fsDevInfo.DeviceType); in cifs_debug_tcon()
92 seq_printf(m, "%s Mounts: %d ", tcon->tree_name, tcon->tc_count); in cifs_debug_tcon()
93 if (tcon->nativeFileSystem) in cifs_debug_tcon()
94 seq_printf(m, "Type: %s ", tcon->nativeFileSystem); in cifs_debug_tcon()
96 le32_to_cpu(tcon->fsDevInfo.DeviceCharacteristics), in cifs_debug_tcon()
97 le32_to_cpu(tcon->fsAttrInfo.Attributes), in cifs_debug_tcon()
98 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength), in cifs_debug_tcon()
99 tcon->status); in cifs_debug_tcon()
107 seq_printf(m, "Serial Number: 0x%x", tcon->vol_serial_number); in cifs_debug_tcon()
[all …]
Dmisc.c151 tconInfoFree(struct cifs_tcon *tcon) in tconInfoFree() argument
153 if (tcon == NULL) { in tconInfoFree()
157 free_cached_dirs(tcon->cfids); in tconInfoFree()
159 kfree(tcon->nativeFileSystem); in tconInfoFree()
160 kfree_sensitive(tcon->password); in tconInfoFree()
162 dfs_put_root_smb_sessions(&tcon->dfs_ses_list); in tconInfoFree()
164 kfree(tcon->origin_fullpath); in tconInfoFree()
165 kfree(tcon); in tconInfoFree()
419 struct cifs_tcon *tcon; in is_valid_oplock_break() local
488 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in is_valid_oplock_break()
[all …]
/Linux-v6.6/drivers/gpu/drm/fsl-dcu/
Dfsl_tcon.c19 void fsl_tcon_bypass_disable(struct fsl_tcon *tcon) in fsl_tcon_bypass_disable() argument
21 regmap_update_bits(tcon->regs, FSL_TCON_CTRL1, in fsl_tcon_bypass_disable()
25 void fsl_tcon_bypass_enable(struct fsl_tcon *tcon) in fsl_tcon_bypass_enable() argument
27 regmap_update_bits(tcon->regs, FSL_TCON_CTRL1, in fsl_tcon_bypass_enable()
41 struct fsl_tcon *tcon, in fsl_tcon_init_regmap() argument
54 tcon->regs = devm_regmap_init_mmio(dev, regs, in fsl_tcon_init_regmap()
56 return PTR_ERR_OR_ZERO(tcon->regs); in fsl_tcon_init_regmap()
61 struct fsl_tcon *tcon; in fsl_tcon_init() local
70 tcon = devm_kzalloc(dev, sizeof(*tcon), GFP_KERNEL); in fsl_tcon_init()
71 if (!tcon) in fsl_tcon_init()
[all …]
/Linux-v6.6/fs/smb/server/mgmt/
Dtree_connect.c99 void ksmbd_tree_connect_put(struct ksmbd_tree_connect *tcon) in ksmbd_tree_connect_put() argument
106 if (!atomic_dec_return(&tcon->refcount) && in ksmbd_tree_connect_put()
107 waitqueue_active(&tcon->refcount_q)) in ksmbd_tree_connect_put()
108 wake_up(&tcon->refcount_q); in ksmbd_tree_connect_put()
134 struct ksmbd_tree_connect *tcon; in ksmbd_tree_conn_lookup() local
137 tcon = xa_load(&sess->tree_conns, id); in ksmbd_tree_conn_lookup()
138 if (tcon) { in ksmbd_tree_conn_lookup()
139 if (tcon->t_state != TREE_CONNECTED) in ksmbd_tree_conn_lookup()
140 tcon = NULL; in ksmbd_tree_conn_lookup()
141 else if (!atomic_inc_not_zero(&tcon->refcount)) in ksmbd_tree_conn_lookup()
[all …]

1234