Lines Matching refs:credits
130 __func__, credits_required, ep->cred_dist.credits); in get_htc_packet_credit_based()
140 if (ep->cred_dist.credits < credits_required) in get_htc_packet_credit_based()
143 ep->cred_dist.credits -= credits_required; in get_htc_packet_credit_based()
147 if (ep->cred_dist.credits < in get_htc_packet_credit_based()
272 ep->cred_dist.credits += packet->info.tx.cred_used; in htc_issue_packets()
550 int status, credits, credit_per_maxmsg, i; in htc_setup_target_buffer_assignments() local
560 credits = target->tgt_creds; in htc_setup_target_buffer_assignments()
569 __func__, credits); in htc_setup_target_buffer_assignments()
574 entry->credit_alloc = (credits - 6); in htc_setup_target_buffer_assignments()
578 credits -= (int) entry->credit_alloc; in htc_setup_target_buffer_assignments()
579 if (credits <= 0) in htc_setup_target_buffer_assignments()
585 credits -= (int) entry->credit_alloc; in htc_setup_target_buffer_assignments()
586 if (credits <= 0) in htc_setup_target_buffer_assignments()
593 entry->credit_alloc = (u8) credits; in htc_setup_target_buffer_assignments()
598 entry->credit_alloc = credits / 4; in htc_setup_target_buffer_assignments()
602 credits -= (int) entry->credit_alloc; in htc_setup_target_buffer_assignments()
603 if (credits <= 0) in htc_setup_target_buffer_assignments()
608 entry->credit_alloc = credits / 4; in htc_setup_target_buffer_assignments()
612 credits -= (int) entry->credit_alloc; in htc_setup_target_buffer_assignments()
613 if (credits <= 0) in htc_setup_target_buffer_assignments()
619 credits -= (int) entry->credit_alloc; in htc_setup_target_buffer_assignments()
620 if (credits <= 0) in htc_setup_target_buffer_assignments()
626 credits -= (int) entry->credit_alloc; in htc_setup_target_buffer_assignments()
627 if (credits <= 0) in htc_setup_target_buffer_assignments()
633 entry->credit_alloc = (u8) credits; in htc_setup_target_buffer_assignments()
673 ep->cred_dist.credits += rpt->credits; in htc_process_credit_report()
675 if (ep->cred_dist.credits && get_queue_depth(&ep->txq)) { in htc_process_credit_report()
681 total_credits += rpt->credits; in htc_process_credit_report()
1368 ep->cred_dist.credits = tx_alloc; in ath6kl_htc_pipe_conn_service()