/drivers/net/enic/ |
D | enic_res.h | 43 void *os_buf, dma_addr_t dma_addr, unsigned int len, in enic_queue_wq_desc_ex() argument 51 (u64)dma_addr | VNIC_PADDR_TARGET, in enic_queue_wq_desc_ex() 61 vnic_wq_post(wq, os_buf, dma_addr, len, sop, eop); in enic_queue_wq_desc_ex() 65 void *os_buf, dma_addr_t dma_addr, unsigned int len, int eop) in enic_queue_wq_desc_cont() argument 67 enic_queue_wq_desc_ex(wq, os_buf, dma_addr, len, in enic_queue_wq_desc_cont() 73 dma_addr_t dma_addr, unsigned int len, int vlan_tag_insert, in enic_queue_wq_desc() argument 76 enic_queue_wq_desc_ex(wq, os_buf, dma_addr, len, in enic_queue_wq_desc() 83 void *os_buf, dma_addr_t dma_addr, unsigned int len, in enic_queue_wq_desc_csum() argument 87 enic_queue_wq_desc_ex(wq, os_buf, dma_addr, len, in enic_queue_wq_desc_csum() 95 void *os_buf, dma_addr_t dma_addr, unsigned int len, in enic_queue_wq_desc_csum_l4() argument [all …]
|
D | vnic_wq.h | 55 dma_addr_t dma_addr; member 100 void *os_buf, dma_addr_t dma_addr, in vnic_wq_post() argument 107 buf->dma_addr = dma_addr; in vnic_wq_post()
|
D | vnic_rq.h | 65 dma_addr_t dma_addr; member 115 dma_addr_t dma_addr, unsigned int len) in vnic_rq_post() argument 121 buf->dma_addr = dma_addr; in vnic_rq_post()
|
/drivers/usb/mon/ |
D | mon_dma.c | 24 char mon_dmapeek(unsigned char *dst, dma_addr_t dma_addr, int len) in mon_dmapeek() argument 36 pg = phys_to_page(dma_addr); in mon_dmapeek() 45 ptr = map + (dma_addr & (PAGE_SIZE-1)); in mon_dmapeek() 53 unsigned int offset, dma_addr_t dma_addr, unsigned int length) in mon_dmapeek_vec() argument 65 page_off = dma_addr & (PAGE_SIZE-1); in mon_dmapeek_vec() 71 pg = phys_to_page(dma_addr); in mon_dmapeek_vec() 75 dma_addr += step_len; in mon_dmapeek_vec() 84 char mon_dmapeek(unsigned char *dst, dma_addr_t dma_addr, int len) in mon_dmapeek() argument 90 unsigned int offset, dma_addr_t dma_addr, unsigned int length) in mon_dmapeek_vec() argument
|
/drivers/infiniband/hw/amso1100/ |
D | c2_alloc.c | 45 dma_addr_t dma_addr; in c2_alloc_mqsp_chunk() local 48 &dma_addr, gfp_mask); in c2_alloc_mqsp_chunk() 52 new_head->dma_addr = dma_addr; in c2_alloc_mqsp_chunk() 53 pci_unmap_addr_set(new_head, mapping, new_head->dma_addr); in c2_alloc_mqsp_chunk() 91 dma_addr_t *dma_addr, gfp_t gfp_mask) in c2_alloc_mqsp() argument 113 *dma_addr = head->dma_addr + in c2_alloc_mqsp() 117 &(head->shared_ptr[mqsp]), (unsigned long long) *dma_addr); in c2_alloc_mqsp()
|
/drivers/net/sfc/ |
D | tx.c | 67 dma_addr_t unmap_addr = (buffer->dma_addr + buffer->len - in efx_dequeue_buffer() 104 dma_addr_t dma_addr; member 151 dma_addr_t dma_addr, unmap_addr = 0; in efx_enqueue_skb() local 173 dma_addr = pci_map_single(pci_dev, skb->data, len, PCI_DMA_TODEVICE); in efx_enqueue_skb() 177 if (unlikely(pci_dma_mapping_error(pci_dev, dma_addr))) in efx_enqueue_skb() 183 unmap_addr = dma_addr; in efx_enqueue_skb() 221 dma_len = (((~dma_addr) & efx->type->tx_dma_mask) + 1); in efx_enqueue_skb() 225 misalign = (unsigned)dma_addr & efx->type->bug5391_mask; in efx_enqueue_skb() 231 buffer->dma_addr = dma_addr; in efx_enqueue_skb() 233 dma_addr += dma_len; in efx_enqueue_skb() [all …]
|
D | rx.c | 232 rx_buf->dma_addr = pci_map_single(efx->pci_dev, in efx_init_rx_buffer_skb() 236 if (unlikely(pci_dma_mapping_error(efx->pci_dev, rx_buf->dma_addr))) { in efx_init_rx_buffer_skb() 267 dma_addr_t dma_addr; in efx_init_rx_buffer_page() local 274 dma_addr = pci_map_page(efx->pci_dev, rx_buf->page, in efx_init_rx_buffer_page() 278 if (unlikely(pci_dma_mapping_error(efx->pci_dev, dma_addr))) { in efx_init_rx_buffer_page() 285 rx_queue->buf_dma_addr = dma_addr; in efx_init_rx_buffer_page() 293 rx_buf->dma_addr = rx_queue->buf_dma_addr + offset; in efx_init_rx_buffer_page() 355 pci_unmap_single(efx->pci_dev, rx_buf->dma_addr, in efx_unmap_rx_buffer() 647 (unsigned long long)rx_buf->dma_addr, len, in efx_rx_packet()
|
/drivers/serial/cpm_uart/ |
D | cpm_uart_cpm1.c | 82 dma_addr_t dma_addr = 0; in cpm_uart_allocbuf() local 101 dma_addr = (u32)cpm_dpram_phys(mem_addr); in cpm_uart_allocbuf() 103 mem_addr = dma_alloc_coherent(pinfo->port.dev, memsz, &dma_addr, in cpm_uart_allocbuf() 115 pinfo->dma_addr = dma_addr; /* physical address*/ in cpm_uart_allocbuf() 134 pinfo->dma_addr); in cpm_uart_freebuf()
|
D | cpm_uart_cpm2.c | 118 dma_addr_t dma_addr = 0; in cpm_uart_allocbuf() local 136 dma_addr = virt_to_bus(mem_addr); in cpm_uart_allocbuf() 139 mem_addr = dma_alloc_coherent(pinfo->port.dev, memsz, &dma_addr, in cpm_uart_allocbuf() 151 pinfo->dma_addr = dma_addr; in cpm_uart_allocbuf() 170 pinfo->dma_addr); in cpm_uart_freebuf()
|
/drivers/usb/musb/ |
D | tusb6010_omap.c | 41 void __iomem *dma_addr; member 173 buf = phys_to_virt((u32)chdat->dma_addr) + chdat->transfer_len; in tusb_omap_dma_cb() 175 dma_cache_maint(phys_to_virt((u32)chdat->dma_addr), in tusb_omap_dma_cb() 180 dma_cache_maint(phys_to_virt((u32)chdat->dma_addr), in tusb_omap_dma_cb() 221 u8 rndis_mode, dma_addr_t dma_addr, u32 len) in tusb_omap_dma_program() argument 238 if (unlikely(dma_addr & 0x1) || (len < 32) || (len > packet_sz)) in tusb_omap_dma_program() 247 if (dma_addr & 0x2) in tusb_omap_dma_program() 301 chdat->dma_addr = (void __iomem *)dma_addr; in tusb_omap_dma_program() 306 dma_cache_maint(phys_to_virt(dma_addr), len, DMA_TO_DEVICE); in tusb_omap_dma_program() 308 dma_cache_maint(phys_to_virt(dma_addr), len, DMA_FROM_DEVICE); in tusb_omap_dma_program() [all …]
|
D | musbhsdma.c | 120 dma_addr_t dma_addr, u32 len) in configure_channel() argument 129 channel, packet_sz, dma_addr, len, mode); in configure_channel() 155 musb_write_hsdma_addr(mbase, bchannel, dma_addr); in configure_channel() 166 dma_addr_t dma_addr, u32 len) in dma_channel_program() argument 173 packet_sz, dma_addr, len, mode); in dma_channel_program() 179 musb_channel->start_addr = dma_addr; in dma_channel_program() 185 configure_channel(channel, packet_sz, 1, dma_addr, len); in dma_channel_program() 187 configure_channel(channel, packet_sz, 0, dma_addr, len); in dma_channel_program()
|
D | musbhsdma.h | 89 u8 bchannel, dma_addr_t dma_addr) in musb_write_hsdma_addr() argument 93 ((u16)((u32) dma_addr & 0xFFFF))); in musb_write_hsdma_addr() 96 ((u16)(((u32) dma_addr >> 16) & 0xFFFF))); in musb_write_hsdma_addr()
|
/drivers/infiniband/hw/ipath/ |
D | ipath_user_sdma.c | 150 void *kvaddr, dma_addr_t dma_addr) in ipath_user_sdma_init_frag() argument 158 pkt->addr[i].addr = dma_addr; in ipath_user_sdma_init_frag() 165 void *kvaddr, dma_addr_t dma_addr) in ipath_user_sdma_init_header() argument 170 kvaddr, dma_addr); in ipath_user_sdma_init_header() 184 dma_addr_t dma_addr; in ipath_user_sdma_coalesce() local 207 dma_addr = dma_map_page(&dd->pcidev->dev, page, 0, len, in ipath_user_sdma_coalesce() 209 if (dma_mapping_error(&dd->pcidev->dev, dma_addr)) { in ipath_user_sdma_coalesce() 215 dma_addr); in ipath_user_sdma_coalesce() 299 dma_addr_t dma_addr = in ipath_user_sdma_pin_pages() local 304 if (dma_mapping_error(&dd->pcidev->dev, dma_addr)) { in ipath_user_sdma_pin_pages() [all …]
|
/drivers/usb/host/whci/ |
D | qset.c | 196 qtd->page_list_ptr = cpu_to_le64(std->dma_addr); in qset_add_qtds() 235 dma_unmap_single(whc->wusbhc.dev, std->dma_addr, in qset_free_std() 276 dma_addr_t dma_addr = std->dma_addr; in qset_fill_page_list() local 282 sp = ALIGN(dma_addr, WHCI_PAGE_SIZE); in qset_fill_page_list() 283 ep = dma_addr + std_len; in qset_fill_page_list() 290 std->dma_addr = dma_map_single(whc->wusbhc.dev, std->pl_virt, pl_len, DMA_TO_DEVICE); in qset_fill_page_list() 293 std->pl_virt[p].buf_ptr = cpu_to_le64(dma_addr); in qset_fill_page_list() 294 dma_addr = ALIGN(dma_addr + WHCI_PAGE_SIZE, WHCI_PAGE_SIZE); in qset_fill_page_list() 364 std->dma_addr = transfer_dma; in qset_add_urb()
|
D | hw.c | 51 dma_addr_t dma_addr; in whc_do_gencmd() local 71 dma_addr = whc->gen_cmd_buf_dma; in whc_do_gencmd() 73 dma_addr = 0; in whc_do_gencmd() 79 le_writeq(dma_addr, whc->base + WUSBGENADDR); in whc_do_gencmd()
|
/drivers/message/i2o/ |
D | memory.c | 78 dma_addr_t dma_addr; in i2o_dma_map_single() local 91 dma_addr = dma_map_single(&c->pdev->dev, ptr, size, direction); in i2o_dma_map_single() 92 if (!dma_mapping_error(&c->pdev->dev, dma_addr)) { in i2o_dma_map_single() 101 *mptr++ = cpu_to_le32(i2o_dma_low(dma_addr)); in i2o_dma_map_single() 104 *mptr++ = cpu_to_le32(i2o_dma_high(dma_addr)); in i2o_dma_map_single() 108 return dma_addr; in i2o_dma_map_single()
|
/drivers/atm/ |
D | fore200e.c | 91 #define FORE200E_DMA_INDEX(dma_addr, type, index) ((dma_addr) + (index) * sizeof(type)) argument 198 …chunk->dma_addr = fore200e->bus->dma_map(fore200e, chunk->align_addr, chunk->align_size, direction… in fore200e_chunk_alloc() 209 fore200e->bus->dma_unmap(fore200e, chunk->dma_addr, chunk->dma_size, chunk->direction); in fore200e_chunk_free() 428 u32 dma_addr = pci_map_single((struct pci_dev*)fore200e->bus_dev, virt_addr, size, direction); in fore200e_pca_dma_map() local 431 virt_addr, size, direction, dma_addr); in fore200e_pca_dma_map() 433 return dma_addr; in fore200e_pca_dma_map() 438 fore200e_pca_dma_unmap(struct fore200e* fore200e, u32 dma_addr, int size, int direction) in fore200e_pca_dma_unmap() argument 441 dma_addr, size, direction); in fore200e_pca_dma_unmap() 443 pci_unmap_single((struct pci_dev*)fore200e->bus_dev, dma_addr, size, direction); in fore200e_pca_dma_unmap() 448 fore200e_pca_dma_sync_for_cpu(struct fore200e* fore200e, u32 dma_addr, int size, int direction) in fore200e_pca_dma_sync_for_cpu() argument [all …]
|
/drivers/net/ |
D | myri_sbus.c | 245 u32 dma_addr; in myri_clean_rings() local 247 dma_addr = sbus_readl(&rxd->myri_scatters[0].addr); in myri_clean_rings() 248 dma_unmap_single(&mp->myri_op->dev, dma_addr, in myri_clean_rings() 262 u32 dma_addr; in myri_clean_rings() local 264 dma_addr = sbus_readl(&txd->myri_gathers[0].addr); in myri_clean_rings() 265 dma_unmap_single(&mp->myri_op->dev, dma_addr, in myri_clean_rings() 288 u32 dma_addr; in myri_init_rings() local 296 dma_addr = dma_map_single(&mp->myri_op->dev, in myri_init_rings() 299 sbus_writel(dma_addr, &rxd[i].myri_scatters[0].addr); in myri_init_rings() 347 u32 dma_addr; in myri_tx() local [all …]
|
D | ibmveth.c | 194 pool->dma_addr = kmalloc(sizeof(dma_addr_t) * pool->size, GFP_KERNEL); in ibmveth_alloc_buffer_pool() 195 if(!pool->dma_addr) { in ibmveth_alloc_buffer_pool() 204 kfree(pool->dma_addr); in ibmveth_alloc_buffer_pool() 205 pool->dma_addr = NULL; in ibmveth_alloc_buffer_pool() 213 memset(pool->dma_addr, 0, sizeof(dma_addr_t) * pool->size); in ibmveth_alloc_buffer_pool() 238 dma_addr_t dma_addr; in ibmveth_replenish_buffer_pool() local 260 dma_addr = dma_map_single(&adapter->vdev->dev, skb->data, in ibmveth_replenish_buffer_pool() 263 if (dma_mapping_error(&adapter->vdev->dev, dma_addr)) in ibmveth_replenish_buffer_pool() 267 pool->dma_addr[index] = dma_addr; in ibmveth_replenish_buffer_pool() 274 desc.fields.address = dma_addr; in ibmveth_replenish_buffer_pool() [all …]
|
D | e100.c | 423 dma_addr_t dma_addr; member 501 dma_addr_t dma_addr; member 584 dma_addr_t dma_addr; member 652 u32 dma_addr = nic->dma_addr + offsetof(struct mem, selftest); in e100_self_test() local 660 iowrite32(selftest | dma_addr, &nic->csr->port); in e100_self_test() 814 static int e100_exec_cmd(struct nic *nic, u8 cmd, dma_addr_t dma_addr) in e100_exec_cmd() argument 836 iowrite32(dma_addr, &nic->csr->scb.gen_ptr); in e100_exec_cmd() 877 nic->cb_to_send->dma_addr))) { in e100_exec_cb() 1251 cb->u.dump_buffer_addr = cpu_to_le32(nic->dma_addr + in e100_dump() 1340 nic->dma_addr + offsetof(struct mem, stats)))) in e100_hw_init() [all …]
|
/drivers/infiniband/ulp/iser/ |
D | iser_memory.c | 59 if (regd_buf->dma_addr) { in iser_regd_buff_release() 62 regd_buf->dma_addr, in iser_regd_buff_release() 83 u64 dma_addr; in iser_reg_single() local 85 dma_addr = ib_dma_map_single(device->ib_device, in iser_reg_single() 88 BUG_ON(ib_dma_mapping_error(device->ib_device, dma_addr)); in iser_reg_single() 92 regd_buf->reg.va = dma_addr; in iser_reg_single() 95 regd_buf->dma_addr = dma_addr; in iser_reg_single()
|
/drivers/net/chelsio/ |
D | sge.c | 164 DECLARE_PCI_UNMAP_ADDR(dma_addr); 170 DECLARE_PCI_UNMAP_ADDR(dma_addr); 190 dma_addr_t dma_addr; /* DMA addr HW command descriptor Q */ member 205 dma_addr_t dma_addr; /* DMA addr HW freelist descriptor Q */ member 214 dma_addr_t dma_addr; /* DMA addr HW response descriptor Q */ member 520 pci_unmap_single(pdev, pci_unmap_addr(ce, dma_addr), in free_freelQ_buffers() 541 sge->respQ.dma_addr); in free_rx_resources() 554 q->dma_addr); in free_rx_resources() 575 q->entries = pci_alloc_consistent(pdev, size, &q->dma_addr); in alloc_rx_resources() 613 pci_alloc_consistent(pdev, size, &sge->respQ.dma_addr); in alloc_rx_resources() [all …]
|
/drivers/media/dvb/dvb-usb/ |
D | usb-urb.c | 100 stream->buf_list[stream->buf_num], stream->dma_addr[stream->buf_num]); in usb_free_stream_buffers() 120 &stream->dma_addr[stream->buf_num]) ) == NULL) { in usb_allocate_stream_buffers() 127 stream->buf_list[stream->buf_num], (long long)stream->dma_addr[stream->buf_num]); in usb_allocate_stream_buffers() 160 stream->urb_list[i]->transfer_dma = stream->dma_addr[i]; in usb_bulk_urb_init() 198 urb->transfer_dma = stream->dma_addr[i]; in usb_isoc_urb_init()
|
/drivers/media/common/ |
D | saa7146_vbi.c | 10 dma_addr_t dma_addr; in vbi_workaround() local 24 cpu = pci_alloc_consistent(dev->pci, 4096, &dma_addr); in vbi_workaround() 29 saa7146_write(dev, BASE_EVEN3, dma_addr); in vbi_workaround() 30 saa7146_write(dev, BASE_ODD3, dma_addr+vbi_pixel_to_capture); in vbi_workaround() 31 saa7146_write(dev, PROT_ADDR3, dma_addr+4096); in vbi_workaround() 124 pci_free_consistent(dev->pci, 4096, cpu, dma_addr); in vbi_workaround() 129 pci_free_consistent(dev->pci, 4096, cpu, dma_addr); in vbi_workaround()
|
/drivers/serial/ |
D | atmel_serial.c | 116 dma_addr_t dma_addr; member 584 pdc->dma_addr, in atmel_tx_dma() 591 UART_PUT_TPR(port, pdc->dma_addr + xmit->tail); in atmel_tx_dma() 685 head = UART_GET_RPR(port) - pdc->dma_addr; in atmel_rx_from_dma() 701 dma_sync_single_for_cpu(port->dev, pdc->dma_addr, in atmel_rx_from_dma() 714 dma_sync_single_for_device(port->dev, pdc->dma_addr, in atmel_rx_from_dma() 727 UART_PUT_RNPR(port, pdc->dma_addr); in atmel_rx_from_dma() 831 atmel_port->pdc_rx[0].dma_addr, in atmel_startup() 839 pdc->dma_addr = dma_map_single(port->dev, in atmel_startup() 849 UART_PUT_RPR(port, atmel_port->pdc_rx[0].dma_addr); in atmel_startup() [all …]
|