Lines Matching refs:adv_credits
349 u32 wanted, u32 *adv_credits, int need_posted, int max_posted) in rds_iw_send_grab_credits() argument
354 *adv_credits = 0; in rds_iw_send_grab_credits()
397 *adv_credits = advertise; in rds_iw_send_grab_credits()
511 u32 adv_credits = 0; in rds_iw_xmit() local
543 adv_credits += posted; in rds_iw_xmit()
617 rds_iw_send_grab_credits(ic, 0, &posted, 1, RDS_MAX_ADV_CREDIT - adv_credits); in rds_iw_xmit()
618 adv_credits += posted; in rds_iw_xmit()
619 BUG_ON(adv_credits > 255); in rds_iw_xmit()
709 if (adv_credits) { in rds_iw_xmit()
713 hdr->h_credit = adv_credits; in rds_iw_xmit()
715 adv_credits = 0; in rds_iw_xmit()
764 BUG_ON(adv_credits); in rds_iw_xmit()