/Linux-v5.4/drivers/gpu/drm/ |
D | drm_gem_shmem_helper.c | 51 struct drm_gem_shmem_object *shmem; in drm_gem_shmem_create() local 60 obj = kzalloc(sizeof(*shmem), GFP_KERNEL); in drm_gem_shmem_create() 75 shmem = to_drm_gem_shmem_obj(obj); in drm_gem_shmem_create() 76 mutex_init(&shmem->pages_lock); in drm_gem_shmem_create() 77 mutex_init(&shmem->vmap_lock); in drm_gem_shmem_create() 78 INIT_LIST_HEAD(&shmem->madv_list); in drm_gem_shmem_create() 90 return shmem; in drm_gem_shmem_create() 110 struct drm_gem_shmem_object *shmem = to_drm_gem_shmem_obj(obj); in drm_gem_shmem_free_object() local 112 WARN_ON(shmem->vmap_use_count); in drm_gem_shmem_free_object() 115 shmem->pages_use_count--; in drm_gem_shmem_free_object() [all …]
|
/Linux-v5.4/drivers/gpu/drm/panfrost/ |
D | panfrost_gem_shrinker.c | 23 struct drm_gem_shmem_object *shmem; in panfrost_gem_shrinker_count() local 29 list_for_each_entry(shmem, &pfdev->shrinker_list, madv_list) { in panfrost_gem_shrinker_count() 30 if (drm_gem_shmem_is_purgeable(shmem)) in panfrost_gem_shrinker_count() 31 count += shmem->base.size >> PAGE_SHIFT; in panfrost_gem_shrinker_count() 41 struct drm_gem_shmem_object *shmem = to_drm_gem_shmem_obj(obj); in panfrost_gem_purge() local 43 if (!mutex_trylock(&shmem->pages_lock)) in panfrost_gem_purge() 49 mutex_unlock(&shmem->pages_lock); in panfrost_gem_purge() 58 struct drm_gem_shmem_object *shmem, *tmp; in panfrost_gem_shrinker_scan() local 64 list_for_each_entry_safe(shmem, tmp, &pfdev->shrinker_list, madv_list) { in panfrost_gem_shrinker_scan() 67 if (drm_gem_shmem_is_purgeable(shmem) && in panfrost_gem_shrinker_scan() [all …]
|
D | panfrost_gem.c | 146 struct drm_gem_shmem_object *shmem; in panfrost_gem_create_with_handle() local 153 shmem = drm_gem_shmem_create(dev, size); in panfrost_gem_create_with_handle() 154 if (IS_ERR(shmem)) in panfrost_gem_create_with_handle() 155 return ERR_CAST(shmem); in panfrost_gem_create_with_handle() 157 bo = to_panfrost_bo(&shmem->base); in panfrost_gem_create_with_handle() 165 ret = drm_gem_handle_create(file_priv, &shmem->base, handle); in panfrost_gem_create_with_handle() 167 drm_gem_object_put_unlocked(&shmem->base); in panfrost_gem_create_with_handle()
|
/Linux-v5.4/include/drm/ |
D | drm_gem_shmem_helper.h | 133 int drm_gem_shmem_get_pages(struct drm_gem_shmem_object *shmem); 134 void drm_gem_shmem_put_pages(struct drm_gem_shmem_object *shmem); 142 static inline bool drm_gem_shmem_is_purgeable(struct drm_gem_shmem_object *shmem) in drm_gem_shmem_is_purgeable() argument 144 return (shmem->madv > 0) && in drm_gem_shmem_is_purgeable() 145 !shmem->vmap_use_count && shmem->sgt && in drm_gem_shmem_is_purgeable() 146 !shmem->base.dma_buf && !shmem->base.import_attach; in drm_gem_shmem_is_purgeable()
|
/Linux-v5.4/Documentation/devicetree/bindings/mailbox/ |
D | mailbox.txt | 26 - shmem : List of phandle pointing to the shared memory(SHM) area between the 39 Example with shared memory(shmem): 49 cl_shmem: shmem@0 { 50 compatible = "client-shmem"; 58 shmem = <&cl_shmem>;
|
/Linux-v5.4/drivers/net/arcnet/ |
D | com90xx.c | 58 static int com90xx_found(int ioaddr, int airq, u_long shmem, void __iomem *); 88 static int shmem; variable 93 module_param(shmem, int, 0); 107 if (!io && !irq && !shmem && !*device && com90xx_skip_probe) in com90xx_probe() 131 if (shmem) in com90xx_probe() 132 shmems[numshmems++] = shmem; in com90xx_probe() 460 static int __init com90xx_found(int ioaddr, int airq, u_long shmem, in com90xx_found() argument 473 release_mem_region(shmem, MIRROR_SIZE); in com90xx_found() 485 check_mirror(shmem - MIRROR_SIZE, MIRROR_SIZE) == 0 && in com90xx_found() 486 check_mirror(shmem - 2 * MIRROR_SIZE, MIRROR_SIZE) == 1) in com90xx_found() [all …]
|
D | arc-rimi.c | 126 unsigned long first_mirror, last_mirror, shmem; in arcrimi_found() local 146 shmem = dev->mem_start; in arcrimi_found() 159 check_mirror(shmem - MIRROR_SIZE, MIRROR_SIZE) == 0 && in arcrimi_found() 160 check_mirror(shmem - 2 * MIRROR_SIZE, MIRROR_SIZE) == 1) in arcrimi_found() 163 first_mirror = shmem - mirror_size; in arcrimi_found() 168 last_mirror = shmem + mirror_size; in arcrimi_found() 194 release_mem_region(shmem, MIRROR_SIZE); in arcrimi_found()
|
/Linux-v5.4/Documentation/devicetree/bindings/arm/ |
D | arm,scmi.txt | 22 - shmem : List of phandle pointing to the shared memory(SHM) area as per 43 mboxes, mbox-names and shmem shall be present in the sub-node corresponding 98 - compatible : should be "arm,scmi-shmem" for Non-secure SRAM based 118 cpu_scp_lpri: scp-shmem@0 { 119 compatible = "arm,scmi-shmem"; 123 cpu_scp_hpri: scp-shmem@200 { 124 compatible = "arm,scmi-shmem"; 143 shmem = <&cpu_scp_lpri &cpu_scp_hpri>;
|
D | arm,scpi.txt | 17 - shmem : List of phandle pointing to the shared memory(SHM) area between the 71 - compatible : should be "arm,scp-shmem" for Non-secure SRAM based 125 cpu_scp_lpri: scp-shmem@0 { 126 compatible = "arm,juno-scp-shmem"; 130 cpu_scp_hpri: scp-shmem@200 { 131 compatible = "arm,juno-scp-shmem"; 144 shmem = <&cpu_scp_lpri &cpu_scp_hpri>;
|
D | amlogic,scpi.txt | 17 - compatible : should be "amlogic,meson-gxbb-scp-shmem" for SRAM based shared
|
D | juno,scpi.txt | 14 - compatible : should be "arm,juno-scp-shmem" for Non-secure SRAM based
|
/Linux-v5.4/Documentation/devicetree/bindings/firmware/ |
D | nvidia,tegra186-bpmp.txt | 16 - shmem : List of the phandle of the TX and RX shared memory area that 80 cpu_bpmp_tx: shmem@4e000 { 81 compatible = "nvidia,tegra186-bpmp-shmem"; 87 cpu_bpmp_rx: shmem@4f000 { 88 compatible = "nvidia,tegra186-bpmp-shmem"; 98 shmem = <&cpu_bpmp_tx &cpu_bpmp_rx>;
|
/Linux-v5.4/Documentation/admin-guide/cgroup-v1/ |
D | memcg_test.rst | 111 The best way to understand shmem's page state transition is to read 112 mm/shmem.c. 114 But brief explanation of the behavior of memcg around shmem will be 119 - radix-tree of shmem's inode. 126 - A new page is added to shmem's radix-tree. 167 Historically, memcg's shmem handling was poor and we saw some amount 168 of troubles here. This is because shmem is page-cache but can be 169 SwapCache. Test with shmem/tmpfs is always good test.
|
/Linux-v5.4/drivers/net/ethernet/8390/ |
D | mac8390.c | 746 long shmem = (start_page - WD_START_PG)<<8; in sane_block_output() local 748 memcpy_toio((void __iomem *)dev->mem_start + shmem, buf, count); in sane_block_output() 788 long shmem = (start_page - WD_START_PG)<<8; in dayna_block_output() local 790 dayna_memcpy_tocard(dev, shmem, buf, count); in dayna_block_output() 827 long shmem = (start_page - WD_START_PG)<<8; in slow_sane_block_output() local 829 word_memcpy_tocard(dev->mem_start + shmem, buf, count); in slow_sane_block_output()
|
D | wd.c | 465 void __iomem *shmem = ei_status.mem + ((start_page - WD_START_PG)<<8); in wd_block_output() local 471 memcpy_toio(shmem, buf, count); in wd_block_output() 474 memcpy_toio(shmem, buf, count); in wd_block_output()
|
D | smc-ultra.c | 486 void __iomem *shmem = ei_status.mem + ((start_page - START_PG)<<8); in ultra_block_output() local 491 memcpy_toio(shmem, buf, count); in ultra_block_output()
|
/Linux-v5.4/arch/arm64/boot/dts/amlogic/ |
D | meson-gx.dtsi | 181 shmem = <&cpu_scp_lpri &cpu_scp_hpri>; 355 cpu_scp_lpri: scp-shmem@0 { 356 compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem"; 360 cpu_scp_hpri: scp-shmem@200 { 361 compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem";
|
/Linux-v5.4/drivers/firmware/arm_scmi/ |
D | driver.c | 728 struct device_node *shmem, *np = dev->of_node; in scmi_mbox_chan_setup() local 758 shmem = of_parse_phandle(np, "shmem", idx); in scmi_mbox_chan_setup() 759 ret = of_address_to_resource(shmem, 0, &res); in scmi_mbox_chan_setup() 760 of_node_put(shmem); in scmi_mbox_chan_setup()
|
/Linux-v5.4/Documentation/devicetree/bindings/reserved-memory/ |
D | xen,shared-memory.txt | 10 xen-shmem@<address> and has the following properties:
|
/Linux-v5.4/arch/arm64/boot/dts/arm/ |
D | juno-base.dtsi | 498 cpu_scp_lpri: scp-shmem@0 { 499 compatible = "arm,juno-scp-shmem"; 503 cpu_scp_hpri: scp-shmem@200 { 504 compatible = "arm,juno-scp-shmem"; 536 shmem = <&cpu_scp_hpri>;
|
/Linux-v5.4/drivers/gpu/drm/omapdrm/ |
D | TODO | 8 . GEM/shmem backed pages can have existing mappings (kernel linear map,
|
/Linux-v5.4/tools/testing/selftests/vm/ |
D | run_vmtests | 135 ./userfaultfd shmem 128 32
|
/Linux-v5.4/Documentation/ABI/testing/ |
D | procfs-smaps_rollup | 13 the sum of the Pss field of each type (anon, file, shmem).
|
/Linux-v5.4/drivers/net/ethernet/alacritech/ |
D | slicoss.c | 628 struct slic_shmem *sm = &sdev->shmem; in slic_handle_link_irq() 677 return slic_new_upr(sdev, SLIC_UPR_LSTAT, sdev->shmem.link_paddr); in slic_handle_link_change() 714 struct slic_shmem *sm = &sdev->shmem; in slic_poll() 737 struct slic_shmem *sm = &sdev->shmem; in slic_irq() 1228 struct slic_shmem *sm = &sdev->shmem; in slic_init_shmem() 1248 struct slic_shmem *sm = &sdev->shmem; in slic_free_shmem() 1257 struct slic_shmem *sm = &sdev->shmem; in slic_init_iface() 1600 struct slic_shmem *sm = &sdev->shmem; in slic_read_eeprom()
|
/Linux-v5.4/Documentation/admin-guide/namespaces/ |
D | compatibility-list.rst | 29 or IPC shmem/message. The fact is that this ID is only valid
|