Lines Matching defs:size

107  *   size_1: size of first PAS
109 * size_2: size of second PAS
143 pas_regions[i].base_pa, pas_regions[i].size)) {
152 * proper alignment of base and size, that the GPI is valid, and that no regions
180 pas_regions[idx].size) {
186 if (((pas_regions[idx].base_pa + pas_regions[idx].size) >
200 pas_regions[idx].size,
202 pas_regions[i].size)) {
216 i <= GPT_L0_IDX(pas_regions[idx].base_pa + pas_regions[idx].size - 1);
236 /* Make sure base and size are block-aligned. */
238 !GPT_IS_L0_ALIGNED(pas_regions[idx].size)) {
250 /* Make sure base and size are granule-aligned. */
252 !GPT_IS_L1_ALIGNED(gpt_config.p, pas_regions[idx].size)) {
260 pas_regions[idx].size - 1) -
281 pas_regions[idx].size - 1),
332 /* Alignment must be the greater of 4k or l0 table size. */
344 /* Check size. */
361 * l1_mem_size Total size of memory available for L1 tables.
378 /* Make sure L1 tables are aligned to their size. */
390 ERROR("[GPT] Overflow calculating L1 memory size.\n");
442 end_idx = GPT_L0_IDX(pas->base_pa + pas->size);
582 end_pa = pas->base_pa + pas->size;
655 end_idx = GPT_L0_IDX(pas[0].base_pa + pas[0].size - 1);
662 if (GPT_L0_IDX(pas[idx].base_pa + pas[idx].size - 1) > end_idx) {
663 end_idx = GPT_L0_IDX(pas[idx].base_pa + pas[idx].size - 1);
760 * l0_mem_size Total size of memory available for L0 tables.
812 * l1_mem_size Total size of memory available for L1 tables.
873 INFO("[GPT] PAS[%u]: base 0x%lx, size 0x%lx, GPI 0x%x, type 0x%x\n",
874 idx, pas_regions[idx].base_pa, pas_regions[idx].size,
1012 * aligned to granule size.
1013 * size Size of region to transition, must be aligned to granule
1014 * size.
1020 int gpt_delegate_pas(uint64_t base, size_t size, unsigned int src_sec_state)
1038 if (size != GPT_PGS_ACTUAL_SIZE(gpt_config.p)) {
1042 /* Check that base and size are valid */
1043 if ((ULONG_MAX - base) < size) {
1046 VERBOSE(" Size=0x%lx\n", size);
1050 /* Make sure base and size are valid. */
1052 ((size & (GPT_PGS_ACTUAL_SIZE(gpt_config.p) - 1)) != 0UL) ||
1053 (size == 0UL) ||
1054 ((base + size) >= GPT_PPS_ACTUAL_SIZE(gpt_config.t))) {
1057 VERBOSE(" Size=0x%lx\n", size);
1135 * aligned to granule size.
1136 * size Size of region to transition, must be aligned to granule
1137 * size.
1143 int gpt_undelegate_pas(uint64_t base, size_t size, unsigned int src_sec_state)
1160 if (size != GPT_PGS_ACTUAL_SIZE(gpt_config.p)) {
1164 /* Check that base and size are valid */
1165 if ((ULONG_MAX - base) < size) {
1168 VERBOSE(" Size=0x%lx\n", size);
1172 /* Make sure base and size are valid. */
1174 ((size & (GPT_PGS_ACTUAL_SIZE(gpt_config.p) - 1)) != 0UL) ||
1175 (size == 0UL) ||
1176 ((base + size) >= GPT_PPS_ACTUAL_SIZE(gpt_config.t))) {
1179 VERBOSE(" Size=0x%lx\n", size);