/drivers/i2c/busses/ |
D | i2c-ismt.c | 389 u8 dma_size = 0; in ismt_access() local 431 dma_size = 1; in ismt_access() 445 dma_size = 2; in ismt_access() 455 dma_size = 1; in ismt_access() 465 dma_size = 3; in ismt_access() 476 dma_size = 2; in ismt_access() 485 dma_size = 3; in ismt_access() 496 dma_size = data->block[0] + 1; in ismt_access() 498 desc->wr_len_cmd = dma_size; in ismt_access() 501 memcpy(&priv->dma_buffer[1], &data->block[1], dma_size - 1); in ismt_access() [all …]
|
/drivers/media/pci/cx25821/ |
D | cx25821-alsa.c | 86 unsigned int dma_size; member 333 BUG_ON(!chip->dma_size); in dsp_buffer_free() 342 chip->dma_size = 0; in dsp_buffer_free() 445 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx25821_hw_params() 447 BUG_ON(!chip->dma_size); in snd_cx25821_hw_params() 462 (PAGE_ALIGN(chip->dma_size) >> PAGE_SHIFT)); in snd_cx25821_hw_params() 486 substream->runtime->dma_bytes = chip->dma_size; in snd_cx25821_hw_params()
|
/drivers/media/pci/cx23885/ |
D | cx23885-alsa.c | 275 BUG_ON(!chip->dma_size); in dsp_buffer_free() 285 chip->dma_size = 0; in dsp_buffer_free() 385 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx23885_hw_params() 387 BUG_ON(!chip->dma_size); in snd_cx23885_hw_params() 398 (PAGE_ALIGN(chip->dma_size) >> PAGE_SHIFT)); in snd_cx23885_hw_params() 417 substream->runtime->dma_bytes = chip->dma_size; in snd_cx23885_hw_params()
|
D | cx23885.h | 334 unsigned int dma_size; member
|
/drivers/platform/goldfish/ |
D | goldfish_pipe_v2.c | 765 pipe->command_buffer->dma_maphost_params.sz = dma->dma_size; in goldfish_pipe_dma_release_host_locked() 780 dma->dma_size, in goldfish_pipe_dma_release_guest_locked() 783 pipe->dev->dma_alloc_total -= dma->dma_size; in goldfish_pipe_dma_release_guest_locked() 880 dma->dma_size, in goldfish_pipe_dma_alloc_locked() 885 dma->phys_end = dma->phys_begin + dma->dma_size; in goldfish_pipe_dma_alloc_locked() 887 pipe->dev->dma_alloc_total += dma->dma_size; in goldfish_pipe_dma_alloc_locked() 894 dma->dma_size, in goldfish_pipe_dma_alloc_locked() 897 pipe->command_buffer->dma_maphost_params.sz = dma->dma_size; in goldfish_pipe_dma_alloc_locked() 956 dma->dma_size = size; in goldfish_pipe_dma_create_region()
|
D | goldfish_dma.h | 85 u64 dma_size; /* size of dma region */ member
|
/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_init.c | 123 rds_ring->dma_size, in netxen_release_rx_buffers() 236 rds_ring->dma_size = in netxen_alloc_sw_resources() 242 rds_ring->dma_size = in netxen_alloc_sw_resources() 245 rds_ring->dma_size = in netxen_alloc_sw_resources() 248 rds_ring->dma_size + NET_IP_ALIGN; in netxen_alloc_sw_resources() 255 rds_ring->dma_size = in netxen_alloc_sw_resources() 258 rds_ring->dma_size = in netxen_alloc_sw_resources() 262 rds_ring->dma_size += NX_LRO_BUFFER_EXTRA; in netxen_alloc_sw_resources() 265 rds_ring->dma_size + NET_IP_ALIGN; in netxen_alloc_sw_resources() 270 rds_ring->dma_size = NX_RX_LRO_BUFFER_LENGTH; in netxen_alloc_sw_resources() [all …]
|
/drivers/media/pci/cx88/ |
D | cx88-alsa.c | 83 unsigned int dma_size; member 296 BUG_ON(!chip->dma_size); in dsp_buffer_free() 305 chip->dma_size = 0; in dsp_buffer_free() 402 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx88_hw_params() 404 BUG_ON(!chip->dma_size); in snd_cx88_hw_params() 416 (PAGE_ALIGN(chip->dma_size) >> PAGE_SHIFT)); in snd_cx88_hw_params() 437 substream->runtime->dma_bytes = chip->dma_size; in snd_cx88_hw_params()
|
/drivers/crypto/ |
D | atmel-tdes.c | 123 size_t dma_size; member 328 dd->dma_size, DMA_FROM_DEVICE); in atmel_tdes_crypt_pdc_stop() 332 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_tdes_crypt_pdc_stop() 333 if (count != dd->dma_size) { in atmel_tdes_crypt_pdc_stop() 404 dd->dma_size = length; in atmel_tdes_crypt_pdc() 441 dd->dma_size = length; in atmel_tdes_crypt_dma() 653 dd->dma_size, DMA_FROM_DEVICE); in atmel_tdes_crypt_dma_stop() 657 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_tdes_crypt_dma_stop() 658 if (count != dd->dma_size) { in atmel_tdes_crypt_dma_stop()
|
D | atmel-aes.c | 131 size_t dma_size; member 316 dd->dma_size = length; in atmel_aes_crypt_dma() 623 dd->dma_size, DMA_FROM_DEVICE); in atmel_aes_crypt_dma_stop() 627 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_aes_crypt_dma_stop() 628 if (count != dd->dma_size) { in atmel_aes_crypt_dma_stop()
|
/drivers/tty/serial/ |
D | mfd.c | 64 u32 dma_size; member 319 dbuf->dma_size, in hsu_dma_tx() 352 chan_writel(rxc, HSU_CH_D0TSR, dbuf->dma_size); in hsu_dma_start_rx_chan() 421 dbuf->dma_size, DMA_FROM_DEVICE); in hsu_dma_rx() 433 dbuf->dma_size, DMA_FROM_DEVICE); in hsu_dma_rx() 437 chan_writel(chan, HSU_CH_D0TSR, dbuf->dma_size); in hsu_dma_rx() 825 dbuf->dma_size = HSU_DMA_BUF_SIZE; in serial_hsu_startup() 837 dbuf->dma_size = UART_XMIT_SIZE; in serial_hsu_startup()
|
D | atmel_serial.c | 124 unsigned int dma_size; member 1199 pdc->dma_size, in atmel_release_tx_pdc() 1231 pdc->dma_size, in atmel_tx_pdc() 1266 pdc->dma_size = UART_XMIT_SIZE; in atmel_prepare_tx_pdc() 1350 pdc->dma_size, in atmel_release_rx_pdc() 1384 head = min(head, pdc->dma_size); in atmel_rx_from_pdc() 1388 pdc->dma_size, DMA_FROM_DEVICE); in atmel_rx_from_pdc() 1402 pdc->dma_size, DMA_FROM_DEVICE); in atmel_rx_from_pdc() 1412 if (head >= pdc->dma_size) { in atmel_rx_from_pdc() 1415 UART_PUT_RNCR(port, pdc->dma_size); in atmel_rx_from_pdc() [all …]
|
D | mrst_max3110.c | 272 int i, len, blen, dma_size, left, ret = 0; in send_circ_buf() local 275 dma_size = WORDS_PER_XFER * sizeof(u16) * 2; in send_circ_buf() 276 buf = kzalloc(dma_size, GFP_KERNEL | GFP_DMA); in send_circ_buf() 280 ibuf = buf + dma_size/2; in send_circ_buf()
|
/drivers/scsi/ |
D | stex.c | 298 size_t dma_size; member 1027 h->extra_size = cpu_to_le32(hba->dma_size - hba->extra_offset); in stex_common_handshake() 1597 hba->dma_size = cp_offset + sizeof(struct st_frame); in stex_probe() 1600 hba->extra_offset = hba->dma_size; in stex_probe() 1601 hba->dma_size += ST_ADDITIONAL_MEM; in stex_probe() 1604 hba->dma_size, &hba->dma_handle, GFP_KERNEL); in stex_probe() 1612 hba->dma_size = hba->extra_offset in stex_probe() 1615 hba->dma_size, &hba->dma_handle, GFP_KERNEL); in stex_probe() 1711 dma_free_coherent(&pdev->dev, hba->dma_size, in stex_probe() 1783 dma_free_coherent(&hba->pdev->dev, hba->dma_size, in stex_hba_free()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_init.c | 100 rds_ring->dma_size, in qlcnic_release_rx_buffers() 207 rds_ring->dma_size = QLCNIC_P3P_RX_BUF_MAX_LEN; in qlcnic_alloc_sw_resources() 208 rds_ring->skb_size = rds_ring->dma_size + NET_IP_ALIGN; in qlcnic_alloc_sw_resources() 213 rds_ring->dma_size = in qlcnic_alloc_sw_resources() 218 rds_ring->dma_size += QLCNIC_LRO_BUFFER_EXTRA; in qlcnic_alloc_sw_resources() 221 rds_ring->dma_size + NET_IP_ALIGN; in qlcnic_alloc_sw_resources()
|
D | qlcnic_io.c | 826 rds_ring->dma_size, PCI_DMA_FROMDEVICE); in qlcnic_alloc_rx_skb() 870 pdesc->buffer_length = cpu_to_le32(rds_ring->dma_size); in qlcnic_post_rx_buffers_nodb() 1139 pci_unmap_single(adapter->pdev, buffer->dma, ring->dma_size, in qlcnic_process_rxbuf() 1455 pdesc->buffer_length = cpu_to_le32(rds_ring->dma_size); in qlcnic_post_rx_buffers()
|
/drivers/misc/ |
D | hpilo.c | 255 pci_free_consistent(pdev, data->dma_size, data->dma_va, data->dma_pa); in ilo_ccb_close() 267 data->dma_size = 2 * fifo_sz(NR_QENTRY) + in ilo_ccb_setup() 271 data->dma_va = pci_alloc_consistent(hw->ilo_dev, data->dma_size, in ilo_ccb_setup() 279 memset(dma_va, 0, data->dma_size); in ilo_ccb_setup()
|
D | hpilo.h | 145 size_t dma_size; member
|
/drivers/media/pci/ivtv/ |
D | ivtvfb.c | 392 unsigned long dma_size; in ivtvfb_write() local 438 dma_size = count - lead - tail; in ivtvfb_write() 440 p + lead + dma_offset, (void __user *)buf, dma_size); in ivtvfb_write() 443 dst += dma_size; in ivtvfb_write() 444 buf += dma_size; in ivtvfb_write()
|
/drivers/net/ethernet/ti/ |
D | tlan.c | 308 priv->dma_size, priv->dma_storage, in tlan_remove_one() 605 pci_free_consistent(priv->pci_dev, priv->dma_size, priv->dma_storage, in tlan_probe1() 630 pci_free_consistent(priv->pci_dev, priv->dma_size, in tlan_eisa_cleanup() 840 int dma_size; in tlan_init() local 847 dma_size = (TLAN_NUM_RX_LISTS + TLAN_NUM_TX_LISTS) in tlan_init() 850 dma_size, in tlan_init() 852 priv->dma_size = dma_size; in tlan_init() 859 memset(priv->dma_storage, 0, dma_size); in tlan_init()
|
D | tlan.h | 177 unsigned int dma_size; member
|
/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 617 int ioctx_size, int dma_size, in srpt_alloc_ioctx() argument 626 ioctx->buf = kmalloc(dma_size, GFP_KERNEL); in srpt_alloc_ioctx() 630 ioctx->dma = ib_dma_map_single(sdev->device, ioctx->buf, dma_size, dir); in srpt_alloc_ioctx() 648 int dma_size, enum dma_data_direction dir) in srpt_free_ioctx() argument 653 ib_dma_unmap_single(sdev->device, ioctx->dma, dma_size, dir); in srpt_free_ioctx() 668 int dma_size, enum dma_data_direction dir) in srpt_alloc_ioctx_ring() argument 680 ring[i] = srpt_alloc_ioctx(sdev, ioctx_size, dma_size, dir); in srpt_alloc_ioctx_ring() 689 srpt_free_ioctx(sdev, ring[i], dma_size, dir); in srpt_alloc_ioctx_ring() 701 int dma_size, enum dma_data_direction dir) in srpt_free_ioctx_ring() argument 706 srpt_free_ioctx(sdev, ioctx_ring[i], dma_size, dir); in srpt_free_ioctx_ring()
|
/drivers/atm/ |
D | eni.c | 1037 int aal5,dma_size,i,j; in do_tx() local 1096 dma_size = 3; /* JK for descriptor and final fill, plus final size in do_tx() 1099 if (!skb_shinfo(skb)->nr_frags) dma_size += 5; in do_tx() 1100 else dma_size += 5*(skb_shinfo(skb)->nr_frags+1); in do_tx() 1101 if (dma_size > TX_DMA_BUF) { in do_tx() 1103 "(got only %d)\n",vcc->dev->number,dma_size,TX_DMA_BUF); in do_tx() 1107 dma_size) { in do_tx()
|
/drivers/soc/ti/ |
D | knav_qmss_queue.c | 678 unsigned dma_size; in kdesc_fill_pool() local 680 dma_size = ALIGN(pool->desc_size, SMP_CACHE_BYTES); in kdesc_fill_pool() 681 dma_sync_single_for_device(pool->dev, dma_addr, dma_size, in kdesc_fill_pool() 683 knav_queue_push(pool->queue, dma_addr, dma_size, 0); in kdesc_fill_pool()
|
/drivers/scsi/qla2xxx/ |
D | qla_mbx.c | 1299 ulong dma_size; in qla2x00_get_node_name_list() local 1304 dma_size = left * sizeof(*list); in qla2x00_get_node_name_list() 1305 pmap = dma_alloc_coherent(&ha->pdev->dev, dma_size, in qla2x00_get_node_name_list() 1310 __func__, vha->host_no, dma_size); in qla2x00_get_node_name_list() 1321 mc.mb[8] = dma_size; in qla2x00_get_node_name_list() 1340 list = kmemdup(pmap, dma_size, GFP_KERNEL); in qla2x00_get_node_name_list() 1350 dma_free_coherent(&ha->pdev->dev, dma_size, pmap, pmap_dma); in qla2x00_get_node_name_list() 1354 *out_len = dma_size; in qla2x00_get_node_name_list() 1360 dma_free_coherent(&ha->pdev->dev, dma_size, pmap, pmap_dma); in qla2x00_get_node_name_list()
|