Lines Matching refs:credits
523 int *credits; in wait_for_free_credits() local
536 credits = server->ops->get_credits_field(server, optype); in wait_for_free_credits()
538 if (*credits <= 0 && optype == CIFS_ECHO_OP) in wait_for_free_credits()
547 *credits -= 1; in wait_for_free_credits()
554 if (*credits < num_credits) { in wait_for_free_credits()
558 has_credits(server, credits, num_credits), t); in wait_for_free_credits()
591 *credits <= MAX_COMPOUND) { in wait_for_free_credits()
596 has_credits(server, credits, in wait_for_free_credits()
622 *credits -= num_credits; in wait_for_free_credits()
647 int *credits; in wait_for_compound_request() local
649 credits = server->ops->get_credits_field(server, flags & CIFS_OP_MASK); in wait_for_compound_request()
652 if (*credits < num) { in wait_for_compound_request()
682 unsigned int *num, struct cifs_credits *credits) in cifs_wait_mtu_credits() argument
685 credits->value = 0; in cifs_wait_mtu_credits()
686 credits->instance = server->reconnect_instance; in cifs_wait_mtu_credits()
778 struct cifs_credits credits = { .value = 0, .instance = 0 }; in cifs_call_async() local
788 credits.value = 1; in cifs_call_async()
789 credits.instance = instance; in cifs_call_async()
802 add_credits_and_wake_if(server, &credits, optype); in cifs_call_async()
809 add_credits_and_wake_if(server, &credits, optype); in cifs_call_async()
834 revert_current_mid(server, mid->credits); in cifs_call_async()
844 add_credits_and_wake_if(server, &credits, optype); in cifs_call_async()
978 struct cifs_credits credits; in cifs_compound_callback() local
980 credits.value = server->ops->get_credits(mid); in cifs_compound_callback()
981 credits.instance = server->reconnect_instance; in cifs_compound_callback()
983 add_credits(server, &credits, mid->optype); in cifs_compound_callback()
1035 struct cifs_credits credits[MAX_COMPOUND] = { in compound_send_recv() local
1068 credits[i].value = 1; in compound_send_recv()
1069 credits[i].instance = instance; in compound_send_recv()
1090 add_credits(server, &credits[j], optype); in compound_send_recv()
1104 add_credits(server, &credits[j], optype); in compound_send_recv()
1140 add_credits(server, &credits[i], optype); in compound_send_recv()
1177 credits[i].value = 0; in compound_send_recv()
1307 struct cifs_credits credits = { .value = 1, .instance = 0 }; in SendReceive() local
1333 rc = wait_for_free_request(server, flags, &credits.instance); in SendReceive()
1347 add_credits(server, &credits, 0); in SendReceive()
1380 add_credits(server, &credits, 0); in SendReceive()
1388 add_credits(server, &credits, 0); in SendReceive()
1404 add_credits(server, &credits, 0); in SendReceive()