Home
last modified time | relevance | path

Searched refs:shmem (Results 1 – 25 of 72) sorted by relevance

123

/linux-6.3-rc2/drivers/gpu/drm/
A Ddrm_gem_shmem_helper.c67 shmem = kzalloc(sizeof(*shmem), GFP_KERNEL); in __drm_gem_shmem_create()
68 if (!shmem) in __drm_gem_shmem_create()
70 obj = &shmem->base; in __drm_gem_shmem_create()
107 return shmem; in __drm_gem_shmem_create()
149 if (shmem->sgt) { in drm_gem_shmem_free()
155 if (shmem->pages) in drm_gem_shmem_free()
164 kfree(shmem); in drm_gem_shmem_free()
189 if (shmem->map_wc) in drm_gem_shmem_get_pages_locked()
235 if (shmem->map_wc) in drm_gem_shmem_put_pages_locked()
322 shmem->vaddr = vmap(shmem->pages, obj->size >> PAGE_SHIFT, in drm_gem_shmem_vmap_locked()
[all …]
/linux-6.3-rc2/include/drm/
A Ddrm_gem_shmem_helper.h126 return (shmem->madv > 0) && in drm_gem_shmem_is_purgeable()
127 !shmem->vmap_use_count && shmem->sgt && in drm_gem_shmem_is_purgeable()
128 !shmem->base.dma_buf && !shmem->base.import_attach; in drm_gem_shmem_is_purgeable()
157 drm_gem_shmem_free(shmem); in drm_gem_shmem_object_free()
174 drm_gem_shmem_print_info(shmem, p, indent); in drm_gem_shmem_object_print_info()
188 return drm_gem_shmem_pin(shmem); in drm_gem_shmem_object_pin()
202 drm_gem_shmem_unpin(shmem); in drm_gem_shmem_object_unpin()
219 return drm_gem_shmem_get_sg_table(shmem); in drm_gem_shmem_object_get_sg_table()
238 return drm_gem_shmem_vmap(shmem, map); in drm_gem_shmem_object_vmap()
254 drm_gem_shmem_vunmap(shmem, map); in drm_gem_shmem_object_vunmap()
[all …]
/linux-6.3-rc2/drivers/firmware/arm_scmi/
A Dshmem.c35 void shmem_tx_prepare(struct scmi_shared_mem __iomem *shmem, in shmem_tx_prepare() argument
55 spin_until_cond((ioread32(&shmem->channel_status) & in shmem_tx_prepare()
58 if (!(ioread32(&shmem->channel_status) & in shmem_tx_prepare()
67 iowrite32(0x0, &shmem->channel_status); in shmem_tx_prepare()
69 &shmem->flags); in shmem_tx_prepare()
70 iowrite32(sizeof(shmem->msg_header) + xfer->tx.len, &shmem->length); in shmem_tx_prepare()
78 return ioread32(&shmem->msg_header); in shmem_read_header()
84 size_t len = ioread32(&shmem->length); in shmem_fetch_response()
86 xfer->hdr.status = ioread32(shmem->msg_payload); in shmem_fetch_response()
97 size_t len = ioread32(&shmem->length); in shmem_fetch_notification()
[all …]
A Dmailbox.c30 struct scmi_shared_mem __iomem *shmem; member
39 shmem_tx_prepare(smbox->shmem, m, smbox->cinfo); in tx_prepare()
61 struct device_node *shmem; in mailbox_chan_setup() local
71 shmem = of_parse_phandle(cdev->of_node, "shmem", idx); in mailbox_chan_setup()
75 ret = of_address_to_resource(shmem, 0, &res); in mailbox_chan_setup()
76 of_node_put(shmem); in mailbox_chan_setup()
83 smbox->shmem = devm_ioremap(dev, res.start, size); in mailbox_chan_setup()
84 if (!smbox->shmem) { in mailbox_chan_setup()
160 shmem_fetch_response(smbox->shmem, xfer); in mailbox_fetch_response()
175 shmem_clear_channel(smbox->shmem); in mailbox_clear_channel()
[all …]
A Dsmc.c37 struct scmi_shared_mem __iomem *shmem; member
50 shmem_read_header(scmi_info->shmem), NULL); in smc_msg_done_isr()
130 scmi_info->shmem = devm_ioremap(dev, res.start, size); in smc_chan_setup()
131 if (!scmi_info->shmem) { in smc_chan_setup()
189 shmem_tx_prepare(scmi_info->shmem, xfer, cinfo); in smc_send_message()
207 shmem_fetch_response(scmi_info->shmem, xfer); in smc_fetch_response()
A Dcommon.h307 void shmem_tx_prepare(struct scmi_shared_mem __iomem *shmem,
309 u32 shmem_read_header(struct scmi_shared_mem __iomem *shmem);
310 void shmem_fetch_response(struct scmi_shared_mem __iomem *shmem,
312 void shmem_fetch_notification(struct scmi_shared_mem __iomem *shmem,
314 void shmem_clear_channel(struct scmi_shared_mem __iomem *shmem);
315 bool shmem_poll_done(struct scmi_shared_mem __iomem *shmem,
A Doptee.c125 struct scmi_shared_mem __iomem *shmem; member
344 shmem_clear_channel(channel->req.shmem); in scmi_optee_clear_channel()
388 channel->req.shmem = devm_ioremap(dev, res.start, size); in setup_static_shmem()
389 if (!channel->req.shmem) { in setup_static_shmem()
499 shmem_tx_prepare(channel->req.shmem, xfer, cinfo); in scmi_optee_send_message()
517 shmem_fetch_response(channel->req.shmem, xfer); in scmi_optee_fetch_response()
/linux-6.3-rc2/drivers/gpu/drm/panfrost/
A Dpanfrost_gem_shrinker.c23 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()
51 if (!mutex_trylock(&shmem->pages_lock)) in panfrost_gem_purge()
58 mutex_unlock(&shmem->pages_lock); in panfrost_gem_purge()
70 struct drm_gem_shmem_object *shmem, *tmp; in panfrost_gem_shrinker_scan() local
79 if (drm_gem_shmem_is_purgeable(shmem) && in panfrost_gem_shrinker_scan()
80 panfrost_gem_purge(&shmem->base)) { in panfrost_gem_shrinker_scan()
81 freed += shmem->base.size >> PAGE_SHIFT; in panfrost_gem_shrinker_scan()
[all …]
A Dpanfrost_gem.c240 struct drm_gem_shmem_object *shmem; in panfrost_gem_create() local
247 shmem = drm_gem_shmem_create(dev, size); in panfrost_gem_create()
248 if (IS_ERR(shmem)) in panfrost_gem_create()
249 return ERR_CAST(shmem); in panfrost_gem_create()
251 bo = to_panfrost_bo(&shmem->base); in panfrost_gem_create()
/linux-6.3-rc2/drivers/net/ethernet/microsoft/mana/
A Dshm_channel.c145 u64 *shmem; in mana_smc_setup_hwc() local
185 shmem = (u64 *)ptr; in mana_smc_setup_hwc()
187 *shmem = frame_addr & PAGE_FRAME_L48_MASK; in mana_smc_setup_hwc()
193 shmem = (u64 *)ptr; in mana_smc_setup_hwc()
195 *shmem = frame_addr & PAGE_FRAME_L48_MASK; in mana_smc_setup_hwc()
201 shmem = (u64 *)ptr; in mana_smc_setup_hwc()
203 *shmem = frame_addr & PAGE_FRAME_L48_MASK; in mana_smc_setup_hwc()
209 shmem = (u64 *)ptr; in mana_smc_setup_hwc()
211 *shmem = frame_addr & PAGE_FRAME_L48_MASK; in mana_smc_setup_hwc()
/linux-6.3-rc2/Documentation/devicetree/bindings/mailbox/
A Dmailbox.txt26 - 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>;
A Darm,mhu.yaml111 shmem = <&cpu_scp_hpri>; /* HP-NonSecure */
145 shmem = <&cpu_scp_lpri0>,
163 shmem = <&cpu_scp_hpri0>,
/linux-6.3-rc2/arch/arm64/boot/dts/arm/
A Djuno-scmi.dtsi49 shmem = <&cpu_scp_lpri0 &cpu_scp_lpri1>;
63 shmem = <&cpu_scp_hpri0 &cpu_scp_hpri1>;
205 compatible = "arm,scmi-shmem";
210 compatible = "arm,scmi-shmem";
215 compatible = "arm,scmi-shmem";
220 compatible = "arm,scmi-shmem";
/linux-6.3-rc2/drivers/net/arcnet/
A Dcom90xx.c88 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()
473 release_mem_region(shmem, MIRROR_SIZE); in com90xx_found()
485 check_mirror(shmem - MIRROR_SIZE, MIRROR_SIZE) == 0 && in com90xx_found()
489 first_mirror = shmem - mirror_size; in com90xx_found()
494 last_mirror = shmem + mirror_size; in com90xx_found()
503 release_mem_region(shmem, MIRROR_SIZE); in com90xx_found()
[all …]
A Darc-rimi.c126 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-6.3-rc2/Documentation/devicetree/bindings/firmware/
A Darm,scmi.yaml71 shmem:
239 shmem:
267 - shmem
278 - shmem
298 shmem = <&cpu_scp_lpri0>,
318 shmem = <&cpu_scp_hpri0>,
375 compatible = "arm,scmi-shmem";
380 compatible = "arm,scmi-shmem";
385 compatible = "arm,scmi-shmem";
390 compatible = "arm,scmi-shmem";
[all …]
A Darm,scpi.yaml48 shmem:
170 - shmem
178 shmem = <&cpu_scp_hpri>; /* HP-NonSecure */
225 compatible = "arm,scp-shmem";
230 compatible = "arm,scp-shmem";
241 shmem = <&cpu_scp_lpri>, <&cpu_scp_hpri>;
/linux-6.3-rc2/drivers/gpu/drm/virtio/
A Dvirtgpu_object.c123 struct virtio_gpu_object_shmem *shmem; in virtio_gpu_create_object() local
126 shmem = kzalloc(sizeof(*shmem), GFP_KERNEL); in virtio_gpu_create_object()
127 if (!shmem) in virtio_gpu_create_object()
130 dshmem = &shmem->base.base; in virtio_gpu_create_object()
/linux-6.3-rc2/drivers/gpu/drm/lima/
A Dlima_gem.c108 struct drm_gem_shmem_object *shmem; in lima_gem_create_handle() local
113 shmem = drm_gem_shmem_create(dev, size); in lima_gem_create_handle()
114 if (IS_ERR(shmem)) in lima_gem_create_handle()
115 return PTR_ERR(shmem); in lima_gem_create_handle()
117 obj = &shmem->base; in lima_gem_create_handle()
131 struct sg_table *sgt = drm_gem_shmem_get_pages_sgt(shmem); in lima_gem_create_handle()
/linux-6.3-rc2/Documentation/admin-guide/cgroup-v1/
A Dmemcg_test.rst111 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.
158 Historically, memcg's shmem handling was poor and we saw some amount
159 of troubles here. This is because shmem is page-cache but can be
160 SwapCache. Test with shmem/tmpfs is always good test.
/linux-6.3-rc2/arch/arm/boot/dts/
A Dstm32mp15-scmi.dtsi19 shmem = <&scmi_shm>;
73 compatible = "arm,scmi-shmem";
/linux-6.3-rc2/drivers/net/ethernet/8390/
A Dmac8390.c740 long shmem = (start_page - WD_START_PG)<<8; in sane_block_output() local
742 memcpy_toio((void __iomem *)dev->mem_start + shmem, buf, count); in sane_block_output()
782 long shmem = (start_page - WD_START_PG)<<8; in dayna_block_output() local
784 dayna_memcpy_tocard(dev, shmem, buf, count); in dayna_block_output()
821 long shmem = (start_page - WD_START_PG)<<8; in slow_sane_block_output() local
823 word_memcpy_tocard(dev->mem_start + shmem, buf, count); in slow_sane_block_output()
/linux-6.3-rc2/Documentation/devicetree/bindings/sram/
A Dsram.yaml87 - amlogic,meson-gxbb-scp-shmem
88 - amlogic,meson-axg-scp-shmem
89 - arm,juno-scp-shmem
90 - arm,scmi-shmem
91 - arm,scp-shmem
/linux-6.3-rc2/drivers/tee/amdtee/
A Dcore.c344 struct shmem_desc shmem; in amdtee_map_shmem() local
356 shmem.kaddr = shm->kaddr; in amdtee_map_shmem()
357 shmem.size = shm->size; in amdtee_map_shmem()
363 rc = handle_map_shmem(count, &shmem, &buf_id); in amdtee_map_shmem()
/linux-6.3-rc2/drivers/gpu/drm/i915/selftests/
A Di915_mock_selftests.h19 selftest(shmem, shmem_utils_mock_selftests)

Completed in 81 milliseconds

123