Home
last modified time | relevance | path

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

/linux/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_opr.c54 struct device *mem_dev = dev->mem_dev[mem_ctx]; in s5p_mfc_alloc_priv_buf() local
58 b->virt = dma_alloc_coherent(mem_dev, b->size, &b->dma, GFP_KERNEL); in s5p_mfc_alloc_priv_buf()
64 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_alloc_priv_buf()
79 struct device *mem_dev = dev->mem_dev[mem_ctx]; in s5p_mfc_alloc_generic_buf() local
84 b->virt = dma_alloc_coherent(mem_dev, b->size, &b->dma, GFP_KERNEL); in s5p_mfc_alloc_generic_buf()
104 struct device *mem_dev = dev->mem_dev[b->ctx]; in s5p_mfc_release_priv_buf() local
106 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_release_priv_buf()
116 struct device *mem_dev = dev->mem_dev[b->ctx]; in s5p_mfc_release_generic_buf() local
117 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_release_generic_buf()
H A Ds5p_mfc.c1163 mfc_dev->mem_dev[BANK_L_CTX] = s5p_mfc_alloc_memdev(dev, "left", in s5p_mfc_configure_2port_memory()
1165 if (!mfc_dev->mem_dev[BANK_L_CTX]) in s5p_mfc_configure_2port_memory()
1167 mfc_dev->mem_dev[BANK_R_CTX] = s5p_mfc_alloc_memdev(dev, "right", in s5p_mfc_configure_2port_memory()
1169 if (!mfc_dev->mem_dev[BANK_R_CTX]) { in s5p_mfc_configure_2port_memory()
1170 device_unregister(mfc_dev->mem_dev[BANK_L_CTX]); in s5p_mfc_configure_2port_memory()
1177 device_unregister(mfc_dev->mem_dev[BANK_R_CTX]); in s5p_mfc_configure_2port_memory()
1178 device_unregister(mfc_dev->mem_dev[BANK_L_CTX]); in s5p_mfc_configure_2port_memory()
1184 bank2_virt = dma_alloc_coherent(mfc_dev->mem_dev[BANK_R_CTX], in s5p_mfc_configure_2port_memory()
1188 device_unregister(mfc_dev->mem_dev[BANK_R_CTX]); in s5p_mfc_configure_2port_memory()
1189 device_unregister(mfc_dev->mem_dev[BANK_L_CTX]); in s5p_mfc_configure_2port_memory()
[all …]
/linux/drivers/hv/
H A Dmshv_vtl_main.c48 static struct device *mem_dev; variable
421 addr = devm_memremap_pages(mem_dev, pgmap); in mshv_vtl_ioctl_add_vtl0_mem()
1364 mem_dev = kzalloc_obj(*mem_dev); in mshv_vtl_init()
1365 if (!mem_dev) { in mshv_vtl_init()
1372 device_initialize(mem_dev); in mshv_vtl_init()
1373 dev_set_name(mem_dev, "mshv vtl mem dev"); in mshv_vtl_init()
1374 ret = device_add(mem_dev); in mshv_vtl_init()
1383 kfree(mem_dev); in mshv_vtl_init()
1400 device_del(mem_dev); in mshv_vtl_exit()
1401 kfree(mem_dev); in mshv_vtl_exit()
/linux/drivers/cxl/core/
H A Dras.c110 struct device *mem_dev __free(put_device) = bus_find_device( in cxl_cper_handle_prot_err()
112 if (!mem_dev) in cxl_cper_handle_prot_err()
115 cxlmd = to_cxl_memdev(mem_dev); in cxl_cper_handle_prot_err()