Lines Matching refs:server

39 send_nt_cancel(struct TCP_Server_Info *server, struct smb_rqst *rqst,  in send_nt_cancel()  argument
51 mutex_lock(&server->srv_mutex); in send_nt_cancel()
52 rc = cifs_sign_smb(in_buf, server, &mid->sequence_number); in send_nt_cancel()
54 mutex_unlock(&server->srv_mutex); in send_nt_cancel()
63 --server->sequence_number; in send_nt_cancel()
64 rc = smb_send(server, in_buf, be32_to_cpu(in_buf->smb_buf_length)); in send_nt_cancel()
66 server->sequence_number--; in send_nt_cancel()
68 mutex_unlock(&server->srv_mutex); in send_nt_cancel()
100 cifs_find_mid(struct TCP_Server_Info *server, char *buffer) in cifs_find_mid() argument
106 list_for_each_entry(mid, &server->pending_mid_q, qhead) { in cifs_find_mid()
120 cifs_add_credits(struct TCP_Server_Info *server, const unsigned int add, in cifs_add_credits() argument
123 spin_lock(&server->req_lock); in cifs_add_credits()
124 server->credits += add; in cifs_add_credits()
125 server->in_flight--; in cifs_add_credits()
126 spin_unlock(&server->req_lock); in cifs_add_credits()
127 wake_up(&server->request_q); in cifs_add_credits()
131 cifs_set_credits(struct TCP_Server_Info *server, const int val) in cifs_set_credits() argument
133 spin_lock(&server->req_lock); in cifs_set_credits()
134 server->credits = val; in cifs_set_credits()
135 server->oplocks = val > 1 ? enable_oplocks : false; in cifs_set_credits()
136 spin_unlock(&server->req_lock); in cifs_set_credits()
140 cifs_get_credits_field(struct TCP_Server_Info *server, const int optype) in cifs_get_credits_field() argument
142 return &server->credits; in cifs_get_credits_field()
173 cifs_get_next_mid(struct TCP_Server_Info *server) in cifs_get_next_mid() argument
182 cur_mid = (__u16)((server->CurrentMid) & 0xffff); in cifs_get_next_mid()
205 list_for_each_entry(mid_entry, &server->pending_mid_q, qhead) { in cifs_get_next_mid()
226 server->tcpStatus = CifsNeedReconnect; in cifs_get_next_mid()
230 server->CurrentMid = mid; in cifs_get_next_mid()
380 cifs_downgrade_oplock(struct TCP_Server_Info *server, in cifs_downgrade_oplock() argument
390 cifs_check_trans2(struct mid_q_entry *mid, struct TCP_Server_Info *server, in cifs_check_trans2() argument
408 if (!server->large_buf) { in cifs_check_trans2()
415 server->bigbuf = NULL; in cifs_check_trans2()
421 cifs_need_neg(struct TCP_Server_Info *server) in cifs_need_neg() argument
423 return server->maxBuf == 0; in cifs_need_neg()
433 set_credits(ses->server, 1); in cifs_negotiate()
445 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_wsize() local
465 if (!(server->capabilities & CAP_LARGE_WRITE_X) || in cifs_negotiate_wsize()
466 (!(server->capabilities & CAP_UNIX) && server->sign)) in cifs_negotiate_wsize()
468 server->maxBuf - sizeof(WRITE_REQ) + 4); in cifs_negotiate_wsize()
480 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_rsize() local
497 else if (server->capabilities & CAP_LARGE_READ_X) in cifs_negotiate_rsize()
500 defsize = server->maxBuf - sizeof(READ_RSP); in cifs_negotiate_rsize()
508 if (!(server->capabilities & CAP_LARGE_READ_X)) in cifs_negotiate_rsize()
1023 cifs_can_echo(struct TCP_Server_Info *server) in cifs_can_echo() argument
1025 if (server->tcpStatus == CifsGood) in cifs_can_echo()