Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/drivers/i2c/busses/
A Di2c-ismt.c401 u8 dma_size = 0; in ismt_access() local
447 dma_size = 1; in ismt_access()
461 dma_size = 2; in ismt_access()
471 dma_size = 1; in ismt_access()
481 dma_size = 3; in ismt_access()
492 dma_size = 2; in ismt_access()
501 dma_size = 3; in ismt_access()
540 desc->rd_len = dma_size; in ismt_access()
589 if (dma_size != 0) { in ismt_access()
598 dma_size, in ismt_access()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/selftests/
A 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()
A Dhuge_gem_object.h19 dma_addr_t dma_size);
/linux-6.3-rc2/sound/soc/sof/amd/
A 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()
157 u32 page_count, dma_size; in acp_dsp_pre_fw_run() local
194 dma_size = (PAGE_ALIGN(sdev->basefw.fw->size) >> PAGE_SHIFT) * ACP_PAGE_SIZE; in acp_dsp_pre_fw_run()
195 dma_free_coherent(&pci->dev, dma_size, adata->bin_buf, adata->sha_dma_addr); in acp_dsp_pre_fw_run()
/linux-6.3-rc2/drivers/scsi/
A 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
A Dstex.c313 size_t dma_size; member
1067 h->extra_size = cpu_to_le32(hba->dma_size - hba->extra_offset); in stex_common_handshake()
1728 hba->dma_size = cp_offset + sizeof(struct st_frame); in stex_probe()
1731 hba->extra_offset = hba->dma_size; in stex_probe()
1732 hba->dma_size += ST_ADDITIONAL_MEM; in stex_probe()
1735 hba->dma_size, &hba->dma_handle, GFP_KERNEL); in stex_probe()
1743 hba->dma_size = hba->extra_offset in stex_probe()
1746 hba->dma_size, &hba->dma_handle, GFP_KERNEL); in stex_probe()
1836 dma_free_coherent(&pdev->dev, hba->dma_size, in stex_probe()
1924 dma_free_coherent(&hba->pdev->dev, hba->dma_size, in stex_hba_free()
A Dmyrs.c188 sgl->sge[0].sge_count = mbox->ctlr_info.dma_size; in myrs_get_ctlr_info()
247 sgl->sge[0].sge_count = mbox->ldev_info.dma_size; in myrs_get_ldev_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()
466 mbox->common.dma_size = sizeof(struct myrs_fwstat); in myrs_get_fwstatus()
470 sgl->sge[0].sge_count = mbox->ctlr_info.dma_size; in myrs_get_fwstatus()
1655 mbox->SCSI_10.dma_size = scsi_bufflen(scmd); in myrs_queuecommand()
[all …]
/linux-6.3-rc2/drivers/crypto/xilinx/
A 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.3-rc2/drivers/media/pci/cx23885/
A 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.3-rc2/drivers/media/pci/cx25821/
A 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.3-rc2/drivers/mmc/host/
A 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.3-rc2/drivers/net/ethernet/qlogic/netxen/
A 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.3-rc2/sound/isa/gus/
A Dgus_pcm.c43 unsigned int dma_size; member
122 begin = pcmp->memory + voice * (pcmp->dma_size / runtime->channels); in snd_gf1_pcm_trigger_up()
216 step = pcmp->dma_size / runtime->channels; in snd_gf1_pcm_interrupt_wave()
248 …ge(pcmp->substream, end + (pcmp->block_size / 2), pcmp->memory + (pcmp->dma_size / 2) + (end / 2),… in snd_gf1_pcm_interrupt_wave()
344 unsigned int bpos = pos + (voice * (pcmp->dma_size / 2)); in get_bpos()
345 if (snd_BUG_ON(bpos > pcmp->dma_size)) in get_bpos()
347 if (snd_BUG_ON(bpos + len > pcmp->dma_size)) in get_bpos()
495 pcmp->dma_size = snd_pcm_lib_buffer_bytes(substream); in snd_gf1_pcm_playback_prepare()
497 pcmp->blocks = pcmp->dma_size / pcmp->block_size; in snd_gf1_pcm_playback_prepare()
/linux-6.3-rc2/drivers/media/pci/cx88/
A 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.3-rc2/drivers/crypto/
A Datmel-tdes.c123 size_t dma_size; member
308 dd->dma_size, DMA_FROM_DEVICE); in atmel_tdes_crypt_pdc_stop()
312 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_tdes_crypt_pdc_stop()
313 if (count != dd->dma_size) { in atmel_tdes_crypt_pdc_stop()
382 dd->dma_size = length; in atmel_tdes_crypt_pdc()
427 dd->dma_size = length; in atmel_tdes_crypt_dma()
664 dd->dma_size, DMA_FROM_DEVICE); in atmel_tdes_crypt_dma_stop()
668 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_tdes_crypt_dma_stop()
669 if (count != dd->dma_size) { in atmel_tdes_crypt_dma_stop()
/linux-6.3-rc2/drivers/tty/serial/
A Dstm32-usart.c404 static void stm32_usart_push_buffer_dma(struct uart_port *port, unsigned int dma_size) in stm32_usart_push_buffer_dma() argument
419 for (i = 0; i < dma_size; i++) in stm32_usart_push_buffer_dma()
422 dma_count = tty_insert_flip_string(ttyport, dma_start, dma_size); in stm32_usart_push_buffer_dma()
424 if (dma_count != dma_size) in stm32_usart_push_buffer_dma()
434 unsigned int dma_size, size = 0; in stm32_usart_receive_chars_dma() local
439 dma_size = stm32_port->last_res; in stm32_usart_receive_chars_dma()
440 stm32_usart_push_buffer_dma(port, dma_size); in stm32_usart_receive_chars_dma()
441 size = dma_size; in stm32_usart_receive_chars_dma()
444 dma_size = stm32_port->last_res - stm32_port->rx_dma_state.residue; in stm32_usart_receive_chars_dma()
445 stm32_usart_push_buffer_dma(port, dma_size); in stm32_usart_receive_chars_dma()
[all …]
A Datmel_serial.c85 unsigned int dma_size; member
1445 pdc->dma_size, in atmel_release_tx_pdc()
1473 pdc->dma_size, in atmel_tx_pdc()
1509 pdc->dma_size = UART_XMIT_SIZE; in atmel_prepare_tx_pdc()
1587 pdc->dma_size, in atmel_release_rx_pdc()
1621 head = min(head, pdc->dma_size); in atmel_rx_from_pdc()
1625 pdc->dma_size, DMA_FROM_DEVICE); in atmel_rx_from_pdc()
1639 pdc->dma_size, DMA_FROM_DEVICE); in atmel_rx_from_pdc()
1649 if (head >= pdc->dma_size) { in atmel_rx_from_pdc()
1657 } while (head >= pdc->dma_size); in atmel_rx_from_pdc()
[all …]
/linux-6.3-rc2/drivers/misc/mei/
A Dhw-me.h31 size_t dma_size[DMA_DSCR_NUM]; member
/linux-6.3-rc2/include/sound/
A Des1688.h31 unsigned int dma_size; member
/linux-6.3-rc2/drivers/media/pci/netup_unidvb/
A Dnetup_unidvb.h115 u32 dma_size; member
/linux-6.3-rc2/drivers/misc/
A Dhpilo.h145 size_t dma_size; member
/linux-6.3-rc2/sound/isa/es1688/
A Des1688_lib.c331 snd_dma_pointer(chip->dma8, chip->dma_size)); in snd_es1688_trigger()
346 chip->dma_size = size; in snd_es1688_playback_prepare()
407 chip->dma_size = size; in snd_es1688_capture_prepare()
476 ptr = snd_dma_pointer(chip->dma8, chip->dma_size); in snd_es1688_playback_pointer()
487 ptr = snd_dma_pointer(chip->dma8, chip->dma_size); in snd_es1688_capture_pointer()
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/nfpcore/
A Dnfp_nsp.c506 size_t chunk_size, dma_size; in nfp_nsp_command_buf_dma_sg() local
514 dma_size = BIT_ULL(dma_order); in nfp_nsp_command_buf_dma_sg()
556 if (WARN_ONCE(round_down(addr, dma_size) != in nfp_nsp_command_buf_dma_sg()
557 round_down(addr + chunks[i].len - 1, dma_size), in nfp_nsp_command_buf_dma_sg()
559 &addr, chunks[i].len, dma_size)) { in nfp_nsp_command_buf_dma_sg()
/linux-6.3-rc2/sound/pci/nm256/
A 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.3-rc2/drivers/net/ethernet/qlogic/qlcnic/
A 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()

Completed in 240 milliseconds

123