/kernel/linux/linux-5.10/kernel/sched/ |
H A D | pelt.c | 61 static u32 __accumulate_pelt_segments(u64 periods, u32 d1, u32 d3) in __accumulate_pelt_segments() argument 68 c1 = decay_load((u64)d1, periods); in __accumulate_pelt_segments() 79 c2 = LOAD_AVG_MAX - decay_load(LOAD_AVG_MAX, periods) - 1024; in __accumulate_pelt_segments() 86 * of the last (incomplete) period, d2 the span of full periods and d3 110 u64 periods; in accumulate_sum() local 113 periods = delta / 1024; /* A period is 1024us (~1ms) */ in accumulate_sum() 118 if (periods) { in accumulate_sum() 119 sa->load_sum = decay_load(sa->load_sum, periods); in accumulate_sum() 121 decay_load(sa->runnable_sum, periods); in accumulate_sum() 122 sa->util_sum = decay_load((u64)(sa->util_sum), periods); in accumulate_sum() [all...] |
/kernel/linux/linux-6.6/kernel/sched/ |
H A D | pelt.c | 57 static u32 __accumulate_pelt_segments(u64 periods, u32 d1, u32 d3) in __accumulate_pelt_segments() argument 64 c1 = decay_load((u64)d1, periods); in __accumulate_pelt_segments() 75 c2 = LOAD_AVG_MAX - decay_load(LOAD_AVG_MAX, periods) - 1024; in __accumulate_pelt_segments() 82 * of the last (incomplete) period, d2 the span of full periods and d3 106 u64 periods; in accumulate_sum() local 109 periods = delta / 1024; /* A period is 1024us (~1ms) */ in accumulate_sum() 114 if (periods) { in accumulate_sum() 115 sa->load_sum = decay_load(sa->load_sum, periods); in accumulate_sum() 117 decay_load(sa->runnable_sum, periods); in accumulate_sum() 118 sa->util_sum = decay_load((u64)(sa->util_sum), periods); in accumulate_sum() [all...] |
/kernel/linux/linux-5.10/sound/soc/au1x/ |
H A D | dma.c | 38 unsigned int periods; member 51 stream->periods = 0; in au1000_release_dma_link() 65 unsigned int periods) in au1000_setup_dma_link() 76 stream->periods == periods) in au1000_setup_dma_link() 82 stream->periods = periods; in au1000_setup_dma_link() 88 for (i = 0; i < periods; i++) { in au1000_setup_dma_link() 91 if (i < periods - 1) { in au1000_setup_dma_link() 63 au1000_setup_dma_link(struct audio_stream *stream, unsigned int period_bytes, unsigned int periods) au1000_setup_dma_link() argument
|
H A D | dbdma2.c | 52 unsigned long periods; /* number of SG segments in total */ member 86 if (cd->q_period >= cd->periods) { in au1x_pcm_queue_tx() 100 if (cd->q_period >= cd->periods) { in au1x_pcm_queue_rx() 111 if (++cd->curr_period >= cd->periods) { in au1x_pcm_dmatx_cb() 124 if (++cd->curr_period >= cd->periods) { in au1x_pcm_dmarx_cb() 220 pcd->periods = params_periods(params); in au1xpsc_pcm_hw_params()
|
/kernel/linux/linux-6.6/sound/soc/au1x/ |
H A D | dma.c | 38 unsigned int periods; member 51 stream->periods = 0; in au1000_release_dma_link() 65 unsigned int periods) in au1000_setup_dma_link() 76 stream->periods == periods) in au1000_setup_dma_link() 82 stream->periods = periods; in au1000_setup_dma_link() 88 for (i = 0; i < periods; i++) { in au1000_setup_dma_link() 91 if (i < periods - 1) { in au1000_setup_dma_link() 63 au1000_setup_dma_link(struct audio_stream *stream, unsigned int period_bytes, unsigned int periods) au1000_setup_dma_link() argument
|
H A D | dbdma2.c | 52 unsigned long periods; /* number of SG segments in total */ member 86 if (cd->q_period >= cd->periods) { in au1x_pcm_queue_tx() 100 if (cd->q_period >= cd->periods) { in au1x_pcm_queue_rx() 111 if (++cd->curr_period >= cd->periods) { in au1x_pcm_dmatx_cb() 124 if (++cd->curr_period >= cd->periods) { in au1x_pcm_dmarx_cb() 220 pcd->periods = params_periods(params); in au1xpsc_pcm_hw_params()
|
/kernel/linux/linux-5.10/sound/pci/cs5535audio/ |
H A D | cs5535audio_pcm.c | 108 unsigned int periods, in cs5535audio_build_dma_packets() 115 if (periods > CS5535AUDIO_MAX_DESCRIPTORS) in cs5535audio_build_dma_packets() 124 dma->period_bytes = dma->periods = 0; in cs5535audio_build_dma_packets() 127 if (dma->periods == periods && dma->period_bytes == period_bytes) in cs5535audio_build_dma_packets() 134 for (i = 0; i < periods; i++) { in cs5535audio_build_dma_packets() 144 lastdesc = &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[periods]; in cs5535audio_build_dma_packets() 149 sizeof(struct cs5535audio_dma_desc) * periods; in cs5535audio_build_dma_packets() 153 dma->periods = periods; in cs5535audio_build_dma_packets() 105 cs5535audio_build_dma_packets(struct cs5535audio *cs5535au, struct cs5535audio_dma *dma, struct snd_pcm_substream *substream, unsigned int periods, unsigned int period_bytes) cs5535audio_build_dma_packets() argument [all...] |
/kernel/linux/linux-6.6/sound/pci/cs5535audio/ |
H A D | cs5535audio_pcm.c | 109 unsigned int periods, in cs5535audio_build_dma_packets() 116 if (periods > CS5535AUDIO_MAX_DESCRIPTORS) in cs5535audio_build_dma_packets() 125 dma->period_bytes = dma->periods = 0; in cs5535audio_build_dma_packets() 128 if (dma->periods == periods && dma->period_bytes == period_bytes) in cs5535audio_build_dma_packets() 134 for (i = 0; i < periods; i++) { in cs5535audio_build_dma_packets() 143 lastdesc = &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[periods]; in cs5535audio_build_dma_packets() 148 sizeof(struct cs5535audio_dma_desc) * periods; in cs5535audio_build_dma_packets() 152 dma->periods = periods; in cs5535audio_build_dma_packets() 106 cs5535audio_build_dma_packets(struct cs5535audio *cs5535au, struct cs5535audio_dma *dma, struct snd_pcm_substream *substream, unsigned int periods, unsigned int period_bytes) cs5535audio_build_dma_packets() argument [all...] |
/kernel/linux/linux-6.6/sound/virtio/ |
H A D | virtio_pcm_msg.c | 123 * @periods: Current number of periods. 126 * The function slices the buffer into @periods parts (each with the size of 127 * @period_bytes), and creates @periods corresponding I/O messages. 133 unsigned int periods, unsigned int period_bytes) in virtsnd_pcm_msg_alloc() 138 vss->msgs = kcalloc(periods, sizeof(*vss->msgs), GFP_KERNEL); in virtsnd_pcm_msg_alloc() 142 vss->nmsgs = periods; in virtsnd_pcm_msg_alloc() 144 for (i = 0; i < periods; ++i) { in virtsnd_pcm_msg_alloc() 211 i = (vss->msg_last_enqueued + 1) % runtime->periods; in virtsnd_pcm_msg_send() 212 n = runtime->periods in virtsnd_pcm_msg_send() 132 virtsnd_pcm_msg_alloc(struct virtio_pcm_substream *vss, unsigned int periods, unsigned int period_bytes) virtsnd_pcm_msg_alloc() argument [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | flex_proportions.c | 43 /* Use 1 to avoid dealing with periods with 0 events... */ in fprop_global_init() 57 * Declare @periods new periods. It is upto the caller to make sure period 62 * further periods has any effect. 64 bool fprop_new_period(struct fprop_global *p, int periods) in fprop_new_period() argument 79 if (periods < 64) in fprop_new_period() 80 events -= events >> periods; in fprop_new_period() 83 p->period += periods; in fprop_new_period()
|
/kernel/linux/linux-5.10/drivers/media/rc/ |
H A D | ir-spi.c | 45 unsigned int periods; in ir_spi_tx() local 49 periods = DIV_ROUND_CLOSEST(buffer[i] * idata->freq, 1000000); in ir_spi_tx() 51 if (len + periods >= IR_SPI_MAX_BUFSIZE) in ir_spi_tx() 60 for (j = 0; j < periods; j++) in ir_spi_tx()
|
H A D | iguanair.c | 330 unsigned int i, size, p, periods; in iguanair_tx() local 333 /* convert from us to carrier periods */ in iguanair_tx() 335 periods = DIV_ROUND_CLOSEST(txbuf[i] * ir->carrier, 1000000); in iguanair_tx() 336 while (periods) { in iguanair_tx() 337 p = min(periods, 127u); in iguanair_tx() 343 periods -= p; in iguanair_tx()
|
/kernel/linux/linux-6.6/drivers/media/rc/ |
H A D | ir-spi.c | 45 unsigned int periods; in ir_spi_tx() local 49 periods = DIV_ROUND_CLOSEST(buffer[i] * idata->freq, 1000000); in ir_spi_tx() 51 if (len + periods >= IR_SPI_MAX_BUFSIZE) in ir_spi_tx() 60 for (j = 0; j < periods; j++) in ir_spi_tx()
|
H A D | iguanair.c | 324 unsigned int i, size, p, periods; in iguanair_tx() local 327 /* convert from us to carrier periods */ in iguanair_tx() 329 periods = DIV_ROUND_CLOSEST(txbuf[i] * ir->carrier, 1000000); in iguanair_tx() 330 while (periods) { in iguanair_tx() 331 p = min(periods, 127u); in iguanair_tx() 337 periods -= p; in iguanair_tx()
|
/kernel/linux/linux-5.10/include/sound/ |
H A D | pcm_oss.h | 19 unsigned int periods; member 38 unsigned int periods; member
|
/kernel/linux/linux-6.6/include/sound/ |
H A D | pcm_oss.h | 19 unsigned int periods; member 38 unsigned int periods; member
|
/kernel/linux/linux-6.6/lib/ |
H A D | flex_proportions.c | 43 /* Use 1 to avoid dealing with periods with 0 events... */ in fprop_global_init() 57 * Declare @periods new periods. It is upto the caller to make sure period 62 * further periods has any effect. 64 bool fprop_new_period(struct fprop_global *p, int periods) in fprop_new_period() argument 75 if (periods < 64) in fprop_new_period() 76 events -= events >> periods; in fprop_new_period() 79 p->period += periods; in fprop_new_period()
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
H A D | wdat_wdt.c | 279 unsigned int periods; in wdat_wdt_set_timeout() local 282 periods = timeout * 1000 / wdat->period; in wdat_wdt_set_timeout() 283 ret = wdat_wdt_run_action(wdat, ACPI_WDAT_SET_COUNTDOWN, periods, NULL); in wdat_wdt_set_timeout() 292 u32 periods = 0; in wdat_wdt_get_timeleft() local 294 wdat_wdt_run_action(wdat, ACPI_WDAT_GET_CURRENT_COUNTDOWN, 0, &periods); in wdat_wdt_get_timeleft() 295 return periods * wdat->period / 1000; in wdat_wdt_get_timeleft()
|
/kernel/linux/linux-6.6/drivers/watchdog/ |
H A D | wdat_wdt.c | 279 unsigned int periods; in wdat_wdt_set_timeout() local 282 periods = timeout * 1000 / wdat->period; in wdat_wdt_set_timeout() 283 ret = wdat_wdt_run_action(wdat, ACPI_WDAT_SET_COUNTDOWN, periods, NULL); in wdat_wdt_set_timeout() 292 u32 periods = 0; in wdat_wdt_get_timeleft() local 294 wdat_wdt_run_action(wdat, ACPI_WDAT_GET_CURRENT_COUNTDOWN, 0, &periods); in wdat_wdt_get_timeleft() 295 return periods * wdat->period / 1000; in wdat_wdt_get_timeleft()
|
/kernel/linux/linux-5.10/sound/soc/fsl/ |
H A D | imx-pcm-fiq.c | 35 int periods; member 79 iprtd->periods = params_periods(params); in snd_imx_pcm_hw_params() 98 regs.ARM_r8 = (iprtd->period * iprtd->periods - 1) << 16; in snd_imx_pcm_prepare() 100 regs.ARM_r9 = (iprtd->period * iprtd->periods - 1) << 16; in snd_imx_pcm_prepare()
|
/kernel/linux/linux-6.6/sound/soc/fsl/ |
H A D | imx-pcm-fiq.c | 35 int periods; member 79 iprtd->periods = params_periods(params); in snd_imx_pcm_hw_params() 97 regs.ARM_r8 = (iprtd->period * iprtd->periods - 1) << 16; in snd_imx_pcm_prepare() 99 regs.ARM_r9 = (iprtd->period * iprtd->periods - 1) << 16; in snd_imx_pcm_prepare()
|
/kernel/linux/linux-5.10/arch/loongarch/kvm/ |
H A D | timer.c | 31 s64 now_ns, periods; in ktime_to_tick() local 39 periods = div64_s64(now_ns, vcpu->arch.timer_period); in ktime_to_tick() 40 vcpu->arch.timer_dyn_bias = -periods * vcpu->arch.timer_period; in ktime_to_tick()
|
/kernel/linux/linux-6.6/sound/soc/qcom/qdsp6/ |
H A D | q6apm-dai.c | 68 unsigned int periods; member 267 (prtd->pcm_size / prtd->periods), prtd->periods); in q6apm_dai_prepare() 289 for (i = 0; i < runtime->periods; i++) in q6apm_dai_prepare() 454 prtd->periods = params_periods(params); in q6apm_dai_hw_params() 653 prtd->periods = runtime->fragments; in q6apm_dai_compr_set_params() 683 prtd->phys, (prtd->pcm_size / prtd->periods), in q6apm_dai_compr_set_params() 684 prtd->periods); in q6apm_dai_compr_set_params()
|
/kernel/linux/linux-5.10/sound/pci/ |
H A D | atiixp.c | 235 unsigned int period_bytes, periods; member 344 unsigned int periods, in atiixp_build_dma_packets() 351 if (periods > ATI_MAX_DESCRIPTORS) in atiixp_build_dma_packets() 360 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets() 363 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets() 376 for (i = 0; i < periods; i++) { in atiixp_build_dma_packets() 383 if (i == periods - 1) in atiixp_build_dma_packets() 394 dma->periods = periods; in atiixp_build_dma_packets() 342 atiixp_build_dma_packets(struct atiixp *chip, struct atiixp_dma *dma, struct snd_pcm_substream *substream, unsigned int periods, unsigned int period_bytes) atiixp_build_dma_packets() argument [all...] |
H A D | atiixp_modem.c | 211 unsigned int period_bytes, periods; member 313 unsigned int periods, in atiixp_build_dma_packets() 320 if (periods > ATI_MAX_DESCRIPTORS) in atiixp_build_dma_packets() 327 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets() 330 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets() 343 for (i = 0; i < periods; i++) { in atiixp_build_dma_packets() 350 if (i == periods - 1) in atiixp_build_dma_packets() 361 dma->periods = periods; in atiixp_build_dma_packets() 310 atiixp_build_dma_packets(struct atiixp_modem *chip, struct atiixp_dma *dma, struct snd_pcm_substream *substream, unsigned int periods, unsigned int period_bytes) atiixp_build_dma_packets() argument [all...] |