/drivers/gpu/ion/ |
D | ion_cma_heap.c | 38 void *cpu_addr; member 49 void *cpu_addr, dma_addr_t handle, size_t size) in ion_cma_get_sgtable() argument 51 struct page *page = virt_to_page(cpu_addr); in ion_cma_get_sgtable() 79 info->cpu_addr = dma_alloc_coherent(dev, len, &(info->handle), 0); in ion_cma_allocate() 81 if (!info->cpu_addr) { in ion_cma_allocate() 93 (dev, info->table, info->cpu_addr, info->handle, len)) in ion_cma_allocate() 103 dma_free_coherent(dev, len, info->cpu_addr, info->handle); in ion_cma_allocate() 117 dma_free_coherent(dev, buffer->size, info->cpu_addr, info->handle); in ion_cma_free() 162 return dma_mmap_coherent(dev, vma, info->cpu_addr, info->handle, in ion_cma_mmap() 170 return info->cpu_addr; in ion_cma_map_kernel()
|
/drivers/media/common/ |
D | saa7146_core.c | 427 dev->d_rps0.cpu_addr = pci_alloc_consistent(pci, SAA7146_RPS_MEM, in saa7146_init_one() 429 if (!dev->d_rps0.cpu_addr) in saa7146_init_one() 431 memset(dev->d_rps0.cpu_addr, 0x0, SAA7146_RPS_MEM); in saa7146_init_one() 433 dev->d_rps1.cpu_addr = pci_alloc_consistent(pci, SAA7146_RPS_MEM, in saa7146_init_one() 435 if (!dev->d_rps1.cpu_addr) in saa7146_init_one() 437 memset(dev->d_rps1.cpu_addr, 0x0, SAA7146_RPS_MEM); in saa7146_init_one() 439 dev->d_i2c.cpu_addr = pci_alloc_consistent(pci, SAA7146_RPS_MEM, in saa7146_init_one() 441 if (!dev->d_i2c.cpu_addr) in saa7146_init_one() 443 memset(dev->d_i2c.cpu_addr, 0x0, SAA7146_RPS_MEM); in saa7146_init_one() 494 pci_free_consistent(pci, SAA7146_RPS_MEM, dev->d_i2c.cpu_addr, in saa7146_init_one() [all …]
|
D | saa7146_fops.c | 462 …vv->d_clipping.cpu_addr = pci_alloc_consistent(dev->pci, SAA7146_CLIPPING_MEM, &vv->d_clipping.dma… in saa7146_vv_init() 463 if( NULL == vv->d_clipping.cpu_addr ) { in saa7146_vv_init() 468 memset(vv->d_clipping.cpu_addr, 0x0, SAA7146_CLIPPING_MEM); in saa7146_vv_init() 488 …pci_free_consistent(dev->pci, SAA7146_CLIPPING_MEM, vv->d_clipping.cpu_addr, vv->d_clipping.dma_ha… in saa7146_vv_release()
|
D | saa7146_i2c.c | 296 __le32 *buffer = dev->d_i2c.cpu_addr; in saa7146_i2c_transfer()
|
D | saa7146_hlp.c | 344 __le32 *clipping = vv->d_clipping.cpu_addr; in calculate_clipping_registers_rect()
|
/drivers/infiniband/hw/qib/ |
D | qib_dma.c | 53 static u64 qib_dma_map_single(struct ib_device *dev, void *cpu_addr, in qib_dma_map_single() argument 57 return (u64) cpu_addr; in qib_dma_map_single() 163 void *cpu_addr, u64 dma_handle) in qib_dma_free_coherent() argument 165 free_pages((unsigned long) cpu_addr, get_order(size)); in qib_dma_free_coherent()
|
/drivers/infiniband/hw/ipath/ |
D | ipath_dma.c | 56 void *cpu_addr, size_t size, in ipath_dma_map_single() argument 60 return (u64) cpu_addr; in ipath_dma_map_single() 173 void *cpu_addr, u64 dma_handle) in ipath_dma_free_coherent() argument 175 free_pages((unsigned long) cpu_addr, get_order(size)); in ipath_dma_free_coherent()
|
/drivers/isdn/hardware/eicon/ |
D | divasmain.c | 358 void *cpu_addr; in diva_init_dma_map() local 362 if (!(cpu_addr = diva_pci_alloc_consistent(pdev, in diva_init_dma_map() 369 diva_init_dma_map_entry(pmap, i, cpu_addr, in diva_init_dma_map() 373 i, (unsigned long) cpu_addr, in diva_init_dma_map() 390 void *cpu_addr; in diva_free_dma_map() local 395 diva_get_dma_map_entry(pmap, i, &cpu_addr, &phys_addr); in diva_free_dma_map() 396 if (!cpu_addr) { in diva_free_dma_map() 404 (unsigned long) cpu_addr, (dword) dma_handle, in diva_free_dma_map()
|
/drivers/ata/ |
D | pata_pxa.c | 66 dma_addr_t cpu_addr; in pxa_load_dmac() local 68 cpu_addr = sg_dma_address(sg); in pxa_load_dmac() 81 pd->dma_desc[pd->dma_desc_id].dsadr = cpu_addr; in pxa_load_dmac() 87 pd->dma_desc[pd->dma_desc_id].dtadr = cpu_addr; in pxa_load_dmac() 93 cpu_addr += seg_len; in pxa_load_dmac()
|
/drivers/gpu/drm/radeon/ |
D | radeon_fence.c | 46 *rdev->fence_drv[ring].cpu_addr = cpu_to_le32(seq); in radeon_fence_write() 57 seq = le32_to_cpu(*rdev->fence_drv[ring].cpu_addr); in radeon_fence_read() 406 rdev->fence_drv[ring].cpu_addr = &rdev->wb.wb[index/4]; in radeon_fence_driver_start_ring() 411 ring, rdev->fence_drv[ring].gpu_addr, rdev->fence_drv[ring].cpu_addr); in radeon_fence_driver_start_ring() 419 rdev->fence_drv[ring].cpu_addr = NULL; in radeon_fence_driver_init_ring()
|
D | radeon.h | 240 volatile uint32_t *cpu_addr; member
|
/drivers/scsi/ |
D | 3w-xxxx.c | 846 unsigned long *cpu_addr = NULL; in tw_allocate_memory() local 850 cpu_addr = pci_alloc_consistent(tw_dev->tw_pci_dev, size*TW_Q_LENGTH, &dma_handle); in tw_allocate_memory() 851 if (cpu_addr == NULL) { in tw_allocate_memory() 856 …if ((unsigned long)cpu_addr % (tw_dev->tw_pci_dev->device == TW_DEVICE_ID ? TW_ALIGNMENT_6000 : TW… in tw_allocate_memory() 858 pci_free_consistent(tw_dev->tw_pci_dev, size*TW_Q_LENGTH, cpu_addr, dma_handle); in tw_allocate_memory() 862 memset(cpu_addr, 0, size*TW_Q_LENGTH); in tw_allocate_memory() 868 …tw_dev->command_packet_virtual_address[i] = (unsigned long *)((unsigned char *)cpu_addr + (i*size)… in tw_allocate_memory() 872 tw_dev->alignment_virtual_address[i] = (unsigned long *)((unsigned char *)cpu_addr + (i*size)); in tw_allocate_memory() 893 unsigned long *cpu_addr; in tw_chrdev_ioctl() local 924 …cpu_addr = dma_alloc_coherent(&tw_dev->tw_pci_dev->dev, data_buffer_length_adjusted+sizeof(TW_New_… in tw_chrdev_ioctl() [all …]
|
D | 3w-sas.c | 683 unsigned long *cpu_addr; in twl_allocate_memory() local 686 cpu_addr = pci_alloc_consistent(tw_dev->tw_pci_dev, size*TW_Q_LENGTH, &dma_handle); in twl_allocate_memory() 687 if (!cpu_addr) { in twl_allocate_memory() 692 memset(cpu_addr, 0, size*TW_Q_LENGTH); in twl_allocate_memory() 698 tw_dev->command_packet_virt[i] = (TW_Command_Full *)((unsigned char *)cpu_addr + (i*size)); in twl_allocate_memory() 702 tw_dev->generic_buffer_virt[i] = (unsigned long *)((unsigned char *)cpu_addr + (i*size)); in twl_allocate_memory() 706 … tw_dev->sense_buffer_virt[i] = (TW_Command_Apache_Header *)((unsigned char *)cpu_addr + (i*size)); in twl_allocate_memory() 756 unsigned long *cpu_addr, data_buffer_length_adjusted = 0, flags = 0; in twl_chrdev_ioctl() local 789 …cpu_addr = dma_alloc_coherent(&tw_dev->tw_pci_dev->dev, data_buffer_length_adjusted+sizeof(TW_Ioct… in twl_chrdev_ioctl() 790 if (!cpu_addr) { in twl_chrdev_ioctl() [all …]
|
D | 3w-9xxx.c | 527 unsigned long *cpu_addr; in twa_allocate_memory() local 530 cpu_addr = pci_alloc_consistent(tw_dev->tw_pci_dev, size*TW_Q_LENGTH, &dma_handle); in twa_allocate_memory() 531 if (!cpu_addr) { in twa_allocate_memory() 536 if ((unsigned long)cpu_addr % (TW_ALIGNMENT_9000)) { in twa_allocate_memory() 538 pci_free_consistent(tw_dev->tw_pci_dev, size*TW_Q_LENGTH, cpu_addr, dma_handle); in twa_allocate_memory() 542 memset(cpu_addr, 0, size*TW_Q_LENGTH); in twa_allocate_memory() 548 tw_dev->command_packet_virt[i] = (TW_Command_Full *)((unsigned char *)cpu_addr + (i*size)); in twa_allocate_memory() 552 tw_dev->generic_buffer_virt[i] = (unsigned long *)((unsigned char *)cpu_addr + (i*size)); in twa_allocate_memory() 645 unsigned long *cpu_addr, data_buffer_length_adjusted = 0, flags = 0; in twa_chrdev_ioctl() local 684 …cpu_addr = dma_alloc_coherent(&tw_dev->tw_pci_dev->dev, data_buffer_length_adjusted+sizeof(TW_Ioct… in twa_chrdev_ioctl() [all …]
|
/drivers/net/wireless/iwlwifi/ |
D | iwl-testmode.c | 219 if (priv->testmode_trace.cpu_addr && in iwl_trace_cleanup() 223 priv->testmode_trace.cpu_addr, in iwl_trace_cleanup() 226 priv->testmode_trace.cpu_addr = NULL; in iwl_trace_cleanup() 662 priv->testmode_trace.cpu_addr = in iwl_testmode_trace() 667 if (!priv->testmode_trace.cpu_addr) in iwl_testmode_trace() 671 priv->testmode_trace.cpu_addr, 0x100); in iwl_testmode_trace()
|
D | iwl-dev.h | 685 u8 *cpu_addr; member
|
/drivers/net/caif/ |
D | caif_spi.c | 88 static inline void dma_free(void *cpu_addr, dma_addr_t handle) in dma_free() argument 90 kfree(cpu_addr); in dma_free() 101 static inline void dma_free(void *cpu_addr, dma_addr_t handle) in dma_free() argument 103 dma_free_coherent(NULL, SPI_DMA_BUF_LEN, cpu_addr, handle); in dma_free()
|
/drivers/s390/cio/ |
D | css.h | 54 __u32 cpu_addr : 16; /* CPU address */ member
|
D | css.c | 681 css->global_pgid.pgid_high.cpu_addr = stap(); in css_generate_pgid() 683 css->global_pgid.pgid_high.cpu_addr = 0; in css_generate_pgid()
|
/drivers/rpmsg/ |
D | virtio_rpmsg_bus.c | 976 void *cpu_addr = vrp->rbufs + i * RPMSG_BUF_SIZE; in rpmsg_probe() local 978 sg_init_one(&sg, cpu_addr, RPMSG_BUF_SIZE); in rpmsg_probe() 980 err = virtqueue_add_buf(vrp->rvq, &sg, 0, 1, cpu_addr, in rpmsg_probe()
|
/drivers/infiniband/hw/ehca/ |
D | ehca_mrmw.c | 2535 static u64 ehca_dma_map_single(struct ib_device *dev, void *cpu_addr, in ehca_dma_map_single() argument 2538 if (cpu_addr) in ehca_dma_map_single() 2539 return ehca_map_vaddr(cpu_addr); in ehca_dma_map_single() 2643 void *cpu_addr, u64 dma_handle) in ehca_dma_free_coherent() argument 2645 if (cpu_addr && size) in ehca_dma_free_coherent() 2646 free_pages((unsigned long)cpu_addr, get_order(size)); in ehca_dma_free_coherent()
|
/drivers/parisc/ |
D | ccio-dma.c | 872 ccio_free_consistent(struct device *dev, size_t size, void *cpu_addr, in ccio_free_consistent() argument 876 free_pages((unsigned long)cpu_addr, get_order(size)); in ccio_free_consistent()
|
/drivers/block/ |
D | DAC960.c | 223 void *cpu_addr; in init_dma_loaf() local 226 cpu_addr = pci_alloc_consistent(dev, len, &dma_handle); in init_dma_loaf() 227 if (cpu_addr == NULL) in init_dma_loaf() 230 loaf->cpu_free = loaf->cpu_base = cpu_addr; in init_dma_loaf() 233 memset(cpu_addr, 0, len); in init_dma_loaf() 241 void *cpu_addr = loaf->cpu_free; in slice_dma_loaf() local 247 return cpu_addr; in slice_dma_loaf()
|
/drivers/net/ethernet/sun/ |
D | niu.h | 3131 void *cpu_addr, u64 handle); 3137 u64 (*map_single)(struct device *dev, void *cpu_addr,
|
D | niu.c | 9620 void *cpu_addr, u64 handle) in niu_pci_free_coherent() argument 9622 dma_free_coherent(dev, size, cpu_addr, handle); in niu_pci_free_coherent() 9638 static u64 niu_pci_map_single(struct device *dev, void *cpu_addr, in niu_pci_map_single() argument 9642 return dma_map_single(dev, cpu_addr, size, direction); in niu_pci_map_single() 10004 void *cpu_addr, u64 handle) in niu_phys_free_coherent() argument 10008 free_pages((unsigned long) cpu_addr, order); in niu_phys_free_coherent() 10024 static u64 niu_phys_map_single(struct device *dev, void *cpu_addr, in niu_phys_map_single() argument 10028 return __pa(cpu_addr); in niu_phys_map_single()
|