Searched refs:period (Results 51 - 75 of 541) sorted by relevance

1234567891011>>

/linux-master/drivers/pwm/
H A Dpwm-sun4i.c9 * and the currently running period is not guaranteed to be completed
131 state->period = DIV_ROUND_UP_ULL(NSEC_PER_SEC, clk_rate);
132 state->duty_cycle = DIV_ROUND_UP_ULL(state->period, 2);
164 state->period = DIV_ROUND_CLOSEST_ULL(tmp, clk_rate);
181 (state->period * clk_rate >= NSEC_PER_SEC) &&
182 (state->period * clk_rate < 2 * NSEC_PER_SEC) &&
193 * When not using any prescaler, the clock period in nanoseconds
197 div = clk_rate * state->period + NSEC_PER_SEC / 2;
213 div = div * state->period;
225 do_div(div, state->period);
237 u32 ctrl, duty = 0, period = 0, val; local
[all...]
H A Dpwm-atmel-tcb.c38 unsigned period; /* PWM period expressed in clk cycles */ member in struct:atmel_tcb_pwm_device
81 tcbpwm->period = 0;
102 &tcbpwm->period);
220 * If duty is 0 or equal to period there's no need to register
225 if (tcbpwm->duty != tcbpwm->period && tcbpwm->duty > 0) {
253 tcbpwm->period);
271 unsigned period; local
305 /* If period is too big return ERANGE error */
311 period
344 int duty_cycle, period; local
[all...]
H A Dpwm-atmel.c18 * - Instead of sleeping to wait for a completed period, the interrupt
64 u8 period; member in struct:atmel_pwm_registers
86 * the end of the currently running period. When such an update is
136 * Each channel that has its bit in ISR set started a new period since
197 unsigned long long cycles = state->period;
200 /* Calculate the period cycles and prescale value */
205 * The register for the period length is cfg.period_bits bits wide.
265 atmel_pwm->data->regs.period, cprd);
305 pwm->state.period == state->period) {
[all...]
H A Dpwm-hibvt.c102 u32 freq, period, duty; local
106 period = div_u64(freq * period_ns, 1000);
107 duty = div_u64(period * duty_cycle_ns, period_ns);
110 PWM_PERIOD_MASK, period);
141 state->period = div_u64(value * 1000, freq);
161 if (state->period != pwm->state.period ||
163 hibvt_pwm_config(chip, pwm, state->duty_cycle, state->period);
/linux-master/include/trace/events/
H A Drtc.h168 __field(ktime_t, period)
174 __entry->period = timer->period;
177 TP_printk("RTC timer:(%p) expires:%lld period:%lld",
178 __entry->timer, __entry->expires, __entry->period
/linux-master/include/scsi/
H A Dscsi_transport_spi.h19 int period; /* value in the PPR/SDTR command */ member in struct:spi_transport_attrs
62 #define spi_period(x) (((struct spi_transport_attrs *)&(x)->starget_data)->period)
144 int spi_populate_sync_msg(unsigned char *msg, int period, int offset);
145 int spi_populate_ppr_msg(unsigned char *msg, int period, int offset, int width,
/linux-master/tools/perf/util/
H A Devsel_config.h37 u64 period; member in union:evsel_config_term::__anon2073
/linux-master/sound/soc/sprd/
H A Dsprd-pcm-dma.h31 u32 period; member in struct:sprd_compr_params
/linux-master/samples/ftrace/
H A Dftrace-ops.c173 u64 period; local
222 period = ktime_to_ns(ktime_sub(end, start));
226 period, div_u64(period, nr_function_calls));
/linux-master/tools/perf/tests/shell/
H A Dtest_arm_spe_fork.sh28 perf record -o ${PERF_DATA} -e arm_spe/period=65536/ -vvv -- $TEST_PROGRAM > ${PERF_RECORD_LOG} 2>&1 &
/linux-master/arch/loongarch/kvm/
H A Dtimer.c55 unsigned long ticks, delta, period; local
118 period = cfg & CSR_TCFG_VAL;
120 delta = period - (delta % period);
149 * If period timer is fired, CSR TVAL will be reloaded from CSR TCFG
/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac5.c526 u64 period; local
554 period = cfg->period.tv_sec * 1000000000;
555 period += cfg->period.tv_nsec;
557 do_div(period, sub_second_inc);
559 if (period <= 1)
562 writel(period - 1, ioaddr + MAC_PPSx_INTERVAL(index));
564 period >>= 1;
565 if (period <
[all...]
/linux-master/drivers/ptp/
H A Dptp_dfl_tod.c174 u32 period, diff, rem, rem_period, adj_period; local
193 period = readl(base + TOD_PERIOD);
196 diff = (period - TOD_PERIOD_MIN) >> PERIOD_FRAC_OFFSET;
197 adj_period = period - (diff << PERIOD_FRAC_OFFSET);
199 rem_period = period - (rem << PERIOD_FRAC_OFFSET);
201 diff = (TOD_PERIOD_MAX - period) >> PERIOD_FRAC_OFFSET;
202 adj_period = period + (diff << PERIOD_FRAC_OFFSET);
204 rem_period = period + (rem << PERIOD_FRAC_OFFSET);
212 /* Adjust the period by count cycles to adjust the time */
216 /* If there is a remainder, adjust the period fo
[all...]
/linux-master/include/linux/
H A Dnmi.h216 void watchdog_update_hrtimer_threshold(u64 period);
218 static inline void watchdog_update_hrtimer_threshold(u64 period) { } argument
/linux-master/tools/perf/ui/browsers/
H A Dannotate-data.c39 dst->period += src->period;
180 u64 period = hist->period; local
181 double percent = total->period ? (100.0 * period / total->period) : 0;
188 ui_browser__printf(uib, " %10" PRIu64, period);
/linux-master/net/bridge/
H A Dbr_mrp_switchdev.c103 u32 interval, u8 max_miss, u32 period,
112 .period = period,
197 u32 interval, u8 max_miss, u32 period)
205 .period = period,
102 br_mrp_switchdev_send_ring_test(struct net_bridge *br, struct br_mrp *mrp, u32 interval, u8 max_miss, u32 period, bool monitor) argument
196 br_mrp_switchdev_send_in_test(struct net_bridge *br, struct br_mrp *mrp, u32 interval, u8 max_miss, u32 period) argument
/linux-master/drivers/iio/chemical/
H A Dsps30_i2c.c182 static int sps30_i2c_read_cleaning_period(struct sps30_state *state, __be32 *period) argument
184 return sps30_i2c_command(state, SPS30_I2C_PERIOD, NULL, 0, period, sizeof(*period));
187 static int sps30_i2c_write_cleaning_period(struct sps30_state *state, __be32 period) argument
189 return sps30_i2c_command(state, SPS30_I2C_PERIOD, &period, sizeof(period), NULL, 0);
H A Dsps30_serial.c323 static int sps30_serial_read_cleaning_period(struct sps30_state *state, __be32 *period) argument
329 period, sizeof(*period));
332 if (ret != sizeof(*period))
338 static int sps30_serial_write_cleaning_period(struct sps30_state *state, __be32 period) argument
342 memcpy(buf + 1, &period, sizeof(period));
/linux-master/drivers/iio/light/
H A Dveml6030.c96 * Return list of valid period values in seconds corresponding to
318 int ret, reg, period, x, y; local
332 period = y * (1 << ((reg >> 4) & 0x03));
334 *val = period / 1000000;
335 *val2 = period % 1000000;
343 int ret, period, x, y; local
351 period = val2 / y;
354 period = 1600000 / y;
356 period = 3200000 / y;
358 period
[all...]
/linux-master/drivers/comedi/drivers/
H A Dni_at_a2150.c241 * period, adjusts requested period to actual timing.
243 static int a2150_get_timing(struct comedi_device *dev, unsigned int *period, argument
260 /* make sure period is in available range */
261 if (*period < glb)
262 *period = glb;
263 if (*period > lub)
264 *period = lub;
266 /* we can multiply period by 1, 2, 4, or 8, using (1 << i) */
270 /* temp is the period i
[all...]
/linux-master/drivers/leds/
H A Dleds-lp3944.c18 * - period: from 0s to 1.6s
19 * - duty cycle: percentage of the period the led is on, from 0 to 100
52 /* period in ms */
95 * lp3944_dim_set_period() - Set the period for DIM status
99 * @period: period of a blink, that is a on/off cycle, expressed in ms.
101 static int lp3944_dim_set_period(struct i2c_client *client, u8 dim, u16 period) argument
114 /* Convert period to Prescaler value */
115 if (period > LP3944_PERIOD_MAX)
118 psc_value = (period * 25
228 u16 period; local
[all...]
/linux-master/lib/kunit/
H A Dexecutor.c74 const char *period = strchr(filter_glob, '.'); local
76 if (!period) {
86 parsed->suite_glob = kzalloc(period - filter_glob + 1, GFP_KERNEL);
90 parsed->test_glob = kzalloc(len - (period - filter_glob) + 1, GFP_KERNEL);
96 strncpy(parsed->suite_glob, filter_glob, period - filter_glob);
97 strncpy(parsed->test_glob, period + 1, len - (period - filter_glob));
/linux-master/drivers/hwmon/
H A Dultra45_env.c103 int rpm, period; local
107 period = (int) val << 8;
108 if (FAN_DATA_VALID(period))
109 rpm = FAN_PERIOD_TO_RPM(period);
122 int period; local
133 period = FAN_RPM_TO_PERIOD(rpm);
134 val = period >> 8;
/linux-master/drivers/scsi/aic7xxx/
H A Daic79xx_osm.c325 "period-delimited options string:\n"
648 spi_min_period(starget) = tinfo->user.period;
1691 if (tinfo->curr.period != tinfo->goal.period
1716 if (tinfo->curr.period == spi_period(starget)
1723 spi_period(starget) = tinfo->curr.period;
2381 static void ahd_linux_set_period(struct scsi_target *starget, int period) argument
2398 printk("%s: set period to %d\n", ahd_name(ahd), period);
2403 if (period <
2445 unsigned int period = 0; local
2481 unsigned int period = tinfo->goal.period; local
2523 unsigned int period = tinfo->goal.period; local
2562 unsigned int period = tinfo->goal.period; local
2602 unsigned int period = tinfo->goal.period; local
2638 unsigned int period = tinfo->goal.period; local
2674 unsigned int period = tinfo->goal.period; local
2718 unsigned int period = tinfo->goal.period; local
2768 unsigned int period = tinfo->goal.period; local
[all...]
/linux-master/drivers/clocksource/
H A Dtimer-keystone.c39 * @hz_period: cycles per HZ period
72 * @ period: cycles number to configure for
74 static int keystone_timer_config(u64 period, int mask) argument
90 /* reset counter to zero, set new period */
93 keystone_timer_writel(period & 0xffffffff, PRD12);
94 keystone_timer_writel(period >> 32, PRD34);

Completed in 531 milliseconds

1234567891011>>