Home
last modified time | relevance | path

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

/linux-3.4.99/fs/cifs/
Dxattr.c44 struct tcon_link *tlink; in cifs_removexattr() local
58 tlink = cifs_sb_tlink(cifs_sb); in cifs_removexattr()
59 if (IS_ERR(tlink)) in cifs_removexattr()
60 return PTR_ERR(tlink); in cifs_removexattr()
61 pTcon = tlink_tcon(tlink); in cifs_removexattr()
92 cifs_put_tlink(tlink); in cifs_removexattr()
104 struct tcon_link *tlink; in cifs_setxattr() local
118 tlink = cifs_sb_tlink(cifs_sb); in cifs_setxattr()
119 if (IS_ERR(tlink)) in cifs_setxattr()
120 return PTR_ERR(tlink); in cifs_setxattr()
[all …]
Dlink.c315 struct tcon_link *tlink; in CIFSCheckMFSymlink() local
329 tlink = cifs_sb_tlink(cifs_sb); in CIFSCheckMFSymlink()
330 if (IS_ERR(tlink)) in CIFSCheckMFSymlink()
331 return PTR_ERR(tlink); in CIFSCheckMFSymlink()
332 pTcon = tlink_tcon(tlink); in CIFSCheckMFSymlink()
384 cifs_put_tlink(tlink); in CIFSCheckMFSymlink()
397 struct tcon_link *tlink; in cifs_hardlink() local
401 tlink = cifs_sb_tlink(cifs_sb); in cifs_hardlink()
402 if (IS_ERR(tlink)) in cifs_hardlink()
403 return PTR_ERR(tlink); in cifs_hardlink()
[all …]
Dinode.c299 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
323 struct tcon_link *tlink; local
328 tlink = cifs_sb_tlink(cifs_sb);
329 if (IS_ERR(tlink))
330 return PTR_ERR(tlink);
331 tcon = tlink_tcon(tlink);
337 cifs_put_tlink(tlink);
376 struct tcon_link *tlink; local
397 tlink = cifs_sb_tlink(cifs_sb);
398 if (IS_ERR(tlink))
[all …]
Ddir.c157 struct tcon_link *tlink; in cifs_create() local
167 tlink = cifs_sb_tlink(cifs_sb); in cifs_create()
168 if (IS_ERR(tlink)) { in cifs_create()
170 return PTR_ERR(tlink); in cifs_create()
172 tcon = tlink_tcon(tlink); in cifs_create()
340 pfile_info = cifs_new_fileinfo(fileHandle, filp, tlink, oplock); in cifs_create()
353 cifs_put_tlink(tlink); in cifs_create()
365 struct tcon_link *tlink; in cifs_mknod() local
380 tlink = cifs_sb_tlink(cifs_sb); in cifs_mknod()
381 if (IS_ERR(tlink)) in cifs_mknod()
[all …]
Dconnect.c2724 cifs_put_tlink(struct tcon_link *tlink) in cifs_put_tlink() argument
2726 if (!tlink || IS_ERR(tlink)) in cifs_put_tlink()
2729 if (!atomic_dec_and_test(&tlink->tl_count) || in cifs_put_tlink()
2730 test_bit(TCON_LINK_IN_TREE, &tlink->tl_flags)) { in cifs_put_tlink()
2731 tlink->tl_time = jiffies; in cifs_put_tlink()
2735 if (!IS_ERR(tlink_tcon(tlink))) in cifs_put_tlink()
2736 cifs_put_tcon(tlink_tcon(tlink)); in cifs_put_tlink()
2737 kfree(tlink); in cifs_put_tlink()
2795 struct tcon_link *tlink; in cifs_match_super() local
2803 tlink = cifs_get_tlink(cifs_sb_master_tlink(cifs_sb)); in cifs_match_super()
[all …]
Dcifs_dfs_ref.c285 struct tcon_link *tlink; in cifs_dfs_do_automount() local
302 tlink = cifs_sb_tlink(cifs_sb); in cifs_dfs_do_automount()
303 if (IS_ERR(tlink)) { in cifs_dfs_do_automount()
304 mnt = ERR_CAST(tlink); in cifs_dfs_do_automount()
307 ses = tlink_tcon(tlink)->ses; in cifs_dfs_do_automount()
315 cifs_put_tlink(tlink); in cifs_dfs_do_automount()
Dfile.c117 struct tcon_link *tlink; in cifs_posix_open() local
126 tlink = cifs_sb_tlink(cifs_sb); in cifs_posix_open()
127 if (IS_ERR(tlink)) { in cifs_posix_open()
128 rc = PTR_ERR(tlink); in cifs_posix_open()
132 tcon = tlink_tcon(tlink); in cifs_posix_open()
140 cifs_put_tlink(tlink); in cifs_posix_open()
246 struct tcon_link *tlink, __u32 oplock) in cifs_new_fileinfo() argument
264 pCifsFile->tlink = cifs_get_tlink(tlink); in cifs_new_fileinfo()
271 list_add(&pCifsFile->tlist, &(tlink_tcon(tlink)->openFileList)); in cifs_new_fileinfo()
296 struct cifs_tcon *tcon = tlink_tcon(cifs_file->tlink); in cifsFileInfo_put()
[all …]
Dcifsglob.h523 tlink_tcon(struct tcon_link *tlink) in tlink_tcon() argument
525 return tlink->tl_tcon; in tlink_tcon()
528 extern void cifs_put_tlink(struct tcon_link *tlink);
531 cifs_get_tlink(struct tcon_link *tlink) in cifs_get_tlink() argument
533 if (tlink && !IS_ERR(tlink)) in cifs_get_tlink()
534 atomic_inc(&tlink->tl_count); in cifs_get_tlink()
535 return tlink; in cifs_get_tlink()
585 struct tcon_link *tlink; member
Dreaddir.c238 struct tcon_link *tlink = NULL; in initiate_cifs_search() local
242 tlink = cifs_sb_tlink(cifs_sb); in initiate_cifs_search()
243 if (IS_ERR(tlink)) in initiate_cifs_search()
244 return PTR_ERR(tlink); in initiate_cifs_search()
252 cifsFile->tlink = cifs_get_tlink(tlink); in initiate_cifs_search()
253 pTcon = tlink_tcon(tlink); in initiate_cifs_search()
256 pTcon = tlink_tcon(cifsFile->tlink); in initiate_cifs_search()
305 cifs_put_tlink(tlink); in initiate_cifs_search()
794 pTcon = tlink_tcon(cifsFile->tlink); in cifs_readdir()
Dcifsacl.c1148 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_cifs_acl_by_fid() local
1150 if (IS_ERR(tlink)) in get_cifs_acl_by_fid()
1151 return ERR_CAST(tlink); in get_cifs_acl_by_fid()
1154 rc = CIFSSMBGetCIFSACL(xid, tlink_tcon(tlink), fid, &pntsd, pacllen); in get_cifs_acl_by_fid()
1157 cifs_put_tlink(tlink); in get_cifs_acl_by_fid()
1173 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_cifs_acl_by_path() local
1175 if (IS_ERR(tlink)) in get_cifs_acl_by_path()
1176 return ERR_CAST(tlink); in get_cifs_acl_by_path()
1178 tcon = tlink_tcon(tlink); in get_cifs_acl_by_path()
1192 cifs_put_tlink(tlink); in get_cifs_acl_by_path()
[all …]
Dioctl.c67 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
82 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl()
Dcifsproto.h126 struct file *file, struct tcon_link *tlink,
Dcifsfs.c777 else if (tlink_tcon(cfile->tlink)->local_lease && in cifs_setlease()
Dcifssmb.c1693 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_readv_callback()
1732 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_async_readv()
2078 cifs_stats_bytes_written(tlink_tcon(wdata->cfile->tlink), in cifs_writev_complete()
2128 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in cifs_writev_callback()
2176 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in cifs_async_writev()
/linux-3.4.99/drivers/ata/
Dlibata-pmp.c484 struct ata_link *tlink; in sata_pmp_attach() local
533 ata_for_each_link(tlink, ap, EDGE) in sata_pmp_attach()
534 sata_link_init_spd(tlink); in sata_pmp_attach()
559 struct ata_link *tlink; in sata_pmp_detach() local
570 ata_for_each_link(tlink, ap, EDGE) in sata_pmp_detach()
571 ata_eh_detach_dev(tlink->device); in sata_pmp_detach()
771 struct ata_link *tlink; in sata_pmp_eh_recover_pmp() local
782 ata_for_each_link(tlink, ap, EDGE) { in sata_pmp_eh_recover_pmp()
783 struct ata_eh_context *ehc = &tlink->eh_context; in sata_pmp_eh_recover_pmp()
Dlibata-acpi.c114 struct ata_link *tlink; in ata_acpi_detach_device() local
117 ata_for_each_link(tlink, ap, EDGE) in ata_acpi_detach_device()
118 ata_for_each_dev(tdev, tlink, ALL) in ata_acpi_detach_device()
/linux-3.4.99/drivers/scsi/bfa/
Dbfa_svc.c3274 struct bfi_fcport_trunk_link_s *tlink; in bfa_trunk_scn() local
3297 tlink = &scn->tlink[i]; in bfa_trunk_scn()
3299 lattr->link_state = tlink->state; in bfa_trunk_scn()
3300 lattr->trunk_wwn = tlink->trunk_wwn; in bfa_trunk_scn()
3301 lattr->fctl = tlink->fctl; in bfa_trunk_scn()
3302 lattr->speed = tlink->speed; in bfa_trunk_scn()
3303 lattr->deskew = be32_to_cpu(tlink->deskew); in bfa_trunk_scn()
3305 if (tlink->state == BFA_TRUNK_LINK_STATE_UP) { in bfa_trunk_scn()
3306 fcport->speed = tlink->speed; in bfa_trunk_scn()
Dbfi_ms.h309 struct bfi_fcport_trunk_link_s tlink[BFI_FCPORT_MAX_LINKS]; member