Lines Matching refs:credits
516 int *credits; in wait_for_free_credits() local
530 credits = server->ops->get_credits_field(server, optype); in wait_for_free_credits()
532 if (*credits <= 0 && optype == CIFS_ECHO_OP) in wait_for_free_credits()
541 *credits -= 1; in wait_for_free_credits()
543 scredits = *credits; in wait_for_free_credits()
556 if (*credits < num_credits) { in wait_for_free_credits()
557 scredits = *credits; in wait_for_free_credits()
562 has_credits(server, credits, num_credits), t); in wait_for_free_credits()
566 scredits = *credits; in wait_for_free_credits()
601 *credits <= MAX_COMPOUND) { in wait_for_free_credits()
607 has_credits(server, credits, in wait_for_free_credits()
613 scredits = *credits; in wait_for_free_credits()
638 *credits -= num_credits; in wait_for_free_credits()
644 scredits = *credits; in wait_for_free_credits()
671 int *credits; in wait_for_compound_request() local
674 credits = server->ops->get_credits_field(server, flags & CIFS_OP_MASK); in wait_for_compound_request()
677 scredits = *credits; in wait_for_compound_request()
680 if (*credits < num) { in wait_for_compound_request()
715 unsigned int *num, struct cifs_credits *credits) in cifs_wait_mtu_credits() argument
718 credits->value = 0; in cifs_wait_mtu_credits()
719 credits->instance = server->reconnect_instance; in cifs_wait_mtu_credits()
811 struct cifs_credits credits = { .value = 0, .instance = 0 }; in cifs_call_async() local
821 credits.value = 1; in cifs_call_async()
822 credits.instance = instance; in cifs_call_async()
835 add_credits_and_wake_if(server, &credits, optype); in cifs_call_async()
842 add_credits_and_wake_if(server, &credits, optype); in cifs_call_async()
867 revert_current_mid(server, mid->credits); in cifs_call_async()
877 add_credits_and_wake_if(server, &credits, optype); in cifs_call_async()
1011 struct cifs_credits credits; in cifs_compound_callback() local
1013 credits.value = server->ops->get_credits(mid); in cifs_compound_callback()
1014 credits.instance = server->reconnect_instance; in cifs_compound_callback()
1016 add_credits(server, &credits, mid->optype); in cifs_compound_callback()
1071 struct cifs_credits credits[MAX_COMPOUND] = { in compound_send_recv() local
1104 credits[i].value = 1; in compound_send_recv()
1105 credits[i].instance = instance; in compound_send_recv()
1126 add_credits(server, &credits[j], optype); in compound_send_recv()
1140 add_credits(server, &credits[j], optype); in compound_send_recv()
1176 add_credits(server, &credits[i], optype); in compound_send_recv()
1213 credits[i].value = 0; in compound_send_recv()
1343 struct cifs_credits credits = { .value = 1, .instance = 0 }; in SendReceive() local
1369 rc = wait_for_free_request(server, flags, &credits.instance); in SendReceive()
1383 add_credits(server, &credits, 0); in SendReceive()
1416 add_credits(server, &credits, 0); in SendReceive()
1424 add_credits(server, &credits, 0); in SendReceive()
1440 add_credits(server, &credits, 0); in SendReceive()