Lines Matching refs:htc_hdr

1342 	struct htc_frame_hdr *htc_hdr = (struct htc_frame_hdr *)&lk_ahd;  in ath6kl_htc_rx_set_indicate()  local
1344 if (htc_hdr->eid == packet->endpoint) { in ath6kl_htc_rx_set_indicate()
1374 struct htc_frame_hdr *htc_hdr = (struct htc_frame_hdr *)lk_ahds; in ath6kl_htc_rx_setup() local
1380 le16_to_cpu(htc_hdr->payld_len) + in ath6kl_htc_rx_setup()
1381 sizeof(*htc_hdr)); in ath6kl_htc_rx_setup()
1385 htc_hdr->eid, htc_hdr->flags, in ath6kl_htc_rx_setup()
1386 le16_to_cpu(htc_hdr->payld_len)); in ath6kl_htc_rx_setup()
1403 le16_to_cpu(htc_hdr->payld_len); in ath6kl_htc_rx_setup()
1464 packet->act_len = le16_to_cpu(htc_hdr->payld_len) + in ath6kl_htc_rx_setup()
1478 struct htc_frame_hdr *htc_hdr; in ath6kl_htc_rx_alloc() local
1484 htc_hdr = (struct htc_frame_hdr *)&lk_ahds[i]; in ath6kl_htc_rx_alloc()
1486 if (htc_hdr->eid >= ENDPOINT_MAX) { in ath6kl_htc_rx_alloc()
1488 htc_hdr->eid); in ath6kl_htc_rx_alloc()
1493 if (htc_hdr->eid != endpoint->eid) { in ath6kl_htc_rx_alloc()
1495 htc_hdr->eid, endpoint->eid, i); in ath6kl_htc_rx_alloc()
1500 if (le16_to_cpu(htc_hdr->payld_len) > HTC_MAX_PAYLOAD_LENGTH) { in ath6kl_htc_rx_alloc()
1502 htc_hdr->payld_len, in ath6kl_htc_rx_alloc()
1509 ath6kl_err("ep %d is not connected !\n", htc_hdr->eid); in ath6kl_htc_rx_alloc()
1514 if (htc_hdr->flags & HTC_FLG_RX_BNDL_CNT) { in ath6kl_htc_rx_alloc()
1520 n_msg = (htc_hdr->flags & HTC_FLG_RX_BNDL_CNT) >> in ath6kl_htc_rx_alloc()
1812 struct htc_frame_hdr *htc_hdr = (struct htc_frame_hdr *)packet->buf; in ath6kl_htc_rx_process_hdr() local
1821 payload_len = le16_to_cpu(get_unaligned(&htc_hdr->payld_len)); in ath6kl_htc_rx_process_hdr()
1847 if (packet->endpoint != htc_hdr->eid) { in ath6kl_htc_rx_process_hdr()
1849 htc_hdr->eid, packet->endpoint); in ath6kl_htc_rx_process_hdr()
1866 if (htc_hdr->flags & HTC_FLG_RX_TRAILER) { in ath6kl_htc_rx_process_hdr()
1867 if (htc_hdr->ctrl[0] < sizeof(struct htc_record_hdr) || in ath6kl_htc_rx_process_hdr()
1868 htc_hdr->ctrl[0] > payload_len) { in ath6kl_htc_rx_process_hdr()
1870 __func__, payload_len, htc_hdr->ctrl[0]); in ath6kl_htc_rx_process_hdr()
1881 + payload_len - htc_hdr->ctrl[0], in ath6kl_htc_rx_process_hdr()
1882 htc_hdr->ctrl[0], next_lkahds, in ath6kl_htc_rx_process_hdr()
1888 packet->act_len -= htc_hdr->ctrl[0]; in ath6kl_htc_rx_process_hdr()
2264 struct htc_frame_hdr *htc_hdr; in htc_wait_for_ctrl_msg() local
2274 htc_hdr = (struct htc_frame_hdr *)&look_ahead; in htc_wait_for_ctrl_msg()
2276 if (htc_hdr->eid != ENDPOINT_0) in htc_wait_for_ctrl_msg()
2286 packet->act_len = le16_to_cpu(htc_hdr->payld_len) + HTC_HDR_LENGTH; in htc_wait_for_ctrl_msg()