Lines Matching refs:htc_hdr

75 	struct ath10k_htc_hdr *htc_hdr =  in is_trailer_only_msg()  local
77 u16 len = __le16_to_cpu(htc_hdr->len); in is_trailer_only_msg()
79 if (len == htc_hdr->trailer_len) in is_trailer_only_msg()
386 struct ath10k_htc_hdr *htc_hdr = (struct ath10k_htc_hdr *)skb->data; in ath10k_sdio_mbox_rx_process_packet() local
387 bool trailer_present = htc_hdr->flags & ATH10K_HTC_FLAG_TRAILER_PRESENT; in ath10k_sdio_mbox_rx_process_packet()
393 trailer = skb->data + skb->len - htc_hdr->trailer_len; in ath10k_sdio_mbox_rx_process_packet()
395 eid = pipe_id_to_eid(htc_hdr->eid); in ath10k_sdio_mbox_rx_process_packet()
399 htc_hdr->trailer_len, in ath10k_sdio_mbox_rx_process_packet()
409 skb_trim(skb, skb->len - htc_hdr->trailer_len); in ath10k_sdio_mbox_rx_process_packet()
412 skb_pull(skb, sizeof(*htc_hdr)); in ath10k_sdio_mbox_rx_process_packet()
501 struct ath10k_htc_hdr *htc_hdr, in ath10k_sdio_mbox_alloc_bundle() argument
508 *bndl_cnt = ath10k_htc_get_bundle_count(max_msgs, htc_hdr->flags); in ath10k_sdio_mbox_alloc_bundle()
513 le16_to_cpu(htc_hdr->len), in ath10k_sdio_mbox_alloc_bundle()
541 struct ath10k_htc_hdr *htc_hdr; in ath10k_sdio_mbox_rx_alloc() local
555 htc_hdr = (struct ath10k_htc_hdr *)&lookaheads[i]; in ath10k_sdio_mbox_rx_alloc()
558 if (le16_to_cpu(htc_hdr->len) > ATH10K_HTC_MBOX_MAX_PAYLOAD_LENGTH) { in ath10k_sdio_mbox_rx_alloc()
560 le16_to_cpu(htc_hdr->len), in ath10k_sdio_mbox_rx_alloc()
570 act_len = le16_to_cpu(htc_hdr->len) + sizeof(*htc_hdr); in ath10k_sdio_mbox_rx_alloc()
575 htc_hdr->eid, htc_hdr->flags, in ath10k_sdio_mbox_rx_alloc()
576 le16_to_cpu(htc_hdr->len)); in ath10k_sdio_mbox_rx_alloc()
582 ar->htc.max_msgs_per_htc_bundle, htc_hdr->flags)) { in ath10k_sdio_mbox_rx_alloc()
591 htc_hdr, in ath10k_sdio_mbox_rx_alloc()
612 if (htc_hdr->flags & ATH10K_HTC_FLAGS_RECV_1MORE_BLOCK) in ath10k_sdio_mbox_rx_alloc()
647 struct ath10k_htc_hdr *htc_hdr; in ath10k_sdio_mbox_rx_fetch() local
655 htc_hdr = (struct ath10k_htc_hdr *)skb->data; in ath10k_sdio_mbox_rx_fetch()
656 pkt->act_len = le16_to_cpu(htc_hdr->len) + sizeof(*htc_hdr); in ath10k_sdio_mbox_rx_fetch()
677 struct ath10k_htc_hdr *htc_hdr; in ath10k_sdio_mbox_rx_fetch_bundle() local
701 htc_hdr = (struct ath10k_htc_hdr *)(ar_sdio->vsg_buffer + pkt_offset); in ath10k_sdio_mbox_rx_fetch_bundle()
702 pkt->act_len = le16_to_cpu(htc_hdr->len) + sizeof(*htc_hdr); in ath10k_sdio_mbox_rx_fetch_bundle()
709 skb_put_data(pkt->skb, htc_hdr, pkt->act_len); in ath10k_sdio_mbox_rx_fetch_bundle()