Lines Matching refs:credits

495 	int *credits;  in wait_for_free_credits()  local
509 credits = server->ops->get_credits_field(server, optype); in wait_for_free_credits()
511 if (*credits <= 0 && optype == CIFS_ECHO_OP) in wait_for_free_credits()
520 *credits -= 1; in wait_for_free_credits()
522 scredits = *credits; in wait_for_free_credits()
545 if (*credits < num_credits) { in wait_for_free_credits()
546 scredits = *credits; in wait_for_free_credits()
551 has_credits(server, credits, num_credits), t); in wait_for_free_credits()
555 scredits = *credits; in wait_for_free_credits()
585 *credits <= MAX_COMPOUND) { in wait_for_free_credits()
591 has_credits(server, credits, in wait_for_free_credits()
597 scredits = *credits; in wait_for_free_credits()
622 *credits -= num_credits; in wait_for_free_credits()
628 scredits = *credits; in wait_for_free_credits()
655 int *credits; in wait_for_compound_request() local
658 credits = server->ops->get_credits_field(server, flags & CIFS_OP_MASK); in wait_for_compound_request()
661 scredits = *credits; in wait_for_compound_request()
664 if (*credits < num) { in wait_for_compound_request()
699 size_t *num, struct cifs_credits *credits) in cifs_wait_mtu_credits() argument
702 credits->value = 0; in cifs_wait_mtu_credits()
703 credits->instance = server->reconnect_instance; in cifs_wait_mtu_credits()
794 struct cifs_credits credits = { .value = 0, .instance = 0 }; in cifs_call_async() local
804 credits.value = 1; in cifs_call_async()
805 credits.instance = instance; in cifs_call_async()
818 add_credits_and_wake_if(server, &credits, optype); in cifs_call_async()
825 add_credits_and_wake_if(server, &credits, optype); in cifs_call_async()
848 revert_current_mid(server, mid->credits); in cifs_call_async()
858 add_credits_and_wake_if(server, &credits, optype); in cifs_call_async()
995 struct cifs_credits credits = { in cifs_compound_callback() local
1000 add_credits(server, &credits, mid->optype); in cifs_compound_callback()
1083 struct cifs_credits credits[MAX_COMPOUND] = { in compound_send_recv() local
1120 credits[i].value = 1; in compound_send_recv()
1121 credits[i].instance = instance; in compound_send_recv()
1142 add_credits(server, &credits[j], optype); in compound_send_recv()
1156 add_credits(server, &credits[j], optype); in compound_send_recv()
1190 add_credits(server, &credits[i], optype); in compound_send_recv()
1233 credits[i].value = 0; in compound_send_recv()
1367 struct cifs_credits credits = { .value = 1, .instance = 0 }; in SendReceive() local
1397 rc = wait_for_free_request(server, flags, &credits.instance); in SendReceive()
1411 add_credits(server, &credits, 0); in SendReceive()
1443 add_credits(server, &credits, 0); in SendReceive()
1451 add_credits(server, &credits, 0); in SendReceive()
1467 add_credits(server, &credits, 0); in SendReceive()