/openbmc/linux/drivers/soc/qcom/ |
H A D | smem.c | 16 #include <linux/soc/qcom/smem.h> 38 * (@smem_ptable), that is found 4kB from the end of the main smem region. The 55 * region with partition type (SMEM_GLOBAL_HOST) and the max smem item count is 65 * The version member of the smem header contains an array of versions for the 104 * struct smem_global_entry - entry to reference smem items on the heap 120 * struct smem_header - header found in beginning of primary smem region 123 * @initialized: boolean to indicate that smem is initialized 124 * @free_offset: index of the first unallocated byte in smem 200 * struct smem_partition - describes smem partition 218 * @item: identifying number of the smem item [all …]
|
H A D | smem_state.c | 99 "qcom,smem-state-names", in qcom_smem_state_get() 102 dev_err(dev, "missing qcom,smem-state-names\n"); in qcom_smem_state_get() 108 "qcom,smem-states", in qcom_smem_state_get() 109 "#qcom,smem-state-cells", in qcom_smem_state_get() 113 dev_err(dev, "failed to parse qcom,smem-states property\n"); in qcom_smem_state_get() 118 dev_err(dev, "invalid #qcom,smem-state-cells\n"); in qcom_smem_state_get()
|
/openbmc/linux/drivers/rpmsg/ |
H A D | qcom_glink_smem.c | 19 #include <linux/soc/qcom/smem.h> 58 struct qcom_glink_smem *smem; member 66 struct qcom_glink_smem *smem = pipe->smem; in glink_smem_rx_avail() local 73 fifo = qcom_smem_get(smem->remote_pid, in glink_smem_rx_avail() 198 struct qcom_glink_smem *smem = pipe->smem; in glink_smem_tx_kick() local 200 mbox_send_message(smem->mbox_chan, NULL); in glink_smem_tx_kick() 201 mbox_client_txdone(smem->mbox_chan, 0); in glink_smem_tx_kick() 206 struct qcom_glink_smem *smem = data; in qcom_glink_smem_intr() local 208 qcom_glink_native_rx(smem->glink); in qcom_glink_smem_intr() 215 struct qcom_glink_smem *smem = container_of(dev, struct qcom_glink_smem, dev); in qcom_glink_smem_release() local [all …]
|
/openbmc/u-boot/drivers/smem/ |
H A D | msm_smem.c | 16 #include <smem.h> 39 * (@smem_ptable), that is found 4kB from the end of the main smem region. The 56 * region with partition type (SMEM_GLOBAL_HOST) and the max smem item count is 62 * The version member of the smem header contains an array of versions for the 101 * struct smem_global_entry - entry to reference smem items on the heap 117 * struct smem_header - header found in beginning of primary smem region 120 * @initialized: boolean to indicate that smem is initialized 121 * @free_offset: index of the first unallocated byte in smem 201 * @item: identifying number of the smem item 218 * struct smem_info - smem region info located after the table of contents [all …]
|
H A D | Kconfig | 1 menuconfig SMEM config 2 bool "SMEM (Shared Memory mamanger) support" 4 if SMEM 7 bool "Sandbox Shared Memory Manager (SMEM)" 10 enable SMEM support for sandbox. This is an emulation of a real SMEM 16 bool "Qualcomm Shared Memory Manager (SMEM)" 24 endif # menu "SMEM Support"
|
H A D | smem-uclass.c | 8 #include <smem.h> 42 UCLASS_DRIVER(smem) = { 44 .name = "smem",
|
/openbmc/u-boot/include/ |
H A D | smem.h | 19 /* struct smem_ops: Operations for the SMEM uclass */ 22 * alloc() - allocate space for a smem item 25 * @item: smem item handle 33 * get() - Resolve ptr of size of a smem item 36 * @item: smem item handle 44 * get_free_space() - Get free space in smem in bytes 56 * smem_alloc() - allocate space for a smem item 58 * @item: smem item handle 62 * Allocate space for a given smem item of size @size, given that the item is 68 * smem_get() - resolve ptr of size of a smem item [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/meta-python/recipes-support/smem/smem/ |
H A D | 0001-smem-fix-support-for-source-option-python3.patch | 4 Subject: [PATCH] smem: fix support for --source option (python3) 11 File "./smem", line 727, in <module> 13 File "./smem", line 299, in showpids 15 File "./smem", line 519, in showtable 17 File "./smem", line 118, in totalmem 19 File "./smem", line 193, in memory 32 smem | 4 ++-- 35 diff --git a/smem b/smem 37 --- a/smem 38 +++ b/smem
|
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/meta-python/recipes-support/smem/ |
H A D | smem_1.5.bb | 2 DESCRIPTION = "smem is a tool that can give numerous reports on memory usage on Linux \ 3 systems. Unlike existing tools, smem can report proportional set size (PSS), \ 6 HOMEPAGE = "http://www.selenic.com/smem/" 14 file://0001-smem-fix-support-for-source-option-python3.patch" 17 UPSTREAM_CHECK_URI = "https://selenic.com/repo/smem/tags" 29 install -m 0755 ${S}/smem ${D}${bindir}/ 30 sed -i -e '1s,#!.*python.*,#!${USRBINPATH}/env python3,' ${D}${bindir}/smem 32 install -m 0644 ${S}/smem.8 ${D}/${mandir}/man8/
|
/openbmc/linux/Documentation/devicetree/bindings/soc/qcom/ |
H A D | qcom,smem.yaml | 4 $id: http://devicetree.org/schemas/soc/qcom/qcom,smem.yaml# 20 const: qcom,smem 27 description: handle to memory reservation for main SMEM memory region. 58 smem@fa00000 { 59 compatible = "qcom,smem"; 72 smem_region: smem@fa00000 { 78 smem { 79 compatible = "qcom,smem";
|
H A D | qcom,wcnss.yaml | 71 qcom,smem-states: 75 Should reference the tx-enable and tx-rings-empty SMEM states. 77 qcom,smem-state-names: 82 Names of SMEM states. 88 - qcom,smem-states 89 - qcom,smem-state-names 130 qcom,smem-states = <&apps_smsm 10>, <&apps_smsm 9>; 131 qcom,smem-state-names = "tx-enable", "tx-rings-empty";
|
H A D | qcom,smp2p.yaml | 55 qcom,smem: 60 Two identifiers of the inbound and outbound smem items used for this edge. 87 '#qcom,smem-state-cells': 101 - '#qcom,smem-state-cells' 110 - qcom,smem 129 qcom,smem = <431>, <451>; 137 #qcom,smem-state-cells = <1>;
|
/openbmc/linux/Documentation/devicetree/bindings/mtd/partitions/ |
H A D | qcom,smem-part.yaml | 4 $id: http://devicetree.org/schemas/mtd/partitions/qcom,smem-part.yaml# 7 title: Qualcomm SMEM NAND flash partition parser 14 Memory (SMEM) based partition table scheme. The maximum partitions supported 22 const: qcom,smem-part 37 compatible = "qcom,smem-part"; 45 compatible = "qcom,smem-part";
|
/openbmc/u-boot/arch/arm/mach-snapdragon/ |
H A D | dram.c | 11 #include <smem.h> 57 struct udevice *smem; in msm_fixup_memory() local 62 ret = uclass_get_device_by_name(UCLASS_SMEM, "smem", &smem); in msm_fixup_memory() 64 printf("Failed to find SMEM node. Check device tree\n"); in msm_fixup_memory() 68 ram_ptable = smem_get(smem, -1, SMEM_USABLE_RAM_PARTITION_TABLE, &size); in msm_fixup_memory() 71 printf("Failed to find SMEM partition.\n"); in msm_fixup_memory()
|
/openbmc/linux/drivers/mtd/parsers/ |
H A D | qcomsmempart.c | 3 * Qualcomm SMEM NAND flash partition parser 13 #include <linux/soc/qcom/smem.h> 28 * struct smem_flash_pentry - SMEM Flash partition entry 42 * struct smem_flash_ptable - SMEM Flash partition table 70 pr_err("%s: SMEM partition parser is incompatible with 4K sectors\n", in parse_qcomsmem_part() 75 pr_debug("Parsing partition table info from SMEM\n"); in parse_qcomsmem_part() 155 pr_debug("SMEM partition table found: ver: %d len: %d\n", in parse_qcomsmem_part() 182 { .compatible = "qcom,smem-part" }, 197 MODULE_DESCRIPTION("Qualcomm SMEM NAND flash partition parser");
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | qcom,bam-dmux.yaml | 40 qcom,smem-states: 47 qcom,smem-state-names: 67 - qcom,smem-states 68 - qcom,smem-state-names 86 qcom,smem-states = <&apps_smsm 1>, <&apps_smsm 11>; 87 qcom,smem-state-names = "pc", "pc-ack";
|
H A D | qcom,ipa.yaml | 116 qcom,smem-states: 123 qcom,smem-state-names: 170 - qcom,smem-states 215 qcom,smem = <94>, <432>; 221 #qcom,smem-state-cells = <1>; 269 qcom,smem-states = <&ipa_smp2p_out 0>, 271 qcom,smem-state-names = "ipa-clock-enabled-valid",
|
/openbmc/linux/Documentation/devicetree/bindings/remoteproc/ |
H A D | qcom,qcs404-cdsp-pil.yaml | 86 qcom,smem-states: 92 qcom,smem-state-names: 109 - qcom,smem-states 110 - qcom,smem-state-names 158 qcom,smem-states = <&cdsp_smp2p_out 0>; 159 qcom,smem-state-names = "stop";
|
H A D | qcom,sdm845-adsp-pil.yaml | 86 qcom,smem-states: 92 qcom,smem-state-names: 109 - qcom,smem-states 110 - qcom,smem-state-names 157 qcom,smem-states = <&adsp_smp2p_out 0>; 158 qcom,smem-state-names = "stop";
|
H A D | qcom,sc7280-adsp-pil.yaml | 89 qcom,smem-states: 95 qcom,smem-state-names: 134 - qcom,smem-states 135 - qcom,smem-state-names 180 qcom,smem-states = <&adsp_smp2p_out 0>; 181 qcom,smem-state-names = "stop";
|
H A D | qcom,pas-common.yaml | 55 qcom,smem-states: 61 qcom,smem-state-names: 85 - qcom,smem-states 86 - qcom,smem-state-names
|
H A D | qcom,sc7280-wpss-pil.yaml | 98 qcom,smem-states: 104 qcom,smem-state-names: 145 - qcom,smem-states 146 - qcom,smem-state-names 188 qcom,smem-states = <&wpss_smp2p_out 0>; 189 qcom,smem-state-names = "stop";
|
H A D | qcom,sc7180-mss-pil.yaml | 132 qcom,smem-states: 138 qcom,smem-state-names: 181 - qcom,smem-states 182 - qcom,smem-state-names 231 qcom,smem-states = <&modem_smp2p_out 0>; 232 qcom,smem-state-names = "stop";
|
/openbmc/linux/drivers/net/ipa/ |
H A D | ipa_mem.c | 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() [all …]
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | cow.c | 1350 typedef void (*non_anon_test_fn)(char *mem, const char *smem, size_t size); 1352 static void test_cow(char *mem, const char *smem, size_t size) in test_cow() argument 1357 memcpy(old, smem, size); in test_cow() 1363 ksft_test_result(!memcmp(smem, old, size), in test_cow() 1368 static void test_ro_pin(char *mem, const char *smem, size_t size) in test_ro_pin() argument 1373 static void test_ro_fast_pin(char *mem, const char *smem, size_t size) in test_ro_fast_pin() argument 1380 char *mem, *smem, tmp; in run_with_zeropage() local 1391 smem = mmap(NULL, pagesize, PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); in run_with_zeropage() 1398 tmp = *mem + *smem; in run_with_zeropage() 1401 fn(mem, smem, pagesize); in run_with_zeropage() [all …]
|