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()
1098 int i, ep; in ath6kl_htc_set_credit_dist() local
1106 for (ep = ENDPOINT_1; ep < ENDPOINT_MAX; ep++) { in ath6kl_htc_set_credit_dist()
1107 endpoint = &target->endpoint[ep]; in ath6kl_htc_set_credit_dist()
1114 if (ep >= ENDPOINT_MAX) { in ath6kl_htc_set_credit_dist()
1280 struct htc_endpoint *ep) in htc_reclaim_rxbuf() argument
1285 ep->ep_cb.rx(ep->target, packet); in htc_reclaim_rxbuf()
1367 struct htc_endpoint *ep, in ath6kl_htc_rx_setup() argument
1381 if (!htc_valid_rx_frame_len(target, ep->eid, full_len)) { in ath6kl_htc_rx_setup()
1388 ep_cb = ep->ep_cb; in ath6kl_htc_rx_setup()
1399 ep->ep_st.rx_alloc_thresh_hit += 1; in ath6kl_htc_rx_setup()
1400 ep->ep_st.rxalloc_thresh_byte += in ath6kl_htc_rx_setup()
1406 packet = ep_cb.rx_allocthresh(ep->target, ep->eid, in ath6kl_htc_rx_setup()
1411 if (list_empty(&ep->rx_bufq)) { in ath6kl_htc_rx_setup()
1414 ep_cb.rx_refill(ep->target, ep->eid); in ath6kl_htc_rx_setup()
1419 if (list_empty(&ep->rx_bufq)) { in ath6kl_htc_rx_setup()
1422 packet = list_first_entry(&ep->rx_bufq, in ath6kl_htc_rx_setup()
1430 target->ep_waiting = ep->eid; in ath6kl_htc_rx_setup()
2009 struct htc_endpoint *ep; in ath6kl_htc_rx_process_packets() local
2013 ep = &target->endpoint[packet->endpoint]; in ath6kl_htc_rx_process_packets()
2033 ep, packet); in ath6kl_htc_rx_process_packets()
2042 ath6kl_htc_rx_update_stats(ep, *n_lk_ahd); in ath6kl_htc_rx_process_packets()
2045 ep->ep_st.rx_bundl += 1; in ath6kl_htc_rx_process_packets()
2047 ath6kl_htc_rx_complete(ep, packet); in ath6kl_htc_rx_process_packets()