Lines Matching refs:ses

682 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf,  in allocate_mid()  argument
685 if (ses->server->tcpStatus == CifsExiting) { in allocate_mid()
689 if (ses->server->tcpStatus == CifsNeedReconnect) { in allocate_mid()
694 if (ses->status == CifsNew) { in allocate_mid()
701 if (ses->status == CifsExiting) { in allocate_mid()
708 *ppmidQ = AllocMidQEntry(in_buf, ses->server); in allocate_mid()
712 list_add_tail(&(*ppmidQ)->qhead, &ses->server->pending_mid_q); in allocate_mid()
850 SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, in SendReceiveNoRsp() argument
861 rc = SendReceive2(xid, ses, iov, 1, &resp_buf_type, flags, &rsp_iov); in SendReceiveNoRsp()
944 cifs_setup_request(struct cifs_ses *ses, struct TCP_Server_Info *ignored, in cifs_setup_request() argument
955 rc = allocate_mid(ses, hdr, &mid); in cifs_setup_request()
958 rc = cifs_sign_rqst(rqst, ses->server, &mid->sequence_number); in cifs_setup_request()
999 struct TCP_Server_Info *cifs_pick_channel(struct cifs_ses *ses) in cifs_pick_channel() argument
1003 if (!ses) in cifs_pick_channel()
1006 if (!ses->binding) { in cifs_pick_channel()
1008 if (ses->chan_count > 1) { in cifs_pick_channel()
1009 index = (uint)atomic_inc_return(&ses->chan_seq); in cifs_pick_channel()
1010 index %= ses->chan_count; in cifs_pick_channel()
1012 return ses->chans[index].server; in cifs_pick_channel()
1014 return cifs_ses_server(ses); in cifs_pick_channel()
1019 compound_send_recv(const unsigned int xid, struct cifs_ses *ses, in compound_send_recv() argument
1038 if (!ses || !ses->server || !server) { in compound_send_recv()
1087 midQ[i] = server->ops->setup_request(ses, server, &rqst[i]); in compound_send_recv()
1147 if ((ses->status == CifsNew) || (optype & CIFS_NEG_OP)) in compound_send_recv()
1148 smb311_update_preauth_hash(ses, rqst[0].rq_iov, in compound_send_recv()
1212 if ((ses->status == CifsNew) || (optype & CIFS_NEG_OP)) { in compound_send_recv()
1217 smb311_update_preauth_hash(ses, &iov, 1); in compound_send_recv()
1236 cifs_send_recv(const unsigned int xid, struct cifs_ses *ses, in cifs_send_recv() argument
1241 return compound_send_recv(xid, ses, server, flags, 1, in cifs_send_recv()
1246 SendReceive2(const unsigned int xid, struct cifs_ses *ses, in SendReceive2() argument
1277 rc = cifs_send_recv(xid, ses, ses->server, in SendReceive2()
1285 SendReceive(const unsigned int xid, struct cifs_ses *ses, in SendReceive() argument
1297 if (ses == NULL) { in SendReceive()
1301 server = ses->server; in SendReceive()
1330 rc = allocate_mid(ses, in_buf, &midQ); in SendReceive()
1405 struct cifs_ses *ses = tcon->ses; in send_lock_cancel() local
1415 pSMB->hdr.Mid = get_next_mid(ses->server); in send_lock_cancel()
1417 return SendReceive(xid, ses, in_buf, out_buf, in send_lock_cancel()
1429 struct cifs_ses *ses; in SendReceiveBlockingLock() local
1436 if (tcon == NULL || tcon->ses == NULL) { in SendReceiveBlockingLock()
1440 ses = tcon->ses; in SendReceiveBlockingLock()
1441 server = ses->server; in SendReceiveBlockingLock()
1471 rc = allocate_mid(ses, in_buf, &midQ); in SendReceiveBlockingLock()