Lines Matching defs:region

38  * (@smem_ptable), that is found 4kB from the end of the main smem region. The
40 * (or hosts) and their location in the main shared memory region.
44 * two regions are cached and non-cached memory respectively. Each region
48 * Items in the non-cached region are allocated from the start of the partition
49 * while items in the cached region are allocated from the end. The free area
50 * is hence the region between the cached and non-cached offsets. The header of
55 * region with partition type (SMEM_GLOBAL_HOST) and the max smem item count is
108 * @aux_base: base address for the memory region used by this unit, or 0 for
109 * the default region. bits 0,1 are reserved
120 * struct smem_header - header found in beginning of primary smem region
141 * @offset: offset, within the main shared memory region, of the partition
235 * struct smem_info - smem region info located after the table of contents
237 * @size: size of the smem region
238 * @base_addr: base address of the smem region
256 * @size: size of the memory region
406 /* Check that we don't grow into the cached region */
522 struct smem_region *region;
537 region = &smem->regions[i];
539 if ((u32)region->aux_base == aux_base || !aux_base) {
543 if (WARN_ON(e_size + entry_offset > region->size))
549 return region->virt_base + entry_offset;
746 * Returns 0 if the pointer provided is not within any smem region.
1011 static int qcom_smem_map_toc(struct qcom_smem *smem, struct smem_region *region)
1016 region->virt_base = devm_ioremap_wc(smem->dev, region->aux_base, SZ_4K);
1017 ptable_start = region->aux_base + region->size - SZ_4K;
1021 if (!region->virt_base || !smem->ptable)
1043 struct smem_region *region)
1061 region->aux_base = r.start;
1062 region->size = resource_size(&r);
1098 * Fall back to the memory-region reference, if we're not a
1101 ret = qcom_smem_resolve_mem(smem, "memory-region", &smem->regions[0]);