Home
last modified time | relevance | path

Searched refs:tlink (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.1.9/fs/cifs/
Ddir.c169 struct tcon_link *tlink, unsigned int oflags, umode_t mode, __u32 *oplock, argument
176 struct cifs_tcon *tcon = tlink_tcon(tlink);
413 struct tcon_link *tlink; local
458 tlink = cifs_sb_tlink(CIFS_SB(inode->i_sb));
459 if (IS_ERR(tlink)) {
460 rc = PTR_ERR(tlink);
464 tcon = tlink_tcon(tlink);
475 cifs_add_pending_open(&fid, tlink, &open);
477 rc = cifs_do_create(inode, direntry, xid, tlink, oflags, mode,
503 file_info = cifs_new_fileinfo(&fid, file, tlink, oplock, buf.symlink_target);
[all …]
Dioctl.c321 struct tcon_link *tlink; in cifs_ioctl() local
333 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
362 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
400 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
410 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
420 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
439 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
469 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
479 tlink = cifs_sb_tlink(cifs_sb); in cifs_ioctl()
480 if (IS_ERR(tlink)) { in cifs_ioctl()
[all …]
Dxattr.c101 struct tcon_link *tlink; in cifs_xattr_set() local
106 tlink = cifs_sb_tlink(cifs_sb); in cifs_xattr_set()
107 if (IS_ERR(tlink)) in cifs_xattr_set()
108 return PTR_ERR(tlink); in cifs_xattr_set()
109 pTcon = tlink_tcon(tlink); in cifs_xattr_set()
234 cifs_put_tlink(tlink); in cifs_xattr_set()
292 struct tcon_link *tlink; in cifs_xattr_get() local
297 tlink = cifs_sb_tlink(cifs_sb); in cifs_xattr_get()
298 if (IS_ERR(tlink)) in cifs_xattr_get()
299 return PTR_ERR(tlink); in cifs_xattr_get()
[all …]
Dinode.c360 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
397 struct tcon_link *tlink; local
402 tlink = cifs_sb_tlink(cifs_sb);
403 if (IS_ERR(tlink))
404 return PTR_ERR(tlink);
405 tcon = tlink_tcon(tlink);
412 cifs_put_tlink(tlink);
482 struct tcon_link *tlink; local
506 tlink = cifs_sb_tlink(cifs_sb);
507 if (IS_ERR(tlink))
[all …]
Dcifsacl.c1390 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_cifs_acl_by_fid() local
1392 if (IS_ERR(tlink)) in get_cifs_acl_by_fid()
1393 return ERR_CAST(tlink); in get_cifs_acl_by_fid()
1396 rc = CIFSSMBGetCIFSACL(xid, tlink_tcon(tlink), cifsfid->netfid, &pntsd, in get_cifs_acl_by_fid()
1400 cifs_put_tlink(tlink); in get_cifs_acl_by_fid()
1416 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_cifs_acl_by_path() local
1420 if (IS_ERR(tlink)) in get_cifs_acl_by_path()
1421 return ERR_CAST(tlink); in get_cifs_acl_by_path()
1423 tcon = tlink_tcon(tlink); in get_cifs_acl_by_path()
1441 cifs_put_tlink(tlink); in get_cifs_acl_by_path()
[all …]
Dlink.c477 struct tcon_link *tlink; local
485 tlink = cifs_sb_tlink(cifs_sb);
486 if (IS_ERR(tlink))
487 return PTR_ERR(tlink);
488 tcon = tlink_tcon(tlink);
567 cifs_put_tlink(tlink);
578 struct tcon_link *tlink; local
593 tlink = cifs_sb_tlink(cifs_sb);
594 if (IS_ERR(tlink)) {
595 rc = PTR_ERR(tlink);
[all …]
Dconnect.c2633 cifs_put_tlink(struct tcon_link *tlink) in cifs_put_tlink() argument
2635 if (!tlink || IS_ERR(tlink)) in cifs_put_tlink()
2638 if (!atomic_dec_and_test(&tlink->tl_count) || in cifs_put_tlink()
2639 test_bit(TCON_LINK_IN_TREE, &tlink->tl_flags)) { in cifs_put_tlink()
2640 tlink->tl_time = jiffies; in cifs_put_tlink()
2644 if (!IS_ERR(tlink_tcon(tlink))) in cifs_put_tlink()
2645 cifs_put_tcon(tlink_tcon(tlink)); in cifs_put_tlink()
2646 kfree(tlink); in cifs_put_tlink()
2725 struct tcon_link *tlink; in cifs_match_super() local
2730 tlink = cifs_get_tlink(cifs_sb_master_tlink(cifs_sb)); in cifs_match_super()
[all …]
Dsmb2misc.c507 struct tcon_link *tlink; member
519 rc = SMB2_lease_break(0, tlink_tcon(lw->tlink), lw->lease_key, in cifs_ses_oplock_break()
523 cifs_put_tlink(lw->tlink); in cifs_ses_oplock_break()
528 smb2_queue_pending_open_break(struct tcon_link *tlink, __u8 *lease_key, in smb2_queue_pending_open_break() argument
535 cifs_put_tlink(tlink); in smb2_queue_pending_open_break()
540 lw->tlink = tlink; in smb2_queue_pending_open_break()
644 struct tcon_link *tlink; in smb2_is_valid_lease_break() local
646 tlink = cifs_get_tlink(open->tlink); in smb2_is_valid_lease_break()
651 smb2_queue_pending_open_break(tlink, in smb2_is_valid_lease_break()
Dreaddir.c379 struct tcon_link *tlink = NULL; in _initiate_cifs_search() local
384 tlink = cifs_sb_tlink(cifs_sb); in _initiate_cifs_search()
385 if (IS_ERR(tlink)) in _initiate_cifs_search()
386 return PTR_ERR(tlink); in _initiate_cifs_search()
395 cifsFile->tlink = cifs_get_tlink(tlink); in _initiate_cifs_search()
396 tcon = tlink_tcon(tlink); in _initiate_cifs_search()
399 tcon = tlink_tcon(cifsFile->tlink); in _initiate_cifs_search()
450 cifs_put_tlink(tlink); in _initiate_cifs_search()
1062 struct tcon_link *tlink = NULL; in cifs_readdir() local
1084 tlink = cifs_sb_tlink(cifs_sb); in cifs_readdir()
[all …]
Dfile.c158 struct tcon_link *tlink; in cifs_posix_open() local
167 tlink = cifs_sb_tlink(cifs_sb); in cifs_posix_open()
168 if (IS_ERR(tlink)) { in cifs_posix_open()
169 rc = PTR_ERR(tlink); in cifs_posix_open()
173 tcon = tlink_tcon(tlink); in cifs_posix_open()
180 cifs_put_tlink(tlink); in cifs_posix_open()
320 struct tcon_link *tlink, __u32 oplock, in cifs_new_fileinfo() argument
328 struct cifs_tcon *tcon = tlink_tcon(tlink); in cifs_new_fileinfo()
361 cfile->tlink = cifs_get_tlink(tlink); in cifs_new_fileinfo()
440 cifs_put_tlink(cifs_file->tlink); in cifsFileInfo_put_final()
[all …]
Dmisc.c645 spin_lock(&tlink_tcon(open->tlink)->open_file_lock); in cifs_del_pending_open()
647 spin_unlock(&tlink_tcon(open->tlink)->open_file_lock); in cifs_del_pending_open()
651 cifs_add_pending_open_locked(struct cifs_fid *fid, struct tcon_link *tlink, in cifs_add_pending_open_locked() argument
656 open->tlink = tlink; in cifs_add_pending_open_locked()
658 list_add_tail(&open->olist, &tlink_tcon(tlink)->pending_opens); in cifs_add_pending_open_locked()
662 cifs_add_pending_open(struct cifs_fid *fid, struct tcon_link *tlink, in cifs_add_pending_open() argument
665 spin_lock(&tlink_tcon(tlink)->open_file_lock); in cifs_add_pending_open()
666 cifs_add_pending_open_locked(fid, tlink, open); in cifs_add_pending_open()
667 spin_unlock(&tlink_tcon(open->tlink)->open_file_lock); in cifs_add_pending_open()
706 dclose->tlink = cfile->tlink; in cifs_add_deferred_close()
Dsmb1ops.c797 struct tcon_link *tlink = NULL; in smb_set_file_info() local
805 tcon = tlink_tcon(open_file->tlink); in smb_set_file_info()
809 tlink = cifs_sb_tlink(cifs_sb); in smb_set_file_info()
810 if (IS_ERR(tlink)) { in smb_set_file_info()
811 rc = PTR_ERR(tlink); in smb_set_file_info()
812 tlink = NULL; in smb_set_file_info()
815 tcon = tlink_tcon(tlink); in smb_set_file_info()
855 if (tlink != NULL) in smb_set_file_info()
856 cifs_put_tlink(tlink); in smb_set_file_info()
942 return CIFSSMBLock(xid, tlink_tcon(cfile->tlink), cfile->fid.netfid, in cifs_mand_lock()
Dcifsglob.h1267 tlink_tcon(struct tcon_link *tlink) in tlink_tcon() argument
1269 return tlink->tl_tcon; in tlink_tcon()
1278 extern void cifs_put_tlink(struct tcon_link *tlink);
1281 cifs_get_tlink(struct tcon_link *tlink) in cifs_get_tlink() argument
1283 if (tlink && !IS_ERR(tlink)) in cifs_get_tlink()
1284 atomic_inc(&tlink->tl_count); in cifs_get_tlink()
1285 return tlink; in cifs_get_tlink()
1295 struct tcon_link *tlink; member
1302 struct tcon_link *tlink; member
1389 struct tcon_link *tlink; member
Dsmb2inode.c757 struct tcon_link *tlink; in smb2_set_file_info() local
767 tlink = cifs_sb_tlink(cifs_sb); in smb2_set_file_info()
768 if (IS_ERR(tlink)) in smb2_set_file_info()
769 return PTR_ERR(tlink); in smb2_set_file_info()
770 tcon = tlink_tcon(tlink); in smb2_set_file_info()
777 cifs_put_tlink(tlink); in smb2_set_file_info()
Dsmb2file.c194 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_unlock_range()
300 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_push_mand_fdlocks()
347 max_buf = tlink_tcon(cfile->tlink)->ses->server->maxBuf; in smb2_push_mandatory_locks()
Dcached_dir.c378 struct tcon_link *tlink; in close_all_cached_dirs() local
382 tlink = rb_entry(node, struct tcon_link, tl_rbnode); in close_all_cached_dirs()
383 tcon = tlink_tcon(tlink); in close_all_cached_dirs()
Dcifsfs.c1064 if (cfile && cfile->tlink) { in cifs_llseek()
1065 tcon = tlink_tcon(cfile->tlink); in cifs_llseek()
1091 else if (tlink_tcon(cfile->tlink)->local_lease && in cifs_setlease()
1208 target_tcon = tlink_tcon(smb_file_target->tlink); in cifs_remap_file_range()
1266 src_tcon = tlink_tcon(smb_file_src->tlink); in cifs_file_copychunk_range()
1267 target_tcon = tlink_tcon(smb_file_target->tlink); in cifs_file_copychunk_range()
Dsmb2ops.c1288 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; in smb2_set_fid()
1642 rc = SMB2_request_res_key(xid, tlink_tcon(srcfile->tlink), in smb2_copychunk_range()
1655 tcon = tlink_tcon(trgtfile->tlink); in smb2_copychunk_range()
1878 struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink); in smb2_duplicate_extents()
2658 return SMB2_lock(xid, tlink_tcon(cfile->tlink), in smb2_mand_lock()
3149 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_smb2_acl_by_fid() local
3151 if (IS_ERR(tlink)) in get_smb2_acl_by_fid()
3152 return ERR_CAST(tlink); in get_smb2_acl_by_fid()
3157 rc = SMB2_query_acl(xid, tlink_tcon(tlink), cifsfid->persistent_fid, in get_smb2_acl_by_fid()
3162 cifs_put_tlink(tlink); in get_smb2_acl_by_fid()
[all …]
Dcifsproto.h186 struct tcon_link *tlink, __u32 oplock,
254 struct tcon_link *tlink,
257 struct tcon_link *tlink,
Dsmb2pdu.c4160 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in smb2_readv_callback()
4257 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv()
4266 io_parms.tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv()
4407 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_writev_callback()
4493 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_async_writev()
/linux-6.1.9/drivers/ata/
Dlibata-pmp.c490 struct ata_link *tlink; in sata_pmp_attach() local
539 ata_for_each_link(tlink, ap, EDGE) in sata_pmp_attach()
540 sata_link_init_spd(tlink); in sata_pmp_attach()
563 struct ata_link *tlink; in sata_pmp_detach() local
574 ata_for_each_link(tlink, ap, EDGE) in sata_pmp_detach()
575 ata_eh_detach_dev(tlink->device); in sata_pmp_detach()
768 struct ata_link *tlink; in sata_pmp_eh_recover_pmp() local
779 ata_for_each_link(tlink, ap, EDGE) { in sata_pmp_eh_recover_pmp()
780 struct ata_eh_context *ehc = &tlink->eh_context; in sata_pmp_eh_recover_pmp()
Dlibata-acpi.c72 struct ata_link *tlink; in ata_acpi_detach_device() local
75 ata_for_each_link(tlink, ap, EDGE) in ata_acpi_detach_device()
76 ata_for_each_dev(tdev, tlink, ALL) in ata_acpi_detach_device()
/linux-6.1.9/kernel/bpf/
Dbpf_struct_ops.c325 struct bpf_tramp_link *tlink = container_of(link, struct bpf_tramp_link, link); in bpf_struct_ops_link_dealloc() local
327 kfree(tlink); in bpf_struct_ops_link_dealloc()
/linux-6.1.9/drivers/scsi/bfa/
Dbfi_ms.h301 struct bfi_fcport_trunk_link_s tlink[BFI_FCPORT_MAX_LINKS]; member
Dbfa_svc.c3410 struct bfi_fcport_trunk_link_s *tlink; in bfa_trunk_scn() local
3433 tlink = &scn->tlink[i]; in bfa_trunk_scn()
3435 lattr->link_state = tlink->state; in bfa_trunk_scn()
3436 lattr->trunk_wwn = tlink->trunk_wwn; in bfa_trunk_scn()
3437 lattr->fctl = tlink->fctl; in bfa_trunk_scn()
3438 lattr->speed = tlink->speed; in bfa_trunk_scn()
3439 lattr->deskew = be32_to_cpu(tlink->deskew); in bfa_trunk_scn()
3441 if (tlink->state == BFA_TRUNK_LINK_STATE_UP) { in bfa_trunk_scn()
3442 fcport->speed = tlink->speed; in bfa_trunk_scn()

12