Lines Matching refs:credit_charge
305 unsigned short credit_charge = le16_to_cpu(hdr->CreditCharge);
336 credit_charge = max_t(unsigned short, credit_charge, 1);
340 if (credit_charge < calc_credit_num) {
342 credit_charge, calc_credit_num);
344 } else if (credit_charge > conn->vals->max_credits) {
345 ksmbd_debug(SMB, "Too large credit charge: %d\n", credit_charge);
350 if (credit_charge > conn->total_credits) {
352 credit_charge, conn->total_credits);
356 if ((u64)conn->outstanding_credits + credit_charge > conn->total_credits) {
358 credit_charge, conn->outstanding_credits);
361 conn->outstanding_credits += credit_charge;