Lines Matching refs:server
32 send_nt_cancel(struct TCP_Server_Info *server, struct smb_rqst *rqst, in send_nt_cancel() argument
44 cifs_server_lock(server); in send_nt_cancel()
45 rc = cifs_sign_smb(in_buf, server, &mid->sequence_number); in send_nt_cancel()
47 cifs_server_unlock(server); in send_nt_cancel()
56 --server->sequence_number; in send_nt_cancel()
57 rc = smb_send(server, in_buf, be32_to_cpu(in_buf->smb_buf_length)); in send_nt_cancel()
59 server->sequence_number--; in send_nt_cancel()
61 cifs_server_unlock(server); in send_nt_cancel()
93 cifs_find_mid(struct TCP_Server_Info *server, char *buffer) in cifs_find_mid() argument
98 spin_lock(&server->mid_queue_lock); in cifs_find_mid()
99 list_for_each_entry(mid, &server->pending_mid_q, qhead) { in cifs_find_mid()
104 spin_unlock(&server->mid_queue_lock); in cifs_find_mid()
108 spin_unlock(&server->mid_queue_lock); in cifs_find_mid()
113 cifs_add_credits(struct TCP_Server_Info *server, in cifs_add_credits() argument
116 spin_lock(&server->req_lock); in cifs_add_credits()
117 server->credits += credits->value; in cifs_add_credits()
118 server->in_flight--; in cifs_add_credits()
119 spin_unlock(&server->req_lock); in cifs_add_credits()
120 wake_up(&server->request_q); in cifs_add_credits()
124 cifs_set_credits(struct TCP_Server_Info *server, const int val) in cifs_set_credits() argument
126 spin_lock(&server->req_lock); in cifs_set_credits()
127 server->credits = val; in cifs_set_credits()
128 server->oplocks = val > 1 ? enable_oplocks : false; in cifs_set_credits()
129 spin_unlock(&server->req_lock); in cifs_set_credits()
133 cifs_get_credits_field(struct TCP_Server_Info *server, const int optype) in cifs_get_credits_field() argument
135 return &server->credits; in cifs_get_credits_field()
166 cifs_get_next_mid(struct TCP_Server_Info *server) in cifs_get_next_mid() argument
172 spin_lock(&server->mid_counter_lock); in cifs_get_next_mid()
174 cur_mid = (__u16)((server->current_mid) & 0xffff); in cifs_get_next_mid()
200 spin_lock(&server->mid_queue_lock); in cifs_get_next_mid()
201 list_for_each_entry(mid_entry, &server->pending_mid_q, qhead) { in cifs_get_next_mid()
210 spin_unlock(&server->mid_queue_lock); in cifs_get_next_mid()
227 server->current_mid = mid; in cifs_get_next_mid()
232 spin_unlock(&server->mid_counter_lock); in cifs_get_next_mid()
235 cifs_signal_cifsd_for_reconnect(server, false); in cifs_get_next_mid()
382 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()
429 struct TCP_Server_Info *server) in cifs_negotiate() argument
432 rc = CIFSSMBNegotiate(xid, ses, server); in cifs_negotiate()
440 struct TCP_Server_Info *server = tcon->ses->server; in smb1_negotiate_wsize() local
460 if (!(server->capabilities & CAP_LARGE_WRITE_X) || in smb1_negotiate_wsize()
461 (!(server->capabilities & CAP_UNIX) && server->sign)) in smb1_negotiate_wsize()
463 server->maxBuf - sizeof(WRITE_REQ) + 4); in smb1_negotiate_wsize()
475 struct TCP_Server_Info *server = tcon->ses->server; in smb1_negotiate_rsize() local
492 else if (server->capabilities & CAP_LARGE_READ_X) in smb1_negotiate_rsize()
495 defsize = server->maxBuf - sizeof(READ_RSP); in smb1_negotiate_rsize()
503 if (!(server->capabilities & CAP_LARGE_READ_X)) in smb1_negotiate_rsize()
584 if (!(tcon->ses->capabilities & tcon->ses->server->vals->cap_nt_find)) in cifs_query_path_info()
592 if (!(tcon->ses->capabilities & tcon->ses->server->vals->cap_nt_find)) { in cifs_query_path_info()
594 int offset = tcon->ses->server->timeAdj; in cifs_query_path_info()
1220 cifs_can_echo(struct TCP_Server_Info *server) in cifs_can_echo() argument
1222 if (server->tcpStatus == CifsGood) in cifs_can_echo()
1291 cifs_is_network_name_deleted(char *buf, struct TCP_Server_Info *server) in cifs_is_network_name_deleted() argument
1308 pserver = SERVER_IS_CHAN(server) ? server->primary_server : server; in cifs_is_network_name_deleted()