Searched refs:clk_num (Results 1 – 5 of 5) sorted by relevance
218 int base, clk_num; in fsl_usb2_mpc5121_init() local222 clk_num = 1; in fsl_usb2_mpc5121_init()224 clk_num = 2; in fsl_usb2_mpc5121_init()228 snprintf(clk_name, sizeof(clk_name), "usb%d_clk", clk_num); in fsl_usb2_mpc5121_init()
117 #define PERIPH_CLK_TO_ENB_REG(c) ((c->u.periph.clk_num / 32) * 4)118 #define PERIPH_CLK_TO_ENB_SET_REG(c) ((c->u.periph.clk_num / 32) * 8)119 #define PERIPH_CLK_TO_ENB_BIT(c) (1 << (c->u.periph.clk_num % 32))938 if (!c->u.periph.clk_num) in tegra2_periph_clk_init()958 if (!c->u.periph.clk_num) in tegra2_periph_clk_enable()963 refcount = tegra_periph_clk_enable_refcount[c->u.periph.clk_num]++; in tegra2_periph_clk_enable()993 if (!c->u.periph.clk_num) in tegra2_periph_clk_disable()999 tegra_periph_clk_enable_refcount[c->u.periph.clk_num]--; in tegra2_periph_clk_disable()1001 if (tegra_periph_clk_enable_refcount[c->u.periph.clk_num] == 0) in tegra2_periph_clk_disable()1015 BUG_ON(!c->u.periph.clk_num); in tegra2_periph_clk_reset()[all …]
66 #define PERIPH_CLK_TO_BIT(c) (1 << (c->u.periph.clk_num % 32))393 u32 reg = c->u.periph.clk_num / 32; in periph_clk_to_reg()1405 return 3 << (c->u.periph.clk_num + 4); in periph_clk_source_mask()1419 return c->u.periph.clk_num + 4; in periph_clk_source_shift()1480 tegra_periph_clk_enable_refcount[c->u.periph.clk_num]++; in tegra30_periph_clk_enable()1481 if (tegra_periph_clk_enable_refcount[c->u.periph.clk_num] > 1) in tegra30_periph_clk_enable()1503 tegra_periph_clk_enable_refcount[c->u.periph.clk_num]--; in tegra30_periph_clk_disable()1505 if (tegra_periph_clk_enable_refcount[c->u.periph.clk_num] == 0) { in tegra30_periph_clk_disable()1781 c->state = (val & (0x1 << c->u.periph.clk_num)) ? ON : OFF; in tegra30_clk_out_init()1803 val |= (0x1 << c->u.periph.clk_num); in tegra30_clk_out_enable()[all …]
119 unsigned int clk_num; member
598 unsigned int *clk_num) in s3c24xx_serial_getclk() argument649 *clk_num = cnt; in s3c24xx_serial_getclk()