/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/shared/ |
H A D | nflash.c | 267 uint32 cpu_freq, clk; local 290 clk = cpu_freq / 1000000; 298 w0 = nflash_ns_to_cycle(w0, clk); 299 w1 = nflash_ns_to_cycle(w1, clk); 300 w2 = nflash_ns_to_cycle(w2, clk); 301 w3 = nflash_ns_to_cycle(w3, clk); 302 w4 = nflash_ns_to_cycle(w4, clk) - 1;
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/include/ |
H A D | nflash.h | 31 #define nflash_ns_to_cycle(ns, clk) (((ns*1000*clk)/1000000) + 1)
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/char/watchdog/ |
H A D | omap_wdt.c | 41 #include <linux/clk.h> 57 static struct clk *armwdt_ck = NULL; 58 static struct clk *mpu_wdt_ick = NULL; 59 static struct clk *mpu_wdt_fck = NULL;
|
H A D | pnx4008_wdt.c | 29 #include <linux/clk.h> 94 struct clk *wdt_clk;
|
H A D | s3c2410_wdt.c | 48 #include <linux/clk.h> 97 static struct clk *wdt_clock;
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/i2c/busses/ |
H A D | i2c-at91.c | 25 #include <linux/clk.h> 37 static struct clk *twi_clk;
|
H A D | i2c-omap.c | 35 #include <linux/clk.h> 122 struct clk *iclk; /* Interface clock */ 123 struct clk *fclk; /* Functional clock */ 216 struct clk *armxor_ck;
|
H A D | i2c-s3c2410.c | 35 #include <linux/clk.h> 69 struct clk *clk; member in struct:s3c24xx_i2c 652 unsigned long clkin = clk_get_rate(i2c->clk); 762 i2c->clk = clk_get(&pdev->dev, "i2c"); 763 if (IS_ERR(i2c->clk)) { 769 dev_dbg(&pdev->dev, "clock source %p\n", i2c->clk); 771 clk_enable(i2c->clk); 858 clk_disable(i2c->clk); 859 clk_put(i2c->clk); [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/input/serio/ |
H A D | ambakmi.c | 24 #include <linux/clk.h> 33 struct clk *clk; member in struct:amba_kmi_port 75 ret = clk_enable(kmi->clk); 79 divisor = clk_get_rate(kmi->clk) / 8000000 - 1; 95 clk_disable(kmi->clk); 107 clk_disable(kmi->clk); 146 kmi->clk = clk_get(&dev->dev, "KMIREFCLK"); 147 if (IS_ERR(kmi->clk)) { 148 ret = PTR_ERR(kmi->clk); [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/media/radio/ |
H A D | radio-maxiradio.c | 82 static const int clk = 1, data = 2, wren = 4, mo_st = 8, power = 16 ; variable 130 outb( power|wren|data|clk ,io); udelay(4); 136 outb( power|wren|clk ,io); udelay(4); 197 outb(power+clk,io);
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/kernel/ |
H A D | legacy_serial.c | 42 const u32 *clk, *spd; local 47 clk = of_get_property(np, "clock-frequency", NULL); 48 if (clk && *clk) 49 clock = *clk; 104 printk(KERN_DEBUG " %s=%llx, taddr=%llx, irq=%lx, clk=%d, speed=%d\n",
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/ppc/syslib/ |
H A D | ppc83xx_setup.c | 311 volatile immr_clk_t * clk; local 318 clk = ioremap(binfo->bi_immr_base + 0xA00, 324 val32 = clk->occr; 326 clk->occr = 0xff000000; 329 iounmap(clk);
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sh/boards/renesas/r7780rp/ |
H A D | setup.c | 98 static void ivdr_clk_enable(struct clk *clk) argument 103 static void ivdr_clk_disable(struct clk *clk) argument 113 static struct clk ivdr_clk = { 118 static struct clk *r7780rp_clocks[] = { 150 struct clk *clk = r7780rp_clocks[i]; local 152 clk_register(clk); 153 clk_enable(clk); [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sh/kernel/cpu/ |
H A D | clock.c | 43 static struct clk master_clk = { 49 static struct clk module_clk = { 55 static struct clk bus_clk = { 61 static struct clk cpu_clk = { 70 static struct clk *onchip_clocks[] = { 77 static void propagate_rate(struct clk *clk) argument 79 struct clk *clkp; 82 if (likely(clkp->parent != clk)) 89 int __clk_enable(struct clk *cl argument 114 clk_enable(struct clk *clk) argument 132 __clk_disable(struct clk *clk) argument 146 clk_disable(struct clk *clk) argument 156 clk_register(struct clk *clk) argument 178 clk_unregister(struct clk *clk) argument 186 clk_get_rate(struct clk *clk) argument 192 clk_set_rate(struct clk *clk, unsigned long rate) argument 198 clk_set_rate_ex(struct clk *clk, unsigned long rate, int algo_id) argument 217 clk_recalc_rate(struct clk *clk) argument 238 struct clk *p, *clk = ERR_PTR(-ENOENT); local 269 clk_put(struct clk *clk) argument 289 struct clk *clk; local 316 struct clk *clk = onchip_clocks[i]; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sh/kernel/cpu/sh2/ |
H A D | clock-sh7619.c | 32 static void master_clk_init(struct clk *clk) argument 34 clk->rate *= PLL2 * pll1rate[(ctrl_inw(FREQCR) >> 8) & 7]; 41 static void module_clk_recalc(struct clk *clk) argument 44 clk->rate = clk->parent->rate / pfc_divisors[idx]; 51 static void bus_clk_recalc(struct clk *clk) argument 53 clk 60 cpu_clk_recalc(struct clk *clk) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sh/kernel/cpu/sh2a/ |
H A D | clock-sh7206.c | 35 static void master_clk_init(struct clk *clk) argument 37 clk->rate *= PLL2 * pll1rate[(ctrl_inw(FREQCR) >> 8) & 0x0007]; 44 static void module_clk_recalc(struct clk *clk) argument 47 clk->rate = clk->parent->rate / pfc_divisors[idx]; 54 static void bus_clk_recalc(struct clk *clk) argument 56 clk 63 cpu_clk_recalc(struct clk *clk) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sh/kernel/cpu/sh3/ |
H A D | clock-sh3.c | 29 static void master_clk_init(struct clk *clk) argument 34 clk->rate *= pfc_divisors[idx]; 41 static void module_clk_recalc(struct clk *clk) argument 46 clk->rate = clk->parent->rate / pfc_divisors[idx]; 53 static void bus_clk_recalc(struct clk *clk) argument 58 clk 65 cpu_clk_recalc(struct clk *clk) argument [all...] |
H A D | clock-sh7300.c | 27 static void master_clk_init(struct clk *clk) argument 29 clk->rate *= md_table[ctrl_inw(FRQCR) & 0x0007]; 36 static void module_clk_recalc(struct clk *clk) argument 39 clk->rate = clk->parent->rate / md_table[idx]; 46 static void bus_clk_recalc(struct clk *clk) argument 49 clk 56 cpu_clk_recalc(struct clk *clk) argument [all...] |
H A D | clock-sh7705.c | 33 static void master_clk_init(struct clk *clk) argument 35 clk->rate *= pfc_divisors[ctrl_inw(FRQCR) & 0x0003]; 42 static void module_clk_recalc(struct clk *clk) argument 45 clk->rate = clk->parent->rate / pfc_divisors[idx]; 52 static void bus_clk_recalc(struct clk *clk) argument 55 clk 62 cpu_clk_recalc(struct clk *clk) argument [all...] |
H A D | clock-sh7706.c | 25 static void master_clk_init(struct clk *clk) argument 30 clk->rate *= pfc_divisors[idx]; 37 static void module_clk_recalc(struct clk *clk) argument 42 clk->rate = clk->parent->rate / pfc_divisors[idx]; 49 static void bus_clk_recalc(struct clk *clk) argument 54 clk 61 cpu_clk_recalc(struct clk *clk) argument [all...] |
H A D | clock-sh7709.c | 25 static void set_bus_parent(struct clk *clk) argument 27 struct clk *bus_clk = clk_get(NULL, "bus_clk"); 28 clk->parent = bus_clk; 32 static void master_clk_init(struct clk *clk) argument 37 clk->rate *= pfc_divisors[idx]; 44 static void module_clk_recalc(struct clk *clk) argument 49 clk 59 bus_clk_recalc(struct clk *clk) argument 72 cpu_clk_recalc(struct clk *clk) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sh/kernel/cpu/sh4/ |
H A D | clock-sh4-202.c | 24 static void emi_clk_recalc(struct clk *clk) argument 27 clk->rate = clk->parent->rate / frqcr3_divisors[idx]; 30 static inline int frqcr3_lookup(struct clk *clk, unsigned long rate) argument 32 int divisor = clk->parent->rate / rate; 47 static struct clk sh4202_emi_clk = { 53 static void femi_clk_recalc(struct clk *clk) argument 69 shoc_clk_init(struct clk *clk) argument 93 shoc_clk_recalc(struct clk *clk) argument 99 shoc_clk_verify_rate(struct clk *clk, unsigned long rate) argument 114 shoc_clk_set_rate(struct clk *clk, unsigned long rate, int algo_id) argument 155 struct clk *clk = clk_get(NULL, "master_clk"); local [all...] |
H A D | clock-sh4.c | 29 static void master_clk_init(struct clk *clk) argument 31 clk->rate *= pfc_divisors[ctrl_inw(FRQCR) & 0x0007]; 38 static void module_clk_recalc(struct clk *clk) argument 41 clk->rate = clk->parent->rate / pfc_divisors[idx]; 48 static void bus_clk_recalc(struct clk *clk) argument 51 clk 58 cpu_clk_recalc(struct clk *clk) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sh/kernel/cpu/sh4a/ |
H A D | clock-sh73180.c | 30 static void master_clk_init(struct clk *clk) argument 32 clk->rate *= divisors[ctrl_inl(FRQCR) & 0x0007]; 39 static void module_clk_recalc(struct clk *clk) argument 42 clk->rate = clk->parent->rate / divisors[idx]; 49 static void bus_clk_recalc(struct clk *clk) argument 52 clk 59 cpu_clk_recalc(struct clk *clk) argument [all...] |
H A D | clock-sh7343.c | 27 static void master_clk_init(struct clk *clk) argument 29 clk->parent = clk_get(NULL, "cpu_clk"); 32 static void master_clk_recalc(struct clk *clk) argument 35 clk->rate *= clk->parent->rate * multipliers[idx] / divisors[idx]; 43 static void module_clk_init(struct clk *clk) argument 45 clk 53 bus_clk_init(struct clk *clk) argument 58 bus_clk_recalc(struct clk *clk) argument 69 cpu_clk_init(struct clk *clk) argument 76 cpu_clk_recalc(struct clk *clk) argument [all...] |