Lines Matching refs:credits
33 server->credits += server->echo_credits + server->oplock_credits; in change_conf()
35 switch (server->credits) { in change_conf()
57 server->credits -= server->echo_credits + server->oplock_credits; in change_conf()
58 return server->credits + server->echo_credits + server->oplock_credits; in change_conf()
63 const struct cifs_credits *credits, const int optype) in smb2_add_credits() argument
67 unsigned int add = credits->value; in smb2_add_credits()
68 unsigned int instance = credits->instance; in smb2_add_credits()
100 if (server->credits > 1) { in smb2_add_credits()
101 server->credits--; in smb2_add_credits()
158 server->credits = val; in smb2_set_credits()
161 scredits = server->credits; in smb2_set_credits()
183 return &server->credits; in smb2_get_credits_field()
195 unsigned int *num, struct cifs_credits *credits) in smb2_wait_mtu_credits() argument
202 if (server->credits <= 0) { in smb2_wait_mtu_credits()
206 has_credits(server, &server->credits, 1)); in smb2_wait_mtu_credits()
217 scredits = server->credits; in smb2_wait_mtu_credits()
221 credits->value = 0; in smb2_wait_mtu_credits()
222 credits->instance = 0; in smb2_wait_mtu_credits()
231 credits->value = in smb2_wait_mtu_credits()
233 credits->instance = server->reconnect_instance; in smb2_wait_mtu_credits()
234 server->credits -= credits->value; in smb2_wait_mtu_credits()
241 scredits = server->credits; in smb2_wait_mtu_credits()
246 server->conn_id, server->hostname, scredits, -(credits->value), in_flight); in smb2_wait_mtu_credits()
248 __func__, credits->value, scredits); in smb2_wait_mtu_credits()
255 struct cifs_credits *credits, in smb2_adjust_credits() argument
261 if (!credits->value || credits->value == new_val) in smb2_adjust_credits()
264 if (credits->value < new_val) { in smb2_adjust_credits()
266 server->conn_id, server->hostname, 0, credits->value - new_val, 0); in smb2_adjust_credits()
268 credits->value, new_val); in smb2_adjust_credits()
275 if (server->reconnect_instance != credits->instance) { in smb2_adjust_credits()
276 scredits = server->credits; in smb2_adjust_credits()
282 credits->value - new_val, in_flight); in smb2_adjust_credits()
284 credits->value - new_val); in smb2_adjust_credits()
288 server->credits += credits->value - new_val; in smb2_adjust_credits()
289 scredits = server->credits; in smb2_adjust_credits()
296 credits->value - new_val, in_flight); in smb2_adjust_credits()
298 __func__, credits->value - new_val, scredits); in smb2_adjust_credits()
300 credits->value = new_val; in smb2_adjust_credits()
2497 server->credits += le16_to_cpu(shdr->CreditRequest); in smb2_is_status_pending()
2498 scredits = server->credits; in smb2_is_status_pending()