Searched refs:period (Results 251 - 275 of 538) sorted by relevance

<<11121314151617181920>>

/linux-master/arch/powerpc/perf/
H A Dcore-fsl-emb.c592 u64 period = event->hw.sample_period; local
607 * See if the total period for this event has expired,
608 * and update for the next period.
612 if (period) {
614 left += period;
616 left = period;
/linux-master/drivers/pwm/
H A Dpwm-pxa.c14 * - When PWM is stopped, the current PWM period stops abruptly at the next
118 err = pxa_pwm_config(chip, pwm, duty_cycle, state->period);
H A Dpwm-pca9685.c28 * PWM channels requested afterwards must use a period that results in the same
378 prescale = DIV_ROUND_CLOSEST_ULL(PCA9685_OSC_CLOCK_MHZ * state->period,
381 dev_err(pwmchip_parent(chip), "pwm not changed: period out of bounds!\n");
415 duty = DIV_ROUND_UP_ULL(duty, state->period);
445 /* Calculate (chip-wide) period from prescale value */
452 state->period = (PCA9685_COUNTER_RANGE * 1000 / PCA9685_OSC_CLOCK_MHZ) *
470 state->duty_cycle = DIV_ROUND_DOWN_ULL(duty * state->period, PCA9685_COUNTER_RANGE);
H A Dpwm-lpc32xx.c47 /* Compute 256 x #duty/period value and care for corner cases */
107 err = lpc32xx_pwm_config(chip, pwm, state->duty_cycle, state->period);
H A Dpwm-imx1.c139 err = pwm_imx1_config(chip, pwm, state->duty_cycle, state->period);
H A Dpwm-tiecap.c87 * Update shadow registers to configure period and
88 * compare values. This helps current PWM period to
118 /* Duty cycle defines LOW period of PWM */
121 /* Duty cycle defines HIGH period of PWM */
191 if (state->period > NSEC_PER_SEC)
195 state->period, enabled);
H A Dpwm-twl-led.c15 * - The twl6030 hardware only supports two period lengths (128 clock ticks and
17 * - The hardware doesn't support ON = 0, so the active part of a period doesn't
23 * clock tick per period. This should better use the disabled state.
81 * To configure the duty period:
171 * We cannot skip calling ->config even if state->period ==
172 * pwm->state.period && state->duty_cycle == pwm->state.duty_cycle
178 state->duty_cycle, state->period);
278 state->duty_cycle, state->period);
H A Dpwm-twl.c67 * To configure the duty period:
296 err = twl_pwm_config(chip, pwm, state->duty_cycle, state->period);
321 err = twl_pwm_config(chip, pwm, state->duty_cycle, state->period);
/linux-master/drivers/scsi/
H A Dwd33c93.c115 * - period:ns -ns is the minimum # of nanoseconds in a SCSI data transfer
116 * period. Default is 500; acceptable values are 250 - 1000.
153 * - wd33c93=disconnect:2,nosync:0x08,period:250
249 round_period(unsigned int period, const struct sx_period *sx_table) argument
254 if ((period <= sx_table[x - 0].period_ns) &&
255 (period > sx_table[x - 1].period_ns)) {
266 calc_sync_xfer(unsigned int period, unsigned int offset, unsigned int fast, argument
270 * value in 'sx_table' is two times the actually used transfer period.
276 period *= 2;
280 period *
291 calc_sync_msg(unsigned int period, unsigned int offset, unsigned int fast, uchar msg[2]) argument
[all...]
/linux-master/drivers/net/ethernet/microchip/
H A Dlan743x_ptp.c519 period_sec = perout_request->period.sec;
520 period_sec += perout_request->period.nsec / 1000000000;
521 period_nsec = perout_request->period.nsec % 1000000000;
531 ts_period.tv_sec = perout_request->period.sec;
532 ts_period.tv_nsec = perout_request->period.nsec;
537 "perout period too small, minimum is 200nS\n");
543 "pulse width must be smaller than period\n");
548 /* Check if we can do 50% toggle on an even value of period.
549 * If the period number is odd, then check if the requested
558 /* In this case, devide period valu
[all...]
/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Ddwxgmac2_core.c1234 u64 period; local
1273 period = cfg->period.tv_sec * 1000000000;
1274 period += cfg->period.tv_nsec;
1276 do_div(period, sub_second_inc);
1278 if (period <= 1)
1281 writel(period - 1, ioaddr + XGMAC_PPSx_INTERVAL(index));
1283 period >>= 1;
1284 if (period <
[all...]
/linux-master/drivers/net/wireless/silabs/wfx/
H A Dhif_tx_mib.c219 int wfx_hif_keep_alive_period(struct wfx_vif *wvif, int period) argument
222 .keep_alive_period = cpu_to_le16(period),
/linux-master/drivers/media/pci/cx88/
H A Dcx88-dsp.c74 u16 period = x / INT_PI; local
76 if (period % 2)
/linux-master/tools/testing/selftests/rcutorture/bin/
H A Dkvm-test-1-run-qemu.sh132 echo Grace period for qemu job at pid $qemu_pid `date`
/linux-master/tools/perf/util/
H A Dbpf-filter.l77 period { return sample(PERF_SAMPLE_PERIOD); }
H A Dintel-pt.c1352 if (pt->synth_opts.period) {
1357 params.period = pt->synth_opts.period;
1361 params.period = pt->synth_opts.period;
1365 params.period = intel_pt_ns_to_ticks(pt,
1366 pt->synth_opts.period);
1373 if (!params.period) {
1375 params.period = 1;
1721 sample->period
1869 u64 period = 0; local
[all...]
/linux-master/drivers/dma/
H A Dsa11x0-dma.c77 unsigned period; member in struct:sa11x0_dma_desc
237 if ((p->sg_done % txd->period) == 0)
605 struct dma_chan *chan, dma_addr_t addr, size_t size, size_t period,
619 sgperiod = DIV_ROUND_UP(period, DMA_MAX_SIZE & ~DMA_ALIGN);
620 sglen = size * sgperiod / period;
633 for (i = k = 0; i < size / period; i++) {
634 size_t tlen, len = period;
658 txd->period = sgperiod;
604 sa11x0_dma_prep_dma_cyclic( struct dma_chan *chan, dma_addr_t addr, size_t size, size_t period, enum dma_transfer_direction dir, unsigned long flags) argument
/linux-master/drivers/net/ethernet/intel/igb/
H A Digb_ptp.c25 * field are needed to provide the nominal 16 nanosecond period,
552 ts.tv_sec = rq->perout.period.sec;
553 ts.tv_nsec = rq->perout.period.nsec;
604 /* first half of period */
606 /* output is already low, skip this period */
610 /* second half of period */
612 /* output is already high, skip this period */
621 igb->perout[i].period.tv_sec = ts.tv_sec;
622 igb->perout[i].period.tv_nsec = ts.tv_nsec;
708 ts.tv_sec = rq->perout.period
[all...]
/linux-master/drivers/iio/light/
H A Dltr501.c160 int als_period, ps_period; /* period in micro seconds */
473 unsigned long period; local
478 /* period in microseconds */
479 period = ((val * 1000000) + val2);
487 /* period should be atleast equal to sampling period */
488 if (period < samp_period)
491 new_val = DIV_ROUND_UP(period, samp_period);
499 data->als_period = period;
507 /* period shoul
[all...]
/linux-master/arch/csky/kernel/
H A Dperf_event.c882 s64 period = hwc->sample_period; local
885 if (unlikely(left <= -period)) {
886 left = period;
888 hwc->last_period = period;
893 left += period;
895 hwc->last_period = period;
/linux-master/drivers/usb/dwc2/
H A Dhcd_queue.c117 * bits are in each period. It's assumed that the beginning
120 * @num_bits: The number of bits we need per period we want to reserve
123 * time. 1 means every period. 2 means every other period.
131 * the period that "start" is in.
150 * Why? Because we might need time in any period. AKA for the
169 * need to repeat every period). In other cases it's perfect (you can easily
172 * Here's the algorithm in action (8 periods, 5 bits per period):
225 /* Must fit within same period as start; end at begin of next */
240 /* Need to stay within this period */
416 int period; local
[all...]
/linux-master/include/trace/events/
H A Dwriteback.h632 unsigned long period,
638 dirtied, period, pause, start_time),
653 __field(unsigned long, period)
675 __entry->period = period * 1000 / HZ;
687 "paused=%lu pause=%ld period=%lu think=%ld cgroup_ino=%lu",
700 __entry->period, /* ms */
/linux-master/drivers/net/dsa/microchip/
H A Dksz_ptp.c219 ptp_data->perout_period.tv_sec = request->period.sec;
220 ptp_data->perout_period.tv_nsec = request->period.nsec;
233 req_pulse_width_ns = (request->period.sec * NSEC_PER_SEC +
234 request->period.nsec) / 2;
657 /* Calculate next perout event based on start time and period */
675 request.period.sec = ptp_data->perout_period.tv_sec;
676 request.period.nsec = ptp_data->perout_period.tv_nsec;
/linux-master/sound/spi/
H A Dat73c213.c67 int period; member in struct:snd_at73c213
258 chip->period = 0;
367 chip->period++;
368 if (chip->period == runtime->periods)
369 chip->period = 0;
370 next_period = chip->period + 1;
/linux-master/drivers/media/rc/
H A Dmceusb.c603 u32 carrier, period; local
711 period = DIV_ROUND_CLOSEST((1U << data[0] * 2) *
713 if (!period)
715 carrier = USEC_PER_SEC / period;
716 dev_dbg(dev, "%s carrier of %u Hz (period %uus)",
717 inout, carrier, period);
728 period = ((data[0] << 8) | data[1]) *
731 inout, period);

Completed in 540 milliseconds

<<11121314151617181920>>