/arch/mips/kernel/ |
D | cevt-sb1250.c | 56 static int sibyte_next_event(unsigned long delta, struct clock_event_device *cd) in sibyte_next_event() argument 74 struct clock_event_device *cd = dev_id; in sibyte_counter_handler() local 78 if (clockevent_state_periodic(cd)) in sibyte_counter_handler() 87 cd->event_handler(cd); in sibyte_counter_handler() 101 struct clock_event_device *cd = &per_cpu(sibyte_hpt_clockevent, cpu); in sb1250_clockevent_init() local 108 cd->name = name; in sb1250_clockevent_init() 109 cd->features = CLOCK_EVT_FEAT_PERIODIC | in sb1250_clockevent_init() 111 clockevent_set_clock(cd, V_SCD_TIMER_FREQ); in sb1250_clockevent_init() 112 cd->max_delta_ns = clockevent_delta2ns(0x7fffff, cd); in sb1250_clockevent_init() 113 cd->max_delta_ticks = 0x7fffff; in sb1250_clockevent_init() [all …]
|
D | cevt-bcm1480.c | 57 static int sibyte_next_event(unsigned long delta, struct clock_event_device *cd) in sibyte_next_event() argument 75 struct clock_event_device *cd = dev_id; in sibyte_counter_handler() local 79 if (clockevent_state_periodic(cd)) in sibyte_counter_handler() 88 cd->event_handler(cd); in sibyte_counter_handler() 102 struct clock_event_device *cd = &per_cpu(sibyte_hpt_clockevent, cpu); in sb1480_clockevent_init() local 108 cd->name = name; in sb1480_clockevent_init() 109 cd->features = CLOCK_EVT_FEAT_PERIODIC | in sb1480_clockevent_init() 111 clockevent_set_clock(cd, V_SCD_TIMER_FREQ); in sb1480_clockevent_init() 112 cd->max_delta_ns = clockevent_delta2ns(0x7fffff, cd); in sb1480_clockevent_init() 113 cd->max_delta_ticks = 0x7fffff; in sb1480_clockevent_init() [all …]
|
D | cevt-ds1287.c | 93 struct clock_event_device *cd = &ds1287_clockevent; in ds1287_interrupt() local 98 cd->event_handler(cd); in ds1287_interrupt() 111 struct clock_event_device *cd; in ds1287_clockevent_init() local 113 cd = &ds1287_clockevent; in ds1287_clockevent_init() 114 cd->rating = 100; in ds1287_clockevent_init() 115 cd->irq = irq; in ds1287_clockevent_init() 116 clockevent_set_clock(cd, 32768); in ds1287_clockevent_init() 117 cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd); in ds1287_clockevent_init() 118 cd->max_delta_ticks = 0x7fffffff; in ds1287_clockevent_init() 119 cd->min_delta_ns = clockevent_delta2ns(0x300, cd); in ds1287_clockevent_init() [all …]
|
D | cevt-gt641xx.c | 116 struct clock_event_device *cd = >641xx_timer0_clockevent; in gt641xx_timer0_interrupt() local 118 cd->event_handler(cd); in gt641xx_timer0_interrupt() 131 struct clock_event_device *cd; in gt641xx_timer0_clockevent_init() local 138 cd = >641xx_timer0_clockevent; in gt641xx_timer0_clockevent_init() 139 cd->rating = 200 + gt641xx_base_clock / 10000000; in gt641xx_timer0_clockevent_init() 140 clockevent_set_clock(cd, gt641xx_base_clock); in gt641xx_timer0_clockevent_init() 141 cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd); in gt641xx_timer0_clockevent_init() 142 cd->max_delta_ticks = 0x7fffffff; in gt641xx_timer0_clockevent_init() 143 cd->min_delta_ns = clockevent_delta2ns(0x300, cd); in gt641xx_timer0_clockevent_init() 144 cd->min_delta_ticks = 0x300; in gt641xx_timer0_clockevent_init() [all …]
|
D | cevt-txx9.c | 76 struct clock_event_device cd; member 91 container_of(evt, struct txx9_clock_event_device, cd); in txx9tmr_set_state_periodic() 107 container_of(evt, struct txx9_clock_event_device, cd); in txx9tmr_set_state_oneshot() 118 container_of(evt, struct txx9_clock_event_device, cd); in txx9tmr_set_state_shutdown() 129 container_of(evt, struct txx9_clock_event_device, cd); in txx9tmr_tick_resume() 142 container_of(evt, struct txx9_clock_event_device, cd); in txx9tmr_set_next_event() 153 .cd = { 169 struct clock_event_device *cd = &txx9_cd->cd; in txx9tmr_interrupt() local 173 cd->event_handler(cd); in txx9tmr_interrupt() 187 struct clock_event_device *cd = &txx9_clock_event_device.cd; in txx9_clockevent_init() local [all …]
|
D | cevt-r4k.c | 132 struct clock_event_device *cd; in c0_compare_interrupt() local 152 cd = &per_cpu(mips_clockevent_device, cpu); in c0_compare_interrupt() 153 cd->event_handler(cd); in c0_compare_interrupt() 256 struct clock_event_device *cd; in r4k_clockevent_init() local 272 cd = &per_cpu(mips_clockevent_device, cpu); in r4k_clockevent_init() 274 cd->name = "MIPS"; in r4k_clockevent_init() 275 cd->features = CLOCK_EVT_FEAT_ONESHOT | in r4k_clockevent_init() 281 cd->rating = 300; in r4k_clockevent_init() 282 cd->irq = irq; in r4k_clockevent_init() 283 cd->cpumask = cpumask_of(cpu); in r4k_clockevent_init() [all …]
|
/arch/arm/mach-omap2/ |
D | clockdomain.c | 105 struct clkdm_dep *cd; in _clkdm_deps_lookup() local 110 for (cd = deps; cd->clkdm_name; cd++) { in _clkdm_deps_lookup() 111 if (!cd->clkdm && cd->clkdm_name) in _clkdm_deps_lookup() 112 cd->clkdm = _clkdm_lookup(cd->clkdm_name); in _clkdm_deps_lookup() 114 if (cd->clkdm == clkdm) in _clkdm_deps_lookup() 118 if (!cd->clkdm_name) in _clkdm_deps_lookup() 121 return cd; in _clkdm_deps_lookup() 168 struct clkdm_dep *cd; in _resolve_clkdm_deps() local 170 for (cd = clkdm_deps; cd && cd->clkdm_name; cd++) { in _resolve_clkdm_deps() 171 if (cd->clkdm) in _resolve_clkdm_deps() [all …]
|
D | prm2xxx_3xxx.c | 221 struct clkdm_dep *cd; in omap2_clkdm_clear_all_wkdeps() local 224 for (cd = clkdm->wkdep_srcs; cd && cd->clkdm_name; cd++) { in omap2_clkdm_clear_all_wkdeps() 225 if (!cd->clkdm) in omap2_clkdm_clear_all_wkdeps() 229 mask |= 1 << cd->clkdm->dep_bit; in omap2_clkdm_clear_all_wkdeps() 230 cd->wkdep_usecount = 0; in omap2_clkdm_clear_all_wkdeps()
|
/arch/mips/loongson64/loongson-3/ |
D | hpet.c | 176 struct clock_event_device *cd; in hpet_irq_handler() local 183 cd = &per_cpu(hpet_clockevent_device, cpu); in hpet_irq_handler() 184 cd->event_handler(cd); in hpet_irq_handler() 228 struct clock_event_device *cd; in setup_hpet_timer() local 232 cd = &per_cpu(hpet_clockevent_device, cpu); in setup_hpet_timer() 233 cd->name = "hpet"; in setup_hpet_timer() 234 cd->rating = 100; in setup_hpet_timer() 235 cd->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; in setup_hpet_timer() 236 cd->set_state_shutdown = hpet_set_state_shutdown; in setup_hpet_timer() 237 cd->set_state_periodic = hpet_set_state_periodic; in setup_hpet_timer() [all …]
|
/arch/mips/alchemy/common/ |
D | time.c | 49 struct clock_event_device *cd) in au1x_rtcmatch2_set_next_event() argument 62 struct clock_event_device *cd = dev_id; in au1x_rtcmatch2_irq() local 63 cd->event_handler(cd); in au1x_rtcmatch2_irq() 84 struct clock_event_device *cd = &au1x_rtcmatch2_clockdev; in alchemy_time_init() local 126 cd->shift = 32; in alchemy_time_init() 127 cd->mult = div_sc(32768, NSEC_PER_SEC, cd->shift); in alchemy_time_init() 128 cd->max_delta_ns = clockevent_delta2ns(0xffffffff, cd); in alchemy_time_init() 129 cd->max_delta_ticks = 0xffffffff; in alchemy_time_init() 130 cd->min_delta_ns = clockevent_delta2ns(9, cd); in alchemy_time_init() 131 cd->min_delta_ticks = 9; /* ~0.28ms */ in alchemy_time_init() [all …]
|
/arch/mips/cavium-octeon/ |
D | octeon-irq.c | 101 struct octeon_ciu_chip_data *cd; in octeon_irq_set_ciu_mapping() local 103 cd = kzalloc(sizeof(*cd), GFP_KERNEL); in octeon_irq_set_ciu_mapping() 104 if (!cd) in octeon_irq_set_ciu_mapping() 109 cd->line = line; in octeon_irq_set_ciu_mapping() 110 cd->bit = bit; in octeon_irq_set_ciu_mapping() 111 cd->gpio_line = gpio_line; in octeon_irq_set_ciu_mapping() 113 irq_set_chip_data(irq, cd); in octeon_irq_set_ciu_mapping() 121 struct octeon_ciu_chip_data *cd = irq_data_get_irq_chip_data(data); in octeon_irq_free_cd() local 124 kfree(cd); in octeon_irq_free_cd() 163 struct octeon_core_chip_data *cd = irq_data_get_irq_chip_data(data); in octeon_irq_core_ack() local [all …]
|
/arch/mips/sgi-ip27/ |
D | ip27-timer.c | 60 struct clock_event_device *cd = &per_cpu(hub_rt_clockevent, cpu); in hub_rt_counter_handler() local 67 cd->event_handler(cd); in hub_rt_counter_handler() 93 struct clock_event_device *cd = &per_cpu(hub_rt_clockevent, cpu); in hub_rt_clock_event_init() local 97 cd->name = name; in hub_rt_clock_event_init() 98 cd->features = CLOCK_EVT_FEAT_ONESHOT; in hub_rt_clock_event_init() 99 clockevent_set_clock(cd, CYCLES_PER_SEC); in hub_rt_clock_event_init() 100 cd->max_delta_ns = clockevent_delta2ns(0xfffffffffffff, cd); in hub_rt_clock_event_init() 101 cd->max_delta_ticks = 0xfffffffffffff; in hub_rt_clock_event_init() 102 cd->min_delta_ns = clockevent_delta2ns(0x300, cd); in hub_rt_clock_event_init() 103 cd->min_delta_ticks = 0x300; in hub_rt_clock_event_init() [all …]
|
/arch/mips/loongson32/common/ |
D | time.c | 118 struct clock_event_device *cd = devid; in ls1x_clockevent_isr() local 121 cd->event_handler(cd); in ls1x_clockevent_isr() 126 static int ls1x_clockevent_set_state_periodic(struct clock_event_device *cd) in ls1x_clockevent_set_state_periodic() argument 137 static int ls1x_clockevent_tick_resume(struct clock_event_device *cd) in ls1x_clockevent_tick_resume() argument 146 static int ls1x_clockevent_set_state_shutdown(struct clock_event_device *cd) in ls1x_clockevent_set_state_shutdown() argument 157 struct clock_event_device *cd) in ls1x_clockevent_set_next() argument 188 struct clock_event_device *cd = &ls1x_clockevent; in ls1x_time_init() local 196 clockevent_set_clock(cd, mips_hpt_frequency); in ls1x_time_init() 197 cd->max_delta_ns = clockevent_delta2ns(0xffffff, cd); in ls1x_time_init() 198 cd->max_delta_ticks = 0xffffff; in ls1x_time_init() [all …]
|
/arch/mips/paravirt/ |
D | paravirt-irq.c | 38 struct core_chip_data *cd = irq_data_get_irq_chip_data(data); in irq_core_ack() local 39 unsigned int bit = cd->bit; in irq_core_ack() 54 struct core_chip_data *cd = irq_data_get_irq_chip_data(data); in irq_core_eoi() local 61 set_c0_status(0x100 << cd->bit); in irq_core_eoi() 67 struct core_chip_data *cd = irq_data_get_irq_chip_data(data); in irq_core_set_enable_local() local 68 unsigned int mask = 0x100 << cd->bit; in irq_core_set_enable_local() 73 if (cd->desired_en) in irq_core_set_enable_local() 82 struct core_chip_data *cd = irq_data_get_irq_chip_data(data); in irq_core_disable() local 83 cd->desired_en = false; in irq_core_disable() 88 struct core_chip_data *cd = irq_data_get_irq_chip_data(data); in irq_core_enable() local [all …]
|
/arch/c6x/platforms/ |
D | timer64.c | 161 struct clock_event_device *cd = &t64_clockevent_device; in timer_interrupt() local 163 cd->event_handler(cd); in timer_interrupt() 177 struct clock_event_device *cd = &t64_clockevent_device; in timer64_init() local 209 cd->irq = irq_of_parse_and_map(np, 0); in timer64_init() 210 if (cd->irq == NO_IRQ) { in timer64_init() 229 pr_debug("%pOF: Timer irq=%d.\n", np, cd->irq); in timer64_init() 231 clockevents_calc_mult_shift(cd, c6x_core_freq / TIMER_DIVISOR, 5); in timer64_init() 233 cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd); in timer64_init() 234 cd->max_delta_ticks = 0x7fffffff; in timer64_init() 235 cd->min_delta_ns = clockevent_delta2ns(250, cd); in timer64_init() [all …]
|
/arch/mips/loongson64/common/cs5536/ |
D | cs5536_mfgpt.c | 116 struct clock_event_device *cd = &mfgpt_clockevent; in setup_mfgpt0_timer() local 119 cd->cpumask = cpumask_of(cpu); in setup_mfgpt0_timer() 120 clockevent_set_clock(cd, MFGPT_TICK_RATE); in setup_mfgpt0_timer() 121 cd->max_delta_ns = clockevent_delta2ns(0xffff, cd); in setup_mfgpt0_timer() 122 cd->max_delta_ticks = 0xffff; in setup_mfgpt0_timer() 123 cd->min_delta_ns = clockevent_delta2ns(0xf, cd); in setup_mfgpt0_timer() 124 cd->min_delta_ticks = 0xf; in setup_mfgpt0_timer() 135 clockevents_register_device(cd); in setup_mfgpt0_timer()
|
/arch/arm/mach-spear/ |
D | pl080.c | 30 int pl080_get_signal(const struct pl08x_channel_data *cd) in pl080_get_signal() argument 32 unsigned int signal = cd->min_signal, val; in pl080_get_signal() 39 (signals[signal].val != cd->muxval)) { in pl080_get_signal() 54 val |= cd->muxval << (signal * 2); in pl080_get_signal() 59 signals[signal].val = cd->muxval; in pl080_get_signal() 65 void pl080_put_signal(const struct pl08x_channel_data *cd, int signal) in pl080_put_signal() argument
|
D | pl080.h | 18 int pl080_get_signal(const struct pl08x_channel_data *cd); 19 void pl080_put_signal(const struct pl08x_channel_data *cd, int signal);
|
/arch/mips/jazz/ |
D | irq.c | 122 struct clock_event_device *cd = dev_id; in r4030_timer_interrupt() local 124 cd->event_handler(cd); in r4030_timer_interrupt() 136 struct clock_event_device *cd = &r4030_clockevent; in plat_time_init() local 142 cd->cpumask = cpumask_of(cpu); in plat_time_init() 143 clockevents_register_device(cd); in plat_time_init() 144 action->dev_id = cd; in plat_time_init()
|
/arch/mips/sni/ |
D | time.c | 48 struct clock_event_device *cd = dev_id; in a20r_interrupt() local 53 cd->event_handler(cd); in a20r_interrupt() 70 struct clock_event_device *cd = &a20r_clockevent_device; in sni_a20r_timer_setup() local 74 cd->cpumask = cpumask_of(cpu); in sni_a20r_timer_setup() 75 clockevents_register_device(cd); in sni_a20r_timer_setup() 76 action->dev_id = cd; in sni_a20r_timer_setup()
|
/arch/s390/kernel/ |
D | time.c | 140 struct clock_event_device *cd; in clock_comparator_work() local 143 cd = this_cpu_ptr(&comparators); in clock_comparator_work() 144 cd->event_handler(cd); in clock_comparator_work() 161 struct clock_event_device *cd; in init_cpu_timer() local 168 cd = &per_cpu(comparators, cpu); in init_cpu_timer() 169 cd->name = "comparator"; in init_cpu_timer() 170 cd->features = CLOCK_EVT_FEAT_ONESHOT; in init_cpu_timer() 171 cd->mult = 16777; in init_cpu_timer() 172 cd->shift = 12; in init_cpu_timer() 173 cd->min_delta_ns = 1; in init_cpu_timer() [all …]
|
/arch/arm/mach-lpc32xx/ |
D | phy3250.c | 34 static int pl08x_get_signal(const struct pl08x_channel_data *cd) in pl08x_get_signal() argument 36 return cd->min_signal; in pl08x_get_signal() 39 static void pl08x_put_signal(const struct pl08x_channel_data *cd, int ch) in pl08x_put_signal() argument
|
/arch/x86/crypto/ |
D | twofish-x86_64-asm_64-3way.S | 84 #define swap_ab_with_cd(ab, cd, tmp) \ argument 85 movq cd, tmp; \ 86 movq ab, cd; \ 93 #define g1g2_3(ab, cd, Tx0, Tx1, Tx2, Tx3, Ty0, Ty1, Ty2, Ty3, x, y) \ argument 107 swap_ab_with_cd(ab ## 0, cd ## 0, RT0); \ 111 swap_ab_with_cd(ab ## 1, cd ## 1, RT0); \ 115 swap_ab_with_cd(ab ## 2, cd ## 2, RT0); 143 #define encrypt_round3(ab, cd, n) \ argument 144 g1g2_3(ab, cd, s0, s1, s2, s3, s0, s1, s2, s3, RX, RY); \ 157 #define encrypt_cycle3(ab, cd, n) \ argument [all …]
|
/arch/mips/include/asm/ |
D | time.h | 67 static inline void clockevent_set_clock(struct clock_event_device *cd, in clockevent_set_clock() argument 70 clockevents_calc_mult_shift(cd, clock, 4); in clockevent_set_clock()
|
/arch/arm/boot/dts/ |
D | s3c2416-smdk2416.dts | 44 broken-cd; 53 cd-gpios = <&gpf 1 0>; 54 cd-inverted;
|