Home
last modified time | relevance | path

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

/Linux-v4.19/fs/cifs/
Dxattr.c59 struct tcon_link *tlink; in cifs_xattr_set() local
63 tlink = cifs_sb_tlink(cifs_sb); in cifs_xattr_set()
64 if (IS_ERR(tlink)) in cifs_xattr_set()
65 return PTR_ERR(tlink); in cifs_xattr_set()
66 pTcon = tlink_tcon(tlink); in cifs_xattr_set()
152 cifs_put_tlink(tlink); in cifs_xattr_set()
210 struct tcon_link *tlink; in cifs_xattr_get() local
214 tlink = cifs_sb_tlink(cifs_sb); in cifs_xattr_get()
215 if (IS_ERR(tlink)) in cifs_xattr_get()
216 return PTR_ERR(tlink); in cifs_xattr_get()
[all …]
Ddir.c228 struct tcon_link *tlink, unsigned oflags, umode_t mode, in cifs_do_create() argument
235 struct cifs_tcon *tcon = tlink_tcon(tlink); in cifs_do_create()
472 struct tcon_link *tlink; in cifs_atomic_open() local
513 tlink = cifs_sb_tlink(CIFS_SB(inode->i_sb)); in cifs_atomic_open()
514 if (IS_ERR(tlink)) { in cifs_atomic_open()
515 rc = PTR_ERR(tlink); in cifs_atomic_open()
519 tcon = tlink_tcon(tlink); in cifs_atomic_open()
530 cifs_add_pending_open(&fid, tlink, &open); in cifs_atomic_open()
532 rc = cifs_do_create(inode, direntry, xid, tlink, oflags, mode, in cifs_atomic_open()
559 file_info = cifs_new_fileinfo(&fid, file, tlink, oplock); in cifs_atomic_open()
[all …]
Dinode.c345 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
369 struct tcon_link *tlink; local
374 tlink = cifs_sb_tlink(cifs_sb);
375 if (IS_ERR(tlink))
376 return PTR_ERR(tlink);
377 tcon = tlink_tcon(tlink);
382 cifs_put_tlink(tlink);
437 struct tcon_link *tlink; local
461 tlink = cifs_sb_tlink(cifs_sb);
462 if (IS_ERR(tlink))
[all …]
Dlink.c526 struct tcon_link *tlink; in cifs_hardlink() local
531 tlink = cifs_sb_tlink(cifs_sb); in cifs_hardlink()
532 if (IS_ERR(tlink)) in cifs_hardlink()
533 return PTR_ERR(tlink); in cifs_hardlink()
534 tcon = tlink_tcon(tlink); in cifs_hardlink()
603 cifs_put_tlink(tlink); in cifs_hardlink()
616 struct tcon_link *tlink = NULL; in cifs_get_link() local
625 tlink = cifs_sb_tlink(cifs_sb); in cifs_get_link()
626 if (IS_ERR(tlink)) { in cifs_get_link()
628 return ERR_CAST(tlink); in cifs_get_link()
[all …]
Dcifsacl.c995 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_cifs_acl_by_fid() local
997 if (IS_ERR(tlink)) in get_cifs_acl_by_fid()
998 return ERR_CAST(tlink); in get_cifs_acl_by_fid()
1001 rc = CIFSSMBGetCIFSACL(xid, tlink_tcon(tlink), cifsfid->netfid, &pntsd, in get_cifs_acl_by_fid()
1005 cifs_put_tlink(tlink); in get_cifs_acl_by_fid()
1021 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_cifs_acl_by_path() local
1025 if (IS_ERR(tlink)) in get_cifs_acl_by_path()
1026 return ERR_CAST(tlink); in get_cifs_acl_by_path()
1028 tcon = tlink_tcon(tlink); in get_cifs_acl_by_path()
1049 cifs_put_tlink(tlink); in get_cifs_acl_by_path()
[all …]
Dconnect.c3149 cifs_put_tlink(struct tcon_link *tlink) in cifs_put_tlink() argument
3151 if (!tlink || IS_ERR(tlink)) in cifs_put_tlink()
3154 if (!atomic_dec_and_test(&tlink->tl_count) || in cifs_put_tlink()
3155 test_bit(TCON_LINK_IN_TREE, &tlink->tl_flags)) { in cifs_put_tlink()
3156 tlink->tl_time = jiffies; in cifs_put_tlink()
3160 if (!IS_ERR(tlink_tcon(tlink))) in cifs_put_tlink()
3161 cifs_put_tcon(tlink_tcon(tlink)); in cifs_put_tlink()
3162 kfree(tlink); in cifs_put_tlink()
3230 struct tcon_link *tlink; in cifs_match_super() local
3235 tlink = cifs_get_tlink(cifs_sb_master_tlink(cifs_sb)); in cifs_match_super()
[all …]
Dcifs_dfs_ref.c294 struct tcon_link *tlink; in cifs_dfs_do_automount() local
313 tlink = cifs_sb_tlink(cifs_sb); in cifs_dfs_do_automount()
314 if (IS_ERR(tlink)) { in cifs_dfs_do_automount()
315 mnt = ERR_CAST(tlink); in cifs_dfs_do_automount()
318 ses = tlink_tcon(tlink)->ses; in cifs_dfs_do_automount()
326 cifs_put_tlink(tlink); in cifs_dfs_do_automount()
Dioctl.c140 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
167 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
202 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
212 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
222 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
Dsmb2inode.c282 struct tcon_link *tlink; in smb2_set_file_info() local
290 tlink = cifs_sb_tlink(cifs_sb); in smb2_set_file_info()
291 if (IS_ERR(tlink)) in smb2_set_file_info()
292 return PTR_ERR(tlink); in smb2_set_file_info()
294 rc = smb2_open_op_close(xid, tlink_tcon(tlink), cifs_sb, full_path, in smb2_set_file_info()
297 cifs_put_tlink(tlink); in smb2_set_file_info()
Dfile.c122 struct tcon_link *tlink; in cifs_posix_open() local
131 tlink = cifs_sb_tlink(cifs_sb); in cifs_posix_open()
132 if (IS_ERR(tlink)) { in cifs_posix_open()
133 rc = PTR_ERR(tlink); in cifs_posix_open()
137 tcon = tlink_tcon(tlink); in cifs_posix_open()
144 cifs_put_tlink(tlink); in cifs_posix_open()
279 struct tcon_link *tlink, __u32 oplock) in cifs_new_fileinfo() argument
286 struct cifs_tcon *tcon = tlink_tcon(tlink); in cifs_new_fileinfo()
312 cfile->tlink = cifs_get_tlink(tlink); in cifs_new_fileinfo()
369 struct cifs_tcon *tcon = tlink_tcon(cifs_file->tlink); in cifsFileInfo_put()
[all …]
Dmisc.c615 spin_lock(&tlink_tcon(open->tlink)->open_file_lock); in cifs_del_pending_open()
617 spin_unlock(&tlink_tcon(open->tlink)->open_file_lock); in cifs_del_pending_open()
621 cifs_add_pending_open_locked(struct cifs_fid *fid, struct tcon_link *tlink, in cifs_add_pending_open_locked() argument
626 open->tlink = tlink; in cifs_add_pending_open_locked()
628 list_add_tail(&open->olist, &tlink_tcon(tlink)->pending_opens); in cifs_add_pending_open_locked()
632 cifs_add_pending_open(struct cifs_fid *fid, struct tcon_link *tlink, in cifs_add_pending_open() argument
635 spin_lock(&tlink_tcon(tlink)->open_file_lock); in cifs_add_pending_open()
636 cifs_add_pending_open_locked(fid, tlink, open); in cifs_add_pending_open()
637 spin_unlock(&tlink_tcon(open->tlink)->open_file_lock); in cifs_add_pending_open()
Dreaddir.c274 struct tcon_link *tlink = NULL; in initiate_cifs_search() local
279 tlink = cifs_sb_tlink(cifs_sb); in initiate_cifs_search()
280 if (IS_ERR(tlink)) in initiate_cifs_search()
281 return PTR_ERR(tlink); in initiate_cifs_search()
290 cifsFile->tlink = cifs_get_tlink(tlink); in initiate_cifs_search()
291 tcon = tlink_tcon(tlink); in initiate_cifs_search()
294 tcon = tlink_tcon(cifsFile->tlink); in initiate_cifs_search()
350 cifs_put_tlink(tlink); in initiate_cifs_search()
827 tcon = tlink_tcon(cifsFile->tlink); in cifs_readdir()
Dsmb1ops.c775 struct tcon_link *tlink = NULL; in smb_set_file_info() local
783 tcon = tlink_tcon(open_file->tlink); in smb_set_file_info()
787 tlink = cifs_sb_tlink(cifs_sb); in smb_set_file_info()
788 if (IS_ERR(tlink)) { in smb_set_file_info()
789 rc = PTR_ERR(tlink); in smb_set_file_info()
790 tlink = NULL; in smb_set_file_info()
793 tcon = tlink_tcon(tlink); in smb_set_file_info()
833 if (tlink != NULL) in smb_set_file_info()
834 cifs_put_tlink(tlink); in smb_set_file_info()
920 return CIFSSMBLock(xid, tlink_tcon(cfile->tlink), cfile->fid.netfid, in cifs_mand_lock()
Dsmb2file.c115 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_unlock_range()
214 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_push_mand_fdlocks()
261 max_buf = tlink_tcon(cfile->tlink)->ses->server->maxBuf; in smb2_push_mandatory_locks()
Dcifsglob.h1031 tlink_tcon(struct tcon_link *tlink) in tlink_tcon() argument
1033 return tlink->tl_tcon; in tlink_tcon()
1042 extern void cifs_put_tlink(struct tcon_link *tlink);
1045 cifs_get_tlink(struct tcon_link *tlink) in cifs_get_tlink() argument
1047 if (tlink && !IS_ERR(tlink)) in cifs_get_tlink()
1048 atomic_inc(&tlink->tl_count); in cifs_get_tlink()
1049 return tlink; in cifs_get_tlink()
1059 struct tcon_link *tlink; member
1139 struct tcon_link *tlink; member
Dsmb2misc.c492 struct tcon_link *tlink; member
504 rc = SMB2_lease_break(0, tlink_tcon(lw->tlink), lw->lease_key, in cifs_ses_oplock_break()
508 cifs_put_tlink(lw->tlink); in cifs_ses_oplock_break()
562 lw->tlink = cifs_get_tlink(open->tlink); in smb2_tcon_has_lease()
Dsmb2ops.c1013 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; in smb2_set_fid()
1082 rc = SMB2_request_res_key(xid, tlink_tcon(srcfile->tlink), in smb2_copychunk_range()
1095 tcon = tlink_tcon(trgtfile->tlink); in smb2_copychunk_range()
1316 struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink); in smb2_duplicate_extents()
1724 return SMB2_lock(xid, tlink_tcon(cfile->tlink), in smb2_mand_lock()
1937 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_smb2_acl_by_fid() local
1939 if (IS_ERR(tlink)) in get_smb2_acl_by_fid()
1940 return ERR_CAST(tlink); in get_smb2_acl_by_fid()
1945 rc = SMB2_query_acl(xid, tlink_tcon(tlink), cifsfid->persistent_fid, in get_smb2_acl_by_fid()
1949 cifs_put_tlink(tlink); in get_smb2_acl_by_fid()
[all …]
Dcifsproto.h164 struct tcon_link *tlink,
226 struct tcon_link *tlink,
229 struct tcon_link *tlink,
Dcifsfs.c914 else if (tlink_tcon(cfile->tlink)->local_lease && in cifs_setlease()
985 struct cifs_tcon *target_tcon = tlink_tcon(smb_file_target->tlink); in cifs_clone_file_range()
1060 src_tcon = tlink_tcon(smb_file_src->tlink); in cifs_file_copychunk_range()
1061 target_tcon = tlink_tcon(smb_file_target->tlink); in cifs_file_copychunk_range()
Dsmb2pdu.c3072 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in smb2_readv_callback()
3154 io_parms.tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv()
3295 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_writev_callback()
3359 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_async_writev()
Dcifssmb.c1605 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_readv_callback()
1660 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_async_readv()
1982 server = tlink_tcon(wdata->cfile->tlink)->ses->server; in cifs_writev_requeue()
2068 cifs_stats_bytes_written(tlink_tcon(wdata->cfile->tlink), in cifs_writev_complete()
2122 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in cifs_writev_callback()
2171 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in cifs_async_writev()
/Linux-v4.19/drivers/ata/
Dlibata-pmp.c491 struct ata_link *tlink; in sata_pmp_attach() local
540 ata_for_each_link(tlink, ap, EDGE) in sata_pmp_attach()
541 sata_link_init_spd(tlink); in sata_pmp_attach()
564 struct ata_link *tlink; in sata_pmp_detach() local
575 ata_for_each_link(tlink, ap, EDGE) in sata_pmp_detach()
576 ata_eh_detach_dev(tlink->device); in sata_pmp_detach()
774 struct ata_link *tlink; in sata_pmp_eh_recover_pmp() local
785 ata_for_each_link(tlink, ap, EDGE) { in sata_pmp_eh_recover_pmp()
786 struct ata_eh_context *ehc = &tlink->eh_context; in sata_pmp_eh_recover_pmp()
Dlibata-acpi.c71 struct ata_link *tlink; in ata_acpi_detach_device() local
74 ata_for_each_link(tlink, ap, EDGE) in ata_acpi_detach_device()
75 ata_for_each_dev(tdev, tlink, ALL) in ata_acpi_detach_device()
/Linux-v4.19/drivers/scsi/bfa/
Dbfi_ms.h309 struct bfi_fcport_trunk_link_s tlink[BFI_FCPORT_MAX_LINKS]; member
Dbfa_svc.c3424 struct bfi_fcport_trunk_link_s *tlink; in bfa_trunk_scn() local
3447 tlink = &scn->tlink[i]; in bfa_trunk_scn()
3449 lattr->link_state = tlink->state; in bfa_trunk_scn()
3450 lattr->trunk_wwn = tlink->trunk_wwn; in bfa_trunk_scn()
3451 lattr->fctl = tlink->fctl; in bfa_trunk_scn()
3452 lattr->speed = tlink->speed; in bfa_trunk_scn()
3453 lattr->deskew = be32_to_cpu(tlink->deskew); in bfa_trunk_scn()
3455 if (tlink->state == BFA_TRUNK_LINK_STATE_UP) { in bfa_trunk_scn()
3456 fcport->speed = tlink->speed; in bfa_trunk_scn()