/kernel/linux/linux-5.10/drivers/media/platform/s5p-mfc/ |
H A D | s5p_mfc_opr.c | 57 struct device *mem_dev = dev->mem_dev[mem_ctx]; in s5p_mfc_alloc_priv_buf() local 61 b->virt = dma_alloc_coherent(mem_dev, b->size, &b->dma, GFP_KERNEL); in s5p_mfc_alloc_priv_buf() 67 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_alloc_priv_buf() 82 struct device *mem_dev = dev->mem_dev[mem_ctx]; in s5p_mfc_alloc_generic_buf() local 87 b->virt = dma_alloc_coherent(mem_dev, b->size, &b->dma, GFP_KERNEL); in s5p_mfc_alloc_generic_buf() 107 struct device *mem_dev = dev->mem_dev[b->ctx]; in s5p_mfc_release_priv_buf() local 109 dma_free_coherent(mem_dev, in s5p_mfc_release_priv_buf() 119 struct device *mem_dev = dev->mem_dev[b->ctx]; s5p_mfc_release_generic_buf() local [all...] |
H A D | s5p_mfc.c | 1128 mfc_dev->mem_dev[BANK_L_CTX] = s5p_mfc_alloc_memdev(dev, "left", in s5p_mfc_configure_2port_memory() 1130 if (!mfc_dev->mem_dev[BANK_L_CTX]) in s5p_mfc_configure_2port_memory() 1132 mfc_dev->mem_dev[BANK_R_CTX] = s5p_mfc_alloc_memdev(dev, "right", in s5p_mfc_configure_2port_memory() 1134 if (!mfc_dev->mem_dev[BANK_R_CTX]) { in s5p_mfc_configure_2port_memory() 1135 device_unregister(mfc_dev->mem_dev[BANK_L_CTX]); in s5p_mfc_configure_2port_memory() 1142 device_unregister(mfc_dev->mem_dev[BANK_R_CTX]); in s5p_mfc_configure_2port_memory() 1143 device_unregister(mfc_dev->mem_dev[BANK_L_CTX]); in s5p_mfc_configure_2port_memory() 1149 bank2_virt = dma_alloc_coherent(mfc_dev->mem_dev[BANK_R_CTX], in s5p_mfc_configure_2port_memory() 1154 device_unregister(mfc_dev->mem_dev[BANK_R_CTX]); in s5p_mfc_configure_2port_memory() 1155 device_unregister(mfc_dev->mem_dev[BANK_L_CT in s5p_mfc_configure_2port_memory() [all...] |
H A D | s5p_mfc_dec.c | 927 alloc_devs[0] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup() 929 alloc_devs[0] = ctx->dev->mem_dev[BANK_R_CTX]; in s5p_mfc_queue_setup() 930 alloc_devs[1] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup() 934 alloc_devs[0] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup()
|
H A D | s5p_mfc_enc.c | 2404 alloc_devs[0] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup() 2420 alloc_devs[0] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup() 2421 alloc_devs[1] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup() 2423 alloc_devs[0] = ctx->dev->mem_dev[BANK_R_CTX]; in s5p_mfc_queue_setup() 2424 alloc_devs[1] = ctx->dev->mem_dev[BANK_R_CTX]; in s5p_mfc_queue_setup()
|
H A D | s5p_mfc_common.h | 260 * @mem_dev[]: child devices of the memory banks 303 struct device *mem_dev[BANK_CTX_NUM]; member
|
/kernel/linux/linux-6.6/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_opr.c | 57 struct device *mem_dev = dev->mem_dev[mem_ctx]; in s5p_mfc_alloc_priv_buf() local 61 b->virt = dma_alloc_coherent(mem_dev, b->size, &b->dma, GFP_KERNEL); in s5p_mfc_alloc_priv_buf() 67 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_alloc_priv_buf() 82 struct device *mem_dev = dev->mem_dev[mem_ctx]; in s5p_mfc_alloc_generic_buf() local 87 b->virt = dma_alloc_coherent(mem_dev, b->size, &b->dma, GFP_KERNEL); in s5p_mfc_alloc_generic_buf() 107 struct device *mem_dev = dev->mem_dev[b->ctx]; in s5p_mfc_release_priv_buf() local 109 dma_free_coherent(mem_dev, in s5p_mfc_release_priv_buf() 119 struct device *mem_dev = dev->mem_dev[b->ctx]; s5p_mfc_release_generic_buf() local [all...] |
H A D | s5p_mfc.c | 1143 mfc_dev->mem_dev[BANK_L_CTX] = s5p_mfc_alloc_memdev(dev, "left", in s5p_mfc_configure_2port_memory() 1145 if (!mfc_dev->mem_dev[BANK_L_CTX]) in s5p_mfc_configure_2port_memory() 1147 mfc_dev->mem_dev[BANK_R_CTX] = s5p_mfc_alloc_memdev(dev, "right", in s5p_mfc_configure_2port_memory() 1149 if (!mfc_dev->mem_dev[BANK_R_CTX]) { in s5p_mfc_configure_2port_memory() 1150 device_unregister(mfc_dev->mem_dev[BANK_L_CTX]); in s5p_mfc_configure_2port_memory() 1157 device_unregister(mfc_dev->mem_dev[BANK_R_CTX]); in s5p_mfc_configure_2port_memory() 1158 device_unregister(mfc_dev->mem_dev[BANK_L_CTX]); in s5p_mfc_configure_2port_memory() 1164 bank2_virt = dma_alloc_coherent(mfc_dev->mem_dev[BANK_R_CTX], in s5p_mfc_configure_2port_memory() 1168 device_unregister(mfc_dev->mem_dev[BANK_R_CTX]); in s5p_mfc_configure_2port_memory() 1169 device_unregister(mfc_dev->mem_dev[BANK_L_CT in s5p_mfc_configure_2port_memory() [all...] |
H A D | s5p_mfc_dec.c | 960 alloc_devs[0] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup() 962 alloc_devs[0] = ctx->dev->mem_dev[BANK_R_CTX]; in s5p_mfc_queue_setup() 963 alloc_devs[1] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup() 967 alloc_devs[0] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup()
|
H A D | s5p_mfc_enc.c | 2402 alloc_devs[0] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup() 2418 alloc_devs[0] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup() 2419 alloc_devs[1] = ctx->dev->mem_dev[BANK_L_CTX]; in s5p_mfc_queue_setup() 2421 alloc_devs[0] = ctx->dev->mem_dev[BANK_R_CTX]; in s5p_mfc_queue_setup() 2422 alloc_devs[1] = ctx->dev->mem_dev[BANK_R_CTX]; in s5p_mfc_queue_setup()
|
H A D | s5p_mfc_common.h | 260 * @mem_dev: child devices of the memory banks 307 struct device *mem_dev[BANK_CTX_NUM]; member
|
/kernel/linux/linux-5.10/drivers/edac/ |
H A D | e7xxx_edac.c | 361 int drc_chan, drc_drbg, drc_ddim, mem_dev; in e7xxx_init_csrows() local 378 /* mem_dev 0=x8, 1=x4 */ in e7xxx_init_csrows() 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()
|
H A D | e752x_edac.c | 1072 int index, mem_dev, drc_chan; in e752x_init_csrows() local 1095 /* mem_dev 0=x8, 1=x4 */ in e752x_init_csrows() 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()
|
/kernel/linux/linux-6.6/drivers/edac/ |
H A D | e7xxx_edac.c | 360 int drc_chan, drc_drbg, drc_ddim, mem_dev; in e7xxx_init_csrows() local 377 /* mem_dev 0=x8, 1=x4 */ in e7xxx_init_csrows() 378 mem_dev = (dra >> (index * 4 + 3)) & 0x1; in e7xxx_init_csrows() 398 if (drc_chan && mem_dev) { in e7xxx_init_csrows() 414 dimm->dtype = mem_dev ? DEV_X4 : DEV_X8; in e7xxx_init_csrows()
|
H A D | e752x_edac.c | 1071 int index, mem_dev, drc_chan; in e752x_init_csrows() local 1094 /* mem_dev 0=x8, 1=x4 */ in e752x_init_csrows() 1095 mem_dev = (dra >> (index * 4 + 2)) & 0x3; in e752x_init_csrows() 1098 mem_dev = (mem_dev == 2); in e752x_init_csrows() 1116 if (drc_chan && mem_dev) { in e752x_init_csrows() 1132 dimm->dtype = mem_dev ? DEV_X4 : DEV_X8; in e752x_init_csrows()
|