Lines Matching refs:phdr
90 struct qcsmem_partition_header *phdr;
178 struct qcsmem_partition_header *phdr;
229 if (part->phdr != NULL)
231 phdr = (void *)(smem_va + pte->offset);
232 if (phdr->magic != QCSMEM_PART_HDR_MAGIC) {
234 phdr->magic);
237 if (pte->host[0] != phdr->host[0] ||
238 pte->host[1] != phdr->host[1]) {
240 pte->host[0], phdr->host[0],
241 pte->host[1], phdr->host[1]);
244 if (pte->size != phdr->size) {
246 pte->size, phdr->size);
249 if (phdr->offset_free_uncached > phdr->size) {
251 phdr->offset_free_uncached, phdr->size);
254 part->phdr = phdr;
258 if (sc->sc_global_partition.phdr == NULL) {
279 struct qcsmem_partition_header *phdr = part->phdr;
280 uintptr_t phdr_va = (uintptr_t)phdr;
282 entry = (void *)&phdr[1];
283 last = (void *)(phdr_va + phdr->offset_free_uncached);
305 phdr_va + phdr->offset_free_cached)
315 phdr->offset_free_uncached += sizeof(*entry) + entry->size;
367 sc->sc_partitions[host].phdr != NULL) {
370 } else if (sc->sc_global_partition.phdr != NULL) {
387 struct qcsmem_partition_header *phdr = part->phdr;
388 uintptr_t phdr_va = (uintptr_t)phdr;
390 entry = (void *)&phdr[1];
391 last = (void *)(phdr_va + phdr->offset_free_uncached);
417 entry = (void *)(phdr_va + phdr->size -
419 last = (void *)(phdr_va + phdr->offset_free_cached);
498 sc->sc_partitions[host].phdr != NULL) {
501 } else if (sc->sc_global_partition.phdr != NULL) {