Lines Matching refs:ses

695 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf,
698 if (ses->server->tcpStatus == CifsExiting) {
702 if (ses->server->tcpStatus == CifsNeedReconnect) {
707 if (ses->status == CifsNew) {
714 if (ses->status == CifsExiting) {
721 *ppmidQ = AllocMidQEntry(in_buf, ses->server);
725 list_add_tail(&(*ppmidQ)->qhead, &ses->server->pending_mid_q);
861 SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses,
872 rc = SendReceive2(xid, ses, iov, 1, &resp_buf_type, flags, &rsp_iov);
955 cifs_setup_request(struct cifs_ses *ses, struct TCP_Server_Info *ignored,
966 rc = allocate_mid(ses, hdr, &mid);
969 rc = cifs_sign_rqst(rqst, ses->server, &mid->sequence_number);
1004 * Return a channel (master if none) of @ses that can be used to send
1010 struct TCP_Server_Info *cifs_pick_channel(struct cifs_ses *ses)
1014 if (!ses)
1017 if (!ses->binding) {
1019 if (ses->chan_count > 1) {
1020 index = (uint)atomic_inc_return(&ses->chan_seq);
1021 index %= ses->chan_count;
1023 return ses->chans[index].server;
1025 return cifs_ses_server(ses);
1030 compound_send_recv(const unsigned int xid, struct cifs_ses *ses,
1049 if (!ses || !ses->server || !server) {
1098 midQ[i] = server->ops->setup_request(ses, server, &rqst[i]);
1156 if ((ses->status == CifsNew) || (optype & CIFS_NEG_OP)) {
1158 smb311_update_preauth_hash(ses, rqst[0].rq_iov,
1224 if ((ses->status == CifsNew) || (optype & CIFS_NEG_OP)) {
1230 smb311_update_preauth_hash(ses, &iov, 1);
1250 cifs_send_recv(const unsigned int xid, struct cifs_ses *ses,
1255 return compound_send_recv(xid, ses, server, flags, 1,
1260 SendReceive2(const unsigned int xid, struct cifs_ses *ses,
1291 rc = cifs_send_recv(xid, ses, ses->server,
1299 SendReceive(const unsigned int xid, struct cifs_ses *ses,
1311 if (ses == NULL) {
1315 server = ses->server;
1326 use ses->maxReq */
1344 rc = allocate_mid(ses, in_buf, &midQ);
1417 struct cifs_ses *ses = tcon->ses;
1427 pSMB->hdr.Mid = get_next_mid(ses->server);
1429 return SendReceive(xid, ses, in_buf, out_buf,
1441 struct cifs_ses *ses;
1448 if (tcon == NULL || tcon->ses == NULL) {
1452 ses = tcon->ses;
1453 server = ses->server;
1465 use ses->maxReq */
1483 rc = allocate_mid(ses, in_buf, &midQ);