Searched refs:period (Results 151 - 175 of 538) sorted by relevance

1234567891011>>

/linux-master/drivers/pwm/
H A Dpwm-cros-ec.c142 /* The EC won't let us change the period */
143 if (state->period != EC_PWM_MAX_DUTY)
178 state->period = EC_PWM_MAX_DUTY;
210 /* The EC won't let us change the period */
211 pwm->args.period = EC_PWM_MAX_DUTY;
H A Dpwm-xilinx.c6 * - When changing both duty cycle and period, we may end up with one cycle
7 * with the old duty cycle and the new period. This is because the counters
115 period_cycles = min_t(u64, state->period, U32_MAX * NSEC_PER_SEC);
178 state->period = xilinx_timer_get_period(priv, tlr0, tcsr0);
187 if (state->period == state->duty_cycle)
H A Dpwm-sunplus.c15 * - When the parameters change, current running period will not be completed
88 * With clk_rate limited above we have dd_freq <= state->period,
91 dd_freq = mul_u64_u64_div_u64(clk_rate, state->period, (u64)SP7021_PWM_FREQ_SCALER
107 if (state->duty_cycle == state->period) {
145 state->period = DIV64_U64_ROUND_UP((u64)dd_freq * (u64)SP7021_PWM_FREQ_SCALER
H A Dpwm-atmel-hlcdc.c68 clk_period_ns > state->period) {
84 if ((clk_period_ns << pres) >= state->period)
115 do_div(pwmcval, state->period);
119 * the period cycle. Hence we can't set a duty cycle occupying
120 * the whole period cycle if we're asked to.
H A Dpwm-sti.c120 * Calculate the prescaler value corresponding to the period.
122 static int sti_pwm_get_prescale(struct sti_pwm_chip *pc, unsigned long period, argument
142 if (period % value)
145 ps = period / value - 1;
155 * For STiH4xx PWM IP, the PWM period is fixed to 256 local clock cycles. The
156 * only way to change the period (apart from changing the PWM input clock) is
160 * period values are supported (for a particular clock rate). The requested
161 * period will be applied only if it matches one of these 256 values.
185 * a new device and period of the new device is same as the current
186 * configured period
[all...]
H A Dpwm-samsung.c60 * @period_ns: current period in nanoseconds programmed to the hardware
324 u32 period; local
326 period = NSEC_PER_SEC / period_ns;
329 duty_ns, period_ns, period); local
331 tin_rate = pwm_samsung_calc_tin(chip, pwm->hwpwm, period);
451 if (state->period > NSEC_PER_SEC)
454 err = pwm_samsung_config(chip, pwm, state->duty_cycle, state->period);
/linux-master/sound/soc/uniphier/
H A Daio-core.c1136 int period)
1142 if (end < start || period < 0)
1157 ret = aiodma_rb_set_threshold(sub, size, 2 * period);
1163 aiodma_rb_set_wp(sub, end - period);
1169 aiodma_rb_set_rp(sub, end - period);
1177 sub->threshold = 2 * period;
1189 int period)
1195 sub->threshold = 2 * period;
1196 aiodma_rb_set_threshold(sub, size, 2 * period);
1198 sub->wr_offs = sub->rd_offs - period;
1135 aiodma_rb_set_buffer(struct uniphier_aio_sub *sub, u64 start, u64 end, int period) argument
1188 aiodma_rb_sync(struct uniphier_aio_sub *sub, u64 start, u64 size, int period) argument
[all...]
/linux-master/drivers/usb/fotg210/
H A Dfotg210-hcd.c212 "%s%scommand %07x %s=%d ithresh=%d%s%s%s period=%s%s %s",
555 p.qh->period,
2753 qh->period = urb->interval >> 3;
2754 if (qh->period == 0 && urb->interval != 1) {
2760 } else if (qh->period > fotg210->periodic_size) {
2761 qh->period = fotg210->periodic_size;
2762 urb->interval = qh->period << 3;
2784 qh->period = urb->interval;
2785 if (qh->period > fotg210->periodic_size) {
2786 qh->period
3390 tt_no_collision(struct fotg210_hcd *fotg210, unsigned period, struct usb_device *dev, unsigned frame, u32 uf_mask) argument
3476 unsigned period = qh->period; local
3543 unsigned period; local
3663 check_period(struct fotg210_hcd *fotg210, unsigned frame, unsigned uframe, unsigned period, unsigned usecs) argument
4126 itd_slot_ok(struct fotg210_hcd *fotg210, u32 mod, u32 uframe, u8 usecs, u32 period) argument
4157 u32 now, next, start, period, span; local
[all...]
/linux-master/drivers/leds/
H A Dleds-cht-wcove.c179 /* Return blinking period for given CTRL reg value */
199 * Find suitable hardware blink mode for given period.
200 * period < 750 ms - select 2 HZ
201 * 750 ms <= period < 1500 ms - select 1 HZ
202 * 1500 ms <= period < 3000 ms - select 1/2 HZ
203 * 3000 ms <= period < 5000 ms - select 1/4 HZ
204 * 5000 ms <= period - return -1
206 static int cht_wc_leds_find_freq(unsigned long period) argument
208 if (period < 750)
210 else if (period < 150
[all...]
/linux-master/tools/perf/util/
H A Dannotate-data.c454 * @period: Event count at this offset
462 int nr_samples, u64 period)
483 h->period += period;
484 h->addr[offset].period += period;
460 annotated_data_type__update_samples(struct annotated_data_type *adt, struct evsel *evsel, int offset, int nr_samples, u64 period) argument
/linux-master/arch/x86/kvm/
H A Di8254.c88 if (!ps->period)
101 elapsed = ps->period - ktime_to_ns(remaining);
279 hrtimer_add_expires_ns(&ps->timer, ps->period);
339 ps->period = interval;
352 if (ps->period < min_period) {
355 "i8254 timer period limited to %lld ns\n",
356 ps->period, min_period);
357 ps->period = min_period;
386 * mode 1 is one shot, mode 2 is period, otherwise del timer */
/linux-master/drivers/iio/light/
H A Dtcs3472.c230 unsigned int period; local
241 period = (256 - data->atime) * 2400 *
243 *val = period / USEC_PER_SEC;
244 *val2 = period % USEC_PER_SEC;
265 int period; local
292 period = val * USEC_PER_SEC + val2;
294 if (period <= (256 - data->atime) * 2400 *
/linux-master/drivers/leds/rgb/
H A Dleds-qcom-lpg.c148 * @period: period (in nanoseconds) of the generated pulses
182 u64 period; member in struct:lpg_channel
412 static int lpg_calc_freq(struct lpg_channel *chan, uint64_t period) argument
427 * The PWM period is determined by:
430 * period = --------------------------
440 * The PWM framework wants a period of equal or lower length than requested,
441 * reject anything below minimum period.
460 if (period <= min_period)
463 /* Limit period t
884 unsigned int period; local
[all...]
/linux-master/drivers/usb/host/
H A Dsl811-hcd.c361 if (ep->period)
369 if (ep->period)
451 "deschedule qh%d/%p branch %d\n", ep->period, ep, ep->branch);
452 for (i = ep->branch; i < PERIODIC_SIZE; i += ep->period) {
465 -= ep->load / ep->period;
491 if (!ep->period)
766 static int balance(struct sl811 *sl811, u16 period, u16 load) argument
770 /* search for the least loaded schedule branch of that period
773 for (i = 0; i < period ; i++) {
777 for (j = i; j < PERIODIC_SIZE; j += period) {
[all...]
/linux-master/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ptp.c367 u64 period)
369 if (period)
371 "Enable GPIO %d pulsing, start time %llu, period %u\n",
372 pin_index, start, (u32)period);
375 "Disable GPIO %d pulsing, start time %llu, period %u\n",
376 pin_index, start, (u32)period);
379 * If period is ZERO then pulsen is disabled.
383 start, (u32)period);
393 struct ptp_clock_time *t = &rq->perout.period;
396 u64 start, period; local
366 aq_ptp_hw_pin_conf(struct aq_nic_s *aq_nic, u32 pin_index, u64 start, u64 period) argument
431 u64 start, period; local
[all...]
/linux-master/drivers/scsi/aic7xxx/
H A Daic7xxx_core.c112 /* ultra2 fast/ultra period rate */
146 u_int *period,
163 u_int period, u_int offset);
169 u_int period, u_int offset,
1886 /*period*/0, /*offset*/0,
2186 * this function finds the nearest syncrate to the input period limited
2193 u_int *period, u_int *ppr_options, role_t role)
2214 * period otherwise we may allow a target initiated
2231 if (transinfo->period == 0) {
2232 *period
2191 ahc_devlimited_syncrate(struct ahc_softc *ahc, struct ahc_initiator_tinfo *tinfo, u_int *period, u_int *ppr_options, role_t role) argument
2246 ahc_find_syncrate(struct ahc_softc *ahc, u_int *period, u_int *ppr_options, u_int maxsync) argument
2468 ahc_set_syncrate(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, const struct ahc_syncrate *syncrate, u_int period, u_int offset, u_int ppr_options, u_int type, int paused) argument
2950 u_int period; local
3035 ahc_construct_sdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, u_int period, u_int offset) argument
3073 ahc_construct_ppr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, u_int period, u_int offset, u_int bus_width, u_int ppr_options) argument
3613 u_int period; local
3788 u_int period; local
[all...]
/linux-master/drivers/usb/serial/
H A Dgeneric.c272 unsigned long period; local
279 * Use a poll-period of roughly the time it takes to send one
282 period = max_t(unsigned long, (10 * HZ / bps), 1);
284 period = min_t(unsigned long, period, timeout);
286 dev_dbg(&port->dev, "%s - timeout = %u ms, period = %u ms\n",
288 jiffies_to_msecs(period));
291 schedule_timeout_interruptible(period);
/linux-master/arch/alpha/kernel/
H A Dperf_event.c78 /* The maximum period the PMC can count. */
251 /* Set a new period to sample over */
256 long period = hwc->sample_period; local
259 if (unlikely(left <= -period)) {
260 left = period;
262 hwc->last_period = period;
267 left += period;
269 hwc->last_period = period;
275 * written with values that are too close to the maximum period.
296 * As the PMCs' full period ca
[all...]
/linux-master/tools/perf/ui/gtk/
H A Dhists.c71 __HPP_COLOR_PERCENT_FN(overhead, period)
76 __HPP_COLOR_ACC_PERCENT_FN(overhead_acc, period)
391 h->stat_acc->period : h->stat.period;
488 he->stat_acc->period : he->stat.period;
/linux-master/drivers/net/ethernet/freescale/
H A Dfec_ptp.c529 struct timespec64 start_time, period; local
547 period.tv_sec = rq->perout.period.sec;
548 period.tv_nsec = rq->perout.period.nsec;
549 period_ns = timespec64_to_ns(&period);
551 /* FEC PTP timer only has 31 bits, so if the period exceed
555 dev_err(&fep->pdev->dev, "The period must equal to or less than 4s!\n");
/linux-master/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_ethtool.c441 u32 period; local
445 qman_portal_get_iperiod(portal, &period);
448 c->rx_coalesce_usecs = period;
462 u32 period, prev_period; local
466 period = c->rx_coalesce_usecs;
477 res = qman_portal_set_iperiod(portal, period);
/linux-master/drivers/perf/
H A Darm_pmu.c205 s64 period = hwc->sample_period; local
210 if (unlikely(left <= -period)) {
211 left = period;
213 hwc->last_period = period;
218 left += period;
220 hwc->last_period = period;
225 * Limit the maximum period to prevent the counter value
294 * ARM pmu always has to reprogram the period, so ignore
302 * Set the period again. Some counters can't be stopped, so when we
/linux-master/sound/soc/sprd/
H A Dsprd-pcm-compress.c146 int period, period_cnt, sg_num = 2; local
172 period = (SPRD_COMPR_MCDT_FIFO_SIZE - SPRD_COMPR_MCDT_EMPTY_WMK) * 4;
173 period_cnt = params->buffer.fragment_size / period;
184 period = params->buffer.fragment_size;
199 dma->trans_len = period * period_cnt;
201 config.src_maxburst = period;
/linux-master/tools/tracing/rtla/src/
H A Dosnoise_top.c33 unsigned long long period; member in struct:osnoise_top_params
289 " -p/--period us: osnoise period in us",
304 " -P/--priority o:prio|r:prio|f:prio|d:runtime:period : set scheduling parameters",
308 " d:runtime[us|ms|s]:period[us|ms|s] - use SCHED_DEADLINE with runtime and period",
361 params->period = 1000000;
374 {"period", required_argument, 0, 'p'},
458 params->period = get_llong_from_str(optarg);
459 if (params->period > 1000000
[all...]
/linux-master/drivers/net/wireless/purelifi/plfxlc/
H A Dmac.c128 beacon_period = mac->beacon.period;
617 u8 period = 0; local
620 period = bss_conf->dtim_period;
625 mac->beacon.period = period;
631 period, mac->type);

Completed in 288 milliseconds

1234567891011>>