Home
last modified time | relevance | path

Searched refs:mem_dev (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/drivers/media/platform/s5p-mfc/
Ds5p_mfc_opr.c60 struct device *mem_dev = dev->mem_dev[mem_ctx]; in s5p_mfc_alloc_priv_buf() local
64 b->virt = dma_alloc_coherent(mem_dev, b->size, &b->dma, GFP_KERNEL); in s5p_mfc_alloc_priv_buf()
70 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_alloc_priv_buf()
85 struct device *mem_dev = dev->mem_dev[mem_ctx]; in s5p_mfc_alloc_generic_buf() local
90 b->virt = dma_alloc_coherent(mem_dev, b->size, &b->dma, GFP_KERNEL); in s5p_mfc_alloc_generic_buf()
110 struct device *mem_dev = dev->mem_dev[b->ctx]; in s5p_mfc_release_priv_buf() local
112 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_release_priv_buf()
122 struct device *mem_dev = dev->mem_dev[b->ctx]; in s5p_mfc_release_generic_buf() local
123 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_release_generic_buf()
Ds5p_mfc.c1121 mfc_dev->mem_dev[BANK_L_CTX] = s5p_mfc_alloc_memdev(dev, "left", in s5p_mfc_configure_2port_memory()
1123 if (!mfc_dev->mem_dev[BANK_L_CTX]) in s5p_mfc_configure_2port_memory()
1125 mfc_dev->mem_dev[BANK_R_CTX] = s5p_mfc_alloc_memdev(dev, "right", in s5p_mfc_configure_2port_memory()
1127 if (!mfc_dev->mem_dev[BANK_R_CTX]) { in s5p_mfc_configure_2port_memory()
1128 device_unregister(mfc_dev->mem_dev[BANK_L_CTX]); in s5p_mfc_configure_2port_memory()
1135 device_unregister(mfc_dev->mem_dev[BANK_R_CTX]); in s5p_mfc_configure_2port_memory()
1136 device_unregister(mfc_dev->mem_dev[BANK_L_CTX]); in s5p_mfc_configure_2port_memory()
1142 bank2_virt = dma_alloc_coherent(mfc_dev->mem_dev[BANK_R_CTX], in s5p_mfc_configure_2port_memory()
1147 device_unregister(mfc_dev->mem_dev[BANK_R_CTX]); in s5p_mfc_configure_2port_memory()
1148 device_unregister(mfc_dev->mem_dev[BANK_L_CTX]); in s5p_mfc_configure_2port_memory()
[all …]
Ds5p_mfc_dec.c940 alloc_devs[0] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup()
942 alloc_devs[0] = ctx->dev->mem_dev[BANK_R_CTX]; in s5p_mfc_queue_setup()
943 alloc_devs[1] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup()
947 alloc_devs[0] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup()
Ds5p_mfc_enc.c2412 alloc_devs[0] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup()
2428 alloc_devs[0] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup()
2429 alloc_devs[1] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup()
2431 alloc_devs[0] = ctx->dev->mem_dev[BANK_R_CTX]; in s5p_mfc_queue_setup()
2432 alloc_devs[1] = ctx->dev->mem_dev[BANK_R_CTX]; in s5p_mfc_queue_setup()
Ds5p_mfc_common.h307 struct device *mem_dev[BANK_CTX_NUM]; member
/Linux-v4.19/drivers/edac/
De7xxx_edac.c361 int drc_chan, drc_drbg, drc_ddim, mem_dev; in e7xxx_init_csrows() local
379 mem_dev = (dra >> (index * 4 + 3)) & 0x1; in e7xxx_init_csrows()
399 if (drc_chan && mem_dev) { in e7xxx_init_csrows()
415 dimm->dtype = mem_dev ? DEV_X4 : DEV_X8; in e7xxx_init_csrows()
De752x_edac.c1072 int index, mem_dev, drc_chan; in e752x_init_csrows() local
1096 mem_dev = (dra >> (index * 4 + 2)) & 0x3; in e752x_init_csrows()
1099 mem_dev = (mem_dev == 2); in e752x_init_csrows()
1117 if (drc_chan && mem_dev) { in e752x_init_csrows()
1133 dimm->dtype = mem_dev ? DEV_X4 : DEV_X8; in e752x_init_csrows()