Lines Matching refs:ses

690 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf,  in allocate_mid()  argument
693 if (ses->server->tcpStatus == CifsExiting) { in allocate_mid()
697 if (ses->server->tcpStatus == CifsNeedReconnect) { in allocate_mid()
702 if (ses->status == CifsNew) { in allocate_mid()
709 if (ses->status == CifsExiting) { in allocate_mid()
716 *ppmidQ = AllocMidQEntry(in_buf, ses->server); in allocate_mid()
720 list_add_tail(&(*ppmidQ)->qhead, &ses->server->pending_mid_q); in allocate_mid()
858 SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, in SendReceiveNoRsp() argument
869 rc = SendReceive2(xid, ses, iov, 1, &resp_buf_type, flags, &rsp_iov); in SendReceiveNoRsp()
952 cifs_setup_request(struct cifs_ses *ses, struct TCP_Server_Info *ignored, in cifs_setup_request() argument
963 rc = allocate_mid(ses, hdr, &mid); in cifs_setup_request()
966 rc = cifs_sign_rqst(rqst, ses->server, &mid->sequence_number); in cifs_setup_request()
1007 struct TCP_Server_Info *cifs_pick_channel(struct cifs_ses *ses) in cifs_pick_channel() argument
1011 if (!ses) in cifs_pick_channel()
1014 if (!ses->binding) { in cifs_pick_channel()
1016 if (ses->chan_count > 1) { in cifs_pick_channel()
1017 index = (uint)atomic_inc_return(&ses->chan_seq); in cifs_pick_channel()
1018 index %= ses->chan_count; in cifs_pick_channel()
1020 return ses->chans[index].server; in cifs_pick_channel()
1022 return cifs_ses_server(ses); in cifs_pick_channel()
1027 compound_send_recv(const unsigned int xid, struct cifs_ses *ses, in compound_send_recv() argument
1046 if (!ses || !ses->server || !server) { in compound_send_recv()
1095 midQ[i] = server->ops->setup_request(ses, server, &rqst[i]); in compound_send_recv()
1155 if ((ses->status == CifsNew) || (optype & CIFS_NEG_OP)) { in compound_send_recv()
1157 smb311_update_preauth_hash(ses, rqst[0].rq_iov, in compound_send_recv()
1223 if ((ses->status == CifsNew) || (optype & CIFS_NEG_OP)) { in compound_send_recv()
1229 smb311_update_preauth_hash(ses, &iov, 1); in compound_send_recv()
1249 cifs_send_recv(const unsigned int xid, struct cifs_ses *ses, in cifs_send_recv() argument
1254 return compound_send_recv(xid, ses, server, flags, 1, in cifs_send_recv()
1259 SendReceive2(const unsigned int xid, struct cifs_ses *ses, in SendReceive2() argument
1290 rc = cifs_send_recv(xid, ses, ses->server, in SendReceive2()
1298 SendReceive(const unsigned int xid, struct cifs_ses *ses, in SendReceive() argument
1310 if (ses == NULL) { in SendReceive()
1314 server = ses->server; in SendReceive()
1343 rc = allocate_mid(ses, in_buf, &midQ); in SendReceive()
1418 struct cifs_ses *ses = tcon->ses; in send_lock_cancel() local
1428 pSMB->hdr.Mid = get_next_mid(ses->server); in send_lock_cancel()
1430 return SendReceive(xid, ses, in_buf, out_buf, in send_lock_cancel()
1442 struct cifs_ses *ses; in SendReceiveBlockingLock() local
1449 if (tcon == NULL || tcon->ses == NULL) { in SendReceiveBlockingLock()
1453 ses = tcon->ses; in SendReceiveBlockingLock()
1454 server = ses->server; in SendReceiveBlockingLock()
1484 rc = allocate_mid(ses, in_buf, &midQ); in SendReceiveBlockingLock()