Lines Matching refs:size

26     { .base = 0x10000000,                   .size = 256 << 10 },
27 { .base = 0x20000000 - 1 * (256 << 10), .size = 256 << 10 },
28 { .base = 0x20000000 + 3 * (256 << 10), .size = 256 << 10 },
29 { .base = 0x20000000, .size = 256 << 10 }, // Merges with before (ndx 1)
30 { .base = 0x20000000 + 2 * (256 << 10), .size = 256 << 10 }, // Merges with after (ndx 2)
31 { .base = 0x20000000 + 1 * (256 << 10), .size = 256 << 10 }, // Merges with before/after
32 { .base = 0x1000000000000000, .size = 256 << 10 },
33 { .base = 0x2000000000000000, .size = 256 << 10 },
37 { .base = 0x10000000 - (256 << 10) + 1, .size = 256 << 10 },
38 { .base = 0x10000000 - 1, .size = 256 << 10 },
39 { .base = 0x10000000 + (256 << 10) - 1, .size = 256 << 10 },
40 { .base = 0x10000000 - 1, .size = 512 << 10 },
41 { .base = 0x10000000 + 1, .size = 128 << 10 },
43 { .base = 0x1000000000000000 - (256 << 10) + 1, .size = 256 << 10 },
44 { .base = 0x1000000000000000 - 1, .size = 256 << 10 },
45 { .base = 0x1000000000000000 + (256 << 10) - 1, .size = 256 << 10 },
46 { .base = 0x1000000000000000 - 1, .size = 512 << 10 },
47 { .base = 0x1000000000000000 + 1, .size = 128 << 10 },
49 { .base = 0x2000000000000000 - (256 << 10) + 1, .size = 256 << 10 },
50 { .base = 0x2000000000000000 - 1, .size = 256 << 10 },
51 { .base = 0x2000000000000000 + (256 << 10) - 1, .size = 256 << 10 },
52 { .base = 0x2000000000000000 - 1, .size = 512 << 10 },
53 { .base = 0x2000000000000000 + 1, .size = 128 << 10 },
55 { .base = 0xFFFFFFFFFFFFFFFF, .size = 0x1 },
56 { .base = 0xFFFFFFFF00000000, .size = 0x100000000 },
62 uint64_t contained_end = contained->base + contained->size - 1;
63 uint64_t contained_by_end = contained_by->base + contained_by->size - 1;
78 { .base = ALLOC_BY_SIZE_SMALL_REGION_BASE, .size = ALLOC_BY_SIZE_SMALL_REGION_SIZE },
79 { .base = ALLOC_BY_SIZE_LARGE_REGION_BASE, .size = ALLOC_BY_SIZE_LARGE_REGION_SIZE },
83 uint64_t size;
91 { .size = 0x00000000, .align = 0x00000001, .res = ZX_ERR_INVALID_ARGS, 0 }, // bad size
92 { .size = 0x00000001, .align = 0x00000000, .res = ZX_ERR_INVALID_ARGS, 0 }, // bad align
93 { .size = 0x00000001, .align = 0x00001001, .res = ZX_ERR_INVALID_ARGS, 0 }, // bad align
96 { .size = 0x10000000, .align = 0x00000001, .res = ZX_ERR_NOT_FOUND, 0 }, // too large
97 { .size = 0x00005000, .align = 0x10000000, .res = ZX_ERR_NOT_FOUND, 0 }, // Cannot align
100 { .size = (1 << 0), .align = (1 << 1), .res = ZX_OK, .region = 0 },
101 { .size = (1 << 1), .align = (1 << 2), .res = ZX_OK, .region = 0 },
102 { .size = (1 << 2), .align = (1 << 3), .res = ZX_OK, .region = 0 },
103 { .size = (1 << 3), .align = (1 << 4), .res = ZX_OK, .region = 0 },
104 { .size = (1 << 4), .align = (1 << 5), .res = ZX_OK, .region = 0 },
105 { .size = (1 << 5), .align = (1 << 6), .res = ZX_OK, .region = 0 },
106 { .size = (1 << 6), .align = (1 << 7), .res = ZX_OK, .region = 0 },
107 { .size = (1 << 7), .align = (1 << 8), .res = ZX_OK, .region = 0 },
108 { .size = (1 << 8), .align = (1 << 9), .res = ZX_OK, .region = 0 },
109 { .size = (1 << 9), .align = (1 << 10), .res = ZX_OK, .region = 0 },
110 { .size = (1 << 10), .align = (1 << 11), .res = ZX_OK, .region = 0 },
115 { .size = (4 << 10), .align = (4 << 10), .res = ZX_OK, .region = 1 }, // front of region 1
116 { .size = (4 << 10), .align = (4 << 11), .res = ZX_OK, .region = 1 }, // middle of region 1
117 { .size = 0xfc000, .align = (4 << 12), .res = ZX_OK, .region = 1 }, // back of region 1
122 { .size = (3), .align = (1 << 0), .res = ZX_OK, .region = 0 },
123 { .size = (1 << 1), .align = (1 << 1), .res = ZX_OK, .region = 0 },
124 { .size = (1 << 2), .align = (1 << 2), .res = ZX_OK, .region = 0 },
125 { .size = (1 << 3), .align = (1 << 3), .res = ZX_OK, .region = 0 },
126 { .size = (1 << 4), .align = (1 << 4), .res = ZX_OK, .region = 0 },
127 { .size = (1 << 5), .align = (1 << 5), .res = ZX_OK, .region = 0 },
128 { .size = (1 << 6), .align = (1 << 6), .res = ZX_OK, .region = 0 },
129 { .size = (1 << 7), .align = (1 << 7), .res = ZX_OK, .region = 0 },
130 { .size = (1 << 8), .align = (1 << 8), .res = ZX_OK, .region = 0 },
131 { .size = (1 << 9), .align = (1 << 9), .res = ZX_OK, .region = 0 },
132 { .size = (1 << 10), .align = (1 << 10), .res = ZX_OK, .region = 0 },
136 { .size = 1, .align = 1, .res = ZX_OK, .region = 1 },
141 { .size = (4 << 10), .align = 1, .res = ZX_OK, .region = 1 },
142 { .size = (4 << 10), .align = 1, .res = ZX_ERR_NOT_FOUND, 0 },
146 { .size = 0xFFF, .align = 1, .res = ZX_OK, .region = 1 },
147 { .size = 1, .align = 1, .res = ZX_ERR_NOT_FOUND, 0 },
154 { .base = ALLOC_SPECIFIC_REGION_BASE, .size = ALLOC_SPECIFIC_REGION_SIZE },
164 { .req = { .base = 0x0000000000000000, .size = 0x00 }, .res = ZX_ERR_INVALID_ARGS }, // 0 size
165 { .req = { .base = 0xffffffffffffffff, .size = 0x01 }, .res = ZX_ERR_INVALID_ARGS }, // wraps
166 { .req = { .base = 0xfffffffffffffff0, .size = 0x20 }, .res = ZX_ERR_INVALID_ARGS }, // wraps
169 { .req = { .base = 0x0800, .size = 0x1 }, .res = ZX_ERR_NOT_FOUND }, // total miss
170 { .req = { .base = 0x0fff, .size = 0x100 }, .res = ZX_ERR_NOT_FOUND }, // clips the front
171 { .req = { .base = 0x1f01, .size = 0x100 }, .res = ZX_ERR_NOT_FOUND }, // clips the back
172 { .req = { .base = 0x2000, .size = 0x1 }, .res = ZX_ERR_NOT_FOUND }, // total miss
175 { .req = { .base = 0x1000, .size = 0x100 }, .res = ZX_OK }, // front of range.
176 { .req = { .base = 0x1f00, .size = 0x100 }, .res = ZX_OK }, // back of range.
177 { .req = { .base = 0x1700, .size = 0x200 }, .res = ZX_OK }, // middle of range.
180 { .req = { .base = 0x1000, .size = 0x100 }, .res = ZX_ERR_NOT_FOUND },
181 { .req = { .base = 0x1080, .size = 0x80 }, .res = ZX_ERR_NOT_FOUND },
182 { .req = { .base = 0x10ff, .size = 0x1 }, .res = ZX_ERR_NOT_FOUND },
183 { .req = { .base = 0x10ff, .size = 0x100 }, .res = ZX_ERR_NOT_FOUND },
185 { .req = { .base = 0x1f00, .size = 0x100 }, .res = ZX_ERR_NOT_FOUND },
186 { .req = { .base = 0x1e01, .size = 0x100 }, .res = ZX_ERR_NOT_FOUND },
187 { .req = { .base = 0x1e81, .size = 0x80 }, .res = ZX_ERR_NOT_FOUND },
188 { .req = { .base = 0x1eff, .size = 0x2 }, .res = ZX_ERR_NOT_FOUND },
190 { .req = { .base = 0x1800, .size = 0x100 }, .res = ZX_ERR_NOT_FOUND },
191 { .req = { .base = 0x1880, .size = 0x100 }, .res = ZX_ERR_NOT_FOUND },
192 { .req = { .base = 0x1780, .size = 0x100 }, .res = ZX_ERR_NOT_FOUND },
195 { .req = { .base = 0x1100, .size = 0x600 }, .res = ZX_OK },
196 { .req = { .base = 0x1900, .size = 0x600 }, .res = ZX_OK },
210 { .reg = { .base = 0x10000, .size = 0x1000 }, .ovl = false, .cnt = 1, .res = ZX_OK },
211 { .reg = { .base = 0x10000, .size = 0x1000 }, .ovl = false, .cnt = 1, .res = ZX_ERR_INVALID_ARGS },
212 { .reg = { .base = 0x10000, .size = 0x1000 }, .ovl = true, .cnt = 1, .res = ZX_OK },
217 { .reg = { .base = 0xF800, .size = 0x800 }, .ovl = false, .cnt = 1, .res = ZX_OK },
218 { .reg = { .base = 0xF800, .size = 0x800 }, .ovl = true, .cnt = 1, .res = ZX_OK },
222 { .reg = { .base = 0x11000, .size = 0x800 }, .ovl = false, .cnt = 1, .res = ZX_OK },
223 { .reg = { .base = 0x11000, .size = 0x800 }, .ovl = true, .cnt = 1, .res = ZX_OK },
228 { .reg = { .base = 0xF000, .size = 0x801 }, .ovl = false, .cnt = 1, .res = ZX_ERR_INVALID_ARGS },
229 { .reg = { .base = 0xF000, .size = 0x801 }, .ovl = true, .cnt = 1, .res = ZX_OK },
233 { .reg = { .base = 0x117FF, .size = 0x801 }, .ovl = false, .cnt = 1, .res = ZX_ERR_INVALID_ARGS },
234 { .reg = { .base = 0x117FF, .size = 0x801 }, .ovl = true, .cnt = 1, .res = ZX_OK },
238 { .reg = { .base = 0xE000, .size = 0x5000 }, .ovl = false, .cnt = 1, .res = ZX_ERR_INVALID_ARGS },
239 { .reg = { .base = 0xE000, .size = 0x5000 }, .ovl = true, .cnt = 1, .res = ZX_OK },
242 { .reg = { .base = 0x14000, .size = 0x1000 }, .ovl = false, .cnt = 2, .res = ZX_OK },
243 { .reg = { .base = 0x16000, .size = 0x1000 }, .ovl = false, .cnt = 3, .res = ZX_OK },
244 { .reg = { .base = 0x18000, .size = 0x1000 }, .ovl = false, .cnt = 4, .res = ZX_OK },
245 { .reg = { .base = 0x1A000, .size = 0x1000 }, .ovl = false, .cnt = 5, .res = ZX_OK },
246 { .reg = { .base = 0x1C000, .size = 0x1000 }, .ovl = false, .cnt = 6, .res = ZX_OK },
252 { .reg = { .base = 0x12FFF, .size = 0x1002 }, .ovl = false, .cnt = 6, .res = ZX_ERR_INVALID_ARGS },
253 { .reg = { .base = 0x12FFF, .size = 0x1002 }, .ovl = true, .cnt = 5, .res = ZX_OK },
260 { .reg = { .base = 0x15800, .size = 0x3000 }, .ovl = false, .cnt = 5, .res = ZX_ERR_INVALID_ARGS },
261 { .reg = { .base = 0x15800, .size = 0x3000 }, .ovl = true, .cnt = 4, .res = ZX_OK },
266 { .reg = { .base = 0x18800, .size = 0x3000 }, .ovl = false, .cnt = 4, .res = ZX_ERR_INVALID_ARGS },
267 { .reg = { .base = 0x18800, .size = 0x3000 }, .ovl = true, .cnt = 3, .res = ZX_OK },
273 { .reg = { .base = 0xD000, .size = 0x11000 }, .ovl = false, .cnt = 3, .res = ZX_ERR_INVALID_ARGS },
274 { .reg = { .base = 0xD000, .size = 0x11000 }, .ovl = true, .cnt = 1, .res = ZX_OK },
288 #define REG(_b, _s) { .base = (_b), .size = (_s) }