/linux/sound/soc/loongson/ |
H A D | loongson_dma.c | 145 u32 num_periods; in loongson_pcm_hw_params() local 153 num_periods = buf_len / period_len; in loongson_pcm_hw_params() 154 if (!num_periods || num_periods > prtd->dma_desc_arr_size) { in loongson_pcm_hw_params() 165 for (i = 0; i < num_periods; i++) { in loongson_pcm_hw_params() 187 desc = &prtd->dma_desc_arr[num_periods - 1]; in loongson_pcm_hw_params()
|
/linux/drivers/media/pci/cx23885/ |
H A D | cx23885-alsa.c | 179 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()
|
H A D | cx23885.h | 345 unsigned int num_periods; member
|
/linux/sound/soc/intel/avs/ |
H A D | cldma.c | 37 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/drivers/media/pci/cx88/ |
H A D | cx88-alsa.c | 70 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/drivers/media/pci/cx25821/ |
H A D | cx25821-alsa.c | 78 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/net/ceph/ |
H A D | striper.c | 266 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/drivers/dma/ |
H A D | dma-axi-dmac.c | 584 unsigned int num_periods, unsigned int period_len, in axi_dmac_fill_linear_sg() argument 597 for (i = 0; i < num_periods; i++) { in axi_dmac_fill_linear_sg() 710 unsigned int num_periods, num_segments, num_sgs; in axi_dmac_prep_dma_cyclic() local 722 num_periods = buf_len / period_len; in axi_dmac_prep_dma_cyclic() 724 num_sgs = num_periods * num_segments; in axi_dmac_prep_dma_cyclic() 734 axi_dmac_fill_linear_sg(chan, direction, buf_addr, num_periods, in axi_dmac_prep_dma_cyclic()
|
H A D | mxs-dma.c | 580 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()
|
/linux/sound/soc/fsl/ |
H A D | fsl_dma.c | 106 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/sound/soc/qcom/qdsp6/ |
H A D | q6apm.h | 77 uint32_t num_periods; member
|
H A D | q6asm.c | 248 uint32_t num_periods; member 379 port->num_periods = 0; in q6asm_audio_client_free_buf() 405 cnt = port->num_periods - 1; in q6asm_unmap_memory_regions() 535 ac->port[dir].num_periods = periods; in q6asm_map_memory_regions() 1486 if (port->dsp_buf >= port->num_periods) in q6asm_read() 1613 if (port->dsp_buf >= port->num_periods) in q6asm_write_async()
|
H A D | q6apm.c | 255 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()
|
H A D | audioreach.c | 1289 port->num_periods = 0; in audioreach_graph_free_buf() 1294 port->num_periods = 0; in audioreach_graph_free_buf()
|
/linux/sound/x86/ |
H A D | intel_hdmi_audio.c | 906 int i, num_periods; in had_init_ringbuf() local 908 num_periods = runtime->periods; in had_init_ringbuf() 909 intelhaddata->num_bds = min(num_periods, HAD_NUM_OF_RING_BUFS); in had_init_ringbuf() 934 int num_periods = substream->runtime->periods; in had_advance_ringbuf() local 941 intelhaddata->pcmbuf_head %= num_periods; in had_advance_ringbuf()
|
/linux/drivers/dma/stm32/ |
H A D | stm32-dma.c | 1163 u32 num_periods, nb_data_items; in stm32_dma_prep_dma_cyclic() local 1214 num_periods = buf_len / period_len; in stm32_dma_prep_dma_cyclic() 1216 desc = kzalloc(struct_size(desc, sg_req, num_periods), GFP_NOWAIT); in stm32_dma_prep_dma_cyclic() 1219 desc->num_sgs = num_periods; in stm32_dma_prep_dma_cyclic() 1221 for (i = 0; i < num_periods; i++) { in stm32_dma_prep_dma_cyclic()
|
/linux/drivers/media/rc/ |
H A D | redrat3.c | 162 __be16 num_periods; member 298 mod_freq = (RR3_CLK * be16_to_cpu(irdata->num_periods)) / in redrat3_val_to_mod_freq()
|