Lines Matching +full:ipa +full:- +full:shared

1 /* SPDX-License-Identifier: GPL-2.0 */
3 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
4 * Copyright (C) 2019-2020 Linaro Ltd.
10 #include <linux/dma-direction.h>
15 struct ipa;
21 * enum ipa_cmd_opcode: IPA immediate commands
27 * @IPA_CMD_HDR_INIT_LOCAL: Initialize IPA-local header memory
28 * @IPA_CMD_REGISTER_WRITE: Register write performed by IPA
30 * @IPA_CMD_DMA_SHARED_MEM: DMA command performed by IPA
50 * struct ipa_cmd_info - information needed for an IPA immediate command
61 * ipa_cmd_table_valid() - Validate a memory region holding a table
62 * @ipa: - IPA pointer
63 * @mem: - IPA memory region descriptor
64 * @route: - Whether the region holds a route or filter table
68 bool ipa_cmd_table_valid(struct ipa *ipa, const struct ipa_mem *mem,
72 * ipa_cmd_data_valid() - Validate command-realted configuration is valid
73 * @ipa: - IPA pointer
77 bool ipa_cmd_data_valid(struct ipa *ipa);
80 * ipa_cmd_pool_init() - initialize command channel pools
81 * @channel: AP->IPA command TX GSI channel pointer
89 * ipa_cmd_pool_exit() - Inverse of ipa_cmd_pool_init()
90 * @channel: AP->IPA command TX GSI channel pointer
95 * ipa_cmd_table_init_add() - Add table init command to a transaction
97 * @opcode: IPA immediate command opcode
98 * @size: Size of non-hashed routing table memory
99 * @offset: Offset in IPA shared memory of non-hashed routing table memory
100 * @addr: DMA address of non-hashed table data to write
102 * @hash_offset: Offset in IPA shared memory of hashed routing table memory
113 * ipa_cmd_hdr_init_local_add() - Add a header init command to a transaction
115 * @offset: Offset of header memory in IPA local space
119 * Defines and fills the location in IPA memory to use for headers.
125 * ipa_cmd_register_write_add() - Add a register write command to a transaction
136 * ipa_cmd_dma_shared_mem_add() - Add a DMA memory command to a transaction
138 * @offset: Offset of IPA memory to be read or written
141 * @toward_ipa: true means write to IPA memory; false means read
147 * ipa_cmd_pipeline_clear_add() - Add pipeline clear commands to a transaction
153 * ipa_cmd_pipeline_clear_count() - # commands required to clear pipeline
161 * ipa_cmd_pipeline_clear_wait() - Wait pipeline clear to complete
162 * @ipa: - IPA pointer
164 void ipa_cmd_pipeline_clear_wait(struct ipa *ipa);
167 * ipa_cmd_pipeline_clear() - Clear the hardware pipeline
168 * @ipa: - IPA pointer
170 void ipa_cmd_pipeline_clear(struct ipa *ipa);
173 * ipa_cmd_trans_alloc() - Allocate a transaction for the command TX endpoint
174 * @ipa: IPA pointer
180 struct gsi_trans *ipa_cmd_trans_alloc(struct ipa *ipa, u32 tre_count);