Home
last modified time | relevance | path

Searched refs:dma_size (Results 1 – 25 of 37) sorted by relevance

12

/drivers/i2c/busses/
Di2c-ismt.c391 u8 dma_size = 0; in ismt_access() local
433 dma_size = 1; in ismt_access()
447 dma_size = 2; in ismt_access()
457 dma_size = 1; in ismt_access()
467 dma_size = 3; in ismt_access()
478 dma_size = 2; in ismt_access()
487 dma_size = 3; in ismt_access()
498 dma_size = data->block[0] + 1; in ismt_access()
500 desc->wr_len_cmd = dma_size; in ismt_access()
503 memcpy(&priv->dma_buffer[1], &data->block[1], dma_size - 1); in ismt_access()
[all …]
/drivers/media/pci/cx23885/
Dcx23885-alsa.c275 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()
Dcx23885.h347 unsigned int dma_size; member
/drivers/media/pci/cx25821/
Dcx25821-alsa.c89 unsigned int dma_size; member
413 BUG_ON(!chip->dma_size); in dsp_buffer_free()
422 chip->dma_size = 0; in dsp_buffer_free()
523 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx25821_hw_params()
525 BUG_ON(!chip->dma_size); in snd_cx25821_hw_params()
539 (PAGE_ALIGN(chip->dma_size) >> PAGE_SHIFT)); in snd_cx25821_hw_params()
560 substream->runtime->dma_bytes = chip->dma_size; in snd_cx25821_hw_params()
/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_init.c123 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/
Dcx88-alsa.c86 unsigned int dma_size; member
375 BUG_ON(!chip->dma_size); in dsp_buffer_free()
480 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx88_hw_params()
482 BUG_ON(!chip->dma_size); in snd_cx88_hw_params()
493 (PAGE_ALIGN(chip->dma_size) >> PAGE_SHIFT)); in snd_cx88_hw_params()
511 substream->runtime->dma_bytes = chip->dma_size; in snd_cx88_hw_params()
/drivers/crypto/
Datmel-tdes.c123 size_t dma_size; member
332 dd->dma_size, DMA_FROM_DEVICE); in atmel_tdes_crypt_pdc_stop()
336 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_tdes_crypt_pdc_stop()
337 if (count != dd->dma_size) { in atmel_tdes_crypt_pdc_stop()
408 dd->dma_size = length; in atmel_tdes_crypt_pdc()
445 dd->dma_size = length; in atmel_tdes_crypt_dma()
657 dd->dma_size, DMA_FROM_DEVICE); in atmel_tdes_crypt_dma_stop()
661 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_tdes_crypt_dma_stop()
662 if (count != dd->dma_size) { in atmel_tdes_crypt_dma_stop()
/drivers/scsi/
Dstex.c309 size_t dma_size; member
1038 h->extra_size = cpu_to_le32(hba->dma_size - hba->extra_offset); in stex_common_handshake()
1608 hba->dma_size = cp_offset + sizeof(struct st_frame); in stex_probe()
1611 hba->extra_offset = hba->dma_size; in stex_probe()
1612 hba->dma_size += ST_ADDITIONAL_MEM; in stex_probe()
1615 hba->dma_size, &hba->dma_handle, GFP_KERNEL); in stex_probe()
1623 hba->dma_size = hba->extra_offset in stex_probe()
1626 hba->dma_size, &hba->dma_handle, GFP_KERNEL); in stex_probe()
1715 dma_free_coherent(&pdev->dev, hba->dma_size, in stex_probe()
1805 dma_free_coherent(&hba->pdev->dev, hba->dma_size, in stex_hba_free()
/drivers/tty/serial/
Datmel_serial.c102 unsigned int dma_size; member
1338 pdc->dma_size, in atmel_release_tx_pdc()
1370 pdc->dma_size, in atmel_tx_pdc()
1407 pdc->dma_size = UART_XMIT_SIZE; in atmel_prepare_tx_pdc()
1491 pdc->dma_size, in atmel_release_rx_pdc()
1525 head = min(head, pdc->dma_size); in atmel_rx_from_pdc()
1529 pdc->dma_size, DMA_FROM_DEVICE); in atmel_rx_from_pdc()
1543 pdc->dma_size, DMA_FROM_DEVICE); in atmel_rx_from_pdc()
1553 if (head >= pdc->dma_size) { in atmel_rx_from_pdc()
1556 atmel_uart_writel(port, ATMEL_PDC_RNCR, pdc->dma_size); in atmel_rx_from_pdc()
[all …]
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_init.c100 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()
Dqlcnic_io.c828 rds_ring->dma_size, PCI_DMA_FROMDEVICE); in qlcnic_alloc_rx_skb()
872 pdesc->buffer_length = cpu_to_le32(rds_ring->dma_size); in qlcnic_post_rx_buffers_nodb()
1149 pci_unmap_single(adapter->pdev, buffer->dma, ring->dma_size, in qlcnic_process_rxbuf()
1465 pdesc->buffer_length = cpu_to_le32(rds_ring->dma_size); in qlcnic_post_rx_buffers()
/drivers/misc/
Dhpilo.c255 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()
Dhpilo.h145 size_t dma_size; member
/drivers/media/pci/netup_unidvb/
Dnetup_unidvb.h124 u32 dma_size; member
Dnetup_unidvb_core.c669 dma->ring_buffer_size = ndev->dma_size / 2; in netup_unidvb_dma_init()
901 ndev->dma_size = 2 * 188 * in netup_unidvb_initdev()
904 ndev->dma_size, &ndev->dma_phys, GFP_KERNEL); in netup_unidvb_initdev()
956 dma_free_coherent(&pci_dev->dev, ndev->dma_size, in netup_unidvb_initdev()
999 dma_free_coherent(&ndev->pci_dev->dev, ndev->dma_size, in netup_unidvb_finidev()
/drivers/media/pci/ivtv/
Divtvfb.c393 unsigned long dma_size; in ivtvfb_write() local
439 dma_size = count - lead - tail; in ivtvfb_write()
441 p + lead + dma_offset, (void __user *)buf, dma_size); in ivtvfb_write()
444 dst += dma_size; in ivtvfb_write()
445 buf += dma_size; in ivtvfb_write()
/drivers/net/ethernet/ti/
Dtlan.c308 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()
839 int dma_size; in tlan_init() local
846 dma_size = (TLAN_NUM_RX_LISTS + TLAN_NUM_TX_LISTS) in tlan_init()
849 dma_size, in tlan_init()
851 priv->dma_size = dma_size; in tlan_init()
858 memset(priv->dma_storage, 0, dma_size); in tlan_init()
Dtlan.h177 unsigned int dma_size; member
/drivers/infiniband/ulp/srpt/
Dib_srpt.c593 int ioctx_size, int dma_size, in srpt_alloc_ioctx() argument
602 ioctx->buf = kmalloc(dma_size, GFP_KERNEL); in srpt_alloc_ioctx()
606 ioctx->dma = ib_dma_map_single(sdev->device, ioctx->buf, dma_size, dir); in srpt_alloc_ioctx()
624 int dma_size, enum dma_data_direction dir) in srpt_free_ioctx() argument
629 ib_dma_unmap_single(sdev->device, ioctx->dma, dma_size, dir); in srpt_free_ioctx()
644 int dma_size, enum dma_data_direction dir) in srpt_alloc_ioctx_ring() argument
656 ring[i] = srpt_alloc_ioctx(sdev, ioctx_size, dma_size, dir); in srpt_alloc_ioctx_ring()
665 srpt_free_ioctx(sdev, ring[i], dma_size, dir); in srpt_alloc_ioctx_ring()
677 int dma_size, enum dma_data_direction dir) in srpt_free_ioctx_ring() argument
682 srpt_free_ioctx(sdev, ioctx_ring[i], dma_size, dir); in srpt_free_ioctx_ring()
/drivers/atm/
Deni.c1040 int aal5,dma_size,i,j; in do_tx() local
1099 dma_size = 3; /* JK for descriptor and final fill, plus final size in do_tx()
1102 if (!skb_shinfo(skb)->nr_frags) dma_size += 5; in do_tx()
1103 else dma_size += 5*(skb_shinfo(skb)->nr_frags+1); in do_tx()
1104 if (dma_size > TX_DMA_BUF) { in do_tx()
1106 "(got only %d)\n",vcc->dev->number,dma_size,TX_DMA_BUF); in do_tx()
1110 dma_size) { in do_tx()
/drivers/net/ethernet/cavium/thunder/
Dnicvf_queues.h196 u32 dma_size; member
/drivers/soc/ti/
Dknav_qmss_queue.c686 unsigned dma_size; in kdesc_fill_pool() local
688 dma_size = ALIGN(pool->desc_size, SMP_CACHE_BYTES); in kdesc_fill_pool()
689 dma_sync_single_for_device(pool->dev, dma_addr, dma_size, in kdesc_fill_pool()
691 knav_queue_push(pool->queue, dma_addr, dma_size, 0); in kdesc_fill_pool()
/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.h491 u16 dma_size; member
Dmtk_eth_soc.c863 idx = NEXT_RX_DESP_IDX(ring->calc_idx, ring->dma_size); in mtk_get_rx_ring()
912 idx = NEXT_RX_DESP_IDX(ring->calc_idx, ring->dma_size); in mtk_poll_rx()
1257 ring->dma_size = rx_dma_size; in mtk_rx_alloc()
1280 for (i = 0; i < ring->dma_size; i++) { in mtk_rx_clean()
1297 ring->dma_size * sizeof(*ring->dma), in mtk_rx_clean()
/drivers/scsi/qla2xxx/
Dqla_mbx.c1596 ulong dma_size; in qla2x00_get_node_name_list() local
1601 dma_size = left * sizeof(*list); in qla2x00_get_node_name_list()
1602 pmap = dma_alloc_coherent(&ha->pdev->dev, dma_size, in qla2x00_get_node_name_list()
1607 __func__, vha->host_no, dma_size); in qla2x00_get_node_name_list()
1618 mc.mb[8] = dma_size; in qla2x00_get_node_name_list()
1637 list = kmemdup(pmap, dma_size, GFP_KERNEL); in qla2x00_get_node_name_list()
1647 dma_free_coherent(&ha->pdev->dev, dma_size, pmap, pmap_dma); in qla2x00_get_node_name_list()
1651 *out_len = dma_size; in qla2x00_get_node_name_list()
1657 dma_free_coherent(&ha->pdev->dev, dma_size, pmap, pmap_dma); in qla2x00_get_node_name_list()

12