Lines Matching defs:type
45 static const char * __init ath79_clk_name(int type)
47 BUG_ON(type >= ARRAY_SIZE(clk_names) || !clk_names[type]);
48 return clk_names[type];
51 static void __init __ath79_set_clk(int type, const char *name, struct clk *clk)
54 panic("failed to allocate %s clock structure", clk_names[type]);
56 clks[type] = clk;
60 static struct clk * __init ath79_set_clk(int type, unsigned long rate)
62 const char *name = ath79_clk_name(type);
66 __ath79_set_clk(type, name, clk);
70 static struct clk * __init ath79_set_ff_clk(int type, const char *parent,
73 const char *name = ath79_clk_name(type);
77 __ath79_set_clk(type, name, clk);