Lines Matching refs:server
27 send_nt_cancel(struct TCP_Server_Info *server, struct smb_rqst *rqst, in send_nt_cancel() argument
39 mutex_lock(&server->srv_mutex); in send_nt_cancel()
40 rc = cifs_sign_smb(in_buf, server, &mid->sequence_number); in send_nt_cancel()
42 mutex_unlock(&server->srv_mutex); in send_nt_cancel()
51 --server->sequence_number; in send_nt_cancel()
52 rc = smb_send(server, in_buf, be32_to_cpu(in_buf->smb_buf_length)); in send_nt_cancel()
54 server->sequence_number--; in send_nt_cancel()
56 mutex_unlock(&server->srv_mutex); in send_nt_cancel()
88 cifs_find_mid(struct TCP_Server_Info *server, char *buffer) in cifs_find_mid() argument
94 list_for_each_entry(mid, &server->pending_mid_q, qhead) { in cifs_find_mid()
108 cifs_add_credits(struct TCP_Server_Info *server, in cifs_add_credits() argument
111 spin_lock(&server->req_lock); in cifs_add_credits()
112 server->credits += credits->value; in cifs_add_credits()
113 server->in_flight--; in cifs_add_credits()
114 spin_unlock(&server->req_lock); in cifs_add_credits()
115 wake_up(&server->request_q); in cifs_add_credits()
119 cifs_set_credits(struct TCP_Server_Info *server, const int val) in cifs_set_credits() argument
121 spin_lock(&server->req_lock); in cifs_set_credits()
122 server->credits = val; in cifs_set_credits()
123 server->oplocks = val > 1 ? enable_oplocks : false; in cifs_set_credits()
124 spin_unlock(&server->req_lock); in cifs_set_credits()
128 cifs_get_credits_field(struct TCP_Server_Info *server, const int optype) in cifs_get_credits_field() argument
130 return &server->credits; in cifs_get_credits_field()
161 cifs_get_next_mid(struct TCP_Server_Info *server) in cifs_get_next_mid() argument
170 cur_mid = (__u16)((server->CurrentMid) & 0xffff); in cifs_get_next_mid()
196 list_for_each_entry(mid_entry, &server->pending_mid_q, qhead) { in cifs_get_next_mid()
217 server->tcpStatus = CifsNeedReconnect; in cifs_get_next_mid()
221 server->CurrentMid = mid; in cifs_get_next_mid()
371 cifs_downgrade_oplock(struct TCP_Server_Info *server, in cifs_downgrade_oplock() argument
379 cifs_check_trans2(struct mid_q_entry *mid, struct TCP_Server_Info *server, in cifs_check_trans2() argument
397 if (!server->large_buf) { in cifs_check_trans2()
404 server->bigbuf = NULL; in cifs_check_trans2()
410 cifs_need_neg(struct TCP_Server_Info *server) in cifs_need_neg() argument
412 return server->maxBuf == 0; in cifs_need_neg()
422 set_credits(ses->server, 1); in cifs_negotiate()
434 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_wsize() local
454 if (!(server->capabilities & CAP_LARGE_WRITE_X) || in cifs_negotiate_wsize()
455 (!(server->capabilities & CAP_UNIX) && server->sign)) in cifs_negotiate_wsize()
457 server->maxBuf - sizeof(WRITE_REQ) + 4); in cifs_negotiate_wsize()
469 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_rsize() local
486 else if (server->capabilities & CAP_LARGE_READ_X) in cifs_negotiate_rsize()
489 defsize = server->maxBuf - sizeof(READ_RSP); in cifs_negotiate_rsize()
497 if (!(server->capabilities & CAP_LARGE_READ_X)) in cifs_negotiate_rsize()
1018 cifs_can_echo(struct TCP_Server_Info *server) in cifs_can_echo() argument
1020 if (server->tcpStatus == CifsGood) in cifs_can_echo()
1104 if (tcon->ses->server->oplocks) in cifs_make_node()
1108 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf); in cifs_make_node()
1128 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in cifs_make_node()
1134 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in cifs_make_node()
1137 tcon->ses->server->ops->close(xid, tcon, &fid); in cifs_make_node()