Searched refs:dmalen (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/gpu/drm/nouveau/nvkm/falcon/ |
H A D | base.c | 61 const int dmalen = 256; in nvkm_falcon_dma_wr() local 76 if (WARN_ON(!len || (len & (dmalen - 1)))) in nvkm_falcon_dma_wr() 79 ret = dma->init(falcon, dma_addr, dmalen, mem_type, sec, &cmd); in nvkm_falcon_dma_wr() 86 while (len >= dmalen) { in nvkm_falcon_dma_wr() 90 for (i = 0; i < dmalen; i += 4, mem_base += 4) { in nvkm_falcon_dma_wr() 96 if (x == (w - 1) || ((i + 4) == dmalen)) in nvkm_falcon_dma_wr() 110 src += dmalen; in nvkm_falcon_dma_wr() 111 dst += dmalen; in nvkm_falcon_dma_wr() 112 len -= dmalen; in nvkm_falcon_dma_wr()
|
/linux/drivers/infiniband/hw/cxgb4/ |
H A D | mem.c | 195 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()
|
/linux/drivers/net/wireless/ath/wil6210/ |
H A D | txrx_edma.c | 33 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 …]
|
H A D | txrx.c | 176 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 …]
|
/linux/drivers/dma/ |
H A D | ste_dma40.c | 1022 int dmalen; in d40_size_2_dmalen() local 1034 dmalen = 1; in d40_size_2_dmalen() 1036 dmalen = size / seg_max; in d40_size_2_dmalen() 1037 if (dmalen * seg_max < size) in d40_size_2_dmalen() 1038 dmalen++; in d40_size_2_dmalen() 1040 return dmalen; in d40_size_2_dmalen()
|