/linux-6.6.21/drivers/i2c/busses/ |
D | i2c-ismt.c | 401 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() 515 dma_size = data->block[0] + 1; in ismt_access() 517 desc->wr_len_cmd = dma_size; in ismt_access() 520 memcpy(&dma_buffer[1], &data->block[1], dma_size - 1); in ismt_access() [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/gem/selftests/ |
D | huge_gem_object.c | 103 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()
|
D | huge_gem_object.h | 19 dma_addr_t dma_size);
|
/linux-6.6.21/drivers/scsi/ |
D | myrs.h | 691 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
|
D | stex.c | 317 size_t dma_size; member 1071 h->extra_size = cpu_to_le32(hba->dma_size - hba->extra_offset); in stex_common_handshake() 1732 hba->dma_size = cp_offset + sizeof(struct st_frame); in stex_probe() 1735 hba->extra_offset = hba->dma_size; in stex_probe() 1736 hba->dma_size += ST_ADDITIONAL_MEM; in stex_probe() 1739 hba->dma_size, &hba->dma_handle, GFP_KERNEL); in stex_probe() 1747 hba->dma_size = hba->extra_offset in stex_probe() 1750 hba->dma_size, &hba->dma_handle, GFP_KERNEL); in stex_probe() 1840 dma_free_coherent(&pdev->dev, hba->dma_size, in stex_probe() 1928 dma_free_coherent(&hba->pdev->dev, hba->dma_size, in stex_hba_free()
|
/linux-6.6.21/sound/soc/sof/amd/ |
D | acp-loader.c | 55 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 198 dma_size = (PAGE_ALIGN(sdev->basefw.fw->size) >> PAGE_SHIFT) * ACP_PAGE_SIZE; in acp_dsp_pre_fw_run() 199 dma_free_coherent(&pci->dev, dma_size, adata->bin_buf, adata->sha_dma_addr); in acp_dsp_pre_fw_run()
|
/linux-6.6.21/drivers/crypto/xilinx/ |
D | zynqmp-aes-gcm.c | 88 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.6.21/drivers/media/pci/cx23885/ |
D | cx23885-alsa.c | 263 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.6.21/drivers/media/pci/cx25821/ |
D | cx25821-alsa.c | 76 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.6.21/drivers/mmc/host/ |
D | sunplus-mmc.c | 434 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.6.21/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_init.c | 106 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.6.21/sound/isa/gus/ |
D | gus_pcm.c | 43 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() 479 pcmp->dma_size = snd_pcm_lib_buffer_bytes(substream); in snd_gf1_pcm_playback_prepare() 481 pcmp->blocks = pcmp->dma_size / pcmp->block_size; in snd_gf1_pcm_playback_prepare()
|
/linux-6.6.21/drivers/media/pci/cx88/ |
D | cx88-alsa.c | 68 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.6.21/drivers/crypto/ |
D | atmel-tdes.c | 123 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() 659 dd->dma_size, DMA_FROM_DEVICE); in atmel_tdes_crypt_dma_stop() 663 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_tdes_crypt_dma_stop() 664 if (count != dd->dma_size) { in atmel_tdes_crypt_dma_stop()
|
/linux-6.6.21/drivers/misc/mei/ |
D | hw-me.h | 31 size_t dma_size[DMA_DSCR_NUM]; member
|
/linux-6.6.21/include/sound/ |
D | es1688.h | 31 unsigned int dma_size; member
|
/linux-6.6.21/drivers/media/platform/nxp/imx8-isi/ |
D | imx8-isi-core.c | 430 unsigned int dma_size; in mxc_isi_probe() local 470 dma_size = isi->pdata->has_36bit_dma ? 36 : 32; in mxc_isi_probe() 471 ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(dma_size)); in mxc_isi_probe()
|
/linux-6.6.21/drivers/tty/serial/ |
D | stm32-usart.c | 443 static void stm32_usart_push_buffer_dma(struct uart_port *port, unsigned int dma_size) in stm32_usart_push_buffer_dma() argument 458 for (i = 0; i < dma_size; i++) in stm32_usart_push_buffer_dma() 461 dma_count = tty_insert_flip_string(ttyport, dma_start, dma_size); in stm32_usart_push_buffer_dma() 463 if (dma_count != dma_size) in stm32_usart_push_buffer_dma() 473 unsigned int dma_size, size = 0; in stm32_usart_receive_chars_dma() local 478 dma_size = stm32_port->last_res; in stm32_usart_receive_chars_dma() 479 stm32_usart_push_buffer_dma(port, dma_size); in stm32_usart_receive_chars_dma() 480 size = dma_size; in stm32_usart_receive_chars_dma() 483 dma_size = stm32_port->last_res - stm32_port->rx_dma_state.residue; in stm32_usart_receive_chars_dma() 484 stm32_usart_push_buffer_dma(port, dma_size); in stm32_usart_receive_chars_dma() [all …]
|
D | atmel_serial.c | 84 unsigned int dma_size; member 1444 pdc->dma_size, in atmel_release_tx_pdc() 1472 pdc->dma_size, in atmel_tx_pdc() 1508 pdc->dma_size = UART_XMIT_SIZE; in atmel_prepare_tx_pdc() 1586 pdc->dma_size, in atmel_release_rx_pdc() 1620 head = min(head, pdc->dma_size); in atmel_rx_from_pdc() 1624 pdc->dma_size, DMA_FROM_DEVICE); in atmel_rx_from_pdc() 1638 pdc->dma_size, DMA_FROM_DEVICE); in atmel_rx_from_pdc() 1648 if (head >= pdc->dma_size) { in atmel_rx_from_pdc() 1651 atmel_uart_writel(port, ATMEL_PDC_RNCR, pdc->dma_size); in atmel_rx_from_pdc() [all …]
|
/linux-6.6.21/drivers/media/pci/netup_unidvb/ |
D | netup_unidvb.h | 115 u32 dma_size; member
|
/linux-6.6.21/drivers/misc/ |
D | hpilo.h | 145 size_t dma_size; member
|
/linux-6.6.21/sound/isa/es1688/ |
D | es1688_lib.c | 331 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.6.21/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_nsp.c | 506 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.6.21/sound/pci/nm256/ |
D | nm256.c | 183 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.6.21/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_init.c | 98 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()
|