/drivers/clocksource/ |
D | renesas-ostm.c | 84 struct clock_event_device *ced) in ostm_clock_event_next() argument 86 struct timer_of *to = to_timer_of(ced); in ostm_clock_event_next() 97 static int ostm_shutdown(struct clock_event_device *ced) in ostm_shutdown() argument 99 struct timer_of *to = to_timer_of(ced); in ostm_shutdown() 105 static int ostm_set_periodic(struct clock_event_device *ced) in ostm_set_periodic() argument 107 struct timer_of *to = to_timer_of(ced); in ostm_set_periodic() 109 if (clockevent_state_oneshot(ced) || clockevent_state_periodic(ced)) in ostm_set_periodic() 119 static int ostm_set_oneshot(struct clock_event_device *ced) in ostm_set_oneshot() argument 121 struct timer_of *to = to_timer_of(ced); in ostm_set_oneshot() 130 struct clock_event_device *ced = dev_id; in ostm_timer_interrupt() local [all …]
|
D | jcore-pit.c | 36 struct clock_event_device ced; member 79 static int jcore_pit_set_state_shutdown(struct clock_event_device *ced) in jcore_pit_set_state_shutdown() argument 81 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced); in jcore_pit_set_state_shutdown() 86 static int jcore_pit_set_state_oneshot(struct clock_event_device *ced) in jcore_pit_set_state_oneshot() argument 88 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced); in jcore_pit_set_state_oneshot() 93 static int jcore_pit_set_state_periodic(struct clock_event_device *ced) in jcore_pit_set_state_periodic() argument 95 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced); in jcore_pit_set_state_periodic() 101 struct clock_event_device *ced) in jcore_pit_set_next_event() argument 103 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced); in jcore_pit_set_next_event() 119 clockevents_config_and_register(&pit->ced, freq, 1, ULONG_MAX); in jcore_pit_local_init() [all …]
|
D | h8300_timer8.c | 39 struct clock_event_device ced; member 49 if (clockevent_state_oneshot(&p->ced)) in timer8_interrupt() 52 p->ced.event_handler(&p->ced); in timer8_interrupt() 98 static inline struct timer8_priv *ced_to_priv(struct clock_event_device *ced) in ced_to_priv() argument 100 return container_of(ced, struct timer8_priv, ced); in ced_to_priv() 109 static int timer8_clock_event_shutdown(struct clock_event_device *ced) in timer8_clock_event_shutdown() argument 111 timer8_stop(ced_to_priv(ced)); in timer8_clock_event_shutdown() 115 static int timer8_clock_event_periodic(struct clock_event_device *ced) in timer8_clock_event_periodic() argument 117 struct timer8_priv *p = ced_to_priv(ced); in timer8_clock_event_periodic() 119 pr_info("%s: used for periodic clock events\n", ced->name); in timer8_clock_event_periodic() [all …]
|
D | sh_tmu.c | 46 struct clock_event_device ced; member 238 if (clockevent_state_oneshot(&ch->ced)) in sh_tmu_interrupt() 244 ch->ced.event_handler(&ch->ced); in sh_tmu_interrupt() 334 static struct sh_tmu_channel *ced_to_sh_tmu(struct clock_event_device *ced) in ced_to_sh_tmu() argument 336 return container_of(ced, struct sh_tmu_channel, ced); in ced_to_sh_tmu() 349 static int sh_tmu_clock_event_shutdown(struct clock_event_device *ced) in sh_tmu_clock_event_shutdown() argument 351 struct sh_tmu_channel *ch = ced_to_sh_tmu(ced); in sh_tmu_clock_event_shutdown() 353 if (clockevent_state_oneshot(ced) || clockevent_state_periodic(ced)) in sh_tmu_clock_event_shutdown() 358 static int sh_tmu_clock_event_set_state(struct clock_event_device *ced, in sh_tmu_clock_event_set_state() argument 361 struct sh_tmu_channel *ch = ced_to_sh_tmu(ced); in sh_tmu_clock_event_set_state() [all …]
|
D | timer-imx-gpt.c | 69 struct clock_event_device ced; member 81 struct clock_event_device *ced); 84 static inline struct imx_timer *to_imx_timer(struct clock_event_device *ced) in to_imx_timer() argument 86 return container_of(ced, struct imx_timer, ced); in to_imx_timer() 173 struct clock_event_device *ced) in mx1_2_set_next_event() argument 175 struct imx_timer *imxtm = to_imx_timer(ced); in mx1_2_set_next_event() 187 struct clock_event_device *ced) in v2_set_next_event() argument 189 struct imx_timer *imxtm = to_imx_timer(ced); in v2_set_next_event() 201 static int mxc_shutdown(struct clock_event_device *ced) in mxc_shutdown() argument 203 struct imx_timer *imxtm = to_imx_timer(ced); in mxc_shutdown() [all …]
|
D | sh_mtu2.c | 38 struct clock_event_device ced; member 266 ch->ced.event_handler(&ch->ced); in sh_mtu2_interrupt() 270 static struct sh_mtu2_channel *ced_to_sh_mtu2(struct clock_event_device *ced) in ced_to_sh_mtu2() argument 272 return container_of(ced, struct sh_mtu2_channel, ced); in ced_to_sh_mtu2() 275 static int sh_mtu2_clock_event_shutdown(struct clock_event_device *ced) in sh_mtu2_clock_event_shutdown() argument 277 struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced); in sh_mtu2_clock_event_shutdown() 279 if (clockevent_state_periodic(ced)) in sh_mtu2_clock_event_shutdown() 285 static int sh_mtu2_clock_event_set_periodic(struct clock_event_device *ced) in sh_mtu2_clock_event_set_periodic() argument 287 struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced); in sh_mtu2_clock_event_set_periodic() 289 if (clockevent_state_periodic(ced)) in sh_mtu2_clock_event_set_periodic() [all …]
|
D | dw_apb_timer.c | 40 return container_of(evt, struct dw_apb_clock_event_device, ced); in ced_to_dw_apb_ced() 255 clockevents_calc_mult_shift(&dw_ced->ced, freq, APBT_MIN_PERIOD); in dw_apb_clockevent_init() 256 dw_ced->ced.max_delta_ns = clockevent_delta2ns(0x7fffffff, in dw_apb_clockevent_init() 257 &dw_ced->ced); in dw_apb_clockevent_init() 258 dw_ced->ced.max_delta_ticks = 0x7fffffff; in dw_apb_clockevent_init() 259 dw_ced->ced.min_delta_ns = clockevent_delta2ns(5000, &dw_ced->ced); in dw_apb_clockevent_init() 260 dw_ced->ced.min_delta_ticks = 5000; in dw_apb_clockevent_init() 261 dw_ced->ced.cpumask = cpu < 0 ? cpu_possible_mask : cpumask_of(cpu); in dw_apb_clockevent_init() 262 dw_ced->ced.features = CLOCK_EVT_FEAT_PERIODIC | in dw_apb_clockevent_init() 264 dw_ced->ced.set_state_shutdown = apbt_shutdown; in dw_apb_clockevent_init() [all …]
|
D | em_sti.c | 32 struct clock_event_device ced; member 144 p->ced.event_handler(&p->ced); in em_sti_interrupt() 228 static struct em_sti_priv *ced_to_em_sti(struct clock_event_device *ced) in ced_to_em_sti() argument 230 return container_of(ced, struct em_sti_priv, ced); in ced_to_em_sti() 233 static int em_sti_clock_event_shutdown(struct clock_event_device *ced) in em_sti_clock_event_shutdown() argument 235 struct em_sti_priv *p = ced_to_em_sti(ced); in em_sti_clock_event_shutdown() 240 static int em_sti_clock_event_set_oneshot(struct clock_event_device *ced) in em_sti_clock_event_set_oneshot() argument 242 struct em_sti_priv *p = ced_to_em_sti(ced); in em_sti_clock_event_set_oneshot() 250 struct clock_event_device *ced) in em_sti_clock_event_next() argument 252 struct em_sti_priv *p = ced_to_em_sti(ced); in em_sti_clock_event_next() [all …]
|
D | sh_cmt.c | 106 struct clock_event_device ced; member 552 if (clockevent_state_oneshot(&ch->ced)) { in sh_cmt_interrupt() 557 ch->ced.event_handler(&ch->ced); in sh_cmt_interrupt() 568 if ((clockevent_state_shutdown(&ch->ced)) in sh_cmt_interrupt() 721 static struct sh_cmt_channel *ced_to_sh_cmt(struct clock_event_device *ced) in ced_to_sh_cmt() argument 723 return container_of(ced, struct sh_cmt_channel, ced); in ced_to_sh_cmt() 736 static int sh_cmt_clock_event_shutdown(struct clock_event_device *ced) in sh_cmt_clock_event_shutdown() argument 738 struct sh_cmt_channel *ch = ced_to_sh_cmt(ced); in sh_cmt_clock_event_shutdown() 744 static int sh_cmt_clock_event_set_state(struct clock_event_device *ced, in sh_cmt_clock_event_set_state() argument 747 struct sh_cmt_channel *ch = ced_to_sh_cmt(ced); in sh_cmt_clock_event_set_state() [all …]
|
D | numachip.c | 30 static int numachip2_set_next_event(unsigned long delta, struct clock_event_device *ced) in numachip2_set_next_event() argument 52 struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced); in numachip_timer_interrupt() local 54 ced->event_handler(ced); in numachip_timer_interrupt() 60 struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced); in numachip_timer_each() local 67 *ced = numachip2_clockevent; in numachip_timer_each() 68 ced->cpumask = cpumask_of(smp_processor_id()); in numachip_timer_each() 69 clockevents_register_device(ced); in numachip_timer_each()
|
D | dw_apb_timer_of.c | 67 struct dw_apb_clock_event_device *ced; in add_clockevent() local 76 ced = dw_apb_clockevent_init(-1, event_timer->name, 300, iobase, irq, in add_clockevent() 78 if (!ced) in add_clockevent() 81 dw_apb_clockevent_register(ced); in add_clockevent()
|
/drivers/char/hw_random/ |
D | stm32-rng.c | 35 bool ced; member 92 if (priv->ced) in stm32_rng_init() 144 priv->ced = of_property_read_bool(np, "clock-error-detect"); in stm32_rng_probe()
|