Lines Matching full:smem
13 #include <linux/soc/qcom/smem.h>
26 /* SMEM host id representing the modem. */
512 * ipa_smem_init() - Initialize SMEM memory used by the IPA
514 * @item: Item ID of SMEM memory
515 * @size: Size (bytes) of SMEM memory region
517 * SMEM is a managed block of shared DRAM, from which numbered "items"
520 * The modem accesses SMEM memory directly, but the IPA accesses it
540 return 0; /* SMEM memory not used */ in ipa_smem_init()
542 /* SMEM is memory shared between the AP and another system entity in ipa_smem_init()
543 * (in this case, the modem). An allocation from SMEM is persistent in ipa_smem_init()
544 * until the AP reboots; there is no way to free an allocated SMEM in ipa_smem_init()
552 dev_err(dev, "error %d allocating size %zu SMEM item %u\n", in ipa_smem_init()
557 /* Now get the address of the SMEM memory region */ in ipa_smem_init()
561 dev_err(dev, "error %d getting SMEM item %u\n", ret, item); in ipa_smem_init()
567 dev_err(dev, "SMEM item %u has size %zu, expected %zu\n", in ipa_smem_init()
574 dev_err(dev, "no IOMMU domain found for SMEM\n"); in ipa_smem_init()
606 dev_warn(dev, "unmapped %zu SMEM bytes, expected %zu\n", in ipa_smem_exit()
610 dev_err(dev, "couldn't get IPA IOMMU domain for SMEM\n"); in ipa_smem_exit()