Home
last modified time | relevance | path

Searched refs:dmalen (Results 1 – 5 of 5) sorted by relevance

/drivers/gpu/drm/nouveau/nvkm/falcon/
Dbase.c45 const int dmalen = 256; in nvkm_falcon_dma_wr() local
60 if (WARN_ON(!len || (len & (dmalen - 1)))) in nvkm_falcon_dma_wr()
63 ret = dma->init(falcon, dma_addr, dmalen, mem_type, sec, &cmd); in nvkm_falcon_dma_wr()
70 while (len >= dmalen) { in nvkm_falcon_dma_wr()
74 for (i = 0; i < dmalen; i += 4, mem_base += 4) { in nvkm_falcon_dma_wr()
80 if (x == (w - 1) || ((i + 4) == dmalen)) in nvkm_falcon_dma_wr()
94 src += dmalen; in nvkm_falcon_dma_wr()
95 dst += dmalen; in nvkm_falcon_dma_wr()
96 len -= dmalen; in nvkm_falcon_dma_wr()
/drivers/infiniband/hw/cxgb4/
Dmem.c195 u32 dmalen; in _c4iw_write_mem_dma() local
208 dmalen = remain & ~(T4_ULPTX_MIN_IO-1); in _c4iw_write_mem_dma()
210 dmalen = remain; in _c4iw_write_mem_dma()
212 dmalen = T4_ULPTX_MAX_DMA; in _c4iw_write_mem_dma()
213 remain -= dmalen; in _c4iw_write_mem_dma()
214 ret = _c4iw_write_mem_dma_aligned(rdev, addr, dmalen, daddr, in _c4iw_write_mem_dma()
218 addr += dmalen >> 5; in _c4iw_write_mem_dma()
219 data += dmalen; in _c4iw_write_mem_dma()
220 daddr += dmalen; in _c4iw_write_mem_dma()
/drivers/net/wireless/ath/wil6210/
Dtxrx_edma.c33 u16 dmalen = le16_to_cpu(d->dma.length); in wil_tx_desc_unmap_edma() local
37 dma_unmap_single(dev, pa, dmalen, DMA_TO_DEVICE); in wil_tx_desc_unmap_edma()
40 dma_unmap_page(dev, pa, dmalen, DMA_TO_DEVICE); in wil_tx_desc_unmap_edma()
862 u16 dmalen; in wil_sring_reap_rx_edma() local
934 dmalen = le16_to_cpu(wil_rx_status_get_length(msg)); in wil_sring_reap_rx_edma()
939 buff_id, sring_idx, dmalen); in wil_sring_reap_rx_edma()
960 if (unlikely(dmalen < ETH_HLEN)) { in wil_sring_reap_rx_edma()
961 wil_dbg_txrx(wil, "Short frame, len = %d\n", dmalen); in wil_sring_reap_rx_edma()
967 if (unlikely(dmalen > sz)) { in wil_sring_reap_rx_edma()
968 wil_err(wil, "Rx size too large: %d bytes!\n", dmalen); in wil_sring_reap_rx_edma()
[all …]
Dtxrx.c176 u16 dmalen = le16_to_cpu(d->dma.length); in wil_txdesc_unmap() local
180 dma_unmap_single(dev, pa, dmalen, DMA_TO_DEVICE); in wil_txdesc_unmap()
183 dma_unmap_page(dev, pa, dmalen, DMA_TO_DEVICE); in wil_txdesc_unmap()
210 u16 dmalen; in wil_vring_free() local
239 dmalen = le16_to_cpu(d->dma.length); in wil_vring_free()
240 dma_unmap_single(dev, pa, dmalen, DMA_FROM_DEVICE); in wil_vring_free()
451 u16 dmalen; in wil_vring_reap_rx() local
482 dmalen = le16_to_cpu(d->dma.length); in wil_vring_reap_rx()
485 wil_dbg_txrx(wil, "Rx[%3d] : %d bytes\n", i, dmalen); in wil_vring_reap_rx()
499 if (unlikely(dmalen > sz)) { in wil_vring_reap_rx()
[all …]
/drivers/dma/
Dste_dma40.c1024 int dmalen; in d40_size_2_dmalen() local
1036 dmalen = 1; in d40_size_2_dmalen()
1038 dmalen = size / seg_max; in d40_size_2_dmalen()
1039 if (dmalen * seg_max < size) in d40_size_2_dmalen()
1040 dmalen++; in d40_size_2_dmalen()
1042 return dmalen; in d40_size_2_dmalen()