Lines Matching refs:cred_dist

424 	endpoint->cred_dist.cred_to_dist +=  in htc_tx_comp_update()
426 endpoint->cred_dist.txq_depth = get_queue_depth(&endpoint->txq); in htc_tx_comp_update()
555 *req_cred, ep->cred_dist.credits); in htc_check_credits()
557 if (ep->cred_dist.credits < *req_cred) { in htc_check_credits()
562 ep->cred_dist.seek_cred = *req_cred - ep->cred_dist.credits; in htc_check_credits()
564 ath6kl_credit_seek(target->credit_info, &ep->cred_dist); in htc_check_credits()
566 ep->cred_dist.seek_cred = 0; in htc_check_credits()
568 if (ep->cred_dist.credits < *req_cred) { in htc_check_credits()
576 ep->cred_dist.credits -= *req_cred; in htc_check_credits()
580 if (ep->cred_dist.credits < ep->cred_dist.cred_per_msg) { in htc_check_credits()
581 ep->cred_dist.seek_cred = in htc_check_credits()
582 ep->cred_dist.cred_per_msg - ep->cred_dist.credits; in htc_check_credits()
584 ath6kl_credit_seek(target->credit_info, &ep->cred_dist); in htc_check_credits()
587 if (ep->cred_dist.credits < ep->cred_dist.cred_per_msg) { in htc_check_credits()
1008 struct htc_endpoint_credit_dist *cred_dist; in htc_chk_ep_txq() local
1016 list_for_each_entry(cred_dist, &target->cred_dist_list, list) { in htc_chk_ep_txq()
1017 endpoint = cred_dist->htc_ep; in htc_chk_ep_txq()
1023 cred_dist->endpoint, in htc_chk_ep_txq()
1024 endpoint->cred_dist.credits, in htc_chk_ep_txq()
1102 list_add_tail(&target->endpoint[ENDPOINT_0].cred_dist.list, in ath6kl_htc_set_credit_dist()
1109 list_add_tail(&endpoint->cred_dist.list, in ath6kl_htc_set_credit_dist()
1220 if (!(endpoint->cred_dist.dist_flags & HTC_EP_ACTIVE)) { in ath6kl_htc_mbox_activity_changed()
1221 endpoint->cred_dist.dist_flags |= HTC_EP_ACTIVE; in ath6kl_htc_mbox_activity_changed()
1225 if (endpoint->cred_dist.dist_flags & HTC_EP_ACTIVE) { in ath6kl_htc_mbox_activity_changed()
1226 endpoint->cred_dist.dist_flags &= ~HTC_EP_ACTIVE; in ath6kl_htc_mbox_activity_changed()
1232 endpoint->cred_dist.txq_depth = in ath6kl_htc_mbox_activity_changed()
1637 endpoint->cred_dist.credits += rpt->credits; in htc_proc_cred_rpt()
1639 endpoint->cred_dist.cred_to_dist += rpt->credits; in htc_proc_cred_rpt()
1648 endpoint->cred_dist.txq_depth = in htc_proc_cred_rpt()
2526 endpoint->cred_dist.svc_id = conn_req->svc_id; in ath6kl_htc_mbox_conn_service()
2527 endpoint->cred_dist.htc_ep = endpoint; in ath6kl_htc_mbox_conn_service()
2528 endpoint->cred_dist.endpoint = assigned_ep; in ath6kl_htc_mbox_conn_service()
2529 endpoint->cred_dist.cred_sz = target->tgt_cred_sz; in ath6kl_htc_mbox_conn_service()
2550 endpoint->cred_dist.cred_per_msg = in ath6kl_htc_mbox_conn_service()
2553 endpoint->cred_dist.cred_per_msg = in ath6kl_htc_mbox_conn_service()
2556 if (!endpoint->cred_dist.cred_per_msg) in ath6kl_htc_mbox_conn_service()
2557 endpoint->cred_dist.cred_per_msg = 1; in ath6kl_htc_mbox_conn_service()
2581 memset(&endpoint->cred_dist, 0, sizeof(endpoint->cred_dist)); in reset_ep_state()