Lines Matching refs:tcon
475 smb2_tcon_has_lease(struct cifs_tcon *tcon, struct smb2_lease_break *rsp, in smb2_tcon_has_lease() argument
489 list_for_each(tmp, &tcon->openFileList) { in smb2_tcon_has_lease()
526 list_for_each_entry(open, &tcon->pending_opens, olist) { in smb2_tcon_has_lease()
555 struct cifs_tcon *tcon; in smb2_is_valid_lease_break() local
576 tcon = list_entry(tmp2, struct cifs_tcon, in smb2_is_valid_lease_break()
578 spin_lock(&tcon->open_file_lock); in smb2_is_valid_lease_break()
580 &tcon->stats.cifs_stats.num_oplock_brks); in smb2_is_valid_lease_break()
581 if (smb2_tcon_has_lease(tcon, rsp, lw)) { in smb2_is_valid_lease_break()
582 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_lease_break()
586 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_lease_break()
602 struct cifs_tcon *tcon; in smb2_is_valid_oplock_break() local
627 tcon = list_entry(tmp1, struct cifs_tcon, tcon_list); in smb2_is_valid_oplock_break()
629 spin_lock(&tcon->open_file_lock); in smb2_is_valid_oplock_break()
630 list_for_each(tmp2, &tcon->openFileList) { in smb2_is_valid_oplock_break()
641 &tcon->stats.cifs_stats.num_oplock_brks); in smb2_is_valid_oplock_break()
669 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_oplock_break()
673 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_oplock_break()
689 SMB2_close(0, cancelled->tcon, cancelled->fid.persistent_fid, in smb2_cancelled_close_fid()
691 cifs_put_tcon(cancelled->tcon); in smb2_cancelled_close_fid()
700 struct cifs_tcon *tcon; in smb2_handle_cancelled_mid() local
711 tcon = smb2_find_smb_tcon(server, sync_hdr->SessionId, in smb2_handle_cancelled_mid()
713 if (!tcon) { in smb2_handle_cancelled_mid()
720 cancelled->tcon = tcon; in smb2_handle_cancelled_mid()