Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/fs/cifs/
Ddir.c227 struct tcon_link *tlink, unsigned oflags, umode_t mode, in cifs_do_create() argument
234 struct cifs_tcon *tcon = tlink_tcon(tlink); in cifs_do_create()
467 struct tcon_link *tlink; in cifs_atomic_open() local
508 tlink = cifs_sb_tlink(CIFS_SB(inode->i_sb)); in cifs_atomic_open()
509 if (IS_ERR(tlink)) { in cifs_atomic_open()
510 rc = PTR_ERR(tlink); in cifs_atomic_open()
514 tcon = tlink_tcon(tlink); in cifs_atomic_open()
525 cifs_add_pending_open(&fid, tlink, &open); in cifs_atomic_open()
527 rc = cifs_do_create(inode, direntry, xid, tlink, oflags, mode, in cifs_atomic_open()
554 file_info = cifs_new_fileinfo(&fid, file, tlink, oplock); in cifs_atomic_open()
[all …]
Dxattr.c110 struct tcon_link *tlink; in cifs_xattr_set() local
114 tlink = cifs_sb_tlink(cifs_sb); in cifs_xattr_set()
115 if (IS_ERR(tlink)) in cifs_xattr_set()
116 return PTR_ERR(tlink); in cifs_xattr_set()
117 pTcon = tlink_tcon(tlink); in cifs_xattr_set()
232 cifs_put_tlink(tlink); in cifs_xattr_set()
290 struct tcon_link *tlink; in cifs_xattr_get() local
294 tlink = cifs_sb_tlink(cifs_sb); in cifs_xattr_get()
295 if (IS_ERR(tlink)) in cifs_xattr_get()
296 return PTR_ERR(tlink); in cifs_xattr_get()
[all …]
Dinode.c354 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
378 struct tcon_link *tlink; local
383 tlink = cifs_sb_tlink(cifs_sb);
384 if (IS_ERR(tlink))
385 return PTR_ERR(tlink);
386 tcon = tlink_tcon(tlink);
391 cifs_put_tlink(tlink);
447 struct tcon_link *tlink; local
471 tlink = cifs_sb_tlink(cifs_sb);
472 if (IS_ERR(tlink))
[all …]
Dioctl.c172 struct tcon_link *tlink; in cifs_ioctl() local
184 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
211 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
249 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
259 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
269 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
284 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
311 tlink = cifs_sb_tlink(cifs_sb); in cifs_ioctl()
312 if (IS_ERR(tlink)) { in cifs_ioctl()
313 rc = PTR_ERR(tlink); in cifs_ioctl()
[all …]
Dlink.c516 struct tcon_link *tlink; in cifs_hardlink() local
521 tlink = cifs_sb_tlink(cifs_sb); in cifs_hardlink()
522 if (IS_ERR(tlink)) in cifs_hardlink()
523 return PTR_ERR(tlink); in cifs_hardlink()
524 tcon = tlink_tcon(tlink); in cifs_hardlink()
593 cifs_put_tlink(tlink); in cifs_hardlink()
606 struct tcon_link *tlink = NULL; in cifs_get_link() local
615 tlink = cifs_sb_tlink(cifs_sb); in cifs_get_link()
616 if (IS_ERR(tlink)) { in cifs_get_link()
618 return ERR_CAST(tlink); in cifs_get_link()
[all …]
Dcifsacl.c1109 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_cifs_acl_by_fid() local
1111 if (IS_ERR(tlink)) in get_cifs_acl_by_fid()
1112 return ERR_CAST(tlink); in get_cifs_acl_by_fid()
1115 rc = CIFSSMBGetCIFSACL(xid, tlink_tcon(tlink), cifsfid->netfid, &pntsd, in get_cifs_acl_by_fid()
1119 cifs_put_tlink(tlink); in get_cifs_acl_by_fid()
1135 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_cifs_acl_by_path() local
1139 if (IS_ERR(tlink)) in get_cifs_acl_by_path()
1140 return ERR_CAST(tlink); in get_cifs_acl_by_path()
1142 tcon = tlink_tcon(tlink); in get_cifs_acl_by_path()
1160 cifs_put_tlink(tlink); in get_cifs_acl_by_path()
[all …]
Dconnect.c3414 cifs_put_tlink(struct tcon_link *tlink) in cifs_put_tlink() argument
3416 if (!tlink || IS_ERR(tlink)) in cifs_put_tlink()
3419 if (!atomic_dec_and_test(&tlink->tl_count) || in cifs_put_tlink()
3420 test_bit(TCON_LINK_IN_TREE, &tlink->tl_flags)) { in cifs_put_tlink()
3421 tlink->tl_time = jiffies; in cifs_put_tlink()
3425 if (!IS_ERR(tlink_tcon(tlink))) in cifs_put_tlink()
3426 cifs_put_tcon(tlink_tcon(tlink)); in cifs_put_tlink()
3427 kfree(tlink); in cifs_put_tlink()
3501 struct tcon_link *tlink; in cifs_match_super() local
3506 tlink = cifs_get_tlink(cifs_sb_master_tlink(cifs_sb)); in cifs_match_super()
[all …]
Dsmb2misc.c499 struct tcon_link *tlink; member
511 rc = SMB2_lease_break(0, tlink_tcon(lw->tlink), lw->lease_key, in cifs_ses_oplock_break()
515 cifs_put_tlink(lw->tlink); in cifs_ses_oplock_break()
520 smb2_queue_pending_open_break(struct tcon_link *tlink, __u8 *lease_key, in smb2_queue_pending_open_break() argument
527 cifs_put_tlink(tlink); in smb2_queue_pending_open_break()
532 lw->tlink = tlink; in smb2_queue_pending_open_break()
643 struct tcon_link *tlink; in smb2_is_valid_lease_break() local
645 tlink = cifs_get_tlink(open->tlink); in smb2_is_valid_lease_break()
650 smb2_queue_pending_open_break(tlink, in smb2_is_valid_lease_break()
Dfile.c123 struct tcon_link *tlink; in cifs_posix_open() local
132 tlink = cifs_sb_tlink(cifs_sb); in cifs_posix_open()
133 if (IS_ERR(tlink)) { in cifs_posix_open()
134 rc = PTR_ERR(tlink); in cifs_posix_open()
138 tcon = tlink_tcon(tlink); in cifs_posix_open()
145 cifs_put_tlink(tlink); in cifs_posix_open()
294 struct tcon_link *tlink, __u32 oplock) in cifs_new_fileinfo() argument
301 struct cifs_tcon *tcon = tlink_tcon(tlink); in cifs_new_fileinfo()
324 cfile->tlink = cifs_get_tlink(tlink); in cifs_new_fileinfo()
402 cifs_put_tlink(cifs_file->tlink); in cifsFileInfo_put_final()
[all …]
Dmisc.c649 spin_lock(&tlink_tcon(open->tlink)->open_file_lock); in cifs_del_pending_open()
651 spin_unlock(&tlink_tcon(open->tlink)->open_file_lock); in cifs_del_pending_open()
655 cifs_add_pending_open_locked(struct cifs_fid *fid, struct tcon_link *tlink, in cifs_add_pending_open_locked() argument
660 open->tlink = tlink; in cifs_add_pending_open_locked()
662 list_add_tail(&open->olist, &tlink_tcon(tlink)->pending_opens); in cifs_add_pending_open_locked()
666 cifs_add_pending_open(struct cifs_fid *fid, struct tcon_link *tlink, in cifs_add_pending_open() argument
669 spin_lock(&tlink_tcon(tlink)->open_file_lock); in cifs_add_pending_open()
670 cifs_add_pending_open_locked(fid, tlink, open); in cifs_add_pending_open()
671 spin_unlock(&tlink_tcon(open->tlink)->open_file_lock); in cifs_add_pending_open()
Dreaddir.c392 struct tcon_link *tlink = NULL; in initiate_cifs_search() local
397 tlink = cifs_sb_tlink(cifs_sb); in initiate_cifs_search()
398 if (IS_ERR(tlink)) in initiate_cifs_search()
399 return PTR_ERR(tlink); in initiate_cifs_search()
408 cifsFile->tlink = cifs_get_tlink(tlink); in initiate_cifs_search()
409 tcon = tlink_tcon(tlink); in initiate_cifs_search()
412 tcon = tlink_tcon(cifsFile->tlink); in initiate_cifs_search()
463 cifs_put_tlink(tlink); in initiate_cifs_search()
985 tcon = tlink_tcon(cifsFile->tlink); in cifs_readdir()
Dsmb2file.c123 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_unlock_range()
229 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_push_mand_fdlocks()
276 max_buf = tlink_tcon(cfile->tlink)->ses->server->maxBuf; in smb2_push_mandatory_locks()
Dsmb1ops.c765 struct tcon_link *tlink = NULL; in smb_set_file_info() local
773 tcon = tlink_tcon(open_file->tlink); in smb_set_file_info()
777 tlink = cifs_sb_tlink(cifs_sb); in smb_set_file_info()
778 if (IS_ERR(tlink)) { in smb_set_file_info()
779 rc = PTR_ERR(tlink); in smb_set_file_info()
780 tlink = NULL; in smb_set_file_info()
783 tcon = tlink_tcon(tlink); in smb_set_file_info()
823 if (tlink != NULL) in smb_set_file_info()
824 cifs_put_tlink(tlink); in smb_set_file_info()
910 return CIFSSMBLock(xid, tlink_tcon(cfile->tlink), cfile->fid.netfid, in cifs_mand_lock()
Dcifsglob.h1204 tlink_tcon(struct tcon_link *tlink) in tlink_tcon() argument
1206 return tlink->tl_tcon; in tlink_tcon()
1215 extern void cifs_put_tlink(struct tcon_link *tlink);
1218 cifs_get_tlink(struct tcon_link *tlink) in cifs_get_tlink() argument
1220 if (tlink && !IS_ERR(tlink)) in cifs_get_tlink()
1221 atomic_inc(&tlink->tl_count); in cifs_get_tlink()
1222 return tlink; in cifs_get_tlink()
1232 struct tcon_link *tlink; member
1318 struct tcon_link *tlink; member
Dsmb2inode.c738 struct tcon_link *tlink; in smb2_set_file_info() local
746 tlink = cifs_sb_tlink(cifs_sb); in smb2_set_file_info()
747 if (IS_ERR(tlink)) in smb2_set_file_info()
748 return PTR_ERR(tlink); in smb2_set_file_info()
750 rc = smb2_compound_op(xid, tlink_tcon(tlink), cifs_sb, full_path, in smb2_set_file_info()
753 cifs_put_tlink(tlink); in smb2_set_file_info()
Dcifsfs.c984 if (cfile && cfile->tlink) { in cifs_llseek()
985 tcon = tlink_tcon(cfile->tlink); in cifs_llseek()
1011 else if (tlink_tcon(cfile->tlink)->local_lease && in cifs_setlease()
1102 target_tcon = tlink_tcon(smb_file_target->tlink); in cifs_remap_file_range()
1160 src_tcon = tlink_tcon(smb_file_src->tlink); in cifs_file_copychunk_range()
1161 target_tcon = tlink_tcon(smb_file_target->tlink); in cifs_file_copychunk_range()
Dsmb2ops.c1402 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; in smb2_set_fid()
1755 rc = SMB2_request_res_key(xid, tlink_tcon(srcfile->tlink), in smb2_copychunk_range()
1768 tcon = tlink_tcon(trgtfile->tlink); in smb2_copychunk_range()
1993 struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink); in smb2_duplicate_extents()
2671 return SMB2_lock(xid, tlink_tcon(cfile->tlink), in smb2_mand_lock()
3208 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_smb2_acl_by_fid() local
3210 if (IS_ERR(tlink)) in get_smb2_acl_by_fid()
3211 return ERR_CAST(tlink); in get_smb2_acl_by_fid()
3216 rc = SMB2_query_acl(xid, tlink_tcon(tlink), cifsfid->persistent_fid, in get_smb2_acl_by_fid()
3220 cifs_put_tlink(tlink); in get_smb2_acl_by_fid()
[all …]
Dcifsproto.h183 struct tcon_link *tlink,
253 struct tcon_link *tlink,
256 struct tcon_link *tlink,
Dsmb2pdu.c3920 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in smb2_readv_callback()
4014 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv()
4023 io_parms.tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv()
4163 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_writev_callback()
4249 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_async_writev()
Dcifssmb.c1622 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_readv_callback()
1679 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_async_readv()
2001 server = tlink_tcon(wdata->cfile->tlink)->ses->server; in cifs_writev_requeue()
2100 cifs_stats_bytes_written(tlink_tcon(wdata->cfile->tlink), in cifs_writev_complete()
2154 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in cifs_writev_callback()
2204 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in cifs_async_writev()
/kernel/linux/linux-5.10/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()
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.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()
/kernel/linux/linux-5.10/drivers/scsi/bfa/
Dbfi_ms.h301 struct bfi_fcport_trunk_link_s tlink[BFI_FCPORT_MAX_LINKS]; member
Dbfa_svc.c3416 struct bfi_fcport_trunk_link_s *tlink; in bfa_trunk_scn() local
3439 tlink = &scn->tlink[i]; in bfa_trunk_scn()
3441 lattr->link_state = tlink->state; in bfa_trunk_scn()
3442 lattr->trunk_wwn = tlink->trunk_wwn; in bfa_trunk_scn()
3443 lattr->fctl = tlink->fctl; in bfa_trunk_scn()
3444 lattr->speed = tlink->speed; in bfa_trunk_scn()
3445 lattr->deskew = be32_to_cpu(tlink->deskew); in bfa_trunk_scn()
3447 if (tlink->state == BFA_TRUNK_LINK_STATE_UP) { in bfa_trunk_scn()
3448 fcport->speed = tlink->speed; in bfa_trunk_scn()