Lines Matching refs:adv_credits
397 u32 wanted, u32 *adv_credits, int need_posted, int max_posted) in rds_ib_send_grab_credits() argument
402 *adv_credits = 0; in rds_ib_send_grab_credits()
445 *adv_credits = advertise; in rds_ib_send_grab_credits()
540 u32 adv_credits = 0; in rds_ib_xmit() local
575 adv_credits += posted; in rds_ib_xmit()
642 rds_ib_send_grab_credits(ic, 0, &posted, 1, RDS_MAX_ADV_CREDIT - adv_credits); in rds_ib_xmit()
643 adv_credits += posted; in rds_ib_xmit()
644 BUG_ON(adv_credits > 255); in rds_ib_xmit()
711 if (ic->i_flowctl && adv_credits) { in rds_ib_xmit()
715 hdr->h_credit = adv_credits; in rds_ib_xmit()
717 adv_credits = 0; in rds_ib_xmit()
777 BUG_ON(adv_credits); in rds_ib_xmit()