/linux-master/drivers/clocksource/ |
H A D | timer-keystone.c | 39 * @hz_period: cycles per HZ period 72 * @ period: cycles number to configure for 74 static int keystone_timer_config(u64 period, int mask) argument 90 /* reset counter to zero, set new period */ 93 keystone_timer_writel(period & 0xffffffff, PRD12); 94 keystone_timer_writel(period >> 32, PRD34);
|
H A D | timer-loongson1-pwm.c | 44 static inline void ls1x_pwmtimer_set_period(unsigned int period, argument 47 writel(period, timer_of_base(to) + PWM_LRC); 48 writel(period, timer_of_base(to) + PWM_HRC);
|
H A D | timer-stm32-lp.c | 26 unsigned long period; member in struct:stm32_lp_private 85 return stm32_clkevent_lp_set_timer(priv->period, clkevt, true); 92 return stm32_clkevent_lp_set_timer(priv->period, clkevt, false); 120 /* Adjust rate and period given the prescaler value */ 122 priv->period = DIV_ROUND_UP(*rate, HZ);
|
/linux-master/drivers/gpu/drm/radeon/ |
H A D | sumo_smc.c | 144 u32 period, unit, timer_value; local 150 period = 100 * (xclk / 100 / sumo_power_of_4(unit)); 152 timer_value = (period << 16) | (unit << 4);
|
/linux-master/arch/loongarch/kernel/ |
H A D | time.c | 63 unsigned long period; local 68 period = const_clock_freq / HZ; 69 timer_config = period & CSR_TCFG_VAL;
|
/linux-master/drivers/media/platform/st/sti/hva/ |
H A D | hva-debugfs.c | 96 " | |- avg encoding period (0.1ms)=%d [min=%d, max=%d]\n" 122 u32 period; local 130 /* encoding period */ 133 period = (u32)div; 134 dbg->min_period = min(period, dbg->min_period); 135 dbg->max_period = max(period, dbg->max_period); 136 dbg->total_period += period; 141 * encoding period values upon a window of 32 samples 143 dbg->window_duration += period;
|
/linux-master/drivers/net/ethernet/renesas/ |
H A D | ravb_ptp.c | 228 period_ns = req->period.sec * NSEC_PER_SEC + req->period.nsec; 238 "ptp: period value (nsec) is over limit. Maximum size of period is only 32 bits\n"); 246 perout->period = (u32)period_ns; 259 perout->period = 0; 316 if (perout->period) { 317 perout->target += perout->period;
|
/linux-master/drivers/pwm/ |
H A D | pwm-imx-tpm.c | 6 * - The TPM counter and period counter are shared between 7 * multiple channels, so all channels should use same period 10 * next period start. 11 * - Changing period and duty cycle together isn't atomic, 12 * with the wrong timing it might happen that a period is 13 * produced with old duty cycle but new period settings. 96 tmp = (u64)state->period * rate; 110 /* calculate real period HW can support */ 113 real_state->period = DIV_ROUND_CLOSEST_ULL(tmp, rate); 126 p->val = DIV64_U64_ROUND_CLOSEST(tmp, real_state->period); [all...] |
H A D | pwm-imx27.c | 127 u32 period, prescaler, pwm_clk, val; local 156 period = val >= MX3_PWMPR_MAX ? MX3_PWMPR_MAX : val; 159 tmp = NSEC_PER_SEC * (u64)(period + 2) * prescaler; 160 state->period = DIV_ROUND_UP_ULL(tmp, pwm_clk); 209 period_ms = DIV_ROUND_UP_ULL(pwm->state.period, 230 c = clkrate * state->period; 244 * according to imx pwm RM, the real period value should be PERIOD
|
/linux-master/kernel/irq/ |
H A D | timings.c | 45 * For every interrupt occurring in a short period of time, we can 52 * in a fastest way and use its period to predict the next irq event. 77 * search by a max period and min period. 81 * is repeating then we have the period because it is the length of 144 * period found for different devices. 172 * Max period of 5, we take the last (max_period * 3) 15 elements as 183 * 1) 8, 15, 8, 8, 8 <- max period 186 * 4) 8, 15 <- min period 198 * The first suffix with period 319 int period; local [all...] |
/linux-master/drivers/net/wireless/realtek/rtw89/ |
H A D | rtw8852a.h | 90 u16 period; member in struct:rtw8852a_bb_pmac_info 102 u16 tx_cnt, u16 period, u16 tx_time,
|
/linux-master/kernel/ |
H A D | watchdog_perf.c | 34 void watchdog_update_hrtimer_threshold(u64 period) argument 37 * The hrtimer runs with a period of (watchdog_threshold * 2) / 5 44 * smaller period than the one deduced from the nominal CPU 46 * enough to get the NMI period smaller than the hrtimer watchdog 47 * period and trigger false positives. 53 * Set this to 4/5 of the actual watchdog threshold period so the 57 watchdog_hrtimer_sample_threshold = period * 2;
|
/linux-master/drivers/hid/amd-sfh-hid/ |
H A D | amd_sfh_pcie.c | 62 cmd_base.cmd_v2.period = info.period; 80 cmd_base.cmd_v2.period = 0; 94 cmd_base.cmd_v2.period = 0; 152 cmd_base.s.period = info.period; 172 cmd_base.s.period = 0; 186 cmd_base.s.period = 0;
|
/linux-master/drivers/usb/host/ |
H A D | ehci-sched.c | 202 ps->phase, ps->phase_uf, ps->period, 361 unsigned period = ps->bw_period; local 364 if ((period == 0) || (uframe >= 7)) /* error */ 367 for (frame &= period - 1; frame < EHCI_BANDWIDTH_FRAMES; 368 frame += period) { 415 unsigned period, 421 if (period == 0) /* error */ 428 for (; frame < ehci->periodic_size; frame += period) { 524 unsigned period = qh->ps.period; local 413 tt_no_collision( struct ehci_hcd *ehci, unsigned period, struct usb_device *dev, unsigned frame, u32 uf_mask ) argument 591 unsigned period; local 1477 u32 now, base, next, start, period, span, now2; local [all...] |
/linux-master/net/bridge/ |
H A D | br_cfm.c | 278 /* Transmission period has ended */ 279 mep->cc_ccm_tx_info.period = 0; 779 if (mep->cc_ccm_tx_info.period == 0) 785 usecs_to_jiffies(tx_info->period * 1000000); 789 if (tx_info->period == 0 && mep->cc_ccm_tx_info.period == 0) 793 if (tx_info->period != 0 && mep->cc_ccm_tx_info.period != 0) { 798 usecs_to_jiffies(tx_info->period * 1000000); 803 if (tx_info->period [all...] |
/linux-master/drivers/scsi/aic7xxx/ |
H A D | aic7xxx_osm.c | 336 "period-delimited options string:\n" 1618 if (tinfo->curr.period != tinfo->goal.period 1641 if (tinfo->curr.period == spi_period(starget) 1648 spi_period(starget) = tinfo->curr.period; 2338 static void ahc_linux_set_period(struct scsi_target *starget, int period) argument 2356 if (period < 9) 2357 period = 9; /* 12.5ns is our minimum */ 2358 if (period == 9) { 2363 period 2394 unsigned int period = 0; local 2424 unsigned int period = tinfo->goal.period; local [all...] |
H A D | aic79xx_proc.c | 58 u_int period; /* in 100ths of ns */ member in struct:__anon460 69 * sync period factor. 76 /* See if the period is in the "exception" table */ 81 return (100000000 / scsi_syncrates[i].period); 99 if (tinfo->period == AHD_PERIOD_UNKNOWN) { 106 freq = ahd_calc_syncsrate(tinfo->period);
|
/linux-master/sound/usb/line6/ |
H A D | pcm.h | 101 * This is modulo period size (to determine when a period is finished). 108 /* period size in bytes */ 109 unsigned period; member in struct:line6_pcm_stream
|
/linux-master/drivers/input/ |
H A D | input-compat.h | 27 __u16 period; member in struct:ff_periodic_effect_compat
|
/linux-master/sound/soc/fsl/ |
H A D | imx-pcm-fiq.c | 34 unsigned int period; member in struct:imx_pcm_runtime_data 80 iprtd->period = params_period_bytes(params); 97 regs.ARM_r8 = (iprtd->period * iprtd->periods - 1) << 16; 99 regs.ARM_r9 = (iprtd->period * iprtd->periods - 1) << 16;
|
/linux-master/sound/ppc/ |
H A D | beep.c | 94 int period, ncycles, nsamples; local 139 period = srate * 256 / hz; /* fixed point */ 140 ncycles = BEEP_BUFLEN * 256 / period; 141 nsamples = (period * ncycles) >> 8;
|
/linux-master/drivers/net/wireless/silabs/wfx/ |
H A D | hif_tx_mib.h | 39 int wfx_hif_keep_alive_period(struct wfx_vif *wvif, int period);
|
/linux-master/drivers/iio/imu/inv_icm42600/ |
H A D | inv_icm42600_buffer.h | 22 * @period: FIFO internal period. 31 uint32_t period; member in struct:inv_icm42600_fifo
|
/linux-master/arch/x86/kvm/ |
H A D | i8254.h | 30 s64 period; /* unit: ns */ member in struct:kvm_kpit_state
|
/linux-master/arch/arm/mach-spear/ |
H A D | time.c | 125 u32 period; local 131 period = clk_get_rate(gpt_clk) / HZ; 132 period >>= CTRL_PRESCALER16; 133 writew(period, gpt_base + LOAD(CLKEVT));
|