Home
last modified time | relevance | path

Searched refs:num_periods (Results 1 – 22 of 22) sorted by relevance

/linux-6.6.21/sound/soc/loongson/
Dloongson_dma.c146 u32 num_periods; in loongson_pcm_hw_params() local
154 num_periods = buf_len / period_len; in loongson_pcm_hw_params()
155 if (!num_periods || num_periods > prtd->dma_desc_arr_size) { in loongson_pcm_hw_params()
166 for (i = 0; i < num_periods; i++) { in loongson_pcm_hw_params()
188 desc = &prtd->dma_desc_arr[num_periods - 1]; in loongson_pcm_hw_params()
/linux-6.6.21/drivers/media/pci/cx23885/
Dcx23885-alsa.c179 chip->num_periods, buf->bpl * chip->num_periods); in cx23885_start_audio_dma()
371 chip->num_periods = params_periods(hw_params); in snd_cx23885_hw_params()
375 BUG_ON(chip->num_periods & (chip->num_periods-1)); in snd_cx23885_hw_params()
394 chip->period_size, chip->num_periods, 1); in snd_cx23885_hw_params()
Dcx23885.h345 unsigned int num_periods; member
/linux-6.6.21/sound/soc/intel/avs/
Dcldma.c37 unsigned int num_periods; member
212 cl->num_periods = 0; in cldma_setup_bdle()
230 cl->num_periods++; in cldma_setup_bdle()
244 snd_hdac_stream_writeb(cl, SD_LVI, cl->num_periods - 1); in hda_cldma_setup()
/linux-6.6.21/drivers/media/pci/cx88/
Dcx88-alsa.c70 unsigned int num_periods; member
135 chip->num_periods, buf->bpl * chip->num_periods); in _cx88_start_audio_dma()
462 chip->num_periods = params_periods(hw_params); in snd_cx88_hw_params()
466 WARN_ON(chip->num_periods & (chip->num_periods - 1)); in snd_cx88_hw_params()
485 chip->period_size, chip->num_periods, 1); in snd_cx88_hw_params()
/linux-6.6.21/drivers/media/pci/cx25821/
Dcx25821-alsa.c78 unsigned int num_periods; member
509 chip->num_periods = params_periods(hw_params); in snd_cx25821_hw_params()
513 BUG_ON(chip->num_periods & (chip->num_periods - 1)); in snd_cx25821_hw_params()
535 chip->period_size, chip->num_periods, 1); in snd_cx25821_hw_params()
/linux-6.6.21/drivers/dma/
Dtegra210-adma.c122 size_t num_periods; member
399 periods_remaining = tdc->tx_buf_count % desc->num_periods; in tegra_adma_get_residue()
563 if (desc->num_periods > ADMA_CH_CONFIG_MAX_BUFS) in tegra_adma_set_xfer_params()
571 ch_regs->config = ADMA_CH_CONFIG_SRC_BUF(desc->num_periods - 1); in tegra_adma_set_xfer_params()
582 ch_regs->config = ADMA_CH_CONFIG_TRG_BUF(desc->num_periods - 1); in tegra_adma_set_xfer_params()
656 desc->num_periods = buf_len / period_len; in tegra_adma_prep_dma_cyclic()
Ddma-axi-dmac.c498 unsigned int num_periods, unsigned int period_len, in axi_dmac_fill_linear_sg() argument
511 for (i = 0; i < num_periods; i++) { in axi_dmac_fill_linear_sg()
587 unsigned int num_periods, num_segments; in axi_dmac_prep_dma_cyclic() local
599 num_periods = buf_len / period_len; in axi_dmac_prep_dma_cyclic()
602 desc = axi_dmac_alloc_desc(num_periods * num_segments); in axi_dmac_prep_dma_cyclic()
606 axi_dmac_fill_linear_sg(chan, direction, buf_addr, num_periods, in axi_dmac_prep_dma_cyclic()
Dmxs-dma.c580 u32 num_periods = buf_len / period_len; in mxs_dma_prep_dma_cyclic() local
590 if (num_periods > NUM_CCW) { in mxs_dma_prep_dma_cyclic()
593 num_periods, NUM_CCW); in mxs_dma_prep_dma_cyclic()
607 if (i + 1 == num_periods) in mxs_dma_prep_dma_cyclic()
Dmmp_tdma.c429 int num_periods = buf_len / period_len; in mmp_tdma_prep_dma_cyclic() local
450 tdmac->desc_num = num_periods; in mmp_tdma_prep_dma_cyclic()
461 if (i + 1 == num_periods) in mmp_tdma_prep_dma_cyclic()
Dstm32-dma.c1165 u32 num_periods, nb_data_items; in stm32_dma_prep_dma_cyclic() local
1216 num_periods = buf_len / period_len; in stm32_dma_prep_dma_cyclic()
1218 desc = kzalloc(struct_size(desc, sg_req, num_periods), GFP_NOWAIT); in stm32_dma_prep_dma_cyclic()
1222 for (i = 0; i < num_periods; i++) { in stm32_dma_prep_dma_cyclic()
1238 desc->num_sgs = num_periods; in stm32_dma_prep_dma_cyclic()
Dimx-sdma.c1694 int num_periods = 0; in sdma_prep_dma_cyclic() local
1702 num_periods = buf_len / period_len; in sdma_prep_dma_cyclic()
1706 desc = sdma_transfer_init(sdmac, direction, num_periods); in sdma_prep_dma_cyclic()
1739 if (i + 1 == num_periods) in sdma_prep_dma_cyclic()
/linux-6.6.21/net/ceph/
Dstriper.c266 u64 num_periods = DIV64_U64_ROUND_UP(size, period); in ceph_get_num_objects() local
276 return num_periods * l->stripe_count - remainder_objs; in ceph_get_num_objects()
/linux-6.6.21/sound/soc/fsl/
Dfsl_dma.c106 unsigned int num_periods; member
248 if (dma_private->num_periods != NUM_DMA_LINKS) in fsl_dma_isr()
544 dma_private->num_periods = params_periods(hw_params); in fsl_dma_hw_params()
/linux-6.6.21/sound/soc/qcom/qdsp6/
Dq6apm.h78 uint32_t num_periods; member
Dq6asm.c247 uint32_t num_periods; member
378 port->num_periods = 0; in q6asm_audio_client_free_buf()
404 cnt = port->num_periods - 1; in q6asm_unmap_memory_regions()
534 ac->port[dir].num_periods = periods; in q6asm_map_memory_regions()
1485 if (port->dsp_buf >= port->num_periods) in q6asm_read()
1612 if (port->dsp_buf >= port->num_periods) in q6asm_write_async()
Dq6apm.c255 data->num_periods = periods; in q6apm_map_memory_regions()
445 if (graph->rx_data.dsp_buf >= graph->rx_data.num_periods) in q6apm_write_async()
485 if (port->dsp_buf >= port->num_periods) in q6apm_read()
Daudioreach.c1298 port->num_periods = 0; in audioreach_graph_free_buf()
1303 port->num_periods = 0; in audioreach_graph_free_buf()
/linux-6.6.21/sound/x86/
Dintel_hdmi_audio.c905 int i, num_periods; in had_init_ringbuf() local
907 num_periods = runtime->periods; in had_init_ringbuf()
908 intelhaddata->num_bds = min(num_periods, HAD_NUM_OF_RING_BUFS); in had_init_ringbuf()
933 int num_periods = substream->runtime->periods; in had_advance_ringbuf() local
940 intelhaddata->pcmbuf_head %= num_periods; in had_advance_ringbuf()
/linux-6.6.21/drivers/media/rc/
Dredrat3.c162 __be16 num_periods; member
298 mod_freq = (RR3_CLK * be16_to_cpu(irdata->num_periods)) / in redrat3_val_to_mod_freq()
/linux-6.6.21/drivers/dma/dw-axi-dmac/
Ddw-axi-dmac-platform.c726 u32 num_periods, num_segments; in dw_axi_dma_chan_prep_cyclic() local
735 num_periods = buf_len / period_len; in dw_axi_dma_chan_prep_cyclic()
744 total_segments = num_periods * num_segments; in dw_axi_dma_chan_prep_cyclic()
/linux-6.6.21/drivers/dma/xilinx/
Dxilinx_dma.c2288 unsigned int num_periods; in xilinx_dma_prep_dma_cyclic() local
2295 num_periods = buf_len / period_len; in xilinx_dma_prep_dma_cyclic()
2297 if (!num_periods) in xilinx_dma_prep_dma_cyclic()
2312 for (i = 0; i < num_periods; ++i) { in xilinx_dma_prep_dma_cyclic()