Lines Matching refs:credits
35 server->credits += server->echo_credits + server->oplock_credits; in change_conf()
37 switch (server->credits) { in change_conf()
61 server->credits -= server->echo_credits + server->oplock_credits; in change_conf()
82 if (server->credits > 1) { in smb2_add_credits()
83 server->credits--; in smb2_add_credits()
97 server->credits = val; in smb2_set_credits()
110 return &server->credits; in smb2_get_credits_field()
122 unsigned int *num, unsigned int *credits) in smb2_wait_mtu_credits() argument
129 if (server->credits <= 0) { in smb2_wait_mtu_credits()
133 has_credits(server, &server->credits)); in smb2_wait_mtu_credits()
144 scredits = server->credits; in smb2_wait_mtu_credits()
148 *credits = 0; in smb2_wait_mtu_credits()
157 *credits = DIV_ROUND_UP(*num, SMB2_MAX_BUFFER_SIZE); in smb2_wait_mtu_credits()
158 server->credits -= *credits; in smb2_wait_mtu_credits()
958 server->credits += le16_to_cpu(hdr->CreditRequest); in smb2_is_status_pending()