Lines Matching +full:memory +full:- +full:region

1 /* SPDX-License-Identifier: GPL-2.0 */
3 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
4 * Copyright (C) 2019-2021 Linaro Ltd.
13 * DOC: IPA Local Memory
15 * The IPA has a block of shared memory, divided into regions used for
19 * the "ipa-shared" memory range) and size found in the IPA_SHARED_MEM_SIZE
22 * Each region is optionally preceded by one or more 32-bit "canary" values.
23 * These are meant to detect out-of-range writes (if they become corrupted).
24 * A given region (such as a filter or routing table) has the same number
28 * The set of memory regions is defined in configuration data. They are
30 * - a zero offset and zero size represents and undefined region
31 * - a region's size does not include space for its "canary" values
32 * - a region's offset is defined to be *past* all "canary" values
33 * - offset must be large enough to account for all canaries
34 * - a region's size may be zero, but may still have canaries
35 * - all offsets must be 8-byte aligned
36 * - most sizes must be a multiple of 8
37 * - modem memory size must be a multiple of 4
38 * - the microcontroller ring offset must be a multiple of 1024
41 /* The maximum allowed size for any memory region */
44 /* IPA-resident memory region ids */
68 IPA_MEM_STATS_V4_FILTER, /* 0 canaries (IPA v4.0-v4.2) */
69 IPA_MEM_STATS_V6_FILTER, /* 0 canaries (IPA v4.0-v4.2) */
70 IPA_MEM_STATS_V4_ROUTE, /* 0 canaries (IPA v4.0-v4.2) */
71 IPA_MEM_STATS_V6_ROUTE, /* 0 canaries (IPA v4.0-v4.2) */
74 IPA_MEM_END_MARKER, /* 1 canary (not a real region) */
79 * struct ipa_mem - IPA local memory region description
80 * @id: memory region identifier
81 * @offset: offset in IPA memory space to base of the region
82 * @size: size in bytes base of the region
83 * @canary_count: Number of 32-bit "canary" values that precede region