periods 329 arch/mips/kvm/emulate.c s64 now_ns, periods; periods 337 arch/mips/kvm/emulate.c periods = div64_s64(now_ns, vcpu->arch.count_period); periods 338 arch/mips/kvm/emulate.c vcpu->arch.count_dyn_bias = -periods * vcpu->arch.count_period; periods 216 drivers/cpufreq/cpufreq_governor.c unsigned int periods = idle_time / sampling_rate; periods 218 drivers/cpufreq/cpufreq_governor.c if (periods < idle_periods) periods 219 drivers/cpufreq/cpufreq_governor.c idle_periods = periods; periods 1295 drivers/dma/at_hdmac.c unsigned int periods = buf_len / period_len; periods 1301 drivers/dma/at_hdmac.c periods, buf_len, period_len); periods 1327 drivers/dma/at_hdmac.c for (i = 0; i < periods; i++) { periods 741 drivers/dma/at_xdmac.c unsigned int periods = buf_len / period_len; periods 762 drivers/dma/at_xdmac.c for (i = 0; i < periods; i++) { periods 405 drivers/dma/dma-jz4780.c unsigned int periods, i; periods 411 drivers/dma/dma-jz4780.c periods = buf_len / period_len; periods 413 drivers/dma/dma-jz4780.c desc = jz4780_dma_desc_alloc(jzchan, periods, DMA_CYCLIC); periods 417 drivers/dma/dma-jz4780.c for (i = 0; i < periods; i++) { periods 441 drivers/dma/dma-jz4780.c if (i != (periods - 1)) { periods 875 drivers/dma/imx-dma.c unsigned int periods = buf_len / period_len; periods 888 drivers/dma/imx-dma.c imxdmac->sg_list = kcalloc(periods + 1, periods 893 drivers/dma/imx-dma.c sg_init_table(imxdmac->sg_list, periods); periods 895 drivers/dma/imx-dma.c for (i = 0; i < periods; i++) { periods 904 drivers/dma/imx-dma.c sg_chain(imxdmac->sg_list, periods + 1, imxdmac->sg_list); periods 908 drivers/dma/imx-dma.c desc->sgcount = periods; periods 952 drivers/dma/owl-dma.c unsigned int periods = buf_len / period_len; periods 962 drivers/dma/owl-dma.c for (i = 0; i < periods; i++) { periods 2513 drivers/dma/ste_dma40.c unsigned int periods = buf_len / period_len; periods 2518 drivers/dma/ste_dma40.c sg = kcalloc(periods + 1, sizeof(struct scatterlist), GFP_NOWAIT); periods 2522 drivers/dma/ste_dma40.c for (i = 0; i < periods; i++) { periods 2528 drivers/dma/ste_dma40.c sg_chain(sg, periods + 1, sg); periods 2530 drivers/dma/ste_dma40.c txd = d40_prep_sg(chan, sg, sg, periods, direction, periods 776 drivers/dma/sun6i-dma.c unsigned int i, periods = buf_len / period_len; periods 789 drivers/dma/sun6i-dma.c for (i = 0; i < periods; i++) { periods 479 drivers/media/pci/cx23885/cx23885-alsa.c return runtime->period_size * (count & (runtime->periods-1)); periods 622 drivers/media/pci/cx25821/cx25821-alsa.c return runtime->period_size * (count & (runtime->periods - 1)); periods 568 drivers/media/pci/cx88/cx88-alsa.c return runtime->period_size * (count & (runtime->periods - 1)); periods 665 drivers/media/pci/saa7134/saa7134-alsa.c unsigned int period_size, periods; periods 669 drivers/media/pci/saa7134/saa7134-alsa.c periods = params_periods(hw_params); periods 673 drivers/media/pci/saa7134/saa7134-alsa.c if (periods < 4) periods 675 drivers/media/pci/saa7134/saa7134-alsa.c if (period_size * periods > 1024 * 1024) periods 680 drivers/media/pci/saa7134/saa7134-alsa.c if (dev->dmasound.blocks == periods && periods 691 drivers/media/pci/saa7134/saa7134-alsa.c dev->dmasound.blocks = periods; periods 693 drivers/media/pci/saa7134/saa7134-alsa.c dev->dmasound.bufsize = period_size * periods; periods 184 drivers/media/pci/tw686x/tw686x-audio.c if (rt->periods < TW686X_AUDIO_PERIODS_MIN || periods 185 drivers/media/pci/tw686x/tw686x-audio.c rt->periods > TW686X_AUDIO_PERIODS_MAX) periods 191 drivers/media/pci/tw686x/tw686x-audio.c for (i = 0; i < rt->periods; i++) { periods 339 drivers/media/rc/iguanair.c unsigned int i, size, p, periods; periods 346 drivers/media/rc/iguanair.c periods = DIV_ROUND_CLOSEST(txbuf[i] * ir->carrier, 1000000); periods 347 drivers/media/rc/iguanair.c while (periods) { periods 348 drivers/media/rc/iguanair.c p = min(periods, 127u); periods 354 drivers/media/rc/iguanair.c periods -= p; periods 45 drivers/media/rc/ir-spi.c unsigned int periods; periods 49 drivers/media/rc/ir-spi.c periods = DIV_ROUND_CLOSEST(buffer[i] * idata->freq, 1000000); periods 51 drivers/media/rc/ir-spi.c if (len + periods >= IR_SPI_MAX_BUFSIZE) periods 60 drivers/media/rc/ir-spi.c for (j = 0; j < periods; j++) periods 620 drivers/net/wireless/intersil/p54/fwio.c psm->intervals[i].periods = cpu_to_le16(1); periods 456 drivers/net/wireless/intersil/p54/lmac.h __le16 periods; periods 428 drivers/watchdog/octeon-wdt-main.c unsigned int periods; periods 440 drivers/watchdog/octeon-wdt-main.c periods = t / timeout_sec; periods 447 drivers/watchdog/octeon-wdt-main.c countdown_reset = periods > 2 ? periods - 2 : 0; periods 279 drivers/watchdog/wdat_wdt.c unsigned int periods; periods 282 drivers/watchdog/wdat_wdt.c periods = timeout * 1000 / wdat->period; periods 283 drivers/watchdog/wdat_wdt.c ret = wdat_wdt_run_action(wdat, ACPI_WDAT_SET_COUNTDOWN, periods, NULL); periods 292 drivers/watchdog/wdat_wdt.c u32 periods = 0; periods 294 drivers/watchdog/wdat_wdt.c wdat_wdt_run_action(wdat, ACPI_WDAT_GET_CURRENT_COUNTDOWN, 0, &periods); periods 295 drivers/watchdog/wdat_wdt.c return periods * wdat->period / 1000; periods 700 fs/nilfs2/ioctl.c struct nilfs_period *periods = buf; periods 705 fs/nilfs2/ioctl.c cpfile, periods[i].p_start, periods[i].p_end); periods 39 include/linux/flex_proportions.h bool fprop_new_period(struct fprop_global *p, int periods); periods 363 include/sound/pcm.h unsigned int periods; /* periods */ periods 19 include/sound/pcm_oss.h unsigned int periods; periods 38 include/sound/pcm_oss.h unsigned int periods; periods 63 kernel/sched/pelt.c static u32 __accumulate_pelt_segments(u64 periods, u32 d1, u32 d3) periods 70 kernel/sched/pelt.c c1 = decay_load((u64)d1, periods); periods 81 kernel/sched/pelt.c c2 = LOAD_AVG_MAX - decay_load(LOAD_AVG_MAX, periods) - 1024; periods 114 kernel/sched/pelt.c u64 periods; periods 117 kernel/sched/pelt.c periods = delta / 1024; /* A period is 1024us (~1ms) */ periods 122 kernel/sched/pelt.c if (periods) { periods 123 kernel/sched/pelt.c sa->load_sum = decay_load(sa->load_sum, periods); periods 125 kernel/sched/pelt.c decay_load(sa->runnable_load_sum, periods); periods 126 kernel/sched/pelt.c sa->util_sum = decay_load((u64)(sa->util_sum), periods); periods 132 kernel/sched/pelt.c contrib = __accumulate_pelt_segments(periods, periods 144 kernel/sched/pelt.c return periods; periods 64 lib/flex_proportions.c bool fprop_new_period(struct fprop_global *p, int periods) periods 79 lib/flex_proportions.c if (periods < 64) periods 80 lib/flex_proportions.c events -= events >> periods; periods 83 lib/flex_proportions.c p->period += periods; periods 373 sound/aoa/soundbus/i2sbus/pcm.c nperiods = pi->substream->runtime->periods; periods 660 sound/aoa/soundbus/i2sbus/pcm.c if (++i >= runtime->periods) { periods 505 sound/atmel/ac97c.c if (chip->playback_period == runtime->periods) periods 508 sound/atmel/ac97c.c if (next_period == runtime->periods) periods 523 sound/atmel/ac97c.c if (chip->capture_period == runtime->periods) periods 526 sound/atmel/ac97c.c if (next_period == runtime->periods) periods 745 sound/core/oss/pcm_oss.c if (substream->oss.setup.periods > 1) periods 746 sound/core/oss/pcm_oss.c oss_periods = substream->oss.setup.periods; periods 767 sound/core/oss/pcm_oss.c runtime->oss.periods = oss_periods; periods 938 sound/core/oss/pcm_oss.c runtime->oss.periods, NULL); periods 1016 sound/core/oss/pcm_oss.c runtime->oss.periods = params_periods(sparams); periods 1031 sound/core/oss/pcm_oss.c oss_buffer_size = oss_period_size * runtime->oss.periods; periods 2236 sound/core/oss/pcm_oss.c info.fragstotal = runtime->periods; periods 2239 sound/core/oss/pcm_oss.c info.bytes = runtime->oss.period_bytes * runtime->oss.periods; periods 2240 sound/core/oss/pcm_oss.c info.fragments = runtime->oss.periods; periods 2919 sound/core/oss/pcm_oss.c setup->periods, periods 2970 sound/core/oss/pcm_oss.c template.periods = simple_strtoul(str, NULL, 10); periods 405 sound/core/pcm.c snd_iprintf(buffer, "OSS periods: %u\n", runtime->oss.periods); periods 686 sound/core/pcm_native.c runtime->periods = params_periods(params); periods 252 sound/drivers/pcsp/pcsp_lib.c substream->runtime->periods, periods 413 sound/hda/hdac_stream.c int i, ofs, periods, period_bytes; periods 421 sound/hda/hdac_stream.c periods = azx_dev->bufsize / period_bytes; periods 452 sound/hda/hdac_stream.c for (i = 0; i < periods; i++) { periods 453 sound/hda/hdac_stream.c if (i == periods - 1 && pos_adj) periods 235 sound/pci/atiixp.c unsigned int period_bytes, periods; periods 344 sound/pci/atiixp.c unsigned int periods, periods 351 sound/pci/atiixp.c if (periods > ATI_MAX_DESCRIPTORS) periods 360 sound/pci/atiixp.c dma->period_bytes = dma->periods = 0; /* clear */ periods 363 sound/pci/atiixp.c if (dma->periods == periods && dma->period_bytes == period_bytes) periods 376 sound/pci/atiixp.c for (i = 0; i < periods; i++) { periods 383 sound/pci/atiixp.c if (i == periods - 1) periods 394 sound/pci/atiixp.c dma->periods = periods; periods 211 sound/pci/atiixp_modem.c unsigned int period_bytes, periods; periods 313 sound/pci/atiixp_modem.c unsigned int periods, periods 320 sound/pci/atiixp_modem.c if (periods > ATI_MAX_DESCRIPTORS) periods 327 sound/pci/atiixp_modem.c dma->period_bytes = dma->periods = 0; /* clear */ periods 330 sound/pci/atiixp_modem.c if (dma->periods == periods && dma->period_bytes == period_bytes) periods 343 sound/pci/atiixp_modem.c for (i = 0; i < periods; i++) { periods 350 sound/pci/atiixp_modem.c if (i == periods - 1) periods 361 sound/pci/atiixp_modem.c dma->periods = periods; periods 214 sound/pci/bt87x.c unsigned int periods, unsigned int period_bytes) periods 228 sound/pci/bt87x.c for (i = 0; i < periods; ++i) { periods 241 sound/pci/bt87x.c u32 block = i * 16 / periods; periods 260 sound/pci/bt87x.c chip->lines = periods; periods 766 sound/pci/ca0106/ca0106_main.c runtime->period_size, runtime->periods, periods 824 sound/pci/ca0106/ca0106_main.c for(i=0; i < runtime->periods; i++) { periods 830 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, PLAYBACK_LIST_SIZE, channel, (runtime->periods - 1) << 19); periods 873 sound/pci/ca0106/ca0106_main.c runtime->period_size, runtime->periods, periods 969 sound/pci/cs46xx/cs46xx_lib.c if (substream->runtime->periods != CS46XX_FRAGS) periods 973 sound/pci/cs46xx/cs46xx_lib.c if (substream->runtime->periods != CS46XX_FRAGS) periods 1285 sound/pci/cs46xx/cs46xx_lib.c if (runtime->periods == CS46XX_FRAGS) { periods 80 sound/pci/cs5535audio/cs5535audio.h unsigned int period_bytes, periods; periods 108 sound/pci/cs5535audio/cs5535audio_pcm.c unsigned int periods, periods 115 sound/pci/cs5535audio/cs5535audio_pcm.c if (periods > CS5535AUDIO_MAX_DESCRIPTORS) periods 124 sound/pci/cs5535audio/cs5535audio_pcm.c dma->period_bytes = dma->periods = 0; periods 127 sound/pci/cs5535audio/cs5535audio_pcm.c if (dma->periods == periods && dma->period_bytes == period_bytes) periods 134 sound/pci/cs5535audio/cs5535audio_pcm.c for (i = 0; i < periods; i++) { periods 144 sound/pci/cs5535audio/cs5535audio_pcm.c lastdesc = &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[periods]; periods 149 sound/pci/cs5535audio/cs5535audio_pcm.c sizeof(struct cs5535audio_dma_desc) * periods; periods 153 sound/pci/cs5535audio/cs5535audio_pcm.c dma->periods = periods; periods 449 sound/pci/emu10k1/emu10k1x.c for(i = 0; i < runtime->periods; i++) { periods 455 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, PLAYBACK_LIST_SIZE, voice, (runtime->periods - 1) << 19); periods 485 sound/pci/emu10k1/emu10k1x.c if(runtime->periods == 2) periods 333 sound/pci/emu10k1/p16v.c runtime->periods, frames_to_bytes(runtime, 1)); periods 359 sound/pci/emu10k1/p16v.c for(i = 0; i < runtime->periods; i++) { periods 365 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, PLAYBACK_LIST_SIZE, channel, (runtime->periods - 1) << 19); periods 626 sound/pci/ice1712/ice1712.c snd_ice1712_ds_write(ice, chn, ICE1712_DSC_ADDR1, runtime->dma_addr + (runtime->periods > 1 ? period_size + 1 : 0)); periods 346 sound/pci/lola/lola_pcm.c int i, ofs, periods, period_bytes; periods 349 sound/pci/lola/lola_pcm.c periods = str->bufsize / period_bytes; periods 355 sound/pci/lola/lola_pcm.c for (i = 0; i < periods; i++) { periods 425 sound/pci/lx6464es/lx6464es.c const u32 periods = substream->runtime->periods; periods 434 sound/pci/lx6464es/lx6464es.c for (i = 0; i != periods; ++i) { periods 1028 sound/pci/lx6464es/lx_core.c const u32 next_pos = ((pos+1) == substream->runtime->periods) ? periods 486 sound/pci/mixart/mixart_core.c if (stream->buf_periods >= runtime->periods) periods 187 sound/pci/nm256/nm256.c int periods; /* # of periods */ periods 490 sound/pci/nm256/nm256.c s->cur_period %= s->periods; periods 633 sound/pci/nm256/nm256.c s->periods = substream->runtime->periods; periods 909 sound/pci/pcxhr/pcxhr.c subs->runtime->period_size, subs->runtime->periods, periods 1195 sound/pci/pcxhr/pcxhr_core.c if (stream->timer_buf_periods >= runtime->periods) periods 413 sound/pci/via82xx.c unsigned int periods, unsigned int fragsize) periods 438 sound/pci/via82xx.c for (i = 0; i < periods; i++) { periods 458 sound/pci/via82xx.c if (i == periods - 1) periods 477 sound/pci/via82xx.c dev->bufsize = periods * fragsize; periods 266 sound/pci/via82xx_modem.c unsigned int periods, unsigned int fragsize) periods 291 sound/pci/via82xx_modem.c for (i = 0; i < periods; i++) { periods 313 sound/pci/via82xx_modem.c if (i == periods - 1) periods 332 sound/pci/via82xx_modem.c dev->bufsize = periods * fragsize; periods 52 sound/soc/au1x/dbdma2.c unsigned long periods; /* number of SG segments in total */ periods 86 sound/soc/au1x/dbdma2.c if (cd->q_period >= cd->periods) { periods 100 sound/soc/au1x/dbdma2.c if (cd->q_period >= cd->periods) { periods 111 sound/soc/au1x/dbdma2.c if (++cd->curr_period >= cd->periods) { periods 124 sound/soc/au1x/dbdma2.c if (++cd->curr_period >= cd->periods) { periods 224 sound/soc/au1x/dbdma2.c pcd->periods = params_periods(params); periods 38 sound/soc/au1x/dma.c unsigned int periods; periods 51 sound/soc/au1x/dma.c stream->periods = 0; periods 65 sound/soc/au1x/dma.c unsigned int periods) periods 76 sound/soc/au1x/dma.c stream->periods == periods) periods 82 sound/soc/au1x/dma.c stream->periods = periods; periods 88 sound/soc/au1x/dma.c for (i = 0; i < periods; i++) { periods 91 sound/soc/au1x/dma.c if (i < periods - 1) { periods 35 sound/soc/fsl/imx-pcm-fiq.c int periods; periods 78 sound/soc/fsl/imx-pcm-fiq.c iprtd->periods = params_periods(params); periods 96 sound/soc/fsl/imx-pcm-fiq.c regs.ARM_r8 = (iprtd->period * iprtd->periods - 1) << 16; periods 98 sound/soc/fsl/imx-pcm-fiq.c regs.ARM_r9 = (iprtd->period * iprtd->periods - 1) << 16; periods 72 sound/soc/fsl/mpc5200_dma.c s->period_next = (s->period_next + 1) % s->runtime->periods; periods 86 sound/soc/fsl/mpc5200_dma.c s->period_current = (s->period_current+1) % s->runtime->periods; periods 128 sound/soc/fsl/mpc5200_dma.c (int)runtime->period_size, runtime->periods); periods 147 sound/soc/fsl/mpc5200_dma.c for (i = 0; i < runtime->periods; i++) periods 60 sound/soc/qcom/qdsp6/q6asm-dai.c unsigned int periods; periods 242 sound/soc/qcom/qdsp6/q6asm-dai.c (prtd->pcm_size / prtd->periods), periods 243 sound/soc/qcom/qdsp6/q6asm-dai.c prtd->periods); periods 285 sound/soc/qcom/qdsp6/q6asm-dai.c for (i = 0; i < runtime->periods; i++) periods 471 sound/soc/qcom/qdsp6/q6asm-dai.c prtd->periods = params_periods(params); periods 652 sound/soc/qcom/qdsp6/q6asm-dai.c prtd->periods = runtime->fragments; periods 677 sound/soc/qcom/qdsp6/q6asm-dai.c (prtd->pcm_size / prtd->periods), periods 678 sound/soc/qcom/qdsp6/q6asm-dai.c prtd->periods); periods 344 sound/soc/qcom/qdsp6/q6asm.c size_t period_sz, unsigned int periods, periods 360 sound/soc/qcom/qdsp6/q6asm.c buf_sz = period_sz * periods; periods 363 sound/soc/qcom/qdsp6/q6asm.c num_regions = periods; periods 424 sound/soc/qcom/qdsp6/q6asm.c size_t period_sz, unsigned int periods) periods 438 sound/soc/qcom/qdsp6/q6asm.c buf = kzalloc(((sizeof(struct audio_buffer)) * periods), GFP_ATOMIC); periods 450 sound/soc/qcom/qdsp6/q6asm.c for (cnt = 1; cnt < periods; cnt++) { periods 456 sound/soc/qcom/qdsp6/q6asm.c ac->port[dir].num_periods = periods; periods 460 sound/soc/qcom/qdsp6/q6asm.c rc = __q6asm_memory_map_regions(ac, dir, period_sz, periods, 1); periods 1042 sound/soc/sh/fsi.c if (io->period_pos >= runtime->periods) { periods 873 sound/soc/sh/rcar/ssi.c if (period_pos >= runtime->periods) { periods 85 sound/soc/sof/intel/hda-stream.c int i, offset, period_bytes, periods; periods 93 sound/soc/sof/intel/hda-stream.c periods = stream->bufsize / period_bytes; periods 95 sound/soc/sof/intel/hda-stream.c dev_dbg(sdev->dev, "periods:%d\n", periods); periods 99 sound/soc/sof/intel/hda-stream.c periods++; periods 113 sound/soc/sof/intel/hda-stream.c for (i = 0; i < periods; i++) { periods 114 sound/soc/sof/intel/hda-stream.c if (i == (periods - 1) && remain) periods 32 sound/soc/sprd/sprd-pcm-dma.h u32 periods; periods 439 sound/sparc/cs4231.c (*periods_sent) = ((*periods_sent) + 1) % runtime->periods; periods 374 sound/spi/at73c213.c if (chip->period == runtime->periods) periods 377 sound/spi/at73c213.c if (next_period == runtime->periods) periods 887 sound/x86/intel_hdmi_audio.c intelhaddata->pcmbuf_filled %= substream->runtime->periods; periods 905 sound/x86/intel_hdmi_audio.c num_periods = runtime->periods; periods 931 sound/x86/intel_hdmi_audio.c int num_periods = substream->runtime->periods; periods 1210 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "periods=%d\n", runtime->periods);