Home
last modified time | relevance | path

Searched refs:period (Results 1 – 200 of 445) sorted by relevance

123

/linux-4.1.27/lib/
Dflex_proportions.c41 p->period = 0; in fprop_global_init()
82 p->period += periods; in fprop_new_period()
96 pl->period = 0; in fprop_local_init_single()
108 unsigned int period = p->period; in fprop_reflect_period_single() local
112 if (pl->period == period) in fprop_reflect_period_single()
116 if (pl->period >= period) { in fprop_reflect_period_single()
121 if (period - pl->period < BITS_PER_LONG) in fprop_reflect_period_single()
122 pl->events >>= period - pl->period; in fprop_reflect_period_single()
125 pl->period = period; in fprop_reflect_period_single()
178 pl->period = 0; in fprop_local_init_percpu()
[all …]
Dproportions.c195 pl->period = 0; in prop_local_init_percpu()
214 unsigned long period = 1UL << (pg->shift - 1); in prop_norm_percpu() local
215 unsigned long period_mask = ~(period - 1); in prop_norm_percpu()
226 if (pl->period == global_period) in prop_norm_percpu()
230 prop_adjust_shift(&pl->shift, &pl->period, pg->shift); in prop_norm_percpu()
237 period = (global_period - pl->period) >> (pg->shift - 1); in prop_norm_percpu()
238 if (period < BITS_PER_LONG) { in prop_norm_percpu()
244 __percpu_counter_add(&pl->events, -val + (val >> period), in prop_norm_percpu()
249 pl->period = global_period; in prop_norm_percpu()
329 pl->period = 0; in prop_local_init_single()
[all …]
/linux-4.1.27/drivers/gpu/drm/tegra/
Dmipi-phy.c20 unsigned long period) in mipi_dphy_timing_get_default() argument
23 timing->clkpost = 70 + 52 * period; in mipi_dphy_timing_get_default()
33 timing->hsprepare = 65 + 5 * period; in mipi_dphy_timing_get_default()
34 timing->hszero = 145 + 5 * period; in mipi_dphy_timing_get_default()
35 timing->hssettle = 85 + 6 * period; in mipi_dphy_timing_get_default()
49 timing->hstrail = max(4 * 8 * period, 60 + 4 * 4 * period); in mipi_dphy_timing_get_default()
66 unsigned long period) in mipi_dphy_timing_validate() argument
71 if (timing->clkpost < (60 + 52 * period)) in mipi_dphy_timing_validate()
92 if (timing->dtermen > 35 + 4 * period) in mipi_dphy_timing_validate()
95 if (timing->eot > 105 + 12 * period) in mipi_dphy_timing_validate()
[all …]
Ddsi.c35 unsigned long period; member
366 unsigned long period, in tegra_dsi_set_phy_timing() argument
371 value = DSI_TIMING_FIELD(timing->hsexit, period, 1) << 24 | in tegra_dsi_set_phy_timing()
372 DSI_TIMING_FIELD(timing->hstrail, period, 0) << 16 | in tegra_dsi_set_phy_timing()
373 DSI_TIMING_FIELD(timing->hszero, period, 3) << 8 | in tegra_dsi_set_phy_timing()
374 DSI_TIMING_FIELD(timing->hsprepare, period, 1); in tegra_dsi_set_phy_timing()
377 value = DSI_TIMING_FIELD(timing->clktrail, period, 1) << 24 | in tegra_dsi_set_phy_timing()
378 DSI_TIMING_FIELD(timing->clkpost, period, 1) << 16 | in tegra_dsi_set_phy_timing()
379 DSI_TIMING_FIELD(timing->clkzero, period, 1) << 8 | in tegra_dsi_set_phy_timing()
380 DSI_TIMING_FIELD(timing->lpx, period, 1); in tegra_dsi_set_phy_timing()
[all …]
Dmipi-phy.h47 unsigned long period);
49 unsigned long period);
Ddsi.h87 #define DSI_TIMING_FIELD(value, period, hwinc) \ argument
88 ((DIV_ROUND_CLOSEST(value, period) - (hwinc)) & 0xff)
/linux-4.1.27/tools/perf/tests/
Dhists_output.c50 struct perf_sample sample = { .period = 100, }; in add_hist_entries()
167 !strcmp(SYM(he), "main") && he->stat.period == 200); in test1()
173 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
179 !strcmp(SYM(he), "main") && he->stat.period == 100); in test1()
185 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); in test1()
191 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
197 !strcmp(SYM(he), "schedule") && he->stat.period == 100); in test1()
203 !strcmp(SYM(he), "free") && he->stat.period == 100); in test1()
209 !strcmp(SYM(he), "malloc") && he->stat.period == 100); in test1()
215 !strcmp(SYM(he), "cmd_record") && he->stat.period == 100); in test1()
[all …]
Dhists_common.c175 he->ms.sym->name, he->stat.period); in print_hists_in()
202 he->ms.sym->name, he->stat.period, in print_hists_out()
203 he->stat_acc ? he->stat_acc->period : 0); in print_hists_out()
Dhists_cumulate.c80 struct perf_sample sample = { .period = 1000, }; in add_hist_entries()
207 TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self && in do_test()
213 TEST_ASSERT_VAL(buf, he->stat_acc->period == expected[i].children); in do_test()
Dsw-clock.c98 total_periods += sample.period; in __test__sw_clock_freq()
Dsample-parsing.c58 COMP(period); in samples_same()
180 .period = 108, in do_test()
/linux-4.1.27/drivers/char/hw_random/
Dtimeriomem-rng.c39 unsigned int period; member
77 delay = priv->period - (delay % priv->period); in timeriomem_rng_data_read()
103 int period; in timeriomem_rng_probe() local
133 period = i; in timeriomem_rng_probe()
139 period = pdata->period; in timeriomem_rng_probe()
142 priv->period = usecs_to_jiffies(period); in timeriomem_rng_probe()
143 if (priv->period < 1) { in timeriomem_rng_probe()
174 priv->io_base, period); in timeriomem_rng_probe()
/linux-4.1.27/drivers/watchdog/
Dbooke_wdt.c59 static unsigned long long period_to_sec(unsigned int period) in period_to_sec() argument
61 unsigned long long tmp = 1ULL << (64 - period); in period_to_sec()
80 unsigned int period; in sec_to_period() local
81 for (period = 63; period > 0; period--) { in sec_to_period()
82 if (period_to_sec(period) >= secs) in sec_to_period()
83 return period; in sec_to_period()
92 static unsigned long long period_to_sec(unsigned int period) in period_to_sec() argument
94 return period; in period_to_sec()
/linux-4.1.27/Documentation/scheduler/
Dsched-bwc.txt10 The bandwidth allowed for a group is specified using a quota and period. Within
11 each given "period" (microseconds), a group is allowed to consume only up to
13 group exceeds this limit (for that period), the tasks belonging to its
15 period.
18 above at each period boundary. As threads consume this bandwidth it is
24 Quota and period are managed within the cpu subsystem via cgroupfs.
26 cpu.cfs_quota_us: the total available run-time within a period (in microseconds)
27 cpu.cfs_period_us: the length of a period (in microseconds)
40 The minimum quota allowed for the quota or period is 1ms. There is also an
41 upper bound on the period length of 1s. Additional restrictions exist when
[all …]
Dsched-rt-group.txt27 system when the period is smaller than either the available hrtimer
53 in a given period. We allocate this "run time" for each realtime group which
61 frames a second, which yields a period of 0.04s per frame. Now say it will also
66 This way the graphics group will have a 0.04s period with a 0.032s run time
69 0.00015s. So this group can be scheduled with a period of 0.005s and a run time
90 The scheduling period that is equivalent to 100% CPU bandwidth
102 * A run time of -1 specifies runtime == period, ie. no limit.
115 period from /proc/sys/kernel/sched_rt_period_us and a run time of 0. If you
151 There is work in progress to make the scheduling period for each group
154 The constraint on the period is that a subgroup must have a smaller or
[all …]
Dsched-deadline.txt42 SCHED_DEADLINE uses three parameters, named "runtime", "period", and
44 "runtime" microseconds of execution time every "period" microseconds, and
46 from the beginning of the period. In order to implement this behaviour,
56 that each task runs for at most its runtime every period, avoiding any
67 "deadline", and "period" parameters;
77 scheduling deadline - current time period
107 scheduling deadline = scheduling deadline + period
137 A real-time task can be periodic with period P if r_{j+1} = r_j + P, or
141 WCET and its period (or minimum inter-arrival time), and represents
191 - period <= P
[all …]
/linux-4.1.27/drivers/usb/host/whci/
Dpzl.c28 static void update_pzl_pointers(struct whc *whc, int period, u64 addr) in update_pzl_pointers() argument
30 switch (period) { in update_pzl_pointers()
78 int period; in qset_insert_in_sw_list() local
80 period = qset_get_period(whc, qset); in qset_insert_in_sw_list()
83 list_move(&qset->list_node, &whc->periodic_list[period]); in qset_insert_in_sw_list()
210 int period; in update_pzl_hw_view() local
213 for (period = 0; period < 5; period++) { in update_pzl_hw_view()
214 list_for_each_entry_safe(qset, t, &whc->periodic_list[period], list_node) { in update_pzl_hw_view()
219 update_pzl_pointers(whc, period, tmp_qh); in update_pzl_hw_view()
236 int period; in scan_periodic_work() local
[all …]
Ddebug.c122 int period; in pzl_print() local
124 for (period = 0; period < 5; period++) { in pzl_print()
125 seq_printf(s, "Period %d\n", period); in pzl_print()
126 list_for_each_entry(qset, &whc->periodic_list[period], list_node) { in pzl_print()
/linux-4.1.27/arch/m68k/atari/
Datasound.c60 int period; in atari_mksound() local
75 period = PSG_FREQ / hz; in atari_mksound()
77 if (period > 0xfff) period = 0xfff; in atari_mksound()
81 sound_ym.wd_data = period & 0xff; in atari_mksound()
83 sound_ym.wd_data = (period >> 8) & 0xf; in atari_mksound()
/linux-4.1.27/drivers/input/misc/
Dpwm-beeper.c29 unsigned long period; member
36 unsigned long period = beeper->period; in __pwm_beeper_set() local
38 if (period) { in __pwm_beeper_set()
39 pwm_config(beeper->pwm, period / 2, period); in __pwm_beeper_set()
72 beeper->period = 0; in pwm_beeper_event()
74 beeper->period = HZ_TO_NANOSECONDS(value); in pwm_beeper_event()
85 if (beeper->period) in pwm_beeper_stop()
189 if (beeper->period) in pwm_beeper_resume()
Dmax77693-haptic.c69 int delta = (haptic->pwm_dev->period + haptic->pwm_duty) / 2; in max77693_haptic_set_duty_cycle()
72 error = pwm_config(haptic->pwm_dev, delta, haptic->pwm_dev->period); in max77693_haptic_set_duty_cycle()
208 period_mag_multi = (u64)haptic->pwm_dev->period * haptic->magnitude; in max77693_haptic_play_effect()
Dmax77843-haptic.c61 int delta = (haptic->pwm_dev->period + haptic->pwm_duty) / 2; in max77843_haptic_set_duty_cycle()
64 error = pwm_config(haptic->pwm_dev, delta, haptic->pwm_dev->period); in max77843_haptic_set_duty_cycle()
200 period_mag_multi = (u64)haptic->pwm_dev->period * haptic->magnitude; in max77843_haptic_play_effect()
/linux-4.1.27/arch/m68k/amiga/
Damisound.c82 unsigned long period = (clock_constant / hz); in amiga_mksound() local
84 if (period < amiga_audio_min_period) in amiga_mksound()
85 period = amiga_audio_min_period; in amiga_mksound()
86 if (period > MAX_PERIOD) in amiga_mksound()
87 period = MAX_PERIOD; in amiga_mksound()
92 custom.aud[2].audper = (unsigned short)period; in amiga_mksound()
/linux-4.1.27/drivers/pwm/
Dpwm-renesas-tpu.c85 u16 period; member
188 tpu_pwm_write(pwm, TPU_TGRBn, pwm->period); in tpu_pwm_timer_start()
191 pwm->channel, pwm->duty, pwm->period); in tpu_pwm_timer_start()
234 pwm->period = 0; in tpu_pwm_request()
261 u32 period; in tpu_pwm_config() local
272 period = clk_rate / prescalers[prescaler] in tpu_pwm_config()
274 if (period <= 0xffff) in tpu_pwm_config()
278 if (prescaler == ARRAY_SIZE(prescalers) || period == 0) { in tpu_pwm_config()
286 if (duty > period) in tpu_pwm_config()
294 clk_rate, prescalers[prescaler], period, duty); in tpu_pwm_config()
[all …]
Dpwm-jz4740.c113 unsigned long period, duty; in jz4740_pwm_config() local
120 period = tmp; in jz4740_pwm_config()
122 while (period > 0xffff && prescaler < 6) { in jz4740_pwm_config()
123 period >>= 2; in jz4740_pwm_config()
130 tmp = (unsigned long long)period * duty_ns; in jz4740_pwm_config()
132 duty = period - tmp; in jz4740_pwm_config()
134 if (duty >= period) in jz4740_pwm_config()
135 duty = period - 1; in jz4740_pwm_config()
143 jz4740_timer_set_period(pwm->hwpwm, period); in jz4740_pwm_config()
Dpwm-bfin.c69 unsigned long period, duty; in bfin_pwm_config() local
74 period = val; in bfin_pwm_config()
76 val = (unsigned long long)period * duty_ns; in bfin_pwm_config()
78 duty = period - val; in bfin_pwm_config()
80 if (duty >= period) in bfin_pwm_config()
81 duty = period - 1; in bfin_pwm_config()
85 set_gptimer_period(priv->pin, period); in bfin_pwm_config()
Dpwm-atmel-tcb.c37 unsigned period; /* PWM period expressed in clk cycles */ member
88 tcbpwm->period = 0; in atmel_tcb_pwm_request()
106 tcbpwm->period = __raw_readl(regs + ATMEL_TC_REG(group, RC)); in atmel_tcb_pwm_request()
238 if (tcbpwm->duty != tcbpwm->period && tcbpwm->duty > 0) { in atmel_tcb_pwm_enable()
261 __raw_writel(tcbpwm->period, regs + ATMEL_TC_REG(group, RC)); in atmel_tcb_pwm_enable()
281 unsigned period; in atmel_tcb_pwm_config() local
318 period = div_u64(period_ns, min); in atmel_tcb_pwm_config()
338 atcbpwm->duty != atcbpwm->period) && in atmel_tcb_pwm_config()
339 (atcbpwm->div != i || atcbpwm->period != period)) { in atmel_tcb_pwm_config()
345 tcbpwm->period = period; in atmel_tcb_pwm_config()
Dpwm-rockchip.c42 unsigned long period; member
105 unsigned long period, duty; in rockchip_pwm_config() local
118 period = div; in rockchip_pwm_config()
128 writel(period, pc->base + pc->data->regs.period); in rockchip_pwm_config()
191 .period = 0x08,
203 .period = 0x04,
215 .period = 0x04,
Dsysfs.c49 return sprintf(buf, "%u\n", pwm->period); in pwm_period_show()
90 ret = pwm_config(pwm, val, pwm->period); in pwm_duty_cycle_store()
160 static DEVICE_ATTR(period, 0644, pwm_period_show, pwm_period_store);
Dpwm-sti.c81 static int sti_pwm_get_prescale(struct sti_pwm_chip *pc, unsigned long period, in sti_pwm_get_prescale() argument
94 if (period % val) { in sti_pwm_get_prescale()
97 ps = period / val - 1; in sti_pwm_get_prescale()
Dpwm-fsl-ftm.c237 u32 period, duty; in fsl_pwm_config() local
255 period = fsl_pwm_calculate_period(fpc, period_ns); in fsl_pwm_config()
256 if (!period) { in fsl_pwm_config()
264 regmap_write(fpc->regmap, FTM_MOD, period - 1); in fsl_pwm_config()
Dpwm-samsung.c318 u32 period; in pwm_samsung_config() local
320 period = NSEC_PER_SEC / period_ns; in pwm_samsung_config()
323 duty_ns, period_ns, period); in pwm_samsung_config()
325 tin_rate = pwm_samsung_calc_tin(our_chip, pwm->hwpwm, period); in pwm_samsung_config()
/linux-4.1.27/drivers/scsi/
Dscsi_transport_spi.c423 static int period_to_str(char *buf, int period) in period_to_str() argument
427 if (period < 0 || period > 0xff) { in period_to_str()
429 } else if (period <= SPI_STATIC_PPR) { in period_to_str()
430 picosec = ppr_to_ps[period]; in period_to_str()
432 picosec = period * 4000; in period_to_str()
445 show_spi_transport_period_helper(char *buf, int period) in show_spi_transport_period_helper() argument
447 int len = period_to_str(buf, period); in show_spi_transport_period_helper()
457 int j, picosec, period = -1; in store_spi_transport_period_helper() local
475 period = j; in store_spi_transport_period_helper()
479 if (period == -1) in store_spi_transport_period_helper()
[all …]
Dnsp32.c388 unsigned char period, in nsp32_build_sdtr() argument
397 data->msgoutbuf[pos] = period; pos++; in nsp32_build_sdtr()
991 unsigned char period, offset; in nsp32_queuecommand_lck() local
994 nsp32_set_max_sync(data, target, &period, &offset); in nsp32_queuecommand_lck()
995 nsp32_build_sdtr(SCpnt, period, offset); in nsp32_queuecommand_lck()
1004 target->limit_entry, period, offset); in nsp32_queuecommand_lck()
1492 if (data->target[id].period == 0 && in nsp32_show_info()
1502 if (data->target[id].period != 0) { in nsp32_show_info()
1504 speed = 1000000 / (data->target[id].period * 4); in nsp32_show_info()
2342 target->period = get_period; in nsp32_analyze_sdtr()
[all …]
D53c700.c246 __u8 offset, __u8 period) in NCR_700_offset_period_to_sxfer() argument
258 if(period < hostdata->min_period) { in NCR_700_offset_period_to_sxfer()
259 …"53c700: Period %dns is less than this chip's minimum, setting to %d\n", period*4, NCR_700_MIN_PER… in NCR_700_offset_period_to_sxfer()
260 period = hostdata->min_period; in NCR_700_offset_period_to_sxfer()
262 XFERP = (period*4 * hostdata->sync_clock)/1000 - 4; in NCR_700_offset_period_to_sxfer()
796 __u8 period = hostdata->msgin[3]; in process_extended_message() local
799 if(offset == 0 || period == 0) { in process_extended_message()
801 period = 0; in process_extended_message()
805 spi_period(starget) = period; in process_extended_message()
1989 NCR_700_set_period(struct scsi_target *STp, int period) in NCR_700_set_period() argument
[all …]
Dnsp32.h544 #define TO_SYNCREG(period, offset) (((period) & 0x0f) << 4 | ((offset) & 0x0f)) argument
549 unsigned char period; /* sync period (0-255) */ member
Dwd33c93.c318 round_period(unsigned int period, const struct sx_period *sx_table) in round_period() argument
323 if ((period <= sx_table[x - 0].period_ns) && in round_period()
324 (period > sx_table[x - 1].period_ns)) { in round_period()
335 calc_sync_xfer(unsigned int period, unsigned int offset, unsigned int fast, in calc_sync_xfer() argument
345 period *= 2; in calc_sync_xfer()
349 period *= 4; /* convert SDTR code to ns */ in calc_sync_xfer()
350 result = sx_table[round_period(period,sx_table)].reg_value; in calc_sync_xfer()
360 calc_sync_msg(unsigned int period, unsigned int offset, unsigned int fast, in calc_sync_msg() argument
367 period /= 4; in calc_sync_msg()
369 period /= 2; in calc_sync_msg()
[all …]
Dncr53c8xx.c1224 /*0*/ u16 period; member
1234 /*2*/ u16 period; member
3747 u_long period; in ncr_prepare_setting() local
3814 period = (4 * div_10M[0] + np->clock_khz - 1) / np->clock_khz; in ncr_prepare_setting()
3815 if (period <= 250) np->minsync = 10; in ncr_prepare_setting()
3816 else if (period <= 303) np->minsync = 11; in ncr_prepare_setting()
3817 else if (period <= 500) np->minsync = 12; in ncr_prepare_setting()
3818 else np->minsync = (period + 40 - 1) / 40; in ncr_prepare_setting()
3831 period = (11 * div_10M[np->clock_divn - 1]) / (4 * np->clock_khz); in ncr_prepare_setting()
3832 np->maxsync = period > 2540 ? 254 : period / 10; in ncr_prepare_setting()
[all …]
/linux-4.1.27/drivers/leds/trigger/
Dledtrig-heartbeat.c28 unsigned int period; member
53 heartbeat_data->period = 300 + in led_heartbeat_function()
55 heartbeat_data->period = in led_heartbeat_function()
56 msecs_to_jiffies(heartbeat_data->period); in led_heartbeat_function()
62 delay = heartbeat_data->period / 4 - msecs_to_jiffies(70); in led_heartbeat_function()
71 delay = heartbeat_data->period - heartbeat_data->period / 4 - in led_heartbeat_function()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Dpower.c161 enum iwl_power_level lvl, int period) in iwl_static_sleep_cmd() argument
171 if (period <= IWL_DTIM_RANGE_1_MAX) in iwl_static_sleep_cmd()
173 if (period <= IWL_DTIM_RANGE_0_MAX) in iwl_static_sleep_cmd()
177 if (period <= IWL_DTIM_RANGE_1_MAX) in iwl_static_sleep_cmd()
179 if (period <= IWL_DTIM_RANGE_0_MAX) in iwl_static_sleep_cmd()
188 if (period == 0) { in iwl_static_sleep_cmd()
190 period = 1; in iwl_static_sleep_cmd()
205 cpu_to_le32(period * (skip + 1)); in iwl_static_sleep_cmd()
208 if (slp_itrvl > period) in iwl_static_sleep_cmd()
210 cpu_to_le32((slp_itrvl / period) * period); in iwl_static_sleep_cmd()
[all …]
/linux-4.1.27/drivers/md/
Dfaulty.c86 int period[Modes]; member
96 if (conf->period[mode] == 0 && in check_mode()
102 if (conf->period[mode]) in check_mode()
103 atomic_set(&conf->counters[mode], conf->period[mode]); in check_mode()
236 n, conf->period[WriteTransient]); in status()
240 n, conf->period[ReadTransient]); in status()
244 n, conf->period[WritePersistent]); in status()
248 n, conf->period[ReadPersistent]); in status()
253 n, conf->period[ReadFixable]); in status()
277 conf->period[i] = 0; in reshape()
[all …]
/linux-4.1.27/drivers/clk/
Dclk-pwm.c74 if (!pwm->period) { in clk_pwm_probe()
80 clk_pwm->fixed_rate = NSEC_PER_SEC / pwm->period; in clk_pwm_probe()
82 if (pwm->period != NSEC_PER_SEC / clk_pwm->fixed_rate && in clk_pwm_probe()
83 pwm->period != DIV_ROUND_UP(NSEC_PER_SEC, clk_pwm->fixed_rate)) { in clk_pwm_probe()
89 ret = pwm_config(pwm, (pwm->period + 1) >> 1, pwm->period); in clk_pwm_probe()
/linux-4.1.27/arch/microblaze/kernel/
Dheartbeat.c22 static unsigned int cnt, period, dist; in microblaze_heartbeat() local
30 if (++cnt > period) { in microblaze_heartbeat()
38 period = ((672 << FSHIFT) / (5 * avenrun[0] + in microblaze_heartbeat()
40 dist = period / 4; in microblaze_heartbeat()
/linux-4.1.27/arch/powerpc/platforms/52xx/
Dmpc52xx_gpt.c396 static int mpc52xx_gpt_do_start(struct mpc52xx_gpt_priv *gpt, u64 period, in mpc52xx_gpt_do_start() argument
416 clocks = period * (u64)gpt->ipb_freq; in mpc52xx_gpt_do_start()
466 int mpc52xx_gpt_start_timer(struct mpc52xx_gpt_priv *gpt, u64 period, in mpc52xx_gpt_start_timer() argument
469 return mpc52xx_gpt_do_start(gpt, period, continuous, 0); in mpc52xx_gpt_start_timer()
504 u64 period; in mpc52xx_gpt_timer_period() local
509 period = in_be32(&gpt->regs->count); in mpc52xx_gpt_timer_period()
512 prescale = period >> 16; in mpc52xx_gpt_timer_period()
513 period &= 0xffff; in mpc52xx_gpt_timer_period()
516 period = period * prescale * 1000000000ULL; in mpc52xx_gpt_timer_period()
517 do_div(period, (u64)gpt->ipb_freq); in mpc52xx_gpt_timer_period()
[all …]
/linux-4.1.27/arch/m68k/kernel/
Dtime.c52 static unsigned cnt = 0, period = 0, dist = 0; in timer_interrupt() local
59 if (++cnt > period) { in timer_interrupt()
65 period = ((672<<FSHIFT)/(5*avenrun[0]+(7<<FSHIFT))) + 30; in timer_interrupt()
66 dist = period / 4; in timer_interrupt()
/linux-4.1.27/Documentation/RCU/
Dtrace.txt47 Displays grace-period counters.
83 Note that although the grace-period number is an unsigned long,
91 period that it is aware of, otherwise, the CPU believes that it
95 for the current grace period. It is possible for "pq" to be
99 yet reported for this grace period, or (3) both.
125 periods, and so there is likely to be an extended period of time
136 grace-period processing that they are in (new, waiting for
137 grace period to start, waiting for grace period to end, ready
144 ready to be handled by the next grace period, and thus
145 will be handled by the grace period following the next
[all …]
Dstallwarn.txt12 This kernel configuration parameter defines the period of time
13 that RCU will wait from the beginning of a grace period until it
14 issues an RCU CPU stall warning. This time period is normally
63 task stalling the current RCU-tasks grace period.
92 Finally, if the grace period ends just as the stall warning starts
99 on how the stall warning and the grace-period initialization happen to
120 grace period. If the CPU was not yet aware of the current grace
121 period (for example, if it was offline), then this part of the message
135 last noted the beginning of a grace period, which might be the current
136 (stalled) grace period, or it might be some earlier grace period (for
[all …]
Drcu.txt7 A "grace period" must elapse between the two parts, and this grace period
11 a grace period to elapse, then free the element. See the listRCU.txt
27 o How can the updater tell when a grace period has completed
48 thing at a time, why should I wait for a grace period?
Drcubarrier.txt62 grace period to elapse, it does not wait for the callbacks to complete.
74 a grace period to elapse, rcu_barrier() waits for all outstanding RCU
78 without waiting for a grace period to elapse.
263 are delayed for a full grace period? Couldn't this result in
294 are delayed for a full grace period? Couldn't this result in
302 a grace period from completing on non-CONFIG_PREEMPT kernels,
304 state) before the grace period can complete. However, this is
Dtorture.txt37 period and that grace period ending on its own.
45 gp_normal Make the fake writers use normal synchronous grace-period
48 gp_exp Make the fake writers use expedited synchronous grace-period
135 same period of time. Defaults to "stutter=5", so as
283 incremented once per grace period subsequently -- and is freed
302 passes through a grace period. The last entry should be zero,
DUP.txt21 after a grace period.
43 RCU usage, since call_rcu() must wait for a grace period to elapse.
134 end of the grace period, which would come as a nasty shock to
/linux-4.1.27/drivers/mmc/core/
Dsdio_irq.c105 unsigned long period, idle_period; in sdio_irq_thread() local
117 period = (host->caps & MMC_CAP_SDIO_IRQ) ? in sdio_irq_thread()
121 mmc_hostname(host), period); in sdio_irq_thread()
162 period /= 2; in sdio_irq_thread()
164 period++; in sdio_irq_thread()
165 if (period > idle_period) in sdio_irq_thread()
166 period = idle_period; in sdio_irq_thread()
177 schedule_timeout(period); in sdio_irq_thread()
/linux-4.1.27/include/linux/
Dpwm.h90 unsigned int period; /* in nanoseconds */ member
95 static inline void pwm_set_period(struct pwm_device *pwm, unsigned int period) in pwm_set_period() argument
98 pwm->period = period; in pwm_set_period()
103 return pwm ? pwm->period : 0; in pwm_get_period()
277 unsigned int period; member
287 .period = _period, \
Dflex_proportions.h31 unsigned int period; member
47 unsigned int period; member
79 unsigned int period; member
Dproportions.h61 unsigned long period; member
112 unsigned long period; member
Dtimeriomem-rng.h15 unsigned int period; member
Drtc.h96 ktime_t period; member
203 ktime_t expires, ktime_t period);
Dperf_event.h665 u64 period; member
708 u64 addr, u64 period) in perf_sample_data_init() argument
714 data->period = period; in perf_sample_data_init()
/linux-4.1.27/tools/perf/util/
Dsort.h50 u64 period; member
137 u64 period = he->stat.period; in hist_entry__get_percent_limit() local
144 period = he->stat_acc->period; in hist_entry__get_percent_limit()
146 return period * 100.0 / total_period; in hist_entry__get_percent_limit()
Dcallchain.c476 u64 period) in add_child() argument
484 new->hit = period; in add_child()
509 u64 idx_parents, u64 idx_local, u64 period) in split_add_child() argument
541 parent->children_hit += period; in split_add_child()
544 new = add_child(parent, cursor, period); in split_add_child()
563 parent->hit = period; in split_add_child()
570 u64 period);
575 u64 period) in append_chain_children() argument
594 ret = append_chain(rnode, cursor, period); in append_chain_children()
604 rnode = add_child(root, cursor, period); in append_chain_children()
[all …]
Dhist.c179 unsigned int cpumode, u64 period) in he_stat__add_cpumode_period() argument
183 he_stat->period_sys += period; in he_stat__add_cpumode_period()
186 he_stat->period_us += period; in he_stat__add_cpumode_period()
189 he_stat->period_guest_sys += period; in he_stat__add_cpumode_period()
192 he_stat->period_guest_us += period; in he_stat__add_cpumode_period()
199 static void he_stat__add_period(struct he_stat *he_stat, u64 period, in he_stat__add_period() argument
203 he_stat->period += period; in he_stat__add_period()
210 dest->period += src->period; in he_stat__add_stat()
221 he_stat->period = (he_stat->period * 7) / 8; in he_stat__decay()
228 u64 prev_period = he->stat.period; in hists__decay_entry()
[all …]
/linux-4.1.27/drivers/leds/
Dleds-pwm.c32 unsigned int period; member
46 pwm_config(led_dat->pwm, new_duty, led_dat->period); in __led_pwm_set()
68 unsigned long long duty = led_dat->period; in led_pwm_set()
74 duty = led_dat->period - duty; in led_pwm_set()
128 led_data->period = pwm_get_period(led_data->pwm); in led_pwm_add()
129 if (!led_data->period && (led->pwm_period_ns > 0)) in led_pwm_add()
130 led_data->period = led->pwm_period_ns; in led_pwm_add()
Dleds-lp3944.c108 static int lp3944_dim_set_period(struct i2c_client *client, u8 dim, u16 period) in lp3944_dim_set_period() argument
122 if (period > LP3944_PERIOD_MAX) in lp3944_dim_set_period()
125 psc_value = (period * 255) / LP3944_PERIOD_MAX; in lp3944_dim_set_period()
232 u16 period; in lp3944_led_set_blink() local
249 period = (*delay_on) + (*delay_off); in lp3944_led_set_blink()
252 duty_cycle = 100 * (*delay_on) / period; in lp3944_led_set_blink()
267 err = lp3944_dim_set_period(led->client, LP3944_DIM0, period); in lp3944_led_set_blink()
Dleds-pca963x.c219 unsigned long time_on, time_off, period; in pca963x_blink_set() local
233 period = time_on + time_off; in pca963x_blink_set()
236 if ((period < PCA963X_BLINK_PERIOD_MIN) || in pca963x_blink_set()
237 (period > PCA963X_BLINK_PERIOD_MAX)) { in pca963x_blink_set()
240 period = time_on + time_off; in pca963x_blink_set()
248 gdc = (time_on * 256) / period; in pca963x_blink_set()
255 gfrq = (period * 24 / 1000) - 1; in pca963x_blink_set()
/linux-4.1.27/tools/perf/
Dbuiltin-diff.c220 static double period_percent(struct hist_entry *he, u64 period) in period_percent() argument
224 return (period * 100.0) / total; in period_percent()
229 double old_percent = period_percent(he, he->stat.period); in compute_delta()
230 double new_percent = period_percent(pair, pair->stat.period); in compute_delta()
239 double old_period = he->stat.period ?: 1; in compute_ratio()
240 double new_period = pair->stat.period; in compute_ratio()
249 u64 old_period = he->stat.period; in compute_wdiff()
250 u64 new_period = pair->stat.period; in compute_wdiff()
272 pair->stat.period, pair_total, in formula_delta()
273 he->stat.period, he_total); in formula_delta()
[all …]
Dperf.h54 bool period; member
/linux-4.1.27/Documentation/hwmon/
Dg760a18 The fan speed is programmed by setting the period via 'pwm1' of two
19 consecutive speed pulses. The period is defined in terms of clock
22 Setting a period of 0 stops the fan; setting the period to 255 sets
26 from the measured speed pulse period by assuming again a 32kHz clock
Dpowr122045 The ADC readings are updated on request with a minimum period of 1s.
/linux-4.1.27/drivers/scsi/aic7xxx/
Daic79xx_osm.c645 spi_min_period(starget) = tinfo->user.period; in ahd_linux_target_alloc()
1708 if (tinfo->curr.period != tinfo->goal.period in ahd_send_async()
1733 if (tinfo->curr.period == spi_period(starget) in ahd_send_async()
1740 spi_period(starget) = tinfo->curr.period; in ahd_send_async()
2402 static void ahd_linux_set_period(struct scsi_target *starget, int period) in ahd_linux_set_period() argument
2419 printk("%s: set period to %d\n", ahd_name(ahd), period); in ahd_linux_set_period()
2424 if (period < 8) in ahd_linux_set_period()
2425 period = 8; in ahd_linux_set_period()
2426 if (period < 10) { in ahd_linux_set_period()
2429 if (period == 8) in ahd_linux_set_period()
[all …]
Daic7xxx_osm.c1632 if (tinfo->curr.period != tinfo->goal.period in ahc_send_async()
1656 if (tinfo->curr.period == spi_period(starget) in ahc_send_async()
1663 spi_period(starget) = tinfo->curr.period; in ahc_send_async()
2352 static void ahc_linux_set_period(struct scsi_target *starget, int period) in ahc_linux_set_period() argument
2370 if (period < 9) in ahc_linux_set_period()
2371 period = 9; /* 12.5ns is our minimum */ in ahc_linux_set_period()
2372 if (period == 9) { in ahc_linux_set_period()
2377 period = 10; in ahc_linux_set_period()
2389 syncrate = ahc_find_syncrate(ahc, &period, &ppr_options, AHC_SYNCRATE_DT); in ahc_linux_set_period()
2391 ahc_set_syncrate(ahc, &devinfo, syncrate, period, offset, in ahc_linux_set_period()
[all …]
Daic79xx_proc.c58 u_int period; /* in 100ths of ns */ member
81 return (100000000 / scsi_syncrates[i].period); in ahd_calc_syncsrate()
99 if (tinfo->period == AHD_PERIOD_UNKNOWN) { in ahd_format_transinfo()
106 freq = ahd_calc_syncsrate(tinfo->period); in ahd_format_transinfo()
Daic7xxx_core.c153 u_int *period,
170 u_int period, u_int offset);
176 u_int period, u_int offset,
2218 u_int *period, u_int *ppr_options, role_t role) in ahc_devlimited_syncrate() argument
2256 if (transinfo->period == 0) { in ahc_devlimited_syncrate()
2257 *period = 0; in ahc_devlimited_syncrate()
2261 *period = max(*period, (u_int)transinfo->period); in ahc_devlimited_syncrate()
2262 return (ahc_find_syncrate(ahc, period, ppr_options, maxsync)); in ahc_devlimited_syncrate()
2271 ahc_find_syncrate(struct ahc_softc *ahc, u_int *period, in ahc_find_syncrate() argument
2305 if (*period <= syncrate->period) { in ahc_find_syncrate()
[all …]
Daic79xx_core.c125 u_int *period,
144 u_int period, u_int offset);
150 u_int period, u_int offset,
3699 u_int *period, u_int *ppr_options, role_t role) in ahd_devlimited_syncrate() argument
3731 if (transinfo->period == 0) { in ahd_devlimited_syncrate()
3732 *period = 0; in ahd_devlimited_syncrate()
3735 *period = max(*period, (u_int)transinfo->period); in ahd_devlimited_syncrate()
3736 ahd_find_syncrate(ahd, period, ppr_options, maxsync); in ahd_devlimited_syncrate()
3746 ahd_find_syncrate(struct ahd_softc *ahd, u_int *period, in ahd_find_syncrate() argument
3749 if (*period < maxsync) in ahd_find_syncrate()
[all …]
Daic7xxx_proc.c59 u_int period; /* in 100ths of ns */ member
82 return (100000000 / scsi_syncrates[i].period); in ahc_calc_syncsrate()
103 freq = ahc_calc_syncsrate(tinfo->period); in ahc_format_transinfo()
Daic7xxx.h695 uint8_t period; /* Sync rate factor */ member
738 uint8_t period; /* Period to send to SCSI target */ member
1205 const struct ahc_syncrate* ahc_find_syncrate(struct ahc_softc *ahc, u_int *period,
1229 u_int period, u_int offset,
/linux-4.1.27/arch/nios2/kernel/
Dtime.c128 static void nios2_timer_config(struct nios2_timer *timer, unsigned long period, in nios2_timer_config() argument
135 period--; in nios2_timer_config()
143 timer_writew(timer, period, ALTERA_TIMER_PERIODL_REG); in nios2_timer_config()
144 timer_writew(timer, period >> 16, ALTERA_TIMER_PERIODH_REG); in nios2_timer_config()
167 unsigned long period; in nios2_timer_set_mode() local
173 period = DIV_ROUND_UP(timer->freq, HZ); in nios2_timer_set_mode()
174 nios2_timer_config(timer, period, CLOCK_EVT_MODE_PERIODIC); in nios2_timer_set_mode()
/linux-4.1.27/drivers/staging/comedi/drivers/
Dni_at_a2150.c264 static int a2150_get_timing(struct comedi_device *dev, unsigned int *period, in a2150_get_timing() argument
282 if (*period < glb) in a2150_get_timing()
283 *period = glb; in a2150_get_timing()
284 if (*period > lub) in a2150_get_timing()
285 *period = lub; in a2150_get_timing()
294 if (temp < lub && temp >= *period) { in a2150_get_timing()
299 if (temp > glb && temp <= *period) { in a2150_get_timing()
310 if (lub - *period < *period - glb) in a2150_get_timing()
311 *period = lub; in a2150_get_timing()
313 *period = glb; in a2150_get_timing()
[all …]
Dcomedi_test.c378 int period = it->options[1]; in waveform_attach() local
389 if (period <= 0) in waveform_attach()
390 period = 100000; /* 0.1 sec */ in waveform_attach()
393 devpriv->usec_period = period; in waveform_attach()
/linux-4.1.27/tools/perf/Documentation/
Dperf-diff.txt93 --period::
94 Show period values for both compared hist entries.
177 - period_percent being the % of the hist entry period value within
188 r = A->period / B->period
194 - period being the hist entry period value
200 d = B->period * WEIGHT-A - A->period * WEIGHT-B
205 - period being the hist entry period value
Dperf-top.txt26 Event period to sample.
119 local_weight, abort, in_tx, transaction, overhead, sample, period.
125 overhead, overhead_sys, overhead_us, overhead_children, sample and period.
135 --show-total-period::
/linux-4.1.27/drivers/usb/host/
Dehci-sched.c214 ps->phase, ps->phase_uf, ps->period, in bandwidth_dbg()
386 unsigned period = ps->bw_period; in tt_available() local
389 if ((period == 0) || (uframe >= 7)) /* error */ in tt_available()
392 for (frame &= period - 1; frame < EHCI_BANDWIDTH_FRAMES; in tt_available()
393 frame += period) { in tt_available()
440 unsigned period, in tt_no_collision() argument
446 if (period == 0) /* error */ in tt_no_collision()
453 for (; frame < ehci->periodic_size; frame += period) { in tt_no_collision()
548 unsigned period = qh->ps.period; in qh_link_periodic() local
552 period, hc32_to_cpup(ehci, &qh->hw->hw_info2) in qh_link_periodic()
[all …]
Duhci-q.c611 static int uhci_highest_load(struct uhci_hcd *uhci, int phase, int period) in uhci_highest_load() argument
615 for (phase += period; phase < MAX_PHASE; phase += period) in uhci_highest_load()
631 minimax_load = uhci_highest_load(uhci, qh->phase, qh->period); in uhci_check_bandwidth()
634 int max_phase = min_t(int, MAX_PHASE, qh->period); in uhci_check_bandwidth()
637 minimax_load = uhci_highest_load(uhci, qh->phase, qh->period); in uhci_check_bandwidth()
639 load = uhci_highest_load(uhci, phase, qh->period); in uhci_check_bandwidth()
651 qh->period, qh->phase, minimax_load, qh->load); in uhci_check_bandwidth()
666 for (i = qh->phase; i < MAX_PHASE; i += qh->period) { in uhci_reserve_bandwidth()
687 qh->period, qh->phase, load); in uhci_reserve_bandwidth()
699 for (i = qh->phase; i < MAX_PHASE; i += qh->period) { in uhci_release_bandwidth()
[all …]
Dfotg210-hcd.c558 p.qh->period, in fill_periodic_buffer()
2887 qh->period = urb->interval >> 3; in qh_make()
2888 if (qh->period == 0 && urb->interval != 1) { in qh_make()
2894 } else if (qh->period > fotg210->periodic_size) { in qh_make()
2895 qh->period = fotg210->periodic_size; in qh_make()
2896 urb->interval = qh->period << 3; in qh_make()
2918 qh->period = urb->interval; in qh_make()
2919 if (qh->period > fotg210->periodic_size) { in qh_make()
2920 qh->period = fotg210->periodic_size; in qh_make()
2921 urb->interval = qh->period; in qh_make()
[all …]
Dfusbh200-hcd.c536 p.qh->period, in fill_periodic_buffer()
2834 qh->period = urb->interval >> 3; in qh_make()
2835 if (qh->period == 0 && urb->interval != 1) { in qh_make()
2841 } else if (qh->period > fusbh200->periodic_size) { in qh_make()
2842 qh->period = fusbh200->periodic_size; in qh_make()
2843 urb->interval = qh->period << 3; in qh_make()
2865 qh->period = urb->interval; in qh_make()
2866 if (qh->period > fusbh200->periodic_size) { in qh_make()
2867 qh->period = fusbh200->periodic_size; in qh_make()
2868 urb->interval = qh->period; in qh_make()
[all …]
Dsl811-hcd.c360 if (ep->period) in start()
368 if (ep->period) in start()
450 "deschedule qh%d/%p branch %d\n", ep->period, ep, ep->branch); in finish_request()
451 for (i = ep->branch; i < PERIODIC_SIZE; i += ep->period) { in finish_request()
464 -= ep->load / ep->period; in finish_request()
490 if (!ep->period) in done()
763 static int balance(struct sl811 *sl811, u16 period, u16 load) in balance() argument
770 for (i = 0; i < period ; i++) { in balance()
774 for (j = i; j < PERIODIC_SIZE; j += period) { in balance()
875 ep->period = urb->interval; in sl811h_urb_enqueue()
[all …]
Doxu210hp-hcd.c1399 qh->period = urb->interval >> 3; in qh_make()
1400 if (qh->period == 0 && urb->interval != 1) { in qh_make()
1430 qh->period = urb->interval; in qh_make()
1936 unsigned period = qh->period; in qh_link_periodic() local
1940 period, le32_to_cpup(&qh->hw_info2) & (QH_CMASK | QH_SMASK), in qh_link_periodic()
1944 if (period == 0) in qh_link_periodic()
1945 period = 1; in qh_link_periodic()
1947 for (i = qh->start; i < oxu->periodic_size; i += period) { in qh_link_periodic()
1967 if (qh->period > here.qh->period) in qh_link_periodic()
1987 oxu_to_hcd(oxu)->self.bandwidth_allocated += qh->period in qh_link_periodic()
[all …]
Disp116x-hcd.c322 DBG("deschedule qh%d/%p branch %d\n", ep->period, ep, ep->branch); in finish_request()
323 for (i = ep->branch; i < PERIODIC_SIZE; i += ep->period) { in finish_request()
335 ep->load / ep->period; in finish_request()
650 static int balance(struct isp116x *isp116x, u16 period, u16 load) in balance() argument
656 for (i = 0; i < period; i++) { in balance()
660 for (j = i; j < PERIODIC_SIZE; j += period) { in balance()
753 ep->period = urb->interval >> 1; in isp116x_urb_enqueue()
774 urb->interval = ep->period; in isp116x_urb_enqueue()
782 ep->branch = ret = balance(isp116x, ep->period, ep->load); in isp116x_urb_enqueue()
793 DBG("schedule qh%d/%p branch %d\n", ep->period, ep, ep->branch); in isp116x_urb_enqueue()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/misc/
Dbmp085.txt8 - temp-measurement-period: temperature measurement period (milliseconds)
20 temp-measurement-period = <100>;
/linux-4.1.27/drivers/oprofile/
Dnmi_timer_int.c128 u64 period; in nmi_timer_setup() local
131 period = (u64)cpu_khz * 1000; in nmi_timer_setup()
132 do_div(period, HZ); in nmi_timer_setup()
133 nmi_timer_attr.sample_period = period; in nmi_timer_setup()
/linux-4.1.27/arch/x86/kernel/cpu/
Dperf_event_amd_ibs.c76 s64 period = hwc->sample_period; in perf_event_set_period() local
82 if (unlikely(left <= -period)) { in perf_event_set_period()
83 left = period; in perf_event_set_period()
85 hwc->last_period = period; in perf_event_set_period()
90 left += period; in perf_event_set_period()
92 hwc->last_period = period; in perf_event_set_period()
291 struct hw_perf_event *hwc, u64 *period) in perf_ibs_set_period() argument
296 overflow = perf_event_set_period(hwc, 1<<4, perf_ibs->max_period, period); in perf_ibs_set_period()
370 u64 period; in perf_ibs_start() local
378 perf_ibs_set_period(perf_ibs, hwc, &period); in perf_ibs_start()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/sound/
Dti,tas5086.txt14 - ti,charge-period: This property should contain the time in microseconds
16 split-capacitor charge period. The hardware chip
17 waits for this period of time before starting the
44 ti,charge-period = <156000>;
/linux-4.1.27/drivers/video/backlight/
Dpwm_bl.c30 unsigned int period; member
69 pwm_config(pb->pwm, 0, pb->period); in pwm_backlight_power_off()
89 return (duty_cycle * (pb->period - lth) / pb->scale) + lth; in compute_duty_cycle()
108 pwm_config(pb->pwm, duty_cycle, pb->period); in pwm_backlight_update_status()
299 pb->period = pwm_get_period(pb->pwm); in pwm_backlight_probe()
300 if (!pb->period && (data->pwm_period_ns > 0)) { in pwm_backlight_probe()
301 pb->period = data->pwm_period_ns; in pwm_backlight_probe()
305 pb->lth_brightness = data->lth_brightness * (pb->period / pb->scale); in pwm_backlight_probe()
Dlp8788_bl.c127 unsigned int period; in lp8788_pwm_ctrl() local
135 period = bl->pdata->period_ns; in lp8788_pwm_ctrl()
136 duty = br * period / max_br; in lp8788_pwm_ctrl()
150 pwm_config(bl->pwm, duty, period); in lp8788_pwm_ctrl()
Dlm3630a_bl.c165 unsigned int period = pwm_get_period(pchip->pwmd); in lm3630a_pwm_ctrl() local
166 unsigned int duty = br * period / br_max; in lm3630a_pwm_ctrl()
168 pwm_config(pchip->pwmd, duty, period); in lm3630a_pwm_ctrl()
428 pchip->pwmd->period = pdata->pwm_period; in lm3630a_probe()
Dlp855x_bl.c237 unsigned int period = lp->pdata->period_ns; in lp855x_pwm_ctrl() local
238 unsigned int duty = br * period / max_br; in lp855x_pwm_ctrl()
250 pwm_config(lp->pwm, duty, period); in lp855x_pwm_ctrl()
/linux-4.1.27/kernel/time/
Dtimer_stats.c282 struct timespec period; in tstats_show() local
298 period = ktime_to_timespec(time); in tstats_show()
299 ms = period.tv_nsec / 1000000; in tstats_show()
302 seq_printf(m, "Sample period: %ld.%03ld s\n", period.tv_sec, ms); in tstats_show()
325 ms += period.tv_sec * 1000; in tstats_show()
329 if (events && period.tv_sec) in tstats_show()
Dtick-sched.c100 ktime_t period; in tick_init_jiffy_update() local
106 period = last_jiffies_update; in tick_init_jiffy_update()
108 return period; in tick_init_jiffy_update()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dthermal.c73 u32 period, duration, enabled; in ath10k_thermal_set_cur_dutycycle() local
99 period = max(ATH10K_QUIET_PERIOD_MIN, in ath10k_thermal_set_cur_dutycycle()
101 duration = (period * duty_cycle) / 100; in ath10k_thermal_set_cur_dutycycle()
104 ret = ath10k_wmi_pdev_set_quiet_mode(ar, period, duration, in ath10k_thermal_set_cur_dutycycle()
109 period, duration, enabled, ret); in ath10k_thermal_set_cur_dutycycle()
/linux-4.1.27/drivers/hwmon/
Dultra45_env.c101 int rpm, period; in show_fan_speed() local
105 period = (int) val << 8; in show_fan_speed()
106 if (FAN_DATA_VALID(period)) in show_fan_speed()
107 rpm = FAN_PERIOD_TO_RPM(period); in show_fan_speed()
120 int period; in set_fan_speed() local
131 period = FAN_RPM_TO_PERIOD(rpm); in set_fan_speed()
132 val = period >> 8; in set_fan_speed()
Dpwm-fan.c50 duty = DIV_ROUND_UP(pwm * (ctx->pwm->period - 1), MAX_PWM); in __set_pwm()
51 ret = pwm_config(ctx->pwm, duty, ctx->pwm->period); in __set_pwm()
237 duty_cycle = ctx->pwm->period - 1; in pwm_fan_probe()
240 ret = pwm_config(ctx->pwm, duty_cycle, ctx->pwm->period); in pwm_fan_probe()
312 duty = DIV_ROUND_UP(ctx->pwm_value * (ctx->pwm->period - 1), MAX_PWM); in pwm_fan_resume()
313 ret = pwm_config(ctx->pwm, duty, ctx->pwm->period); in pwm_fan_resume()
/linux-4.1.27/drivers/misc/
Dioc4.c148 uint64_t start, end, period; in ioc4_clock_calibrate() local
195 period = (end - start) / in ioc4_clock_calibrate()
199 if (period > IOC4_CALIBRATE_LOW_LIMIT || in ioc4_clock_calibrate()
200 period < IOC4_CALIBRATE_HIGH_LIMIT) { in ioc4_clock_calibrate()
206 period = IOC4_CALIBRATE_DEFAULT; in ioc4_clock_calibrate()
208 u64 ns = period; in ioc4_clock_calibrate()
221 idd->count_period = period; in ioc4_clock_calibrate()
/linux-4.1.27/Documentation/timers/
Dtimer_stats.txt18 Linux system over a sample period:
33 To activate a sample period issue:
36 To stop a sample period issue:
44 is kept until a new sample period is started. This allows multiple readouts.
48 Timerstats sample period: 3.888770 s
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_ptp.c325 struct ptp_clock_time *t = &rq->perout.period; in fm10k_ptp_enable()
328 u64 period; in fm10k_ptp_enable() local
356 period = t->sec * 1000000000LL + t->nsec; in fm10k_ptp_enable()
363 if ((period && (period < step)) || (period > U32_MAX)) in fm10k_ptp_enable()
368 (u32)period); in fm10k_ptp_enable()
/linux-4.1.27/sound/arm/
Dpxa2xx-pcm-lib.c45 size_t period = params_period_bytes(params); in __pxa2xx_pcm_hw_params() local
94 if (period > totsize) in __pxa2xx_pcm_hw_params()
95 period = totsize; in __pxa2xx_pcm_hw_params()
96 dma_desc->dcmd = dcmd | period | DCMD_ENDIRQEN; in __pxa2xx_pcm_hw_params()
98 dma_buff_phys += period; in __pxa2xx_pcm_hw_params()
99 } while (totsize -= period); in __pxa2xx_pcm_hw_params()
Daaci.h213 unsigned int period; /* byte size of a "period" */ member
/linux-4.1.27/sound/oss/dmasound/
Ddmasound_paula.c359 int period, i; in AmiInit() local
364 period = amiga_colorclock/dmasound.soft.speed-1; in AmiInit()
366 period = amiga_audio_min_period; in AmiInit()
370 if (period < amiga_audio_min_period) { in AmiInit()
372 period = amiga_audio_min_period; in AmiInit()
373 } else if (period > 65535) { in AmiInit()
374 period = 65535; in AmiInit()
376 dmasound.hard.speed = amiga_colorclock/(period+1); in AmiInit()
379 custom.aud[i].audper = period; in AmiInit()
380 amiga_audio_period = period; in AmiInit()
/linux-4.1.27/arch/arm/mach-spear/
Dtime.c109 u32 period; in clockevent_set_mode() local
119 period = clk_get_rate(gpt_clk) / HZ; in clockevent_set_mode()
120 period >>= CTRL_PRESCALER16; in clockevent_set_mode()
121 writew(period, gpt_base + LOAD(CLKEVT)); in clockevent_set_mode()
/linux-4.1.27/include/scsi/
Dscsi_transport_spi.h32 int period; /* value in the PPR/SDTR command */ member
75 #define spi_period(x) (((struct spi_transport_attrs *)&(x)->starget_data)->period)
157 int spi_populate_sync_msg(unsigned char *msg, int period, int offset);
158 int spi_populate_ppr_msg(unsigned char *msg, int period, int offset, int width,
/linux-4.1.27/Documentation/devicetree/bindings/input/
Dbrcm,bcm-keypad.txt29 - col-debounce-filter-period: The debounce period for the Column filter.
40 - status-debounce-filter-period: The debounce period for the Status filter.
103 col-debounce-filter-period = <5>;
Drotary-encoder.txt17 - rotary-encoder,half-period: Makes the driver work on half-period mode.
Dlpc32xx-key.txt12 - nxp,scan-delay-ms: Repeated scan period in ms
/linux-4.1.27/Documentation/devicetree/bindings/hwrng/
Dtimeriomem_rng.txt6 - period : wait time in microseconds to use between samples
17 period = <1000000>;
/linux-4.1.27/drivers/rtc/
Dinterface.c401 rtc->aie_timer.period = ktime_set(0, 0); in rtc_set_alarm()
429 rtc->aie_timer.period = ktime_set(0, 0); in rtc_initialize_alarm()
501 rtc->uie_rtctimer.period = ktime_set(1, 0); in rtc_update_irq_enable()
590 ktime_t period; in rtc_pie_update_irq() local
594 period = ktime_set(0, NSEC_PER_SEC/rtc->irq_freq); in rtc_pie_update_irq()
595 count = hrtimer_forward_now(timer, period); in rtc_pie_update_irq()
705 ktime_t period = ktime_set(0, NSEC_PER_SEC / rtc->irq_freq); in rtc_update_hrtimer() local
707 hrtimer_start(&rtc->pie_timer, period, HRTIMER_MODE_REL); in rtc_update_hrtimer()
895 if (ktime_to_ns(timer->period)) { in rtc_timer_do_work()
897 timer->period); in rtc_timer_do_work()
[all …]
/linux-4.1.27/Documentation/filesystems/
Dquota.txt11 softlimit but only for limited period of time. This period is called "grace
12 period" or "grace time". When grace time is over, user is not able to allocate
50 than given grace period
54 longer than given grace period.
/linux-4.1.27/arch/arm/mach-gemini/
Dtime.c65 u32 period = DIV_ROUND_CLOSEST(tick_rate, HZ); in gemini_timer_set_mode() local
71 writel(period, in gemini_timer_set_mode()
73 writel(period, in gemini_timer_set_mode()
/linux-4.1.27/Documentation/devicetree/bindings/video/backlight/
Dlp855x.txt12 - pwm-period: PWM period value. Set only PWM input mode used (u32)
25 pwm-period = <10000>;
/linux-4.1.27/arch/arm/mach-davinci/
Dtime.c93 unsigned long period; member
136 __raw_writel(__raw_readl(t->base + t->tim_off) + t->period, in timer32_config()
147 __raw_writel(t->period, t->base + t->prd_off); in timer32_config()
190 .period = ~0,
301 t->period = cycles; in davinci_set_next_event()
313 t->period = davinci_clock_tick_rate / (HZ); in davinci_set_mode()
/linux-4.1.27/drivers/staging/speakup/
DDefaultKeyAssignments8 InsKeyPad-period means hold down the insert key like a shift key and
9 hit the keypad period.
29 KeyPad-period Say Position (current line, position and console)
30 InsKeyPad-period say colour attributes of current position.
/linux-4.1.27/Documentation/blackfin/
Dgptimers-example.c21 uint32_t period, width; member
37 data->period = get_gptimer_period(TIMER5_id); in gptimer_example_irq()
/linux-4.1.27/drivers/clocksource/
Dtimer-keystone.c78 static int keystone_timer_config(u64 period, enum clock_event_mode mode) in keystone_timer_config() argument
106 keystone_timer_writel(period & 0xffffffff, PRD12); in keystone_timer_config()
107 keystone_timer_writel(period >> 32, PRD34); in keystone_timer_config()
Ddw_apb_timer.c117 unsigned long period; in apbt_set_mode() local
126 period = DIV_ROUND_UP(dw_ced->timer.freq, HZ); in apbt_set_mode()
137 pr_debug("Setting clock period %lu for HZ %d\n", period, HZ); in apbt_set_mode()
138 apbt_writel(&dw_ced->timer, period, APBTMR_N_LOAD_COUNT); in apbt_set_mode()
/linux-4.1.27/drivers/media/rc/
Dene_ir.c337 int period = ene_read_reg(dev, ENE_CIRCAR_PRD); in ene_rx_sense_carrier() local
340 if (!(period & ENE_CIRCAR_PRD_VALID)) in ene_rx_sense_carrier()
343 period &= ~ENE_CIRCAR_PRD_VALID; in ene_rx_sense_carrier()
345 if (!period) in ene_rx_sense_carrier()
348 dbg("RX: hardware carrier period = %02x", period); in ene_rx_sense_carrier()
351 carrier = 2000000 / period; in ene_rx_sense_carrier()
352 duty_cycle = (hperiod * 100) / period; in ene_rx_sense_carrier()
895 u32 period; in ene_set_tx_carrier() local
901 period = 2000000 / carrier; in ene_set_tx_carrier()
902 if (period && (period > ENE_CIRMOD_PRD_MAX || in ene_set_tx_carrier()
[all …]
Dmceusb.c546 u32 carrier, period; in mceusb_dev_printdata() local
635 period = DIV_ROUND_CLOSEST( in mceusb_dev_printdata()
637 if (!period) in mceusb_dev_printdata()
639 carrier = (1000 * 1000) / period; in mceusb_dev_printdata()
641 inout, carrier, period); in mceusb_dev_printdata()
652 period = ((data1 << 8) | data2) * MCE_TIME_UNIT / 1000; in mceusb_dev_printdata()
654 inout, period); in mceusb_dev_printdata()
/linux-4.1.27/Documentation/devicetree/bindings/pwm/
Dpwm-bcm2835.txt7 system, the period and the duty_cycle of the PWM signal is a multiple of
8 the base period.
Dpxa-pwm.txt13 - #pwm-cells: Should be 1. This cell is used to specify the period in
Dpwm-lp3943.txt7 Note that this hardware limits the period length to the
Dpwm-st.txt8 second cell is the period in nanoseconds - fixed to 2
/linux-4.1.27/arch/mips/loongson1/common/
Dtime.c41 static inline void ls1x_pwmtimer_set_period(uint32_t period) in ls1x_pwmtimer_set_period() argument
43 __raw_writel(period, timer_base + PWM_HRC); in ls1x_pwmtimer_set_period()
44 __raw_writel(period, timer_base + PWM_LRC); in ls1x_pwmtimer_set_period()
/linux-4.1.27/sound/ppc/
Dbeep.c107 int period, ncycles, nsamples; in snd_pmac_beep_event() local
149 period = srate * 256 / hz; /* fixed point */ in snd_pmac_beep_event()
150 ncycles = BEEP_BUFLEN * 256 / period; in snd_pmac_beep_event()
151 nsamples = (period * ncycles) >> 8; in snd_pmac_beep_event()
/linux-4.1.27/Documentation/devicetree/bindings/net/
Dfsl-tsec-phy.txt91 - fsl,tclk-period Timer reference clock period in nanoseconds.
94 - fsl,tmr-fiper1 Fixed interval period pulse generator.
95 - fsl,tmr-fiper2 Fixed interval period pulse generator.
103 tclk_period = desired clock period nanoseconds
141 fsl,tclk-period = <10>;
Darc_emac.txt11 The clock frequency is needed to calculate and set polling period of EMAC.
Demac_rockchip.txt19 polling period of EMAC and "macref" for the reference clock needed to transfer
/linux-4.1.27/arch/arm/kernel/
Dperf_event.c102 s64 period = hwc->sample_period; in armpmu_event_set_period() local
105 if (unlikely(left <= -period)) { in armpmu_event_set_period()
106 left = period; in armpmu_event_set_period()
108 hwc->last_period = period; in armpmu_event_set_period()
113 left += period; in armpmu_event_set_period()
115 hwc->last_period = period; in armpmu_event_set_period()
/linux-4.1.27/Documentation/devicetree/bindings/clock/
Dpwm-clock.txt12 via the period given in the PWM specifier.
16 - clock-frequency : Exact output frequency, in case the PWM period
/linux-4.1.27/tools/perf/ui/
Dhist.c47 u64 period = get_field(pair); in __hpp__fmt() local
72 100.0 * period / total); in __hpp__fmt()
75 len, period); in __hpp__fmt()
357 HPP_PERCENT_FNS(overhead, period) in HPP_PERCENT_FNS() argument
362 HPP_PERCENT_ACC_FNS(overhead_acc, period) in HPP_PERCENT_FNS()
365 HPP_RAW_FNS(period, period) in HPP_PERCENT_FNS()
417 HPP__PRINT_FNS("Period", period)
/linux-4.1.27/arch/metag/kernel/perf/
Dperf_event.c225 s64 period = hwc->sample_period; in metag_pmu_event_set_period() local
229 if (unlikely(period != hwc->last_period)) in metag_pmu_event_set_period()
230 left += period - hwc->last_period; in metag_pmu_event_set_period()
232 if (unlikely(left <= -period)) { in metag_pmu_event_set_period()
233 left = period; in metag_pmu_event_set_period()
235 hwc->last_period = period; in metag_pmu_event_set_period()
240 left += period; in metag_pmu_event_set_period()
242 hwc->last_period = period; in metag_pmu_event_set_period()
/linux-4.1.27/drivers/input/joystick/iforce/
Diforce-ff.c69 __s16 magnitude, __s16 offset, u16 period, u16 phase) in make_period_modifier() argument
73 period = TIME_SCALE(period); in make_period_modifier()
93 data[5] = LO(period); in make_period_modifier()
94 data[6] = HI(period); in make_period_modifier()
285 return (old->u.periodic.period != new->u.periodic.period in need_period_modifier()
372 effect->u.periodic.period, effect->u.periodic.phase); in iforce_upload_periodic()
/linux-4.1.27/drivers/gpu/drm/radeon/
Dsumo_smc.c147 u32 period, unit, timer_value; in sumo_enable_boost_timer() local
153 period = 100 * (xclk / 100 / sumo_power_of_4(unit)); in sumo_enable_boost_timer()
155 timer_value = (period << 16) | (unit << 4); in sumo_enable_boost_timer()
/linux-4.1.27/drivers/staging/media/lirc/
Dlirc_serial.c223 static unsigned long period; variable
353 period = loops_per_sec >> 3; in init_timing_params()
354 period /= (freq >> 3); in init_timing_params()
357 pulse_width = period * duty_cycle / 100; in init_timing_params()
358 space_width = period - pulse_width; in init_timing_params()
382 period = 256 * 1000000L / freq; in init_timing_params()
383 pulse_width = period * duty_cycle / 100; in init_timing_params()
384 space_width = period - pulse_width; in init_timing_params()
/linux-4.1.27/drivers/ptp/
Dptp_sysfs.c139 &req.perout.period.sec, &req.perout.period.nsec); in period_store()
145 enable = req.perout.period.sec || req.perout.period.nsec; in period_store()
240 static DEVICE_ATTR(period, 0220, NULL, period_store);
Dptp_chardev.c171 enable = req.perout.period.sec || req.perout.period.nsec; in ptp_ioctl()
/linux-4.1.27/arch/mips/include/asm/mach-jz4740/
Dtimer.h89 static inline void jz4740_timer_set_period(unsigned int timer, uint16_t period) in jz4740_timer_set_period() argument
91 writew(period, jz4740_timer_base + JZ_REG_TIMER_DFR(timer)); in jz4740_timer_set_period()
/linux-4.1.27/Documentation/devicetree/bindings/i2c/
Di2c-designware.txt18 This value which is by default 300ns is used to compute the tLOW period.
21 This value which is by default 300ns is used to compute the tHIGH period.
/linux-4.1.27/tools/perf/ui/gtk/
Dhists.c66 __HPP_COLOR_PERCENT_FN(overhead, period) in __HPP_COLOR_PERCENT_FN() argument
71 __HPP_COLOR_ACC_PERCENT_FN(overhead_acc, period) in __HPP_COLOR_PERCENT_FN()
255 h->stat_acc->period : h->stat.period; in perf_gtk__show_hists()
/linux-4.1.27/arch/blackfin/kernel/
Dgptimers.c143 void set_gptimer_period(unsigned int timer_id, uint32_t period) in set_gptimer_period() argument
146 bfin_write(&timer_regs[timer_id]->period, period); in set_gptimer_period()
154 return bfin_read(&timer_regs[timer_id]->period); in get_gptimer_period()
/linux-4.1.27/sound/soc/fsl/
Dimx-pcm-fiq.c39 unsigned int period; member
84 iprtd->period = params_period_bytes(params); in snd_imx_pcm_hw_params()
101 regs.ARM_r8 = (iprtd->period * iprtd->periods - 1) << 16; in snd_imx_pcm_prepare()
103 regs.ARM_r9 = (iprtd->period * iprtd->periods - 1) << 16; in snd_imx_pcm_prepare()
/linux-4.1.27/Documentation/devicetree/bindings/video/
Dsamsung-fimd.txt49 - cs-setup: clock cycles for the active period of address signal is enabled
52 - wr-setup: clock cycles for the active period of CS signal is enabled until
55 - wr-active: clock cycles for the active period of CS is enabled.
57 - wr-hold: clock cycles for the active period of CS is disabled until write
/linux-4.1.27/Documentation/
Dpwm.txt70 period - The total period of the PWM signal (read/write).
75 Value is in nanoseconds and must be less than the period.
104 goes low for the remainder of the period. Conversely, a signal with inversed
106 remainder of the period.
Dlockup-watchdogs.txt56 The period of the hrtimer is 2*watchdog_thresh/5, which means it has
61 administrators to configure the period of the hrtimer and the perf
/linux-4.1.27/arch/arm/mach-omap2/
Dtimer.c108 u32 period; in omap2_gp_timer_set_mode() local
114 period = clkev.rate / HZ; in omap2_gp_timer_set_mode()
115 period -= 1; in omap2_gp_timer_set_mode()
118 0xffffffff - period, OMAP_TIMER_POSTED); in omap2_gp_timer_set_mode()
121 0xffffffff - period, OMAP_TIMER_POSTED); in omap2_gp_timer_set_mode()
/linux-4.1.27/mm/
Dpage-writeback.c849 const unsigned long period = roundup_pow_of_two(3 * HZ); in bdi_update_write_bandwidth() local
866 if (unlikely(elapsed > period)) { in bdi_update_write_bandwidth()
871 bw += (u64)bdi->write_bandwidth * (period - elapsed); in bdi_update_write_bandwidth()
872 bw >>= ilog2(period); in bdi_update_write_bandwidth()
1348 long period; in balance_dirty_pages() local
1438 period = max_pause; in balance_dirty_pages()
1442 period = HZ * pages_dirtied / task_ratelimit; in balance_dirty_pages()
1443 pause = period; in balance_dirty_pages()
1463 period, in balance_dirty_pages()
1469 } else if (period) { in balance_dirty_pages()
[all …]
/linux-4.1.27/drivers/usb/serial/
Dgeneric.c250 unsigned long period; in usb_serial_generic_wait_until_sent() local
260 period = max_t(unsigned long, (10 * HZ / bps), 1); in usb_serial_generic_wait_until_sent()
262 period = min_t(unsigned long, period, timeout); in usb_serial_generic_wait_until_sent()
266 jiffies_to_msecs(period)); in usb_serial_generic_wait_until_sent()
269 schedule_timeout_interruptible(period); in usb_serial_generic_wait_until_sent()
/linux-4.1.27/arch/alpha/kernel/
Dperf_event.c255 long period = hwc->sample_period; in alpha_perf_event_set_period() local
258 if (unlikely(left <= -period)) { in alpha_perf_event_set_period()
259 left = period; in alpha_perf_event_set_period()
261 hwc->last_period = period; in alpha_perf_event_set_period()
266 left += period; in alpha_perf_event_set_period()
268 hwc->last_period = period; in alpha_perf_event_set_period()
/linux-4.1.27/kernel/sched/
Dcore.c93 void start_bandwidth_timer(struct hrtimer *period_timer, ktime_t period) in start_bandwidth_timer() argument
103 hrtimer_forward(period_timer, now, period); in start_bandwidth_timer()
726 s64 period = sched_avg_period(); in sched_avg_update() local
728 while ((s64)(rq_clock(rq) - rq->age_stamp) > period) { in sched_avg_update()
735 rq->age_stamp += period; in sched_avg_update()
1971 unsigned long to_ratio(u64 period, u64 runtime) in to_ratio() argument
1981 if (period == 0) in to_ratio()
1984 return div64_u64(runtime << 20, period); in to_ratio()
2035 u64 period = attr->sched_period ?: attr->sched_deadline; in dl_overflow() local
2037 u64 new_bw = dl_policy(policy) ? to_ratio(period, runtime) : 0; in dl_overflow()
[all …]
Dsched.h213 ktime_t period; member
1294 extern void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime);
1297 extern void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime);
1300 unsigned long to_ratio(u64 period, u64 runtime);
1410 extern void start_bandwidth_timer(struct hrtimer *period_timer, ktime_t period);
/linux-4.1.27/Documentation/leds/
Dleds-lp3944.txt22 - period: from 0s to 1.6s
23 - duty cycle: percentage of the period the led is on, from 0 to 100
/linux-4.1.27/arch/x86/kvm/
Di8254.c112 if (!ps->period) in __kpit_elapsed()
125 elapsed = ps->period - ktime_to_ns(remaining); in __kpit_elapsed()
327 hrtimer_add_expires_ns(&ps->timer, ps->period); in pit_timer_fn()
348 ps->period = interval; in create_pit_timer()
365 if (ps->period < min_period) { in create_pit_timer()
369 ps->period, min_period); in create_pit_timer()
370 ps->period = min_period; in create_pit_timer()
Di8254.h28 s64 period; /* unit: ns */ member
Dlapic.c949 apic->lapic_timer.period == 0) in apic_get_tmcct()
956 ns = mod_64(ktime_to_ns(remaining), apic->lapic_timer.period); in apic_get_tmcct()
1181 apic->lapic_timer.period = (u64)kvm_apic_get_reg(apic, APIC_TMICT) in start_apic_timer()
1184 if (!apic->lapic_timer.period) in start_apic_timer()
1194 if (apic->lapic_timer.period < min_period) { in start_apic_timer()
1199 apic->lapic_timer.period, min_period); in start_apic_timer()
1200 apic->lapic_timer.period = min_period; in start_apic_timer()
1205 ktime_add_ns(now, apic->lapic_timer.period), in start_apic_timer()
1214 apic->lapic_timer.period, in start_apic_timer()
1216 apic->lapic_timer.period))); in start_apic_timer()
[all …]
/linux-4.1.27/arch/tile/kernel/
Dperf_event.c553 s64 period = hwc->sample_period; in tile_event_set_period() local
559 if (unlikely(left <= -period)) { in tile_event_set_period()
560 left = period; in tile_event_set_period()
562 hwc->last_period = period; in tile_event_set_period()
567 left += period; in tile_event_set_period()
569 hwc->last_period = period; in tile_event_set_period()
/linux-4.1.27/include/trace/events/
Dwriteback.h436 unsigned long period,
442 dirtied, period, pause, start_time),
457 __field(unsigned long, period)
477 __entry->period = period * 1000 / HZ;
501 __entry->period, /* ms */
/linux-4.1.27/drivers/message/fusion/
Dmptspi.c868 u32 period; in mptspi_write_spi_device_pg1() local
909 period = (nego_parms & MPI_SCSIDEVPAGE1_RP_MIN_SYNC_PERIOD_MASK) >> in mptspi_write_spi_device_pg1()
911 if (period == 8) { in mptspi_write_spi_device_pg1()
965 static void mptspi_write_period(struct scsi_target *starget, int period) in mptspi_write_period() argument
970 if (period < 8) in mptspi_write_period()
971 period = 8; in mptspi_write_period()
973 if (period > 255) in mptspi_write_period()
974 period = 255; in mptspi_write_period()
979 if (period == 8) { in mptspi_write_period()
982 } else if (period == 9) { in mptspi_write_period()
[all …]
/linux-4.1.27/drivers/net/wireless/zd1211rw/
Dzd_mac.c384 beacon_period = mac->beacon.period; in zd_restore_settings()
1319 u8 period = 0; in zd_op_bss_info_changed() local
1322 period = bss_conf->dtim_period; in zd_op_bss_info_changed()
1327 mac->beacon.period = period; in zd_op_bss_info_changed()
1332 zd_set_beacon_interval(&mac->chip, interval, period, in zd_op_bss_info_changed()
1441 int interval, period; in beacon_watchdog_handler() local
1450 period = mac->beacon.period; in beacon_watchdog_handler()
1459 interval, period); in beacon_watchdog_handler()
1470 zd_set_beacon_interval(&mac->chip, interval, period, mac->type); in beacon_watchdog_handler()
/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-class-pwm50 What: /sys/class/pwm/pwmchipN/pwmX/period
55 Sets the PWM signal period in nanoseconds.
Dsysfs-ptp104 What: /sys/class/ptp/ptpN/period
111 seconds, start time nanoseconds, period seconds, and
112 period nanoseconds. To disable a periodic output, set
/linux-4.1.27/arch/c6x/platforms/
Dtimer64.c80 static void timer64_config(unsigned long period) in timer64_config() argument
85 soc_writel(period - 1, &timer->prdlo); in timer64_config()
/linux-4.1.27/Documentation/input/
Drotary-encoder.txt13 a stable state with both outputs high (half-period mode).
33 one step (half-period mode)
42 In half-period mode, state a) and c) above are used to determine the
/linux-4.1.27/tools/perf/ui/stdio/
Dhist.c38 int depth, int depth_mask, int period, in ipchain__fprintf_graph() argument
52 if (!period && i == depth - 1) { in ipchain__fprintf_graph()
271 he->stat_acc->period : he->stat.period, in hist_entry_callchain__fprintf()
/linux-4.1.27/drivers/char/
Dmmtimer.c680 unsigned long when, period, irqflags; in sgi_timer_set() local
691 period = timespec_to_ns(&new_setting->it_interval); in sgi_timer_set()
720 period = (period + sgi_clock_period - 1) / sgi_clock_period; in sgi_timer_set()
739 timr->it.mmtimer.incr = period; in sgi_timer_set()
/linux-4.1.27/arch/blackfin/include/asm/
Dgptimers.h252 void set_gptimer_period(unsigned int timer_id, uint32_t period);
297 u32 period; member
/linux-4.1.27/arch/powerpc/perf/
Dcore-fsl-emb.c609 u64 period = event->hw.sample_period; in record_and_restart() local
629 if (period) { in record_and_restart()
631 left += period; in record_and_restart()
633 left = period; in record_and_restart()
/linux-4.1.27/drivers/gpio/
Dgpio-dln2.c286 unsigned type, unsigned period) in dln2_gpio_set_event_cfg() argument
291 __le16 period; in dln2_gpio_set_event_cfg() member
295 .period = cpu_to_le16(period), in dln2_gpio_set_event_cfg()
/linux-4.1.27/arch/mips/kernel/
Dperf_event_mipsxx.c380 u64 period = hwc->sample_period; in mipspmu_event_set_period() local
383 if (unlikely((left + period) & (1ULL << 63))) { in mipspmu_event_set_period()
385 left = period; in mipspmu_event_set_period()
387 hwc->last_period = period; in mipspmu_event_set_period()
389 } else if (unlikely((left + period) <= period)) { in mipspmu_event_set_period()
391 left += period; in mipspmu_event_set_period()
393 hwc->last_period = period; in mipspmu_event_set_period()
746 data->period = event->hw.last_period; in handle_associated_event()
/linux-4.1.27/include/uapi/linux/
Dptp_clock.h65 struct ptp_clock_time period; /* Desired period, zero means disable. */ member
Dkd.h149 int period; /* in msec; <= 0: don't change */ member
/linux-4.1.27/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c687 u32 period; local
742 period = (4 * div_10M[0] + np->clock_khz - 1) / np->clock_khz;
744 if (period <= 250) np->minsync = 10;
745 else if (period <= 303) np->minsync = 11;
746 else if (period <= 500) np->minsync = 12;
747 else np->minsync = (period + 40 - 1) / 40;
762 period = (11 * div_10M[np->clock_divn - 1]) / (4 * np->clock_khz);
763 np->maxsync = period > 2540 ? 254 : period / 10;
1397 if (goal->period < np->minsync_dt)
1398 goal->period = np->minsync_dt;
[all …]
/linux-4.1.27/drivers/dma/
Dsa11x0-dma.c81 unsigned period; member
241 if ((p->sg_done % txd->period) == 0) in sa11x0_dma_complete()
609 struct dma_chan *chan, dma_addr_t addr, size_t size, size_t period, in sa11x0_dma_prep_dma_cyclic() argument
623 sgperiod = DIV_ROUND_UP(period, DMA_MAX_SIZE & ~DMA_ALIGN); in sa11x0_dma_prep_dma_cyclic()
624 sglen = size * sgperiod / period; in sa11x0_dma_prep_dma_cyclic()
636 for (i = k = 0; i < size / period; i++) { in sa11x0_dma_prep_dma_cyclic()
637 size_t tlen, len = period; in sa11x0_dma_prep_dma_cyclic()
662 txd->period = sgperiod; in sa11x0_dma_prep_dma_cyclic()
Ds3c24xx-dma.c883 struct dma_chan *chan, dma_addr_t addr, size_t size, size_t period, in s3c24xx_dma_prep_dma_cyclic() argument
899 size, period, s3cchan->name); in s3c24xx_dma_prep_dma_cyclic()
953 sg_len = size / period; in s3c24xx_dma_prep_dma_cyclic()
963 dsg->len = period; in s3c24xx_dma_prep_dma_cyclic()
966 dsg->len = size - period * i; in s3c24xx_dma_prep_dma_cyclic()
968 dsg->src_addr = addr + period * i; in s3c24xx_dma_prep_dma_cyclic()
972 dsg->dst_addr = addr + period * i; in s3c24xx_dma_prep_dma_cyclic()
/linux-4.1.27/drivers/input/
Dinput-compat.h41 __u16 period; member
/linux-4.1.27/sound/soc/samsung/
Didma.c51 dma_addr_t period; member
164 prtd->period = params_periods(params); in idma_hw_params()
282 prtd->cb(prtd->token, prtd->period); in iis_irq()
/linux-4.1.27/sound/usb/line6/
Dpcm.h113 unsigned period; member
Dcapture.c136 if (line6pcm->in.bytes >= line6pcm->in.period) { in line6_capture_check_period()
137 line6pcm->in.bytes %= line6pcm->in.period; in line6_capture_check_period()
Dplayback.c354 if (line6pcm->out.bytes >= line6pcm->out.period) { in audio_out_callback()
355 line6pcm->out.bytes %= line6pcm->out.period; in audio_out_callback()
/linux-4.1.27/sound/spi/
Dat73c213.c70 int period; member
262 chip->period = 0; in snd_at73c213_pcm_prepare()
373 chip->period++; in snd_at73c213_interrupt()
374 if (chip->period == runtime->periods) in snd_at73c213_interrupt()
375 chip->period = 0; in snd_at73c213_interrupt()
376 next_period = chip->period + 1; in snd_at73c213_interrupt()
/linux-4.1.27/drivers/staging/iio/trigger/
Diio-trig-bfin-timer.c124 unsigned int period = get_gptimer_period(st->t->id); in iio_bfin_tmr_frequency_show() local
127 if (period == 0) in iio_bfin_tmr_frequency_show()
/linux-4.1.27/drivers/media/pci/cx88/
Dcx88-dsp.c81 u16 period = x / INT_PI; in int_cos() local
82 if (period % 2) in int_cos()
/linux-4.1.27/drivers/acpi/apei/
Dghes.c605 unsigned long long now, duration, period, max_period = 0; in ghes_estatus_cache_add() local
627 period = duration; in ghes_estatus_cache_add()
628 do_div(period, (count + 1)); in ghes_estatus_cache_add()
629 if (period > max_period) { in ghes_estatus_cache_add()
630 max_period = period; in ghes_estatus_cache_add()
/linux-4.1.27/arch/arm64/kernel/
Dperf_event.c157 s64 period = hwc->sample_period; in armpmu_event_set_period() local
160 if (unlikely(left <= -period)) { in armpmu_event_set_period()
161 left = period; in armpmu_event_set_period()
163 hwc->last_period = period; in armpmu_event_set_period()
168 left += period; in armpmu_event_set_period()
170 hwc->last_period = period; in armpmu_event_set_period()
/linux-4.1.27/include/linux/mlx4/
Dcq.h174 u16 count, u16 period);
/linux-4.1.27/Documentation/ptp/
Dtestptp.c446 perout_request.period.sec = 0; in main()
447 perout_request.period.nsec = perout; in main()
/linux-4.1.27/Documentation/scsi/
Dsym53c8xx_2.txt22 8.1 Set minimum synchronous period
307 8.1 Set minimum synchronous period factor
309 setsync <target> <period factor>
312 period: minimum synchronous period.
313 Maximum speed = 1000/(4*period factor) except for special
316 Specify a period of 0, to force asynchronous transfer mode.
318 9 means 12.5 nano-seconds synchronous period
319 10 means 25 nano-seconds synchronous period
320 11 means 30 nano-seconds synchronous period
321 12 means 50 nano-seconds synchronous period
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/input/touchscreen/
Dtsc2007.txt22 - ti,poll-period: how much time to wait (in milliseconds) before reading again the
/linux-4.1.27/Documentation/devicetree/bindings/leds/
Dleds-pwm.txt11 specify the period time to be used: <&phandle id period_ns>;
/linux-4.1.27/drivers/hid/
Dhid-roccat-kone.h20 uint16_t period; /* in milliseconds */ member
/linux-4.1.27/Documentation/backlight/
Dlp855x-driver.txt38 * period_ns : Platform specific PWM period value. unit is nano.
/linux-4.1.27/drivers/scsi/pcmcia/
Dnsp_cs.c453 unsigned int period, offset; in nsp_analyze_sdtr() local
459 period = sync->SyncPeriod; in nsp_analyze_sdtr()
462 nsp_dbg(NSP_DEBUG_SYNC, "period=0x%x, offset=0x%x", period, offset); in nsp_analyze_sdtr()
471 if ( period >= sync_table->min_period && in nsp_analyze_sdtr()
472 period <= sync_table->max_period ) { in nsp_analyze_sdtr()
477 if (period != 0 && sync_table->max_period == 0) { in nsp_analyze_sdtr()
/linux-4.1.27/drivers/media/usb/cpia2/
Dcpia2_v4l.c509 struct v4l2_fract period; member
534 cap->timeperframe = framerate_controls[i].period; in cpia2_g_parm()
559 struct v4l2_fract f2 = framerate_controls[i].period; in cpia2_s_parm()
568 cap->timeperframe = framerate_controls[i].period; in cpia2_s_parm()
626 fival->discrete = framerate_controls[fival->index].period; in cpia2_enum_frameintervals()
/linux-4.1.27/sound/drivers/
Ddummy.c445 unsigned int period, rate; in dummy_hrtimer_prepare() local
450 period = runtime->period_size; in dummy_hrtimer_prepare()
452 sec = period / rate; in dummy_hrtimer_prepare()
453 period %= rate; in dummy_hrtimer_prepare()
454 nsecs = div_u64((u64)period * 1000000000UL + rate - 1, rate); in dummy_hrtimer_prepare()
/linux-4.1.27/drivers/staging/iio/light/
Disl29028.c88 unsigned int period = DIV_ROUND_UP(1000, sampling); in isl29028_set_proxim_sampling() local
91 if (period >= prox_period[sel]) in isl29028_set_proxim_sampling()
/linux-4.1.27/tools/perf/scripts/python/
Dexport-to-postgresql.py429 …ym_offset, ip, time, cpu, to_dso_id, to_symbol_id, to_sym_offset, to_ip, period, weight, transacti… argument
433 …e, 4, cpu, 8, to_dso_id, 8, to_symbol_id, 8, to_sym_offset, 8, to_ip, 8, period, 8, weight, 8, tra…

123