Lines Matching refs:credits

491 	int *credits;  in wait_for_free_credits()  local
505 credits = server->ops->get_credits_field(server, optype); in wait_for_free_credits()
507 if (*credits <= 0 && optype == CIFS_ECHO_OP) in wait_for_free_credits()
516 *credits -= 1; in wait_for_free_credits()
518 scredits = *credits; in wait_for_free_credits()
541 if (*credits < num_credits) { in wait_for_free_credits()
542 scredits = *credits; in wait_for_free_credits()
547 has_credits(server, credits, num_credits), t); in wait_for_free_credits()
551 scredits = *credits; in wait_for_free_credits()
581 *credits <= MAX_COMPOUND) { in wait_for_free_credits()
587 has_credits(server, credits, in wait_for_free_credits()
593 scredits = *credits; in wait_for_free_credits()
618 *credits -= num_credits; in wait_for_free_credits()
624 scredits = *credits; in wait_for_free_credits()
651 int *credits; in wait_for_compound_request() local
654 credits = server->ops->get_credits_field(server, flags & CIFS_OP_MASK); in wait_for_compound_request()
657 scredits = *credits; in wait_for_compound_request()
660 if (*credits < num) { in wait_for_compound_request()
695 unsigned int *num, struct cifs_credits *credits) in cifs_wait_mtu_credits() argument
698 credits->value = 0; in cifs_wait_mtu_credits()
699 credits->instance = server->reconnect_instance; in cifs_wait_mtu_credits()
790 struct cifs_credits credits = { .value = 0, .instance = 0 }; in cifs_call_async() local
800 credits.value = 1; in cifs_call_async()
801 credits.instance = instance; in cifs_call_async()
814 add_credits_and_wake_if(server, &credits, optype); in cifs_call_async()
821 add_credits_and_wake_if(server, &credits, optype); in cifs_call_async()
844 revert_current_mid(server, mid->credits); in cifs_call_async()
854 add_credits_and_wake_if(server, &credits, optype); in cifs_call_async()
991 struct cifs_credits credits; in cifs_compound_callback() local
993 credits.value = server->ops->get_credits(mid); in cifs_compound_callback()
994 credits.instance = server->reconnect_instance; in cifs_compound_callback()
996 add_credits(server, &credits, mid->optype); in cifs_compound_callback()
1079 struct cifs_credits credits[MAX_COMPOUND] = { in compound_send_recv() local
1116 credits[i].value = 1; in compound_send_recv()
1117 credits[i].instance = instance; in compound_send_recv()
1138 add_credits(server, &credits[j], optype); in compound_send_recv()
1152 add_credits(server, &credits[j], optype); in compound_send_recv()
1186 add_credits(server, &credits[i], optype); in compound_send_recv()
1229 credits[i].value = 0; in compound_send_recv()
1363 struct cifs_credits credits = { .value = 1, .instance = 0 }; in SendReceive() local
1393 rc = wait_for_free_request(server, flags, &credits.instance); in SendReceive()
1407 add_credits(server, &credits, 0); in SendReceive()
1439 add_credits(server, &credits, 0); in SendReceive()
1447 add_credits(server, &credits, 0); in SendReceive()
1463 add_credits(server, &credits, 0); in SendReceive()