Lines Matching refs:htc_hdr
1340 struct htc_frame_hdr *htc_hdr = (struct htc_frame_hdr *)&lk_ahd; in ath6kl_htc_rx_set_indicate() local
1342 if (htc_hdr->eid == packet->endpoint) { in ath6kl_htc_rx_set_indicate()
1372 struct htc_frame_hdr *htc_hdr = (struct htc_frame_hdr *)lk_ahds; in ath6kl_htc_rx_setup() local
1378 le16_to_cpu(htc_hdr->payld_len) + in ath6kl_htc_rx_setup()
1379 sizeof(*htc_hdr)); in ath6kl_htc_rx_setup()
1383 htc_hdr->eid, htc_hdr->flags, in ath6kl_htc_rx_setup()
1384 le16_to_cpu(htc_hdr->payld_len)); in ath6kl_htc_rx_setup()
1401 le16_to_cpu(htc_hdr->payld_len); in ath6kl_htc_rx_setup()
1462 packet->act_len = le16_to_cpu(htc_hdr->payld_len) + in ath6kl_htc_rx_setup()
1476 struct htc_frame_hdr *htc_hdr; in ath6kl_htc_rx_alloc() local
1482 htc_hdr = (struct htc_frame_hdr *)&lk_ahds[i]; in ath6kl_htc_rx_alloc()
1484 if (htc_hdr->eid >= ENDPOINT_MAX) { in ath6kl_htc_rx_alloc()
1486 htc_hdr->eid); in ath6kl_htc_rx_alloc()
1491 if (htc_hdr->eid != endpoint->eid) { in ath6kl_htc_rx_alloc()
1493 htc_hdr->eid, endpoint->eid, i); in ath6kl_htc_rx_alloc()
1498 if (le16_to_cpu(htc_hdr->payld_len) > HTC_MAX_PAYLOAD_LENGTH) { in ath6kl_htc_rx_alloc()
1500 htc_hdr->payld_len, in ath6kl_htc_rx_alloc()
1507 ath6kl_err("ep %d is not connected !\n", htc_hdr->eid); in ath6kl_htc_rx_alloc()
1512 if (htc_hdr->flags & HTC_FLG_RX_BNDL_CNT) { in ath6kl_htc_rx_alloc()
1518 n_msg = (htc_hdr->flags & HTC_FLG_RX_BNDL_CNT) >> in ath6kl_htc_rx_alloc()
1810 struct htc_frame_hdr *htc_hdr = (struct htc_frame_hdr *)packet->buf; in ath6kl_htc_rx_process_hdr() local
1819 payload_len = le16_to_cpu(get_unaligned(&htc_hdr->payld_len)); in ath6kl_htc_rx_process_hdr()
1845 if (packet->endpoint != htc_hdr->eid) { in ath6kl_htc_rx_process_hdr()
1847 htc_hdr->eid, packet->endpoint); in ath6kl_htc_rx_process_hdr()
1864 if (htc_hdr->flags & HTC_FLG_RX_TRAILER) { in ath6kl_htc_rx_process_hdr()
1865 if (htc_hdr->ctrl[0] < sizeof(struct htc_record_hdr) || in ath6kl_htc_rx_process_hdr()
1866 htc_hdr->ctrl[0] > payload_len) { in ath6kl_htc_rx_process_hdr()
1868 __func__, payload_len, htc_hdr->ctrl[0]); in ath6kl_htc_rx_process_hdr()
1879 + payload_len - htc_hdr->ctrl[0], in ath6kl_htc_rx_process_hdr()
1880 htc_hdr->ctrl[0], next_lkahds, in ath6kl_htc_rx_process_hdr()
1886 packet->act_len -= htc_hdr->ctrl[0]; in ath6kl_htc_rx_process_hdr()