Home
last modified time | relevance | path

Searched refs:mem_ops (Results 1 – 25 of 103) sorted by relevance

12345

/linux/drivers/spi/
H A Dspi-mem.c259 if (ctlr->mem_ops && ctlr->mem_ops->supports_op) in spi_mem_internal_supports_op()
260 return ctlr->mem_ops->supports_op(mem, op); in spi_mem_internal_supports_op()
415 if (ctlr->mem_ops && ctlr->mem_ops->exec_op && !spi_get_csgpiod(mem->spi, 0)) { in spi_mem_exec_op()
421 ret = ctlr->mem_ops->exec_op(mem, op); in spi_mem_exec_op()
557 if (ctlr->mem_ops && ctlr->mem_ops->adjust_op_size) in spi_mem_adjust_op_size()
558 return ctlr->mem_ops->adjust_op_size(mem, op); in spi_mem_adjust_op_size()
560 if (!ctlr->mem_ops || !ctlr->mem_ops->exec_op) { in spi_mem_adjust_op_size()
722 if (ctlr->mem_ops && ctlr->mem_ops->dirmap_create) { in spi_mem_dirmap_create()
729 ret = ctlr->mem_ops->dirmap_create(desc); in spi_mem_dirmap_create()
762 if (!desc->nodirmap && ctlr->mem_ops && ctlr->mem_ops->dirmap_destroy) in spi_mem_dirmap_destroy()
[all …]
H A Dspi-dw-core.c778 if (!dws->mem_ops.exec_op && !(dws->caps & DW_SPI_CAP_CS_OVERRIDE) && in dw_spi_init_mem_ops()
780 dws->mem_ops.adjust_op_size = dw_spi_adjust_mem_op_size; in dw_spi_init_mem_ops()
781 dws->mem_ops.supports_op = dw_spi_supports_mem_op; in dw_spi_init_mem_ops()
782 dws->mem_ops.exec_op = dw_spi_exec_mem_op; in dw_spi_init_mem_ops()
976 if (dws->mem_ops.exec_op) { in dw_spi_add_controller()
977 ctlr->mem_ops = &dws->mem_ops; in dw_spi_add_controller()
H A Dspi-intel.c178 const struct intel_spi_mem_op *mem_ops; member
748 for (iop = ispi->mem_ops; iop->mem_op.cmd.opcode; iop++) { in intel_spi_match_mem_op()
1194 ispi->mem_ops = erase_64k_mem_ops; in intel_spi_init()
1197 ispi->mem_ops = generic_mem_ops; in intel_spi_init()
1500 host->mem_ops = &intel_spi_mem_ops; in intel_spi_probe()
/linux/tools/testing/selftests/mm/
H A Dkhugepaged.c44 struct mem_ops { struct
52 static struct mem_ops *file_ops; argument
53 static struct mem_ops *anon_ops;
54 static struct mem_ops *shmem_ops;
58 struct mem_ops *ops, bool expect);
304 static void *alloc_hpage(struct mem_ops *ops) in alloc_hpage()
472 static struct mem_ops __anon_ops = {
480 static struct mem_ops __file_ops = {
488 static struct mem_ops __shmem_ops = {
497 struct mem_ops *ops, bool expect) in __madvise_collapse()
[all …]
H A Duffd-unit-tests.c34 uffd_test_ops_t *mem_ops; member
43 .mem_ops = &anon_uffd_test_ops,
49 .mem_ops = &shmem_uffd_test_ops,
55 .mem_ops = &shmem_uffd_test_ops,
61 .mem_ops = &hugetlb_uffd_test_ops,
67 .mem_ops = &hugetlb_uffd_test_ops,
1758 uffd_test_ops = mem_type->mem_ops; in main()
/linux/drivers/tee/optee/
H A Dffa_abi.c276 const struct ffa_mem_ops *mem_ops = ffa_dev->ops->mem_ops; in optee_ffa_shm_register() local
298 rc = mem_ops->memory_share(&args); in optee_ffa_shm_register()
305 mem_ops->memory_reclaim(args.g_handle, 0); in optee_ffa_shm_register()
320 const struct ffa_mem_ops *mem_ops = ffa_dev->ops->mem_ops; in optee_ffa_shm_unregister() local
336 rc = mem_ops->memory_reclaim(global_handle, 0); in optee_ffa_shm_unregister()
347 const struct ffa_mem_ops *mem_ops; in optee_ffa_shm_unregister_supp() local
358 mem_ops = optee->ffa.ffa_dev->ops->mem_ops; in optee_ffa_shm_unregister_supp()
359 rc = mem_ops->memory_reclaim(global_handle, 0); in optee_ffa_shm_unregister_supp()
687 const struct ffa_mem_ops *mem_ops = ffa_dev->ops->mem_ops; in optee_ffa_lend_protmem() local
713 rc = mem_ops->memory_lend(&args); in optee_ffa_lend_protmem()
[all …]
/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-core.c67 (vb)->vb2_queue->mem_ops->op ? "" : " (nop)")
75 err = _q->mem_ops->op ? _q->mem_ops->op(args) : 0; \
87 ptr = _q->mem_ops->op ? _q->mem_ops->op(vb, args) : NULL; \
98 if (_q->mem_ops->op) \
99 _q->mem_ops->op(args); \
154 ((vb)->vb2_queue->mem_ops->op ? \
155 (vb)->vb2_queue->mem_ops->op(args) : 0)
158 ((vb)->vb2_queue->mem_ops->op ? \
159 (vb)->vb2_queue->mem_ops->op(vb, args) : NULL)
163 if ((vb)->vb2_queue->mem_ops->op) \
[all …]
/linux/drivers/tee/tstee/
H A Dcore.c270 rc = ffa_dev->ops->mem_ops->memory_share(&mem_args); in tstee_shm_register()
290 (void)ffa_dev->ops->mem_ops->memory_reclaim(shm->sec_world_id, in tstee_shm_register()
300 ffa_dev->ops->mem_ops->memory_reclaim(shm->sec_world_id, 0); in tstee_shm_register()
335 rc = ffa_dev->ops->mem_ops->memory_reclaim(shm->sec_world_id, 0); in tstee_shm_unregister()
/linux/drivers/usb/gadget/function/
H A Duvc_queue.c148 queue->queue.mem_ops = &vb2_dma_sg_memops; in uvcg_queue_init()
151 queue->queue.mem_ops = &vb2_vmalloc_memops; in uvcg_queue_init()
191 queue->queue.mem_ops = &vb2_vmalloc_memops; in uvcg_alloc_buffers()
/linux/drivers/media/platform/nvidia/tegra-vde/
H A Dv4l2.c339 const struct vb2_mem_ops *mem_ops; in tegra_queue_init() local
351 mem_ops = &vb2_dma_sg_memops; in tegra_queue_init()
353 mem_ops = &vb2_dma_contig_memops; in tegra_queue_init()
365 src_vq->mem_ops = mem_ops; in tegra_queue_init()
390 dst_vq->mem_ops = mem_ops; in tegra_queue_init()
/linux/drivers/media/pci/tw686x/
H A Dtw686x.h109 const struct vb2_mem_ops *mem_ops; member
/linux/sound/soc/renesas/rcar/
H A Ddma.c58 static struct rsnd_mod_ops mem_ops = { variable
882 return rsnd_mod_init(NULL, &mem, &mem_ops, NULL, 0, 0); in rsnd_dma_probe()
/linux/drivers/media/platform/st/stm32/dma2d/
H A Ddma2d.c204 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
218 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
/linux/drivers/media/platform/samsung/exynos-gsc/
H A Dgsc-m2m.c580 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
595 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
/linux/drivers/media/platform/samsung/s5p-g2d/
H A Dg2d.c151 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
165 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
/linux/drivers/media/platform/nxp/
H A Dmx2_emmaprp.c691 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
705 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
/linux/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-m2m.c556 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
570 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
/linux/drivers/media/platform/nxp/imx8-isi/
H A Dimx8-isi-m2m.c385 src_vq->mem_ops = &vb2_dma_contig_memops; in mxc_isi_m2m_queue_init()
399 dst_vq->mem_ops = &vb2_dma_contig_memops; in mxc_isi_m2m_queue_init()
/linux/drivers/media/platform/mediatek/mdp3/
H A Dmtk-mdp3-m2m.c488 src_vq->mem_ops = &vb2_dma_contig_memops; in mdp_m2m_queue_init()
502 dst_vq->mem_ops = &vb2_dma_contig_memops; in mdp_m2m_queue_init()
/linux/include/media/
H A Dvideobuf2-core.h523 * @mem_ops: memory allocator specific callbacks
622 const struct vb2_mem_ops *mem_ops;
991 * &vb2_queue->ops, &vb2_queue->mem_ops, &vb2_queue->type.
632 const struct vb2_mem_ops *mem_ops; global() member
/linux/drivers/media/platform/rockchip/rga/
H A Drga.c104 src_vq->mem_ops = &vb2_dma_sg_memops; in queue_init()
119 dst_vq->mem_ops = &vb2_dma_sg_memops; in queue_init()
/linux/drivers/media/platform/sunxi/sun8i-rotate/
H A Dsun8i_rotate.c539 src_vq->mem_ops = &vb2_dma_contig_memops; in rotate_queue_init()
554 dst_vq->mem_ops = &vb2_dma_contig_memops; in rotate_queue_init()
/linux/include/linux/
H A Darm_ffa.h510 const struct ffa_mem_ops *mem_ops; member
/linux/drivers/staging/media/imx/
H A Dimx-media-csc-scaler.c594 src_vq->mem_ops = &vb2_dma_contig_memops; in ipu_csc_scaler_queue_init()
609 dst_vq->mem_ops = &vb2_dma_contig_memops; in ipu_csc_scaler_queue_init()
/linux/drivers/media/platform/sunxi/sun8i-di/
H A Dsun8i-di.c676 src_vq->mem_ops = &vb2_dma_contig_memops; in deinterlace_queue_init()
691 dst_vq->mem_ops = &vb2_dma_contig_memops; in deinterlace_queue_init()

12345