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
24 * The numeric values here are the opcodes for IPA v3.5.1 hardware.
43 * struct ipa_cmd_info - information needed for an IPA immediate command
57 * ipa_cmd_table_valid() - Validate a memory region holding a table
58 * @ipa: - IPA pointer
59 * @mem: - IPA memory region descriptor
60 * @route: - Whether the region holds a route or filter table
61 * @ipv6: - Whether the table is for IPv6 or IPv4
62 * @hashed: - Whether the table is hashed or non-hashed
66 bool ipa_cmd_table_valid(struct ipa *ipa, const struct ipa_mem *mem,
70 * ipa_cmd_data_valid() - Validate command-realted configuration is valid
71 * @ipa: - IPA pointer
75 bool ipa_cmd_data_valid(struct ipa *ipa);
79 static inline bool ipa_cmd_table_valid(struct ipa *ipa, in ipa_cmd_table_valid() argument
86 static inline bool ipa_cmd_data_valid(struct ipa *ipa) in ipa_cmd_data_valid() argument
94 * ipa_cmd_pool_init() - initialize command channel pools
95 * @channel: AP->IPA command TX GSI channel pointer
103 * ipa_cmd_pool_exit() - Inverse of ipa_cmd_pool_init()
104 * @channel: AP->IPA command TX GSI channel pointer
109 * ipa_cmd_table_init_add() - Add table init command to a transaction
111 * @opcode: IPA immediate command opcode
112 * @size: Size of non-hashed routing table memory
113 * @offset: Offset in IPA shared memory of non-hashed routing table memory
114 * @addr: DMA address of non-hashed table data to write
116 * @hash_offset: Offset in IPA shared memory of hashed routing table memory
127 * ipa_cmd_hdr_init_local_add() - Add a header init command to a transaction
128 * @ipa: IPA structure
129 * @offset: Offset of header memory in IPA local space
133 * Defines and fills the location in IPA memory to use for headers.
139 * ipa_cmd_register_write_add() - Add a register write command to a transaction
150 * ipa_cmd_dma_shared_mem_add() - Add a DMA memory command to a transaction
152 * @offset: Offset of IPA memory to be read or written
155 * @toward_ipa: true means write to IPA memory; false means read
161 * ipa_cmd_tag_process_add() - Add IPA tag process commands to a transaction
167 * ipa_cmd_tag_process_add_count() - Number of commands in a tag process
175 * ipa_cmd_tag_process() - Perform a tag process
180 void ipa_cmd_tag_process(struct ipa *ipa);
183 * ipa_cmd_trans_alloc() - Allocate a transaction for the command TX endpoint
184 * @ipa: IPA pointer
190 struct gsi_trans *ipa_cmd_trans_alloc(struct ipa *ipa, u32 tre_count);