Lines Matching refs:le32_to_cpu

277 	return p + le32_to_cpu(phdr->offset_free_uncached);  in phdr_to_last_uncached_entry()
285 return p + le32_to_cpu(phdr->size) - ALIGN(sizeof(*phdr), cacheline); in phdr_to_first_cached_entry()
292 return p + le32_to_cpu(phdr->offset_free_cached); in phdr_to_last_cached_entry()
309 le32_to_cpu(e->size); in uncached_entry_next()
317 return p - le32_to_cpu(e->size) - ALIGN(sizeof(*e), cacheline); in cached_entry_next()
331 return p - le32_to_cpu(e->size); in cached_entry_to_item()
374 hdr->padding_data = cpu_to_le16(le32_to_cpu(hdr->size) - size); in qcom_smem_alloc_private()
401 if (WARN_ON(size > le32_to_cpu(header->available))) in qcom_smem_alloc_global()
475 aux_base = le32_to_cpu(entry->aux_base) & AUX_BASE_MASK; in qcom_smem_get_global()
482 *size = le32_to_cpu(entry->size); in qcom_smem_get_global()
483 return area->virt_base + le32_to_cpu(entry->offset); in qcom_smem_get_global()
507 *size = le32_to_cpu(e->size) - in qcom_smem_get_private()
527 *size = le32_to_cpu(e->size) - in qcom_smem_get_private()
600 ret = le32_to_cpu(phdr->offset_free_cached) - in qcom_smem_get_free_space()
601 le32_to_cpu(phdr->offset_free_uncached); in qcom_smem_get_free_space()
604 ret = le32_to_cpu(phdr->offset_free_cached) - in qcom_smem_get_free_space()
605 le32_to_cpu(phdr->offset_free_uncached); in qcom_smem_get_free_space()
608 ret = le32_to_cpu(header->available); in qcom_smem_get_free_space()
622 return le32_to_cpu(versions[SMEM_MASTER_SBL_VERSION_INDEX]); in qcom_smem_get_sbl_version()
634 version = le32_to_cpu(ptable->version); in qcom_smem_get_ptable()
671 for (i = 0; i < le32_to_cpu(ptable->num_entries); i++) { in qcom_smem_set_global_partition()
685 if (!le32_to_cpu(entry->offset) || !le32_to_cpu(entry->size)) { in qcom_smem_set_global_partition()
695 header = smem->regions[0].virt_base + le32_to_cpu(entry->offset); in qcom_smem_set_global_partition()
709 if (le32_to_cpu(header->size) != le32_to_cpu(entry->size)) { in qcom_smem_set_global_partition()
714 size = le32_to_cpu(header->offset_free_uncached); in qcom_smem_set_global_partition()
715 if (size > le32_to_cpu(header->size)) { in qcom_smem_set_global_partition()
722 smem->global_cacheline = le32_to_cpu(entry->cacheline); in qcom_smem_set_global_partition()
741 for (i = 0; i < le32_to_cpu(ptable->num_entries); i++) { in qcom_smem_enumerate_partitions()
749 if (!le32_to_cpu(entry->offset)) in qcom_smem_enumerate_partitions()
752 if (!le32_to_cpu(entry->size)) in qcom_smem_enumerate_partitions()
774 header = smem->regions[0].virt_base + le32_to_cpu(entry->offset); in qcom_smem_enumerate_partitions()
797 if (le32_to_cpu(header->size) != le32_to_cpu(entry->size)) { in qcom_smem_enumerate_partitions()
803 if (le32_to_cpu(header->offset_free_uncached) > le32_to_cpu(header->size)) { in qcom_smem_enumerate_partitions()
810 smem->cacheline[remote_host] = le32_to_cpu(entry->cacheline); in qcom_smem_enumerate_partitions()
876 if (le32_to_cpu(header->initialized) != 1 || in qcom_smem_probe()
877 le32_to_cpu(header->reserved)) { in qcom_smem_probe()