• Home
  • Raw
  • Download

Lines Matching refs:credits

526 	int *credits;  in wait_for_free_credits()  local
539 credits = server->ops->get_credits_field(server, optype); in wait_for_free_credits()
541 if (*credits <= 0 && optype == CIFS_ECHO_OP) in wait_for_free_credits()
550 *credits -= 1; in wait_for_free_credits()
557 if (*credits < num_credits) { in wait_for_free_credits()
561 has_credits(server, credits, num_credits), t); in wait_for_free_credits()
594 *credits <= MAX_COMPOUND) { in wait_for_free_credits()
599 has_credits(server, credits, in wait_for_free_credits()
624 *credits -= num_credits; in wait_for_free_credits()
649 int *credits; in wait_for_compound_request() local
651 credits = server->ops->get_credits_field(server, flags & CIFS_OP_MASK); in wait_for_compound_request()
654 if (*credits < num) { in wait_for_compound_request()
659 if (server->in_flight < num - *credits) { in wait_for_compound_request()
672 unsigned int *num, struct cifs_credits *credits) in cifs_wait_mtu_credits() argument
675 credits->value = 0; in cifs_wait_mtu_credits()
676 credits->instance = server->reconnect_instance; in cifs_wait_mtu_credits()
768 struct cifs_credits credits = { .value = 0, .instance = 0 }; in cifs_call_async() local
778 credits.value = 1; in cifs_call_async()
779 credits.instance = instance; in cifs_call_async()
792 add_credits_and_wake_if(server, &credits, optype); in cifs_call_async()
799 add_credits_and_wake_if(server, &credits, optype); in cifs_call_async()
824 revert_current_mid(server, mid->credits); in cifs_call_async()
834 add_credits_and_wake_if(server, &credits, optype); in cifs_call_async()
967 struct cifs_credits credits; in cifs_compound_callback() local
969 credits.value = server->ops->get_credits(mid); in cifs_compound_callback()
970 credits.instance = server->reconnect_instance; in cifs_compound_callback()
972 add_credits(server, &credits, mid->optype); in cifs_compound_callback()
997 struct cifs_credits credits[MAX_COMPOUND] = { in compound_send_recv() local
1032 credits[i].value = 1; in compound_send_recv()
1033 credits[i].instance = instance; in compound_send_recv()
1054 add_credits(server, &credits[j], optype); in compound_send_recv()
1068 add_credits(server, &credits[j], optype); in compound_send_recv()
1104 add_credits(server, &credits[i], optype); in compound_send_recv()
1138 credits[i].value = 0; in compound_send_recv()
1264 struct cifs_credits credits = { .value = 1, .instance = 0 }; in SendReceive() local
1290 rc = wait_for_free_request(server, flags, &credits.instance); in SendReceive()
1304 add_credits(server, &credits, 0); in SendReceive()
1337 add_credits(server, &credits, 0); in SendReceive()
1345 add_credits(server, &credits, 0); in SendReceive()
1361 add_credits(server, &credits, 0); in SendReceive()