/linux/fs/smb/client/ |
H A D | ioctl.c | 173 struct tcon_link *tlink; in cifs_shutdown() local 184 tlink = cifs_sb_tlink(sbi); in cifs_shutdown() 185 if (IS_ERR(tlink)) in cifs_shutdown() 186 return PTR_ERR(tlink); in cifs_shutdown() 187 tcon = tlink_tcon(tlink); in cifs_shutdown() 232 cifs_put_tlink(tlink); in cifs_shutdown() 236 cifs_put_tlink(tlink); in cifs_shutdown() 360 struct tcon_link *tlink; in cifs_ioctl() local 381 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl() 410 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl() [all …]
|
H A D | dir.c | 178 struct tcon_link *tlink, unsigned int oflags, umode_t mode, __u32 *oplock, argument 185 struct cifs_tcon *tcon = tlink_tcon(tlink); 438 struct tcon_link *tlink; local 483 tlink = cifs_sb_tlink(CIFS_SB(inode->i_sb)); 484 if (IS_ERR(tlink)) { 485 rc = PTR_ERR(tlink); 489 tcon = tlink_tcon(tlink); 500 cifs_add_pending_open(&fid, tlink, &open); 502 rc = cifs_do_create(inode, direntry, xid, tlink, oflags, mode, 528 file_info = cifs_new_fileinfo(&fid, file, tlink, oplock, buf.symlink_target); [all …]
|
H A D | xattr.c | 101 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() 211 cifs_put_tlink(tlink); in cifs_xattr_set() 269 struct tcon_link *tlink; in cifs_xattr_get() local 274 tlink = cifs_sb_tlink(cifs_sb); in cifs_xattr_get() 275 if (IS_ERR(tlink)) in cifs_xattr_get() 276 return PTR_ERR(tlink); in cifs_xattr_get() 368 struct tcon_link *tlink; cifs_listxattr() local [all...] |
H A D | inode.c | 404 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_get_file_info_unix() 441 struct tcon_link *tlink; in cifs_get_unix_fattr() local 446 tlink = cifs_sb_tlink(cifs_sb); in cifs_get_unix_fattr() 447 if (IS_ERR(tlink)) in cifs_get_unix_fattr() 448 return PTR_ERR(tlink); in cifs_get_unix_fattr() 449 tcon = tlink_tcon(tlink); in cifs_get_unix_fattr() 456 cifs_put_tlink(tlink); in cifs_get_unix_fattr() 527 struct tcon_link *tlink; in cifs_sfu_type() local 554 tlink = cifs_sb_tlink(cifs_sb); in cifs_sfu_type() 555 if (IS_ERR(tlink)) in cifs_sfu_type() 653 struct tcon_link *tlink; cifs_sfu_mode() local 1103 struct tcon_link *tlink; cifs_get_fattr() local 1289 struct tcon_link *tlink; smb311_posix_get_fattr() local 1631 struct tcon_link *tlink; cifs_rename_pending_delete() local 1775 struct tcon_link *tlink; cifs_unlink() local 2055 struct tcon_link *tlink; global() local 2133 struct tcon_link *tlink; global() local 2212 struct tcon_link *tlink; global() local 2286 struct tcon_link *tlink; global() local 2775 struct tcon_link *tlink = NULL; global() local 2866 struct tcon_link *tlink; global() local [all...] |
H A D | cifsacl.c | 1395 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_cifs_acl_by_fid() local 1397 if (IS_ERR(tlink)) in get_cifs_acl_by_fid() 1398 return ERR_CAST(tlink); in get_cifs_acl_by_fid() 1401 rc = CIFSSMBGetCIFSACL(xid, tlink_tcon(tlink), cifsfid->netfid, &pntsd, in get_cifs_acl_by_fid() 1405 cifs_put_tlink(tlink); in get_cifs_acl_by_fid() 1421 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_cifs_acl_by_path() local 1425 if (IS_ERR(tlink)) in get_cifs_acl_by_path() 1426 return ERR_CAST(tlink); in get_cifs_acl_by_path() 1428 tcon = tlink_tcon(tlink); in get_cifs_acl_by_path() 1447 cifs_put_tlink(tlink); in get_cifs_acl_by_path() 1483 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); set_cifs_acl() local 1534 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); cifs_acl_to_fattr() local 1587 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); id_mode_to_cifs_acl() local 1688 struct tcon_link *tlink; cifs_get_acl() local 1751 struct tcon_link *tlink; cifs_set_acl() local [all...] |
H A D | connect.c | 2766 cifs_put_tlink(struct tcon_link *tlink) 2768 if (!tlink || IS_ERR(tlink)) in cifs_put_tlink() 2771 if (!atomic_dec_and_test(&tlink->tl_count) || in cifs_put_tlink() 2772 test_bit(TCON_LINK_IN_TREE, &tlink->tl_flags)) { in cifs_put_tlink() 2773 tlink->tl_time = jiffies; in cifs_put_tlink() 2777 if (!IS_ERR(tlink_tcon(tlink))) in cifs_put_tlink() 2778 cifs_put_tcon(tlink_tcon(tlink), netfs_trace_tcon_ref_put_tlink); in cifs_put_tlink() 2779 kfree(tlink); in cifs_put_tlink() 2865 struct tcon_link *tlink; in cifs_match_super() 2767 cifs_put_tlink(struct tcon_link * tlink) cifs_put_tlink() argument 2866 struct tcon_link *tlink; cifs_match_super() local 3505 struct tcon_link *tlink; mount_setup_tlink() local 3864 struct tcon_link *tlink; cifs_umount() local 4158 struct tcon_link *tlink; tlink_rb_search() local 4178 struct tcon_link *tlink; tlink_rb_insert() local 4218 struct tcon_link *tlink, *newtlink; cifs_sb_tlink() local 4298 struct tcon_link *tlink; cifs_prune_tlinks() local [all...] |
H A D | link.c | 471 struct tcon_link *tlink; local 479 tlink = cifs_sb_tlink(cifs_sb); 480 if (IS_ERR(tlink)) 481 return PTR_ERR(tlink); 482 tcon = tlink_tcon(tlink); 561 cifs_put_tlink(tlink); 573 struct tcon_link *tlink; local 588 tlink = cifs_sb_tlink(cifs_sb); 589 if (IS_ERR(tlink)) { 590 rc = PTR_ERR(tlink); [all...] |
H A D | file.c | 63 server = cifs_pick_channel(tlink_tcon(open_file->tlink)->ses); in cifs_prepare_write() 163 server->ops->negotiate_rsize(tlink_tcon(req->cfile->tlink), in cifs_prepare_read() 268 req->server = cifs_pick_channel(tlink_tcon(req->cfile->tlink)->ses); in cifs_init_request() 472 struct tcon_link *tlink; in cifs_posix_open() local 481 tlink = cifs_sb_tlink(cifs_sb); in cifs_posix_open() 482 if (IS_ERR(tlink)) { in cifs_posix_open() 483 rc = PTR_ERR(tlink); in cifs_posix_open() 487 tcon = tlink_tcon(tlink); in cifs_posix_open() 494 cifs_put_tlink(tlink); in cifs_posix_open() 650 struct tcon_link *tlink, __u3 in cifs_new_fileinfo() argument 949 struct tcon_link *tlink; cifs_open() local 3057 struct tcon_link *tlink; cifs_oplock_break() local [all...] |
H A D | readdir.c | 338 struct tcon_link *tlink = NULL; in _initiate_cifs_search() local 343 tlink = cifs_sb_tlink(cifs_sb); in _initiate_cifs_search() 344 if (IS_ERR(tlink)) in _initiate_cifs_search() 345 return PTR_ERR(tlink); in _initiate_cifs_search() 354 cifsFile->tlink = cifs_get_tlink(tlink); in _initiate_cifs_search() 355 tcon = tlink_tcon(tlink); in _initiate_cifs_search() 358 tcon = tlink_tcon(cifsFile->tlink); in _initiate_cifs_search() 406 cifs_put_tlink(tlink); in _initiate_cifs_search() 1017 struct tcon_link *tlink = NULL; in cifs_readdir() local 1039 tlink = cifs_sb_tlink(cifs_sb); in cifs_readdir() [all …]
|
H A D | smb2misc.c | 501 struct tcon_link *tlink; member 513 rc = SMB2_lease_break(0, tlink_tcon(lw->tlink), lw->lease_key, in cifs_ses_oplock_break() 517 cifs_put_tlink(lw->tlink); in cifs_ses_oplock_break() 522 smb2_queue_pending_open_break(struct tcon_link *tlink, __u8 *lease_key, in smb2_queue_pending_open_break() argument 529 cifs_put_tlink(tlink); in smb2_queue_pending_open_break() 534 lw->tlink = tlink; in smb2_queue_pending_open_break() 640 struct tcon_link *tlink; in smb2_is_valid_lease_break() local 642 tlink = cifs_get_tlink(open->tlink); in smb2_is_valid_lease_break() [all...] |
H A D | misc.c | 665 spin_lock(&tlink_tcon(open->tlink)->open_file_lock); in cifs_del_pending_open() 667 spin_unlock(&tlink_tcon(open->tlink)->open_file_lock); in cifs_del_pending_open() 671 cifs_add_pending_open_locked(struct cifs_fid *fid, struct tcon_link *tlink, in cifs_add_pending_open_locked() argument 676 open->tlink = tlink; in cifs_add_pending_open_locked() 678 list_add_tail(&open->olist, &tlink_tcon(tlink)->pending_opens); in cifs_add_pending_open_locked() 682 cifs_add_pending_open(struct cifs_fid *fid, struct tcon_link *tlink, in cifs_add_pending_open() argument 685 spin_lock(&tlink_tcon(tlink)->open_file_lock); in cifs_add_pending_open() 686 cifs_add_pending_open_locked(fid, tlink, open); in cifs_add_pending_open() 687 spin_unlock(&tlink_tcon(open->tlink) in cifs_add_pending_open() [all...] |
H A D | smb1ops.c | 801 struct tcon_link *tlink = NULL; in smb_set_file_info() local 809 tcon = tlink_tcon(open_file->tlink); in smb_set_file_info() 813 tlink = cifs_sb_tlink(cifs_sb); in smb_set_file_info() 814 if (IS_ERR(tlink)) { in smb_set_file_info() 815 rc = PTR_ERR(tlink); in smb_set_file_info() 816 tlink = NULL; in smb_set_file_info() 819 tcon = tlink_tcon(tlink); in smb_set_file_info() 860 if (tlink != NULL) in smb_set_file_info() 861 cifs_put_tlink(tlink); in smb_set_file_info() 946 return CIFSSMBLock(xid, tlink_tcon(cfile->tlink), cfil in cifs_mand_lock() [all...] |
H A D | cifsglob.h | 1317 tlink_tcon(struct tcon_link *tlink) in tlink_tcon() argument 1319 return tlink->tl_tcon; in tlink_tcon() 1328 extern void cifs_put_tlink(struct tcon_link *tlink); 1331 cifs_get_tlink(struct tcon_link *tlink) in cifs_get_tlink() argument 1333 if (tlink && !IS_ERR(tlink)) in cifs_get_tlink() 1334 atomic_inc(&tlink->tl_count); in cifs_get_tlink() 1335 return tlink; in cifs_get_tlink() 1345 struct tcon_link *tlink; member 1352 struct tcon_link *tlink; member 1441 struct tcon_link *tlink; global() member [all...] |
H A D | smb2file.c | 195 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_unlock_range() 299 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_push_mand_fdlocks() 346 max_buf = tlink_tcon(cfile->tlink)->ses->server->maxBuf; in smb2_push_mandatory_locks()
|
H A D | smb2inode.c | 1169 struct tcon_link *tlink; in smb2_set_file_info() local 1180 tlink = cifs_sb_tlink(cifs_sb); in smb2_set_file_info() 1181 if (IS_ERR(tlink)) in smb2_set_file_info() 1182 return PTR_ERR(tlink); in smb2_set_file_info() 1183 tcon = tlink_tcon(tlink); in smb2_set_file_info() 1192 cifs_put_tlink(tlink); in smb2_set_file_info()
|
H A D | cached_dir.c | 478 struct tcon_link *tlink; in close_all_cached_dirs() local 482 tlink = rb_entry(node, struct tcon_link, tl_rbnode); in close_all_cached_dirs() 483 tcon = tlink_tcon(tlink); in close_all_cached_dirs()
|
H A D | cifsfs.c | 1030 if (cfile && cfile->tlink) { in cifs_llseek() 1031 tcon = tlink_tcon(cfile->tlink); in cifs_llseek() 1054 else if (tlink_tcon(cfile->tlink)->local_lease && in cifs_setlease() 1249 src_tcon = tlink_tcon(smb_file_src->tlink); in cifs_remap_file_range() 1250 target_tcon = tlink_tcon(smb_file_target->tlink); in cifs_remap_file_range() 1357 src_tcon = tlink_tcon(smb_file_src->tlink); in cifs_file_copychunk_range() 1358 target_tcon = tlink_tcon(smb_file_target->tlink); in cifs_file_copychunk_range()
|
H A D | smb2ops.c | 1437 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; in smb2_set_fid() 1804 rc = SMB2_request_res_key(xid, tlink_tcon(srcfile->tlink), in smb2_copychunk_range() 1817 tcon = tlink_tcon(trgtfile->tlink); in smb2_copychunk_range() 2046 struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink); in smb2_duplicate_extents() 2923 return SMB2_lock(xid, tlink_tcon(cfile->tlink), in smb2_mand_lock() 3060 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_smb2_acl_by_fid() local 3062 if (IS_ERR(tlink)) in get_smb2_acl_by_fid() 3063 return ERR_CAST(tlink); in get_smb2_acl_by_fid() 3068 rc = SMB2_query_acl(xid, tlink_tcon(tlink), cifsfid->persistent_fid, in get_smb2_acl_by_fid() 3073 cifs_put_tlink(tlink); in get_smb2_acl_by_fid() 3091 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); get_smb2_acl_by_path() local 3157 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); set_smb2_acl() local [all...] |
H A D | cifsproto.h | 195 struct tcon_link *tlink, __u32 oplock, 278 struct tcon_link *tlink, 281 struct tcon_link *tlink,
|
H A D | smb2pdu.c | 4510 struct cifs_tcon *tcon = tlink_tcon(rdata->req->cfile->tlink); in smb2_readv_callback() 4640 struct cifs_tcon *tcon = tlink_tcon(rdata->req->cfile->tlink); in smb2_async_readv() 4650 io_parms.tcon = tlink_tcon(rdata->req->cfile->tlink); in smb2_async_readv() 4801 struct cifs_tcon *tcon = tlink_tcon(wdata->req->cfile->tlink); in smb2_writev_callback() 4902 struct cifs_tcon *tcon = tlink_tcon(wdata->req->cfile->tlink); in smb2_async_writev()
|
/linux/drivers/ata/ |
H A D | libata-acpi.c | 72 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/kernel/bpf/ |
H A D | bpf_struct_ops.c | 533 struct bpf_tramp_link *tlink = container_of(link, struct bpf_tramp_link, link); in bpf_struct_ops_link_dealloc() local 535 kfree(tlink); in bpf_struct_ops_link_dealloc()
|
/linux/drivers/scsi/bfa/ |
H A D | bfa_svc.c | 3396 struct bfi_fcport_trunk_link_s *tlink; in bfa_trunk_scn() local 3419 tlink = &scn->tlink[i]; in bfa_trunk_scn() 3421 lattr->link_state = tlink->state; in bfa_trunk_scn() 3422 lattr->trunk_wwn = tlink->trunk_wwn; in bfa_trunk_scn() 3423 lattr->fctl = tlink->fctl; in bfa_trunk_scn() 3424 lattr->speed = tlink->speed; in bfa_trunk_scn() 3425 lattr->deskew = be32_to_cpu(tlink->deskew); in bfa_trunk_scn() 3427 if (tlink->state == BFA_TRUNK_LINK_STATE_UP) { in bfa_trunk_scn() 3428 fcport->speed = tlink->speed; in bfa_trunk_scn()
|
H A D | bfi_ms.h | 301 struct bfi_fcport_trunk_link_s tlink[BFI_FCPORT_MAX_LINKS]; member
|
/linux/arch/s390/net/ |
H A D | bpf_jit_comp.c | 2470 struct bpf_tramp_link *tlink, bool save_ret) in invoke_bpf_prog() argument 2475 struct bpf_prog *p = tlink->link.prog; in invoke_bpf_prog() 2483 load_imm64(jit, REG_W0, tlink->cookie); in invoke_bpf_prog()
|