Lines Matching refs:ep

547 			     struct htc_endpoint *ep, u8 *flags,  in htc_check_credits()  argument
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()
577 ep->ep_st.cred_cosumd += *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()
590 ep->ep_st.cred_low_indicate += 1; in htc_check_credits()
649 struct htc_endpoint *ep) in htc_get_credit_padding() argument
659 if (!(ep->conn_flags & HTC_FLGS_TX_BNDL_PAD_EN)) in htc_get_credit_padding()
1100 int i, ep; in ath6kl_htc_set_credit_dist() local
1108 for (ep = ENDPOINT_1; ep < ENDPOINT_MAX; ep++) { in ath6kl_htc_set_credit_dist()
1109 endpoint = &target->endpoint[ep]; in ath6kl_htc_set_credit_dist()
1116 if (ep >= ENDPOINT_MAX) { in ath6kl_htc_set_credit_dist()
1282 struct htc_endpoint *ep) in htc_reclaim_rxbuf() argument
1287 ep->ep_cb.rx(ep->target, packet); in htc_reclaim_rxbuf()
1369 struct htc_endpoint *ep, in ath6kl_htc_rx_setup() argument
1383 if (!htc_valid_rx_frame_len(target, ep->eid, full_len)) { in ath6kl_htc_rx_setup()
1390 ep_cb = ep->ep_cb; in ath6kl_htc_rx_setup()
1401 ep->ep_st.rx_alloc_thresh_hit += 1; in ath6kl_htc_rx_setup()
1402 ep->ep_st.rxalloc_thresh_byte += in ath6kl_htc_rx_setup()
1408 packet = ep_cb.rx_allocthresh(ep->target, ep->eid, in ath6kl_htc_rx_setup()
1413 if (list_empty(&ep->rx_bufq)) { in ath6kl_htc_rx_setup()
1416 ep_cb.rx_refill(ep->target, ep->eid); in ath6kl_htc_rx_setup()
1421 if (list_empty(&ep->rx_bufq)) { in ath6kl_htc_rx_setup()
1424 packet = list_first_entry(&ep->rx_bufq, in ath6kl_htc_rx_setup()
1432 target->ep_waiting = ep->eid; in ath6kl_htc_rx_setup()
2011 struct htc_endpoint *ep; in ath6kl_htc_rx_process_packets() local
2015 ep = &target->endpoint[packet->endpoint]; in ath6kl_htc_rx_process_packets()
2035 ep, packet); in ath6kl_htc_rx_process_packets()
2044 ath6kl_htc_rx_update_stats(ep, *n_lk_ahd); in ath6kl_htc_rx_process_packets()
2047 ep->ep_st.rx_bundl += 1; in ath6kl_htc_rx_process_packets()
2049 ath6kl_htc_rx_complete(ep, packet); in ath6kl_htc_rx_process_packets()