/kernel/linux/linux-5.10/drivers/parisc/ |
D | iommu-helpers.h | 22 unsigned long dma_offset = 0, dma_len = 0; in iommu_fill_pdir() local 47 BUG_ON(pdirp && (dma_len != sg_dma_len(dma_sg))); in iommu_fill_pdir() 51 dma_len = sg_dma_len(startsg); in iommu_fill_pdir() 106 unsigned long dma_offset, dma_len; /* start/len of DMA stream */ in iommu_coalesce_chunks() local 120 dma_len = startsg->length; in iommu_coalesce_chunks() 149 if (unlikely(ALIGN(dma_len + dma_offset + startsg->length, IOVP_SIZE) > in iommu_coalesce_chunks() 163 dma_len += startsg->length; in iommu_coalesce_chunks() 171 sg_dma_len(contig_sg) = dma_len; in iommu_coalesce_chunks() 172 dma_len = ALIGN(dma_len + dma_offset, IOVP_SIZE); in iommu_coalesce_chunks() 175 | (iommu_alloc_range(ioc, dev, dma_len) << IOVP_SHIFT) in iommu_coalesce_chunks()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | xdp.h | 147 u32 dma_len = xdptxd->len; in mlx5e_xdp_mpwqe_add_dseg() local 150 session->bytes_count += dma_len; in mlx5e_xdp_mpwqe_add_dseg() 152 if (session->inline_on && dma_len <= MLX5E_XDP_INLINE_WQE_SZ_THRSD) { in mlx5e_xdp_mpwqe_add_dseg() 155 u16 ds_len = sizeof(*inline_dseg) + dma_len; in mlx5e_xdp_mpwqe_add_dseg() 158 inline_dseg->byte_count = cpu_to_be32(dma_len | MLX5_INLINE_SEG); in mlx5e_xdp_mpwqe_add_dseg() 159 memcpy(inline_dseg->data, xdptxd->data, dma_len); in mlx5e_xdp_mpwqe_add_dseg() 167 dseg->byte_count = cpu_to_be32(dma_len); in mlx5e_xdp_mpwqe_add_dseg()
|
D | xdp.c | 324 u32 dma_len = xdptxd->len; in mlx5e_xmit_xdp_frame() local 330 if (unlikely(dma_len < MLX5E_XDP_MIN_INLINE || sq->hw_mtu < dma_len)) { in mlx5e_xmit_xdp_frame() 346 dma_len -= MLX5E_XDP_MIN_INLINE; in mlx5e_xmit_xdp_frame() 353 dseg->byte_count = cpu_to_be32(dma_len); in mlx5e_xmit_xdp_frame()
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | brcms_trace_brcmsmac_tx.h | 76 u16 dma_len), 78 dma_len), 85 __field(u16, dma_len) 93 __entry->dma_len = dma_len; 98 __entry->ampdu_frames, __entry->dma_len)
|
D | ampdu.h | 37 u16 dma_len; member
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-stm32.c | 88 dma->dma_len = 0; in stm32_i2c_dma_free() 118 dma->dma_len = len; in stm32_i2c_prep_dma_xfer() 121 dma->dma_buf = dma_map_single(chan_dev, buf, dma->dma_len, in stm32_i2c_prep_dma_xfer() 129 dma->dma_len, in stm32_i2c_prep_dma_xfer() 153 dma_unmap_single(chan_dev, dma->dma_buf, dma->dma_len, in stm32_i2c_prep_dma_xfer()
|
D | i2c-stm32.h | 41 unsigned int dma_len; member
|
/kernel/linux/linux-5.10/arch/arm/mach-rpc/ |
D | dma.c | 33 unsigned int dma_len; member 62 end = offset + idma->dma_len; in iomd_get_next_sg() 72 idma->dma_len -= end - offset; in iomd_get_next_sg() 75 if (idma->dma_len == 0) { in iomd_get_next_sg() 79 idma->dma_len = idma->dma.sg->length; in iomd_get_next_sg() 179 idma->dma_len = idma->dma.sg->length; in iomd_enable_dma()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
D | tx_tso.c | 107 unsigned int dma_len; in efx_tx_queue_insert() local 121 dma_len = tx_queue->efx->type->tx_limit_len(tx_queue, in efx_tx_queue_insert() 125 if (dma_len >= len) in efx_tx_queue_insert() 128 buffer->len = dma_len; in efx_tx_queue_insert() 130 dma_addr += dma_len; in efx_tx_queue_insert() 131 len -= dma_len; in efx_tx_queue_insert()
|
D | tx_common.c | 292 unsigned int dma_len; in efx_tx_map_chunk() local 299 dma_len = nic_type->tx_limit_len(tx_queue, dma_addr, len); in efx_tx_map_chunk() 301 dma_len = len; in efx_tx_map_chunk() 303 buffer->len = dma_len; in efx_tx_map_chunk() 306 len -= dma_len; in efx_tx_map_chunk() 307 dma_addr += dma_len; in efx_tx_map_chunk()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | am53c974.c | 243 static u32 pci_esp_dma_length_limit(struct esp *esp, u32 dma_addr, u32 dma_len) in pci_esp_dma_length_limit() argument 255 if (dma_len > (1U << dma_limit)) in pci_esp_dma_length_limit() 256 dma_len = (1U << dma_limit); in pci_esp_dma_length_limit() 262 end = base + dma_len; in pci_esp_dma_length_limit() 265 dma_len = end - base; in pci_esp_dma_length_limit() 267 return dma_len; in pci_esp_dma_length_limit()
|
D | zorro_esp.c | 219 u32 dma_len) in zorro_esp_dma_length_limit() argument 221 return dma_len > (1U << 16) ? (1U << 16) : dma_len; in zorro_esp_dma_length_limit() 225 u32 dma_len) in fastlane_esp_dma_length_limit() argument 228 return dma_len > 0xfffc ? 0xfffc : dma_len; in fastlane_esp_dma_length_limit()
|
D | mac53c94.c | 368 u32 dma_len; in set_dma_cmds() local 382 dma_len = sg_dma_len(scl); in set_dma_cmds() 383 if (dma_len > 0xffff) in set_dma_cmds() 385 total += dma_len; in set_dma_cmds() 386 dcmds->req_count = cpu_to_le16(dma_len); in set_dma_cmds()
|
D | mac_esp.c | 247 static u32 mac_esp_dma_length_limit(struct esp *esp, u32 dma_addr, u32 dma_len) in mac_esp_dma_length_limit() argument 249 return dma_len > 0xFFFF ? 0xFFFF : dma_len; in mac_esp_dma_length_limit()
|
D | esp_scsi.c | 522 static u32 esp_dma_length_limit(struct esp *esp, u32 dma_addr, u32 dma_len) in esp_dma_length_limit() argument 526 if (dma_len > (1U << 24)) in esp_dma_length_limit() 527 dma_len = (1U << 24); in esp_dma_length_limit() 537 if (dma_len > (1U << 16)) in esp_dma_length_limit() 538 dma_len = (1U << 16); in esp_dma_length_limit() 544 end = base + dma_len; in esp_dma_length_limit() 547 dma_len = end - base; in esp_dma_length_limit() 549 return dma_len; in esp_dma_length_limit() 1750 unsigned int dma_len = esp_cur_dma_len(ent, cmd); in esp_process_event() local 1761 dma_len = esp->ops->dma_length_limit(esp, dma_addr, in esp_process_event() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/ |
D | sge.c | 165 DEFINE_DMA_UNMAP_LEN(dma_len); 171 DEFINE_DMA_UNMAP_LEN(dma_len); 516 dma_unmap_len(ce, dma_len), DMA_FROM_DEVICE); in free_freelQ_buffers() 630 if (likely(dma_unmap_len(ce, dma_len))) { in free_cmdQ_buffers() 633 dma_unmap_len(ce, dma_len), in free_cmdQ_buffers() 835 unsigned int dma_len = q->rx_buffer_size - q->dma_offset; in refill_free_list() local 846 mapping = dma_map_single(&pdev->dev, skb->data, dma_len, in refill_free_list() 852 dma_unmap_len_set(ce, dma_len, dma_len); in refill_free_list() 855 e->len_gen = V_CMD_LEN(dma_len) | V_CMD_GEN1(q->genbit); in refill_free_list() 1060 dma_unmap_len(ce, dma_len), in get_packet() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/ |
D | dma.c | 116 u16 dma_len = get_unaligned_le16(data); in mt7601u_rx_next_seg_len() local 119 WARN_ON_ONCE(!dma_len) || in mt7601u_rx_next_seg_len() 120 WARN_ON_ONCE(dma_len + MT_DMA_HDRS > data_len) || in mt7601u_rx_next_seg_len() 121 WARN_ON_ONCE(dma_len & 0x3)) in mt7601u_rx_next_seg_len() 124 return MT_DMA_HDRS + dma_len; in mt7601u_rx_next_seg_len()
|
/kernel/liteos_a/net/lwip-2.1/porting/include/lwip/ |
D | pbuf.h | 44 u16_t dma_len; member
|
/kernel/linux/linux-5.10/net/rds/ |
D | ib_frmr.c | 221 unsigned int dma_len = sg_dma_len(&ibmr->sg[i]); in rds_ib_map_frmr() local 224 frmr->sg_byte_len += dma_len; in rds_ib_map_frmr() 232 if ((dma_addr + dma_len) & ~PAGE_MASK) { in rds_ib_map_frmr() 239 len += dma_len; in rds_ib_map_frmr()
|
/kernel/linux/linux-5.10/sound/soc/bcm/ |
D | bcm63xx-pcm-whistler.c | 20 unsigned int dma_len; member 24 int dma_len; member 156 dma_desc->dma_len = snd_pcm_lib_period_bytes(substream); in bcm63xx_pcm_prepare() 171 regmap_write(regmap_i2s, regaddr_desclen, dma_desc->dma_len); in bcm63xx_pcm_prepare()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/ |
D | tx.c | 186 unsigned int dma_len; in ef4_tx_map_chunk() local 191 dma_len = nic_type->tx_limit_len(tx_queue, dma_addr, len); in ef4_tx_map_chunk() 193 buffer->len = dma_len; in ef4_tx_map_chunk() 196 len -= dma_len; in ef4_tx_map_chunk() 197 dma_addr += dma_len; in ef4_tx_map_chunk()
|
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/ |
D | otx_cptvf_reqmgr.h | 186 u32 dma_len; member 198 info->dma_len, DMA_BIDIRECTIONAL); in do_request_cleanup()
|
/kernel/linux/linux-5.10/drivers/ata/ |
D | pata_arasan_cf.c | 433 u32 xfer_cnt, sglen, dma_len, xfer_ctr; in sg_xfer() local 473 dma_len = min(xfer_cnt, FIFO_SIZE); in sg_xfer() 474 ret = dma_xfer(acdev, src, dest, dma_len); in sg_xfer() 481 src += dma_len; in sg_xfer() 483 dest += dma_len; in sg_xfer() 485 sglen -= dma_len; in sg_xfer() 486 xfer_cnt -= dma_len; in sg_xfer()
|
/kernel/linux/linux-5.10/drivers/misc/mei/ |
D | client.c | 1810 u32 dma_len; in mei_cl_irq_write() local 1864 } else if (dr_slots && hbuf_len >= hdr_len + sizeof(dma_len)) { in mei_cl_irq_write() 1871 data_len = sizeof(dma_len); in mei_cl_irq_write() 1872 dma_len = buf_len; in mei_cl_irq_write() 1873 data = &dma_len; in mei_cl_irq_write() 1934 u32 dma_len; in mei_cl_write() local 2007 } else if (dr_slots && hbuf_len >= hdr_len + sizeof(dma_len)) { in mei_cl_write() 2014 data_len = sizeof(dma_len); in mei_cl_write() 2015 dma_len = buf_len; in mei_cl_write() 2016 data = &dma_len; in mei_cl_write()
|
/kernel/linux/linux-5.10/drivers/crypto/ |
D | talitos.c | 335 return ((struct talitos_desc *)(edesc->buf + edesc->dma_len))->hdr1; in get_request_hdr() 495 (edesc->buf + edesc->dma_len))->hdr; 1006 if (edesc->dma_len) in ipsec_esp_unmap() 1007 dma_unmap_single(dev, edesc->dma_link_tbl, edesc->dma_len, in ipsec_esp_unmap() 1057 oicv = edesc->buf + edesc->dma_len; in ipsec_esp_decrypt_swauth_done() 1214 dma_addr_t dma_icv = edesc->dma_link_tbl + edesc->dma_len - authsize; in ipsec_esp() 1304 edesc->dma_len, in ipsec_esp() 1331 int src_nents, dst_nents, alloc_len, dma_len, src_len, dst_len; in talitos_edesc_alloc() local 1379 dma_len = (src_nents ? src_len : 0) + in talitos_edesc_alloc() 1382 dma_len = (src_nents + dst_nents + 2) * in talitos_edesc_alloc() [all …]
|