Lines Matching refs:desc
27 struct hal_reo_get_queue_stats *desc; in ath12k_hal_reo_cmd_queue_stats() local
30 u32_encode_bits(sizeof(*desc), HAL_TLV_HDR_LEN); in ath12k_hal_reo_cmd_queue_stats()
32 desc = (struct hal_reo_get_queue_stats *)tlv->value; in ath12k_hal_reo_cmd_queue_stats()
33 memset_startat(desc, 0, queue_addr_lo); in ath12k_hal_reo_cmd_queue_stats()
35 desc->cmd.info0 &= ~cpu_to_le32(HAL_REO_CMD_HDR_INFO0_STATUS_REQUIRED); in ath12k_hal_reo_cmd_queue_stats()
37 desc->cmd.info0 |= cpu_to_le32(HAL_REO_CMD_HDR_INFO0_STATUS_REQUIRED); in ath12k_hal_reo_cmd_queue_stats()
39 desc->queue_addr_lo = cpu_to_le32(cmd->addr_lo); in ath12k_hal_reo_cmd_queue_stats()
40 desc->info0 = le32_encode_bits(cmd->addr_hi, in ath12k_hal_reo_cmd_queue_stats()
43 desc->info0 |= cpu_to_le32(HAL_REO_GET_QUEUE_STATS_INFO0_CLEAR_STATS); in ath12k_hal_reo_cmd_queue_stats()
45 return le32_get_bits(desc->cmd.info0, HAL_REO_CMD_HDR_INFO0_CMD_NUMBER); in ath12k_hal_reo_cmd_queue_stats()
52 struct hal_reo_flush_cache *desc; in ath12k_hal_reo_cmd_flush_cache() local
63 u32_encode_bits(sizeof(*desc), HAL_TLV_HDR_LEN); in ath12k_hal_reo_cmd_flush_cache()
65 desc = (struct hal_reo_flush_cache *)tlv->value; in ath12k_hal_reo_cmd_flush_cache()
66 memset_startat(desc, 0, cache_addr_lo); in ath12k_hal_reo_cmd_flush_cache()
68 desc->cmd.info0 &= ~cpu_to_le32(HAL_REO_CMD_HDR_INFO0_STATUS_REQUIRED); in ath12k_hal_reo_cmd_flush_cache()
70 desc->cmd.info0 |= cpu_to_le32(HAL_REO_CMD_HDR_INFO0_STATUS_REQUIRED); in ath12k_hal_reo_cmd_flush_cache()
72 desc->cache_addr_lo = cpu_to_le32(cmd->addr_lo); in ath12k_hal_reo_cmd_flush_cache()
73 desc->info0 = le32_encode_bits(cmd->addr_hi, in ath12k_hal_reo_cmd_flush_cache()
77 desc->info0 |= cpu_to_le32(HAL_REO_FLUSH_CACHE_INFO0_FWD_ALL_MPDUS); in ath12k_hal_reo_cmd_flush_cache()
80 desc->info0 |= cpu_to_le32(HAL_REO_FLUSH_CACHE_INFO0_BLOCK_CACHE_USAGE); in ath12k_hal_reo_cmd_flush_cache()
81 desc->info0 |= in ath12k_hal_reo_cmd_flush_cache()
87 desc->info0 |= cpu_to_le32(HAL_REO_FLUSH_CACHE_INFO0_FLUSH_WO_INVALIDATE); in ath12k_hal_reo_cmd_flush_cache()
90 desc->info0 |= cpu_to_le32(HAL_REO_FLUSH_CACHE_INFO0_FLUSH_ALL); in ath12k_hal_reo_cmd_flush_cache()
92 return le32_get_bits(desc->cmd.info0, HAL_REO_CMD_HDR_INFO0_CMD_NUMBER); in ath12k_hal_reo_cmd_flush_cache()
98 struct hal_reo_update_rx_queue *desc; in ath12k_hal_reo_cmd_update_rx_queue() local
101 u32_encode_bits(sizeof(*desc), HAL_TLV_HDR_LEN); in ath12k_hal_reo_cmd_update_rx_queue()
103 desc = (struct hal_reo_update_rx_queue *)tlv->value; in ath12k_hal_reo_cmd_update_rx_queue()
104 memset_startat(desc, 0, queue_addr_lo); in ath12k_hal_reo_cmd_update_rx_queue()
106 desc->cmd.info0 &= ~cpu_to_le32(HAL_REO_CMD_HDR_INFO0_STATUS_REQUIRED); in ath12k_hal_reo_cmd_update_rx_queue()
108 desc->cmd.info0 |= cpu_to_le32(HAL_REO_CMD_HDR_INFO0_STATUS_REQUIRED); in ath12k_hal_reo_cmd_update_rx_queue()
110 desc->queue_addr_lo = cpu_to_le32(cmd->addr_lo); in ath12k_hal_reo_cmd_update_rx_queue()
111 desc->info0 = in ath12k_hal_reo_cmd_update_rx_queue()
159 desc->info1 = in ath12k_hal_reo_cmd_update_rx_queue()
204 desc->info2 = in ath12k_hal_reo_cmd_update_rx_queue()
217 return le32_get_bits(desc->cmd.info0, HAL_REO_CMD_HDR_INFO0_CMD_NUMBER); in ath12k_hal_reo_cmd_update_rx_queue()
318 struct hal_reo_dest_ring *desc, in ath12k_hal_desc_reo_parse_err() argument
325 push_reason = le32_get_bits(desc->info0, in ath12k_hal_desc_reo_parse_err()
327 err_code = le32_get_bits(desc->info0, in ath12k_hal_desc_reo_parse_err()
338 val = le32_get_bits(desc->info0, HAL_REO_DEST_RING_INFO0_BUFFER_TYPE); in ath12k_hal_desc_reo_parse_err()
344 ath12k_hal_rx_reo_ent_paddr_get(ab, &desc->buf_addr_info, paddr, &cookie); in ath12k_hal_desc_reo_parse_err()
350 int ath12k_hal_wbm_desc_parse_err(struct ath12k_base *ab, void *desc, in ath12k_hal_wbm_desc_parse_err() argument
353 struct hal_wbm_release_ring *wbm_desc = desc; in ath12k_hal_wbm_desc_parse_err()
354 struct hal_wbm_release_ring_cc_rx *wbm_cc_desc = desc; in ath12k_hal_wbm_desc_parse_err()
465 struct hal_reo_get_queue_stats_status *desc = in ath12k_hal_reo_status_queue_stats() local
469 le32_get_bits(desc->hdr.info0, in ath12k_hal_reo_status_queue_stats()
472 le32_get_bits(desc->hdr.info0, in ath12k_hal_reo_status_queue_stats()
480 le32_get_bits(desc->info0, in ath12k_hal_reo_status_queue_stats()
482 le32_get_bits(desc->info0, in ath12k_hal_reo_status_queue_stats()
485 desc->pn[0], desc->pn[1], desc->pn[2], desc->pn[3]); in ath12k_hal_reo_status_queue_stats()
487 desc->last_rx_enqueue_timestamp, in ath12k_hal_reo_status_queue_stats()
488 desc->last_rx_dequeue_timestamp); in ath12k_hal_reo_status_queue_stats()
490 desc->rx_bitmap[0], desc->rx_bitmap[1], desc->rx_bitmap[2], in ath12k_hal_reo_status_queue_stats()
491 desc->rx_bitmap[3], desc->rx_bitmap[4], desc->rx_bitmap[5], in ath12k_hal_reo_status_queue_stats()
492 desc->rx_bitmap[6], desc->rx_bitmap[7]); in ath12k_hal_reo_status_queue_stats()
494 le32_get_bits(desc->info1, in ath12k_hal_reo_status_queue_stats()
496 le32_get_bits(desc->info1, in ath12k_hal_reo_status_queue_stats()
499 le32_get_bits(desc->info2, in ath12k_hal_reo_status_queue_stats()
501 le32_get_bits(desc->info2, in ath12k_hal_reo_status_queue_stats()
503 le32_get_bits(desc->info2, in ath12k_hal_reo_status_queue_stats()
506 le32_get_bits(desc->info3, in ath12k_hal_reo_status_queue_stats()
508 le32_get_bits(desc->info3, in ath12k_hal_reo_status_queue_stats()
511 desc->num_mpdu_frames, desc->num_msdu_frames, in ath12k_hal_reo_status_queue_stats()
512 desc->total_bytes); in ath12k_hal_reo_status_queue_stats()
514 le32_get_bits(desc->info4, in ath12k_hal_reo_status_queue_stats()
516 le32_get_bits(desc->info2, in ath12k_hal_reo_status_queue_stats()
518 le32_get_bits(desc->info4, in ath12k_hal_reo_status_queue_stats()
521 le32_get_bits(desc->info5, in ath12k_hal_reo_status_queue_stats()
528 struct hal_reo_flush_queue_status *desc = in ath12k_hal_reo_flush_queue_status() local
532 le32_get_bits(desc->hdr.info0, in ath12k_hal_reo_flush_queue_status()
535 le32_get_bits(desc->hdr.info0, in ath12k_hal_reo_flush_queue_status()
538 le32_get_bits(desc->info0, in ath12k_hal_reo_flush_queue_status()
546 struct hal_reo_flush_cache_status *desc = in ath12k_hal_reo_flush_cache_status() local
550 le32_get_bits(desc->hdr.info0, in ath12k_hal_reo_flush_cache_status()
553 le32_get_bits(desc->hdr.info0, in ath12k_hal_reo_flush_cache_status()
557 le32_get_bits(desc->info0, in ath12k_hal_reo_flush_cache_status()
560 le32_get_bits(desc->info0, in ath12k_hal_reo_flush_cache_status()
566 le32_get_bits(desc->info0, in ath12k_hal_reo_flush_cache_status()
570 le32_get_bits(desc->info0, in ath12k_hal_reo_flush_cache_status()
573 le32_get_bits(desc->info0, in ath12k_hal_reo_flush_cache_status()
576 le32_get_bits(desc->info0, in ath12k_hal_reo_flush_cache_status()
579 le32_get_bits(desc->info0, in ath12k_hal_reo_flush_cache_status()
587 struct hal_reo_unblock_cache_status *desc = in ath12k_hal_reo_unblk_cache_status() local
591 le32_get_bits(desc->hdr.info0, in ath12k_hal_reo_unblk_cache_status()
594 le32_get_bits(desc->hdr.info0, in ath12k_hal_reo_unblk_cache_status()
598 le32_get_bits(desc->info0, in ath12k_hal_reo_unblk_cache_status()
601 le32_get_bits(desc->info0, in ath12k_hal_reo_unblk_cache_status()
614 struct hal_reo_flush_timeout_list_status *desc = in ath12k_hal_reo_flush_timeout_list_status() local
618 le32_get_bits(desc->hdr.info0, in ath12k_hal_reo_flush_timeout_list_status()
621 le32_get_bits(desc->hdr.info0, in ath12k_hal_reo_flush_timeout_list_status()
625 le32_get_bits(desc->info0, in ath12k_hal_reo_flush_timeout_list_status()
628 le32_get_bits(desc->info0, in ath12k_hal_reo_flush_timeout_list_status()
632 le32_get_bits(desc->info1, in ath12k_hal_reo_flush_timeout_list_status()
635 le32_get_bits(desc->info0, in ath12k_hal_reo_flush_timeout_list_status()
643 struct hal_reo_desc_thresh_reached_status *desc = in ath12k_hal_reo_desc_thresh_reached_status() local
647 le32_get_bits(desc->hdr.info0, in ath12k_hal_reo_desc_thresh_reached_status()
650 le32_get_bits(desc->hdr.info0, in ath12k_hal_reo_desc_thresh_reached_status()
654 le32_get_bits(desc->info0, in ath12k_hal_reo_desc_thresh_reached_status()
658 le32_get_bits(desc->info1, in ath12k_hal_reo_desc_thresh_reached_status()
662 le32_get_bits(desc->info2, in ath12k_hal_reo_desc_thresh_reached_status()
666 le32_get_bits(desc->info3, in ath12k_hal_reo_desc_thresh_reached_status()
670 le32_get_bits(desc->info4, in ath12k_hal_reo_desc_thresh_reached_status()
678 struct hal_reo_status_hdr *desc = in ath12k_hal_reo_update_rx_reo_queue_status() local
682 le32_get_bits(desc->info0, in ath12k_hal_reo_update_rx_reo_queue_status()
685 le32_get_bits(desc->info0, in ath12k_hal_reo_update_rx_reo_queue_status()
796 struct hal_reo_get_queue_stats *desc; in ath12k_hal_reo_init_cmd_ring() local
809 desc = (struct hal_reo_get_queue_stats *)tlv->value; in ath12k_hal_reo_init_cmd_ring()
810 desc->cmd.info0 = le32_encode_bits(cmd_num++, in ath12k_hal_reo_init_cmd_ring()