htc_hdr 1856 drivers/net/wireless/ath/ath10k/htt.h struct ath10k_htc_hdr htc_hdr; htc_hdr 1863 drivers/net/wireless/ath/ath10k/htt.h struct ath10k_htc_hdr htc_hdr; htc_hdr 1461 drivers/net/wireless/ath/ath10k/htt_tx.c txbuf->htc_hdr.eid = htt->eid; htc_hdr 1462 drivers/net/wireless/ath/ath10k/htt_tx.c txbuf->htc_hdr.len = __cpu_to_le16(sizeof(txbuf->cmd_hdr) + htc_hdr 1465 drivers/net/wireless/ath/ath10k/htt_tx.c txbuf->htc_hdr.flags = 0; htc_hdr 1514 drivers/net/wireless/ath/ath10k/htt_tx.c sg_items[0].vaddr = &txbuf->htc_hdr; htc_hdr 1517 drivers/net/wireless/ath/ath10k/htt_tx.c sg_items[0].len = sizeof(txbuf->htc_hdr) + htc_hdr 1663 drivers/net/wireless/ath/ath10k/htt_tx.c txbuf->htc_hdr.eid = htt->eid; htc_hdr 1664 drivers/net/wireless/ath/ath10k/htt_tx.c txbuf->htc_hdr.len = __cpu_to_le16(sizeof(txbuf->cmd_hdr) + htc_hdr 1667 drivers/net/wireless/ath/ath10k/htt_tx.c txbuf->htc_hdr.flags = 0; htc_hdr 1721 drivers/net/wireless/ath/ath10k/htt_tx.c sg_items[0].vaddr = &txbuf->htc_hdr; htc_hdr 1724 drivers/net/wireless/ath/ath10k/htt_tx.c sg_items[0].len = sizeof(txbuf->htc_hdr) + htc_hdr 70 drivers/net/wireless/ath/ath10k/sdio.c struct ath10k_htc_hdr *htc_hdr = htc_hdr 72 drivers/net/wireless/ath/ath10k/sdio.c u16 len = __le16_to_cpu(htc_hdr->len); htc_hdr 74 drivers/net/wireless/ath/ath10k/sdio.c if (len == htc_hdr->trailer_len) htc_hdr 381 drivers/net/wireless/ath/ath10k/sdio.c struct ath10k_htc_hdr *htc_hdr = (struct ath10k_htc_hdr *)skb->data; htc_hdr 382 drivers/net/wireless/ath/ath10k/sdio.c bool trailer_present = htc_hdr->flags & ATH10K_HTC_FLAG_TRAILER_PRESENT; htc_hdr 388 drivers/net/wireless/ath/ath10k/sdio.c trailer = skb->data + skb->len - htc_hdr->trailer_len; htc_hdr 390 drivers/net/wireless/ath/ath10k/sdio.c eid = pipe_id_to_eid(htc_hdr->eid); htc_hdr 394 drivers/net/wireless/ath/ath10k/sdio.c htc_hdr->trailer_len, htc_hdr 404 drivers/net/wireless/ath/ath10k/sdio.c skb_trim(skb, skb->len - htc_hdr->trailer_len); htc_hdr 407 drivers/net/wireless/ath/ath10k/sdio.c skb_pull(skb, sizeof(*htc_hdr)); htc_hdr 489 drivers/net/wireless/ath/ath10k/sdio.c struct ath10k_htc_hdr *htc_hdr, htc_hdr 495 drivers/net/wireless/ath/ath10k/sdio.c *bndl_cnt = FIELD_GET(ATH10K_HTC_FLAG_BUNDLE_MASK, htc_hdr->flags); htc_hdr 500 drivers/net/wireless/ath/ath10k/sdio.c le16_to_cpu(htc_hdr->len), htc_hdr 528 drivers/net/wireless/ath/ath10k/sdio.c struct ath10k_htc_hdr *htc_hdr; htc_hdr 543 drivers/net/wireless/ath/ath10k/sdio.c htc_hdr = (struct ath10k_htc_hdr *)&lookaheads[i]; htc_hdr 546 drivers/net/wireless/ath/ath10k/sdio.c if (le16_to_cpu(htc_hdr->len) > htc_hdr 550 drivers/net/wireless/ath/ath10k/sdio.c le16_to_cpu(htc_hdr->len), htc_hdr 556 drivers/net/wireless/ath/ath10k/sdio.c act_len = le16_to_cpu(htc_hdr->len) + sizeof(*htc_hdr); htc_hdr 562 drivers/net/wireless/ath/ath10k/sdio.c htc_hdr->eid, htc_hdr->flags, htc_hdr 563 drivers/net/wireless/ath/ath10k/sdio.c le16_to_cpu(htc_hdr->len)); htc_hdr 568 drivers/net/wireless/ath/ath10k/sdio.c if (htc_hdr->flags & ATH10K_HTC_FLAG_BUNDLE_MASK) { htc_hdr 577 drivers/net/wireless/ath/ath10k/sdio.c htc_hdr, htc_hdr 597 drivers/net/wireless/ath/ath10k/sdio.c if (htc_hdr->flags & ATH10K_HTC_FLAGS_RECV_1MORE_BLOCK) htc_hdr 630 drivers/net/wireless/ath/ath10k/sdio.c struct ath10k_htc_hdr *htc_hdr; htc_hdr 642 drivers/net/wireless/ath/ath10k/sdio.c htc_hdr = (struct ath10k_htc_hdr *)skb->data; htc_hdr 643 drivers/net/wireless/ath/ath10k/sdio.c pkt->act_len = le16_to_cpu(htc_hdr->len) + sizeof(*htc_hdr); htc_hdr 24 drivers/net/wireless/ath/ath10k/usb.c eid_from_htc_hdr(struct ath10k_htc_hdr *htc_hdr) htc_hdr 26 drivers/net/wireless/ath/ath10k/usb.c return (enum ath10k_htc_ep_id)htc_hdr->eid; htc_hdr 29 drivers/net/wireless/ath/ath10k/usb.c static inline bool is_trailer_only_msg(struct ath10k_htc_hdr *htc_hdr) htc_hdr 31 drivers/net/wireless/ath/ath10k/usb.c return __le16_to_cpu(htc_hdr->len) == htc_hdr->trailer_len; htc_hdr 283 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_htc_hdr *htc_hdr; htc_hdr 286 drivers/net/wireless/ath/ath10k/usb.c htc_hdr = (struct ath10k_htc_hdr *)skb->data; htc_hdr 287 drivers/net/wireless/ath/ath10k/usb.c ep = &ar->htc.endpoint[htc_hdr->eid]; htc_hdr 295 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_htc_hdr *htc_hdr; htc_hdr 302 drivers/net/wireless/ath/ath10k/usb.c htc_hdr = (struct ath10k_htc_hdr *)skb->data; htc_hdr 303 drivers/net/wireless/ath/ath10k/usb.c eid = eid_from_htc_hdr(htc_hdr); htc_hdr 311 drivers/net/wireless/ath/ath10k/usb.c payload_len = le16_to_cpu(htc_hdr->len); htc_hdr 317 drivers/net/wireless/ath/ath10k/usb.c if (payload_len < htc_hdr->trailer_len) { htc_hdr 322 drivers/net/wireless/ath/ath10k/usb.c if (htc_hdr->flags & ATH10K_HTC_FLAG_TRAILER_PRESENT) { htc_hdr 323 drivers/net/wireless/ath/ath10k/usb.c trailer = skb->data + sizeof(*htc_hdr) + payload_len - htc_hdr 324 drivers/net/wireless/ath/ath10k/usb.c htc_hdr->trailer_len; htc_hdr 328 drivers/net/wireless/ath/ath10k/usb.c htc_hdr->trailer_len, htc_hdr 335 drivers/net/wireless/ath/ath10k/usb.c if (is_trailer_only_msg(htc_hdr)) htc_hdr 341 drivers/net/wireless/ath/ath10k/usb.c skb_trim(skb, skb->len - htc_hdr->trailer_len); htc_hdr 344 drivers/net/wireless/ath/ath10k/usb.c skb_pull(skb, sizeof(*htc_hdr)); htc_hdr 1340 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_frame_hdr *htc_hdr = (struct htc_frame_hdr *)&lk_ahd; htc_hdr 1342 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (htc_hdr->eid == packet->endpoint) { htc_hdr 1372 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_frame_hdr *htc_hdr = (struct htc_frame_hdr *)lk_ahds; htc_hdr 1378 drivers/net/wireless/ath/ath6kl/htc_mbox.c le16_to_cpu(htc_hdr->payld_len) + htc_hdr 1379 drivers/net/wireless/ath/ath6kl/htc_mbox.c sizeof(*htc_hdr)); htc_hdr 1383 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_hdr->eid, htc_hdr->flags, htc_hdr 1384 drivers/net/wireless/ath/ath6kl/htc_mbox.c le16_to_cpu(htc_hdr->payld_len)); htc_hdr 1401 drivers/net/wireless/ath/ath6kl/htc_mbox.c le16_to_cpu(htc_hdr->payld_len); htc_hdr 1462 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->act_len = le16_to_cpu(htc_hdr->payld_len) + htc_hdr 1476 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_frame_hdr *htc_hdr; htc_hdr 1482 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_hdr = (struct htc_frame_hdr *)&lk_ahds[i]; htc_hdr 1484 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (htc_hdr->eid >= ENDPOINT_MAX) { htc_hdr 1486 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_hdr->eid); htc_hdr 1491 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (htc_hdr->eid != endpoint->eid) { htc_hdr 1493 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_hdr->eid, endpoint->eid, i); htc_hdr 1498 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (le16_to_cpu(htc_hdr->payld_len) > HTC_MAX_PAYLOAD_LENGTH) { htc_hdr 1500 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_hdr->payld_len, htc_hdr 1507 drivers/net/wireless/ath/ath6kl/htc_mbox.c ath6kl_err("ep %d is not connected !\n", htc_hdr->eid); htc_hdr 1512 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (htc_hdr->flags & HTC_FLG_RX_BNDL_CNT) { htc_hdr 1518 drivers/net/wireless/ath/ath6kl/htc_mbox.c n_msg = (htc_hdr->flags & HTC_FLG_RX_BNDL_CNT) >> htc_hdr 1810 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_frame_hdr *htc_hdr = (struct htc_frame_hdr *)packet->buf; htc_hdr 1819 drivers/net/wireless/ath/ath6kl/htc_mbox.c payload_len = le16_to_cpu(get_unaligned(&htc_hdr->payld_len)); htc_hdr 1845 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (packet->endpoint != htc_hdr->eid) { htc_hdr 1847 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_hdr->eid, packet->endpoint); htc_hdr 1864 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (htc_hdr->flags & HTC_FLG_RX_TRAILER) { htc_hdr 1865 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (htc_hdr->ctrl[0] < sizeof(struct htc_record_hdr) || htc_hdr 1866 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_hdr->ctrl[0] > payload_len) { htc_hdr 1868 drivers/net/wireless/ath/ath6kl/htc_mbox.c __func__, payload_len, htc_hdr->ctrl[0]); htc_hdr 1879 drivers/net/wireless/ath/ath6kl/htc_mbox.c + payload_len - htc_hdr->ctrl[0], htc_hdr 1880 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_hdr->ctrl[0], next_lkahds, htc_hdr 1886 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->act_len -= htc_hdr->ctrl[0]; htc_hdr 2263 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_frame_hdr *htc_hdr; htc_hdr 2273 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_hdr = (struct htc_frame_hdr *)&look_ahead; htc_hdr 2275 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (htc_hdr->eid != ENDPOINT_0) htc_hdr 2285 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->act_len = le16_to_cpu(htc_hdr->payld_len) + HTC_HDR_LENGTH; htc_hdr 210 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_frame_hdr *htc_hdr; htc_hdr 231 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_hdr = skb_push(skb, sizeof(*htc_hdr)); htc_hdr 232 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (!htc_hdr) { htc_hdr 241 drivers/net/wireless/ath/ath6kl/htc_pipe.c put_unaligned((u16) payload_len, &htc_hdr->payld_len); htc_hdr 242 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_hdr->flags = packet->info.tx.flags; htc_hdr 243 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_hdr->eid = (u8) packet->endpoint; htc_hdr 244 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_hdr->ctrl[0] = 0; htc_hdr 245 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_hdr->ctrl[1] = (u8) packet->info.tx.seqno; htc_hdr 745 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_frame_hdr *htc_hdr; htc_hdr 752 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_hdr = (struct htc_frame_hdr *) netdata; htc_hdr 754 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep_id = htc_hdr->eid; htc_hdr 947 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_frame_hdr *htc_hdr; htc_hdr 973 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_hdr = (struct htc_frame_hdr *) netdata; htc_hdr 975 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (htc_hdr->eid >= ENDPOINT_MAX) { htc_hdr 978 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_hdr->eid); htc_hdr 982 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep = &target->endpoint[htc_hdr->eid]; htc_hdr 984 drivers/net/wireless/ath/ath6kl/htc_pipe.c payload_len = le16_to_cpu(get_unaligned(&htc_hdr->payld_len)); htc_hdr 995 drivers/net/wireless/ath/ath6kl/htc_pipe.c hdr_info = htc_hdr->flags; htc_hdr 998 drivers/net/wireless/ath/ath6kl/htc_pipe.c hdr_info = htc_hdr->ctrl[0]; htc_hdr 1010 drivers/net/wireless/ath/ath6kl/htc_pipe.c trailer = (u8 *) htc_hdr + HTC_HDR_LENGTH + htc_hdr 1013 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_hdr->eid); htc_hdr 1023 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (htc_hdr->eid == ENDPOINT_0) { htc_hdr 1070 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->endpoint = htc_hdr->eid; htc_hdr 103 drivers/net/wireless/ath/ath9k/htc_hst.c struct htc_frame_hdr *htc_hdr) htc_hdr 112 drivers/net/wireless/ath/ath9k/htc_hst.c ((void *) htc_hdr + sizeof(struct htc_frame_hdr)); htc_hdr 326 drivers/net/wireless/ath/ath9k/htc_hst.c struct htc_frame_hdr *htc_hdr = NULL; htc_hdr 341 drivers/net/wireless/ath/ath9k/htc_hst.c htc_hdr = (struct htc_frame_hdr *) skb->data; htc_hdr 342 drivers/net/wireless/ath/ath9k/htc_hst.c endpoint = &htc_handle->endpoint[htc_hdr->endpoint_id]; htc_hdr 347 drivers/net/wireless/ath/ath9k/htc_hst.c skb, htc_hdr->endpoint_id, htc_hdr 399 drivers/net/wireless/ath/ath9k/htc_hst.c struct htc_frame_hdr *htc_hdr; htc_hdr 407 drivers/net/wireless/ath/ath9k/htc_hst.c htc_hdr = (struct htc_frame_hdr *) skb->data; htc_hdr 408 drivers/net/wireless/ath/ath9k/htc_hst.c epid = htc_hdr->endpoint_id; htc_hdr 427 drivers/net/wireless/ath/ath9k/htc_hst.c if (htc_hdr->flags & HTC_FLAGS_RECV_TRAILER) { htc_hdr 430 drivers/net/wireless/ath/ath9k/htc_hst.c htc_hdr = (struct htc_frame_hdr *)(skb->data + 4); htc_hdr 434 drivers/net/wireless/ath/ath9k/htc_hst.c msg_id = (__be16 *) ((void *) htc_hdr + htc_hdr 440 drivers/net/wireless/ath/ath9k/htc_hst.c htc_process_target_rdy(htc_handle, htc_hdr); htc_hdr 443 drivers/net/wireless/ath/ath9k/htc_hst.c htc_process_conn_rsp(htc_handle, htc_hdr); htc_hdr 452 drivers/net/wireless/ath/ath9k/htc_hst.c if (htc_hdr->flags & HTC_FLAGS_RECV_TRAILER) htc_hdr 453 drivers/net/wireless/ath/ath9k/htc_hst.c skb_trim(skb, len - htc_hdr->control[0]);