/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() 99 struct clock_event_device *cd = &per_cpu(sibyte_hpt_clockevent, cpu); in sb1250_clockevent_init() local 107 cd->name = name; in sb1250_clockevent_init() 108 cd->features = CLOCK_EVT_FEAT_PERIODIC | in sb1250_clockevent_init() 110 clockevent_set_clock(cd, V_SCD_TIMER_FREQ); in sb1250_clockevent_init() 111 cd->max_delta_ns = clockevent_delta2ns(0x7fffff, cd); in sb1250_clockevent_init() 112 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() 100 struct clock_event_device *cd = &per_cpu(sibyte_hpt_clockevent, cpu); in sb1480_clockevent_init() local 107 cd->name = name; in sb1480_clockevent_init() 108 cd->features = CLOCK_EVT_FEAT_PERIODIC | in sb1480_clockevent_init() 110 clockevent_set_clock(cd, V_SCD_TIMER_FREQ); in sb1480_clockevent_init() 111 cd->max_delta_ns = clockevent_delta2ns(0x7fffff, cd); in sb1480_clockevent_init() 112 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() 106 struct clock_event_device *cd; in ds1287_clockevent_init() local 108 cd = &ds1287_clockevent; in ds1287_clockevent_init() 109 cd->rating = 100; in ds1287_clockevent_init() 110 cd->irq = irq; in ds1287_clockevent_init() 111 clockevent_set_clock(cd, 32768); in ds1287_clockevent_init() 112 cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd); in ds1287_clockevent_init() 113 cd->max_delta_ticks = 0x7fffffff; in ds1287_clockevent_init() 114 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() 125 struct clock_event_device *cd; in gt641xx_timer0_clockevent_init() local 132 cd = >641xx_timer0_clockevent; in gt641xx_timer0_clockevent_init() 133 cd->rating = 200 + gt641xx_base_clock / 10000000; in gt641xx_timer0_clockevent_init() 134 clockevent_set_clock(cd, gt641xx_base_clock); in gt641xx_timer0_clockevent_init() 135 cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd); in gt641xx_timer0_clockevent_init() 136 cd->max_delta_ticks = 0x7fffffff; in gt641xx_timer0_clockevent_init() 137 cd->min_delta_ns = clockevent_delta2ns(0x300, cd); in gt641xx_timer0_clockevent_init() 138 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() 180 struct clock_event_device *cd = &txx9_clock_event_device.cd; in txx9_clockevent_init() local [all …]
|
D | cevt-r4k.c | 133 struct clock_event_device *cd; in c0_compare_interrupt() local 153 cd = &per_cpu(mips_clockevent_device, cpu); in c0_compare_interrupt() 154 cd->event_handler(cd); in c0_compare_interrupt() 262 struct clock_event_device *cd; in r4k_cpufreq_callback() local 274 cd = &per_cpu(mips_clockevent_device, cpu); in r4k_cpufreq_callback() 276 clockevents_update_freq(cd, rate); in r4k_cpufreq_callback() 301 struct clock_event_device *cd; in r4k_clockevent_init() local 317 cd = &per_cpu(mips_clockevent_device, cpu); in r4k_clockevent_init() 319 cd->name = "MIPS"; in r4k_clockevent_init() 320 cd->features = CLOCK_EVT_FEAT_ONESHOT | 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/sgi-ip27/ |
D | ip27-timer.c | 49 struct clock_event_device *cd = &per_cpu(hub_rt_clockevent, cpu); in hub_rt_counter_handler() local 56 cd->event_handler(cd); in hub_rt_counter_handler() 82 struct clock_event_device *cd = &per_cpu(hub_rt_clockevent, cpu); in hub_rt_clock_event_init() local 86 cd->name = name; in hub_rt_clock_event_init() 87 cd->features = CLOCK_EVT_FEAT_ONESHOT; in hub_rt_clock_event_init() 88 clockevent_set_clock(cd, CYCLES_PER_SEC); in hub_rt_clock_event_init() 89 cd->max_delta_ns = clockevent_delta2ns(0xfffffffffffff, cd); in hub_rt_clock_event_init() 90 cd->max_delta_ticks = 0xfffffffffffff; in hub_rt_clock_event_init() 91 cd->min_delta_ns = clockevent_delta2ns(0x300, cd); in hub_rt_clock_event_init() 92 cd->min_delta_ticks = 0x300; in hub_rt_clock_event_init() [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() 77 struct clock_event_device *cd = &au1x_rtcmatch2_clockdev; in alchemy_time_init() local 119 cd->shift = 32; in alchemy_time_init() 120 cd->mult = div_sc(32768, NSEC_PER_SEC, cd->shift); in alchemy_time_init() 121 cd->max_delta_ns = clockevent_delta2ns(0xffffffff, cd); in alchemy_time_init() 122 cd->max_delta_ticks = 0xffffffff; in alchemy_time_init() 123 cd->min_delta_ns = clockevent_delta2ns(9, cd); in alchemy_time_init() 124 cd->min_delta_ticks = 9; /* ~0.28ms */ in alchemy_time_init() [all …]
|
/arch/mips/loongson64/ |
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() 223 struct clock_event_device *cd; in setup_hpet_timer() local 227 cd = &per_cpu(hpet_clockevent_device, cpu); in setup_hpet_timer() 228 cd->name = "hpet"; in setup_hpet_timer() 229 cd->rating = 100; in setup_hpet_timer() 230 cd->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; in setup_hpet_timer() 231 cd->set_state_shutdown = hpet_set_state_shutdown; in setup_hpet_timer() 232 cd->set_state_periodic = hpet_set_state_periodic; in setup_hpet_timer() [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/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() 170 struct clock_event_device *cd = &t64_clockevent_device; in timer64_init() local 202 cd->irq = irq_of_parse_and_map(np, 0); in timer64_init() 203 if (cd->irq == NO_IRQ) { in timer64_init() 222 pr_debug("%pOF: Timer irq=%d.\n", np, cd->irq); in timer64_init() 224 clockevents_calc_mult_shift(cd, c6x_core_freq / TIMER_DIVISOR, 5); in timer64_init() 226 cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd); in timer64_init() 227 cd->max_delta_ticks = 0x7fffffff; in timer64_init() 228 cd->min_delta_ns = clockevent_delta2ns(250, cd); in timer64_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 181 struct clock_event_device *cd = &ls1x_clockevent; in ls1x_time_init() local 189 clockevent_set_clock(cd, mips_hpt_frequency); in ls1x_time_init() 190 cd->max_delta_ns = clockevent_delta2ns(0xffffff, cd); in ls1x_time_init() 191 cd->max_delta_ticks = 0xffffff; in ls1x_time_init() [all …]
|
/arch/mips/loongson2ef/common/cs5536/ |
D | cs5536_mfgpt.c | 110 struct clock_event_device *cd = &mfgpt_clockevent; in setup_mfgpt0_timer() local 113 cd->cpumask = cpumask_of(cpu); in setup_mfgpt0_timer() 114 clockevent_set_clock(cd, MFGPT_TICK_RATE); in setup_mfgpt0_timer() 115 cd->max_delta_ns = clockevent_delta2ns(0xffff, cd); in setup_mfgpt0_timer() 116 cd->max_delta_ticks = 0xffff; in setup_mfgpt0_timer() 117 cd->min_delta_ns = clockevent_delta2ns(0xf, cd); in setup_mfgpt0_timer() 118 cd->min_delta_ticks = 0xf; in setup_mfgpt0_timer() 129 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() 130 struct clock_event_device *cd = &r4030_clockevent; in plat_time_init() local 135 cd->cpumask = cpumask_of(cpu); in plat_time_init() 136 clockevents_register_device(cd); in plat_time_init() 138 "R4030 timer", 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() 64 struct clock_event_device *cd = &a20r_clockevent_device; in sni_a20r_timer_setup() local 67 cd->cpumask = cpumask_of(cpu); in sni_a20r_timer_setup() 68 clockevents_register_device(cd); in sni_a20r_timer_setup() 70 IRQF_PERCPU | IRQF_TIMER, "a20r-timer", cd)) in sni_a20r_timer_setup()
|
/arch/s390/kernel/ |
D | time.c | 134 struct clock_event_device *cd; in clock_comparator_work() local 137 cd = this_cpu_ptr(&comparators); in clock_comparator_work() 138 cd->event_handler(cd); in clock_comparator_work() 155 struct clock_event_device *cd; in init_cpu_timer() local 162 cd = &per_cpu(comparators, cpu); in init_cpu_timer() 163 cd->name = "comparator"; in init_cpu_timer() 164 cd->features = CLOCK_EVT_FEAT_ONESHOT; in init_cpu_timer() 165 cd->mult = 16777; in init_cpu_timer() 166 cd->shift = 12; in init_cpu_timer() 167 cd->min_delta_ns = 1; in init_cpu_timer() [all …]
|
/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 …]
|
D | camellia-x86_64-asm_64.S | 89 #define roundsm(ab, subkey, cd) \ argument 92 xor2ror16(sp00444404, sp03303033, RT0, RT1, ab ## 0, cd ## 0); \ 94 xor2ror16(sp11101110, sp44044404, RT0, RT1, ab ## 0, cd ## 0); \ 97 xorq RT2, cd ## 0; 266 #define roundsm2(ab, subkey, cd) \ argument 268 xorq RT2, cd ## 1; \ 270 xor2ror16(sp00444404, sp03303033, RT0, RT1, ab ## 0, cd ## 0); \ 272 xor2ror16(sp11101110, sp44044404, RT0, RT1, ab ## 0, cd ## 0); \ 275 xor2ror16(sp00444404, sp03303033, RT0, RT1, ab ## 1, cd ## 1); \ 276 xorq RT2, cd ## 0; \ [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/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 | 37 broken-cd; 46 cd-gpios = <&gpf 1 0>; 47 cd-inverted;
|