/drivers/base/ |
D | dma-mapping.c | 21 dma_addr_t dma_handle; member 28 dma_free_coherent(dev, this->size, this->vaddr, this->dma_handle); in dmam_coherent_release() 35 dma_free_noncoherent(dev, this->size, this->vaddr, this->dma_handle); in dmam_noncoherent_release() 44 this->dma_handle != match->dma_handle); in dmam_match() 64 dma_addr_t *dma_handle, gfp_t gfp) in dmam_alloc_coherent() argument 73 vaddr = dma_alloc_coherent(dev, size, dma_handle, gfp); in dmam_alloc_coherent() 80 dr->dma_handle = *dma_handle; in dmam_alloc_coherent() 99 dma_addr_t dma_handle) in dmam_free_coherent() argument 101 struct dma_devres match_data = { size, vaddr, dma_handle }; in dmam_free_coherent() 103 dma_free_coherent(dev, size, vaddr, dma_handle); in dmam_free_coherent() [all …]
|
D | dma-coherent.c | 115 dma_addr_t *dma_handle, void **ret) in dma_alloc_from_coherent() argument 139 *dma_handle = mem->device_base + (pageno << PAGE_SHIFT); in dma_alloc_from_coherent() 339 dma_addr_t *dma_handle, void **ret) in dma_alloc_from_coherent() argument 363 *dma_handle = mem->device_base + (pageno << PAGE_SHIFT); in dma_alloc_from_coherent()
|
/drivers/media/v4l2-core/ |
D | videobuf-dma-contig.c | 29 dma_addr_t dma_handle; member 46 &mem->dma_handle, flags); in __videobuf_dc_alloc() 61 dma_free_coherent(dev, mem->size, mem->vaddr, mem->dma_handle); in __videobuf_dc_free() 146 mem->dma_handle = 0; in videobuf_dma_contig_user_put() 193 mem->dma_handle = (this_pfn << PAGE_SHIFT) + offset; in videobuf_dma_contig_user_get() 312 mem->dma_handle >> PAGE_SHIFT, in __videobuf_mmap_mapper() 318 mem->vaddr, mem->dma_handle); in __videobuf_mmap_mapper() 369 return mem->dma_handle; in videobuf_to_dma_contig()
|
/drivers/scsi/aic94xx/ |
D | aic94xx_hwi.c | 238 &seq->next_scb.dma_handle); in asd_init_scbs() 370 eb->bus_addr = cpu_to_le64(((u64) edb->dma_handle)); in asd_assign_edbs2escbs() 517 dma_addr_t dma_handle; in asd_extend_devctx() local 539 dma_handle = asd_ha->hw_prof.ddb_ext->dma_handle; in asd_extend_devctx() 540 dma_addr = ALIGN((unsigned long) dma_handle, ASD_DDB_SIZE); in asd_extend_devctx() 542 dma_handle = (dma_addr_t) dma_addr; in asd_extend_devctx() 543 asd_write_reg_addr(asd_ha, DEVCTXBASE, dma_handle); in asd_extend_devctx() 555 dma_addr_t dma_handle; in asd_extend_cmdctx() local 575 dma_handle = asd_ha->hw_prof.scb_ext->dma_handle; in asd_extend_cmdctx() 576 dma_addr = ALIGN((unsigned long) dma_handle, ASD_SCB_SIZE); in asd_extend_cmdctx() [all …]
|
D | aic94xx_hwi.h | 99 dma_addr_t dma_handle; member 268 &token->dma_handle, in asd_alloc_coherent() 283 token->vaddr, token->dma_handle); in asd_free_coherent() 349 ascb->dma_scb.dma_handle); in asd_ascb_free()
|
D | aic94xx_reg.h | 267 dma_addr_t dma_handle) in asd_write_reg_addr() argument 269 asd_write_reg_dword(asd_ha, reg, ASD_BUSADDR_LO(dma_handle)); in asd_write_reg_addr() 270 asd_write_reg_dword(asd_ha, reg+4, ASD_BUSADDR_HI(dma_handle)); in asd_write_reg_addr()
|
/drivers/infiniband/hw/qib/ |
D | qib_dma.c | 149 u64 *dma_handle, gfp_t flag) in qib_dma_alloc_coherent() argument 157 if (dma_handle) in qib_dma_alloc_coherent() 158 *dma_handle = (u64) addr; in qib_dma_alloc_coherent() 163 void *cpu_addr, u64 dma_handle) in qib_dma_free_coherent() argument
|
/drivers/infiniband/hw/ipath/ |
D | ipath_dma.c | 159 u64 *dma_handle, gfp_t flag) in ipath_dma_alloc_coherent() argument 167 if (dma_handle) in ipath_dma_alloc_coherent() 168 *dma_handle = (u64) addr; in ipath_dma_alloc_coherent() 173 void *cpu_addr, u64 dma_handle) in ipath_dma_free_coherent() argument
|
/drivers/media/common/saa7146/ |
D | saa7146_core.c | 425 &dev->d_rps0.dma_handle); in saa7146_init_one() 431 &dev->d_rps1.dma_handle); in saa7146_init_one() 437 &dev->d_i2c.dma_handle); in saa7146_init_one() 490 dev->d_i2c.dma_handle); in saa7146_init_one() 493 dev->d_rps1.dma_handle); in saa7146_init_one() 496 dev->d_rps0.dma_handle); in saa7146_init_one() 518 { dev->d_i2c.cpu_addr, dev->d_i2c.dma_handle }, in saa7146_remove_one() 519 { dev->d_rps1.cpu_addr, dev->d_rps1.dma_handle }, in saa7146_remove_one() 520 { dev->d_rps0.cpu_addr, dev->d_rps0.dma_handle }, in saa7146_remove_one()
|
/drivers/isdn/hardware/eicon/ |
D | divasmain.c | 338 dma_addr_t *dma_handle, in diva_pci_alloc_consistent() argument 341 void *addr = pci_alloc_consistent(hwdev, size, dma_handle); in diva_pci_alloc_consistent() 357 dma_addr_t dma_handle; in diva_init_dma_map() local 364 &dma_handle, in diva_init_dma_map() 370 (dword) dma_handle, in diva_init_dma_map() 374 (dword) dma_handle, in diva_init_dma_map() 391 dma_addr_t dma_handle; in diva_free_dma_map() local 400 dma_handle = (dma_addr_t) phys_addr; in diva_free_dma_map() 402 dma_handle); in diva_free_dma_map() 404 (unsigned long) cpu_addr, (dword) dma_handle, in diva_free_dma_map()
|
/drivers/tty/ |
D | goldfish.c | 90 dma_addr_t dma_handle; in goldfish_tty_rw() local 108 dma_handle = dma_map_single(qtty->dev, (void *)address, avail, dma_dir); in goldfish_tty_rw() 110 if (dma_mapping_error(qtty->dev, dma_handle)) { in goldfish_tty_rw() 114 do_rw_io(qtty, dma_handle, avail, is_write); in goldfish_tty_rw() 119 dma_unmap_single(qtty->dev, dma_handle, avail, dma_dir); in goldfish_tty_rw()
|
/drivers/media/pci/cx18/ |
D | cx18-queue.h | 32 pci_dma_sync_single_for_cpu(s->cx->pci_dev, buf->dma_handle, in cx18_buf_sync_for_cpu() 39 pci_dma_sync_single_for_device(s->cx->pci_dev, buf->dma_handle, in cx18_buf_sync_for_device()
|
D | cx18-queue.c | 307 cx18_writel(cx, buf->dma_handle, in cx18_load_queues() 343 pci_dma_sync_single_for_device(pci_dev, buf->dma_handle, in _cx18_mdl_sync_for_device() 404 buf->dma_handle = pci_map_single(s->cx->pci_dev, in cx18_stream_alloc() 438 pci_unmap_single(s->cx->pci_dev, buf->dma_handle, in cx18_stream_free()
|
/drivers/media/pci/ivtv/ |
D | ivtv-queue.h | 56 pci_dma_sync_single_for_cpu(s->itv->pdev, buf->dma_handle, in ivtv_buf_sync_for_cpu() 63 pci_dma_sync_single_for_device(s->itv->pdev, buf->dma_handle, in ivtv_buf_sync_for_device()
|
/drivers/usb/host/ |
D | imx21-hcd.c | 268 if (etd->dma_handle && unsuitable_for_dma(etd->dma_handle)) { in activate_etd() 277 etd->dma_handle = 0; in activate_etd() 298 etd->dma_handle = in activate_etd() 303 if (dma_mapping_error(imx21->dev, etd->dma_handle)) { in activate_etd() 315 if (etd->dma_handle) { in activate_etd() 319 writel(etd->dma_handle, imx21->regs + USB_ETDSMSA(etd_num)); in activate_etd() 608 etd->dma_handle = td->dma_handle; in schedule_isoc_etds() 669 if (!etd->dma_handle) in isoc_etd_done() 838 td->dma_handle = urb->transfer_dma + offset; in imx21_hc_urb_enqueue_isoc() 933 etd->dma_handle = urb->setup_dma; in schedule_nonisoc_etd() [all …]
|
D | uhci-hcd.h | 153 dma_addr_t dma_handle; member 190 cpu_to_hc32((uhci), (qh)->dma_handle)) 262 dma_addr_t dma_handle; member 277 #define LINK_TO_TD(uhci, td) (cpu_to_hc32((uhci), (td)->dma_handle))
|
D | uhci-q.c | 108 dma_addr_t dma_handle; in uhci_alloc_td() local 111 td = dma_pool_alloc(uhci->td_pool, GFP_ATOMIC, &dma_handle); in uhci_alloc_td() 115 td->dma_handle = dma_handle; in uhci_alloc_td() 131 dma_pool_free(uhci->td_pool, td, td->dma_handle); in uhci_free_td() 248 dma_addr_t dma_handle; in uhci_alloc_qh() local 251 qh = dma_pool_alloc(uhci->qh_pool, GFP_ATOMIC, &dma_handle); in uhci_alloc_qh() 256 qh->dma_handle = dma_handle; in uhci_alloc_qh() 269 dma_pool_free(uhci->qh_pool, qh, dma_handle); in uhci_alloc_qh() 305 dma_pool_free(uhci->qh_pool, qh, qh->dma_handle); in uhci_free_qh()
|
/drivers/scsi/ |
D | megaraid.c | 228 dma_addr_t dma_handle; in mega_query_adapter() local 231 sizeof(mraid_ext_inquiry), &dma_handle); in mega_query_adapter() 237 mbox->m_out.xferaddr = (u32)dma_handle; in mega_query_adapter() 252 ext_inq, dma_handle); in mega_query_adapter() 2057 mega_allocate_inquiry(dma_addr_t *dma_handle, struct pci_dev *pdev) in mega_allocate_inquiry() argument 2059 return pci_alloc_consistent(pdev, sizeof(mega_inquiry3), dma_handle); in mega_allocate_inquiry() 2064 mega_free_inquiry(void *inquiry, dma_addr_t dma_handle, struct pci_dev *pdev) in mega_free_inquiry() argument 2066 pci_free_consistent(pdev, sizeof(mega_inquiry3), inquiry, dma_handle); in mega_free_inquiry() 2210 dma_addr_t dma_handle; in proc_show_rebuild_rate() local 2217 if( (inquiry = mega_allocate_inquiry(&dma_handle, pdev)) == NULL ) in proc_show_rebuild_rate() [all …]
|
D | 3w-sas.c | 682 dma_addr_t dma_handle; 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() 697 tw_dev->command_packet_phys[i] = dma_handle+(i*size); in twl_allocate_memory() 701 tw_dev->generic_buffer_phys[i] = dma_handle+(i*size); in twl_allocate_memory() 705 tw_dev->sense_buffer_phys[i] = dma_handle+(i*size); in twl_allocate_memory() 716 …n *tw_dev, TW_Command_Full *full_command_packet, int request_id, dma_addr_t dma_handle, int length) in twl_load_sgl() argument 731 newcommand->sg_list[0].address = TW_CPU_TO_SGL(dma_handle + sizeof(TW_Ioctl_Buf_Apache) - 1); in twl_load_sgl() 743 sgl->address = TW_CPU_TO_SGL(dma_handle + sizeof(TW_Ioctl_Buf_Apache) - 1); in twl_load_sgl() 757 dma_addr_t dma_handle; in twl_chrdev_ioctl() local 789 …ci_dev->dev, data_buffer_length_adjusted+sizeof(TW_Ioctl_Buf_Apache) - 1, &dma_handle, GFP_KERNEL); in twl_chrdev_ioctl() [all …]
|
D | stex.c | 297 dma_addr_t dma_handle; member 533 addr = hba->dma_handle + hba->req_head * hba->rq_size; in stex_ss_send_cmd() 1018 h->rb_phy = cpu_to_le64(hba->dma_handle); in stex_common_handshake() 1031 status_phys = hba->dma_handle + (hba->rq_count+1) * hba->rq_size; in stex_common_handshake() 1088 msg_h->handle = cpu_to_le64(hba->dma_handle); in stex_ss_handshake() 1092 h->rb_phy = cpu_to_le64(hba->dma_handle); in stex_ss_handshake() 1106 writel((hba->dma_handle >> 16) >> 16, base + YH2I_REQ_HI); in stex_ss_handshake() 1108 writel(hba->dma_handle, base + YH2I_REQ); in stex_ss_handshake() 1604 hba->dma_size, &hba->dma_handle, GFP_KERNEL); in stex_probe() 1615 hba->dma_size, &hba->dma_handle, GFP_KERNEL); in stex_probe() [all …]
|
/drivers/message/fusion/ |
D | mptsas.c | 656 dma_addr_t dma_handle; in mptsas_add_device_component_starget_ir() local 678 &dma_handle); in mptsas_add_device_component_starget_ir() 683 cfg.physAddr = dma_handle; in mptsas_add_device_component_starget_ir() 745 dma_handle); in mptsas_add_device_component_starget_ir() 1352 dma_addr_t dma_handle; in mptsas_sas_enclosure_pg0() local 1378 &dma_handle); in mptsas_sas_enclosure_pg0() 1384 cfg.physAddr = dma_handle; in mptsas_sas_enclosure_pg0() 1405 buffer, dma_handle); in mptsas_sas_enclosure_pg0() 2009 dma_addr_t dma_handle; in mptsas_get_linkerrors() local 2038 &dma_handle); in mptsas_get_linkerrors() [all …]
|
/drivers/net/ethernet/adi/ |
D | bfin_mac.c | 55 # define bfin_mac_alloc(dma_handle, size, num) l1_data_sram_zalloc(size*num) argument 56 # define bfin_mac_free(dma_handle, ptr, num) l1_data_sram_free(ptr) argument 58 # define bfin_mac_alloc(dma_handle, size, num) \ argument 59 dma_alloc_coherent(NULL, size*num, dma_handle, GFP_KERNEL) 60 # define bfin_mac_free(dma_handle, ptr, num) \ argument 61 dma_free_coherent(NULL, sizeof(*ptr)*num, ptr, dma_handle) 84 dma_addr_t dma_handle = 0; in desc_list_free() local 98 bfin_mac_free(dma_handle, tx_desc, CONFIG_BFIN_TX_DESC_NUM); in desc_list_free() 112 bfin_mac_free(dma_handle, rx_desc, CONFIG_BFIN_RX_DESC_NUM); in desc_list_free() 125 dma_addr_t dma_handle; in desc_list_init() local [all …]
|
/drivers/xen/ |
D | swiotlb-xen.c | 258 dma_addr_t *dma_handle, gfp_t flags, in xen_swiotlb_alloc_coherent() argument 276 if (dma_alloc_from_coherent(hwdev, size, dma_handle, &ret)) in xen_swiotlb_alloc_coherent() 292 *dma_handle = dev_addr; in xen_swiotlb_alloc_coherent() 299 *dma_handle = virt_to_machine(ret).maddr; in xen_swiotlb_alloc_coherent()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | mr.c | 540 dma_addr_t dma_handle; in mlx4_write_mtt_chunk() local 544 start_index, &dma_handle); in mlx4_write_mtt_chunk() 549 dma_sync_single_for_cpu(&dev->pdev->dev, dma_handle, in mlx4_write_mtt_chunk() 555 dma_sync_single_for_device(&dev->pdev->dev, dma_handle, in mlx4_write_mtt_chunk() 862 dma_sync_single_for_cpu(&dev->pdev->dev, fmr->dma_handle, in mlx4_map_phys_fmr() 868 dma_sync_single_for_device(&dev->pdev->dev, fmr->dma_handle, in mlx4_map_phys_fmr() 916 &fmr->dma_handle); in mlx4_fmr_alloc()
|
/drivers/video/ |
D | sh_mobile_lcdcfb.c | 191 dma_addr_t dma_handle; member 876 ovl->base_addr_y = ovl->dma_handle; in sh_mobile_lcdc_overlay_setup() 877 ovl->base_addr_c = ovl->dma_handle in sh_mobile_lcdc_overlay_setup() 1114 ch->base_addr_y = ch->dma_handle; in sh_mobile_lcdc_start() 1115 ch->base_addr_c = ch->dma_handle in sh_mobile_lcdc_start() 1533 base_addr_y = ovl->dma_handle + y_offset; in sh_mobile_lcdc_overlay_pan() 1534 base_addr_c = ovl->dma_handle + ovl->xres_virtual * ovl->yres_virtual in sh_mobile_lcdc_overlay_pan() 1624 ovl->dma_handle, ovl->fb_size); in sh_mobile_lcdc_overlay_mmap() 1720 info->fix.smem_start = ovl->dma_handle; in sh_mobile_lcdc_overlay_fb_init() 1848 base_addr_y = ch->dma_handle + y_offset; in sh_mobile_lcdc_pan() [all …]
|