Lines Matching refs:scat_req
468 struct hif_scatter_req *scat_req) in htc_async_tx_scat_complete() argument
479 scat_req->len, scat_req->scat_entries); in htc_async_tx_scat_complete()
481 if (scat_req->status) in htc_async_tx_scat_complete()
482 ath6kl_err("send scatter req failed: %d\n", scat_req->status); in htc_async_tx_scat_complete()
484 packet = scat_req->scat_list[0].packet; in htc_async_tx_scat_complete()
488 for (i = 0; i < scat_req->scat_entries; i++) { in htc_async_tx_scat_complete()
489 packet = scat_req->scat_list[i].packet; in htc_async_tx_scat_complete()
495 packet->status = scat_req->status; in htc_async_tx_scat_complete()
501 hif_scatter_req_add(target->dev->ar, scat_req); in htc_async_tx_scat_complete()
681 struct hif_scatter_req *scat_req, in ath6kl_htc_tx_setup_scat_list() argument
693 scat_req->scat_list[i].packet = NULL; in ath6kl_htc_tx_setup_scat_list()
713 scat_req->scat_list[i].packet = packet; in ath6kl_htc_tx_setup_scat_list()
721 scat_req->scat_list[i].buf = packet->buf; in ath6kl_htc_tx_setup_scat_list()
722 scat_req->scat_list[i].len = len; in ath6kl_htc_tx_setup_scat_list()
724 scat_req->len += len; in ath6kl_htc_tx_setup_scat_list()
725 scat_req->scat_entries++; in ath6kl_htc_tx_setup_scat_list()
732 if (scat_req->scat_entries < HTC_MIN_HTC_MSGS_TO_BUNDLE) { in ath6kl_htc_tx_setup_scat_list()
733 for (i = scat_req->scat_entries - 1; i >= 0; i--) { in ath6kl_htc_tx_setup_scat_list()
734 packet = scat_req->scat_list[i].packet; in ath6kl_htc_tx_setup_scat_list()
760 struct hif_scatter_req *scat_req = NULL; in ath6kl_htc_tx_bundle() local
780 scat_req = hif_scatter_req_get(target->dev->ar); in ath6kl_htc_tx_bundle()
782 if (!scat_req) { in ath6kl_htc_tx_bundle()
809 if (scat_req->scat_q_depth < ATH6KL_SCATTER_REQS) in ath6kl_htc_tx_bundle()
818 scat_req->len = 0; in ath6kl_htc_tx_bundle()
819 scat_req->scat_entries = 0; in ath6kl_htc_tx_bundle()
822 scat_req, n_scat, in ath6kl_htc_tx_bundle()
825 hif_scatter_req_add(target->dev->ar, scat_req); in ath6kl_htc_tx_bundle()
830 scat_req->complete = htc_async_tx_scat_complete; in ath6kl_htc_tx_bundle()
832 tot_pkts_bundle += scat_req->scat_entries; in ath6kl_htc_tx_bundle()
836 scat_req->len, scat_req->scat_entries); in ath6kl_htc_tx_bundle()
838 for (i = 0; i < scat_req->scat_entries; i++) { in ath6kl_htc_tx_bundle()
839 packet = scat_req->scat_list[i].packet; in ath6kl_htc_tx_bundle()
844 ath6kl_hif_submit_scat_req(target->dev, scat_req, false); in ath6kl_htc_tx_bundle()
1915 struct hif_scatter_req *scat_req; in ath6kl_htc_rx_bundle() local
1945 scat_req = hif_scatter_req_get(target->dev->ar); in ath6kl_htc_rx_bundle()
1947 if (scat_req == NULL) in ath6kl_htc_rx_bundle()
1976 scat_req->scat_list[i].buf = packet->buf; in ath6kl_htc_rx_bundle()
1977 scat_req->scat_list[i].len = pad_len; in ath6kl_htc_rx_bundle()
1983 WARN_ON(!scat_req->scat_list[i].len); in ath6kl_htc_rx_bundle()
1984 len += scat_req->scat_list[i].len; in ath6kl_htc_rx_bundle()
1987 scat_req->len = len; in ath6kl_htc_rx_bundle()
1988 scat_req->scat_entries = i; in ath6kl_htc_rx_bundle()
1990 status = ath6kl_hif_submit_scat_req(target->dev, scat_req, true); in ath6kl_htc_rx_bundle()
1996 hif_scatter_req_add(target->dev->ar, scat_req); in ath6kl_htc_rx_bundle()