Lines Matching refs:credits

38 	server->credits += server->echo_credits + server->oplock_credits;  in change_conf()
39 if (server->credits > server->max_credits) in change_conf()
40 server->credits = server->max_credits; in change_conf()
42 switch (server->credits) { in change_conf()
64 server->credits -= server->echo_credits + server->oplock_credits; in change_conf()
65 return server->credits + server->echo_credits + server->oplock_credits; in change_conf()
70 struct cifs_credits *credits, const int optype) in smb2_add_credits() argument
74 unsigned int add = credits->value; in smb2_add_credits()
75 unsigned int instance = credits->instance; in smb2_add_credits()
98 if (credits->in_flight_check > 1) { in smb2_add_credits()
100 credits->rreq_debug_id, credits->rreq_debug_index); in smb2_add_credits()
102 credits->in_flight_check = 2; in smb2_add_credits()
106 credits->rreq_debug_id, credits->rreq_debug_index); in smb2_add_credits()
107 trace_smb3_rw_credits(credits->rreq_debug_id, in smb2_add_credits()
108 credits->rreq_debug_index, in smb2_add_credits()
109 credits->value, in smb2_add_credits()
110 server->credits, server->in_flight, 0, in smb2_add_credits()
124 if (server->credits > 1) { in smb2_add_credits()
125 server->credits--; in smb2_add_credits()
190 server->credits = val; in smb2_set_credits()
202 scredits = server->credits; in smb2_set_credits()
224 return &server->credits; in smb2_get_credits_field()
236 size_t *num, struct cifs_credits *credits) in smb2_wait_mtu_credits() argument
253 if (server->credits <= 0) { in smb2_wait_mtu_credits()
257 has_credits(server, &server->credits, 1)); in smb2_wait_mtu_credits()
263 scredits = server->credits; in smb2_wait_mtu_credits()
267 credits->value = 0; in smb2_wait_mtu_credits()
268 credits->instance = 0; in smb2_wait_mtu_credits()
277 credits->value = in smb2_wait_mtu_credits()
279 credits->instance = server->reconnect_instance; in smb2_wait_mtu_credits()
280 server->credits -= credits->value; in smb2_wait_mtu_credits()
287 scredits = server->credits; in smb2_wait_mtu_credits()
292 server->conn_id, server->hostname, scredits, -(credits->value), in_flight); in smb2_wait_mtu_credits()
294 __func__, credits->value, scredits); in smb2_wait_mtu_credits()
304 struct cifs_credits *credits = &subreq->credits; in smb2_adjust_credits() local
309 if (!credits->value || credits->value == new_val) in smb2_adjust_credits()
312 if (credits->value < new_val) { in smb2_adjust_credits()
315 credits->value, in smb2_adjust_credits()
316 server->credits, server->in_flight, in smb2_adjust_credits()
317 new_val - credits->value, in smb2_adjust_credits()
320 server->conn_id, server->hostname, 0, credits->value - new_val, 0); in smb2_adjust_credits()
323 credits->value, new_val); in smb2_adjust_credits()
330 if (server->reconnect_instance != credits->instance) { in smb2_adjust_credits()
331 scredits = server->credits; in smb2_adjust_credits()
337 credits->value, in smb2_adjust_credits()
338 server->credits, server->in_flight, in smb2_adjust_credits()
339 new_val - credits->value, in smb2_adjust_credits()
343 credits->value - new_val, in_flight); in smb2_adjust_credits()
346 credits->value - new_val); in smb2_adjust_credits()
352 credits->value, in smb2_adjust_credits()
353 server->credits, server->in_flight, in smb2_adjust_credits()
354 new_val - credits->value, trace); in smb2_adjust_credits()
355 server->credits += credits->value - new_val; in smb2_adjust_credits()
356 scredits = server->credits; in smb2_adjust_credits()
363 credits->value - new_val, in_flight); in smb2_adjust_credits()
365 __func__, credits->value - new_val, scredits); in smb2_adjust_credits()
367 credits->value = new_val; in smb2_adjust_credits()
2479 server->credits += le16_to_cpu(shdr->CreditRequest); in smb2_is_status_pending()
2480 scredits = server->credits; in smb2_is_status_pending()