Lines Matching refs:packet

592 					       struct htc_packet *packet)  in ath6kl_tx_queue_full()  argument
596 enum htc_endpoint_id endpoint = packet->endpoint; in ath6kl_tx_queue_full()
612 if (packet->info.tx.tag == ATH6KL_CONTROL_PKT_TAG) in ath6kl_tx_queue_full()
690 struct htc_packet *packet; in ath6kl_tx_complete() local
708 packet = list_first_entry(packet_queue, struct htc_packet, in ath6kl_tx_complete()
710 list_del(&packet->list); in ath6kl_tx_complete()
712 if (WARN_ON_ONCE(packet->endpoint == ENDPOINT_UNUSED || in ath6kl_tx_complete()
713 packet->endpoint >= ENDPOINT_MAX)) in ath6kl_tx_complete()
716 ath6kl_cookie = (struct ath6kl_cookie *)packet->pkt_cntxt; in ath6kl_tx_complete()
720 status = packet->status; in ath6kl_tx_complete()
722 eid = packet->endpoint; in ath6kl_tx_complete()
733 if (WARN_ON_ONCE(!status && (packet->act_len != skb->len))) { in ath6kl_tx_complete()
753 (struct wmi_cmd_hdr *) packet->buf); in ath6kl_tx_complete()
756 (struct wmi_data_hdr *) packet->buf); in ath6kl_tx_complete()
777 __func__, skb, packet->buf, packet->act_len, in ath6kl_tx_complete()
782 __func__, skb, packet->buf, packet->act_len, in ath6kl_tx_complete()
885 struct htc_packet *packet; in ath6kl_rx_refill() local
905 packet = (struct htc_packet *) skb->head; in ath6kl_rx_refill()
911 set_htc_rxpkt_info(packet, skb, skb->data, in ath6kl_rx_refill()
913 packet->skb = skb; in ath6kl_rx_refill()
914 list_add_tail(&packet->list, &queue); in ath6kl_rx_refill()
923 struct htc_packet *packet; in ath6kl_refill_amsdu_rxbufs() local
931 packet = (struct htc_packet *) skb->head; in ath6kl_refill_amsdu_rxbufs()
937 set_htc_rxpkt_info(packet, skb, skb->data, in ath6kl_refill_amsdu_rxbufs()
939 packet->skb = skb; in ath6kl_refill_amsdu_rxbufs()
942 list_add_tail(&packet->list, &ar->amsdu_rx_buffer_queue); in ath6kl_refill_amsdu_rxbufs()
957 struct htc_packet *packet = NULL; in ath6kl_alloc_amsdu_rxbuf() local
976 packet = list_first_entry(&ar->amsdu_rx_buffer_queue, in ath6kl_alloc_amsdu_rxbuf()
978 list_del(&packet->list); in ath6kl_alloc_amsdu_rxbuf()
986 packet->endpoint = endpoint; in ath6kl_alloc_amsdu_rxbuf()
992 return packet; in ath6kl_alloc_amsdu_rxbuf()
1306 void ath6kl_rx(struct htc_target *target, struct htc_packet *packet) in ath6kl_rx() argument
1309 struct sk_buff *skb = packet->pkt_cntxt; in ath6kl_rx()
1315 int status = packet->status; in ath6kl_rx()
1316 enum htc_endpoint_id ept = packet->endpoint; in ath6kl_rx()
1329 __func__, ar, ept, skb, packet->buf, in ath6kl_rx()
1330 packet->act_len, status); in ath6kl_rx()
1332 if (status || packet->act_len < HTC_HDR_LENGTH) { in ath6kl_rx()
1337 skb_put(skb, packet->act_len + HTC_HDR_LENGTH); in ath6kl_rx()
1369 vif->net_stats.rx_bytes += packet->act_len; in ath6kl_rx()
1395 ((packet->act_len < min_hdr_len) || in ath6kl_rx()
1396 (packet->act_len > WMI_MAX_AMSDU_RX_DATA_FRAME_LENGTH))) { in ath6kl_rx()
1513 if ((packet->act_len < min_hdr_len) || in ath6kl_rx()
1514 (packet->act_len > in ath6kl_rx()
1849 struct htc_packet *packet, *tmp_pkt; in ath6kl_cleanup_amsdu_rxbufs() local
1857 list_for_each_entry_safe(packet, tmp_pkt, &ar->amsdu_rx_buffer_queue, in ath6kl_cleanup_amsdu_rxbufs()
1859 list_del(&packet->list); in ath6kl_cleanup_amsdu_rxbufs()
1861 dev_kfree_skb(packet->pkt_cntxt); in ath6kl_cleanup_amsdu_rxbufs()