Home
last modified time | relevance | path

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

123

/linux-6.12.1/drivers/i2c/busses/
Di2c-ismt.c410 u8 dma_size = 0; in ismt_access() local
456 dma_size = 1; in ismt_access()
470 dma_size = 2; in ismt_access()
480 dma_size = 1; in ismt_access()
490 dma_size = 3; in ismt_access()
501 dma_size = 2; in ismt_access()
510 dma_size = 3; in ismt_access()
524 dma_size = data->block[0] + 1; in ismt_access()
526 desc->wr_len_cmd = dma_size; in ismt_access()
529 memcpy(&dma_buffer[1], &data->block[1], dma_size - 1); in ismt_access()
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/gem/selftests/
Dhuge_gem_object.c103 dma_addr_t dma_size) in huge_gem_object() argument
109 GEM_BUG_ON(!phys_size || phys_size > dma_size); in huge_gem_object()
111 GEM_BUG_ON(!IS_ALIGNED(dma_size, I915_GTT_PAGE_SIZE)); in huge_gem_object()
113 if (overflows_type(dma_size, obj->base.size)) in huge_gem_object()
120 drm_gem_private_object_init(&i915->drm, &obj->base, dma_size); in huge_gem_object()
Dhuge_gem_object.h19 dma_addr_t dma_size);
/linux-6.12.1/drivers/net/wan/
Dfsl_qmc_hdlc.c33 size_t dma_size; member
259 dma_unmap_single(qmc_hdlc->dev, desc->dma_addr, desc->dma_size, DMA_FROM_DEVICE); in qmc_hcld_recv_complete()
293 ret = qmc_hdlc_recv_queue(qmc_hdlc, desc, desc->dma_size); in qmc_hcld_recv_complete()
308 desc->dma_size = size; in qmc_hdlc_recv_queue()
310 desc->dma_size, DMA_FROM_DEVICE); in qmc_hdlc_recv_queue()
315 ret = qmc_chan_read_submit(qmc_hdlc->qmc_chan, desc->dma_addr, desc->dma_size, in qmc_hdlc_recv_queue()
323 dma_unmap_single(qmc_hdlc->dev, desc->dma_addr, desc->dma_size, DMA_FROM_DEVICE); in qmc_hdlc_recv_queue()
341 dma_unmap_single(qmc_hdlc->dev, desc->dma_addr, desc->dma_size, DMA_TO_DEVICE); in qmc_hdlc_xmit_complete()
359 desc->dma_size, DMA_TO_DEVICE); in qmc_hdlc_xmit_queue()
366 ret = qmc_chan_write_submit(qmc_hdlc->qmc_chan, desc->dma_addr, desc->dma_size, in qmc_hdlc_xmit_queue()
[all …]
/linux-6.12.1/drivers/scsi/
Dmyrs.h691 u32 dma_size:24; /* Bytes 4-6 */ member
705 u32 dma_size; /* Bytes 4-7 */ member
718 u32 dma_size; /* Bytes 4-7 */ member
732 u32 dma_size:24; /* Bytes 4-6 */ member
747 u32 dma_size:24; /* Bytes 4-6 */ member
761 u32 dma_size:24; /* Bytes 4-6 */ member
775 u32 dma_size:24; /* Bytes 4-6 */ member
791 u32 dma_size:24; /* Bytes 4-6 */ member
809 u32 dma_size:24; /* Bytes 4-6 */ member
847 u32 dma_size:24; /* Bytes 4-6 */ member
Dstex.c317 size_t dma_size; member
1070 h->extra_size = cpu_to_le32(hba->dma_size - hba->extra_offset); in stex_common_handshake()
1731 hba->dma_size = cp_offset + sizeof(struct st_frame); in stex_probe()
1734 hba->extra_offset = hba->dma_size; in stex_probe()
1735 hba->dma_size += ST_ADDITIONAL_MEM; in stex_probe()
1738 hba->dma_size, &hba->dma_handle, GFP_KERNEL); in stex_probe()
1746 hba->dma_size = hba->extra_offset in stex_probe()
1749 hba->dma_size, &hba->dma_handle, GFP_KERNEL); in stex_probe()
1838 dma_free_coherent(&pdev->dev, hba->dma_size, in stex_probe()
1926 dma_free_coherent(&hba->pdev->dev, hba->dma_size, in stex_hba_free()
Dmyrs.c183 mbox->ctlr_info.dma_size = sizeof(struct myrs_ctlr_info); in myrs_get_ctlr_info()
188 sgl->sge[0].sge_count = mbox->ctlr_info.dma_size; in myrs_get_ctlr_info()
242 mbox->ldev_info.dma_size = sizeof(struct myrs_ldev_info); in myrs_get_ldev_info()
247 sgl->sge[0].sge_count = mbox->ldev_info.dma_size; in myrs_get_ldev_info()
328 mbox->pdev_info.dma_size = sizeof(struct myrs_pdev_info); in myrs_get_pdev_info()
335 sgl->sge[0].sge_count = mbox->pdev_info.dma_size; in myrs_get_pdev_info()
399 mbox->pdev_info.dma_size = sizeof(struct myrs_devmap); in myrs_translate_pdev()
406 sgl->sge[0].sge_count = mbox->pdev_info.dma_size; in myrs_translate_pdev()
435 mbox->get_event.dma_size = sizeof(struct myrs_event); in myrs_get_event()
442 sgl->sge[0].sge_count = mbox->get_event.dma_size; in myrs_get_event()
[all …]
/linux-6.12.1/drivers/crypto/xilinx/
Dzynqmp-aes-gcm.c88 size_t dma_size; in zynqmp_aes_aead_cipher() local
93 dma_size = req->cryptlen + ZYNQMP_AES_KEY_SIZE in zynqmp_aes_aead_cipher()
96 dma_size = req->cryptlen + GCM_AES_IV_SIZE; in zynqmp_aes_aead_cipher()
98 kbuf = dma_alloc_coherent(dev, dma_size, &dma_addr_data, GFP_KERNEL); in zynqmp_aes_aead_cipher()
105 dma_free_coherent(dev, dma_size, kbuf, dma_addr_data); in zynqmp_aes_aead_cipher()
166 memzero_explicit(kbuf, dma_size); in zynqmp_aes_aead_cipher()
167 dma_free_coherent(dev, dma_size, kbuf, dma_addr_data); in zynqmp_aes_aead_cipher()
/linux-6.12.1/sound/soc/sof/amd/
Dacp-loader.c55 u32 dma_size, page_count; in acp_dsp_block_write() local
65 dma_size = page_count * ACP_PAGE_SIZE; in acp_dsp_block_write()
66 adata->bin_buf = dma_alloc_coherent(&pci->dev, dma_size, in acp_dsp_block_write()
171 u32 page_count, dma_size; in acp_dsp_pre_fw_run() local
232 dma_size = (PAGE_ALIGN(sdev->basefw.fw->size) >> PAGE_SHIFT) * ACP_PAGE_SIZE; in acp_dsp_pre_fw_run()
233 dma_free_coherent(&pci->dev, dma_size, adata->bin_buf, adata->sha_dma_addr); in acp_dsp_pre_fw_run()
/linux-6.12.1/drivers/media/pci/cx23885/
Dcx23885-alsa.c263 BUG_ON(!chip->dma_size); in dsp_buffer_free()
273 chip->dma_size = 0; in dsp_buffer_free()
372 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx23885_hw_params()
374 BUG_ON(!chip->dma_size); in snd_cx23885_hw_params()
385 (PAGE_ALIGN(chip->dma_size) >> PAGE_SHIFT)); in snd_cx23885_hw_params()
404 substream->runtime->dma_bytes = chip->dma_size; in snd_cx23885_hw_params()
/linux-6.12.1/drivers/media/pci/cx25821/
Dcx25821-alsa.c76 unsigned int dma_size; member
400 BUG_ON(!chip->dma_size); in dsp_buffer_free()
409 chip->dma_size = 0; in dsp_buffer_free()
510 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx25821_hw_params()
512 BUG_ON(!chip->dma_size); in snd_cx25821_hw_params()
526 (PAGE_ALIGN(chip->dma_size) >> PAGE_SHIFT)); in snd_cx25821_hw_params()
547 substream->runtime->dma_bytes = chip->dma_size; in snd_cx25821_hw_params()
/linux-6.12.1/drivers/mmc/host/
Dsunplus-mmc.c434 unsigned int dma_size; in spmmc_prepare_data() local
446 dma_size = sg_dma_len(sg) / data->blksz - 1; in spmmc_prepare_data()
449 writel(dma_size, host->base + SPMMC_SDRAM_SECTOR_0_SIZE_REG); in spmmc_prepare_data()
452 writel(dma_size, host->base + SPMMC_SDRAM_SECTOR_1_LENG_REG); in spmmc_prepare_data()
455 writel(dma_size, host->base + SPMMC_SDRAM_SECTOR_2_LENG_REG); in spmmc_prepare_data()
458 writel(dma_size, host->base + SPMMC_SDRAM_SECTOR_3_LENG_REG); in spmmc_prepare_data()
461 writel(dma_size, host->base + SPMMC_SDRAM_SECTOR_4_LENG_REG); in spmmc_prepare_data()
464 writel(dma_size, host->base + SPMMC_SDRAM_SECTOR_5_LENG_REG); in spmmc_prepare_data()
467 writel(dma_size, host->base + SPMMC_SDRAM_SECTOR_6_LENG_REG); in spmmc_prepare_data()
470 writel(dma_size, host->base + SPMMC_SDRAM_SECTOR_7_LENG_REG); in spmmc_prepare_data()
/linux-6.12.1/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_init.c106 rds_ring->dma_size, DMA_FROM_DEVICE); in netxen_release_rx_buffers()
218 rds_ring->dma_size = in netxen_alloc_sw_resources()
224 rds_ring->dma_size = in netxen_alloc_sw_resources()
227 rds_ring->dma_size = in netxen_alloc_sw_resources()
230 rds_ring->dma_size + NET_IP_ALIGN; in netxen_alloc_sw_resources()
237 rds_ring->dma_size = in netxen_alloc_sw_resources()
240 rds_ring->dma_size = in netxen_alloc_sw_resources()
244 rds_ring->dma_size += NX_LRO_BUFFER_EXTRA; in netxen_alloc_sw_resources()
247 rds_ring->dma_size + NET_IP_ALIGN; in netxen_alloc_sw_resources()
252 rds_ring->dma_size = NX_RX_LRO_BUFFER_LENGTH; in netxen_alloc_sw_resources()
[all …]
/linux-6.12.1/sound/isa/gus/
Dgus_pcm.c43 unsigned int dma_size; member
118 begin = pcmp->memory + voice * (pcmp->dma_size / runtime->channels); in snd_gf1_pcm_trigger_up()
207 step = pcmp->dma_size / runtime->channels; in snd_gf1_pcm_interrupt_wave()
239 …ge(pcmp->substream, end + (pcmp->block_size / 2), pcmp->memory + (pcmp->dma_size / 2) + (end / 2),… in snd_gf1_pcm_interrupt_wave()
330 unsigned int bpos = pos + (voice * (pcmp->dma_size / 2)); in get_bpos()
331 if (snd_BUG_ON(bpos > pcmp->dma_size)) in get_bpos()
333 if (snd_BUG_ON(bpos + len > pcmp->dma_size)) in get_bpos()
465 pcmp->dma_size = snd_pcm_lib_buffer_bytes(substream); in snd_gf1_pcm_playback_prepare()
467 pcmp->blocks = pcmp->dma_size / pcmp->block_size; in snd_gf1_pcm_playback_prepare()
/linux-6.12.1/drivers/crypto/
Datmel-tdes.c113 size_t dma_size; member
298 dd->dma_size, DMA_FROM_DEVICE); in atmel_tdes_crypt_pdc_stop()
302 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_tdes_crypt_pdc_stop()
303 if (count != dd->dma_size) { in atmel_tdes_crypt_pdc_stop()
371 dd->dma_size = length; in atmel_tdes_crypt_pdc()
403 dd->dma_size = length; in atmel_tdes_crypt_dma()
623 dd->dma_size, DMA_FROM_DEVICE); in atmel_tdes_crypt_dma_stop()
627 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_tdes_crypt_dma_stop()
628 if (count != dd->dma_size) { in atmel_tdes_crypt_dma_stop()
/linux-6.12.1/drivers/media/pci/cx88/
Dcx88-alsa.c68 unsigned int dma_size; member
354 WARN_ON(!chip->dma_size); in dsp_buffer_free()
463 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx88_hw_params()
465 WARN_ON(!chip->dma_size); in snd_cx88_hw_params()
476 (PAGE_ALIGN(chip->dma_size) >> PAGE_SHIFT)); in snd_cx88_hw_params()
494 substream->runtime->dma_bytes = chip->dma_size; in snd_cx88_hw_params()
/linux-6.12.1/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c1532 ring->dma_size); in mtk_tx_map()
1671 idx = NEXT_DESP_IDX(ring->calc_idx, ring->dma_size); in mtk_get_rx_ring()
1898 mtk_w32(eth, NEXT_DESP_IDX(idx, ring->dma_size), in mtk_xdp_submit_frame()
2039 idx = NEXT_DESP_IDX(ring->calc_idx, ring->dma_size); in mtk_poll_rx()
2355 cpu = NEXT_DESP_IDX(cpu, ring->dma_size); in mtk_poll_tx_pdma()
2477 ring_size = soc->tx.dma_size; in mtk_tx_alloc()
2527 ring->dma_size = ring_size; in mtk_tx_alloc()
2585 for (i = 0; i < ring->dma_size; i++) in mtk_tx_clean()
2592 ring->dma_size * soc->tx.desc_size, in mtk_tx_clean()
2599 ring->dma_size * soc->tx.desc_size, in mtk_tx_clean()
[all …]
/linux-6.12.1/drivers/media/pci/intel/ipu6/
Dipu6-fw-com.c90 unsigned int dma_size; member
218 ctx->dma_size = sizeall; in ipu6_fw_com_prepare()
318 dma_free_attrs(&ctx->adev->auxdev.dev, ctx->dma_size, in ipu6_fw_com_release()
/linux-6.12.1/drivers/media/platform/nxp/imx8-isi/
Dimx8-isi-core.c428 unsigned int dma_size; in mxc_isi_probe() local
468 dma_size = isi->pdata->has_36bit_dma ? 36 : 32; in mxc_isi_probe()
469 ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(dma_size)); in mxc_isi_probe()
/linux-6.12.1/drivers/misc/mei/
Dhw-me.h31 size_t dma_size[DMA_DSCR_NUM]; member
/linux-6.12.1/include/sound/
Des1688.h32 unsigned int dma_size; member
/linux-6.12.1/drivers/tty/serial/
Dstm32-usart.c447 static void stm32_usart_push_buffer_dma(struct uart_port *port, unsigned int dma_size) in stm32_usart_push_buffer_dma() argument
462 for (i = 0; i < dma_size; i++) in stm32_usart_push_buffer_dma()
465 dma_count = tty_insert_flip_string(ttyport, dma_start, dma_size); in stm32_usart_push_buffer_dma()
467 if (dma_count != dma_size) in stm32_usart_push_buffer_dma()
477 unsigned int dma_size, size = 0; in stm32_usart_receive_chars_dma() local
482 dma_size = stm32_port->last_res; in stm32_usart_receive_chars_dma()
483 stm32_usart_push_buffer_dma(port, dma_size); in stm32_usart_receive_chars_dma()
484 size = dma_size; in stm32_usart_receive_chars_dma()
487 dma_size = stm32_port->last_res - stm32_port->rx_dma_state.residue; in stm32_usart_receive_chars_dma()
488 stm32_usart_push_buffer_dma(port, dma_size); in stm32_usart_receive_chars_dma()
[all …]
Datmel_serial.c84 unsigned int dma_size; member
1435 pdc->dma_size, in atmel_release_tx_pdc()
1464 pdc->dma_size, in atmel_tx_pdc()
1500 pdc->dma_size = UART_XMIT_SIZE; in atmel_prepare_tx_pdc()
1578 pdc->dma_size, in atmel_release_rx_pdc()
1612 head = min(head, pdc->dma_size); in atmel_rx_from_pdc()
1616 pdc->dma_size, DMA_FROM_DEVICE); in atmel_rx_from_pdc()
1630 pdc->dma_size, DMA_FROM_DEVICE); in atmel_rx_from_pdc()
1640 if (head >= pdc->dma_size) { in atmel_rx_from_pdc()
1643 atmel_uart_writel(port, ATMEL_PDC_RNCR, pdc->dma_size); in atmel_rx_from_pdc()
[all …]
/linux-6.12.1/sound/pci/nm256/
Dnm256.c183 int dma_size; /* buffer size of the substream in bytes */ member
501 snd_nm256_writel(chip, NM_PBUFFER_END, s->buf + s->dma_size - (1 << s->shift)); in snd_nm256_playback_start()
518 snd_nm256_writel(chip, NM_RBUFFER_END, s->buf + s->dma_size); in snd_nm256_capture_start()
629 s->dma_size = frames_to_bytes(runtime, substream->runtime->buffer_size); in snd_nm256_pcm_prepare()
656 curp %= s->dma_size; in snd_nm256_playback_pointer()
670 curp %= s->dma_size; in snd_nm256_capture_pointer()
/linux-6.12.1/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_init.c98 rds_ring->dma_size, DMA_FROM_DEVICE); in qlcnic_release_rx_buffers()
204 rds_ring->dma_size = QLCNIC_P3P_RX_BUF_MAX_LEN; in qlcnic_alloc_sw_resources()
205 rds_ring->skb_size = rds_ring->dma_size + NET_IP_ALIGN; in qlcnic_alloc_sw_resources()
210 rds_ring->dma_size = in qlcnic_alloc_sw_resources()
215 rds_ring->dma_size += QLCNIC_LRO_BUFFER_EXTRA; in qlcnic_alloc_sw_resources()
218 rds_ring->dma_size + NET_IP_ALIGN; in qlcnic_alloc_sw_resources()

123