cpg 39 arch/arm/mach-shmobile/setup-rcar-gen2.c struct device_node *cpg, *extal; cpg 43 arch/arm/mach-shmobile/setup-rcar-gen2.c cpg = of_find_matching_node_and_match(NULL, cpg_matches, &match); cpg 44 arch/arm/mach-shmobile/setup-rcar-gen2.c if (!cpg) cpg 48 arch/arm/mach-shmobile/setup-rcar-gen2.c idx = of_property_match_string(cpg, "clock-names", match->data); cpg 49 arch/arm/mach-shmobile/setup-rcar-gen2.c extal = of_parse_phandle(cpg, "clocks", idx); cpg 50 arch/arm/mach-shmobile/setup-rcar-gen2.c of_node_put(cpg); cpg 61 drivers/clk/renesas/clk-r8a73a4.c r8a73a4_cpg_register_clock(struct device_node *np, struct r8a73a4_cpg *cpg, cpg 72 drivers/clk/renesas/clk-r8a73a4.c u32 ckscr = readl(cpg->reg + CPG_CKSCR); cpg 96 drivers/clk/renesas/clk-r8a73a4.c u32 value = readl(cpg->reg + CPG_PLL0CR); cpg 103 drivers/clk/renesas/clk-r8a73a4.c u32 value = readl(cpg->reg + CPG_PLL1CR); cpg 126 drivers/clk/renesas/clk-r8a73a4.c value = readl(cpg->reg + cr); cpg 162 drivers/clk/renesas/clk-r8a73a4.c mult = 0x20 - ((readl(cpg->reg + CPG_FRQCRC) >> shift) & 0x1f); cpg 184 drivers/clk/renesas/clk-r8a73a4.c cpg->reg + reg, shift, 4, 0, cpg 185 drivers/clk/renesas/clk-r8a73a4.c table, &cpg->lock); cpg 191 drivers/clk/renesas/clk-r8a73a4.c struct r8a73a4_cpg *cpg; cpg 202 drivers/clk/renesas/clk-r8a73a4.c cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); cpg 204 drivers/clk/renesas/clk-r8a73a4.c if (cpg == NULL || clks == NULL) { cpg 211 drivers/clk/renesas/clk-r8a73a4.c spin_lock_init(&cpg->lock); cpg 213 drivers/clk/renesas/clk-r8a73a4.c cpg->data.clks = clks; cpg 214 drivers/clk/renesas/clk-r8a73a4.c cpg->data.clk_num = num_clks; cpg 216 drivers/clk/renesas/clk-r8a73a4.c cpg->reg = of_iomap(np, 0); cpg 217 drivers/clk/renesas/clk-r8a73a4.c if (WARN_ON(cpg->reg == NULL)) cpg 227 drivers/clk/renesas/clk-r8a73a4.c clk = r8a73a4_cpg_register_clock(np, cpg, name); cpg 232 drivers/clk/renesas/clk-r8a73a4.c cpg->data.clks[i] = clk; cpg 235 drivers/clk/renesas/clk-r8a73a4.c of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data); cpg 63 drivers/clk/renesas/clk-r8a7740.c r8a7740_cpg_register_clock(struct device_node *np, struct r8a7740_cpg *cpg, cpg 99 drivers/clk/renesas/clk-r8a7740.c u32 value = readl(cpg->reg + CPG_FRQCRC); cpg 103 drivers/clk/renesas/clk-r8a7740.c u32 value = readl(cpg->reg + CPG_FRQCRA); cpg 108 drivers/clk/renesas/clk-r8a7740.c u32 value = readl(cpg->reg + CPG_PLLC2CR); cpg 112 drivers/clk/renesas/clk-r8a7740.c u32 value = readl(cpg->reg + CPG_USBCKCR); cpg 140 drivers/clk/renesas/clk-r8a7740.c cpg->reg + reg, shift, 4, 0, cpg 141 drivers/clk/renesas/clk-r8a7740.c table, &cpg->lock); cpg 147 drivers/clk/renesas/clk-r8a7740.c struct r8a7740_cpg *cpg; cpg 161 drivers/clk/renesas/clk-r8a7740.c cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); cpg 163 drivers/clk/renesas/clk-r8a7740.c if (cpg == NULL || clks == NULL) { cpg 170 drivers/clk/renesas/clk-r8a7740.c spin_lock_init(&cpg->lock); cpg 172 drivers/clk/renesas/clk-r8a7740.c cpg->data.clks = clks; cpg 173 drivers/clk/renesas/clk-r8a7740.c cpg->data.clk_num = num_clks; cpg 175 drivers/clk/renesas/clk-r8a7740.c cpg->reg = of_iomap(np, 0); cpg 176 drivers/clk/renesas/clk-r8a7740.c if (WARN_ON(cpg->reg == NULL)) cpg 186 drivers/clk/renesas/clk-r8a7740.c clk = r8a7740_cpg_register_clock(np, cpg, name); cpg 191 drivers/clk/renesas/clk-r8a7740.c cpg->data.clks[i] = clk; cpg 194 drivers/clk/renesas/clk-r8a7740.c of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data); cpg 50 drivers/clk/renesas/clk-r8a7778.c r8a7778_cpg_register_clock(struct device_node *np, struct r8a7778_cpg *cpg, cpg 80 drivers/clk/renesas/clk-r8a7778.c struct r8a7778_cpg *cpg; cpg 103 drivers/clk/renesas/clk-r8a7778.c cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); cpg 105 drivers/clk/renesas/clk-r8a7778.c if (cpg == NULL || clks == NULL) { cpg 112 drivers/clk/renesas/clk-r8a7778.c spin_lock_init(&cpg->lock); cpg 114 drivers/clk/renesas/clk-r8a7778.c cpg->data.clks = clks; cpg 115 drivers/clk/renesas/clk-r8a7778.c cpg->data.clk_num = num_clks; cpg 117 drivers/clk/renesas/clk-r8a7778.c cpg->reg = of_iomap(np, 0); cpg 118 drivers/clk/renesas/clk-r8a7778.c if (WARN_ON(cpg->reg == NULL)) cpg 128 drivers/clk/renesas/clk-r8a7778.c clk = r8a7778_cpg_register_clock(np, cpg, name); cpg 133 drivers/clk/renesas/clk-r8a7778.c cpg->data.clks[i] = clk; cpg 136 drivers/clk/renesas/clk-r8a7778.c of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data); cpg 90 drivers/clk/renesas/clk-r8a7779.c r8a7779_cpg_register_clock(struct device_node *np, struct r8a7779_cpg *cpg, cpg 122 drivers/clk/renesas/clk-r8a7779.c struct r8a7779_cpg *cpg; cpg 137 drivers/clk/renesas/clk-r8a7779.c cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); cpg 139 drivers/clk/renesas/clk-r8a7779.c if (cpg == NULL || clks == NULL) { cpg 146 drivers/clk/renesas/clk-r8a7779.c spin_lock_init(&cpg->lock); cpg 148 drivers/clk/renesas/clk-r8a7779.c cpg->data.clks = clks; cpg 149 drivers/clk/renesas/clk-r8a7779.c cpg->data.clk_num = num_clks; cpg 161 drivers/clk/renesas/clk-r8a7779.c clk = r8a7779_cpg_register_clock(np, cpg, config, cpg 167 drivers/clk/renesas/clk-r8a7779.c cpg->data.clks[i] = clk; cpg 170 drivers/clk/renesas/clk-r8a7779.c of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data); cpg 136 drivers/clk/renesas/clk-rcar-gen2.c static struct clk * __init cpg_z_clk_register(struct rcar_gen2_cpg *cpg) cpg 153 drivers/clk/renesas/clk-rcar-gen2.c zclk->reg = cpg->reg + CPG_FRQCRC; cpg 154 drivers/clk/renesas/clk-rcar-gen2.c zclk->kick_reg = cpg->reg + CPG_FRQCRB; cpg 164 drivers/clk/renesas/clk-rcar-gen2.c static struct clk * __init cpg_rcan_clk_register(struct rcar_gen2_cpg *cpg, cpg 185 drivers/clk/renesas/clk-rcar-gen2.c gate->reg = cpg->reg + CPG_RCANCKCR; cpg 188 drivers/clk/renesas/clk-rcar-gen2.c gate->lock = &cpg->lock; cpg 208 drivers/clk/renesas/clk-rcar-gen2.c static struct clk * __init cpg_adsp_clk_register(struct rcar_gen2_cpg *cpg) cpg 219 drivers/clk/renesas/clk-rcar-gen2.c div->reg = cpg->reg + CPG_ADSPCKCR; cpg 222 drivers/clk/renesas/clk-rcar-gen2.c div->lock = &cpg->lock; cpg 230 drivers/clk/renesas/clk-rcar-gen2.c gate->reg = cpg->reg + CPG_ADSPCKCR; cpg 233 drivers/clk/renesas/clk-rcar-gen2.c gate->lock = &cpg->lock; cpg 308 drivers/clk/renesas/clk-rcar-gen2.c rcar_gen2_cpg_register_clock(struct device_node *np, struct rcar_gen2_cpg *cpg, cpg 332 drivers/clk/renesas/clk-rcar-gen2.c u32 value = readl(cpg->reg + CPG_PLL0CR); cpg 362 drivers/clk/renesas/clk-rcar-gen2.c return cpg_z_clk_register(cpg); cpg 364 drivers/clk/renesas/clk-rcar-gen2.c return cpg_rcan_clk_register(cpg, np); cpg 366 drivers/clk/renesas/clk-rcar-gen2.c return cpg_adsp_clk_register(cpg); cpg 376 drivers/clk/renesas/clk-rcar-gen2.c cpg->reg + CPG_SDCKCR, shift, cpg 377 drivers/clk/renesas/clk-rcar-gen2.c 4, 0, table, &cpg->lock); cpg 400 drivers/clk/renesas/clk-rcar-gen2.c struct rcar_gen2_cpg *cpg; cpg 417 drivers/clk/renesas/clk-rcar-gen2.c cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); cpg 419 drivers/clk/renesas/clk-rcar-gen2.c if (cpg == NULL || clks == NULL) { cpg 426 drivers/clk/renesas/clk-rcar-gen2.c spin_lock_init(&cpg->lock); cpg 428 drivers/clk/renesas/clk-rcar-gen2.c cpg->data.clks = clks; cpg 429 drivers/clk/renesas/clk-rcar-gen2.c cpg->data.clk_num = num_clks; cpg 431 drivers/clk/renesas/clk-rcar-gen2.c cpg->reg = of_iomap(np, 0); cpg 432 drivers/clk/renesas/clk-rcar-gen2.c if (WARN_ON(cpg->reg == NULL)) cpg 444 drivers/clk/renesas/clk-rcar-gen2.c clk = rcar_gen2_cpg_register_clock(np, cpg, config, name); cpg 449 drivers/clk/renesas/clk-rcar-gen2.c cpg->data.clks[i] = clk; cpg 452 drivers/clk/renesas/clk-rcar-gen2.c of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data); cpg 52 drivers/clk/renesas/clk-rz.c rz_cpg_register_clock(struct device_node *np, struct rz_cpg *cpg, const char *name) cpg 68 drivers/clk/renesas/clk-rz.c if (!cpg->reg) cpg 76 drivers/clk/renesas/clk-rz.c val = (readl(cpg->reg + CPG_FRQCR) >> 8) & 3; cpg 78 drivers/clk/renesas/clk-rz.c val = readl(cpg->reg + CPG_FRQCR2) & 3; cpg 88 drivers/clk/renesas/clk-rz.c struct rz_cpg *cpg; cpg 97 drivers/clk/renesas/clk-rz.c cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); cpg 99 drivers/clk/renesas/clk-rz.c BUG_ON(!cpg || !clks); cpg 101 drivers/clk/renesas/clk-rz.c cpg->data.clks = clks; cpg 102 drivers/clk/renesas/clk-rz.c cpg->data.clk_num = num_clks; cpg 104 drivers/clk/renesas/clk-rz.c cpg->reg = of_iomap(np, 0); cpg 112 drivers/clk/renesas/clk-rz.c clk = rz_cpg_register_clock(np, cpg, name); cpg 117 drivers/clk/renesas/clk-rz.c cpg->data.clks[i] = clk; cpg 120 drivers/clk/renesas/clk-rz.c of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data); cpg 75 drivers/clk/renesas/clk-sh73a0.c sh73a0_cpg_register_clock(struct device_node *np, struct sh73a0_cpg *cpg, cpg 86 drivers/clk/renesas/clk-sh73a0.c u32 parent_idx = (readl(cpg->reg + CPG_CKSCR) >> 28) & 3; cpg 91 drivers/clk/renesas/clk-sh73a0.c void __iomem *enable_reg = cpg->reg; cpg 111 drivers/clk/renesas/clk-sh73a0.c if (readl(cpg->reg + CPG_PLLECR) & BIT(enable_bit)) { cpg 120 drivers/clk/renesas/clk-sh73a0.c void __iomem *dsi_reg = cpg->reg + cpg 157 drivers/clk/renesas/clk-sh73a0.c cpg->reg + reg, shift, width, 0, cpg 158 drivers/clk/renesas/clk-sh73a0.c table, &cpg->lock); cpg 164 drivers/clk/renesas/clk-sh73a0.c struct sh73a0_cpg *cpg; cpg 175 drivers/clk/renesas/clk-sh73a0.c cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); cpg 177 drivers/clk/renesas/clk-sh73a0.c if (cpg == NULL || clks == NULL) { cpg 184 drivers/clk/renesas/clk-sh73a0.c spin_lock_init(&cpg->lock); cpg 186 drivers/clk/renesas/clk-sh73a0.c cpg->data.clks = clks; cpg 187 drivers/clk/renesas/clk-sh73a0.c cpg->data.clk_num = num_clks; cpg 189 drivers/clk/renesas/clk-sh73a0.c cpg->reg = of_iomap(np, 0); cpg 190 drivers/clk/renesas/clk-sh73a0.c if (WARN_ON(cpg->reg == NULL)) cpg 194 drivers/clk/renesas/clk-sh73a0.c writel(0x108, cpg->reg + CPG_SD0CKCR); cpg 195 drivers/clk/renesas/clk-sh73a0.c writel(0x108, cpg->reg + CPG_SD1CKCR); cpg 196 drivers/clk/renesas/clk-sh73a0.c writel(0x108, cpg->reg + CPG_SD2CKCR); cpg 205 drivers/clk/renesas/clk-sh73a0.c clk = sh73a0_cpg_register_clock(np, cpg, name); cpg 210 drivers/clk/renesas/clk-sh73a0.c cpg->data.clks[i] = clk; cpg 213 drivers/clk/renesas/clk-sh73a0.c of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data); cpg 555 fs/ocfs2/journal.h unsigned int cpg)