clks 31 arch/mips/ath79/clock.c static struct clk *clks[ATH79_CLK_END]; clks 33 arch/mips/ath79/clock.c .clks = clks, clks 34 arch/mips/ath79/clock.c .clk_num = ARRAY_SIZE(clks), clks 56 arch/mips/ath79/clock.c clks[type] = clk; clks 83 arch/mips/ath79/clock.c struct clk *clk = clks[ATH79_CLK_REF]; clks 625 arch/mips/ath79/clock.c clks[ATH79_CLK_REF] = ref_clk; clks 649 arch/mips/ath79/clock.c if (!clks[ATH79_CLK_MDIO]) clks 650 arch/mips/ath79/clock.c clks[ATH79_CLK_MDIO] = clks[ATH79_CLK_REF]; clks 70 arch/powerpc/platforms/512x/clock-commonclk.c static struct clk *clks[MPC512x_CLK_LAST_PRIVATE]; clks 403 arch/powerpc/platforms/512x/clock-commonclk.c for (i = 0; i < ARRAY_SIZE(clks); i++) clks 404 arch/powerpc/platforms/512x/clock-commonclk.c clks[i] = ERR_PTR(-ENODEV); clks 446 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_REF] = mpc512x_clk_factor("ref", "osc", 1, 1); clks 447 arch/powerpc/platforms/512x/clock-commonclk.c calc_freq = clk_get_rate(clks[MPC512x_CLK_REF]); clks 461 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_REF] = mpc512x_clk_fixed("ref", calc_freq); clks 650 arch/powerpc/platforms/512x/clock-commonclk.c div = clk_get_rate(clks[MPC512x_CLK_SYS]); clks 651 arch/powerpc/platforms/512x/clock-commonclk.c div /= clk_get_rate(clks[MPC512x_CLK_IPS]); clks 674 arch/powerpc/platforms/512x/clock-commonclk.c clks[clks_idx_int + MCLK_IDX_MUX0] = mpc512x_clk_muxed( clks 681 arch/powerpc/platforms/512x/clock-commonclk.c clks[clks_idx_int + MCLK_IDX_EN0] = mpc512x_clk_gated( clks 684 arch/powerpc/platforms/512x/clock-commonclk.c clks[clks_idx_int + MCLK_IDX_DIV0] = mpc512x_clk_divider( clks 689 arch/powerpc/platforms/512x/clock-commonclk.c clks[clks_idx_pub] = mpc512x_clk_muxed( clks 695 arch/powerpc/platforms/512x/clock-commonclk.c clks[clks_idx_pub] = mpc512x_clk_factor( clks 735 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_SYS] = mpc512x_clk_factor("sys", "ref", clks 737 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_CSB] = mpc512x_clk_factor("csb", "sys", 1, 2); clks 738 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_IPS] = mpc512x_clk_divtable("ips", "csb", clks 743 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_DDR_UG] = mpc512x_clk_factor("ddr-ug", "sys", 1, 2); clks 756 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_SDHC_x4] = mpc512x_clk_factor("sdhc-x4", "csb", 2, 1); clks 757 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_SDHC_UG] = mpc512x_clk_divider("sdhc-ug", "sdhc-x4", 0, clks 761 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_SDHC2_UG] = mpc512x_clk_divider( clks 766 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_DIU_x4] = mpc512x_clk_factor("diu-x4", "csb", 4, 1); clks 767 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_DIU_UG] = mpc512x_clk_divider("diu-ug", "diu-x4", 0, clks 780 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_E300] = mpc512x_clk_factor("e300", "csb", mul, div); clks 783 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_MBX_BUS_UG] = mpc512x_clk_factor( clks 785 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_MBX_UG] = mpc512x_clk_divtable( clks 788 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_MBX_3D_UG] = mpc512x_clk_factor( clks 792 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_PCI_UG] = mpc512x_clk_divtable( clks 802 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_NFC_UG] = ERR_PTR(-ENOTSUPP); clks 804 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_NFC_UG] = mpc512x_clk_divtable( clks 808 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_LPC_UG] = mpc512x_clk_divtable("lpc-ug", "ips", clks 812 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_LPC] = mpc512x_clk_gated("lpc", "lpc-ug", clks 814 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_NFC] = mpc512x_clk_gated("nfc", "nfc-ug", clks 817 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_PATA] = mpc512x_clk_gated( clks 824 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_PSC0 + mclk_idx] = mpc512x_clk_gated( clks 828 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_PSC_FIFO] = mpc512x_clk_gated("psc-fifo", "ips", clks 831 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_SATA] = mpc512x_clk_gated( clks 834 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_FEC] = mpc512x_clk_gated("fec", "ips", clks 837 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_PCI] = mpc512x_clk_gated( clks 840 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_DDR] = mpc512x_clk_gated("ddr", "ddr-ug", clks 843 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_FEC2] = mpc512x_clk_gated( clks 847 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_DIU] = mpc512x_clk_gated("diu", "diu-ug", clks 850 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_AXE] = mpc512x_clk_gated( clks 853 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_MEM] = mpc512x_clk_gated("mem", "ips", clks 855 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_USB1] = mpc512x_clk_gated("usb1", "csb", clks 857 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_USB2] = mpc512x_clk_gated("usb2", "csb", clks 859 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_I2C] = mpc512x_clk_gated("i2c", "ips", clks 862 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_BDLC] = mpc512x_clk_gated("bdlc", "ips", clks 866 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_SDHC] = mpc512x_clk_gated("sdhc", "sdhc-ug", clks 870 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_SPDIF] = mpc512x_clk_gated( clks 875 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_MBX_BUS] = mpc512x_clk_gated( clks 877 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_MBX] = mpc512x_clk_gated( clks 879 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_MBX_3D] = mpc512x_clk_gated( clks 882 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_IIM] = mpc512x_clk_gated("iim", "csb", clks 885 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_VIU] = mpc512x_clk_gated( clks 889 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_SDHC2] = mpc512x_clk_gated( clks 906 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_PSC_MCLK_IN] = mpc512x_clk_fixed("psc_mclk_in", freq); clks 909 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_CAN_CLK_IN] = mpc512x_clk_fixed( clks 913 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_SPDIF_TX_IN] = mpc512x_clk_fixed( clks 916 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_SPDIF_TX_IN] = mpc512x_clk_fixed( clks 921 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_AC97] = mpc512x_clk_fixed("ac97", 24567000); clks 928 arch/powerpc/platforms/512x/clock-commonclk.c clk_prepare_enable(clks[MPC512x_CLK_DUMMY]); clks 929 arch/powerpc/platforms/512x/clock-commonclk.c clk_prepare_enable(clks[MPC512x_CLK_E300]); /* PowerPC CPU */ clks 930 arch/powerpc/platforms/512x/clock-commonclk.c clk_prepare_enable(clks[MPC512x_CLK_DDR]); /* DRAM */ clks 931 arch/powerpc/platforms/512x/clock-commonclk.c clk_prepare_enable(clks[MPC512x_CLK_MEM]); /* SRAM */ clks 932 arch/powerpc/platforms/512x/clock-commonclk.c clk_prepare_enable(clks[MPC512x_CLK_IPS]); /* SoC periph */ clks 933 arch/powerpc/platforms/512x/clock-commonclk.c clk_prepare_enable(clks[MPC512x_CLK_LPC]); /* boot media */ clks 942 arch/powerpc/platforms/512x/clock-commonclk.c clk_data.clks = clks; clks 972 arch/powerpc/platforms/512x/clock-commonclk.c clk_prepare_enable(clks[MPC512x_CLK_PSC3_MCLK]);/* serial console */ clks 974 arch/powerpc/platforms/512x/clock-commonclk.c clk_prepare_enable(clks[MPC512x_CLK_PCI]); clks 1038 arch/powerpc/platforms/512x/clock-commonclk.c NODE_CHK("ipg", clks[MPC512x_CLK_PSC0 + idx], 0, PSC); clks 1039 arch/powerpc/platforms/512x/clock-commonclk.c NODE_CHK("mclk", clks[MPC512x_CLK_PSC0_MCLK + idx], 0, PSC); clks 1044 arch/powerpc/platforms/512x/clock-commonclk.c NODE_CHK("ipg", clks[MPC512x_CLK_PSC_FIFO], 1, PSCFIFO); clks 1049 arch/powerpc/platforms/512x/clock-commonclk.c NODE_CHK("ipg", clks[MPC512x_CLK_NFC], 0, NFC); clks 1057 arch/powerpc/platforms/512x/clock-commonclk.c NODE_CHK("ipg", clks[MPC512x_CLK_BDLC], 0, CAN); clks 1058 arch/powerpc/platforms/512x/clock-commonclk.c NODE_CHK("mclk", clks[MPC512x_CLK_MSCAN0_MCLK + idx], 0, CAN); clks 1067 arch/powerpc/platforms/512x/clock-commonclk.c clk_register_clkdev(clks[MPC512x_CLK_IPS], "ips", NULL); clks 1068 arch/powerpc/platforms/512x/clock-commonclk.c clk_register_clkdev(clks[MPC512x_CLK_SYS], "sys", NULL); clks 1069 arch/powerpc/platforms/512x/clock-commonclk.c clk_register_clkdev(clks[MPC512x_CLK_REF], "ref", NULL); clks 1074 arch/powerpc/platforms/512x/clock-commonclk.c NODE_CHK("ipg", clks[MPC512x_CLK_I2C], 0, I2C); clks 1093 arch/powerpc/platforms/512x/clock-commonclk.c clk_prepare_enable(clks[MPC512x_CLK_I2C]); clks 1097 arch/powerpc/platforms/512x/clock-commonclk.c NODE_CHK("ipg", clks[MPC512x_CLK_DIU], 1, DIU); clks 1102 arch/powerpc/platforms/512x/clock-commonclk.c NODE_CHK("ipg", clks[MPC512x_CLK_VIU], 0, VIU); clks 1114 arch/powerpc/platforms/512x/clock-commonclk.c NODE_CHK("per", clks[MPC512x_CLK_FEC], 0, FEC); clks 1118 arch/powerpc/platforms/512x/clock-commonclk.c NODE_CHK("per", clks[MPC512x_CLK_FEC], 0, FEC); clks 1132 arch/powerpc/platforms/512x/clock-commonclk.c NODE_CHK("per", clks[idx], 0, FEC); clks 1138 arch/powerpc/platforms/512x/clock-commonclk.c NODE_CHK("ipg", clks[MPC512x_CLK_USB1 + idx], 0, USB); clks 1143 arch/powerpc/platforms/512x/clock-commonclk.c NODE_CHK("ipg", clks[MPC512x_CLK_PATA], 0, PATA); clks 1198 arch/powerpc/platforms/512x/clock-commonclk.c clks[MPC512x_CLK_DUMMY] = mpc512x_clk_fixed("dummy", 0); clks 43 arch/sh/kernel/cpu/sh4a/clock-sh7757.c static struct clk *clks[] = { clks 139 arch/sh/kernel/cpu/sh4a/clock-sh7757.c for (i = 0; i < ARRAY_SIZE(clks); i++) clks 140 arch/sh/kernel/cpu/sh4a/clock-sh7757.c ret |= clk_register(clks[i]); clks 46 arch/sh/kernel/cpu/sh4a/clock-sh7785.c static struct clk *clks[] = { clks 162 arch/sh/kernel/cpu/sh4a/clock-sh7785.c for (i = 0; i < ARRAY_SIZE(clks); i++) clks 163 arch/sh/kernel/cpu/sh4a/clock-sh7785.c ret |= clk_register(clks[i]); clks 48 arch/sh/kernel/cpu/sh4a/clock-sh7786.c static struct clk *clks[] = { clks 177 arch/sh/kernel/cpu/sh4a/clock-sh7786.c for (i = 0; i < ARRAY_SIZE(clks); i++) clks 178 arch/sh/kernel/cpu/sh4a/clock-sh7786.c ret |= clk_register(clks[i]); clks 42 arch/sh/kernel/cpu/sh4a/clock-shx3.c static struct clk *clks[] = { clks 136 arch/sh/kernel/cpu/sh4a/clock-shx3.c for (i = 0; i < ARRAY_SIZE(clks); i++) clks 137 arch/sh/kernel/cpu/sh4a/clock-shx3.c ret |= clk_register(clks[i]); clks 340 drivers/ata/ahci.h struct clk *clks[AHCI_MAX_CLKS]; /* Optional */ clks 181 drivers/ata/ahci_da850.c if (!hpriv->clks[0]) { clks 186 drivers/ata/ahci_da850.c hpriv->clks[0] = clk; clks 194 drivers/ata/ahci_da850.c if (!hpriv->clks[1]) { clks 201 drivers/ata/ahci_da850.c hpriv->clks[1] = clk; clks 204 drivers/ata/ahci_da850.c mpy = ahci_da850_calculate_mpy(clk_get_rate(hpriv->clks[1])); clks 72 drivers/ata/ahci_dm816.c if (!hpriv->clks[1]) { clks 77 drivers/ata/ahci_dm816.c refclk_rate = clk_get_rate(hpriv->clks[1]); clks 111 drivers/ata/libahci_platform.c for (c = 0; c < AHCI_MAX_CLKS && hpriv->clks[c]; c++) { clks 112 drivers/ata/libahci_platform.c rc = clk_prepare_enable(hpriv->clks[c]); clks 120 drivers/ata/libahci_platform.c clk_disable_unprepare(hpriv->clks[c]); clks 137 drivers/ata/libahci_platform.c if (hpriv->clks[c]) clks 138 drivers/ata/libahci_platform.c clk_disable_unprepare(hpriv->clks[c]); clks 295 drivers/ata/libahci_platform.c for (c = 0; c < AHCI_MAX_CLKS && hpriv->clks[c]; c++) clks 296 drivers/ata/libahci_platform.c clk_put(hpriv->clks[c]); clks 430 drivers/ata/libahci_platform.c hpriv->clks[i] = clk; clks 1094 drivers/ata/sata_mv.c unsigned int clks, is_dual_hc = hpriv->n_ports > MV_PORTS_PER_HC; clks 1100 drivers/ata/sata_mv.c clks = count = 0; clks 1103 drivers/ata/sata_mv.c clks = usecs * COAL_CLOCKS_PER_USEC; clks 1104 drivers/ata/sata_mv.c if (clks > MAX_COAL_TIME_THRESHOLD) clks 1105 drivers/ata/sata_mv.c clks = MAX_COAL_TIME_THRESHOLD; clks 1118 drivers/ata/sata_mv.c writel(clks, mmio + IRQ_COAL_TIME_THRESHOLD); clks 1124 drivers/ata/sata_mv.c clks = count = 0; /* force clearing of regular regs below */ clks 1131 drivers/ata/sata_mv.c writel(clks, hc_mmio + HC_IRQ_COAL_TIME_THRESHOLD); clks 1138 drivers/ata/sata_mv.c writel(clks, hc_mmio + HC_IRQ_COAL_TIME_THRESHOLD); clks 190 drivers/base/power/clock_ops.c struct clk **clks; clks 201 drivers/base/power/clock_ops.c clks = kcalloc(count, sizeof(*clks), GFP_KERNEL); clks 202 drivers/base/power/clock_ops.c if (!clks) clks 206 drivers/base/power/clock_ops.c clks[i] = of_clk_get(dev->of_node, i); clks 207 drivers/base/power/clock_ops.c if (IS_ERR(clks[i])) { clks 208 drivers/base/power/clock_ops.c ret = PTR_ERR(clks[i]); clks 212 drivers/base/power/clock_ops.c ret = pm_clk_add_clk(dev, clks[i]); clks 214 drivers/base/power/clock_ops.c clk_put(clks[i]); clks 219 drivers/base/power/clock_ops.c kfree(clks); clks 225 drivers/base/power/clock_ops.c pm_clk_remove_clk(dev, clks[i]); clks 227 drivers/base/power/clock_ops.c kfree(clks); clks 30 drivers/clk/actions/owl-common.c struct owl_clk_common *clks; clks 33 drivers/clk/actions/owl-common.c clks = desc->clks[i]; clks 34 drivers/clk/actions/owl-common.c if (!clks) clks 37 drivers/clk/actions/owl-common.c clks->regmap = regmap; clks 26 drivers/clk/actions/owl-common.h struct owl_clk_common **clks; clks 492 drivers/clk/actions/owl-s500.c .clks = s500_clks, clks 601 drivers/clk/actions/owl-s700.c .clks = s700_clks, clks 747 drivers/clk/actions/owl-s900.c .clks = s900_clks, clks 43 drivers/clk/axis/clk-artpec6.c struct clk **clks; clks 56 drivers/clk/axis/clk-artpec6.c clks = clkdata->clk_table; clks 59 drivers/clk/axis/clk-artpec6.c clks[i] = ERR_PTR(-EPROBE_DEFER); clks 85 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_CPU] = clks 88 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_CPU_PERIPH] = clks 92 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_UART_PCLK] = clks 94 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_UART_REFCLK] = clks 98 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_SPI_PCLK] = clks 100 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_SPI_SSPCLK] = clks 104 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_DBG_PCLK] = clks 107 drivers/clk/axis/clk-artpec6.c clkdata->clk_data.clks = clkdata->clk_table; clks 121 drivers/clk/axis/clk-artpec6.c struct clk **clks = clkdata->clk_table; clks 151 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_NAND_CLKA] = clks 153 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_NAND_CLKB] = clks 156 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_ETH_ACLK] = clks 158 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_DMA_ACLK] = clks 160 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_PTP_REF] = clks 163 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_SD_PCLK] = clks 166 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_SD_IMCLK] = clks 169 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_I2S_HST] = clks 177 drivers/clk/axis/clk-artpec6.c clks[i2s_clk_indexes[i]] = clks 189 drivers/clk/axis/clk-artpec6.c clks[i2s_clk_indexes[i]] = clks 198 drivers/clk/axis/clk-artpec6.c clks[i2s_clk_indexes[i]] = clks 204 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_I2C] = clks 207 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_SYS_TIMER] = clks 210 drivers/clk/axis/clk-artpec6.c clks[ARTPEC6_CLK_FRACDIV_IN] = clks 215 drivers/clk/axis/clk-artpec6.c if (IS_ERR(clks[i]) && PTR_ERR(clks[i]) != -EPROBE_DEFER) { clks 218 drivers/clk/axis/clk-artpec6.c i, PTR_ERR(clks[i])); clks 219 drivers/clk/axis/clk-artpec6.c err = PTR_ERR(clks[i]); clks 41 drivers/clk/bcm/clk-iproc-asiu.c struct iproc_asiu_clk *clks; clks 206 drivers/clk/bcm/clk-iproc-asiu.c asiu->clks = kcalloc(num_clks, sizeof(*asiu->clks), GFP_KERNEL); clks 207 drivers/clk/bcm/clk-iproc-asiu.c if (WARN_ON(!asiu->clks)) clks 229 drivers/clk/bcm/clk-iproc-asiu.c asiu_clk = &asiu->clks[i]; clks 264 drivers/clk/bcm/clk-iproc-asiu.c kfree(asiu->clks); clks 16 drivers/clk/clk-bulk.c struct clk_bulk_data *clks) clks 22 drivers/clk/clk-bulk.c clks[i].id = NULL; clks 23 drivers/clk/clk-bulk.c clks[i].clk = NULL; clks 27 drivers/clk/clk-bulk.c of_property_read_string_index(np, "clock-names", i, &clks[i].id); clks 28 drivers/clk/clk-bulk.c clks[i].clk = of_clk_get(np, i); clks 29 drivers/clk/clk-bulk.c if (IS_ERR(clks[i].clk)) { clks 30 drivers/clk/clk-bulk.c ret = PTR_ERR(clks[i].clk); clks 33 drivers/clk/clk-bulk.c clks[i].clk = NULL; clks 41 drivers/clk/clk-bulk.c clk_bulk_put(i, clks); clks 47 drivers/clk/clk-bulk.c struct clk_bulk_data **clks) clks 67 drivers/clk/clk-bulk.c *clks = clk_bulk; clks 72 drivers/clk/clk-bulk.c void clk_bulk_put(int num_clks, struct clk_bulk_data *clks) clks 75 drivers/clk/clk-bulk.c clk_put(clks[num_clks].clk); clks 76 drivers/clk/clk-bulk.c clks[num_clks].clk = NULL; clks 82 drivers/clk/clk-bulk.c struct clk_bulk_data *clks, bool optional) clks 88 drivers/clk/clk-bulk.c clks[i].clk = NULL; clks 91 drivers/clk/clk-bulk.c clks[i].clk = clk_get(dev, clks[i].id); clks 92 drivers/clk/clk-bulk.c if (IS_ERR(clks[i].clk)) { clks 93 drivers/clk/clk-bulk.c ret = PTR_ERR(clks[i].clk); clks 94 drivers/clk/clk-bulk.c clks[i].clk = NULL; clks 101 drivers/clk/clk-bulk.c clks[i].id, ret); clks 109 drivers/clk/clk-bulk.c clk_bulk_put(i, clks); clks 115 drivers/clk/clk-bulk.c struct clk_bulk_data *clks) clks 117 drivers/clk/clk-bulk.c return __clk_bulk_get(dev, num_clks, clks, false); clks 122 drivers/clk/clk-bulk.c struct clk_bulk_data *clks) clks 124 drivers/clk/clk-bulk.c return __clk_bulk_get(dev, num_clks, clks, true); clks 128 drivers/clk/clk-bulk.c void clk_bulk_put_all(int num_clks, struct clk_bulk_data *clks) clks 130 drivers/clk/clk-bulk.c if (IS_ERR_OR_NULL(clks)) clks 133 drivers/clk/clk-bulk.c clk_bulk_put(num_clks, clks); clks 135 drivers/clk/clk-bulk.c kfree(clks); clks 140 drivers/clk/clk-bulk.c struct clk_bulk_data **clks) clks 147 drivers/clk/clk-bulk.c return of_clk_bulk_get_all(np, clks); clks 161 drivers/clk/clk-bulk.c void clk_bulk_unprepare(int num_clks, const struct clk_bulk_data *clks) clks 164 drivers/clk/clk-bulk.c clk_unprepare(clks[num_clks].clk); clks 177 drivers/clk/clk-bulk.c const struct clk_bulk_data *clks) clks 183 drivers/clk/clk-bulk.c ret = clk_prepare(clks[i].clk); clks 186 drivers/clk/clk-bulk.c clks[i].id, ret); clks 194 drivers/clk/clk-bulk.c clk_bulk_unprepare(i, clks); clks 211 drivers/clk/clk-bulk.c void clk_bulk_disable(int num_clks, const struct clk_bulk_data *clks) clks 215 drivers/clk/clk-bulk.c clk_disable(clks[num_clks].clk); clks 227 drivers/clk/clk-bulk.c int __must_check clk_bulk_enable(int num_clks, const struct clk_bulk_data *clks) clks 233 drivers/clk/clk-bulk.c ret = clk_enable(clks[i].clk); clks 236 drivers/clk/clk-bulk.c clks[i].id, ret); clks 244 drivers/clk/clk-bulk.c clk_bulk_disable(i, clks); clks 44 drivers/clk/clk-devres.c struct clk_bulk_data *clks; clks 52 drivers/clk/clk-devres.c clk_bulk_put(devres->num_clks, devres->clks); clks 56 drivers/clk/clk-devres.c struct clk_bulk_data *clks, bool optional) clks 67 drivers/clk/clk-devres.c ret = clk_bulk_get_optional(dev, num_clks, clks); clks 69 drivers/clk/clk-devres.c ret = clk_bulk_get(dev, num_clks, clks); clks 71 drivers/clk/clk-devres.c devres->clks = clks; clks 82 drivers/clk/clk-devres.c struct clk_bulk_data *clks) clks 84 drivers/clk/clk-devres.c return __devm_clk_bulk_get(dev, num_clks, clks, false); clks 89 drivers/clk/clk-devres.c struct clk_bulk_data *clks) clks 91 drivers/clk/clk-devres.c return __devm_clk_bulk_get(dev, num_clks, clks, true); clks 96 drivers/clk/clk-devres.c struct clk_bulk_data **clks) clks 106 drivers/clk/clk-devres.c ret = clk_bulk_get_all(dev, &devres->clks); clks 108 drivers/clk/clk-devres.c *clks = devres->clks; clks 125 drivers/clk/clk-lochnagar.c const struct lochnagar_clk *clks; clks 131 drivers/clk/clk-lochnagar.c .clks = lochnagar1_clks, clks 137 drivers/clk/clk-lochnagar.c .clks = lochnagar2_clks, clks 261 drivers/clk/clk-lochnagar.c memcpy(priv->lclks, conf->clks, sizeof(priv->lclks)); clks 1273 drivers/clk/clk-qoriq.c onecell_data->clks = subclks; clks 395 drivers/clk/clk-stm32f4.c static struct clk_hw **clks; clks 886 drivers/clk/clk-stm32f4.c return clks[i]; clks 1717 drivers/clk/clk-stm32f4.c clks = kmalloc_array(data->gates_num + stm32fx_end_primary_clk, clks 1718 drivers/clk/clk-stm32f4.c sizeof(*clks), GFP_KERNEL); clks 1719 drivers/clk/clk-stm32f4.c if (!clks) clks 1741 drivers/clk/clk-stm32f4.c clks[CLK_HSI] = clk_hw_register_fixed_rate_with_accuracy(NULL, "hsi", clks 1757 drivers/clk/clk-stm32f4.c clks[PLL_VCO_I2S] = stm32f4_rcc_register_pll("vco_in", clks 1760 drivers/clk/clk-stm32f4.c clks[PLL_VCO_SAI] = stm32f4_rcc_register_pll("vco_in", clks 1777 drivers/clk/clk-stm32f4.c clks[post_div->pll_num], clks 1781 drivers/clk/clk-stm32f4.c clks[post_div->idx] = hw; clks 1786 drivers/clk/clk-stm32f4.c clks[CLK_SYSCLK] = clk_hw_register_mux_table( clks 1806 drivers/clk/clk-stm32f4.c clks[SYSTICK] = clk_hw_register_fixed_factor(NULL, "systick", "ahb_div", clks 1808 drivers/clk/clk-stm32f4.c clks[FCLK] = clk_hw_register_fixed_factor(NULL, "fclk", "ahb_div", clks 1824 drivers/clk/clk-stm32f4.c clks[idx] = clk_hw_register_gate( clks 1828 drivers/clk/clk-stm32f4.c if (IS_ERR(clks[idx])) { clks 1835 drivers/clk/clk-stm32f4.c clks[CLK_LSI] = clk_register_rgate(NULL, "lsi", "clk-lsi", 0, clks 1838 drivers/clk/clk-stm32f4.c if (IS_ERR(clks[CLK_LSI])) { clks 1843 drivers/clk/clk-stm32f4.c clks[CLK_LSE] = clk_register_rgate(NULL, "lse", "clk-lse", 0, clks 1846 drivers/clk/clk-stm32f4.c if (IS_ERR(clks[CLK_LSE])) { clks 1851 drivers/clk/clk-stm32f4.c clks[CLK_HSE_RTC] = clk_hw_register_divider(NULL, "hse-rtc", "clk-hse", clks 1855 drivers/clk/clk-stm32f4.c if (IS_ERR(clks[CLK_HSE_RTC])) { clks 1860 drivers/clk/clk-stm32f4.c clks[CLK_RTC] = stm32_register_cclk(NULL, "rtc", rtc_parents, 4, clks 1863 drivers/clk/clk-stm32f4.c if (IS_ERR(clks[CLK_RTC])) { clks 1887 drivers/clk/clk-stm32f4.c clks[aux_clk->idx] = hw; clks 1895 drivers/clk/clk-stm32f4.c clks[CLK_PLL_SRC] = pll_src_hw; clks 1902 drivers/clk/clk-stm32f4.c kfree(clks); clks 9 drivers/clk/clk-tango4.c static struct clk *clks[CLK_COUNT]; clks 10 drivers/clk/clk-tango4.c static struct clk_onecell_data clk_data = { clks, CLK_COUNT }; clks 52 drivers/clk/clk-tango4.c struct clk **pp = clk_data.clks; clks 85 drivers/clk/clk.c struct hlist_head clks; clks 633 drivers/clk/clk.c hlist_for_each_entry(clk_user, &core->clks, clks_node) clks 636 drivers/clk/clk.c hlist_for_each_entry(clk_user, &core->clks, clks_node) clks 3474 drivers/clk/clk.c hlist_add_head(&clk->clks_node, &core->clks); clks 3708 drivers/clk/clk.c INIT_HLIST_HEAD(&core->clks); clks 4281 drivers/clk/clk.c return clk_data->clks[idx]; clks 776 drivers/clk/davinci/pll.c struct clk **clks; clks 786 drivers/clk/davinci/pll.c clks = kmalloc_array(n_clks, sizeof(*clks), GFP_KERNEL); clks 787 drivers/clk/davinci/pll.c if (!clks) { clks 793 drivers/clk/davinci/pll.c clk_data->clks = clks; clks 797 drivers/clk/davinci/pll.c clks[i] = ERR_PTR(-ENOENT); clks 805 drivers/clk/davinci/pll.c clks[(*div_info)->id] = clk; clks 310 drivers/clk/davinci/psc.c struct clk *clk = psc->clk_data.clks[id]; clks 319 drivers/clk/davinci/psc.c struct clk *clk = psc->clk_data.clks[id]; clks 366 drivers/clk/davinci/psc.c struct clk **clks; clks 375 drivers/clk/davinci/psc.c clks = kmalloc_array(num_clks, sizeof(*clks), GFP_KERNEL); clks 376 drivers/clk/davinci/psc.c if (!clks) { clks 381 drivers/clk/davinci/psc.c psc->clk_data.clks = clks; clks 389 drivers/clk/davinci/psc.c clks[i] = ERR_PTR(-ENOENT); clks 418 drivers/clk/davinci/psc.c clks[info->md] = lpsc->hw.clk; clks 446 drivers/clk/davinci/psc.c kfree(clks); clks 466 drivers/clk/davinci/psc.c struct clk *clk = psc->clk_data.clks[info->md]; clks 469 drivers/clk/hisilicon/clk-hi3620.c clk_data->clks = kcalloc(num, sizeof(*clk_data->clks), GFP_KERNEL); clks 470 drivers/clk/hisilicon/clk-hi3620.c if (!clk_data->clks) clks 475 drivers/clk/hisilicon/clk-hi3620.c clk_data->clks[mmc_clk->id] = clks 551 drivers/clk/hisilicon/clk-hi3660.c clk_crgctrl_data->clk_data.clks[i] = ERR_PTR(-EPROBE_DEFER); clks 562 drivers/clk/hisilicon/clk-hi3660.c struct clk **clks; clks 588 drivers/clk/hisilicon/clk-hi3660.c clks = clk_crgctrl_data->clk_data.clks; clks 590 drivers/clk/hisilicon/clk-hi3660.c if (IS_ERR(clks[i]) && PTR_ERR(clks[i]) != -EPROBE_DEFER) clks 592 drivers/clk/hisilicon/clk-hi3660.c i, PTR_ERR(clks[i])); clks 94 drivers/clk/hisilicon/clk-hisi-phase.c const struct hisi_phase_clock *clks, clks 104 drivers/clk/hisilicon/clk-hisi-phase.c init.name = clks->name; clks 106 drivers/clk/hisilicon/clk-hisi-phase.c init.flags = clks->flags; clks 107 drivers/clk/hisilicon/clk-hisi-phase.c init.parent_names = clks->parent_names ? &clks->parent_names : NULL; clks 108 drivers/clk/hisilicon/clk-hisi-phase.c init.num_parents = clks->parent_names ? 1 : 0; clks 110 drivers/clk/hisilicon/clk-hisi-phase.c phase->reg = base + clks->offset; clks 111 drivers/clk/hisilicon/clk-hisi-phase.c phase->shift = clks->shift; clks 112 drivers/clk/hisilicon/clk-hisi-phase.c phase->mask = (BIT(clks->width) - 1) << clks->shift; clks 114 drivers/clk/hisilicon/clk-hisi-phase.c phase->phase_degrees = clks->phase_degrees; clks 115 drivers/clk/hisilicon/clk-hisi-phase.c phase->phase_regvals = clks->phase_regvals; clks 116 drivers/clk/hisilicon/clk-hisi-phase.c phase->phase_num = clks->phase_num; clks 253 drivers/clk/hisilicon/clk-hix5hd2.c hix5hd2_clk_register_complex(struct hix5hd2_complex_clock *clks, int nums, clks 268 drivers/clk/hisilicon/clk-hix5hd2.c init.name = clks[i].name; clks 269 drivers/clk/hisilicon/clk-hix5hd2.c if (clks[i].type == TYPE_ETHER) clks 276 drivers/clk/hisilicon/clk-hix5hd2.c (clks[i].parent_name ? &clks[i].parent_name : NULL); clks 277 drivers/clk/hisilicon/clk-hix5hd2.c init.num_parents = (clks[i].parent_name ? 1 : 0); clks 279 drivers/clk/hisilicon/clk-hix5hd2.c p_clk->ctrl_reg = base + clks[i].ctrl_reg; clks 280 drivers/clk/hisilicon/clk-hix5hd2.c p_clk->ctrl_clk_mask = clks[i].ctrl_clk_mask; clks 281 drivers/clk/hisilicon/clk-hix5hd2.c p_clk->ctrl_rst_mask = clks[i].ctrl_rst_mask; clks 282 drivers/clk/hisilicon/clk-hix5hd2.c p_clk->phy_reg = base + clks[i].phy_reg; clks 283 drivers/clk/hisilicon/clk-hix5hd2.c p_clk->phy_clk_mask = clks[i].phy_clk_mask; clks 284 drivers/clk/hisilicon/clk-hix5hd2.c p_clk->phy_rst_mask = clks[i].phy_rst_mask; clks 291 drivers/clk/hisilicon/clk-hix5hd2.c __func__, clks[i].name); clks 295 drivers/clk/hisilicon/clk-hix5hd2.c data->clk_data.clks[clks[i].id] = clk; clks 51 drivers/clk/hisilicon/clk.c clk_data->clk_data.clks = clk_table; clks 80 drivers/clk/hisilicon/clk.c clk_data->clk_data.clks = clk_table; clks 91 drivers/clk/hisilicon/clk.c int hisi_clk_register_fixed_rate(const struct hisi_fixed_rate_clock *clks, clks 98 drivers/clk/hisilicon/clk.c clk = clk_register_fixed_rate(NULL, clks[i].name, clks 99 drivers/clk/hisilicon/clk.c clks[i].parent_name, clks 100 drivers/clk/hisilicon/clk.c clks[i].flags, clks 101 drivers/clk/hisilicon/clk.c clks[i].fixed_rate); clks 104 drivers/clk/hisilicon/clk.c __func__, clks[i].name); clks 107 drivers/clk/hisilicon/clk.c data->clk_data.clks[clks[i].id] = clk; clks 114 drivers/clk/hisilicon/clk.c clk_unregister_fixed_rate(data->clk_data.clks[clks[i].id]); clks 120 drivers/clk/hisilicon/clk.c int hisi_clk_register_fixed_factor(const struct hisi_fixed_factor_clock *clks, clks 128 drivers/clk/hisilicon/clk.c clk = clk_register_fixed_factor(NULL, clks[i].name, clks 129 drivers/clk/hisilicon/clk.c clks[i].parent_name, clks 130 drivers/clk/hisilicon/clk.c clks[i].flags, clks[i].mult, clks 131 drivers/clk/hisilicon/clk.c clks[i].div); clks 134 drivers/clk/hisilicon/clk.c __func__, clks[i].name); clks 137 drivers/clk/hisilicon/clk.c data->clk_data.clks[clks[i].id] = clk; clks 144 drivers/clk/hisilicon/clk.c clk_unregister_fixed_factor(data->clk_data.clks[clks[i].id]); clks 150 drivers/clk/hisilicon/clk.c int hisi_clk_register_mux(const struct hisi_mux_clock *clks, clks 158 drivers/clk/hisilicon/clk.c u32 mask = BIT(clks[i].width) - 1; clks 160 drivers/clk/hisilicon/clk.c clk = clk_register_mux_table(NULL, clks[i].name, clks 161 drivers/clk/hisilicon/clk.c clks[i].parent_names, clks 162 drivers/clk/hisilicon/clk.c clks[i].num_parents, clks[i].flags, clks 163 drivers/clk/hisilicon/clk.c base + clks[i].offset, clks[i].shift, clks 164 drivers/clk/hisilicon/clk.c mask, clks[i].mux_flags, clks 165 drivers/clk/hisilicon/clk.c clks[i].table, &hisi_clk_lock); clks 168 drivers/clk/hisilicon/clk.c __func__, clks[i].name); clks 172 drivers/clk/hisilicon/clk.c if (clks[i].alias) clks 173 drivers/clk/hisilicon/clk.c clk_register_clkdev(clk, clks[i].alias, NULL); clks 175 drivers/clk/hisilicon/clk.c data->clk_data.clks[clks[i].id] = clk; clks 182 drivers/clk/hisilicon/clk.c clk_unregister_mux(data->clk_data.clks[clks[i].id]); clks 189 drivers/clk/hisilicon/clk.c const struct hisi_phase_clock *clks, clks 197 drivers/clk/hisilicon/clk.c clk = clk_register_hisi_phase(dev, &clks[i], base, clks 201 drivers/clk/hisilicon/clk.c clks[i].name); clks 205 drivers/clk/hisilicon/clk.c data->clk_data.clks[clks[i].id] = clk; clks 212 drivers/clk/hisilicon/clk.c int hisi_clk_register_divider(const struct hisi_divider_clock *clks, clks 220 drivers/clk/hisilicon/clk.c clk = clk_register_divider_table(NULL, clks[i].name, clks 221 drivers/clk/hisilicon/clk.c clks[i].parent_name, clks 222 drivers/clk/hisilicon/clk.c clks[i].flags, clks 223 drivers/clk/hisilicon/clk.c base + clks[i].offset, clks 224 drivers/clk/hisilicon/clk.c clks[i].shift, clks[i].width, clks 225 drivers/clk/hisilicon/clk.c clks[i].div_flags, clks 226 drivers/clk/hisilicon/clk.c clks[i].table, clks 230 drivers/clk/hisilicon/clk.c __func__, clks[i].name); clks 234 drivers/clk/hisilicon/clk.c if (clks[i].alias) clks 235 drivers/clk/hisilicon/clk.c clk_register_clkdev(clk, clks[i].alias, NULL); clks 237 drivers/clk/hisilicon/clk.c data->clk_data.clks[clks[i].id] = clk; clks 244 drivers/clk/hisilicon/clk.c clk_unregister_divider(data->clk_data.clks[clks[i].id]); clks 250 drivers/clk/hisilicon/clk.c int hisi_clk_register_gate(const struct hisi_gate_clock *clks, clks 258 drivers/clk/hisilicon/clk.c clk = clk_register_gate(NULL, clks[i].name, clks 259 drivers/clk/hisilicon/clk.c clks[i].parent_name, clks 260 drivers/clk/hisilicon/clk.c clks[i].flags, clks 261 drivers/clk/hisilicon/clk.c base + clks[i].offset, clks 262 drivers/clk/hisilicon/clk.c clks[i].bit_idx, clks 263 drivers/clk/hisilicon/clk.c clks[i].gate_flags, clks 267 drivers/clk/hisilicon/clk.c __func__, clks[i].name); clks 271 drivers/clk/hisilicon/clk.c if (clks[i].alias) clks 272 drivers/clk/hisilicon/clk.c clk_register_clkdev(clk, clks[i].alias, NULL); clks 274 drivers/clk/hisilicon/clk.c data->clk_data.clks[clks[i].id] = clk; clks 281 drivers/clk/hisilicon/clk.c clk_unregister_gate(data->clk_data.clks[clks[i].id]); clks 287 drivers/clk/hisilicon/clk.c void hisi_clk_register_gate_sep(const struct hisi_gate_clock *clks, clks 295 drivers/clk/hisilicon/clk.c clk = hisi_register_clkgate_sep(NULL, clks[i].name, clks 296 drivers/clk/hisilicon/clk.c clks[i].parent_name, clks 297 drivers/clk/hisilicon/clk.c clks[i].flags, clks 298 drivers/clk/hisilicon/clk.c base + clks[i].offset, clks 299 drivers/clk/hisilicon/clk.c clks[i].bit_idx, clks 300 drivers/clk/hisilicon/clk.c clks[i].gate_flags, clks 304 drivers/clk/hisilicon/clk.c __func__, clks[i].name); clks 308 drivers/clk/hisilicon/clk.c if (clks[i].alias) clks 309 drivers/clk/hisilicon/clk.c clk_register_clkdev(clk, clks[i].alias, NULL); clks 311 drivers/clk/hisilicon/clk.c data->clk_data.clks[clks[i].id] = clk; clks 316 drivers/clk/hisilicon/clk.c void __init hi6220_clk_register_divider(const struct hi6220_divider_clock *clks, clks 324 drivers/clk/hisilicon/clk.c clk = hi6220_register_clkdiv(NULL, clks[i].name, clks 325 drivers/clk/hisilicon/clk.c clks[i].parent_name, clks 326 drivers/clk/hisilicon/clk.c clks[i].flags, clks 327 drivers/clk/hisilicon/clk.c base + clks[i].offset, clks 328 drivers/clk/hisilicon/clk.c clks[i].shift, clks 329 drivers/clk/hisilicon/clk.c clks[i].width, clks 330 drivers/clk/hisilicon/clk.c clks[i].mask_bit, clks 334 drivers/clk/hisilicon/clk.c __func__, clks[i].name); clks 338 drivers/clk/hisilicon/clk.c if (clks[i].alias) clks 339 drivers/clk/hisilicon/clk.c clk_register_clkdev(clk, clks[i].alias, NULL); clks 341 drivers/clk/hisilicon/clk.c data->clk_data.clks[clks[i].id] = clk; clks 123 drivers/clk/hisilicon/clk.h const struct hisi_phase_clock *clks, clks 126 drivers/clk/hisilicon/clk.h const struct hisi_phase_clock *clks, clks 139 drivers/clk/hisilicon/clk.h void hisi_clk_unregister_##type(const struct hisi_##type##_clock *clks, \ clks 142 drivers/clk/hisilicon/clk.h struct clk **clocks = data->clk_data.clks; \ clks 145 drivers/clk/hisilicon/clk.h int id = clks[i].id; \ clks 69 drivers/clk/imx/clk-imx1.c clk_data.clks = clk; clks 167 drivers/clk/imx/clk-imx21.c clk_data.clks = clk; clks 243 drivers/clk/imx/clk-imx25.c clk_data.clks = clk; clks 276 drivers/clk/imx/clk-imx27.c clk_data.clks = clk; clks 228 drivers/clk/imx/clk-imx31.c clk_data.clks = clk; clks 323 drivers/clk/imx/clk-imx35.c clk_data.clks = clk; clks 366 drivers/clk/imx/clk-imx5.c clk_data.clks = clk; clks 457 drivers/clk/imx/clk-imx5.c clk_data.clks = clk; clks 611 drivers/clk/imx/clk-imx5.c clk_data.clks = clk; clks 62 drivers/clk/imx/clk-imx7ulp.c struct clk_hw **clks; clks 71 drivers/clk/imx/clk-imx7ulp.c clks = clk_data->hws; clks 73 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_DUMMY] = imx_clk_hw_fixed("dummy", 0); clks 75 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_ROSC] = imx_obtain_fixed_clk_hw(np, "rosc"); clks 76 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_SOSC] = imx_obtain_fixed_clk_hw(np, "sosc"); clks 77 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_SIRC] = imx_obtain_fixed_clk_hw(np, "sirc"); clks 78 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_FIRC] = imx_obtain_fixed_clk_hw(np, "firc"); clks 79 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_MIPI_PLL] = imx_obtain_fixed_clk_hw(np, "mpll"); clks 80 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_UPLL] = imx_obtain_fixed_clk_hw(np, "upll"); clks 87 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_APLL_PRE_SEL] = imx_clk_hw_mux_flags("apll_pre_sel", base + 0x508, 0, 1, pll_pre_sels, ARRAY_SIZE(pll_pre_sels), CLK_SET_PARENT_GATE); clks 88 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_SPLL_PRE_SEL] = imx_clk_hw_mux_flags("spll_pre_sel", base + 0x608, 0, 1, pll_pre_sels, ARRAY_SIZE(pll_pre_sels), CLK_SET_PARENT_GATE); clks 91 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_APLL_PRE_DIV] = imx_clk_hw_divider_flags("apll_pre_div", "apll_pre_sel", base + 0x508, 8, 3, CLK_SET_RATE_GATE); clks 92 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_SPLL_PRE_DIV] = imx_clk_hw_divider_flags("spll_pre_div", "spll_pre_sel", base + 0x608, 8, 3, CLK_SET_RATE_GATE); clks 95 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_APLL] = imx_clk_pllv4("apll", "apll_pre_div", base + 0x500); clks 96 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_SPLL] = imx_clk_pllv4("spll", "spll_pre_div", base + 0x600); clks 99 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_APLL_PFD0] = imx_clk_pfdv2("apll_pfd0", "apll", base + 0x50c, 0); clks 100 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_APLL_PFD1] = imx_clk_pfdv2("apll_pfd1", "apll", base + 0x50c, 1); clks 101 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_APLL_PFD2] = imx_clk_pfdv2("apll_pfd2", "apll", base + 0x50c, 2); clks 102 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_APLL_PFD3] = imx_clk_pfdv2("apll_pfd3", "apll", base + 0x50c, 3); clks 105 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_SPLL_PFD0] = imx_clk_pfdv2("spll_pfd0", "spll", base + 0x60C, 0); clks 106 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_SPLL_PFD1] = imx_clk_pfdv2("spll_pfd1", "spll", base + 0x60C, 1); clks 107 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_SPLL_PFD2] = imx_clk_pfdv2("spll_pfd2", "spll", base + 0x60C, 2); clks 108 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_SPLL_PFD3] = imx_clk_pfdv2("spll_pfd3", "spll", base + 0x60C, 3); clks 111 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_APLL_PFD_SEL] = imx_clk_hw_mux_flags("apll_pfd_sel", base + 0x508, 14, 2, apll_pfd_sels, ARRAY_SIZE(apll_pfd_sels), CLK_SET_RATE_PARENT | CLK_SET_PARENT_GATE); clks 112 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_SPLL_PFD_SEL] = imx_clk_hw_mux_flags("spll_pfd_sel", base + 0x608, 14, 2, spll_pfd_sels, ARRAY_SIZE(spll_pfd_sels), CLK_SET_RATE_PARENT | CLK_SET_PARENT_GATE); clks 113 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_APLL_SEL] = imx_clk_hw_mux_flags("apll_sel", base + 0x508, 1, 1, apll_sels, ARRAY_SIZE(apll_sels), CLK_SET_RATE_PARENT | CLK_SET_PARENT_GATE); clks 114 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_SPLL_SEL] = imx_clk_hw_mux_flags("spll_sel", base + 0x608, 1, 1, spll_sels, ARRAY_SIZE(spll_sels), CLK_SET_RATE_PARENT | CLK_SET_PARENT_GATE); clks 116 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_SPLL_BUS_CLK] = imx_clk_divider_gate("spll_bus_clk", "spll_sel", CLK_SET_RATE_GATE, base + 0x604, 8, 3, 0, ulp_div_table, &imx_ccm_lock); clks 119 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_SYS_SEL] = imx_clk_hw_mux2("scs_sel", base + 0x14, 24, 4, scs_sels, ARRAY_SIZE(scs_sels)); clks 120 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_HSRUN_SYS_SEL] = imx_clk_hw_mux2("hsrun_scs_sel", base + 0x1c, 24, 4, scs_sels, ARRAY_SIZE(scs_sels)); clks 121 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_NIC_SEL] = imx_clk_hw_mux2("nic_sel", base + 0x40, 28, 1, nic_sels, ARRAY_SIZE(nic_sels)); clks 122 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_DDR_SEL] = imx_clk_hw_mux_flags("ddr_sel", base + 0x30, 24, 2, ddr_sels, ARRAY_SIZE(ddr_sels), CLK_SET_RATE_PARENT | CLK_OPS_PARENT_ENABLE); clks 124 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_CORE_DIV] = imx_clk_hw_divider_flags("divcore", "scs_sel", base + 0x14, 16, 4, CLK_SET_RATE_PARENT); clks 125 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_HSRUN_CORE_DIV] = imx_clk_hw_divider_flags("hsrun_divcore", "hsrun_scs_sel", base + 0x1c, 16, 4, CLK_SET_RATE_PARENT); clks 127 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_DDR_DIV] = imx_clk_divider_gate("ddr_clk", "ddr_sel", CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, base + 0x30, 0, 3, clks 130 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_NIC0_DIV] = imx_clk_hw_divider_flags("nic0_clk", "nic_sel", base + 0x40, 24, 4, CLK_SET_RATE_PARENT | CLK_IS_CRITICAL); clks 131 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_NIC1_DIV] = imx_clk_hw_divider_flags("nic1_clk", "nic0_clk", base + 0x40, 16, 4, CLK_SET_RATE_PARENT | CLK_IS_CRITICAL); clks 132 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_NIC1_BUS_DIV] = imx_clk_hw_divider_flags("nic1_bus_clk", "nic0_clk", base + 0x40, 4, 4, CLK_SET_RATE_PARENT | CLK_IS_CRITICAL); clks 134 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_GPU_DIV] = imx_clk_hw_divider("gpu_clk", "nic0_clk", base + 0x40, 20, 4); clks 136 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_SOSC_BUS_CLK] = imx_clk_divider_gate("sosc_bus_clk", "sosc", 0, base + 0x104, 8, 3, clks 138 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_FIRC_BUS_CLK] = imx_clk_divider_gate("firc_bus_clk", "firc", 0, base + 0x304, 8, 3, clks 141 drivers/clk/imx/clk-imx7ulp.c imx_check_clk_hws(clks, clk_data->num); clks 150 drivers/clk/imx/clk-imx7ulp.c struct clk_hw **clks; clks 160 drivers/clk/imx/clk-imx7ulp.c clks = clk_data->hws; clks 166 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_DMA1] = imx_clk_hw_gate("dma1", "nic1_clk", base + 0x20, 30); clks 167 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_RGPIO2P1] = imx_clk_hw_gate("rgpio2p1", "nic1_bus_clk", base + 0x3c, 30); clks 168 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_DMA_MUX1] = imx_clk_hw_gate("dma_mux1", "nic1_bus_clk", base + 0x84, 30); clks 169 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_CAAM] = imx_clk_hw_gate("caam", "nic1_clk", base + 0x90, 30); clks 170 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LPTPM4] = imx7ulp_clk_composite("lptpm4", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0x94); clks 171 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LPTPM5] = imx7ulp_clk_composite("lptpm5", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0x98); clks 172 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LPIT1] = imx7ulp_clk_composite("lpit1", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0x9c); clks 173 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LPSPI2] = imx7ulp_clk_composite("lpspi2", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0xa4); clks 174 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LPSPI3] = imx7ulp_clk_composite("lpspi3", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0xa8); clks 175 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LPI2C4] = imx7ulp_clk_composite("lpi2c4", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0xac); clks 176 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LPI2C5] = imx7ulp_clk_composite("lpi2c5", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0xb0); clks 177 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LPUART4] = imx7ulp_clk_composite("lpuart4", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0xb4); clks 178 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LPUART5] = imx7ulp_clk_composite("lpuart5", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0xb8); clks 179 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_FLEXIO1] = imx7ulp_clk_composite("flexio1", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0xc4); clks 180 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_USB0] = imx7ulp_clk_composite("usb0", periph_plat_sels, ARRAY_SIZE(periph_plat_sels), true, true, true, base + 0xcc); clks 181 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_USB1] = imx7ulp_clk_composite("usb1", periph_plat_sels, ARRAY_SIZE(periph_plat_sels), true, true, true, base + 0xd0); clks 182 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_USB_PHY] = imx_clk_hw_gate("usb_phy", "nic1_bus_clk", base + 0xd4, 30); clks 183 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_USDHC0] = imx7ulp_clk_composite("usdhc0", periph_plat_sels, ARRAY_SIZE(periph_plat_sels), true, true, true, base + 0xdc); clks 184 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_USDHC1] = imx7ulp_clk_composite("usdhc1", periph_plat_sels, ARRAY_SIZE(periph_plat_sels), true, true, true, base + 0xe0); clks 185 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_WDG1] = imx7ulp_clk_composite("wdg1", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, true, true, base + 0xf4); clks 186 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_WDG2] = imx7ulp_clk_composite("sdg2", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, true, true, base + 0x10c); clks 188 drivers/clk/imx/clk-imx7ulp.c imx_check_clk_hws(clks, clk_data->num); clks 195 drivers/clk/imx/clk-imx7ulp.c pcc2_uart_clks[i] = &clks[index]->clk; clks 205 drivers/clk/imx/clk-imx7ulp.c struct clk_hw **clks; clks 215 drivers/clk/imx/clk-imx7ulp.c clks = clk_data->hws; clks 221 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LPTPM6] = imx7ulp_clk_composite("lptpm6", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0x84); clks 222 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LPTPM7] = imx7ulp_clk_composite("lptpm7", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0x88); clks 224 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_MMDC] = clk_hw_register_gate(NULL, "mmdc", "nic1_clk", CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, clks 226 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LPI2C6] = imx7ulp_clk_composite("lpi2c6", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0x90); clks 227 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LPI2C7] = imx7ulp_clk_composite("lpi2c7", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0x94); clks 228 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LPUART6] = imx7ulp_clk_composite("lpuart6", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0x98); clks 229 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LPUART7] = imx7ulp_clk_composite("lpuart7", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0x9c); clks 230 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_DSI] = imx7ulp_clk_composite("dsi", periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, true, true, base + 0xa4); clks 231 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_LCDIF] = imx7ulp_clk_composite("lcdif", periph_plat_sels, ARRAY_SIZE(periph_plat_sels), true, true, true, base + 0xa8); clks 233 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_VIU] = imx_clk_hw_gate("viu", "nic1_clk", base + 0xa0, 30); clks 234 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_PCTLC] = imx_clk_hw_gate("pctlc", "nic1_bus_clk", base + 0xb8, 30); clks 235 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_PCTLD] = imx_clk_hw_gate("pctld", "nic1_bus_clk", base + 0xbc, 30); clks 236 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_PCTLE] = imx_clk_hw_gate("pctle", "nic1_bus_clk", base + 0xc0, 30); clks 237 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_PCTLF] = imx_clk_hw_gate("pctlf", "nic1_bus_clk", base + 0xc4, 30); clks 239 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_GPU3D] = imx7ulp_clk_composite("gpu3d", periph_plat_sels, ARRAY_SIZE(periph_plat_sels), true, false, true, base + 0x140); clks 240 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_GPU2D] = imx7ulp_clk_composite("gpu2d", periph_plat_sels, ARRAY_SIZE(periph_plat_sels), true, false, true, base + 0x144); clks 242 drivers/clk/imx/clk-imx7ulp.c imx_check_clk_hws(clks, clk_data->num); clks 249 drivers/clk/imx/clk-imx7ulp.c pcc3_uart_clks[i] = &clks[index]->clk; clks 259 drivers/clk/imx/clk-imx7ulp.c struct clk_hw **clks; clks 268 drivers/clk/imx/clk-imx7ulp.c clks = clk_data->hws; clks 274 drivers/clk/imx/clk-imx7ulp.c clks[IMX7ULP_CLK_ARM] = imx_clk_hw_mux_flags("arm", base + 0x10, 8, 2, arm_sels, ARRAY_SIZE(arm_sels), CLK_IS_CRITICAL); clks 276 drivers/clk/imx/clk-imx7ulp.c imx_check_clk_hws(clks, clk_data->num); clks 357 drivers/clk/imx/clk-imx8mm.c static struct clk *clks[IMX8MM_CLK_END]; clks 361 drivers/clk/imx/clk-imx8mm.c &clks[IMX8MM_CLK_UART1_ROOT], clks 362 drivers/clk/imx/clk-imx8mm.c &clks[IMX8MM_CLK_UART2_ROOT], clks 363 drivers/clk/imx/clk-imx8mm.c &clks[IMX8MM_CLK_UART3_ROOT], clks 364 drivers/clk/imx/clk-imx8mm.c &clks[IMX8MM_CLK_UART4_ROOT], clks 375 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DUMMY] = imx_clk_fixed("dummy", 0); clks 376 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_24M] = of_clk_get_by_name(np, "osc_24m"); clks 377 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_32K] = of_clk_get_by_name(np, "osc_32k"); clks 378 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_EXT1] = of_clk_get_by_name(np, "clk_ext1"); clks 379 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_EXT2] = of_clk_get_by_name(np, "clk_ext2"); clks 380 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_EXT3] = of_clk_get_by_name(np, "clk_ext3"); clks 381 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_EXT4] = of_clk_get_by_name(np, "clk_ext4"); clks 388 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_AUDIO_PLL1_REF_SEL] = imx_clk_mux("audio_pll1_ref_sel", base + 0x0, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 389 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_AUDIO_PLL2_REF_SEL] = imx_clk_mux("audio_pll2_ref_sel", base + 0x14, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 390 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_VIDEO_PLL1_REF_SEL] = imx_clk_mux("video_pll1_ref_sel", base + 0x28, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 391 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_DRAM_PLL_REF_SEL] = imx_clk_mux("dram_pll_ref_sel", base + 0x50, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 392 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_GPU_PLL_REF_SEL] = imx_clk_mux("gpu_pll_ref_sel", base + 0x64, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 393 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_VPU_PLL_REF_SEL] = imx_clk_mux("vpu_pll_ref_sel", base + 0x74, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 394 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_ARM_PLL_REF_SEL] = imx_clk_mux("arm_pll_ref_sel", base + 0x84, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 395 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL1_REF_SEL] = imx_clk_mux("sys_pll1_ref_sel", base + 0x94, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 396 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL2_REF_SEL] = imx_clk_mux("sys_pll2_ref_sel", base + 0x104, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 397 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL3_REF_SEL] = imx_clk_mux("sys_pll3_ref_sel", base + 0x114, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 399 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_AUDIO_PLL1] = imx_clk_pll14xx("audio_pll1", "audio_pll1_ref_sel", base, &imx8mm_audio_pll); clks 400 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_AUDIO_PLL2] = imx_clk_pll14xx("audio_pll2", "audio_pll2_ref_sel", base + 0x14, &imx8mm_audio_pll); clks 401 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_VIDEO_PLL1] = imx_clk_pll14xx("video_pll1", "video_pll1_ref_sel", base + 0x28, &imx8mm_video_pll); clks 402 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_DRAM_PLL] = imx_clk_pll14xx("dram_pll", "dram_pll_ref_sel", base + 0x50, &imx8mm_dram_pll); clks 403 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_GPU_PLL] = imx_clk_pll14xx("gpu_pll", "gpu_pll_ref_sel", base + 0x64, &imx8mm_gpu_pll); clks 404 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_VPU_PLL] = imx_clk_pll14xx("vpu_pll", "vpu_pll_ref_sel", base + 0x74, &imx8mm_vpu_pll); clks 405 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_ARM_PLL] = imx_clk_pll14xx("arm_pll", "arm_pll_ref_sel", base + 0x84, &imx8mm_arm_pll); clks 406 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL1] = imx_clk_pll14xx("sys_pll1", "sys_pll1_ref_sel", base + 0x94, &imx8mm_sys_pll); clks 407 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL2] = imx_clk_pll14xx("sys_pll2", "sys_pll2_ref_sel", base + 0x104, &imx8mm_sys_pll); clks 408 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL3] = imx_clk_pll14xx("sys_pll3", "sys_pll3_ref_sel", base + 0x114, &imx8mm_sys_pll); clks 411 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_AUDIO_PLL1_BYPASS] = imx_clk_mux_flags("audio_pll1_bypass", base, 16, 1, audio_pll1_bypass_sels, ARRAY_SIZE(audio_pll1_bypass_sels), CLK_SET_RATE_PARENT); clks 412 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_AUDIO_PLL2_BYPASS] = imx_clk_mux_flags("audio_pll2_bypass", base + 0x14, 16, 1, audio_pll2_bypass_sels, ARRAY_SIZE(audio_pll2_bypass_sels), CLK_SET_RATE_PARENT); clks 413 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_VIDEO_PLL1_BYPASS] = imx_clk_mux_flags("video_pll1_bypass", base + 0x28, 16, 1, video_pll1_bypass_sels, ARRAY_SIZE(video_pll1_bypass_sels), CLK_SET_RATE_PARENT); clks 414 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_DRAM_PLL_BYPASS] = imx_clk_mux_flags("dram_pll_bypass", base + 0x50, 16, 1, dram_pll_bypass_sels, ARRAY_SIZE(dram_pll_bypass_sels), CLK_SET_RATE_PARENT); clks 415 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_GPU_PLL_BYPASS] = imx_clk_mux_flags("gpu_pll_bypass", base + 0x64, 28, 1, gpu_pll_bypass_sels, ARRAY_SIZE(gpu_pll_bypass_sels), CLK_SET_RATE_PARENT); clks 416 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_VPU_PLL_BYPASS] = imx_clk_mux_flags("vpu_pll_bypass", base + 0x74, 28, 1, vpu_pll_bypass_sels, ARRAY_SIZE(vpu_pll_bypass_sels), CLK_SET_RATE_PARENT); clks 417 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_ARM_PLL_BYPASS] = imx_clk_mux_flags("arm_pll_bypass", base + 0x84, 28, 1, arm_pll_bypass_sels, ARRAY_SIZE(arm_pll_bypass_sels), CLK_SET_RATE_PARENT); clks 418 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL1_BYPASS] = imx_clk_mux_flags("sys_pll1_bypass", base + 0x94, 28, 1, sys_pll1_bypass_sels, ARRAY_SIZE(sys_pll1_bypass_sels), CLK_SET_RATE_PARENT); clks 419 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL2_BYPASS] = imx_clk_mux_flags("sys_pll2_bypass", base + 0x104, 28, 1, sys_pll2_bypass_sels, ARRAY_SIZE(sys_pll2_bypass_sels), CLK_SET_RATE_PARENT); clks 420 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL3_BYPASS] = imx_clk_mux_flags("sys_pll3_bypass", base + 0x114, 28, 1, sys_pll3_bypass_sels, ARRAY_SIZE(sys_pll3_bypass_sels), CLK_SET_RATE_PARENT); clks 423 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_AUDIO_PLL1_OUT] = imx_clk_gate("audio_pll1_out", "audio_pll1_bypass", base, 13); clks 424 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_AUDIO_PLL2_OUT] = imx_clk_gate("audio_pll2_out", "audio_pll2_bypass", base + 0x14, 13); clks 425 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_VIDEO_PLL1_OUT] = imx_clk_gate("video_pll1_out", "video_pll1_bypass", base + 0x28, 13); clks 426 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_DRAM_PLL_OUT] = imx_clk_gate("dram_pll_out", "dram_pll_bypass", base + 0x50, 13); clks 427 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_GPU_PLL_OUT] = imx_clk_gate("gpu_pll_out", "gpu_pll_bypass", base + 0x64, 11); clks 428 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_VPU_PLL_OUT] = imx_clk_gate("vpu_pll_out", "vpu_pll_bypass", base + 0x74, 11); clks 429 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_ARM_PLL_OUT] = imx_clk_gate("arm_pll_out", "arm_pll_bypass", base + 0x84, 11); clks 430 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL1_OUT] = imx_clk_gate("sys_pll1_out", "sys_pll1_bypass", base + 0x94, 11); clks 431 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL2_OUT] = imx_clk_gate("sys_pll2_out", "sys_pll2_bypass", base + 0x104, 11); clks 432 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL3_OUT] = imx_clk_gate("sys_pll3_out", "sys_pll3_bypass", base + 0x114, 11); clks 435 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL1_40M] = imx_clk_fixed_factor("sys_pll1_40m", "sys_pll1_out", 1, 20); clks 436 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL1_80M] = imx_clk_fixed_factor("sys_pll1_80m", "sys_pll1_out", 1, 10); clks 437 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL1_100M] = imx_clk_fixed_factor("sys_pll1_100m", "sys_pll1_out", 1, 8); clks 438 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL1_133M] = imx_clk_fixed_factor("sys_pll1_133m", "sys_pll1_out", 1, 6); clks 439 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL1_160M] = imx_clk_fixed_factor("sys_pll1_160m", "sys_pll1_out", 1, 5); clks 440 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL1_200M] = imx_clk_fixed_factor("sys_pll1_200m", "sys_pll1_out", 1, 4); clks 441 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL1_266M] = imx_clk_fixed_factor("sys_pll1_266m", "sys_pll1_out", 1, 3); clks 442 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL1_400M] = imx_clk_fixed_factor("sys_pll1_400m", "sys_pll1_out", 1, 2); clks 443 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL1_800M] = imx_clk_fixed_factor("sys_pll1_800m", "sys_pll1_out", 1, 1); clks 445 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL2_50M] = imx_clk_fixed_factor("sys_pll2_50m", "sys_pll2_out", 1, 20); clks 446 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL2_100M] = imx_clk_fixed_factor("sys_pll2_100m", "sys_pll2_out", 1, 10); clks 447 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL2_125M] = imx_clk_fixed_factor("sys_pll2_125m", "sys_pll2_out", 1, 8); clks 448 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL2_166M] = imx_clk_fixed_factor("sys_pll2_166m", "sys_pll2_out", 1, 6); clks 449 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL2_200M] = imx_clk_fixed_factor("sys_pll2_200m", "sys_pll2_out", 1, 5); clks 450 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL2_250M] = imx_clk_fixed_factor("sys_pll2_250m", "sys_pll2_out", 1, 4); clks 451 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL2_333M] = imx_clk_fixed_factor("sys_pll2_333m", "sys_pll2_out", 1, 3); clks 452 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL2_500M] = imx_clk_fixed_factor("sys_pll2_500m", "sys_pll2_out", 1, 2); clks 453 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL2_1000M] = imx_clk_fixed_factor("sys_pll2_1000m", "sys_pll2_out", 1, 1); clks 461 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_A53_SRC] = imx_clk_mux2("arm_a53_src", base + 0x8000, 24, 3, imx8mm_a53_sels, ARRAY_SIZE(imx8mm_a53_sels)); clks 462 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_M4_SRC] = imx_clk_mux2("arm_m4_src", base + 0x8080, 24, 3, imx8mm_m4_sels, ARRAY_SIZE(imx8mm_m4_sels)); clks 463 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_VPU_SRC] = imx_clk_mux2("vpu_src", base + 0x8100, 24, 3, imx8mm_vpu_sels, ARRAY_SIZE(imx8mm_vpu_sels)); clks 464 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPU3D_SRC] = imx_clk_mux2("gpu3d_src", base + 0x8180, 24, 3, imx8mm_gpu3d_sels, ARRAY_SIZE(imx8mm_gpu3d_sels)); clks 465 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPU2D_SRC] = imx_clk_mux2("gpu2d_src", base + 0x8200, 24, 3, imx8mm_gpu2d_sels, ARRAY_SIZE(imx8mm_gpu2d_sels)); clks 466 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_A53_CG] = imx_clk_gate3("arm_a53_cg", "arm_a53_src", base + 0x8000, 28); clks 467 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_M4_CG] = imx_clk_gate3("arm_m4_cg", "arm_m4_src", base + 0x8080, 28); clks 468 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_VPU_CG] = imx_clk_gate3("vpu_cg", "vpu_src", base + 0x8100, 28); clks 469 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPU3D_CG] = imx_clk_gate3("gpu3d_cg", "gpu3d_src", base + 0x8180, 28); clks 470 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPU2D_CG] = imx_clk_gate3("gpu2d_cg", "gpu2d_src", base + 0x8200, 28); clks 471 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_A53_DIV] = imx_clk_divider2("arm_a53_div", "arm_a53_cg", base + 0x8000, 0, 3); clks 472 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_M4_DIV] = imx_clk_divider2("arm_m4_div", "arm_m4_cg", base + 0x8080, 0, 3); clks 473 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_VPU_DIV] = imx_clk_divider2("vpu_div", "vpu_cg", base + 0x8100, 0, 3); clks 474 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPU3D_DIV] = imx_clk_divider2("gpu3d_div", "gpu3d_cg", base + 0x8180, 0, 3); clks 475 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPU2D_DIV] = imx_clk_divider2("gpu2d_div", "gpu2d_cg", base + 0x8200, 0, 3); clks 478 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_MAIN_AXI] = imx8m_clk_composite_critical("main_axi", imx8mm_main_axi_sels, base + 0x8800); clks 479 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_ENET_AXI] = imx8m_clk_composite("enet_axi", imx8mm_enet_axi_sels, base + 0x8880); clks 480 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_NAND_USDHC_BUS] = imx8m_clk_composite_critical("nand_usdhc_bus", imx8mm_nand_usdhc_sels, base + 0x8900); clks 481 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_VPU_BUS] = imx8m_clk_composite("vpu_bus", imx8mm_vpu_bus_sels, base + 0x8980); clks 482 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DISP_AXI] = imx8m_clk_composite("disp_axi", imx8mm_disp_axi_sels, base + 0x8a00); clks 483 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DISP_APB] = imx8m_clk_composite("disp_apb", imx8mm_disp_apb_sels, base + 0x8a80); clks 484 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DISP_RTRM] = imx8m_clk_composite("disp_rtrm", imx8mm_disp_rtrm_sels, base + 0x8b00); clks 485 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_USB_BUS] = imx8m_clk_composite("usb_bus", imx8mm_usb_bus_sels, base + 0x8b80); clks 486 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPU_AXI] = imx8m_clk_composite("gpu_axi", imx8mm_gpu_axi_sels, base + 0x8c00); clks 487 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPU_AHB] = imx8m_clk_composite("gpu_ahb", imx8mm_gpu_ahb_sels, base + 0x8c80); clks 488 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_NOC] = imx8m_clk_composite_critical("noc", imx8mm_noc_sels, base + 0x8d00); clks 489 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_NOC_APB] = imx8m_clk_composite_critical("noc_apb", imx8mm_noc_apb_sels, base + 0x8d80); clks 492 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_AHB] = imx8m_clk_composite_critical("ahb", imx8mm_ahb_sels, base + 0x9000); clks 493 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_AUDIO_AHB] = imx8m_clk_composite("audio_ahb", imx8mm_audio_ahb_sels, base + 0x9100); clks 496 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_IPG_ROOT] = imx_clk_divider2("ipg_root", "ahb", base + 0x9080, 0, 1); clks 497 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_IPG_AUDIO_ROOT] = imx_clk_divider2("ipg_audio_root", "audio_ahb", base + 0x9180, 0, 1); clks 500 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DRAM_ALT] = imx8m_clk_composite("dram_alt", imx8mm_dram_alt_sels, base + 0xa000); clks 501 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DRAM_APB] = imx8m_clk_composite_critical("dram_apb", imx8mm_dram_apb_sels, base + 0xa080); clks 502 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_VPU_G1] = imx8m_clk_composite("vpu_g1", imx8mm_vpu_g1_sels, base + 0xa100); clks 503 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_VPU_G2] = imx8m_clk_composite("vpu_g2", imx8mm_vpu_g2_sels, base + 0xa180); clks 504 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DISP_DTRC] = imx8m_clk_composite("disp_dtrc", imx8mm_disp_dtrc_sels, base + 0xa200); clks 505 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DISP_DC8000] = imx8m_clk_composite("disp_dc8000", imx8mm_disp_dc8000_sels, base + 0xa280); clks 506 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PCIE1_CTRL] = imx8m_clk_composite("pcie1_ctrl", imx8mm_pcie1_ctrl_sels, base + 0xa300); clks 507 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PCIE1_PHY] = imx8m_clk_composite("pcie1_phy", imx8mm_pcie1_phy_sels, base + 0xa380); clks 508 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PCIE1_AUX] = imx8m_clk_composite("pcie1_aux", imx8mm_pcie1_aux_sels, base + 0xa400); clks 509 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DC_PIXEL] = imx8m_clk_composite("dc_pixel", imx8mm_dc_pixel_sels, base + 0xa480); clks 510 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_LCDIF_PIXEL] = imx8m_clk_composite("lcdif_pixel", imx8mm_lcdif_pixel_sels, base + 0xa500); clks 511 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI1] = imx8m_clk_composite("sai1", imx8mm_sai1_sels, base + 0xa580); clks 512 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI2] = imx8m_clk_composite("sai2", imx8mm_sai2_sels, base + 0xa600); clks 513 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI3] = imx8m_clk_composite("sai3", imx8mm_sai3_sels, base + 0xa680); clks 514 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI4] = imx8m_clk_composite("sai4", imx8mm_sai4_sels, base + 0xa700); clks 515 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI5] = imx8m_clk_composite("sai5", imx8mm_sai5_sels, base + 0xa780); clks 516 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI6] = imx8m_clk_composite("sai6", imx8mm_sai6_sels, base + 0xa800); clks 517 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SPDIF1] = imx8m_clk_composite("spdif1", imx8mm_spdif1_sels, base + 0xa880); clks 518 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SPDIF2] = imx8m_clk_composite("spdif2", imx8mm_spdif2_sels, base + 0xa900); clks 519 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_ENET_REF] = imx8m_clk_composite("enet_ref", imx8mm_enet_ref_sels, base + 0xa980); clks 520 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_ENET_TIMER] = imx8m_clk_composite("enet_timer", imx8mm_enet_timer_sels, base + 0xaa00); clks 521 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_ENET_PHY_REF] = imx8m_clk_composite("enet_phy", imx8mm_enet_phy_sels, base + 0xaa80); clks 522 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_NAND] = imx8m_clk_composite("nand", imx8mm_nand_sels, base + 0xab00); clks 523 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_QSPI] = imx8m_clk_composite("qspi", imx8mm_qspi_sels, base + 0xab80); clks 524 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_USDHC1] = imx8m_clk_composite("usdhc1", imx8mm_usdhc1_sels, base + 0xac00); clks 525 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_USDHC2] = imx8m_clk_composite("usdhc2", imx8mm_usdhc2_sels, base + 0xac80); clks 526 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_I2C1] = imx8m_clk_composite("i2c1", imx8mm_i2c1_sels, base + 0xad00); clks 527 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_I2C2] = imx8m_clk_composite("i2c2", imx8mm_i2c2_sels, base + 0xad80); clks 528 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_I2C3] = imx8m_clk_composite("i2c3", imx8mm_i2c3_sels, base + 0xae00); clks 529 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_I2C4] = imx8m_clk_composite("i2c4", imx8mm_i2c4_sels, base + 0xae80); clks 530 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_UART1] = imx8m_clk_composite("uart1", imx8mm_uart1_sels, base + 0xaf00); clks 531 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_UART2] = imx8m_clk_composite("uart2", imx8mm_uart2_sels, base + 0xaf80); clks 532 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_UART3] = imx8m_clk_composite("uart3", imx8mm_uart3_sels, base + 0xb000); clks 533 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_UART4] = imx8m_clk_composite("uart4", imx8mm_uart4_sels, base + 0xb080); clks 534 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_USB_CORE_REF] = imx8m_clk_composite("usb_core_ref", imx8mm_usb_core_sels, base + 0xb100); clks 535 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_USB_PHY_REF] = imx8m_clk_composite("usb_phy_ref", imx8mm_usb_phy_sels, base + 0xb180); clks 536 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GIC] = imx8m_clk_composite_critical("gic", imx8mm_gic_sels, base + 0xb200); clks 537 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_ECSPI1] = imx8m_clk_composite("ecspi1", imx8mm_ecspi1_sels, base + 0xb280); clks 538 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_ECSPI2] = imx8m_clk_composite("ecspi2", imx8mm_ecspi2_sels, base + 0xb300); clks 539 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PWM1] = imx8m_clk_composite("pwm1", imx8mm_pwm1_sels, base + 0xb380); clks 540 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PWM2] = imx8m_clk_composite("pwm2", imx8mm_pwm2_sels, base + 0xb400); clks 541 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PWM3] = imx8m_clk_composite("pwm3", imx8mm_pwm3_sels, base + 0xb480); clks 542 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PWM4] = imx8m_clk_composite("pwm4", imx8mm_pwm4_sels, base + 0xb500); clks 543 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPT1] = imx8m_clk_composite("gpt1", imx8mm_gpt1_sels, base + 0xb580); clks 544 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_WDOG] = imx8m_clk_composite("wdog", imx8mm_wdog_sels, base + 0xb900); clks 545 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_WRCLK] = imx8m_clk_composite("wrclk", imx8mm_wrclk_sels, base + 0xb980); clks 546 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_CLKO1] = imx8m_clk_composite("clko1", imx8mm_clko1_sels, base + 0xba00); clks 547 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DSI_CORE] = imx8m_clk_composite("dsi_core", imx8mm_dsi_core_sels, base + 0xbb00); clks 548 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DSI_PHY_REF] = imx8m_clk_composite("dsi_phy_ref", imx8mm_dsi_phy_sels, base + 0xbb80); clks 549 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DSI_DBI] = imx8m_clk_composite("dsi_dbi", imx8mm_dsi_dbi_sels, base + 0xbc00); clks 550 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_USDHC3] = imx8m_clk_composite("usdhc3", imx8mm_usdhc3_sels, base + 0xbc80); clks 551 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_CSI1_CORE] = imx8m_clk_composite("csi1_core", imx8mm_csi1_core_sels, base + 0xbd00); clks 552 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_CSI1_PHY_REF] = imx8m_clk_composite("csi1_phy_ref", imx8mm_csi1_phy_sels, base + 0xbd80); clks 553 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_CSI1_ESC] = imx8m_clk_composite("csi1_esc", imx8mm_csi1_esc_sels, base + 0xbe00); clks 554 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_CSI2_CORE] = imx8m_clk_composite("csi2_core", imx8mm_csi2_core_sels, base + 0xbe80); clks 555 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_CSI2_PHY_REF] = imx8m_clk_composite("csi2_phy_ref", imx8mm_csi2_phy_sels, base + 0xbf00); clks 556 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_CSI2_ESC] = imx8m_clk_composite("csi2_esc", imx8mm_csi2_esc_sels, base + 0xbf80); clks 557 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PCIE2_CTRL] = imx8m_clk_composite("pcie2_ctrl", imx8mm_pcie2_ctrl_sels, base + 0xc000); clks 558 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PCIE2_PHY] = imx8m_clk_composite("pcie2_phy", imx8mm_pcie2_phy_sels, base + 0xc080); clks 559 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PCIE2_AUX] = imx8m_clk_composite("pcie2_aux", imx8mm_pcie2_aux_sels, base + 0xc100); clks 560 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_ECSPI3] = imx8m_clk_composite("ecspi3", imx8mm_ecspi3_sels, base + 0xc180); clks 561 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PDM] = imx8m_clk_composite("pdm", imx8mm_pdm_sels, base + 0xc200); clks 562 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_VPU_H1] = imx8m_clk_composite("vpu_h1", imx8mm_vpu_h1_sels, base + 0xc280); clks 565 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_ECSPI1_ROOT] = imx_clk_gate4("ecspi1_root_clk", "ecspi1", base + 0x4070, 0); clks 566 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_ECSPI2_ROOT] = imx_clk_gate4("ecspi2_root_clk", "ecspi2", base + 0x4080, 0); clks 567 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_ECSPI3_ROOT] = imx_clk_gate4("ecspi3_root_clk", "ecspi3", base + 0x4090, 0); clks 568 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_ENET1_ROOT] = imx_clk_gate4("enet1_root_clk", "enet_axi", base + 0x40a0, 0); clks 569 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPIO1_ROOT] = imx_clk_gate4("gpio1_root_clk", "ipg_root", base + 0x40b0, 0); clks 570 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPIO2_ROOT] = imx_clk_gate4("gpio2_root_clk", "ipg_root", base + 0x40c0, 0); clks 571 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPIO3_ROOT] = imx_clk_gate4("gpio3_root_clk", "ipg_root", base + 0x40d0, 0); clks 572 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPIO4_ROOT] = imx_clk_gate4("gpio4_root_clk", "ipg_root", base + 0x40e0, 0); clks 573 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPIO5_ROOT] = imx_clk_gate4("gpio5_root_clk", "ipg_root", base + 0x40f0, 0); clks 574 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPT1_ROOT] = imx_clk_gate4("gpt1_root_clk", "gpt1", base + 0x4100, 0); clks 575 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_I2C1_ROOT] = imx_clk_gate4("i2c1_root_clk", "i2c1", base + 0x4170, 0); clks 576 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_I2C2_ROOT] = imx_clk_gate4("i2c2_root_clk", "i2c2", base + 0x4180, 0); clks 577 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_I2C3_ROOT] = imx_clk_gate4("i2c3_root_clk", "i2c3", base + 0x4190, 0); clks 578 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_I2C4_ROOT] = imx_clk_gate4("i2c4_root_clk", "i2c4", base + 0x41a0, 0); clks 579 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_MU_ROOT] = imx_clk_gate4("mu_root_clk", "ipg_root", base + 0x4210, 0); clks 580 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_OCOTP_ROOT] = imx_clk_gate4("ocotp_root_clk", "ipg_root", base + 0x4220, 0); clks 581 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PCIE1_ROOT] = imx_clk_gate4("pcie1_root_clk", "pcie1_ctrl", base + 0x4250, 0); clks 582 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PWM1_ROOT] = imx_clk_gate4("pwm1_root_clk", "pwm1", base + 0x4280, 0); clks 583 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PWM2_ROOT] = imx_clk_gate4("pwm2_root_clk", "pwm2", base + 0x4290, 0); clks 584 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PWM3_ROOT] = imx_clk_gate4("pwm3_root_clk", "pwm3", base + 0x42a0, 0); clks 585 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PWM4_ROOT] = imx_clk_gate4("pwm4_root_clk", "pwm4", base + 0x42b0, 0); clks 586 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_QSPI_ROOT] = imx_clk_gate4("qspi_root_clk", "qspi", base + 0x42f0, 0); clks 587 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_NAND_ROOT] = imx_clk_gate2_shared2("nand_root_clk", "nand", base + 0x4300, 0, &share_count_nand); clks 588 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_NAND_USDHC_BUS_RAWNAND_CLK] = imx_clk_gate2_shared2("nand_usdhc_rawnand_clk", "nand_usdhc_bus", base + 0x4300, 0, &share_count_nand); clks 589 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI1_ROOT] = imx_clk_gate2_shared2("sai1_root_clk", "sai1", base + 0x4330, 0, &share_count_sai1); clks 590 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI1_IPG] = imx_clk_gate2_shared2("sai1_ipg_clk", "ipg_audio_root", base + 0x4330, 0, &share_count_sai1); clks 591 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI2_ROOT] = imx_clk_gate2_shared2("sai2_root_clk", "sai2", base + 0x4340, 0, &share_count_sai2); clks 592 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI2_IPG] = imx_clk_gate2_shared2("sai2_ipg_clk", "ipg_audio_root", base + 0x4340, 0, &share_count_sai2); clks 593 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI3_ROOT] = imx_clk_gate2_shared2("sai3_root_clk", "sai3", base + 0x4350, 0, &share_count_sai3); clks 594 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI3_IPG] = imx_clk_gate2_shared2("sai3_ipg_clk", "ipg_audio_root", base + 0x4350, 0, &share_count_sai3); clks 595 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI4_ROOT] = imx_clk_gate2_shared2("sai4_root_clk", "sai4", base + 0x4360, 0, &share_count_sai4); clks 596 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI4_IPG] = imx_clk_gate2_shared2("sai4_ipg_clk", "ipg_audio_root", base + 0x4360, 0, &share_count_sai4); clks 597 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI5_ROOT] = imx_clk_gate2_shared2("sai5_root_clk", "sai5", base + 0x4370, 0, &share_count_sai5); clks 598 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI5_IPG] = imx_clk_gate2_shared2("sai5_ipg_clk", "ipg_audio_root", base + 0x4370, 0, &share_count_sai5); clks 599 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI6_ROOT] = imx_clk_gate2_shared2("sai6_root_clk", "sai6", base + 0x4380, 0, &share_count_sai6); clks 600 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SAI6_IPG] = imx_clk_gate2_shared2("sai6_ipg_clk", "ipg_audio_root", base + 0x4380, 0, &share_count_sai6); clks 601 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SNVS_ROOT] = imx_clk_gate4("snvs_root_clk", "ipg_root", base + 0x4470, 0); clks 602 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_UART1_ROOT] = imx_clk_gate4("uart1_root_clk", "uart1", base + 0x4490, 0); clks 603 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_UART2_ROOT] = imx_clk_gate4("uart2_root_clk", "uart2", base + 0x44a0, 0); clks 604 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_UART3_ROOT] = imx_clk_gate4("uart3_root_clk", "uart3", base + 0x44b0, 0); clks 605 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_UART4_ROOT] = imx_clk_gate4("uart4_root_clk", "uart4", base + 0x44c0, 0); clks 606 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_USB1_CTRL_ROOT] = imx_clk_gate4("usb1_ctrl_root_clk", "usb_bus", base + 0x44d0, 0); clks 607 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPU3D_ROOT] = imx_clk_gate4("gpu3d_root_clk", "gpu3d_div", base + 0x44f0, 0); clks 608 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_USDHC1_ROOT] = imx_clk_gate4("usdhc1_root_clk", "usdhc1", base + 0x4510, 0); clks 609 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_USDHC2_ROOT] = imx_clk_gate4("usdhc2_root_clk", "usdhc2", base + 0x4520, 0); clks 610 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_WDOG1_ROOT] = imx_clk_gate4("wdog1_root_clk", "wdog", base + 0x4530, 0); clks 611 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_WDOG2_ROOT] = imx_clk_gate4("wdog2_root_clk", "wdog", base + 0x4540, 0); clks 612 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_WDOG3_ROOT] = imx_clk_gate4("wdog3_root_clk", "wdog", base + 0x4550, 0); clks 613 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_VPU_G1_ROOT] = imx_clk_gate4("vpu_g1_root_clk", "vpu_g1", base + 0x4560, 0); clks 614 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPU_BUS_ROOT] = imx_clk_gate4("gpu_root_clk", "gpu_axi", base + 0x4570, 0); clks 615 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_VPU_H1_ROOT] = imx_clk_gate4("vpu_h1_root_clk", "vpu_h1", base + 0x4590, 0); clks 616 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_VPU_G2_ROOT] = imx_clk_gate4("vpu_g2_root_clk", "vpu_g2", base + 0x45a0, 0); clks 617 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PDM_ROOT] = imx_clk_gate2_shared2("pdm_root_clk", "pdm", base + 0x45b0, 0, &share_count_pdm); clks 618 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_PDM_IPG] = imx_clk_gate2_shared2("pdm_ipg_clk", "ipg_audio_root", base + 0x45b0, 0, &share_count_pdm); clks 619 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DISP_ROOT] = imx_clk_gate2_shared2("disp_root_clk", "disp_dc8000", base + 0x45d0, 0, &share_count_disp); clks 620 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DISP_AXI_ROOT] = imx_clk_gate2_shared2("disp_axi_root_clk", "disp_axi", base + 0x45d0, 0, &share_count_disp); clks 621 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DISP_APB_ROOT] = imx_clk_gate2_shared2("disp_apb_root_clk", "disp_apb", base + 0x45d0, 0, &share_count_disp); clks 622 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DISP_RTRM_ROOT] = imx_clk_gate2_shared2("disp_rtrm_root_clk", "disp_rtrm", base + 0x45d0, 0, &share_count_disp); clks 623 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_USDHC3_ROOT] = imx_clk_gate4("usdhc3_root_clk", "usdhc3", base + 0x45e0, 0); clks 624 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_TMU_ROOT] = imx_clk_gate4("tmu_root_clk", "ipg_root", base + 0x4620, 0); clks 625 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_VPU_DEC_ROOT] = imx_clk_gate4("vpu_dec_root_clk", "vpu_bus", base + 0x4630, 0); clks 626 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SDMA1_ROOT] = imx_clk_gate4("sdma1_clk", "ipg_root", base + 0x43a0, 0); clks 627 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SDMA2_ROOT] = imx_clk_gate4("sdma2_clk", "ipg_audio_root", base + 0x43b0, 0); clks 628 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_SDMA3_ROOT] = imx_clk_gate4("sdma3_clk", "ipg_audio_root", base + 0x45f0, 0); clks 629 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPU2D_ROOT] = imx_clk_gate4("gpu2d_root_clk", "gpu2d_div", base + 0x4660, 0); clks 630 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_CSI1_ROOT] = imx_clk_gate4("csi1_root_clk", "csi1_core", base + 0x4650, 0); clks 632 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_GPT_3M] = imx_clk_fixed_factor("gpt_3m", "osc_24m", 1, 8); clks 634 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DRAM_ALT_ROOT] = imx_clk_fixed_factor("dram_alt_root", "dram_alt", 1, 4); clks 635 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_DRAM_CORE] = imx_clk_mux2_flags("dram_core_clk", base + 0x9800, 24, 1, imx8mm_dram_core_sels, ARRAY_SIZE(imx8mm_dram_core_sels), CLK_IS_CRITICAL); clks 637 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_ARM] = imx_clk_cpu("arm", "arm_a53_div", clks 638 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_A53_DIV], clks 639 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_CLK_A53_SRC], clks 640 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_ARM_PLL_OUT], clks 641 drivers/clk/imx/clk-imx8mm.c clks[IMX8MM_SYS_PLL1_800M]); clks 643 drivers/clk/imx/clk-imx8mm.c imx_check_clocks(clks, ARRAY_SIZE(clks)); clks 645 drivers/clk/imx/clk-imx8mm.c clk_data.clks = clks; clks 646 drivers/clk/imx/clk-imx8mm.c clk_data.clk_num = ARRAY_SIZE(clks); clks 658 drivers/clk/imx/clk-imx8mm.c imx_unregister_clocks(clks, ARRAY_SIZE(clks)); clks 368 drivers/clk/imx/clk-imx8mn.c static struct clk *clks[IMX8MN_CLK_END]; clks 372 drivers/clk/imx/clk-imx8mn.c &clks[IMX8MN_CLK_UART1_ROOT], clks 373 drivers/clk/imx/clk-imx8mn.c &clks[IMX8MN_CLK_UART2_ROOT], clks 374 drivers/clk/imx/clk-imx8mn.c &clks[IMX8MN_CLK_UART3_ROOT], clks 375 drivers/clk/imx/clk-imx8mn.c &clks[IMX8MN_CLK_UART4_ROOT], clks 386 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_DUMMY] = imx_clk_fixed("dummy", 0); clks 387 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_24M] = of_clk_get_by_name(np, "osc_24m"); clks 388 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_32K] = of_clk_get_by_name(np, "osc_32k"); clks 389 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_EXT1] = of_clk_get_by_name(np, "clk_ext1"); clks 390 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_EXT2] = of_clk_get_by_name(np, "clk_ext2"); clks 391 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_EXT3] = of_clk_get_by_name(np, "clk_ext3"); clks 392 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_EXT4] = of_clk_get_by_name(np, "clk_ext4"); clks 401 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_AUDIO_PLL1_REF_SEL] = imx_clk_mux("audio_pll1_ref_sel", base + 0x0, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 402 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_AUDIO_PLL2_REF_SEL] = imx_clk_mux("audio_pll2_ref_sel", base + 0x14, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 403 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_VIDEO_PLL1_REF_SEL] = imx_clk_mux("video_pll1_ref_sel", base + 0x28, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 404 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_DRAM_PLL_REF_SEL] = imx_clk_mux("dram_pll_ref_sel", base + 0x50, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 405 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_GPU_PLL_REF_SEL] = imx_clk_mux("gpu_pll_ref_sel", base + 0x64, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 406 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_VPU_PLL_REF_SEL] = imx_clk_mux("vpu_pll_ref_sel", base + 0x74, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 407 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_ARM_PLL_REF_SEL] = imx_clk_mux("arm_pll_ref_sel", base + 0x84, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 408 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL1_REF_SEL] = imx_clk_mux("sys_pll1_ref_sel", base + 0x94, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 409 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL2_REF_SEL] = imx_clk_mux("sys_pll2_ref_sel", base + 0x104, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 410 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL3_REF_SEL] = imx_clk_mux("sys_pll3_ref_sel", base + 0x114, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 412 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_AUDIO_PLL1] = imx_clk_pll14xx("audio_pll1", "audio_pll1_ref_sel", base, &imx8mn_audio_pll); clks 413 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_AUDIO_PLL2] = imx_clk_pll14xx("audio_pll2", "audio_pll2_ref_sel", base + 0x14, &imx8mn_audio_pll); clks 414 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_VIDEO_PLL1] = imx_clk_pll14xx("video_pll1", "video_pll1_ref_sel", base + 0x28, &imx8mn_video_pll); clks 415 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_DRAM_PLL] = imx_clk_pll14xx("dram_pll", "dram_pll_ref_sel", base + 0x50, &imx8mn_dram_pll); clks 416 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_GPU_PLL] = imx_clk_pll14xx("gpu_pll", "gpu_pll_ref_sel", base + 0x64, &imx8mn_gpu_pll); clks 417 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_VPU_PLL] = imx_clk_pll14xx("vpu_pll", "vpu_pll_ref_sel", base + 0x74, &imx8mn_vpu_pll); clks 418 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_ARM_PLL] = imx_clk_pll14xx("arm_pll", "arm_pll_ref_sel", base + 0x84, &imx8mn_arm_pll); clks 419 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL1] = imx_clk_pll14xx("sys_pll1", "sys_pll1_ref_sel", base + 0x94, &imx8mn_sys_pll); clks 420 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL2] = imx_clk_pll14xx("sys_pll2", "sys_pll2_ref_sel", base + 0x104, &imx8mn_sys_pll); clks 421 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL3] = imx_clk_pll14xx("sys_pll3", "sys_pll3_ref_sel", base + 0x114, &imx8mn_sys_pll); clks 424 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_AUDIO_PLL1_BYPASS] = imx_clk_mux_flags("audio_pll1_bypass", base, 16, 1, audio_pll1_bypass_sels, ARRAY_SIZE(audio_pll1_bypass_sels), CLK_SET_RATE_PARENT); clks 425 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_AUDIO_PLL2_BYPASS] = imx_clk_mux_flags("audio_pll2_bypass", base + 0x14, 16, 1, audio_pll2_bypass_sels, ARRAY_SIZE(audio_pll2_bypass_sels), CLK_SET_RATE_PARENT); clks 426 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_VIDEO_PLL1_BYPASS] = imx_clk_mux_flags("video_pll1_bypass", base + 0x28, 16, 1, video_pll1_bypass_sels, ARRAY_SIZE(video_pll1_bypass_sels), CLK_SET_RATE_PARENT); clks 427 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_DRAM_PLL_BYPASS] = imx_clk_mux_flags("dram_pll_bypass", base + 0x50, 16, 1, dram_pll_bypass_sels, ARRAY_SIZE(dram_pll_bypass_sels), CLK_SET_RATE_PARENT); clks 428 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_GPU_PLL_BYPASS] = imx_clk_mux_flags("gpu_pll_bypass", base + 0x64, 28, 1, gpu_pll_bypass_sels, ARRAY_SIZE(gpu_pll_bypass_sels), CLK_SET_RATE_PARENT); clks 429 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_VPU_PLL_BYPASS] = imx_clk_mux_flags("vpu_pll_bypass", base + 0x74, 28, 1, vpu_pll_bypass_sels, ARRAY_SIZE(vpu_pll_bypass_sels), CLK_SET_RATE_PARENT); clks 430 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_ARM_PLL_BYPASS] = imx_clk_mux_flags("arm_pll_bypass", base + 0x84, 28, 1, arm_pll_bypass_sels, ARRAY_SIZE(arm_pll_bypass_sels), CLK_SET_RATE_PARENT); clks 431 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL1_BYPASS] = imx_clk_mux_flags("sys_pll1_bypass", base + 0x94, 28, 1, sys_pll1_bypass_sels, ARRAY_SIZE(sys_pll1_bypass_sels), CLK_SET_RATE_PARENT); clks 432 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL2_BYPASS] = imx_clk_mux_flags("sys_pll2_bypass", base + 0x104, 28, 1, sys_pll2_bypass_sels, ARRAY_SIZE(sys_pll2_bypass_sels), CLK_SET_RATE_PARENT); clks 433 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL3_BYPASS] = imx_clk_mux_flags("sys_pll3_bypass", base + 0x114, 28, 1, sys_pll3_bypass_sels, ARRAY_SIZE(sys_pll3_bypass_sels), CLK_SET_RATE_PARENT); clks 436 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_AUDIO_PLL1_OUT] = imx_clk_gate("audio_pll1_out", "audio_pll1_bypass", base, 13); clks 437 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_AUDIO_PLL2_OUT] = imx_clk_gate("audio_pll2_out", "audio_pll2_bypass", base + 0x14, 13); clks 438 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_VIDEO_PLL1_OUT] = imx_clk_gate("video_pll1_out", "video_pll1_bypass", base + 0x28, 13); clks 439 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_DRAM_PLL_OUT] = imx_clk_gate("dram_pll_out", "dram_pll_bypass", base + 0x50, 13); clks 440 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_GPU_PLL_OUT] = imx_clk_gate("gpu_pll_out", "gpu_pll_bypass", base + 0x64, 11); clks 441 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_VPU_PLL_OUT] = imx_clk_gate("vpu_pll_out", "vpu_pll_bypass", base + 0x74, 11); clks 442 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_ARM_PLL_OUT] = imx_clk_gate("arm_pll_out", "arm_pll_bypass", base + 0x84, 11); clks 443 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL1_OUT] = imx_clk_gate("sys_pll1_out", "sys_pll1_bypass", base + 0x94, 11); clks 444 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL2_OUT] = imx_clk_gate("sys_pll2_out", "sys_pll2_bypass", base + 0x104, 11); clks 445 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL3_OUT] = imx_clk_gate("sys_pll3_out", "sys_pll3_bypass", base + 0x114, 11); clks 448 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL1_40M] = imx_clk_fixed_factor("sys_pll1_40m", "sys_pll1_out", 1, 20); clks 449 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL1_80M] = imx_clk_fixed_factor("sys_pll1_80m", "sys_pll1_out", 1, 10); clks 450 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL1_100M] = imx_clk_fixed_factor("sys_pll1_100m", "sys_pll1_out", 1, 8); clks 451 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL1_133M] = imx_clk_fixed_factor("sys_pll1_133m", "sys_pll1_out", 1, 6); clks 452 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL1_160M] = imx_clk_fixed_factor("sys_pll1_160m", "sys_pll1_out", 1, 5); clks 453 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL1_200M] = imx_clk_fixed_factor("sys_pll1_200m", "sys_pll1_out", 1, 4); clks 454 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL1_266M] = imx_clk_fixed_factor("sys_pll1_266m", "sys_pll1_out", 1, 3); clks 455 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL1_400M] = imx_clk_fixed_factor("sys_pll1_400m", "sys_pll1_out", 1, 2); clks 456 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL1_800M] = imx_clk_fixed_factor("sys_pll1_800m", "sys_pll1_out", 1, 1); clks 458 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL2_50M] = imx_clk_fixed_factor("sys_pll2_50m", "sys_pll2_out", 1, 20); clks 459 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL2_100M] = imx_clk_fixed_factor("sys_pll2_100m", "sys_pll2_out", 1, 10); clks 460 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL2_125M] = imx_clk_fixed_factor("sys_pll2_125m", "sys_pll2_out", 1, 8); clks 461 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL2_166M] = imx_clk_fixed_factor("sys_pll2_166m", "sys_pll2_out", 1, 6); clks 462 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL2_200M] = imx_clk_fixed_factor("sys_pll2_200m", "sys_pll2_out", 1, 5); clks 463 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL2_250M] = imx_clk_fixed_factor("sys_pll2_250m", "sys_pll2_out", 1, 4); clks 464 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL2_333M] = imx_clk_fixed_factor("sys_pll2_333m", "sys_pll2_out", 1, 3); clks 465 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL2_500M] = imx_clk_fixed_factor("sys_pll2_500m", "sys_pll2_out", 1, 2); clks 466 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL2_1000M] = imx_clk_fixed_factor("sys_pll2_1000m", "sys_pll2_out", 1, 1); clks 476 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_A53_SRC] = imx_clk_mux2("arm_a53_src", base + 0x8000, 24, 3, imx8mn_a53_sels, ARRAY_SIZE(imx8mn_a53_sels)); clks 477 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GPU_CORE_SRC] = imx_clk_mux2("gpu_core_src", base + 0x8180, 24, 3, imx8mn_gpu_core_sels, ARRAY_SIZE(imx8mn_gpu_core_sels)); clks 478 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GPU_SHADER_SRC] = imx_clk_mux2("gpu_shader_src", base + 0x8200, 24, 3, imx8mn_gpu_shader_sels, ARRAY_SIZE(imx8mn_gpu_shader_sels)); clks 479 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_A53_CG] = imx_clk_gate3("arm_a53_cg", "arm_a53_src", base + 0x8000, 28); clks 480 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GPU_CORE_CG] = imx_clk_gate3("gpu_core_cg", "gpu_core_src", base + 0x8180, 28); clks 481 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GPU_SHADER_CG] = imx_clk_gate3("gpu_shader_cg", "gpu_shader_src", base + 0x8200, 28); clks 483 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_A53_DIV] = imx_clk_divider2("arm_a53_div", "arm_a53_cg", base + 0x8000, 0, 3); clks 484 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GPU_CORE_DIV] = imx_clk_divider2("gpu_core_div", "gpu_core_cg", base + 0x8180, 0, 3); clks 485 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GPU_SHADER_DIV] = imx_clk_divider2("gpu_shader_div", "gpu_shader_cg", base + 0x8200, 0, 3); clks 488 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_MAIN_AXI] = imx8m_clk_composite_critical("main_axi", imx8mn_main_axi_sels, base + 0x8800); clks 489 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_ENET_AXI] = imx8m_clk_composite("enet_axi", imx8mn_enet_axi_sels, base + 0x8880); clks 490 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_NAND_USDHC_BUS] = imx8m_clk_composite("nand_usdhc_bus", imx8mn_nand_usdhc_sels, base + 0x8900); clks 491 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_DISP_AXI] = imx8m_clk_composite("disp_axi", imx8mn_disp_axi_sels, base + 0x8a00); clks 492 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_DISP_APB] = imx8m_clk_composite("disp_apb", imx8mn_disp_apb_sels, base + 0x8a80); clks 493 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_USB_BUS] = imx8m_clk_composite("usb_bus", imx8mn_usb_bus_sels, base + 0x8b80); clks 494 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GPU_AXI] = imx8m_clk_composite("gpu_axi", imx8mn_gpu_axi_sels, base + 0x8c00); clks 495 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GPU_AHB] = imx8m_clk_composite("gpu_ahb", imx8mn_gpu_ahb_sels, base + 0x8c80); clks 496 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_NOC] = imx8m_clk_composite_critical("noc", imx8mn_noc_sels, base + 0x8d00); clks 498 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_AHB] = imx8m_clk_composite_critical("ahb", imx8mn_ahb_sels, base + 0x9000); clks 499 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_AUDIO_AHB] = imx8m_clk_composite("audio_ahb", imx8mn_audio_ahb_sels, base + 0x9100); clks 500 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_IPG_ROOT] = imx_clk_divider2("ipg_root", "ahb", base + 0x9080, 0, 1); clks 501 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_IPG_AUDIO_ROOT] = imx_clk_divider2("ipg_audio_root", "audio_ahb", base + 0x9180, 0, 1); clks 502 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_DRAM_CORE] = imx_clk_mux2_flags("dram_core_clk", base + 0x9800, 24, 1, imx8mn_dram_core_sels, ARRAY_SIZE(imx8mn_dram_core_sels), CLK_IS_CRITICAL); clks 503 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_DRAM_ALT] = imx8m_clk_composite("dram_alt", imx8mn_dram_alt_sels, base + 0xa000); clks 504 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_DRAM_APB] = imx8m_clk_composite_critical("dram_apb", imx8mn_dram_apb_sels, base + 0xa080); clks 505 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_DISP_PIXEL] = imx8m_clk_composite("disp_pixel", imx8mn_disp_pixel_sels, base + 0xa500); clks 506 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SAI2] = imx8m_clk_composite("sai2", imx8mn_sai2_sels, base + 0xa600); clks 507 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SAI3] = imx8m_clk_composite("sai3", imx8mn_sai3_sels, base + 0xa680); clks 508 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SAI5] = imx8m_clk_composite("sai5", imx8mn_sai5_sels, base + 0xa780); clks 509 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SAI6] = imx8m_clk_composite("sai6", imx8mn_sai6_sels, base + 0xa800); clks 510 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SPDIF1] = imx8m_clk_composite("spdif1", imx8mn_spdif1_sels, base + 0xa880); clks 511 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_ENET_REF] = imx8m_clk_composite("enet_ref", imx8mn_enet_ref_sels, base + 0xa980); clks 512 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_ENET_TIMER] = imx8m_clk_composite("enet_timer", imx8mn_enet_timer_sels, base + 0xaa00); clks 513 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_ENET_PHY_REF] = imx8m_clk_composite("enet_phy", imx8mn_enet_phy_sels, base + 0xaa80); clks 514 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_NAND] = imx8m_clk_composite("nand", imx8mn_nand_sels, base + 0xab00); clks 515 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_QSPI] = imx8m_clk_composite("qspi", imx8mn_qspi_sels, base + 0xab80); clks 516 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_USDHC1] = imx8m_clk_composite("usdhc1", imx8mn_usdhc1_sels, base + 0xac00); clks 517 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_USDHC2] = imx8m_clk_composite("usdhc2", imx8mn_usdhc2_sels, base + 0xac80); clks 518 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_I2C1] = imx8m_clk_composite("i2c1", imx8mn_i2c1_sels, base + 0xad00); clks 519 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_I2C2] = imx8m_clk_composite("i2c2", imx8mn_i2c2_sels, base + 0xad80); clks 520 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_I2C3] = imx8m_clk_composite("i2c3", imx8mn_i2c3_sels, base + 0xae00); clks 521 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_I2C4] = imx8m_clk_composite("i2c4", imx8mn_i2c4_sels, base + 0xae80); clks 522 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_UART1] = imx8m_clk_composite("uart1", imx8mn_uart1_sels, base + 0xaf00); clks 523 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_UART2] = imx8m_clk_composite("uart2", imx8mn_uart2_sels, base + 0xaf80); clks 524 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_UART3] = imx8m_clk_composite("uart3", imx8mn_uart3_sels, base + 0xb000); clks 525 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_UART4] = imx8m_clk_composite("uart4", imx8mn_uart4_sels, base + 0xb080); clks 526 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_USB_CORE_REF] = imx8m_clk_composite("usb_core_ref", imx8mn_usb_core_sels, base + 0xb100); clks 527 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_USB_PHY_REF] = imx8m_clk_composite("usb_phy_ref", imx8mn_usb_phy_sels, base + 0xb180); clks 528 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GIC] = imx8m_clk_composite_critical("gic", imx8mn_gic_sels, base + 0xb200); clks 529 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_ECSPI1] = imx8m_clk_composite("ecspi1", imx8mn_ecspi1_sels, base + 0xb280); clks 530 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_ECSPI2] = imx8m_clk_composite("ecspi2", imx8mn_ecspi2_sels, base + 0xb300); clks 531 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_PWM1] = imx8m_clk_composite("pwm1", imx8mn_pwm1_sels, base + 0xb380); clks 532 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_PWM2] = imx8m_clk_composite("pwm2", imx8mn_pwm2_sels, base + 0xb400); clks 533 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_PWM3] = imx8m_clk_composite("pwm3", imx8mn_pwm3_sels, base + 0xb480); clks 534 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_PWM4] = imx8m_clk_composite("pwm4", imx8mn_pwm4_sels, base + 0xb500); clks 535 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_WDOG] = imx8m_clk_composite("wdog", imx8mn_wdog_sels, base + 0xb900); clks 536 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_WRCLK] = imx8m_clk_composite("wrclk", imx8mn_wrclk_sels, base + 0xb980); clks 537 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_CLKO1] = imx8m_clk_composite("clko1", imx8mn_clko1_sels, base + 0xba00); clks 538 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_CLKO2] = imx8m_clk_composite("clko2", imx8mn_clko2_sels, base + 0xba80); clks 539 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_DSI_CORE] = imx8m_clk_composite("dsi_core", imx8mn_dsi_core_sels, base + 0xbb00); clks 540 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_DSI_PHY_REF] = imx8m_clk_composite("dsi_phy_ref", imx8mn_dsi_phy_sels, base + 0xbb80); clks 541 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_DSI_DBI] = imx8m_clk_composite("dsi_dbi", imx8mn_dsi_dbi_sels, base + 0xbc00); clks 542 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_USDHC3] = imx8m_clk_composite("usdhc3", imx8mn_usdhc3_sels, base + 0xbc80); clks 543 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_CAMERA_PIXEL] = imx8m_clk_composite("camera_pixel", imx8mn_camera_pixel_sels, base + 0xbd00); clks 544 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_CSI1_PHY_REF] = imx8m_clk_composite("csi1_phy_ref", imx8mn_csi1_phy_sels, base + 0xbd80); clks 545 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_CSI2_PHY_REF] = imx8m_clk_composite("csi2_phy_ref", imx8mn_csi2_phy_sels, base + 0xbf00); clks 546 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_CSI2_ESC] = imx8m_clk_composite("csi2_esc", imx8mn_csi2_esc_sels, base + 0xbf80); clks 547 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_ECSPI3] = imx8m_clk_composite("ecspi3", imx8mn_ecspi3_sels, base + 0xc180); clks 548 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_PDM] = imx8m_clk_composite("pdm", imx8mn_pdm_sels, base + 0xc200); clks 549 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SAI7] = imx8m_clk_composite("sai7", imx8mn_sai7_sels, base + 0xc300); clks 551 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_ECSPI1_ROOT] = imx_clk_gate4("ecspi1_root_clk", "ecspi1", base + 0x4070, 0); clks 552 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_ECSPI2_ROOT] = imx_clk_gate4("ecspi2_root_clk", "ecspi2", base + 0x4080, 0); clks 553 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_ECSPI3_ROOT] = imx_clk_gate4("ecspi3_root_clk", "ecspi3", base + 0x4090, 0); clks 554 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_ENET1_ROOT] = imx_clk_gate4("enet1_root_clk", "enet_axi", base + 0x40a0, 0); clks 555 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GPIO1_ROOT] = imx_clk_gate4("gpio1_root_clk", "ipg_root", base + 0x40b0, 0); clks 556 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GPIO2_ROOT] = imx_clk_gate4("gpio2_root_clk", "ipg_root", base + 0x40c0, 0); clks 557 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GPIO3_ROOT] = imx_clk_gate4("gpio3_root_clk", "ipg_root", base + 0x40d0, 0); clks 558 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GPIO4_ROOT] = imx_clk_gate4("gpio4_root_clk", "ipg_root", base + 0x40e0, 0); clks 559 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GPIO5_ROOT] = imx_clk_gate4("gpio5_root_clk", "ipg_root", base + 0x40f0, 0); clks 560 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_I2C1_ROOT] = imx_clk_gate4("i2c1_root_clk", "i2c1", base + 0x4170, 0); clks 561 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_I2C2_ROOT] = imx_clk_gate4("i2c2_root_clk", "i2c2", base + 0x4180, 0); clks 562 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_I2C3_ROOT] = imx_clk_gate4("i2c3_root_clk", "i2c3", base + 0x4190, 0); clks 563 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_I2C4_ROOT] = imx_clk_gate4("i2c4_root_clk", "i2c4", base + 0x41a0, 0); clks 564 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_MU_ROOT] = imx_clk_gate4("mu_root_clk", "ipg_root", base + 0x4210, 0); clks 565 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_OCOTP_ROOT] = imx_clk_gate4("ocotp_root_clk", "ipg_root", base + 0x4220, 0); clks 566 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_PWM1_ROOT] = imx_clk_gate4("pwm1_root_clk", "pwm1", base + 0x4280, 0); clks 567 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_PWM2_ROOT] = imx_clk_gate4("pwm2_root_clk", "pwm2", base + 0x4290, 0); clks 568 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_PWM3_ROOT] = imx_clk_gate4("pwm3_root_clk", "pwm3", base + 0x42a0, 0); clks 569 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_PWM4_ROOT] = imx_clk_gate4("pwm4_root_clk", "pwm4", base + 0x42b0, 0); clks 570 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_QSPI_ROOT] = imx_clk_gate4("qspi_root_clk", "qspi", base + 0x42f0, 0); clks 571 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_NAND_ROOT] = imx_clk_gate2_shared2("nand_root_clk", "nand", base + 0x4300, 0, &share_count_nand); clks 572 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_NAND_USDHC_BUS_RAWNAND_CLK] = imx_clk_gate2_shared2("nand_usdhc_rawnand_clk", "nand_usdhc_bus", base + 0x4300, 0, &share_count_nand); clks 573 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SAI2_ROOT] = imx_clk_gate2_shared2("sai2_root_clk", "sai2", base + 0x4340, 0, &share_count_sai2); clks 574 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SAI2_IPG] = imx_clk_gate2_shared2("sai2_ipg_clk", "ipg_audio_root", base + 0x4340, 0, &share_count_sai2); clks 575 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SAI3_ROOT] = imx_clk_gate2_shared2("sai3_root_clk", "sai3", base + 0x4350, 0, &share_count_sai3); clks 576 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SAI3_IPG] = imx_clk_gate2_shared2("sai3_ipg_clk", "ipg_audio_root", base + 0x4350, 0, &share_count_sai3); clks 577 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SAI5_ROOT] = imx_clk_gate2_shared2("sai5_root_clk", "sai5", base + 0x4370, 0, &share_count_sai5); clks 578 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SAI5_IPG] = imx_clk_gate2_shared2("sai5_ipg_clk", "ipg_audio_root", base + 0x4370, 0, &share_count_sai5); clks 579 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SAI6_ROOT] = imx_clk_gate2_shared2("sai6_root_clk", "sai6", base + 0x4380, 0, &share_count_sai6); clks 580 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SAI6_IPG] = imx_clk_gate2_shared2("sai6_ipg_clk", "ipg_audio_root", base + 0x4380, 0, &share_count_sai6); clks 581 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_UART1_ROOT] = imx_clk_gate4("uart1_root_clk", "uart1", base + 0x4490, 0); clks 582 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_UART2_ROOT] = imx_clk_gate4("uart2_root_clk", "uart2", base + 0x44a0, 0); clks 583 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_UART3_ROOT] = imx_clk_gate4("uart3_root_clk", "uart3", base + 0x44b0, 0); clks 584 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_UART4_ROOT] = imx_clk_gate4("uart4_root_clk", "uart4", base + 0x44c0, 0); clks 585 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_USB1_CTRL_ROOT] = imx_clk_gate4("usb1_ctrl_root_clk", "usb_core_ref", base + 0x44d0, 0); clks 586 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GPU_CORE_ROOT] = imx_clk_gate4("gpu_core_root_clk", "gpu_core_div", base + 0x44f0, 0); clks 587 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_USDHC1_ROOT] = imx_clk_gate4("usdhc1_root_clk", "usdhc1", base + 0x4510, 0); clks 588 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_USDHC2_ROOT] = imx_clk_gate4("usdhc2_root_clk", "usdhc2", base + 0x4520, 0); clks 589 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_WDOG1_ROOT] = imx_clk_gate4("wdog1_root_clk", "wdog", base + 0x4530, 0); clks 590 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_WDOG2_ROOT] = imx_clk_gate4("wdog2_root_clk", "wdog", base + 0x4540, 0); clks 591 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_WDOG3_ROOT] = imx_clk_gate4("wdog3_root_clk", "wdog", base + 0x4550, 0); clks 592 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_GPU_BUS_ROOT] = imx_clk_gate4("gpu_root_clk", "gpu_axi", base + 0x4570, 0); clks 593 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_ASRC_ROOT] = imx_clk_gate4("asrc_root_clk", "audio_ahb", base + 0x4580, 0); clks 594 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_PDM_ROOT] = imx_clk_gate2_shared2("pdm_root_clk", "pdm", base + 0x45b0, 0, &share_count_pdm); clks 595 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_PDM_IPG] = imx_clk_gate2_shared2("pdm_ipg_clk", "ipg_audio_root", base + 0x45b0, 0, &share_count_pdm); clks 596 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_DISP_AXI_ROOT] = imx_clk_gate2_shared2("disp_axi_root_clk", "disp_axi", base + 0x45d0, 0, &share_count_disp); clks 597 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_DISP_APB_ROOT] = imx_clk_gate2_shared2("disp_apb_root_clk", "disp_apb", base + 0x45d0, 0, &share_count_disp); clks 598 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_CAMERA_PIXEL_ROOT] = imx_clk_gate2_shared2("camera_pixel_clk", "camera_pixel", base + 0x45d0, 0, &share_count_disp); clks 599 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_DISP_PIXEL_ROOT] = imx_clk_gate2_shared2("disp_pixel_clk", "disp_pixel", base + 0x45d0, 0, &share_count_disp); clks 600 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_USDHC3_ROOT] = imx_clk_gate4("usdhc3_root_clk", "usdhc3", base + 0x45e0, 0); clks 601 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_TMU_ROOT] = imx_clk_gate4("tmu_root_clk", "ipg_root", base + 0x4620, 0); clks 602 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SDMA1_ROOT] = imx_clk_gate4("sdma1_clk", "ipg_root", base + 0x43a0, 0); clks 603 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SDMA2_ROOT] = imx_clk_gate4("sdma2_clk", "ipg_audio_root", base + 0x43b0, 0); clks 604 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SDMA3_ROOT] = imx_clk_gate4("sdma3_clk", "ipg_audio_root", base + 0x45f0, 0); clks 605 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_SAI7_ROOT] = imx_clk_gate2_shared2("sai7_root_clk", "sai7", base + 0x4650, 0, &share_count_sai7); clks 607 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_DRAM_ALT_ROOT] = imx_clk_fixed_factor("dram_alt_root", "dram_alt", 1, 4); clks 609 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_ARM] = imx_clk_cpu("arm", "arm_a53_div", clks 610 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_A53_DIV], clks 611 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_CLK_A53_SRC], clks 612 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_ARM_PLL_OUT], clks 613 drivers/clk/imx/clk-imx8mn.c clks[IMX8MN_SYS_PLL1_800M]); clks 615 drivers/clk/imx/clk-imx8mn.c imx_check_clocks(clks, ARRAY_SIZE(clks)); clks 617 drivers/clk/imx/clk-imx8mn.c clk_data.clks = clks; clks 618 drivers/clk/imx/clk-imx8mn.c clk_data.clk_num = ARRAY_SIZE(clks); clks 630 drivers/clk/imx/clk-imx8mn.c imx_unregister_clocks(clks, ARRAY_SIZE(clks)); clks 27 drivers/clk/imx/clk-imx8mq.c static struct clk *clks[IMX8MQ_CLK_END]; clks 276 drivers/clk/imx/clk-imx8mq.c &clks[IMX8MQ_CLK_UART1_ROOT], clks 277 drivers/clk/imx/clk-imx8mq.c &clks[IMX8MQ_CLK_UART2_ROOT], clks 278 drivers/clk/imx/clk-imx8mq.c &clks[IMX8MQ_CLK_UART3_ROOT], clks 279 drivers/clk/imx/clk-imx8mq.c &clks[IMX8MQ_CLK_UART4_ROOT], clks 290 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DUMMY] = imx_clk_fixed("dummy", 0); clks 291 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_32K] = of_clk_get_by_name(np, "ckil"); clks 292 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_25M] = of_clk_get_by_name(np, "osc_25m"); clks 293 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_27M] = of_clk_get_by_name(np, "osc_27m"); clks 294 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_EXT1] = of_clk_get_by_name(np, "clk_ext1"); clks 295 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_EXT2] = of_clk_get_by_name(np, "clk_ext2"); clks 296 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_EXT3] = of_clk_get_by_name(np, "clk_ext3"); clks 297 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_EXT4] = of_clk_get_by_name(np, "clk_ext4"); clks 304 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_ARM_PLL_REF_SEL] = imx_clk_mux("arm_pll_ref_sel", base + 0x28, 16, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 305 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_GPU_PLL_REF_SEL] = imx_clk_mux("gpu_pll_ref_sel", base + 0x18, 16, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 306 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_VPU_PLL_REF_SEL] = imx_clk_mux("vpu_pll_ref_sel", base + 0x20, 16, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 307 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_AUDIO_PLL1_REF_SEL] = imx_clk_mux("audio_pll1_ref_sel", base + 0x0, 16, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 308 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_AUDIO_PLL2_REF_SEL] = imx_clk_mux("audio_pll2_ref_sel", base + 0x8, 16, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 309 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_VIDEO_PLL1_REF_SEL] = imx_clk_mux("video_pll1_ref_sel", base + 0x10, 16, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 310 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS1_PLL1_REF_SEL] = imx_clk_mux("sys1_pll1_ref_sel", base + 0x30, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 311 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS2_PLL1_REF_SEL] = imx_clk_mux("sys2_pll1_ref_sel", base + 0x3c, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 312 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS3_PLL1_REF_SEL] = imx_clk_mux("sys3_pll1_ref_sel", base + 0x48, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 313 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_DRAM_PLL1_REF_SEL] = imx_clk_mux("dram_pll1_ref_sel", base + 0x60, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks 315 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_ARM_PLL_REF_DIV] = imx_clk_divider("arm_pll_ref_div", "arm_pll_ref_sel", base + 0x28, 5, 6); clks 316 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_GPU_PLL_REF_DIV] = imx_clk_divider("gpu_pll_ref_div", "gpu_pll_ref_sel", base + 0x18, 5, 6); clks 317 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_VPU_PLL_REF_DIV] = imx_clk_divider("vpu_pll_ref_div", "vpu_pll_ref_sel", base + 0x20, 5, 6); clks 318 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_AUDIO_PLL1_REF_DIV] = imx_clk_divider("audio_pll1_ref_div", "audio_pll1_ref_sel", base + 0x0, 5, 6); clks 319 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_AUDIO_PLL2_REF_DIV] = imx_clk_divider("audio_pll2_ref_div", "audio_pll2_ref_sel", base + 0x8, 5, 6); clks 320 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_VIDEO_PLL1_REF_DIV] = imx_clk_divider("video_pll1_ref_div", "video_pll1_ref_sel", base + 0x10, 5, 6); clks 322 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_ARM_PLL] = imx_clk_frac_pll("arm_pll", "arm_pll_ref_div", base + 0x28); clks 323 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_GPU_PLL] = imx_clk_frac_pll("gpu_pll", "gpu_pll_ref_div", base + 0x18); clks 324 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_VPU_PLL] = imx_clk_frac_pll("vpu_pll", "vpu_pll_ref_div", base + 0x20); clks 325 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_AUDIO_PLL1] = imx_clk_frac_pll("audio_pll1", "audio_pll1_ref_div", base + 0x0); clks 326 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_AUDIO_PLL2] = imx_clk_frac_pll("audio_pll2", "audio_pll2_ref_div", base + 0x8); clks 327 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_VIDEO_PLL1] = imx_clk_frac_pll("video_pll1", "video_pll1_ref_div", base + 0x10); clks 330 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_ARM_PLL_BYPASS] = imx_clk_mux_flags("arm_pll_bypass", base + 0x28, 14, 1, arm_pll_bypass_sels, ARRAY_SIZE(arm_pll_bypass_sels), CLK_SET_RATE_PARENT); clks 331 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_GPU_PLL_BYPASS] = imx_clk_mux("gpu_pll_bypass", base + 0x18, 14, 1, gpu_pll_bypass_sels, ARRAY_SIZE(gpu_pll_bypass_sels)); clks 332 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_VPU_PLL_BYPASS] = imx_clk_mux("vpu_pll_bypass", base + 0x20, 14, 1, vpu_pll_bypass_sels, ARRAY_SIZE(vpu_pll_bypass_sels)); clks 333 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_AUDIO_PLL1_BYPASS] = imx_clk_mux("audio_pll1_bypass", base + 0x0, 14, 1, audio_pll1_bypass_sels, ARRAY_SIZE(audio_pll1_bypass_sels)); clks 334 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_AUDIO_PLL2_BYPASS] = imx_clk_mux("audio_pll2_bypass", base + 0x8, 14, 1, audio_pll2_bypass_sels, ARRAY_SIZE(audio_pll2_bypass_sels)); clks 335 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_VIDEO_PLL1_BYPASS] = imx_clk_mux("video_pll1_bypass", base + 0x10, 14, 1, video_pll1_bypass_sels, ARRAY_SIZE(video_pll1_bypass_sels)); clks 338 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_ARM_PLL_OUT] = imx_clk_gate("arm_pll_out", "arm_pll_bypass", base + 0x28, 21); clks 339 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_GPU_PLL_OUT] = imx_clk_gate("gpu_pll_out", "gpu_pll_bypass", base + 0x18, 21); clks 340 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_VPU_PLL_OUT] = imx_clk_gate("vpu_pll_out", "vpu_pll_bypass", base + 0x20, 21); clks 341 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_AUDIO_PLL1_OUT] = imx_clk_gate("audio_pll1_out", "audio_pll1_bypass", base + 0x0, 21); clks 342 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_AUDIO_PLL2_OUT] = imx_clk_gate("audio_pll2_out", "audio_pll2_bypass", base + 0x8, 21); clks 343 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_VIDEO_PLL1_OUT] = imx_clk_gate("video_pll1_out", "video_pll1_bypass", base + 0x10, 21); clks 345 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS1_PLL_OUT] = imx_clk_sccg_pll("sys1_pll_out", sys1_pll_out_sels, ARRAY_SIZE(sys1_pll_out_sels), 0, 0, 0, base + 0x30, CLK_IS_CRITICAL); clks 346 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS2_PLL_OUT] = imx_clk_sccg_pll("sys2_pll_out", sys2_pll_out_sels, ARRAY_SIZE(sys2_pll_out_sels), 0, 0, 1, base + 0x3c, CLK_IS_CRITICAL); clks 347 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS3_PLL_OUT] = imx_clk_sccg_pll("sys3_pll_out", sys3_pll_out_sels, ARRAY_SIZE(sys3_pll_out_sels), 0, 0, 1, base + 0x48, CLK_IS_CRITICAL); clks 348 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_DRAM_PLL_OUT] = imx_clk_sccg_pll("dram_pll_out", dram_pll_out_sels, ARRAY_SIZE(dram_pll_out_sels), 0, 0, 0, base + 0x60, CLK_IS_CRITICAL); clks 350 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS1_PLL_40M] = imx_clk_fixed_factor("sys1_pll_40m", "sys1_pll_out", 1, 20); clks 351 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS1_PLL_80M] = imx_clk_fixed_factor("sys1_pll_80m", "sys1_pll_out", 1, 10); clks 352 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS1_PLL_100M] = imx_clk_fixed_factor("sys1_pll_100m", "sys1_pll_out", 1, 8); clks 353 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS1_PLL_133M] = imx_clk_fixed_factor("sys1_pll_133m", "sys1_pll_out", 1, 6); clks 354 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS1_PLL_160M] = imx_clk_fixed_factor("sys1_pll_160m", "sys1_pll_out", 1, 5); clks 355 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS1_PLL_200M] = imx_clk_fixed_factor("sys1_pll_200m", "sys1_pll_out", 1, 4); clks 356 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS1_PLL_266M] = imx_clk_fixed_factor("sys1_pll_266m", "sys1_pll_out", 1, 3); clks 357 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS1_PLL_400M] = imx_clk_fixed_factor("sys1_pll_400m", "sys1_pll_out", 1, 2); clks 358 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS1_PLL_800M] = imx_clk_fixed_factor("sys1_pll_800m", "sys1_pll_out", 1, 1); clks 360 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS2_PLL_50M] = imx_clk_fixed_factor("sys2_pll_50m", "sys2_pll_out", 1, 20); clks 361 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS2_PLL_100M] = imx_clk_fixed_factor("sys2_pll_100m", "sys2_pll_out", 1, 10); clks 362 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS2_PLL_125M] = imx_clk_fixed_factor("sys2_pll_125m", "sys2_pll_out", 1, 8); clks 363 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS2_PLL_166M] = imx_clk_fixed_factor("sys2_pll_166m", "sys2_pll_out", 1, 6); clks 364 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS2_PLL_200M] = imx_clk_fixed_factor("sys2_pll_200m", "sys2_pll_out", 1, 5); clks 365 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS2_PLL_250M] = imx_clk_fixed_factor("sys2_pll_250m", "sys2_pll_out", 1, 4); clks 366 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS2_PLL_333M] = imx_clk_fixed_factor("sys2_pll_333m", "sys2_pll_out", 1, 3); clks 367 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS2_PLL_500M] = imx_clk_fixed_factor("sys2_pll_500m", "sys2_pll_out", 1, 2); clks 368 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS2_PLL_1000M] = imx_clk_fixed_factor("sys2_pll_1000m", "sys2_pll_out", 1, 1); clks 376 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_A53_SRC] = imx_clk_mux2("arm_a53_src", base + 0x8000, 24, 3, imx8mq_a53_sels, ARRAY_SIZE(imx8mq_a53_sels)); clks 377 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_M4_SRC] = imx_clk_mux2("arm_m4_src", base + 0x8080, 24, 3, imx8mq_arm_m4_sels, ARRAY_SIZE(imx8mq_arm_m4_sels)); clks 378 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_VPU_SRC] = imx_clk_mux2("vpu_src", base + 0x8100, 24, 3, imx8mq_vpu_sels, ARRAY_SIZE(imx8mq_vpu_sels)); clks 379 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPU_CORE_SRC] = imx_clk_mux2("gpu_core_src", base + 0x8180, 24, 3, imx8mq_gpu_core_sels, ARRAY_SIZE(imx8mq_gpu_core_sels)); clks 380 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPU_SHADER_SRC] = imx_clk_mux2("gpu_shader_src", base + 0x8200, 24, 3, imx8mq_gpu_shader_sels, ARRAY_SIZE(imx8mq_gpu_shader_sels)); clks 382 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_A53_CG] = imx_clk_gate3_flags("arm_a53_cg", "arm_a53_src", base + 0x8000, 28, CLK_IS_CRITICAL); clks 383 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_M4_CG] = imx_clk_gate3("arm_m4_cg", "arm_m4_src", base + 0x8080, 28); clks 384 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_VPU_CG] = imx_clk_gate3("vpu_cg", "vpu_src", base + 0x8100, 28); clks 385 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPU_CORE_CG] = imx_clk_gate3("gpu_core_cg", "gpu_core_src", base + 0x8180, 28); clks 386 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPU_SHADER_CG] = imx_clk_gate3("gpu_shader_cg", "gpu_shader_src", base + 0x8200, 28); clks 388 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_A53_DIV] = imx_clk_divider2("arm_a53_div", "arm_a53_cg", base + 0x8000, 0, 3); clks 389 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_M4_DIV] = imx_clk_divider2("arm_m4_div", "arm_m4_cg", base + 0x8080, 0, 3); clks 390 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_VPU_DIV] = imx_clk_divider2("vpu_div", "vpu_cg", base + 0x8100, 0, 3); clks 391 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPU_CORE_DIV] = imx_clk_divider2("gpu_core_div", "gpu_core_cg", base + 0x8180, 0, 3); clks 392 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPU_SHADER_DIV] = imx_clk_divider2("gpu_shader_div", "gpu_shader_cg", base + 0x8200, 0, 3); clks 395 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_MAIN_AXI] = imx8m_clk_composite_critical("main_axi", imx8mq_main_axi_sels, base + 0x8800); clks 396 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_ENET_AXI] = imx8m_clk_composite("enet_axi", imx8mq_enet_axi_sels, base + 0x8880); clks 397 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_NAND_USDHC_BUS] = imx8m_clk_composite("nand_usdhc_bus", imx8mq_nand_usdhc_sels, base + 0x8900); clks 398 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_VPU_BUS] = imx8m_clk_composite("vpu_bus", imx8mq_vpu_bus_sels, base + 0x8980); clks 399 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DISP_AXI] = imx8m_clk_composite("disp_axi", imx8mq_disp_axi_sels, base + 0x8a00); clks 400 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DISP_APB] = imx8m_clk_composite("disp_apb", imx8mq_disp_apb_sels, base + 0x8a80); clks 401 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DISP_RTRM] = imx8m_clk_composite("disp_rtrm", imx8mq_disp_rtrm_sels, base + 0x8b00); clks 402 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_USB_BUS] = imx8m_clk_composite("usb_bus", imx8mq_usb_bus_sels, base + 0x8b80); clks 403 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPU_AXI] = imx8m_clk_composite("gpu_axi", imx8mq_gpu_axi_sels, base + 0x8c00); clks 404 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPU_AHB] = imx8m_clk_composite("gpu_ahb", imx8mq_gpu_ahb_sels, base + 0x8c80); clks 405 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_NOC] = imx8m_clk_composite_critical("noc", imx8mq_noc_sels, base + 0x8d00); clks 406 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_NOC_APB] = imx8m_clk_composite_critical("noc_apb", imx8mq_noc_apb_sels, base + 0x8d80); clks 410 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_AHB] = imx8m_clk_composite_critical("ahb", imx8mq_ahb_sels, base + 0x9000); clks 411 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_AUDIO_AHB] = imx8m_clk_composite("audio_ahb", imx8mq_audio_ahb_sels, base + 0x9100); clks 414 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_IPG_ROOT] = imx_clk_divider2("ipg_root", "ahb", base + 0x9080, 0, 1); clks 415 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_IPG_AUDIO_ROOT] = imx_clk_divider2("ipg_audio_root", "audio_ahb", base + 0x9180, 0, 1); clks 418 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DRAM_CORE] = imx_clk_mux2_flags("dram_core_clk", base + 0x9800, 24, 1, imx8mq_dram_core_sels, ARRAY_SIZE(imx8mq_dram_core_sels), CLK_IS_CRITICAL); clks 420 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DRAM_ALT] = imx8m_clk_composite("dram_alt", imx8mq_dram_alt_sels, base + 0xa000); clks 421 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DRAM_APB] = imx8m_clk_composite_critical("dram_apb", imx8mq_dram_apb_sels, base + 0xa080); clks 422 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_VPU_G1] = imx8m_clk_composite("vpu_g1", imx8mq_vpu_g1_sels, base + 0xa100); clks 423 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_VPU_G2] = imx8m_clk_composite("vpu_g2", imx8mq_vpu_g2_sels, base + 0xa180); clks 424 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DISP_DTRC] = imx8m_clk_composite("disp_dtrc", imx8mq_disp_dtrc_sels, base + 0xa200); clks 425 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DISP_DC8000] = imx8m_clk_composite("disp_dc8000", imx8mq_disp_dc8000_sels, base + 0xa280); clks 426 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PCIE1_CTRL] = imx8m_clk_composite("pcie1_ctrl", imx8mq_pcie1_ctrl_sels, base + 0xa300); clks 427 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PCIE1_PHY] = imx8m_clk_composite("pcie1_phy", imx8mq_pcie1_phy_sels, base + 0xa380); clks 428 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PCIE1_AUX] = imx8m_clk_composite("pcie1_aux", imx8mq_pcie1_aux_sels, base + 0xa400); clks 429 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DC_PIXEL] = imx8m_clk_composite("dc_pixel", imx8mq_dc_pixel_sels, base + 0xa480); clks 430 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_LCDIF_PIXEL] = imx8m_clk_composite("lcdif_pixel", imx8mq_lcdif_pixel_sels, base + 0xa500); clks 431 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI1] = imx8m_clk_composite("sai1", imx8mq_sai1_sels, base + 0xa580); clks 432 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI2] = imx8m_clk_composite("sai2", imx8mq_sai2_sels, base + 0xa600); clks 433 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI3] = imx8m_clk_composite("sai3", imx8mq_sai3_sels, base + 0xa680); clks 434 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI4] = imx8m_clk_composite("sai4", imx8mq_sai4_sels, base + 0xa700); clks 435 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI5] = imx8m_clk_composite("sai5", imx8mq_sai5_sels, base + 0xa780); clks 436 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI6] = imx8m_clk_composite("sai6", imx8mq_sai6_sels, base + 0xa800); clks 437 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SPDIF1] = imx8m_clk_composite("spdif1", imx8mq_spdif1_sels, base + 0xa880); clks 438 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SPDIF2] = imx8m_clk_composite("spdif2", imx8mq_spdif2_sels, base + 0xa900); clks 439 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_ENET_REF] = imx8m_clk_composite("enet_ref", imx8mq_enet_ref_sels, base + 0xa980); clks 440 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_ENET_TIMER] = imx8m_clk_composite("enet_timer", imx8mq_enet_timer_sels, base + 0xaa00); clks 441 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_ENET_PHY_REF] = imx8m_clk_composite("enet_phy", imx8mq_enet_phy_sels, base + 0xaa80); clks 442 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_NAND] = imx8m_clk_composite("nand", imx8mq_nand_sels, base + 0xab00); clks 443 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_QSPI] = imx8m_clk_composite("qspi", imx8mq_qspi_sels, base + 0xab80); clks 444 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_USDHC1] = imx8m_clk_composite("usdhc1", imx8mq_usdhc1_sels, base + 0xac00); clks 445 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_USDHC2] = imx8m_clk_composite("usdhc2", imx8mq_usdhc2_sels, base + 0xac80); clks 446 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_I2C1] = imx8m_clk_composite("i2c1", imx8mq_i2c1_sels, base + 0xad00); clks 447 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_I2C2] = imx8m_clk_composite("i2c2", imx8mq_i2c2_sels, base + 0xad80); clks 448 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_I2C3] = imx8m_clk_composite("i2c3", imx8mq_i2c3_sels, base + 0xae00); clks 449 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_I2C4] = imx8m_clk_composite("i2c4", imx8mq_i2c4_sels, base + 0xae80); clks 450 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_UART1] = imx8m_clk_composite("uart1", imx8mq_uart1_sels, base + 0xaf00); clks 451 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_UART2] = imx8m_clk_composite("uart2", imx8mq_uart2_sels, base + 0xaf80); clks 452 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_UART3] = imx8m_clk_composite("uart3", imx8mq_uart3_sels, base + 0xb000); clks 453 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_UART4] = imx8m_clk_composite("uart4", imx8mq_uart4_sels, base + 0xb080); clks 454 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_USB_CORE_REF] = imx8m_clk_composite("usb_core_ref", imx8mq_usb_core_sels, base + 0xb100); clks 455 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_USB_PHY_REF] = imx8m_clk_composite("usb_phy_ref", imx8mq_usb_phy_sels, base + 0xb180); clks 456 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GIC] = imx8m_clk_composite_critical("gic", imx8mq_gic_sels, base + 0xb200); clks 457 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_ECSPI1] = imx8m_clk_composite("ecspi1", imx8mq_ecspi1_sels, base + 0xb280); clks 458 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_ECSPI2] = imx8m_clk_composite("ecspi2", imx8mq_ecspi2_sels, base + 0xb300); clks 459 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PWM1] = imx8m_clk_composite("pwm1", imx8mq_pwm1_sels, base + 0xb380); clks 460 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PWM2] = imx8m_clk_composite("pwm2", imx8mq_pwm2_sels, base + 0xb400); clks 461 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PWM3] = imx8m_clk_composite("pwm3", imx8mq_pwm3_sels, base + 0xb480); clks 462 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PWM4] = imx8m_clk_composite("pwm4", imx8mq_pwm4_sels, base + 0xb500); clks 463 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPT1] = imx8m_clk_composite("gpt1", imx8mq_gpt1_sels, base + 0xb580); clks 464 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_WDOG] = imx8m_clk_composite("wdog", imx8mq_wdog_sels, base + 0xb900); clks 465 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_WRCLK] = imx8m_clk_composite("wrclk", imx8mq_wrclk_sels, base + 0xb980); clks 466 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_CLKO1] = imx8m_clk_composite("clko1", imx8mq_clko1_sels, base + 0xba00); clks 467 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_CLKO2] = imx8m_clk_composite("clko2", imx8mq_clko2_sels, base + 0xba80); clks 468 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DSI_CORE] = imx8m_clk_composite("dsi_core", imx8mq_dsi_core_sels, base + 0xbb00); clks 469 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DSI_PHY_REF] = imx8m_clk_composite("dsi_phy_ref", imx8mq_dsi_phy_sels, base + 0xbb80); clks 470 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DSI_DBI] = imx8m_clk_composite("dsi_dbi", imx8mq_dsi_dbi_sels, base + 0xbc00); clks 471 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DSI_ESC] = imx8m_clk_composite("dsi_esc", imx8mq_dsi_esc_sels, base + 0xbc80); clks 472 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DSI_AHB] = imx8m_clk_composite("dsi_ahb", imx8mq_dsi_ahb_sels, base + 0x9200); clks 473 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DSI_IPG_DIV] = imx_clk_divider2("dsi_ipg_div", "dsi_ahb", base + 0x9280, 0, 6); clks 474 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_CSI1_CORE] = imx8m_clk_composite("csi1_core", imx8mq_csi1_core_sels, base + 0xbd00); clks 475 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_CSI1_PHY_REF] = imx8m_clk_composite("csi1_phy_ref", imx8mq_csi1_phy_sels, base + 0xbd80); clks 476 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_CSI1_ESC] = imx8m_clk_composite("csi1_esc", imx8mq_csi1_esc_sels, base + 0xbe00); clks 477 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_CSI2_CORE] = imx8m_clk_composite("csi2_core", imx8mq_csi2_core_sels, base + 0xbe80); clks 478 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_CSI2_PHY_REF] = imx8m_clk_composite("csi2_phy_ref", imx8mq_csi2_phy_sels, base + 0xbf00); clks 479 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_CSI2_ESC] = imx8m_clk_composite("csi2_esc", imx8mq_csi2_esc_sels, base + 0xbf80); clks 480 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PCIE2_CTRL] = imx8m_clk_composite("pcie2_ctrl", imx8mq_pcie2_ctrl_sels, base + 0xc000); clks 481 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PCIE2_PHY] = imx8m_clk_composite("pcie2_phy", imx8mq_pcie2_phy_sels, base + 0xc080); clks 482 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PCIE2_AUX] = imx8m_clk_composite("pcie2_aux", imx8mq_pcie2_aux_sels, base + 0xc100); clks 483 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_ECSPI3] = imx8m_clk_composite("ecspi3", imx8mq_ecspi3_sels, base + 0xc180); clks 485 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_ECSPI1_ROOT] = imx_clk_gate4("ecspi1_root_clk", "ecspi1", base + 0x4070, 0); clks 486 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_ECSPI2_ROOT] = imx_clk_gate4("ecspi2_root_clk", "ecspi2", base + 0x4080, 0); clks 487 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_ECSPI3_ROOT] = imx_clk_gate4("ecspi3_root_clk", "ecspi3", base + 0x4090, 0); clks 488 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_ENET1_ROOT] = imx_clk_gate4("enet1_root_clk", "enet_axi", base + 0x40a0, 0); clks 489 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPIO1_ROOT] = imx_clk_gate4("gpio1_root_clk", "ipg_root", base + 0x40b0, 0); clks 490 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPIO2_ROOT] = imx_clk_gate4("gpio2_root_clk", "ipg_root", base + 0x40c0, 0); clks 491 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPIO3_ROOT] = imx_clk_gate4("gpio3_root_clk", "ipg_root", base + 0x40d0, 0); clks 492 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPIO4_ROOT] = imx_clk_gate4("gpio4_root_clk", "ipg_root", base + 0x40e0, 0); clks 493 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPIO5_ROOT] = imx_clk_gate4("gpio5_root_clk", "ipg_root", base + 0x40f0, 0); clks 494 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPT1_ROOT] = imx_clk_gate4("gpt1_root_clk", "gpt1", base + 0x4100, 0); clks 495 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_I2C1_ROOT] = imx_clk_gate4("i2c1_root_clk", "i2c1", base + 0x4170, 0); clks 496 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_I2C2_ROOT] = imx_clk_gate4("i2c2_root_clk", "i2c2", base + 0x4180, 0); clks 497 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_I2C3_ROOT] = imx_clk_gate4("i2c3_root_clk", "i2c3", base + 0x4190, 0); clks 498 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_I2C4_ROOT] = imx_clk_gate4("i2c4_root_clk", "i2c4", base + 0x41a0, 0); clks 499 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_MU_ROOT] = imx_clk_gate4("mu_root_clk", "ipg_root", base + 0x4210, 0); clks 500 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_OCOTP_ROOT] = imx_clk_gate4("ocotp_root_clk", "ipg_root", base + 0x4220, 0); clks 501 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PCIE1_ROOT] = imx_clk_gate4("pcie1_root_clk", "pcie1_ctrl", base + 0x4250, 0); clks 502 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PCIE2_ROOT] = imx_clk_gate4("pcie2_root_clk", "pcie2_ctrl", base + 0x4640, 0); clks 503 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PWM1_ROOT] = imx_clk_gate4("pwm1_root_clk", "pwm1", base + 0x4280, 0); clks 504 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PWM2_ROOT] = imx_clk_gate4("pwm2_root_clk", "pwm2", base + 0x4290, 0); clks 505 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PWM3_ROOT] = imx_clk_gate4("pwm3_root_clk", "pwm3", base + 0x42a0, 0); clks 506 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_PWM4_ROOT] = imx_clk_gate4("pwm4_root_clk", "pwm4", base + 0x42b0, 0); clks 507 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_QSPI_ROOT] = imx_clk_gate4("qspi_root_clk", "qspi", base + 0x42f0, 0); clks 508 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_RAWNAND_ROOT] = imx_clk_gate2_shared2("nand_root_clk", "nand", base + 0x4300, 0, &share_count_nand); clks 509 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_NAND_USDHC_BUS_RAWNAND_CLK] = imx_clk_gate2_shared2("nand_usdhc_rawnand_clk", "nand_usdhc_bus", base + 0x4300, 0, &share_count_nand); clks 510 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI1_ROOT] = imx_clk_gate2_shared2("sai1_root_clk", "sai1", base + 0x4330, 0, &share_count_sai1); clks 511 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI1_IPG] = imx_clk_gate2_shared2("sai1_ipg_clk", "ipg_audio_root", base + 0x4330, 0, &share_count_sai1); clks 512 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI2_ROOT] = imx_clk_gate2_shared2("sai2_root_clk", "sai2", base + 0x4340, 0, &share_count_sai2); clks 513 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI2_IPG] = imx_clk_gate2_shared2("sai2_ipg_clk", "ipg_root", base + 0x4340, 0, &share_count_sai2); clks 514 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI3_ROOT] = imx_clk_gate2_shared2("sai3_root_clk", "sai3", base + 0x4350, 0, &share_count_sai3); clks 515 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI3_IPG] = imx_clk_gate2_shared2("sai3_ipg_clk", "ipg_root", base + 0x4350, 0, &share_count_sai3); clks 516 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI4_ROOT] = imx_clk_gate2_shared2("sai4_root_clk", "sai4", base + 0x4360, 0, &share_count_sai4); clks 517 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI4_IPG] = imx_clk_gate2_shared2("sai4_ipg_clk", "ipg_audio_root", base + 0x4360, 0, &share_count_sai4); clks 518 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI5_ROOT] = imx_clk_gate2_shared2("sai5_root_clk", "sai5", base + 0x4370, 0, &share_count_sai5); clks 519 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI5_IPG] = imx_clk_gate2_shared2("sai5_ipg_clk", "ipg_audio_root", base + 0x4370, 0, &share_count_sai5); clks 520 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI6_ROOT] = imx_clk_gate2_shared2("sai6_root_clk", "sai6", base + 0x4380, 0, &share_count_sai6); clks 521 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SAI6_IPG] = imx_clk_gate2_shared2("sai6_ipg_clk", "ipg_audio_root", base + 0x4380, 0, &share_count_sai6); clks 522 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SNVS_ROOT] = imx_clk_gate4("snvs_root_clk", "ipg_root", base + 0x4470, 0); clks 523 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_UART1_ROOT] = imx_clk_gate4("uart1_root_clk", "uart1", base + 0x4490, 0); clks 524 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_UART2_ROOT] = imx_clk_gate4("uart2_root_clk", "uart2", base + 0x44a0, 0); clks 525 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_UART3_ROOT] = imx_clk_gate4("uart3_root_clk", "uart3", base + 0x44b0, 0); clks 526 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_UART4_ROOT] = imx_clk_gate4("uart4_root_clk", "uart4", base + 0x44c0, 0); clks 527 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_USB1_CTRL_ROOT] = imx_clk_gate4("usb1_ctrl_root_clk", "usb_bus", base + 0x44d0, 0); clks 528 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_USB2_CTRL_ROOT] = imx_clk_gate4("usb2_ctrl_root_clk", "usb_bus", base + 0x44e0, 0); clks 529 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_USB1_PHY_ROOT] = imx_clk_gate4("usb1_phy_root_clk", "usb_phy_ref", base + 0x44f0, 0); clks 530 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_USB2_PHY_ROOT] = imx_clk_gate4("usb2_phy_root_clk", "usb_phy_ref", base + 0x4500, 0); clks 531 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_USDHC1_ROOT] = imx_clk_gate4("usdhc1_root_clk", "usdhc1", base + 0x4510, 0); clks 532 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_USDHC2_ROOT] = imx_clk_gate4("usdhc2_root_clk", "usdhc2", base + 0x4520, 0); clks 533 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_WDOG1_ROOT] = imx_clk_gate4("wdog1_root_clk", "wdog", base + 0x4530, 0); clks 534 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_WDOG2_ROOT] = imx_clk_gate4("wdog2_root_clk", "wdog", base + 0x4540, 0); clks 535 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_WDOG3_ROOT] = imx_clk_gate4("wdog3_root_clk", "wdog", base + 0x4550, 0); clks 536 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_VPU_G1_ROOT] = imx_clk_gate2_flags("vpu_g1_root_clk", "vpu_g1", base + 0x4560, 0, CLK_SET_RATE_PARENT | CLK_OPS_PARENT_ENABLE); clks 537 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_GPU_ROOT] = imx_clk_gate4("gpu_root_clk", "gpu_core_div", base + 0x4570, 0); clks 538 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_VPU_G2_ROOT] = imx_clk_gate2_flags("vpu_g2_root_clk", "vpu_g2", base + 0x45a0, 0, CLK_SET_RATE_PARENT | CLK_OPS_PARENT_ENABLE); clks 539 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DISP_ROOT] = imx_clk_gate2_shared2("disp_root_clk", "disp_dc8000", base + 0x45d0, 0, &share_count_dcss); clks 540 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DISP_AXI_ROOT] = imx_clk_gate2_shared2("disp_axi_root_clk", "disp_axi", base + 0x45d0, 0, &share_count_dcss); clks 541 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DISP_APB_ROOT] = imx_clk_gate2_shared2("disp_apb_root_clk", "disp_apb", base + 0x45d0, 0, &share_count_dcss); clks 542 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DISP_RTRM_ROOT] = imx_clk_gate2_shared2("disp_rtrm_root_clk", "disp_rtrm", base + 0x45d0, 0, &share_count_dcss); clks 543 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_TMU_ROOT] = imx_clk_gate4("tmu_root_clk", "ipg_root", base + 0x4620, 0); clks 544 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_VPU_DEC_ROOT] = imx_clk_gate2_flags("vpu_dec_root_clk", "vpu_bus", base + 0x4630, 0, CLK_SET_RATE_PARENT | CLK_OPS_PARENT_ENABLE); clks 545 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_CSI1_ROOT] = imx_clk_gate4("csi1_root_clk", "csi1_core", base + 0x4650, 0); clks 546 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_CSI2_ROOT] = imx_clk_gate4("csi2_root_clk", "csi2_core", base + 0x4660, 0); clks 547 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SDMA1_ROOT] = imx_clk_gate4("sdma1_clk", "ipg_root", base + 0x43a0, 0); clks 548 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_SDMA2_ROOT] = imx_clk_gate4("sdma2_clk", "ipg_audio_root", base + 0x43b0, 0); clks 550 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_GPT_3M_CLK] = imx_clk_fixed_factor("gpt_3m", "osc_25m", 1, 8); clks 551 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_DRAM_ALT_ROOT] = imx_clk_fixed_factor("dram_alt_root", "dram_alt", 1, 4); clks 553 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_ARM] = imx_clk_cpu("arm", "arm_a53_div", clks 554 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_A53_DIV], clks 555 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_CLK_A53_SRC], clks 556 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_ARM_PLL_OUT], clks 557 drivers/clk/imx/clk-imx8mq.c clks[IMX8MQ_SYS1_PLL_800M]); clks 559 drivers/clk/imx/clk-imx8mq.c imx_check_clocks(clks, ARRAY_SIZE(clks)); clks 561 drivers/clk/imx/clk-imx8mq.c clk_data.clks = clks; clks 562 drivers/clk/imx/clk-imx8mq.c clk_data.clk_num = ARRAY_SIZE(clks); clks 575 drivers/clk/imx/clk-imx8mq.c imx_unregister_clocks(clks, ARRAY_SIZE(clks)); clks 168 drivers/clk/imx/clk-imx8qxp-lpcg.c struct clk_hw **clks; clks 189 drivers/clk/imx/clk-imx8qxp-lpcg.c clks = clk_data->hws; clks 193 drivers/clk/imx/clk-imx8qxp-lpcg.c clks[lpcg->id] = imx_clk_lpcg_scu(lpcg->name, lpcg->parent, clks 199 drivers/clk/imx/clk-imx8qxp-lpcg.c if (IS_ERR(clks[i])) clks 201 drivers/clk/imx/clk-imx8qxp-lpcg.c i, PTR_ERR(clks[i])); clks 24 drivers/clk/imx/clk-imx8qxp.c struct clk_hw **clks; clks 37 drivers/clk/imx/clk-imx8qxp.c clks = clk_data->hws; clks 40 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CLK_DUMMY] = clk_hw_register_fixed_rate(NULL, "dummy", NULL, 0, 0); clks 41 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_IPG_CLK_ROOT] = clk_hw_register_fixed_rate(NULL, "dma_ipg_clk_root", NULL, 0, 120000000); clks 42 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_AXI_CLK_ROOT] = clk_hw_register_fixed_rate(NULL, "conn_axi_clk_root", NULL, 0, 333333333); clks 43 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_AHB_CLK_ROOT] = clk_hw_register_fixed_rate(NULL, "conn_ahb_clk_root", NULL, 0, 166666666); clks 44 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_IPG_CLK_ROOT] = clk_hw_register_fixed_rate(NULL, "conn_ipg_clk_root", NULL, 0, 83333333); clks 45 drivers/clk/imx/clk-imx8qxp.c clks[IMX_DC_AXI_EXT_CLK] = clk_hw_register_fixed_rate(NULL, "dc_axi_ext_clk_root", NULL, 0, 800000000); clks 46 drivers/clk/imx/clk-imx8qxp.c clks[IMX_DC_AXI_INT_CLK] = clk_hw_register_fixed_rate(NULL, "dc_axi_int_clk_root", NULL, 0, 400000000); clks 47 drivers/clk/imx/clk-imx8qxp.c clks[IMX_DC_CFG_CLK] = clk_hw_register_fixed_rate(NULL, "dc_cfg_clk_root", NULL, 0, 100000000); clks 48 drivers/clk/imx/clk-imx8qxp.c clks[IMX_MIPI_IPG_CLK] = clk_hw_register_fixed_rate(NULL, "mipi_ipg_clk_root", NULL, 0, 120000000); clks 49 drivers/clk/imx/clk-imx8qxp.c clks[IMX_IMG_AXI_CLK] = clk_hw_register_fixed_rate(NULL, "img_axi_clk_root", NULL, 0, 400000000); clks 50 drivers/clk/imx/clk-imx8qxp.c clks[IMX_IMG_IPG_CLK] = clk_hw_register_fixed_rate(NULL, "img_ipg_clk_root", NULL, 0, 200000000); clks 51 drivers/clk/imx/clk-imx8qxp.c clks[IMX_IMG_PXL_CLK] = clk_hw_register_fixed_rate(NULL, "img_pxl_clk_root", NULL, 0, 600000000); clks 52 drivers/clk/imx/clk-imx8qxp.c clks[IMX_HSIO_AXI_CLK] = clk_hw_register_fixed_rate(NULL, "hsio_axi_clk_root", NULL, 0, 400000000); clks 53 drivers/clk/imx/clk-imx8qxp.c clks[IMX_HSIO_PER_CLK] = clk_hw_register_fixed_rate(NULL, "hsio_per_clk_root", NULL, 0, 133333333); clks 54 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_MEM_CLK] = clk_hw_register_fixed_rate(NULL, "lsio_mem_clk_root", NULL, 0, 200000000); clks 55 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_BUS_CLK] = clk_hw_register_fixed_rate(NULL, "lsio_bus_clk_root", NULL, 0, 100000000); clks 58 drivers/clk/imx/clk-imx8qxp.c clks[IMX_A35_CLK] = imx_clk_scu("a35_clk", IMX_SC_R_A35, IMX_SC_PM_CLK_CPU); clks 61 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_PWM0_CLK] = imx_clk_scu("pwm0_clk", IMX_SC_R_PWM_0, IMX_SC_PM_CLK_PER); clks 62 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_PWM1_CLK] = imx_clk_scu("pwm1_clk", IMX_SC_R_PWM_1, IMX_SC_PM_CLK_PER); clks 63 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_PWM2_CLK] = imx_clk_scu("pwm2_clk", IMX_SC_R_PWM_2, IMX_SC_PM_CLK_PER); clks 64 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_PWM3_CLK] = imx_clk_scu("pwm3_clk", IMX_SC_R_PWM_3, IMX_SC_PM_CLK_PER); clks 65 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_PWM4_CLK] = imx_clk_scu("pwm4_clk", IMX_SC_R_PWM_4, IMX_SC_PM_CLK_PER); clks 66 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_PWM5_CLK] = imx_clk_scu("pwm5_clk", IMX_SC_R_PWM_5, IMX_SC_PM_CLK_PER); clks 67 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_PWM6_CLK] = imx_clk_scu("pwm6_clk", IMX_SC_R_PWM_6, IMX_SC_PM_CLK_PER); clks 68 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_PWM7_CLK] = imx_clk_scu("pwm7_clk", IMX_SC_R_PWM_7, IMX_SC_PM_CLK_PER); clks 69 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_GPT0_CLK] = imx_clk_scu("gpt0_clk", IMX_SC_R_GPT_0, IMX_SC_PM_CLK_PER); clks 70 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_GPT1_CLK] = imx_clk_scu("gpt1_clk", IMX_SC_R_GPT_1, IMX_SC_PM_CLK_PER); clks 71 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_GPT2_CLK] = imx_clk_scu("gpt2_clk", IMX_SC_R_GPT_2, IMX_SC_PM_CLK_PER); clks 72 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_GPT3_CLK] = imx_clk_scu("gpt3_clk", IMX_SC_R_GPT_3, IMX_SC_PM_CLK_PER); clks 73 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_GPT4_CLK] = imx_clk_scu("gpt4_clk", IMX_SC_R_GPT_4, IMX_SC_PM_CLK_PER); clks 74 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_FSPI0_CLK] = imx_clk_scu("fspi0_clk", IMX_SC_R_FSPI_0, IMX_SC_PM_CLK_PER); clks 75 drivers/clk/imx/clk-imx8qxp.c clks[IMX_LSIO_FSPI1_CLK] = imx_clk_scu("fspi1_clk", IMX_SC_R_FSPI_1, IMX_SC_PM_CLK_PER); clks 78 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_UART0_CLK] = imx_clk_scu("uart0_clk", IMX_SC_R_UART_0, IMX_SC_PM_CLK_PER); clks 79 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_UART1_CLK] = imx_clk_scu("uart1_clk", IMX_SC_R_UART_1, IMX_SC_PM_CLK_PER); clks 80 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_UART2_CLK] = imx_clk_scu("uart2_clk", IMX_SC_R_UART_2, IMX_SC_PM_CLK_PER); clks 81 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_UART3_CLK] = imx_clk_scu("uart3_clk", IMX_SC_R_UART_3, IMX_SC_PM_CLK_PER); clks 82 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_SPI0_CLK] = imx_clk_scu("spi0_clk", IMX_SC_R_SPI_0, IMX_SC_PM_CLK_PER); clks 83 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_SPI1_CLK] = imx_clk_scu("spi1_clk", IMX_SC_R_SPI_1, IMX_SC_PM_CLK_PER); clks 84 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_SPI2_CLK] = imx_clk_scu("spi2_clk", IMX_SC_R_SPI_2, IMX_SC_PM_CLK_PER); clks 85 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_SPI3_CLK] = imx_clk_scu("spi3_clk", IMX_SC_R_SPI_3, IMX_SC_PM_CLK_PER); clks 86 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_CAN0_CLK] = imx_clk_scu("can0_clk", IMX_SC_R_CAN_0, IMX_SC_PM_CLK_PER); clks 87 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_I2C0_CLK] = imx_clk_scu("i2c0_clk", IMX_SC_R_I2C_0, IMX_SC_PM_CLK_PER); clks 88 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_I2C1_CLK] = imx_clk_scu("i2c1_clk", IMX_SC_R_I2C_1, IMX_SC_PM_CLK_PER); clks 89 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_I2C2_CLK] = imx_clk_scu("i2c2_clk", IMX_SC_R_I2C_2, IMX_SC_PM_CLK_PER); clks 90 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_I2C3_CLK] = imx_clk_scu("i2c3_clk", IMX_SC_R_I2C_3, IMX_SC_PM_CLK_PER); clks 91 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_FTM0_CLK] = imx_clk_scu("ftm0_clk", IMX_SC_R_FTM_0, IMX_SC_PM_CLK_PER); clks 92 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_FTM1_CLK] = imx_clk_scu("ftm1_clk", IMX_SC_R_FTM_1, IMX_SC_PM_CLK_PER); clks 93 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_ADC0_CLK] = imx_clk_scu("adc0_clk", IMX_SC_R_ADC_0, IMX_SC_PM_CLK_PER); clks 94 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_PWM_CLK] = imx_clk_scu("pwm_clk", IMX_SC_R_LCD_0_PWM_0, IMX_SC_PM_CLK_PER); clks 95 drivers/clk/imx/clk-imx8qxp.c clks[IMX_ADMA_LCD_CLK] = imx_clk_scu("lcd_clk", IMX_SC_R_LCD_0, IMX_SC_PM_CLK_PER); clks 98 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_SDHC0_CLK] = imx_clk_scu("sdhc0_clk", IMX_SC_R_SDHC_0, IMX_SC_PM_CLK_PER); clks 99 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_SDHC1_CLK] = imx_clk_scu("sdhc1_clk", IMX_SC_R_SDHC_1, IMX_SC_PM_CLK_PER); clks 100 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_SDHC2_CLK] = imx_clk_scu("sdhc2_clk", IMX_SC_R_SDHC_2, IMX_SC_PM_CLK_PER); clks 101 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_ENET0_ROOT_CLK] = imx_clk_scu("enet0_clk", IMX_SC_R_ENET_0, IMX_SC_PM_CLK_PER); clks 102 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_ENET0_BYPASS_CLK] = imx_clk_scu("enet0_bypass_clk", IMX_SC_R_ENET_0, IMX_SC_PM_CLK_BYPASS); clks 103 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_ENET0_RGMII_CLK] = imx_clk_scu("enet0_rgmii_clk", IMX_SC_R_ENET_0, IMX_SC_PM_CLK_MISC0); clks 104 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_ENET1_ROOT_CLK] = imx_clk_scu("enet1_clk", IMX_SC_R_ENET_1, IMX_SC_PM_CLK_PER); clks 105 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_ENET1_BYPASS_CLK] = imx_clk_scu("enet1_bypass_clk", IMX_SC_R_ENET_1, IMX_SC_PM_CLK_BYPASS); clks 106 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_ENET1_RGMII_CLK] = imx_clk_scu("enet1_rgmii_clk", IMX_SC_R_ENET_1, IMX_SC_PM_CLK_MISC0); clks 107 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_GPMI_BCH_IO_CLK] = imx_clk_scu("gpmi_io_clk", IMX_SC_R_NAND, IMX_SC_PM_CLK_MST_BUS); clks 108 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_GPMI_BCH_CLK] = imx_clk_scu("gpmi_bch_clk", IMX_SC_R_NAND, IMX_SC_PM_CLK_PER); clks 109 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_USB2_ACLK] = imx_clk_scu("usb3_aclk_div", IMX_SC_R_USB_2, IMX_SC_PM_CLK_PER); clks 110 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_USB2_BUS_CLK] = imx_clk_scu("usb3_bus_div", IMX_SC_R_USB_2, IMX_SC_PM_CLK_MST_BUS); clks 111 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CONN_USB2_LPM_CLK] = imx_clk_scu("usb3_lpm_div", IMX_SC_R_USB_2, IMX_SC_PM_CLK_MISC); clks 114 drivers/clk/imx/clk-imx8qxp.c clks[IMX_DC0_DISP0_CLK] = imx_clk_scu("dc0_disp0_clk", IMX_SC_R_DC_0, IMX_SC_PM_CLK_MISC0); clks 115 drivers/clk/imx/clk-imx8qxp.c clks[IMX_DC0_DISP1_CLK] = imx_clk_scu("dc0_disp1_clk", IMX_SC_R_DC_0, IMX_SC_PM_CLK_MISC1); clks 118 drivers/clk/imx/clk-imx8qxp.c clks[IMX_MIPI0_I2C0_CLK] = imx_clk_scu("mipi0_i2c0_clk", IMX_SC_R_MIPI_0_I2C_0, IMX_SC_PM_CLK_MISC2); clks 119 drivers/clk/imx/clk-imx8qxp.c clks[IMX_MIPI0_I2C1_CLK] = imx_clk_scu("mipi0_i2c1_clk", IMX_SC_R_MIPI_0_I2C_1, IMX_SC_PM_CLK_MISC2); clks 122 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CSI0_CORE_CLK] = imx_clk_scu("mipi_csi0_core_clk", IMX_SC_R_CSI_0, IMX_SC_PM_CLK_PER); clks 123 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CSI0_ESC_CLK] = imx_clk_scu("mipi_csi0_esc_clk", IMX_SC_R_CSI_0, IMX_SC_PM_CLK_MISC); clks 124 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CSI0_I2C0_CLK] = imx_clk_scu("mipi_csi0_i2c0_clk", IMX_SC_R_CSI_0_I2C_0, IMX_SC_PM_CLK_PER); clks 125 drivers/clk/imx/clk-imx8qxp.c clks[IMX_CSI0_PWM0_CLK] = imx_clk_scu("mipi_csi0_pwm0_clk", IMX_SC_R_CSI_0_PWM_0, IMX_SC_PM_CLK_PER); clks 128 drivers/clk/imx/clk-imx8qxp.c clks[IMX_GPU0_CORE_CLK] = imx_clk_scu("gpu_core0_clk", IMX_SC_R_GPU_0_PID0, IMX_SC_PM_CLK_PER); clks 129 drivers/clk/imx/clk-imx8qxp.c clks[IMX_GPU0_SHADER_CLK] = imx_clk_scu("gpu_shader0_clk", IMX_SC_R_GPU_0_PID0, IMX_SC_PM_CLK_MISC); clks 132 drivers/clk/imx/clk-imx8qxp.c if (IS_ERR(clks[i])) clks 134 drivers/clk/imx/clk-imx8qxp.c i, PTR_ERR(clks[i])); clks 465 drivers/clk/imx/clk-vf610.c clk_data.clks = clk; clks 17 drivers/clk/imx/clk.c void imx_unregister_clocks(struct clk *clks[], unsigned int count) clks 22 drivers/clk/imx/clk.c clk_unregister(clks[i]); clks 35 drivers/clk/imx/clk.c void imx_check_clocks(struct clk *clks[], unsigned int count) clks 40 drivers/clk/imx/clk.c if (IS_ERR(clks[i])) clks 42 drivers/clk/imx/clk.c i, PTR_ERR(clks[i])); clks 45 drivers/clk/imx/clk.c void imx_check_clk_hws(struct clk_hw *clks[], unsigned int count) clks 50 drivers/clk/imx/clk.c if (IS_ERR(clks[i])) clks 52 drivers/clk/imx/clk.c i, PTR_ERR(clks[i])); clks 149 drivers/clk/imx/clk.c void imx_register_uart_clocks(struct clk ** const clks[]) clks 154 drivers/clk/imx/clk.c imx_uart_clocks = clks; clks 10 drivers/clk/imx/clk.h void imx_check_clocks(struct clk *clks[], unsigned int count); clks 11 drivers/clk/imx/clk.h void imx_check_clk_hws(struct clk_hw *clks[], unsigned int count); clks 12 drivers/clk/imx/clk.h void imx_register_uart_clocks(struct clk ** const clks[]); clks 14 drivers/clk/imx/clk.h void imx_unregister_clocks(struct clk *clks[], unsigned int count); clks 621 drivers/clk/ingenic/cgu.c cgu->clocks.clks[idx] = clk; clks 659 drivers/clk/ingenic/cgu.c parent = cgu->clocks.clks[clk_info->parents[i]]; clks 670 drivers/clk/ingenic/cgu.c parent = cgu->clocks.clks[clk_info->parents[0]]; clks 733 drivers/clk/ingenic/cgu.c cgu->clocks.clks[idx] = clk; clks 775 drivers/clk/ingenic/cgu.c cgu->clocks.clks = kcalloc(cgu->clocks.clk_num, sizeof(struct clk *), clks 777 drivers/clk/ingenic/cgu.c if (!cgu->clocks.clks) { clks 797 drivers/clk/ingenic/cgu.c if (!cgu->clocks.clks[i]) clks 800 drivers/clk/ingenic/cgu.c clk_put(cgu->clocks.clks[i]); clks 802 drivers/clk/ingenic/cgu.c clk_unregister(cgu->clocks.clks[i]); clks 804 drivers/clk/ingenic/cgu.c kfree(cgu->clocks.clks); clks 416 drivers/clk/keystone/sci-clk.c struct sci_clk **clks = NULL; clks 454 drivers/clk/keystone/sci-clk.c memcpy(tmp_clks, clks, max_clks * sizeof(sci_clk)); clks 456 drivers/clk/keystone/sci-clk.c devm_kfree(dev, clks); clks 458 drivers/clk/keystone/sci-clk.c clks = tmp_clks; clks 469 drivers/clk/keystone/sci-clk.c clks[num_clks] = sci_clk; clks 480 drivers/clk/keystone/sci-clk.c memcpy(provider->clocks, clks, num_clks * sizeof(sci_clk)); clks 484 drivers/clk/keystone/sci-clk.c devm_kfree(dev, clks); clks 507 drivers/clk/keystone/sci-clk.c struct list_head clks; clks 517 drivers/clk/keystone/sci-clk.c INIT_LIST_HEAD(&clks); clks 553 drivers/clk/keystone/sci-clk.c list_add_tail(&sci_clk->node, &clks); clks 589 drivers/clk/keystone/sci-clk.c list_add_tail(&sci_clk->node, &clks); clks 599 drivers/clk/keystone/sci-clk.c list_sort(NULL, &clks, _cmp_sci_clk_list); clks 609 drivers/clk/keystone/sci-clk.c list_for_each_entry(sci_clk, &clks, node) { clks 80 drivers/clk/mediatek/clk-cpumux.c const struct mtk_composite *clks, int num, clks 95 drivers/clk/mediatek/clk-cpumux.c const struct mtk_composite *mux = &clks[i]; clks 104 drivers/clk/mediatek/clk-cpumux.c clk_data->clks[mux->id] = clk; clks 19 drivers/clk/mediatek/clk-cpumux.h const struct mtk_composite *clks, int num, clks 747 drivers/clk/mediatek/clk-mt2701.c infra_clk_data->clks[i] = ERR_PTR(-EPROBE_DEFER); clks 773 drivers/clk/mediatek/clk-mt2701.c if (infra_clk_data->clks[i] == ERR_PTR(-EPROBE_DEFER)) clks 774 drivers/clk/mediatek/clk-mt2701.c infra_clk_data->clks[i] = ERR_PTR(-ENOENT); clks 1289 drivers/clk/mediatek/clk-mt2712.c top_clk_data->clks[i] = ERR_PTR(-EPROBE_DEFER); clks 1321 drivers/clk/mediatek/clk-mt2712.c if (top_clk_data->clks[i] == ERR_PTR(-EPROBE_DEFER)) clks 1322 drivers/clk/mediatek/clk-mt2712.c top_clk_data->clks[i] = ERR_PTR(-ENOENT); clks 569 drivers/clk/mediatek/clk-mt6797.c infra_clk_data->clks[i] = ERR_PTR(-EPROBE_DEFER); clks 593 drivers/clk/mediatek/clk-mt6797.c if (infra_clk_data->clks[i] == ERR_PTR(-EPROBE_DEFER)) clks 594 drivers/clk/mediatek/clk-mt6797.c infra_clk_data->clks[i] = ERR_PTR(-ENOENT); clks 640 drivers/clk/mediatek/clk-mt7622.c clk_prepare_enable(clk_data->clks[CLK_TOP_AXI_SEL]); clks 641 drivers/clk/mediatek/clk-mt7622.c clk_prepare_enable(clk_data->clks[CLK_TOP_MEM_SEL]); clks 642 drivers/clk/mediatek/clk-mt7622.c clk_prepare_enable(clk_data->clks[CLK_TOP_DDRPHYCFG_SEL]); clks 686 drivers/clk/mediatek/clk-mt7622.c clk_prepare_enable(clk_data->clks[CLK_APMIXED_ARMPLL]); clks 687 drivers/clk/mediatek/clk-mt7622.c clk_prepare_enable(clk_data->clks[CLK_APMIXED_MAIN_CORE_EN]); clks 716 drivers/clk/mediatek/clk-mt7622.c clk_prepare_enable(clk_data->clks[CLK_PERI_UART0_PD]); clks 594 drivers/clk/mediatek/clk-mt7629.c clk_prepare_enable(clk_data->clks[CLK_TOP_AXI_SEL]); clks 595 drivers/clk/mediatek/clk-mt7629.c clk_prepare_enable(clk_data->clks[CLK_TOP_MEM_SEL]); clks 596 drivers/clk/mediatek/clk-mt7629.c clk_prepare_enable(clk_data->clks[CLK_TOP_DDRPHYCFG_SEL]); clks 647 drivers/clk/mediatek/clk-mt7629.c clk_prepare_enable(clk_data->clks[CLK_PERI_UART0_PD]); clks 667 drivers/clk/mediatek/clk-mt7629.c clk_prepare_enable(clk_data->clks[CLK_APMIXED_ARMPLL]); clks 668 drivers/clk/mediatek/clk-mt7629.c clk_prepare_enable(clk_data->clks[CLK_APMIXED_MAIN_CORE_EN]); clks 535 drivers/clk/mediatek/clk-mt8135.c clk_prepare_enable(clk_data->clks[CLK_TOP_CCI_SEL]); clks 554 drivers/clk/mediatek/clk-mt8135.c clk_prepare_enable(clk_data->clks[CLK_INFRA_M4U]); clks 916 drivers/clk/mediatek/clk-mt8173.c clk_prepare_enable(mt8173_pll_clk_data->clks[CLK_APMIXED_ARMCA15PLL]); clks 917 drivers/clk/mediatek/clk-mt8173.c clk_prepare_enable(mt8173_pll_clk_data->clks[CLK_APMIXED_ARMCA7PLL]); clks 918 drivers/clk/mediatek/clk-mt8173.c clk_prepare_enable(mt8173_top_clk_data->clks[CLK_TOP_MEM_SEL]); clks 919 drivers/clk/mediatek/clk-mt8173.c clk_prepare_enable(mt8173_top_clk_data->clks[CLK_TOP_DDRPHYCFG_SEL]); clks 920 drivers/clk/mediatek/clk-mt8173.c clk_prepare_enable(mt8173_top_clk_data->clks[CLK_TOP_CCI400_SEL]); clks 921 drivers/clk/mediatek/clk-mt8173.c clk_prepare_enable(mt8173_top_clk_data->clks[CLK_TOP_RTC_SEL]); clks 1111 drivers/clk/mediatek/clk-mt8173.c clk_data->clks[cku->id] = clk; clks 1117 drivers/clk/mediatek/clk-mt8173.c clk_data->clks[CLK_APMIXED_HDMI_REF] = clk; clks 1179 drivers/clk/mediatek/clk-mt8183.c top_clk_data->clks[i] = ERR_PTR(-EPROBE_DEFER); clks 29 drivers/clk/mediatek/clk-mtk.c clk_data->clks = kcalloc(clk_num, sizeof(*clk_data->clks), GFP_KERNEL); clks 30 drivers/clk/mediatek/clk-mtk.c if (!clk_data->clks) clks 36 drivers/clk/mediatek/clk-mtk.c clk_data->clks[i] = ERR_PTR(-ENOENT); clks 45 drivers/clk/mediatek/clk-mtk.c void mtk_clk_register_fixed_clks(const struct mtk_fixed_clk *clks, clks 52 drivers/clk/mediatek/clk-mtk.c const struct mtk_fixed_clk *rc = &clks[i]; clks 54 drivers/clk/mediatek/clk-mtk.c if (clk_data && !IS_ERR_OR_NULL(clk_data->clks[rc->id])) clks 67 drivers/clk/mediatek/clk-mtk.c clk_data->clks[rc->id] = clk; clks 71 drivers/clk/mediatek/clk-mtk.c void mtk_clk_register_factors(const struct mtk_fixed_factor *clks, clks 78 drivers/clk/mediatek/clk-mtk.c const struct mtk_fixed_factor *ff = &clks[i]; clks 80 drivers/clk/mediatek/clk-mtk.c if (clk_data && !IS_ERR_OR_NULL(clk_data->clks[ff->id])) clks 93 drivers/clk/mediatek/clk-mtk.c clk_data->clks[ff->id] = clk; clks 98 drivers/clk/mediatek/clk-mtk.c const struct mtk_gate *clks, clks 117 drivers/clk/mediatek/clk-mtk.c const struct mtk_gate *gate = &clks[i]; clks 119 drivers/clk/mediatek/clk-mtk.c if (!IS_ERR_OR_NULL(clk_data->clks[gate->id])) clks 135 drivers/clk/mediatek/clk-mtk.c clk_data->clks[gate->id] = clk; clks 142 drivers/clk/mediatek/clk-mtk.c const struct mtk_gate *clks, clks 146 drivers/clk/mediatek/clk-mtk.c clks, num, clk_data, NULL); clks 246 drivers/clk/mediatek/clk-mtk.c if (clk_data && !IS_ERR_OR_NULL(clk_data->clks[mc->id])) clks 258 drivers/clk/mediatek/clk-mtk.c clk_data->clks[mc->id] = clk; clks 272 drivers/clk/mediatek/clk-mtk.c if (clk_data && !IS_ERR_OR_NULL(clk_data->clks[mcd->id])) clks 286 drivers/clk/mediatek/clk-mtk.c clk_data->clks[mcd->id] = clk; clks 36 drivers/clk/mediatek/clk-mtk.h void mtk_clk_register_fixed_clks(const struct mtk_fixed_clk *clks, clks 55 drivers/clk/mediatek/clk-mtk.h void mtk_clk_register_factors(const struct mtk_fixed_factor *clks, clks 169 drivers/clk/mediatek/clk-mtk.h const struct mtk_gate *clks, int num, clks 173 drivers/clk/mediatek/clk-mtk.h const struct mtk_gate *clks, clks 209 drivers/clk/mediatek/clk-mux.c if (IS_ERR_OR_NULL(clk_data->clks[mux->id])) { clks 218 drivers/clk/mediatek/clk-mux.c clk_data->clks[mux->id] = clk; clks 368 drivers/clk/mediatek/clk-pll.c clk_data->clks[pll->id] = clk; clks 318 drivers/clk/meson/axg-aoclk.c .clks = axg_aoclk_regmap, clks 453 drivers/clk/meson/g12a-aoclk.c .clks = g12a_aoclk_regmap, clks 279 drivers/clk/meson/gxbb-aoclk.c .clks = gxbb_aoclk, clks 70 drivers/clk/meson/meson-aoclk.c data->clks[clkid]->map = regmap; clks 26 drivers/clk/meson/meson-aoclk.h struct clk_regmap **clks; clks 128 drivers/clk/microchip/clk-pic32mzda.c struct clk *clks[MAXCLKS]; clks 157 drivers/clk/microchip/clk-pic32mzda.c struct clk **clks; clks 173 drivers/clk/microchip/clk-pic32mzda.c clks = &cd->clks[0]; clks 176 drivers/clk/microchip/clk-pic32mzda.c clks[POSCCLK] = clk_register_fixed_rate(&pdev->dev, "posc_clk", NULL, clks 178 drivers/clk/microchip/clk-pic32mzda.c clks[FRCCLK] = clk_register_fixed_rate(&pdev->dev, "frc_clk", NULL, clks 180 drivers/clk/microchip/clk-pic32mzda.c clks[BFRCCLK] = clk_register_fixed_rate(&pdev->dev, "bfrc_clk", NULL, clks 182 drivers/clk/microchip/clk-pic32mzda.c clks[LPRCCLK] = clk_register_fixed_rate(&pdev->dev, "lprc_clk", NULL, clks 184 drivers/clk/microchip/clk-pic32mzda.c clks[UPLLCLK] = clk_register_fixed_rate(&pdev->dev, "usbphy_clk", NULL, clks 189 drivers/clk/microchip/clk-pic32mzda.c clks[SOSCCLK] = pic32_sosc_clk_register(&sosc_clk, core); clks 192 drivers/clk/microchip/clk-pic32mzda.c clks[FRCDIVCLK] = clk_register_divider(&pdev->dev, "frcdiv_clk", clks 208 drivers/clk/microchip/clk-pic32mzda.c clks[PLLCLK] = pic32_spll_clk_register(&sys_pll, core); clks 210 drivers/clk/microchip/clk-pic32mzda.c clks[SCLK] = pic32_sys_clk_register(&sys_mux_clk, core); clks 213 drivers/clk/microchip/clk-pic32mzda.c clks[nr_clks] = pic32_periph_clk_register(&periph_clocks[i], clks 217 drivers/clk/microchip/clk-pic32mzda.c clks[nr_clks] = pic32_refo_clk_register(&ref_clks[i], core); clks 221 drivers/clk/microchip/clk-pic32mzda.c if (IS_ERR(clks[i])) clks 223 drivers/clk/microchip/clk-pic32mzda.c clk_register_clkdev(clks[i], NULL, __clk_get_name(clks[i])); clks 227 drivers/clk/microchip/clk-pic32mzda.c cd->onecell_data.clks = clks; clks 236 drivers/clk/microchip/clk-pic32mzda.c clk = clks[pic32mzda_critical_clks[i]]; clks 21 drivers/clk/mmp/clk.c unit->clk_data.clks = clk_table; clks 27 drivers/clk/mmp/clk.c struct mmp_param_fixed_rate_clk *clks, clks 34 drivers/clk/mmp/clk.c clk = clk_register_fixed_rate(NULL, clks[i].name, clks 35 drivers/clk/mmp/clk.c clks[i].parent_name, clks 36 drivers/clk/mmp/clk.c clks[i].flags, clks 37 drivers/clk/mmp/clk.c clks[i].fixed_rate); clks 40 drivers/clk/mmp/clk.c __func__, clks[i].name); clks 43 drivers/clk/mmp/clk.c if (clks[i].id) clks 44 drivers/clk/mmp/clk.c unit->clk_table[clks[i].id] = clk; clks 49 drivers/clk/mmp/clk.c struct mmp_param_fixed_factor_clk *clks, clks 56 drivers/clk/mmp/clk.c clk = clk_register_fixed_factor(NULL, clks[i].name, clks 57 drivers/clk/mmp/clk.c clks[i].parent_name, clks 58 drivers/clk/mmp/clk.c clks[i].flags, clks[i].mult, clks 59 drivers/clk/mmp/clk.c clks[i].div); clks 62 drivers/clk/mmp/clk.c __func__, clks[i].name); clks 65 drivers/clk/mmp/clk.c if (clks[i].id) clks 66 drivers/clk/mmp/clk.c unit->clk_table[clks[i].id] = clk; clks 71 drivers/clk/mmp/clk.c struct mmp_param_general_gate_clk *clks, clks 78 drivers/clk/mmp/clk.c clk = clk_register_gate(NULL, clks[i].name, clks 79 drivers/clk/mmp/clk.c clks[i].parent_name, clks 80 drivers/clk/mmp/clk.c clks[i].flags, clks 81 drivers/clk/mmp/clk.c base + clks[i].offset, clks 82 drivers/clk/mmp/clk.c clks[i].bit_idx, clks 83 drivers/clk/mmp/clk.c clks[i].gate_flags, clks 84 drivers/clk/mmp/clk.c clks[i].lock); clks 88 drivers/clk/mmp/clk.c __func__, clks[i].name); clks 91 drivers/clk/mmp/clk.c if (clks[i].id) clks 92 drivers/clk/mmp/clk.c unit->clk_table[clks[i].id] = clk; clks 97 drivers/clk/mmp/clk.c struct mmp_param_gate_clk *clks, clks 104 drivers/clk/mmp/clk.c clk = mmp_clk_register_gate(NULL, clks[i].name, clks 105 drivers/clk/mmp/clk.c clks[i].parent_name, clks 106 drivers/clk/mmp/clk.c clks[i].flags, clks 107 drivers/clk/mmp/clk.c base + clks[i].offset, clks 108 drivers/clk/mmp/clk.c clks[i].mask, clks 109 drivers/clk/mmp/clk.c clks[i].val_enable, clks 110 drivers/clk/mmp/clk.c clks[i].val_disable, clks 111 drivers/clk/mmp/clk.c clks[i].gate_flags, clks 112 drivers/clk/mmp/clk.c clks[i].lock); clks 116 drivers/clk/mmp/clk.c __func__, clks[i].name); clks 119 drivers/clk/mmp/clk.c if (clks[i].id) clks 120 drivers/clk/mmp/clk.c unit->clk_table[clks[i].id] = clk; clks 125 drivers/clk/mmp/clk.c struct mmp_param_mux_clk *clks, clks 132 drivers/clk/mmp/clk.c clk = clk_register_mux(NULL, clks[i].name, clks 133 drivers/clk/mmp/clk.c clks[i].parent_name, clks 134 drivers/clk/mmp/clk.c clks[i].num_parents, clks 135 drivers/clk/mmp/clk.c clks[i].flags, clks 136 drivers/clk/mmp/clk.c base + clks[i].offset, clks 137 drivers/clk/mmp/clk.c clks[i].shift, clks 138 drivers/clk/mmp/clk.c clks[i].width, clks 139 drivers/clk/mmp/clk.c clks[i].mux_flags, clks 140 drivers/clk/mmp/clk.c clks[i].lock); clks 144 drivers/clk/mmp/clk.c __func__, clks[i].name); clks 147 drivers/clk/mmp/clk.c if (clks[i].id) clks 148 drivers/clk/mmp/clk.c unit->clk_table[clks[i].id] = clk; clks 153 drivers/clk/mmp/clk.c struct mmp_param_div_clk *clks, clks 160 drivers/clk/mmp/clk.c clk = clk_register_divider(NULL, clks[i].name, clks 161 drivers/clk/mmp/clk.c clks[i].parent_name, clks 162 drivers/clk/mmp/clk.c clks[i].flags, clks 163 drivers/clk/mmp/clk.c base + clks[i].offset, clks 164 drivers/clk/mmp/clk.c clks[i].shift, clks 165 drivers/clk/mmp/clk.c clks[i].width, clks 166 drivers/clk/mmp/clk.c clks[i].div_flags, clks 167 drivers/clk/mmp/clk.c clks[i].lock); clks 171 drivers/clk/mmp/clk.c __func__, clks[i].name); clks 174 drivers/clk/mmp/clk.c if (clks[i].id) clks 175 drivers/clk/mmp/clk.c unit->clk_table[clks[i].id] = clk; clks 151 drivers/clk/mmp/clk.h struct mmp_param_fixed_rate_clk *clks, clks 163 drivers/clk/mmp/clk.h struct mmp_param_fixed_factor_clk *clks, clks 177 drivers/clk/mmp/clk.h struct mmp_param_general_gate_clk *clks, clks 193 drivers/clk/mmp/clk.h struct mmp_param_gate_clk *clks, clks 209 drivers/clk/mmp/clk.h struct mmp_param_mux_clk *clks, clks 224 drivers/clk/mmp/clk.h struct mmp_param_div_clk *clks, clks 29 drivers/clk/mvebu/ap806-system-controller.c .clks = ap806_clks, clks 256 drivers/clk/mvebu/clk-corediv.c struct clk **clks; clks 271 drivers/clk/mvebu/clk-corediv.c clks = kcalloc(clk_data.clk_num, sizeof(struct clk *), clks 273 drivers/clk/mvebu/clk-corediv.c if (WARN_ON(!clks)) clks 297 drivers/clk/mvebu/clk-corediv.c clks[i] = clk_register(NULL, &corediv[i].hw); clks 298 drivers/clk/mvebu/clk-corediv.c WARN_ON(IS_ERR(clks[i])); clks 301 drivers/clk/mvebu/clk-corediv.c clk_data.clks = clks; clks 306 drivers/clk/mvebu/clk-corediv.c kfree(clks); clks 42 drivers/clk/mvebu/clk-cpu.c static struct clk **clks; clks 191 drivers/clk/mvebu/clk-cpu.c clks = kcalloc(ncpus, sizeof(*clks), GFP_KERNEL); clks 192 drivers/clk/mvebu/clk-cpu.c if (WARN_ON(!clks)) clks 227 drivers/clk/mvebu/clk-cpu.c clks[cpu] = clk; clks 230 drivers/clk/mvebu/clk-cpu.c clk_data.clks = clks; clks 235 drivers/clk/mvebu/clk-cpu.c kfree(clks); clks 127 drivers/clk/mvebu/common.c clk_data.clks = kcalloc(clk_data.clk_num, sizeof(*clk_data.clks), clks 129 drivers/clk/mvebu/common.c if (WARN_ON(!clk_data.clks)) { clks 138 drivers/clk/mvebu/common.c clk_data.clks[0] = clk_register_fixed_rate(NULL, tclk_name, NULL, 0, clks 140 drivers/clk/mvebu/common.c WARN_ON(IS_ERR(clk_data.clks[0])); clks 151 drivers/clk/mvebu/common.c clk_data.clks[1] = clk_register_fixed_rate(NULL, cpuclk_name, NULL, 0, clks 153 drivers/clk/mvebu/common.c WARN_ON(IS_ERR(clk_data.clks[1])); clks 163 drivers/clk/mvebu/common.c clk_data.clks[2+n] = clk_register_fixed_factor(NULL, rclk_name, clks 165 drivers/clk/mvebu/common.c WARN_ON(IS_ERR(clk_data.clks[2+n])); clks 174 drivers/clk/mvebu/common.c clk_data.clks[2 + desc->num_ratios] = clks 176 drivers/clk/mvebu/common.c WARN_ON(IS_ERR(clk_data.clks[2 + desc->num_ratios])); clks 220 drivers/clk/mvebu/dove-divider.c struct clk **clks) clks 234 drivers/clk/mvebu/dove-divider.c clks[i] = clk_register_dove_divider(dev, &dove_hw_clocks[i], clks 244 drivers/clk/mvebu/dove-divider.c .clks = dove_divider_clocks, clks 90 drivers/clk/mxs/clk-imx23.c static struct clk *clks[clk_max]; clks 112 drivers/clk/mxs/clk-imx23.c clks[ref_xtal] = mxs_clk_fixed("ref_xtal", 24000000); clks 113 drivers/clk/mxs/clk-imx23.c clks[pll] = mxs_clk_pll("pll", "ref_xtal", PLLCTRL0, 16, 480000000); clks 114 drivers/clk/mxs/clk-imx23.c clks[ref_cpu] = mxs_clk_ref("ref_cpu", "pll", FRAC, 0); clks 115 drivers/clk/mxs/clk-imx23.c clks[ref_emi] = mxs_clk_ref("ref_emi", "pll", FRAC, 1); clks 116 drivers/clk/mxs/clk-imx23.c clks[ref_pix] = mxs_clk_ref("ref_pix", "pll", FRAC, 2); clks 117 drivers/clk/mxs/clk-imx23.c clks[ref_io] = mxs_clk_ref("ref_io", "pll", FRAC, 3); clks 118 drivers/clk/mxs/clk-imx23.c clks[saif_sel] = mxs_clk_mux("saif_sel", CLKSEQ, 0, 1, sel_pll, ARRAY_SIZE(sel_pll)); clks 119 drivers/clk/mxs/clk-imx23.c clks[lcdif_sel] = mxs_clk_mux("lcdif_sel", CLKSEQ, 1, 1, sel_pix, ARRAY_SIZE(sel_pix)); clks 120 drivers/clk/mxs/clk-imx23.c clks[gpmi_sel] = mxs_clk_mux("gpmi_sel", CLKSEQ, 4, 1, sel_io, ARRAY_SIZE(sel_io)); clks 121 drivers/clk/mxs/clk-imx23.c clks[ssp_sel] = mxs_clk_mux("ssp_sel", CLKSEQ, 5, 1, sel_io, ARRAY_SIZE(sel_io)); clks 122 drivers/clk/mxs/clk-imx23.c clks[emi_sel] = mxs_clk_mux("emi_sel", CLKSEQ, 6, 1, emi_sels, ARRAY_SIZE(emi_sels)); clks 123 drivers/clk/mxs/clk-imx23.c clks[cpu] = mxs_clk_mux("cpu", CLKSEQ, 7, 1, cpu_sels, ARRAY_SIZE(cpu_sels)); clks 124 drivers/clk/mxs/clk-imx23.c clks[etm_sel] = mxs_clk_mux("etm_sel", CLKSEQ, 8, 1, sel_cpu, ARRAY_SIZE(sel_cpu)); clks 125 drivers/clk/mxs/clk-imx23.c clks[cpu_pll] = mxs_clk_div("cpu_pll", "ref_cpu", CPU, 0, 6, 28); clks 126 drivers/clk/mxs/clk-imx23.c clks[cpu_xtal] = mxs_clk_div("cpu_xtal", "ref_xtal", CPU, 16, 10, 29); clks 127 drivers/clk/mxs/clk-imx23.c clks[hbus] = mxs_clk_div("hbus", "cpu", HBUS, 0, 5, 29); clks 128 drivers/clk/mxs/clk-imx23.c clks[xbus] = mxs_clk_div("xbus", "ref_xtal", XBUS, 0, 10, 31); clks 129 drivers/clk/mxs/clk-imx23.c clks[lcdif_div] = mxs_clk_div("lcdif_div", "lcdif_sel", PIX, 0, 12, 29); clks 130 drivers/clk/mxs/clk-imx23.c clks[ssp_div] = mxs_clk_div("ssp_div", "ssp_sel", SSP, 0, 9, 29); clks 131 drivers/clk/mxs/clk-imx23.c clks[gpmi_div] = mxs_clk_div("gpmi_div", "gpmi_sel", GPMI, 0, 10, 29); clks 132 drivers/clk/mxs/clk-imx23.c clks[emi_pll] = mxs_clk_div("emi_pll", "ref_emi", EMI, 0, 6, 28); clks 133 drivers/clk/mxs/clk-imx23.c clks[emi_xtal] = mxs_clk_div("emi_xtal", "ref_xtal", EMI, 8, 4, 29); clks 134 drivers/clk/mxs/clk-imx23.c clks[etm_div] = mxs_clk_div("etm_div", "etm_sel", ETM, 0, 6, 29); clks 135 drivers/clk/mxs/clk-imx23.c clks[saif_div] = mxs_clk_frac("saif_div", "saif_sel", SAIF, 0, 16, 29); clks 136 drivers/clk/mxs/clk-imx23.c clks[clk32k_div] = mxs_clk_fixed_factor("clk32k_div", "ref_xtal", 1, 750); clks 137 drivers/clk/mxs/clk-imx23.c clks[rtc] = mxs_clk_fixed_factor("rtc", "ref_xtal", 1, 768); clks 138 drivers/clk/mxs/clk-imx23.c clks[adc] = mxs_clk_fixed_factor("adc", "clk32k", 1, 16); clks 139 drivers/clk/mxs/clk-imx23.c clks[spdif_div] = mxs_clk_fixed_factor("spdif_div", "pll", 1, 4); clks 140 drivers/clk/mxs/clk-imx23.c clks[clk32k] = mxs_clk_gate("clk32k", "clk32k_div", XTAL, 26); clks 141 drivers/clk/mxs/clk-imx23.c clks[dri] = mxs_clk_gate("dri", "ref_xtal", XTAL, 28); clks 142 drivers/clk/mxs/clk-imx23.c clks[pwm] = mxs_clk_gate("pwm", "ref_xtal", XTAL, 29); clks 143 drivers/clk/mxs/clk-imx23.c clks[filt] = mxs_clk_gate("filt", "ref_xtal", XTAL, 30); clks 144 drivers/clk/mxs/clk-imx23.c clks[uart] = mxs_clk_gate("uart", "ref_xtal", XTAL, 31); clks 145 drivers/clk/mxs/clk-imx23.c clks[ssp] = mxs_clk_gate("ssp", "ssp_div", SSP, 31); clks 146 drivers/clk/mxs/clk-imx23.c clks[gpmi] = mxs_clk_gate("gpmi", "gpmi_div", GPMI, 31); clks 147 drivers/clk/mxs/clk-imx23.c clks[spdif] = mxs_clk_gate("spdif", "spdif_div", SPDIF, 31); clks 148 drivers/clk/mxs/clk-imx23.c clks[emi] = mxs_clk_gate("emi", "emi_sel", EMI, 31); clks 149 drivers/clk/mxs/clk-imx23.c clks[saif] = mxs_clk_gate("saif", "saif_div", SAIF, 31); clks 150 drivers/clk/mxs/clk-imx23.c clks[lcdif] = mxs_clk_gate("lcdif", "lcdif_div", PIX, 31); clks 151 drivers/clk/mxs/clk-imx23.c clks[etm] = mxs_clk_gate("etm", "etm_div", ETM, 31); clks 152 drivers/clk/mxs/clk-imx23.c clks[usb] = mxs_clk_gate("usb", "usb_phy", DIGCTRL, 2); clks 153 drivers/clk/mxs/clk-imx23.c clks[usb_phy] = clk_register_gate(NULL, "usb_phy", "pll", 0, PLLCTRL0, 18, 0, &mxs_lock); clks 155 drivers/clk/mxs/clk-imx23.c for (i = 0; i < ARRAY_SIZE(clks); i++) clks 156 drivers/clk/mxs/clk-imx23.c if (IS_ERR(clks[i])) { clks 158 drivers/clk/mxs/clk-imx23.c i, PTR_ERR(clks[i])); clks 162 drivers/clk/mxs/clk-imx23.c clk_data.clks = clks; clks 163 drivers/clk/mxs/clk-imx23.c clk_data.clk_num = ARRAY_SIZE(clks); clks 167 drivers/clk/mxs/clk-imx23.c clk_prepare_enable(clks[clks_init_on[i]]); clks 145 drivers/clk/mxs/clk-imx28.c static struct clk *clks[clk_max]; clks 167 drivers/clk/mxs/clk-imx28.c clks[ref_xtal] = mxs_clk_fixed("ref_xtal", 24000000); clks 168 drivers/clk/mxs/clk-imx28.c clks[pll0] = mxs_clk_pll("pll0", "ref_xtal", PLL0CTRL0, 17, 480000000); clks 169 drivers/clk/mxs/clk-imx28.c clks[pll1] = mxs_clk_pll("pll1", "ref_xtal", PLL1CTRL0, 17, 480000000); clks 170 drivers/clk/mxs/clk-imx28.c clks[pll2] = mxs_clk_pll("pll2", "ref_xtal", PLL2CTRL0, 23, 50000000); clks 171 drivers/clk/mxs/clk-imx28.c clks[ref_cpu] = mxs_clk_ref("ref_cpu", "pll0", FRAC0, 0); clks 172 drivers/clk/mxs/clk-imx28.c clks[ref_emi] = mxs_clk_ref("ref_emi", "pll0", FRAC0, 1); clks 173 drivers/clk/mxs/clk-imx28.c clks[ref_io1] = mxs_clk_ref("ref_io1", "pll0", FRAC0, 2); clks 174 drivers/clk/mxs/clk-imx28.c clks[ref_io0] = mxs_clk_ref("ref_io0", "pll0", FRAC0, 3); clks 175 drivers/clk/mxs/clk-imx28.c clks[ref_pix] = mxs_clk_ref("ref_pix", "pll0", FRAC1, 0); clks 176 drivers/clk/mxs/clk-imx28.c clks[ref_hsadc] = mxs_clk_ref("ref_hsadc", "pll0", FRAC1, 1); clks 177 drivers/clk/mxs/clk-imx28.c clks[ref_gpmi] = mxs_clk_ref("ref_gpmi", "pll0", FRAC1, 2); clks 178 drivers/clk/mxs/clk-imx28.c clks[saif0_sel] = mxs_clk_mux("saif0_sel", CLKSEQ, 0, 1, sel_pll0, ARRAY_SIZE(sel_pll0)); clks 179 drivers/clk/mxs/clk-imx28.c clks[saif1_sel] = mxs_clk_mux("saif1_sel", CLKSEQ, 1, 1, sel_pll0, ARRAY_SIZE(sel_pll0)); clks 180 drivers/clk/mxs/clk-imx28.c clks[gpmi_sel] = mxs_clk_mux("gpmi_sel", CLKSEQ, 2, 1, sel_gpmi, ARRAY_SIZE(sel_gpmi)); clks 181 drivers/clk/mxs/clk-imx28.c clks[ssp0_sel] = mxs_clk_mux("ssp0_sel", CLKSEQ, 3, 1, sel_io0, ARRAY_SIZE(sel_io0)); clks 182 drivers/clk/mxs/clk-imx28.c clks[ssp1_sel] = mxs_clk_mux("ssp1_sel", CLKSEQ, 4, 1, sel_io0, ARRAY_SIZE(sel_io0)); clks 183 drivers/clk/mxs/clk-imx28.c clks[ssp2_sel] = mxs_clk_mux("ssp2_sel", CLKSEQ, 5, 1, sel_io1, ARRAY_SIZE(sel_io1)); clks 184 drivers/clk/mxs/clk-imx28.c clks[ssp3_sel] = mxs_clk_mux("ssp3_sel", CLKSEQ, 6, 1, sel_io1, ARRAY_SIZE(sel_io1)); clks 185 drivers/clk/mxs/clk-imx28.c clks[emi_sel] = mxs_clk_mux("emi_sel", CLKSEQ, 7, 1, emi_sels, ARRAY_SIZE(emi_sels)); clks 186 drivers/clk/mxs/clk-imx28.c clks[etm_sel] = mxs_clk_mux("etm_sel", CLKSEQ, 8, 1, sel_cpu, ARRAY_SIZE(sel_cpu)); clks 187 drivers/clk/mxs/clk-imx28.c clks[lcdif_sel] = mxs_clk_mux("lcdif_sel", CLKSEQ, 14, 1, sel_pix, ARRAY_SIZE(sel_pix)); clks 188 drivers/clk/mxs/clk-imx28.c clks[cpu] = mxs_clk_mux("cpu", CLKSEQ, 18, 1, cpu_sels, ARRAY_SIZE(cpu_sels)); clks 189 drivers/clk/mxs/clk-imx28.c clks[ptp_sel] = mxs_clk_mux("ptp_sel", ENET, 19, 1, ptp_sels, ARRAY_SIZE(ptp_sels)); clks 190 drivers/clk/mxs/clk-imx28.c clks[cpu_pll] = mxs_clk_div("cpu_pll", "ref_cpu", CPU, 0, 6, 28); clks 191 drivers/clk/mxs/clk-imx28.c clks[cpu_xtal] = mxs_clk_div("cpu_xtal", "ref_xtal", CPU, 16, 10, 29); clks 192 drivers/clk/mxs/clk-imx28.c clks[hbus] = mxs_clk_div("hbus", "cpu", HBUS, 0, 5, 31); clks 193 drivers/clk/mxs/clk-imx28.c clks[xbus] = mxs_clk_div("xbus", "ref_xtal", XBUS, 0, 10, 31); clks 194 drivers/clk/mxs/clk-imx28.c clks[ssp0_div] = mxs_clk_div("ssp0_div", "ssp0_sel", SSP0, 0, 9, 29); clks 195 drivers/clk/mxs/clk-imx28.c clks[ssp1_div] = mxs_clk_div("ssp1_div", "ssp1_sel", SSP1, 0, 9, 29); clks 196 drivers/clk/mxs/clk-imx28.c clks[ssp2_div] = mxs_clk_div("ssp2_div", "ssp2_sel", SSP2, 0, 9, 29); clks 197 drivers/clk/mxs/clk-imx28.c clks[ssp3_div] = mxs_clk_div("ssp3_div", "ssp3_sel", SSP3, 0, 9, 29); clks 198 drivers/clk/mxs/clk-imx28.c clks[gpmi_div] = mxs_clk_div("gpmi_div", "gpmi_sel", GPMI, 0, 10, 29); clks 199 drivers/clk/mxs/clk-imx28.c clks[emi_pll] = mxs_clk_div("emi_pll", "ref_emi", EMI, 0, 6, 28); clks 200 drivers/clk/mxs/clk-imx28.c clks[emi_xtal] = mxs_clk_div("emi_xtal", "ref_xtal", EMI, 8, 4, 29); clks 201 drivers/clk/mxs/clk-imx28.c clks[lcdif_div] = mxs_clk_div("lcdif_div", "lcdif_sel", LCDIF, 0, 13, 29); clks 202 drivers/clk/mxs/clk-imx28.c clks[etm_div] = mxs_clk_div("etm_div", "etm_sel", ETM, 0, 7, 29); clks 203 drivers/clk/mxs/clk-imx28.c clks[ptp] = mxs_clk_div("ptp", "ptp_sel", ENET, 21, 6, 27); clks 204 drivers/clk/mxs/clk-imx28.c clks[saif0_div] = mxs_clk_frac("saif0_div", "saif0_sel", SAIF0, 0, 16, 29); clks 205 drivers/clk/mxs/clk-imx28.c clks[saif1_div] = mxs_clk_frac("saif1_div", "saif1_sel", SAIF1, 0, 16, 29); clks 206 drivers/clk/mxs/clk-imx28.c clks[clk32k_div] = mxs_clk_fixed_factor("clk32k_div", "ref_xtal", 1, 750); clks 207 drivers/clk/mxs/clk-imx28.c clks[rtc] = mxs_clk_fixed_factor("rtc", "ref_xtal", 1, 768); clks 208 drivers/clk/mxs/clk-imx28.c clks[lradc] = mxs_clk_fixed_factor("lradc", "clk32k", 1, 16); clks 209 drivers/clk/mxs/clk-imx28.c clks[spdif_div] = mxs_clk_fixed_factor("spdif_div", "pll0", 1, 4); clks 210 drivers/clk/mxs/clk-imx28.c clks[clk32k] = mxs_clk_gate("clk32k", "clk32k_div", XTAL, 26); clks 211 drivers/clk/mxs/clk-imx28.c clks[pwm] = mxs_clk_gate("pwm", "ref_xtal", XTAL, 29); clks 212 drivers/clk/mxs/clk-imx28.c clks[uart] = mxs_clk_gate("uart", "ref_xtal", XTAL, 31); clks 213 drivers/clk/mxs/clk-imx28.c clks[ssp0] = mxs_clk_gate("ssp0", "ssp0_div", SSP0, 31); clks 214 drivers/clk/mxs/clk-imx28.c clks[ssp1] = mxs_clk_gate("ssp1", "ssp1_div", SSP1, 31); clks 215 drivers/clk/mxs/clk-imx28.c clks[ssp2] = mxs_clk_gate("ssp2", "ssp2_div", SSP2, 31); clks 216 drivers/clk/mxs/clk-imx28.c clks[ssp3] = mxs_clk_gate("ssp3", "ssp3_div", SSP3, 31); clks 217 drivers/clk/mxs/clk-imx28.c clks[gpmi] = mxs_clk_gate("gpmi", "gpmi_div", GPMI, 31); clks 218 drivers/clk/mxs/clk-imx28.c clks[spdif] = mxs_clk_gate("spdif", "spdif_div", SPDIF, 31); clks 219 drivers/clk/mxs/clk-imx28.c clks[emi] = mxs_clk_gate("emi", "emi_sel", EMI, 31); clks 220 drivers/clk/mxs/clk-imx28.c clks[saif0] = mxs_clk_gate("saif0", "saif0_div", SAIF0, 31); clks 221 drivers/clk/mxs/clk-imx28.c clks[saif1] = mxs_clk_gate("saif1", "saif1_div", SAIF1, 31); clks 222 drivers/clk/mxs/clk-imx28.c clks[lcdif] = mxs_clk_gate("lcdif", "lcdif_div", LCDIF, 31); clks 223 drivers/clk/mxs/clk-imx28.c clks[etm] = mxs_clk_gate("etm", "etm_div", ETM, 31); clks 224 drivers/clk/mxs/clk-imx28.c clks[fec] = mxs_clk_gate("fec", "hbus", ENET, 30); clks 225 drivers/clk/mxs/clk-imx28.c clks[can0] = mxs_clk_gate("can0", "ref_xtal", FLEXCAN, 30); clks 226 drivers/clk/mxs/clk-imx28.c clks[can1] = mxs_clk_gate("can1", "ref_xtal", FLEXCAN, 28); clks 227 drivers/clk/mxs/clk-imx28.c clks[usb0] = mxs_clk_gate("usb0", "usb0_phy", DIGCTRL, 2); clks 228 drivers/clk/mxs/clk-imx28.c clks[usb1] = mxs_clk_gate("usb1", "usb1_phy", DIGCTRL, 16); clks 229 drivers/clk/mxs/clk-imx28.c clks[usb0_phy] = clk_register_gate(NULL, "usb0_phy", "pll0", 0, PLL0CTRL0, 18, 0, &mxs_lock); clks 230 drivers/clk/mxs/clk-imx28.c clks[usb1_phy] = clk_register_gate(NULL, "usb1_phy", "pll1", 0, PLL1CTRL0, 18, 0, &mxs_lock); clks 231 drivers/clk/mxs/clk-imx28.c clks[enet_out] = clk_register_gate(NULL, "enet_out", "pll2", 0, ENET, 18, 0, &mxs_lock); clks 233 drivers/clk/mxs/clk-imx28.c for (i = 0; i < ARRAY_SIZE(clks); i++) clks 234 drivers/clk/mxs/clk-imx28.c if (IS_ERR(clks[i])) { clks 236 drivers/clk/mxs/clk-imx28.c i, PTR_ERR(clks[i])); clks 240 drivers/clk/mxs/clk-imx28.c clk_data.clks = clks; clks 241 drivers/clk/mxs/clk-imx28.c clk_data.clk_num = ARRAY_SIZE(clks); clks 244 drivers/clk/mxs/clk-imx28.c clk_register_clkdev(clks[enet_out], NULL, "enet_out"); clks 247 drivers/clk/mxs/clk-imx28.c clk_prepare_enable(clks[clks_init_on[i]]); clks 640 drivers/clk/nxp/clk-lpc18xx-cgu.c .clks = clk_base, clks 163 drivers/clk/nxp/clk-lpc18xx-creg.c .clks = clk_creg_early, clks 192 drivers/clk/nxp/clk-lpc18xx-creg.c .clks = clk_creg, clks 167 drivers/clk/nxp/clk-lpc32xx.c .clks = clk, clks 173 drivers/clk/nxp/clk-lpc32xx.c .clks = usb_clk, clks 195 drivers/clk/pistachio/clk-pistachio.c p->clk_data.clks[CLK_DEBUG_MUX] = debug_clk; clks 508 drivers/clk/pistachio/clk-pll.c p->clk_data.clks[pll[i].id] = clk; clks 24 drivers/clk/pistachio/clk.c p->clk_data.clks = kcalloc(num_clks, sizeof(struct clk *), GFP_KERNEL); clks 25 drivers/clk/pistachio/clk.c if (!p->clk_data.clks) clks 38 drivers/clk/pistachio/clk.c kfree(p->clk_data.clks); clks 49 drivers/clk/pistachio/clk.c if (IS_ERR(p->clk_data.clks[i])) clks 51 drivers/clk/pistachio/clk.c PTR_ERR(p->clk_data.clks[i])); clks 69 drivers/clk/pistachio/clk.c p->clk_data.clks[gate[i].id] = clk; clks 87 drivers/clk/pistachio/clk.c p->clk_data.clks[mux[i].id] = clk; clks 103 drivers/clk/pistachio/clk.c p->clk_data.clks[div[i].id] = clk; clks 117 drivers/clk/pistachio/clk.c p->clk_data.clks[ff[i].id] = clk; clks 128 drivers/clk/pistachio/clk.c struct clk *clk = p->clk_data.clks[clk_ids[i]]; clks 42 drivers/clk/pxa/clk-pxa.c .clks = pxa_clocks, clks 97 drivers/clk/pxa/clk-pxa.c int __init clk_pxa_cken_init(const struct desc_clk_cken *clks, int nb_clks) clks 105 drivers/clk/pxa/clk-pxa.c pxa_clk->is_in_low_power = clks[i].is_in_low_power; clks 106 drivers/clk/pxa/clk-pxa.c pxa_clk->lp = clks[i].lp; clks 107 drivers/clk/pxa/clk-pxa.c pxa_clk->hp = clks[i].hp; clks 108 drivers/clk/pxa/clk-pxa.c pxa_clk->gate = clks[i].gate; clks 110 drivers/clk/pxa/clk-pxa.c clk = clk_register_composite(NULL, clks[i].name, clks 111 drivers/clk/pxa/clk-pxa.c clks[i].parent_names, 2, clks 115 drivers/clk/pxa/clk-pxa.c clks[i].flags); clks 116 drivers/clk/pxa/clk-pxa.c clkdev_pxa_register(clks[i].ckid, clks[i].con_id, clks 117 drivers/clk/pxa/clk-pxa.c clks[i].dev_id, clk); clks 149 drivers/clk/pxa/clk-pxa.h extern int clk_pxa_cken_init(const struct desc_clk_cken *clks, int nb_clks); clks 96 drivers/clk/pxa/clk-pxa25x.c unsigned long clks[5]; clks 102 drivers/clk/pxa/clk-pxa25x.c clks[i] = 0; clks 104 drivers/clk/pxa/clk-pxa25x.c clks[i] = clk_get_rate(clk); clks 111 drivers/clk/pxa/clk-pxa25x.c clks[1] / 1000000, (clks[1] % 1000000) / 10000); clks 113 drivers/clk/pxa/clk-pxa25x.c clks[2] / 1000000, (clks[2] % 1000000) / 10000); clks 115 drivers/clk/pxa/clk-pxa25x.c clks[3] / 1000000, (clks[3] % 1000000) / 10000); clks 118 drivers/clk/pxa/clk-pxa25x.c return (unsigned int)clks[0] / KHz; clks 100 drivers/clk/pxa/clk-pxa27x.c unsigned long clks[5]; clks 106 drivers/clk/pxa/clk-pxa27x.c clks[i] = 0; clks 108 drivers/clk/pxa/clk-pxa27x.c clks[i] = clk_get_rate(clk); clks 114 drivers/clk/pxa/clk-pxa27x.c clks[1] / 1000000, (clks[1] % 1000000) / 10000); clks 116 drivers/clk/pxa/clk-pxa27x.c clks[2] / 1000000, (clks[2] % 1000000) / 10000); clks 118 drivers/clk/pxa/clk-pxa27x.c clks[3] / 1000000, (clks[3] % 1000000) / 10000); clks 120 drivers/clk/pxa/clk-pxa27x.c clks[4] / 1000000, (clks[4] % 1000000) / 10000); clks 122 drivers/clk/pxa/clk-pxa27x.c return (unsigned int)clks[0] / KHz; clks 56 drivers/clk/pxa/clk-pxa3xx.c unsigned long clks[5]; clks 62 drivers/clk/pxa/clk-pxa3xx.c clks[i] = 0; clks 64 drivers/clk/pxa/clk-pxa3xx.c clks[i] = clk_get_rate(clk); clks 70 drivers/clk/pxa/clk-pxa3xx.c clks[1] / 1000000, (clks[0] % 1000000) / 10000); clks 72 drivers/clk/pxa/clk-pxa3xx.c clks[2] / 1000000, (clks[1] % 1000000) / 10000); clks 74 drivers/clk/pxa/clk-pxa3xx.c clks[3] / 1000000, (clks[2] % 1000000) / 10000); clks 76 drivers/clk/pxa/clk-pxa3xx.c clks[4] / 1000000, (clks[4] % 1000000) / 10000); clks 78 drivers/clk/pxa/clk-pxa3xx.c return (unsigned int)clks[0] / KHz; clks 1685 drivers/clk/qcom/camcc-sdm845.c .clks = cam_cc_sdm845_clocks, clks 151 drivers/clk/qcom/clk-rpm.c struct clk_rpm **clks; clks 158 drivers/clk/qcom/clk-rpm.c struct clk_rpm **clks; clks 495 drivers/clk/qcom/clk-rpm.c .clks = msm8660_clks, clks 542 drivers/clk/qcom/clk-rpm.c .clks = apq8064_clks, clks 565 drivers/clk/qcom/clk-rpm.c return rcc->clks[idx] ? &rcc->clks[idx]->hw : ERR_PTR(-ENOENT); clks 587 drivers/clk/qcom/clk-rpm.c rpm_clks = desc->clks; clks 594 drivers/clk/qcom/clk-rpm.c rcc->clks = rpm_clks; clks 67 drivers/clk/qcom/clk-rpmh.c struct clk_hw **clks; clks 363 drivers/clk/qcom/clk-rpmh.c .clks = sdm845_rpmh_clocks, clks 390 drivers/clk/qcom/clk-rpmh.c .clks = sm8150_rpmh_clocks, clks 405 drivers/clk/qcom/clk-rpmh.c return rpmh->clks[idx]; clks 419 drivers/clk/qcom/clk-rpmh.c hw_clks = desc->clks; clks 143 drivers/clk/qcom/clk-smd-rpm.c struct clk_smd_rpm **clks; clks 148 drivers/clk/qcom/clk-smd-rpm.c struct clk_smd_rpm **clks; clks 451 drivers/clk/qcom/clk-smd-rpm.c .clks = msm8916_clks, clks 522 drivers/clk/qcom/clk-smd-rpm.c .clks = msm8974_clks, clks 602 drivers/clk/qcom/clk-smd-rpm.c .clks = msm8996_clks, clks 646 drivers/clk/qcom/clk-smd-rpm.c .clks = qcs404_clks, clks 714 drivers/clk/qcom/clk-smd-rpm.c .clks = msm8998_clks, clks 739 drivers/clk/qcom/clk-smd-rpm.c return rcc->clks[idx] ? &rcc->clks[idx]->hw : ERR_PTR(-ENOENT); clks 761 drivers/clk/qcom/clk-smd-rpm.c rpm_smd_clks = desc->clks; clks 768 drivers/clk/qcom/clk-smd-rpm.c rcc->clks = rpm_smd_clks; clks 180 drivers/clk/qcom/clk-spmi-pmic-div.c struct clkdiv clks[]; clks 195 drivers/clk/qcom/clk-spmi-pmic-div.c return &cc->clks[idx].hw; clks 234 drivers/clk/qcom/clk-spmi-pmic-div.c cc = devm_kzalloc(dev, struct_size(cc, clks, nclks), GFP_KERNEL); clks 260 drivers/clk/qcom/clk-spmi-pmic-div.c for (i = 0, clkdiv = cc->clks; i < nclks; i++) { clks 236 drivers/clk/qcom/common.c struct clk_regmap **rclks = desc->clks; clks 24 drivers/clk/qcom/common.h struct clk_regmap **clks; clks 630 drivers/clk/qcom/dispcc-sdm845.c .clks = disp_cc_sdm845_clocks, clks 3584 drivers/clk/qcom/gcc-apq8084.c .clks = gcc_apq8084_clocks, clks 1723 drivers/clk/qcom/gcc-ipq4019.c .clks = gcc_ipq4019_clocks, clks 3046 drivers/clk/qcom/gcc-ipq806x.c .clks = gcc_ipq806x_clks, clks 4706 drivers/clk/qcom/gcc-ipq8074.c .clks = gcc_ipq8074_clks, clks 1693 drivers/clk/qcom/gcc-mdm9615.c .clks = gcc_mdm9615_clks, clks 2692 drivers/clk/qcom/gcc-msm8660.c .clks = gcc_msm8660_clks, clks 3365 drivers/clk/qcom/gcc-msm8916.c .clks = gcc_msm8916_clocks, clks 3595 drivers/clk/qcom/gcc-msm8960.c .clks = gcc_msm8960_clks, clks 3603 drivers/clk/qcom/gcc-msm8960.c .clks = gcc_apq8064_clks, clks 2676 drivers/clk/qcom/gcc-msm8974.c .clks = gcc_msm8974_clocks, clks 2268 drivers/clk/qcom/gcc-msm8994.c .clks = gcc_msm8994_clocks, clks 3609 drivers/clk/qcom/gcc-msm8996.c .clks = gcc_msm8996_clocks, clks 2968 drivers/clk/qcom/gcc-msm8998.c .clks = gcc_msm8998_clocks, clks 2819 drivers/clk/qcom/gcc-qcs404.c .clks = gcc_qcs404_clocks, clks 2417 drivers/clk/qcom/gcc-sdm660.c .clks = gcc_sdm660_clocks, clks 3572 drivers/clk/qcom/gcc-sdm845.c .clks = gcc_sdm845_clocks, clks 3539 drivers/clk/qcom/gcc-sm8150.c .clks = gcc_sm8150_clocks, clks 192 drivers/clk/qcom/gpucc-sdm845.c .clks = gpu_cc_sdm845_clocks, clks 273 drivers/clk/qcom/krait-cc.c struct clk **clks = data; clks 280 drivers/clk/qcom/krait-cc.c return clks[idx] ? : ERR_PTR(-ENODEV); clks 297 drivers/clk/qcom/krait-cc.c struct clk **clks; clks 317 drivers/clk/qcom/krait-cc.c clks = devm_kcalloc(dev, 5, sizeof(*clks), GFP_KERNEL); clks 318 drivers/clk/qcom/krait-cc.c if (!clks) clks 325 drivers/clk/qcom/krait-cc.c clks[cpu] = clk; clks 331 drivers/clk/qcom/krait-cc.c clks[4] = l2_pri_mux_clk; clks 342 drivers/clk/qcom/krait-cc.c WARN(clk_prepare_enable(clks[cpu]), clks 368 drivers/clk/qcom/krait-cc.c clk = clks[cpu]; clks 381 drivers/clk/qcom/krait-cc.c of_clk_add_provider(dev->of_node, krait_of_get, clks); clks 418 drivers/clk/qcom/lcc-ipq806x.c .clks = lcc_ipq806x_clks, clks 525 drivers/clk/qcom/lcc-mdm9615.c .clks = lcc_mdm9615_clks, clks 523 drivers/clk/qcom/lcc-msm8960.c .clks = lcc_msm8960_clks, clks 99 drivers/clk/qcom/lpasscc-sdm845.c .clks = lpass_cc_sdm845_clocks, clks 111 drivers/clk/qcom/lpasscc-sdm845.c .clks = lpass_qdsp6ss_sdm845_clocks, clks 3365 drivers/clk/qcom/mmcc-apq8084.c .clks = mmcc_apq8084_clocks, clks 3001 drivers/clk/qcom/mmcc-msm8960.c .clks = mmcc_msm8960_clks, clks 3009 drivers/clk/qcom/mmcc-msm8960.c .clks = mmcc_apq8064_clks, clks 2592 drivers/clk/qcom/mmcc-msm8974.c .clks = mmcc_msm8974_clocks, clks 3336 drivers/clk/qcom/mmcc-msm8996.c .clks = mmcc_msm8996_clocks, clks 105 drivers/clk/qcom/turingcc-qcs404.c .clks = turingcc_clocks, clks 311 drivers/clk/qcom/videocc-sdm845.c .clks = video_cc_sdm845_clocks, clks 46 drivers/clk/renesas/clk-mstp.c struct clk *clks[]; clks 188 drivers/clk/renesas/clk-mstp.c struct clk **clks; clks 191 drivers/clk/renesas/clk-mstp.c group = kzalloc(struct_size(group, clks, MSTP_MAX_CLOCKS), GFP_KERNEL); clks 197 drivers/clk/renesas/clk-mstp.c clks = group->clks; clks 199 drivers/clk/renesas/clk-mstp.c group->data.clks = clks; clks 214 drivers/clk/renesas/clk-mstp.c clks[i] = ERR_PTR(-ENOENT); clks 244 drivers/clk/renesas/clk-mstp.c clks[clkidx] = cpg_mstp_clock_register(name, parent_name, clks 246 drivers/clk/renesas/clk-mstp.c if (!IS_ERR(clks[clkidx])) { clks 257 drivers/clk/renesas/clk-mstp.c clk_register_clkdev(clks[clkidx], name, NULL); clks 260 drivers/clk/renesas/clk-mstp.c __func__, np, name, PTR_ERR(clks[clkidx])); clks 192 drivers/clk/renesas/clk-r8a73a4.c struct clk **clks; clks 203 drivers/clk/renesas/clk-r8a73a4.c clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); clks 204 drivers/clk/renesas/clk-r8a73a4.c if (cpg == NULL || clks == NULL) { clks 213 drivers/clk/renesas/clk-r8a73a4.c cpg->data.clks = clks; clks 232 drivers/clk/renesas/clk-r8a73a4.c cpg->data.clks[i] = clk; clks 148 drivers/clk/renesas/clk-r8a7740.c struct clk **clks; clks 162 drivers/clk/renesas/clk-r8a7740.c clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); clks 163 drivers/clk/renesas/clk-r8a7740.c if (cpg == NULL || clks == NULL) { clks 172 drivers/clk/renesas/clk-r8a7740.c cpg->data.clks = clks; clks 191 drivers/clk/renesas/clk-r8a7740.c cpg->data.clks[i] = clk; clks 81 drivers/clk/renesas/clk-r8a7778.c struct clk **clks; clks 104 drivers/clk/renesas/clk-r8a7778.c clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); clks 105 drivers/clk/renesas/clk-r8a7778.c if (cpg == NULL || clks == NULL) { clks 114 drivers/clk/renesas/clk-r8a7778.c cpg->data.clks = clks; clks 133 drivers/clk/renesas/clk-r8a7778.c cpg->data.clks[i] = clk; clks 123 drivers/clk/renesas/clk-r8a7779.c struct clk **clks; clks 138 drivers/clk/renesas/clk-r8a7779.c clks = kcalloc(CPG_NUM_CLOCKS, sizeof(*clks), GFP_KERNEL); clks 139 drivers/clk/renesas/clk-r8a7779.c if (cpg == NULL || clks == NULL) { clks 148 drivers/clk/renesas/clk-r8a7779.c cpg->data.clks = clks; clks 167 drivers/clk/renesas/clk-r8a7779.c cpg->data.clks[i] = clk; clks 401 drivers/clk/renesas/clk-rcar-gen2.c struct clk **clks; clks 418 drivers/clk/renesas/clk-rcar-gen2.c clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); clks 419 drivers/clk/renesas/clk-rcar-gen2.c if (cpg == NULL || clks == NULL) { clks 428 drivers/clk/renesas/clk-rcar-gen2.c cpg->data.clks = clks; clks 449 drivers/clk/renesas/clk-rcar-gen2.c cpg->data.clks[i] = clk; clks 89 drivers/clk/renesas/clk-rz.c struct clk **clks; clks 98 drivers/clk/renesas/clk-rz.c clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); clks 99 drivers/clk/renesas/clk-rz.c BUG_ON(!cpg || !clks); clks 101 drivers/clk/renesas/clk-rz.c cpg->data.clks = clks; clks 117 drivers/clk/renesas/clk-rz.c cpg->data.clks[i] = clk; clks 165 drivers/clk/renesas/clk-sh73a0.c struct clk **clks; clks 176 drivers/clk/renesas/clk-sh73a0.c clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); clks 177 drivers/clk/renesas/clk-sh73a0.c if (cpg == NULL || clks == NULL) { clks 186 drivers/clk/renesas/clk-sh73a0.c cpg->data.clks = clks; clks 210 drivers/clk/renesas/clk-sh73a0.c cpg->data.clks[i] = clk; clks 161 drivers/clk/renesas/r7s9210-cpg-mssr.c struct clk **clks, void __iomem *base, clks 168 drivers/clk/renesas/r7s9210-cpg-mssr.c parent = clks[core->parent]; clks 224 drivers/clk/renesas/r8a77970-cpg-mssr.c struct clk **clks, void __iomem *base, clks 241 drivers/clk/renesas/r8a77970-cpg-mssr.c return rcar_gen3_cpg_clk_register(dev, core, info, clks, base, clks 245 drivers/clk/renesas/r8a77970-cpg-mssr.c parent = clks[core->parent]; clks 900 drivers/clk/renesas/r9a06g032-clocks.c struct clk **clks; clks 907 drivers/clk/renesas/r9a06g032-clocks.c clks = devm_kcalloc(dev, R9A06G032_CLOCK_COUNT, sizeof(struct clk *), clks 909 drivers/clk/renesas/r9a06g032-clocks.c if (!clocks || !clks) clks 914 drivers/clk/renesas/r9a06g032-clocks.c clocks->data.clks = clks; clks 927 drivers/clk/renesas/r9a06g032-clocks.c __clk_get_name(clocks->data.clks[d->source - 1]) : clks 954 drivers/clk/renesas/r9a06g032-clocks.c clocks->data.clks[d->index] = clk; clks 275 drivers/clk/renesas/rcar-gen2-cpg.c struct clk **clks, void __iomem *base, clks 285 drivers/clk/renesas/rcar-gen2-cpg.c parent = clks[core->parent]; clks 35 drivers/clk/renesas/rcar-gen2-cpg.h struct clk **clks, void __iomem *base, clks 543 drivers/clk/renesas/rcar-gen3-cpg.c struct clk **clks, void __iomem *base, clks 551 drivers/clk/renesas/rcar-gen3-cpg.c parent = clks[core->parent & 0xffff]; /* some types use high bits */ clks 629 drivers/clk/renesas/rcar-gen3-cpg.c if (clk_get_rate(clks[cpg_clk_extalr])) { clks 630 drivers/clk/renesas/rcar-gen3-cpg.c parent = clks[cpg_clk_extalr]; clks 641 drivers/clk/renesas/rcar-gen3-cpg.c parent = clks[cpg_clk_extalr]; clks 652 drivers/clk/renesas/rcar-gen3-cpg.c parent = clks[core->parent >> 16]; clks 679 drivers/clk/renesas/rcar-gen3-cpg.c parent = clks[core->parent >> 16]; clks 71 drivers/clk/renesas/rcar-gen3-cpg.h struct clk **clks, void __iomem *base, clks 145 drivers/clk/renesas/renesas-cpg-mssr.c struct clk *clks[]; clks 270 drivers/clk/renesas/renesas-cpg-mssr.c clk = priv->clks[clkidx]; clks 287 drivers/clk/renesas/renesas-cpg-mssr.c clk = priv->clks[priv->num_core_clks + idx]; clks 315 drivers/clk/renesas/renesas-cpg-mssr.c WARN_DEBUG(PTR_ERR(priv->clks[id]) != -ENOENT); clks 331 drivers/clk/renesas/renesas-cpg-mssr.c parent = priv->clks[core->parent]; clks 362 drivers/clk/renesas/renesas-cpg-mssr.c priv->clks, priv->base, clks 374 drivers/clk/renesas/renesas-cpg-mssr.c priv->clks[id] = clk; clks 397 drivers/clk/renesas/renesas-cpg-mssr.c WARN_DEBUG(PTR_ERR(priv->clks[id]) != -ENOENT); clks 404 drivers/clk/renesas/renesas-cpg-mssr.c parent = priv->clks[mod->parent]; clks 440 drivers/clk/renesas/renesas-cpg-mssr.c priv->clks[id] = clk; clks 894 drivers/clk/renesas/renesas-cpg-mssr.c priv = kzalloc(struct_size(priv, clks, nclks), GFP_KERNEL); clks 916 drivers/clk/renesas/renesas-cpg-mssr.c priv->clks[i] = ERR_PTR(-ENOENT); clks 1031 drivers/clk/renesas/renesas-cpg-mssr.c const unsigned int *clks, unsigned int n) clks 1036 drivers/clk/renesas/renesas-cpg-mssr.c if (mod_clks[i].id == clks[j]) { clks 1044 drivers/clk/renesas/renesas-cpg-mssr.c const struct mssr_mod_reparent *clks, clks 1050 drivers/clk/renesas/renesas-cpg-mssr.c if (mod_clks[i].id == clks[j].clk) { clks 1051 drivers/clk/renesas/renesas-cpg-mssr.c mod_clks[i].parent = clks[j].parent; clks 153 drivers/clk/renesas/renesas-cpg-mssr.h struct clk **clks, void __iomem *base, clks 193 drivers/clk/renesas/renesas-cpg-mssr.h const unsigned int *clks, unsigned int n); clks 196 drivers/clk/renesas/renesas-cpg-mssr.h const struct mssr_mod_reparent *clks, clks 383 drivers/clk/rockchip/clk.c ctx->clk_data.clks = clk_table; clks 409 drivers/clk/rockchip/clk.c if (ctx->clk_data.clks && id) clks 410 drivers/clk/rockchip/clk.c ctx->clk_data.clks[id] = clk; clks 145 drivers/clk/sirf/clk-atlas6.c clk_data.clks = atlas6_clks; clks 1672 drivers/clk/sirf/clk-atlas7.c clk_data.clks = atlas7_clks; clks 144 drivers/clk/sirf/clk-prima2.c clk_data.clks = prima2_clks; clks 172 drivers/clk/socfpga/clk-s10.c static int s10_clk_register_c_perip(const struct stratix10_perip_c_clock *clks, clks 180 drivers/clk/socfpga/clk-s10.c clk = s10_register_periph(clks[i].name, clks[i].parent_name, clks 181 drivers/clk/socfpga/clk-s10.c clks[i].parent_names, clks[i].num_parents, clks 182 drivers/clk/socfpga/clk-s10.c clks[i].flags, base, clks[i].offset); clks 185 drivers/clk/socfpga/clk-s10.c __func__, clks[i].name); clks 188 drivers/clk/socfpga/clk-s10.c data->clk_data.clks[clks[i].id] = clk; clks 193 drivers/clk/socfpga/clk-s10.c static int s10_clk_register_cnt_perip(const struct stratix10_perip_cnt_clock *clks, clks 201 drivers/clk/socfpga/clk-s10.c clk = s10_register_cnt_periph(clks[i].name, clks[i].parent_name, clks 202 drivers/clk/socfpga/clk-s10.c clks[i].parent_names, clks 203 drivers/clk/socfpga/clk-s10.c clks[i].num_parents, clks 204 drivers/clk/socfpga/clk-s10.c clks[i].flags, base, clks 205 drivers/clk/socfpga/clk-s10.c clks[i].offset, clks 206 drivers/clk/socfpga/clk-s10.c clks[i].fixed_divider, clks 207 drivers/clk/socfpga/clk-s10.c clks[i].bypass_reg, clks 208 drivers/clk/socfpga/clk-s10.c clks[i].bypass_shift); clks 211 drivers/clk/socfpga/clk-s10.c __func__, clks[i].name); clks 214 drivers/clk/socfpga/clk-s10.c data->clk_data.clks[clks[i].id] = clk; clks 220 drivers/clk/socfpga/clk-s10.c static int s10_clk_register_gate(const struct stratix10_gate_clock *clks, clks 228 drivers/clk/socfpga/clk-s10.c clk = s10_register_gate(clks[i].name, clks[i].parent_name, clks 229 drivers/clk/socfpga/clk-s10.c clks[i].parent_names, clks 230 drivers/clk/socfpga/clk-s10.c clks[i].num_parents, clks 231 drivers/clk/socfpga/clk-s10.c clks[i].flags, base, clks 232 drivers/clk/socfpga/clk-s10.c clks[i].gate_reg, clks 233 drivers/clk/socfpga/clk-s10.c clks[i].gate_idx, clks[i].div_reg, clks 234 drivers/clk/socfpga/clk-s10.c clks[i].div_offset, clks[i].div_width, clks 235 drivers/clk/socfpga/clk-s10.c clks[i].bypass_reg, clks 236 drivers/clk/socfpga/clk-s10.c clks[i].bypass_shift, clks 237 drivers/clk/socfpga/clk-s10.c clks[i].fixed_div); clks 240 drivers/clk/socfpga/clk-s10.c __func__, clks[i].name); clks 243 drivers/clk/socfpga/clk-s10.c data->clk_data.clks[clks[i].id] = clk; clks 249 drivers/clk/socfpga/clk-s10.c static int s10_clk_register_pll(const struct stratix10_pll_clock *clks, clks 257 drivers/clk/socfpga/clk-s10.c clk = s10_register_pll(clks[i].name, clks[i].parent_names, clks 258 drivers/clk/socfpga/clk-s10.c clks[i].num_parents, clks 259 drivers/clk/socfpga/clk-s10.c clks[i].flags, base, clks 260 drivers/clk/socfpga/clk-s10.c clks[i].offset); clks 263 drivers/clk/socfpga/clk-s10.c __func__, clks[i].name); clks 266 drivers/clk/socfpga/clk-s10.c data->clk_data.clks[clks[i].id] = clk; clks 298 drivers/clk/socfpga/clk-s10.c clk_data->clk_data.clks = clk_table; clks 358 drivers/clk/st/clk-flexgen.c clk_data->clks = kcalloc(clk_data->clk_num, sizeof(struct clk *), clks 360 drivers/clk/st/clk-flexgen.c if (!clk_data->clks) clks 392 drivers/clk/st/clk-flexgen.c clk_data->clks[i] = clk; clks 403 drivers/clk/st/clk-flexgen.c kfree(clk_data->clks); clks 872 drivers/clk/st/clkgen-fsyn.c clk_data->clks = kcalloc(QUADFS_MAX_CHAN, sizeof(struct clk *), clks 875 drivers/clk/st/clkgen-fsyn.c if (!clk_data->clks) { clks 907 drivers/clk/st/clkgen-fsyn.c clk_data->clks[fschan] = clk; clks 723 drivers/clk/st/clkgen-pll.c clk_data->clks = kcalloc(clk_data->clk_num, sizeof(struct clk *), clks 726 drivers/clk/st/clkgen-pll.c if (!clk_data->clks) clks 745 drivers/clk/st/clkgen-pll.c clk_data->clks[odf] = clk; clks 753 drivers/clk/st/clkgen-pll.c kfree(clk_data->clks); clks 42 drivers/clk/sunxi/clk-a10-pll2.c struct clk **clks, *base_clk, *prediv_clk; clks 57 drivers/clk/sunxi/clk-a10-pll2.c clks = kcalloc(SUN4I_PLL2_OUTPUTS, sizeof(struct clk *), GFP_KERNEL); clks 58 drivers/clk/sunxi/clk-a10-pll2.c if (!clks) clks 122 drivers/clk/sunxi/clk-a10-pll2.c clks[SUN4I_A10_PLL2_1X] = clk_register_fixed_factor(NULL, clk_name, clks 127 drivers/clk/sunxi/clk-a10-pll2.c WARN_ON(IS_ERR(clks[SUN4I_A10_PLL2_1X])); clks 137 drivers/clk/sunxi/clk-a10-pll2.c clks[SUN4I_A10_PLL2_2X] = clk_register_fixed_factor(NULL, clk_name, clks 141 drivers/clk/sunxi/clk-a10-pll2.c WARN_ON(IS_ERR(clks[SUN4I_A10_PLL2_2X])); clks 146 drivers/clk/sunxi/clk-a10-pll2.c clks[SUN4I_A10_PLL2_4X] = clk_register_fixed_factor(NULL, clk_name, clks 150 drivers/clk/sunxi/clk-a10-pll2.c WARN_ON(IS_ERR(clks[SUN4I_A10_PLL2_4X])); clks 155 drivers/clk/sunxi/clk-a10-pll2.c clks[SUN4I_A10_PLL2_8X] = clk_register_fixed_factor(NULL, clk_name, clks 159 drivers/clk/sunxi/clk-a10-pll2.c WARN_ON(IS_ERR(clks[SUN4I_A10_PLL2_8X])); clks 161 drivers/clk/sunxi/clk-a10-pll2.c clk_data->clks = clks; clks 174 drivers/clk/sunxi/clk-a10-pll2.c kfree(clks); clks 309 drivers/clk/sunxi/clk-mod0.c clk_data->clks = kcalloc(3, sizeof(*clk_data->clks), GFP_KERNEL); clks 310 drivers/clk/sunxi/clk-mod0.c if (!clk_data->clks) clks 314 drivers/clk/sunxi/clk-mod0.c clk_data->clks[0] = sunxi_factors_register(node, data, lock, reg); clks 315 drivers/clk/sunxi/clk-mod0.c if (!clk_data->clks[0]) clks 318 drivers/clk/sunxi/clk-mod0.c parent = __clk_get_name(clk_data->clks[0]); clks 345 drivers/clk/sunxi/clk-mod0.c clk_data->clks[i] = clk_register(NULL, &phase->hw); clks 346 drivers/clk/sunxi/clk-mod0.c if (IS_ERR(clk_data->clks[i])) { clks 357 drivers/clk/sunxi/clk-mod0.c kfree(clk_data->clks); clks 46 drivers/clk/sunxi/clk-simple-gates.c clk_data->clks = kcalloc(number + 1, sizeof(struct clk *), GFP_KERNEL); clks 47 drivers/clk/sunxi/clk-simple-gates.c if (!clk_data->clks) clks 57 drivers/clk/sunxi/clk-simple-gates.c clk_data->clks[index] = clk_register_gate(NULL, clk_name, clks 64 drivers/clk/sunxi/clk-simple-gates.c if (IS_ERR(clk_data->clks[index])) { clks 71 drivers/clk/sunxi/clk-simple-gates.c clk_prepare_enable(clk_data->clks[index]); clks 74 drivers/clk/sunxi/clk-sun6i-apb0-gates.c clk_data->clks = devm_kcalloc(&pdev->dev, (ngates + 1), clks 76 drivers/clk/sunxi/clk-sun6i-apb0-gates.c if (!clk_data->clks) clks 83 drivers/clk/sunxi/clk-sun6i-apb0-gates.c clk_data->clks[i] = clk_register_gate(&pdev->dev, clk_name, clks 86 drivers/clk/sunxi/clk-sun6i-apb0-gates.c WARN_ON(IS_ERR(clk_data->clks[i])); clks 56 drivers/clk/sunxi/clk-sun8i-bus-gates.c clk_data->clks = kcalloc(number + 1, sizeof(struct clk *), GFP_KERNEL); clks 57 drivers/clk/sunxi/clk-sun8i-bus-gates.c if (!clk_data->clks) clks 81 drivers/clk/sunxi/clk-sun8i-bus-gates.c clk_data->clks[index] = clk_register_gate(NULL, clk_name, clks 87 drivers/clk/sunxi/clk-sun8i-bus-gates.c if (IS_ERR(clk_data->clks[index])) { clks 120 drivers/clk/sunxi/clk-sun9i-mmc.c clk_data->clks = devm_kcalloc(&pdev->dev, count, sizeof(struct clk *), clks 122 drivers/clk/sunxi/clk-sun9i-mmc.c if (!clk_data->clks) clks 148 drivers/clk/sunxi/clk-sun9i-mmc.c clk_data->clks[i] = clk_register_gate(&pdev->dev, clk_name, clks 154 drivers/clk/sunxi/clk-sun9i-mmc.c if (IS_ERR(clk_data->clks[i])) { clks 155 drivers/clk/sunxi/clk-sun9i-mmc.c ret = PTR_ERR(clk_data->clks[i]); clks 182 drivers/clk/sunxi/clk-sun9i-mmc.c clk_unregister(clk_data->clks[i]); clks 949 drivers/clk/sunxi/clk-sunxi.c struct clk **clks, *pclk; clks 1009 drivers/clk/sunxi/clk-sunxi.c clks = kcalloc(ndivs, sizeof(*clks), GFP_KERNEL); clks 1010 drivers/clk/sunxi/clk-sunxi.c if (!clks) clks 1013 drivers/clk/sunxi/clk-sunxi.c clk_data->clks = clks; clks 1026 drivers/clk/sunxi/clk-sunxi.c clk_data->clks[i] = pclk; clks 1078 drivers/clk/sunxi/clk-sunxi.c clks[i] = clk_register_composite(NULL, clk_name, &parent, 1, clks 1086 drivers/clk/sunxi/clk-sunxi.c WARN_ON(IS_ERR(clk_data->clks[i])); clks 1098 drivers/clk/sunxi/clk-sunxi.c return clks; clks 1102 drivers/clk/sunxi/clk-sunxi.c kfree(clks); clks 117 drivers/clk/sunxi/clk-usb.c clk_data->clks = kcalloc(qty + 1, sizeof(struct clk *), GFP_KERNEL); clks 118 drivers/clk/sunxi/clk-usb.c if (!clk_data->clks) { clks 127 drivers/clk/sunxi/clk-usb.c clk_data->clks[i] = clk_register_gate(NULL, clk_name, clks 130 drivers/clk/sunxi/clk-usb.c WARN_ON(IS_ERR(clk_data->clks[i])); clks 21 drivers/clk/tegra/clk-tegra-fixed.c int __init tegra_osc_clk_init(void __iomem *clk_base, struct tegra_clk *clks, clks 46 drivers/clk/tegra/clk-tegra-fixed.c dt_clk = tegra_lookup_dt_id(tegra_clk_clk_m, clks); clks 57 drivers/clk/tegra/clk-tegra-fixed.c dt_clk = tegra_lookup_dt_id(tegra_clk_pll_ref, clks); clks 891 drivers/clk/tegra/clk-tegra114.c static struct clk **clks; clks 902 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_CLK_32K] = clk; clks 907 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_CLK_M_DIV2] = clk; clks 912 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_CLK_M_DIV4] = clk; clks 924 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_C] = clk; clks 933 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_C_OUT1] = clk; clks 938 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_C2] = clk; clks 943 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_C3] = clk; clks 948 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_M] = clk; clks 957 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_M_OUT1] = clk; clks 966 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_U] = clk; clks 972 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_U_480M] = clk; clks 977 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_U_60M] = clk; clks 982 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_U_48M] = clk; clks 987 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_U_12M] = clk; clks 992 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_D] = clk; clks 997 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_D_OUT0] = clk; clks 1002 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_D2] = clk; clks 1007 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_D2_OUT0] = clk; clks 1012 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_RE_VCO] = clk; clks 1017 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_RE_OUT] = clk; clks 1022 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_PLL_E_OUT0] = clk; clks 1041 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_XUSB_SS_DIV2] = clk; clks 1048 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_DSIA_MUX] = clk; clks 1055 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_DSIB_MUX] = clk; clks 1059 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_DSIA] = clk; clks 1063 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_DSIB] = clk; clks 1074 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_MC] = clk; clks 1079 drivers/clk/tegra/clk-tegra114.c clks[TEGRA114_CLK_MIPI_CAL] = clk; clks 1084 drivers/clk/tegra/clk-tegra114.c clks[data->clk_id] = clk; clks 1195 drivers/clk/tegra/clk-tegra114.c tegra_init_from_table(init_table, clks, TEGRA114_CLK_CLK_MAX); clks 1346 drivers/clk/tegra/clk-tegra114.c clks = tegra_clk_init(clk_base, TEGRA114_CLK_CLK_MAX, clks 1348 drivers/clk/tegra/clk-tegra114.c if (!clks) clks 990 drivers/clk/tegra/clk-tegra124.c static struct clk **clks; clks 1000 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_XUSB_SS_DIV2] = clk; clks 1004 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_DPAUX] = clk; clks 1008 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_D_DSI_OUT] = clk; clks 1013 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_DSIA] = clk; clks 1018 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_DSIB] = clk; clks 1022 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_MC] = clk; clks 1028 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_CML0] = clk; clks 1034 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_CML1] = clk; clks 1048 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_C] = clk; clks 1058 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_C_OUT1] = clk; clks 1064 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_C_UD] = clk; clks 1070 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_C2] = clk; clks 1076 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_C3] = clk; clks 1082 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_M] = clk; clks 1092 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_M_OUT1] = clk; clks 1098 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_M_UD] = clk; clks 1104 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_U] = clk; clks 1111 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_U_480M] = clk; clks 1117 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_U_60M] = clk; clks 1123 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_U_48M] = clk; clks 1129 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_U_12M] = clk; clks 1135 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_D] = clk; clks 1141 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_D_OUT0] = clk; clks 1147 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_RE_VCO] = clk; clks 1153 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_RE_OUT] = clk; clks 1159 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_E] = clk; clks 1165 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_C4] = clk; clks 1171 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_DP] = clk; clks 1177 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_D2] = clk; clks 1183 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_PLL_D2_OUT0] = clk; clks 1323 drivers/clk/tegra/clk-tegra124.c tegra_init_from_table(common_init_table, clks, TEGRA124_CLK_CLK_MAX); clks 1324 drivers/clk/tegra/clk-tegra124.c tegra_init_from_table(tegra124_init_table, clks, TEGRA124_CLK_CLK_MAX); clks 1399 drivers/clk/tegra/clk-tegra124.c tegra_init_from_table(common_init_table, clks, TEGRA124_CLK_CLK_MAX); clks 1400 drivers/clk/tegra/clk-tegra124.c tegra_init_from_table(tegra132_init_table, clks, TEGRA124_CLK_CLK_MAX); clks 1438 drivers/clk/tegra/clk-tegra124.c clks = tegra_clk_init(clk_base, TEGRA124_CLK_CLK_MAX, clks 1440 drivers/clk/tegra/clk-tegra124.c if (!clks) clks 1480 drivers/clk/tegra/clk-tegra124.c clks[TEGRA124_CLK_EMC] = tegra_clk_register_emc(clk_base, np, clks 157 drivers/clk/tegra/clk-tegra20.c static struct clk **clks; clks 632 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_PLL_C] = clk; clks 641 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_PLL_C_OUT1] = clk; clks 646 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_PLL_M] = clk; clks 655 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_PLL_M_OUT1] = clk; clks 660 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_PLL_X] = clk; clks 665 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_PLL_U] = clk; clks 670 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_PLL_D] = clk; clks 675 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_PLL_D_OUT0] = clk; clks 680 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_PLL_A] = clk; clks 689 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_PLL_A_OUT0] = clk; clks 694 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_PLL_E] = clk; clks 712 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_CCLK] = clk; clks 719 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_SCLK] = clk; clks 723 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_TWD] = clk; clks 742 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_AUDIO] = clk; clks 751 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_AUDIO_2X] = clk; clks 804 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_MC] = clk; clks 822 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_EMC] = clk; clks 835 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_AC97] = clk; clks 844 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_DSI] = clk; clks 849 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_PEX] = clk; clks 866 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_CDEV1] = clk; clks 871 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_CDEV2] = clk; clks 876 drivers/clk/tegra/clk-tegra20.c clks[data->clk_id] = clk; clks 885 drivers/clk/tegra/clk-tegra20.c clks[data->clk_id] = clk; clks 902 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_CLK_M] = clk; clks 908 drivers/clk/tegra/clk-tegra20.c clks[TEGRA20_CLK_PLL_REF] = clk; clks 1085 drivers/clk/tegra/clk-tegra20.c tegra_init_from_table(init_table, clks, TEGRA20_CLK_CLK_MAX); clks 1159 drivers/clk/tegra/clk-tegra20.c clks = tegra_clk_init(clk_base, TEGRA20_CLK_CLK_MAX, clks 1161 drivers/clk/tegra/clk-tegra20.c if (!clks) clks 1173 drivers/clk/tegra/clk-tegra20.c tegra_init_dup_clks(tegra_clk_duplicates, clks, TEGRA20_CLK_CLK_MAX); clks 283 drivers/clk/tegra/clk-tegra210.c struct clk_bulk_data *clks; clks 286 drivers/clk/tegra/clk-tegra210.c static struct clk **clks; clks 2688 drivers/clk/tegra/clk-tegra210.c if (mbist_war->num_clks && !mbist_war->clks) clks 2691 drivers/clk/tegra/clk-tegra210.c err = clk_bulk_prepare_enable(mbist_war->num_clks, mbist_war->clks); clks 2701 drivers/clk/tegra/clk-tegra210.c clk_bulk_disable_unprepare(mbist_war->num_clks, mbist_war->clks); clks 2958 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_XUSB_SS_DIV2] = clk; clks 2962 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_SOR_SAFE] = clk; clks 2966 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_DPAUX] = clk; clks 2970 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_DPAUX1] = clk; clks 2976 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_SOR1_OUT] = clk; clks 2981 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_D_DSI_OUT] = clk; clks 2987 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_DSIA] = clk; clks 2993 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_DSIB] = clk; clks 2999 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_LA] = clk; clks 3009 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_MC] = clk; clks 3015 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_CML0] = clk; clks 3021 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_CML1] = clk; clks 3026 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_ACLK] = clk; clks 3031 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_SDMMC2] = clk; clks 3036 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_SDMMC4] = clk; clks 3065 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_C] = clk; clks 3075 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_C_OUT1] = clk; clks 3081 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_C_UD] = clk; clks 3087 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_C2] = clk; clks 3093 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_C3] = clk; clks 3099 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_M] = clk; clks 3105 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_MB] = clk; clks 3111 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_M_UD] = clk; clks 3118 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_U] = clk; clks 3126 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_U_OUT] = clk; clks 3137 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_U_OUT1] = clk; clks 3148 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_U_OUT2] = clk; clks 3155 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_U_480M] = clk; clks 3162 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_U_60M] = clk; clks 3169 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_U_48M] = clk; clks 3175 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_D] = clk; clks 3181 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_D_OUT0] = clk; clks 3189 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_RE_VCO] = clk; clks 3195 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_RE_OUT] = clk; clks 3204 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_RE_OUT1] = clk; clks 3210 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_E] = clk; clks 3216 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_C4] = clk; clks 3223 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_C4_OUT0] = clk; clks 3229 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_C4_OUT1] = clk; clks 3235 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_C4_OUT2] = clk; clks 3245 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_C4_OUT3] = clk; clks 3251 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_DP] = clk; clks 3257 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_D2] = clk; clks 3263 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_D2_OUT0] = clk; clks 3269 drivers/clk/tegra/clk-tegra210.c clks[TEGRA210_CLK_PLL_P_OUT2] = clk; clks 3389 drivers/clk/tegra/clk-tegra210.c tegra_init_from_table(init_table, clks, TEGRA210_CLK_CLK_MAX); clks 3483 drivers/clk/tegra/clk-tegra210.c tegra210_pg_mbist_war[i].clks = clk_data; clks 3486 drivers/clk/tegra/clk-tegra210.c struct clk *clk = clks[clk_id]; clks 3490 drivers/clk/tegra/clk-tegra210.c tegra210_pg_mbist_war[i].clks = NULL; clks 3550 drivers/clk/tegra/clk-tegra210.c clks = tegra_clk_init(clk_base, TEGRA210_CLK_CLK_MAX, clks 3552 drivers/clk/tegra/clk-tegra210.c if (!clks) clks 183 drivers/clk/tegra/clk-tegra30.c static struct clk **clks; clks 823 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_PLL_C] = clk; clks 832 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_PLL_C_OUT1] = clk; clks 837 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_PLL_M] = clk; clks 846 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_PLL_M_OUT1] = clk; clks 851 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_PLL_X] = clk; clks 856 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_PLL_X_OUT0] = clk; clks 861 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_PLL_U] = clk; clks 866 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_PLL_D] = clk; clks 871 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_PLL_D_OUT0] = clk; clks 876 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_PLL_D2] = clk; clks 881 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_PLL_D2_OUT0] = clk; clks 890 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_PLL_E] = clk; clks 941 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_CCLK_G] = clk; clks 977 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_CCLK_LP] = clk; clks 985 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_SCLK] = clk; clks 990 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_TWD] = clk; clks 1034 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_DSIA] = clk; clks 1039 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_PCIE] = clk; clks 1044 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_AFI] = clk; clks 1055 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_MC] = clk; clks 1060 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_CML0] = clk; clks 1065 drivers/clk/tegra/clk-tegra30.c clks[TEGRA30_CLK_CML1] = clk; clks 1070 drivers/clk/tegra/clk-tegra30.c clks[data->clk_id] = clk; clks 1079 drivers/clk/tegra/clk-tegra30.c clks[data->clk_id] = clk; clks 1272 drivers/clk/tegra/clk-tegra30.c tegra_init_from_table(init_table, clks, TEGRA30_CLK_CLK_MAX); clks 1327 drivers/clk/tegra/clk-tegra30.c clks = tegra_clk_init(clk_base, TEGRA30_CLK_CLK_MAX, clks 1329 drivers/clk/tegra/clk-tegra30.c if (!clks) clks 1346 drivers/clk/tegra/clk-tegra30.c tegra_init_dup_clks(tegra_clk_duplicates, clks, TEGRA30_CLK_CLK_MAX); clks 69 drivers/clk/tegra/clk.c static struct clk **clks; clks 217 drivers/clk/tegra/clk.c clks = kcalloc(num, sizeof(struct clk *), GFP_KERNEL); clks 218 drivers/clk/tegra/clk.c if (!clks) clks 223 drivers/clk/tegra/clk.c return clks; clks 227 drivers/clk/tegra/clk.c struct clk *clks[], int clk_max) clks 232 drivers/clk/tegra/clk.c clk = clks[dup_list->clk_id]; clks 239 drivers/clk/tegra/clk.c struct clk *clks[], int clk_max) clks 244 drivers/clk/tegra/clk.c clk = clks[tbl->clk_id]; clks 254 drivers/clk/tegra/clk.c struct clk *parent = clks[tbl->parent_id]; clks 298 drivers/clk/tegra/clk.c if (IS_ERR(clks[i])) { clks 301 drivers/clk/tegra/clk.c i, PTR_ERR(clks[i])); clks 303 drivers/clk/tegra/clk.c if (!clks[i]) clks 304 drivers/clk/tegra/clk.c clks[i] = ERR_PTR(-EINVAL); clks 307 drivers/clk/tegra/clk.c clk_data.clks = clks; clks 330 drivers/clk/tegra/clk.c clk_register_clkdev(clks[dev_clks->dt_id], dev_clks->con_id, clks 334 drivers/clk/tegra/clk.c if (!IS_ERR_OR_NULL(clks[i])) clks 335 drivers/clk/tegra/clk.c clk_register_clkdev(clks[i], __clk_get_name(clks[i]), clks 344 drivers/clk/tegra/clk.c return &clks[tegra_clk[clk_id].dt_id]; clks 772 drivers/clk/tegra/clk.h struct clk *clks[], int clk_max); clks 775 drivers/clk/tegra/clk.h struct clk *clks[], int clk_max); clks 796 drivers/clk/tegra/clk.h int tegra_osc_clk_init(void __iomem *clk_base, struct tegra_clk *clks, clks 242 drivers/clk/ti/adpll.c d->outputs.clks[output_index] = clock; clks 505 drivers/clk/ti/adpll.c d->outputs.clks = devm_kcalloc(d->dev, clks 509 drivers/clk/ti/adpll.c if (!d->outputs.clks) clks 544 drivers/clk/ti/fapll.c fd->outputs.clks = kzalloc(sizeof(struct clk *) * clks 547 drivers/clk/ti/fapll.c if (!fd->outputs.clks) clks 595 drivers/clk/ti/fapll.c fd->outputs.clks[0] = pll_clk; clks 639 drivers/clk/ti/fapll.c fd->outputs.clks[output_instance] = synth_clk; clks 660 drivers/clk/ti/fapll.c kfree(fd->outputs.clks); clks 81 drivers/clk/ux500/abx500-clk.c ab8500_clk_data.clks = ab8500_clks; clks 548 drivers/clk/ux500/u8500_of_clk.c clk_data.clks = prcmu_clk; clks 33 drivers/clk/versatile/clk-impd1.c struct clk_lookup *clks[15]; clks 106 drivers/clk/versatile/clk-impd1.c imc->clks[0] = clkdev_alloc(pclk, "apb_pclk", "lm%x:01000", id); clks 107 drivers/clk/versatile/clk-impd1.c imc->clks[1] = clkdev_alloc(clk, NULL, "lm%x:01000", id); clks 116 drivers/clk/versatile/clk-impd1.c imc->clks[2] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00700", id); clks 117 drivers/clk/versatile/clk-impd1.c imc->clks[3] = clkdev_alloc(clk, NULL, "lm%x:00700", id); clks 124 drivers/clk/versatile/clk-impd1.c imc->clks[4] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00100", id); clks 125 drivers/clk/versatile/clk-impd1.c imc->clks[5] = clkdev_alloc(clk, NULL, "lm%x:00100", id); clks 126 drivers/clk/versatile/clk-impd1.c imc->clks[6] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00200", id); clks 127 drivers/clk/versatile/clk-impd1.c imc->clks[7] = clkdev_alloc(clk, NULL, "lm%x:00200", id); clks 133 drivers/clk/versatile/clk-impd1.c imc->clks[8] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00300", id); clks 134 drivers/clk/versatile/clk-impd1.c imc->clks[9] = clkdev_alloc(clk, NULL, "lm%x:00300", id); clks 137 drivers/clk/versatile/clk-impd1.c imc->clks[10] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00400", id); clks 138 drivers/clk/versatile/clk-impd1.c imc->clks[11] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00500", id); clks 139 drivers/clk/versatile/clk-impd1.c imc->clks[12] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00800", id); clks 146 drivers/clk/versatile/clk-impd1.c imc->clks[13] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00600", id); clks 147 drivers/clk/versatile/clk-impd1.c imc->clks[14] = clkdev_alloc(clk, NULL, "lm%x:00600", id); clks 149 drivers/clk/versatile/clk-impd1.c for (i = 0; i < ARRAY_SIZE(imc->clks); i++) clks 150 drivers/clk/versatile/clk-impd1.c clkdev_add(imc->clks[i]); clks 163 drivers/clk/versatile/clk-impd1.c for (i = 0; i < ARRAY_SIZE(imc->clks); i++) clks 164 drivers/clk/versatile/clk-impd1.c clkdev_drop(imc->clks[i]); clks 49 drivers/clk/x86/clk-pmc-atom.c struct clk_plt *clks[PMC_CLK_NUM]; clks 263 drivers/clk/x86/clk-pmc-atom.c plt_clk_unregister(data->clks[i]); clks 268 drivers/clk/x86/clk-pmc-atom.c const struct pmc_clk *clks) clks 276 drivers/clk/x86/clk-pmc-atom.c while (clks[nparents].name) clks 291 drivers/clk/x86/clk-pmc-atom.c plt_clk_register_fixed_rate(pdev, clks[i].name, clks 292 drivers/clk/x86/clk-pmc-atom.c clks[i].parent_name, clks 293 drivers/clk/x86/clk-pmc-atom.c clks[i].freq); clks 298 drivers/clk/x86/clk-pmc-atom.c parent_names[i] = kstrdup_const(clks[i].name, GFP_KERNEL); clks 324 drivers/clk/x86/clk-pmc-atom.c if (!pmc_data || !pmc_data->clks) clks 331 drivers/clk/x86/clk-pmc-atom.c parent_names = plt_clk_register_parents(pdev, data, pmc_data->clks); clks 336 drivers/clk/x86/clk-pmc-atom.c data->clks[i] = plt_clk_register(pdev, i, pmc_data, clks 338 drivers/clk/x86/clk-pmc-atom.c if (IS_ERR(data->clks[i])) { clks 339 drivers/clk/x86/clk-pmc-atom.c err = PTR_ERR(data->clks[i]); clks 343 drivers/clk/x86/clk-pmc-atom.c data->mclk_lookup = clkdev_hw_create(&data->clks[3]->hw, "mclk", NULL); clks 349 drivers/clk/x86/clk-pmc-atom.c data->ether_clk_lookup = clkdev_hw_create(&data->clks[4]->hw, clks 586 drivers/clk/zte/clk-zx296702.c topclk_data.clks = topclk; clks 670 drivers/clk/zte/clk-zx296702.c lsp0clk_data.clks = lsp0clk; clks 736 drivers/clk/zte/clk-zx296702.c lsp1clk_data.clks = lsp1clk; clks 61 drivers/clk/zynq/clkc.c static struct clk *clks[clk_max]; clks 147 drivers/clk/zynq/clkc.c clks[fclk] = clk_register_gate(NULL, clk_name, clks 152 drivers/clk/zynq/clkc.c if (clk_prepare_enable(clks[fclk])) clks 171 drivers/clk/zynq/clkc.c clks[fclk] = ERR_PTR(-ENOMEM); clks 198 drivers/clk/zynq/clkc.c clks[clk0] = clk_register_gate(NULL, clk_name0, div_name, clks 201 drivers/clk/zynq/clkc.c clks[clk1] = clk_register_gate(NULL, clk_name1, div_name, clks 210 drivers/clk/zynq/clkc.c clks[clk0] = ERR_PTR(-ENOMEM); clks 212 drivers/clk/zynq/clkc.c clks[clk1] = ERR_PTR(-ENOMEM); clks 262 drivers/clk/zynq/clkc.c clks[armpll] = clk_register_mux(NULL, clk_output_name[armpll], clks 268 drivers/clk/zynq/clkc.c clks[ddrpll] = clk_register_mux(NULL, clk_output_name[ddrpll], clks 274 drivers/clk/zynq/clkc.c clks[iopll] = clk_register_mux(NULL, clk_output_name[iopll], clks 287 drivers/clk/zynq/clkc.c clks[cpu_6or4x] = clk_register_gate(NULL, clk_output_name[cpu_6or4x], clks 293 drivers/clk/zynq/clkc.c clks[cpu_3or2x] = clk_register_gate(NULL, clk_output_name[cpu_3or2x], clks 299 drivers/clk/zynq/clkc.c clks[cpu_2x] = clk_register_gate(NULL, clk_output_name[cpu_2x], clks 302 drivers/clk/zynq/clkc.c clk_prepare_enable(clks[cpu_2x]); clks 306 drivers/clk/zynq/clkc.c clks[cpu_1x] = clk_register_gate(NULL, clk_output_name[cpu_1x], clks 321 drivers/clk/zynq/clkc.c clks[swdt] = clk_register_mux(NULL, clk_output_name[swdt], clks 330 drivers/clk/zynq/clkc.c clks[ddr2x] = clk_register_gate(NULL, clk_output_name[ddr2x], clks 332 drivers/clk/zynq/clkc.c clk_prepare_enable(clks[ddr2x]); clks 336 drivers/clk/zynq/clkc.c clks[ddr3x] = clk_register_gate(NULL, clk_output_name[ddr3x], clks 338 drivers/clk/zynq/clkc.c clk_prepare_enable(clks[ddr3x]); clks 347 drivers/clk/zynq/clkc.c clks[dci] = clk_register_gate(NULL, clk_output_name[dci], "dci_div1", clks 350 drivers/clk/zynq/clkc.c clk_prepare_enable(clks[dci]); clks 402 drivers/clk/zynq/clkc.c clks[gem0] = clk_register_gate(NULL, clk_output_name[gem0], clks 427 drivers/clk/zynq/clkc.c clks[gem1] = clk_register_gate(NULL, clk_output_name[gem1], clks 469 drivers/clk/zynq/clkc.c clks[can0] = clk_register_mux(NULL, clk_output_name[can0], clks 473 drivers/clk/zynq/clkc.c clks[can1] = clk_register_mux(NULL, clk_output_name[can1], clks 494 drivers/clk/zynq/clkc.c clks[dbg_trc] = clk_register_gate(NULL, clk_output_name[dbg_trc], clks 497 drivers/clk/zynq/clkc.c clks[dbg_apb] = clk_register_gate(NULL, clk_output_name[dbg_apb], clks 504 drivers/clk/zynq/clkc.c if (clk_prepare_enable(clks[dbg_trc])) clks 507 drivers/clk/zynq/clkc.c if (clk_prepare_enable(clks[dbg_apb])) clks 511 drivers/clk/zynq/clkc.c clks[dma] = clk_register_gate(NULL, clk_output_name[dma], clks 514 drivers/clk/zynq/clkc.c clks[usb0_aper] = clk_register_gate(NULL, clk_output_name[usb0_aper], clks 517 drivers/clk/zynq/clkc.c clks[usb1_aper] = clk_register_gate(NULL, clk_output_name[usb1_aper], clks 520 drivers/clk/zynq/clkc.c clks[gem0_aper] = clk_register_gate(NULL, clk_output_name[gem0_aper], clks 523 drivers/clk/zynq/clkc.c clks[gem1_aper] = clk_register_gate(NULL, clk_output_name[gem1_aper], clks 526 drivers/clk/zynq/clkc.c clks[sdio0_aper] = clk_register_gate(NULL, clk_output_name[sdio0_aper], clks 529 drivers/clk/zynq/clkc.c clks[sdio1_aper] = clk_register_gate(NULL, clk_output_name[sdio1_aper], clks 532 drivers/clk/zynq/clkc.c clks[spi0_aper] = clk_register_gate(NULL, clk_output_name[spi0_aper], clks 535 drivers/clk/zynq/clkc.c clks[spi1_aper] = clk_register_gate(NULL, clk_output_name[spi1_aper], clks 538 drivers/clk/zynq/clkc.c clks[can0_aper] = clk_register_gate(NULL, clk_output_name[can0_aper], clks 541 drivers/clk/zynq/clkc.c clks[can1_aper] = clk_register_gate(NULL, clk_output_name[can1_aper], clks 544 drivers/clk/zynq/clkc.c clks[i2c0_aper] = clk_register_gate(NULL, clk_output_name[i2c0_aper], clks 547 drivers/clk/zynq/clkc.c clks[i2c1_aper] = clk_register_gate(NULL, clk_output_name[i2c1_aper], clks 550 drivers/clk/zynq/clkc.c clks[uart0_aper] = clk_register_gate(NULL, clk_output_name[uart0_aper], clks 553 drivers/clk/zynq/clkc.c clks[uart1_aper] = clk_register_gate(NULL, clk_output_name[uart1_aper], clks 556 drivers/clk/zynq/clkc.c clks[gpio_aper] = clk_register_gate(NULL, clk_output_name[gpio_aper], clks 559 drivers/clk/zynq/clkc.c clks[lqspi_aper] = clk_register_gate(NULL, clk_output_name[lqspi_aper], clks 562 drivers/clk/zynq/clkc.c clks[smc_aper] = clk_register_gate(NULL, clk_output_name[smc_aper], clks 566 drivers/clk/zynq/clkc.c for (i = 0; i < ARRAY_SIZE(clks); i++) { clks 567 drivers/clk/zynq/clkc.c if (IS_ERR(clks[i])) { clks 569 drivers/clk/zynq/clkc.c i, PTR_ERR(clks[i])); clks 574 drivers/clk/zynq/clkc.c clk_data.clks = clks; clks 575 drivers/clk/zynq/clkc.c clk_data.clk_num = ARRAY_SIZE(clks); clks 40 drivers/cpufreq/imx6q-cpufreq.c static struct clk_bulk_data clks[] = { clks 69 drivers/cpufreq/imx6q-cpufreq.c old_freq = clk_get_rate(clks[ARM].clk) / 1000; clks 128 drivers/cpufreq/imx6q-cpufreq.c clk_set_rate(clks[ARM].clk, (old_freq >> 1) * 1000); clks 129 drivers/cpufreq/imx6q-cpufreq.c clk_set_parent(clks[PLL1_SW].clk, clks[PLL1_SYS].clk); clks 130 drivers/cpufreq/imx6q-cpufreq.c if (freq_hz > clk_get_rate(clks[PLL2_PFD2_396M].clk)) clks 131 drivers/cpufreq/imx6q-cpufreq.c clk_set_parent(clks[SECONDARY_SEL].clk, clks 132 drivers/cpufreq/imx6q-cpufreq.c clks[PLL2_BUS].clk); clks 134 drivers/cpufreq/imx6q-cpufreq.c clk_set_parent(clks[SECONDARY_SEL].clk, clks 135 drivers/cpufreq/imx6q-cpufreq.c clks[PLL2_PFD2_396M].clk); clks 136 drivers/cpufreq/imx6q-cpufreq.c clk_set_parent(clks[STEP].clk, clks[SECONDARY_SEL].clk); clks 137 drivers/cpufreq/imx6q-cpufreq.c clk_set_parent(clks[PLL1_SW].clk, clks[STEP].clk); clks 138 drivers/cpufreq/imx6q-cpufreq.c if (freq_hz > clk_get_rate(clks[PLL2_BUS].clk)) { clks 139 drivers/cpufreq/imx6q-cpufreq.c clk_set_rate(clks[PLL1_SYS].clk, new_freq * 1000); clks 140 drivers/cpufreq/imx6q-cpufreq.c clk_set_parent(clks[PLL1_SW].clk, clks[PLL1_SYS].clk); clks 143 drivers/cpufreq/imx6q-cpufreq.c clk_set_parent(clks[STEP].clk, clks[PLL2_PFD2_396M].clk); clks 144 drivers/cpufreq/imx6q-cpufreq.c clk_set_parent(clks[PLL1_SW].clk, clks[STEP].clk); clks 145 drivers/cpufreq/imx6q-cpufreq.c if (freq_hz > clk_get_rate(clks[PLL2_PFD2_396M].clk)) { clks 146 drivers/cpufreq/imx6q-cpufreq.c clk_set_rate(clks[PLL1_SYS].clk, new_freq * 1000); clks 147 drivers/cpufreq/imx6q-cpufreq.c clk_set_parent(clks[PLL1_SW].clk, clks[PLL1_SYS].clk); clks 151 drivers/cpufreq/imx6q-cpufreq.c clk_prepare_enable(clks[PLL1_SYS].clk); clks 156 drivers/cpufreq/imx6q-cpufreq.c ret = clk_set_rate(clks[ARM].clk, new_freq * 1000); clks 170 drivers/cpufreq/imx6q-cpufreq.c clk_disable_unprepare(clks[PLL1_SYS].clk); clks 193 drivers/cpufreq/imx6q-cpufreq.c policy->clk = clks[ARM].clk; clks 358 drivers/cpufreq/imx6q-cpufreq.c ret = clk_bulk_get(cpu_dev, num_clks, clks); clks 513 drivers/cpufreq/imx6q-cpufreq.c clk_bulk_put(num_clks, clks); clks 531 drivers/cpufreq/imx6q-cpufreq.c clk_bulk_put(num_clks, clks); clks 489 drivers/crypto/caam/ctrl.c const struct clk_bulk_data *clks; clks 501 drivers/crypto/caam/ctrl.c .clks = caam_imx6_clks, clks 511 drivers/crypto/caam/ctrl.c .clks = caam_imx7_clks, clks 522 drivers/crypto/caam/ctrl.c .clks = caam_imx6ul_clks, clks 539 drivers/crypto/caam/ctrl.c clk_bulk_disable_unprepare(ctrlpriv->num_clks, ctrlpriv->clks); clks 548 drivers/crypto/caam/ctrl.c ctrlpriv->clks = devm_kmemdup(dev, data->clks, clks 549 drivers/crypto/caam/ctrl.c data->num_clks * sizeof(data->clks[0]), clks 551 drivers/crypto/caam/ctrl.c if (!ctrlpriv->clks) clks 554 drivers/crypto/caam/ctrl.c ret = devm_clk_bulk_get(dev, ctrlpriv->num_clks, ctrlpriv->clks); clks 561 drivers/crypto/caam/ctrl.c ret = clk_bulk_prepare_enable(ctrlpriv->num_clks, ctrlpriv->clks); clks 98 drivers/crypto/caam/intern.h struct clk_bulk_data *clks; clks 508 drivers/firmware/qcom_scm.c unsigned long clks; clks 519 drivers/firmware/qcom_scm.c clks = (unsigned long)of_device_get_match_data(&pdev->dev); clks 526 drivers/firmware/qcom_scm.c if (clks & SCM_HAS_CORE_CLK) { clks 539 drivers/firmware/qcom_scm.c if (clks & SCM_HAS_IFACE_CLK) { clks 552 drivers/firmware/qcom_scm.c if (clks & SCM_HAS_BUS_CLK) { clks 5391 drivers/gpu/drm/amd/amdgpu/si_dpm.c u32 clks = reference_clock * 5 / ss.rate; clks 5398 drivers/gpu/drm/amd/amdgpu/si_dpm.c mpll_ss2 |= CLKS(clks); clks 643 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c void dm_set_dcn_clocks(struct dc_context *ctx, struct dc_clocks *clks) clks 121 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c struct dm_pp_clock_levels *clks) clks 131 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c clks->num_levels = 6; clks 132 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c memmove(clks->clocks_in_khz, disp_clks_in_khz, clks 136 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c clks->num_levels = 6; clks 137 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c memmove(clks->clocks_in_khz, sclks_in_khz, clks 141 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c clks->num_levels = 2; clks 142 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c memmove(clks->clocks_in_khz, mclks_in_khz, clks 146 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c clks->num_levels = 0; clks 1421 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c static bool verify_clock_values(struct dm_pp_clock_levels_with_voltage *clks) clks 1425 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c if (clks->num_levels == 0) clks 1428 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c for (i = 0; i < clks->num_levels; i++) clks 1430 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c if (clks->data[i].clocks_in_khz == 0) clks 415 drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr_base->clks.dispclk_khz)) { clks 417 drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c clk_mgr_base->clks.dispclk_khz = patched_disp_clk; clks 230 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c pp_display_cfg->disp_clk_khz = dc->clk_mgr->clks.dispclk_khz; clks 268 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr_base->clks.dispclk_khz)) { clks 270 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c clk_mgr_base->clks.dispclk_khz = patched_disp_clk; clks 213 drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.c if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr_base->clks.dispclk_khz)) { clks 215 drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.c clk_mgr_base->clks.dispclk_khz = patched_disp_clk; clks 97 drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/dce120_clk_mgr.c if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr_base->clks.dispclk_khz)) { clks 107 drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/dce120_clk_mgr.c clk_mgr_base->clks.dispclk_khz = dce112_set_clock(clk_mgr_base, patched_disp_clk); clks 112 drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/dce120_clk_mgr.c if (should_set_clock(safe_to_lower, max_pix_clk, clk_mgr_base->clks.phyclk_khz)) { clks 115 drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/dce120_clk_mgr.c clk_mgr_base->clks.phyclk_khz = max_pix_clk; clks 39 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c memset(&(clk_mgr->clks), 0, sizeof(struct dc_clocks)); clks 45 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c bool dispclk_increase = new_clocks->dispclk_khz > clk_mgr->base.clks.dispclk_khz; clks 47 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c bool cur_dpp_div = clk_mgr->base.clks.dispclk_khz > clk_mgr->base.clks.dppclk_khz; clks 77 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c if (clk_mgr->base.clks.dispclk_khz <= disp_clk_threshold) clks 120 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c clk_mgr->base.clks.dispclk_khz = new_clocks->dispclk_khz; clks 121 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c clk_mgr->base.clks.dppclk_khz = new_clocks->dppclk_khz; clks 122 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c clk_mgr->base.clks.max_supported_dppclk_khz = new_clocks->max_supported_dppclk_khz; clks 159 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c if (new_clocks->dispclk_khz > clk_mgr_base->clks.dispclk_khz clks 160 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c || new_clocks->phyclk_khz > clk_mgr_base->clks.phyclk_khz clks 161 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c || new_clocks->fclk_khz > clk_mgr_base->clks.fclk_khz clks 162 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c || new_clocks->dcfclk_khz > clk_mgr_base->clks.dcfclk_khz) clks 165 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->phyclk_khz, clk_mgr_base->clks.phyclk_khz)) { clks 166 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c clk_mgr_base->clks.phyclk_khz = new_clocks->phyclk_khz; clks 174 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->fclk_khz, clk_mgr_base->clks.fclk_khz)) { clks 175 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c clk_mgr_base->clks.fclk_khz = new_clocks->fclk_khz; clks 180 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->dcfclk_khz, clk_mgr_base->clks.dcfclk_khz)) { clks 181 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c clk_mgr_base->clks.dcfclk_khz = new_clocks->dcfclk_khz; clks 186 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c new_clocks->dcfclk_deep_sleep_khz, clk_mgr_base->clks.dcfclk_deep_sleep_khz)) { clks 187 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c clk_mgr_base->clks.dcfclk_deep_sleep_khz = new_clocks->dcfclk_deep_sleep_khz; clks 207 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz) clks 208 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c || new_clocks->dispclk_khz == clk_mgr_base->clks.dispclk_khz) { clks 210 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; clks 148 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c bool going_up = clk_mgr->base.clks.dispclk_khz < khz; clks 153 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->base.clks.dispclk_khz = khz; clks 156 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c pp_smu->set_voltage_by_freq(&pp_smu->pp_smu, PP_SMU_NV_DISPCLK, clk_mgr_base->clks.dispclk_khz / 1000); clks 161 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c pp_smu->set_voltage_by_freq(&pp_smu->pp_smu, PP_SMU_NV_DISPCLK, clk_mgr_base->clks.dispclk_khz / 1000); clks 169 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c bool going_up = clk_mgr->base.clks.dppclk_khz < khz; clks 174 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->base.clks.dppclk_khz = khz; clks 178 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c pp_smu->set_voltage_by_freq(&pp_smu->pp_smu, PP_SMU_NV_PIXELCLK, clk_mgr_base->clks.dppclk_khz / 1000); clks 183 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c pp_smu->set_voltage_by_freq(&pp_smu->pp_smu, PP_SMU_NV_PIXELCLK, clk_mgr_base->clks.dppclk_khz / 1000); clks 204 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (clk_mgr_base->clks.dispclk_khz == 0 || clks 222 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->phyclk_khz, clk_mgr_base->clks.phyclk_khz)) { clks 223 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr_base->clks.phyclk_khz = new_clocks->phyclk_khz; clks 225 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c pp_smu->set_voltage_by_freq(&pp_smu->pp_smu, PP_SMU_NV_PHYCLK, clk_mgr_base->clks.phyclk_khz / 1000); clks 233 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->dcfclk_khz, clk_mgr_base->clks.dcfclk_khz)) { clks 234 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr_base->clks.dcfclk_khz = new_clocks->dcfclk_khz; clks 236 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c pp_smu->set_hard_min_dcfclk_by_freq(&pp_smu->pp_smu, clk_mgr_base->clks.dcfclk_khz / 1000); clks 240 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c new_clocks->dcfclk_deep_sleep_khz, clk_mgr_base->clks.dcfclk_deep_sleep_khz)) { clks 241 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr_base->clks.dcfclk_deep_sleep_khz = new_clocks->dcfclk_deep_sleep_khz; clks 243 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c pp_smu->set_min_deep_sleep_dcfclk(&pp_smu->pp_smu, clk_mgr_base->clks.dcfclk_deep_sleep_khz / 1000); clks 246 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->socclk_khz, clk_mgr_base->clks.socclk_khz)) { clks 247 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr_base->clks.socclk_khz = new_clocks->socclk_khz; clks 249 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c pp_smu->set_hard_min_socclk_by_freq(&pp_smu->pp_smu, clk_mgr_base->clks.socclk_khz / 1000); clks 252 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (should_update_pstate_support(safe_to_lower, new_clocks->p_state_change_support, clk_mgr_base->clks.p_state_change_support)) { clks 253 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr_base->clks.prev_p_state_change_support = clk_mgr_base->clks.p_state_change_support; clks 255 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr_base->clks.p_state_change_support = new_clocks->p_state_change_support; clks 257 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c pp_smu->set_pstate_handshake_support(&pp_smu->pp_smu, clk_mgr_base->clks.p_state_change_support); clks 259 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr_base->clks.prev_p_state_change_support = clk_mgr_base->clks.p_state_change_support; clks 261 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->dramclk_khz, clk_mgr_base->clks.dramclk_khz)) { clks 262 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr_base->clks.dramclk_khz = new_clocks->dramclk_khz; clks 264 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c pp_smu->set_hard_min_uclk_by_freq(&pp_smu->pp_smu, clk_mgr_base->clks.dramclk_khz / 1000); clks 269 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) clks 277 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (new_clocks->dppclk_khz > clk_mgr_base->clks.dppclk_khz) clks 295 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (new_clocks->dppclk_khz < clk_mgr_base->clks.dppclk_khz) clks 315 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr_base->clks.dispclk_khz / 1000 / 7); clks 329 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->phyclk_khz, clk_mgr->clks.phyclk_khz)) { clks 330 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->clks.phyclk_khz = new_clocks->phyclk_khz; clks 333 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->dcfclk_khz, clk_mgr->clks.dcfclk_khz)) { clks 334 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->clks.dcfclk_khz = new_clocks->dcfclk_khz; clks 338 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c new_clocks->dcfclk_deep_sleep_khz, clk_mgr->clks.dcfclk_deep_sleep_khz)) { clks 339 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->clks.dcfclk_deep_sleep_khz = new_clocks->dcfclk_deep_sleep_khz; clks 342 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->socclk_khz, clk_mgr->clks.socclk_khz)) { clks 343 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->clks.socclk_khz = new_clocks->socclk_khz; clks 346 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->dramclk_khz, clk_mgr->clks.dramclk_khz)) { clks 347 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->clks.dramclk_khz = new_clocks->dramclk_khz; clks 350 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->dppclk_khz, clk_mgr->clks.dppclk_khz)) { clks 351 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->clks.dppclk_khz = new_clocks->dppclk_khz; clks 354 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (should_set_clock(safe_to_lower, fclk_adj, clk_mgr->clks.fclk_khz)) { clks 355 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->clks.fclk_khz = fclk_adj; clks 358 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr->clks.dispclk_khz)) { clks 359 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->clks.dispclk_khz = new_clocks->dispclk_khz; clks 366 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (clk_mgr->clks.fclk_khz > clk_mgr->clks.dppclk_khz) clks 367 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->clks.dppclk_khz = clk_mgr->clks.fclk_khz; clks 368 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c if (clk_mgr->clks.dppclk_khz > clk_mgr->clks.fclk_khz) clks 369 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->clks.fclk_khz = clk_mgr->clks.dppclk_khz; clks 372 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr_int->dccg->ref_dppclk = clk_mgr->clks.fclk_khz; clks 374 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c dm_set_dcn_clocks(clk_mgr->ctx, &clk_mgr->clks); clks 379 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c memset(&(clk_mgr->clks), 0, sizeof(struct dc_clocks)); clks 381 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->clks.p_state_change_support = true; clks 382 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->clks.prev_p_state_change_support = true; clks 407 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clock_cfg->current_clock_khz = clk_mgr->clks.dispclk_khz; clks 413 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clock_cfg->current_clock_khz = clk_mgr->clks.dppclk_khz; clks 78 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->phyclk_khz, clk_mgr_base->clks.phyclk_khz)) { clks 79 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c clk_mgr_base->clks.phyclk_khz = new_clocks->phyclk_khz; clks 80 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c rn_vbios_smu_set_phyclk(clk_mgr, clk_mgr_base->clks.phyclk_khz); clks 83 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->dcfclk_khz, clk_mgr_base->clks.dcfclk_khz)) { clks 84 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c clk_mgr_base->clks.dcfclk_khz = new_clocks->dcfclk_khz; clks 85 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c rn_vbios_smu_set_hard_min_dcfclk(clk_mgr, clk_mgr_base->clks.dcfclk_khz); clks 89 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c new_clocks->dcfclk_deep_sleep_khz, clk_mgr_base->clks.dcfclk_deep_sleep_khz)) { clks 90 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c clk_mgr_base->clks.dcfclk_deep_sleep_khz = new_clocks->dcfclk_deep_sleep_khz; clks 91 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c rn_vbios_smu_set_min_deep_sleep_dcfclk(clk_mgr, clk_mgr_base->clks.dcfclk_deep_sleep_khz); clks 100 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->dppclk_khz, clk_mgr->base.clks.dppclk_khz)) { clks 101 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c if (clk_mgr->base.clks.dppclk_khz > new_clocks->dppclk_khz) clks 103 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c clk_mgr_base->clks.dppclk_khz = new_clocks->dppclk_khz; clks 107 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { clks 108 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; clks 109 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c rn_vbios_smu_set_dispclk(clk_mgr, clk_mgr_base->clks.dispclk_khz); clks 117 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c rn_vbios_smu_set_dppclk(clk_mgr, clk_mgr_base->clks.dppclk_khz); clks 121 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c rn_vbios_smu_set_dppclk(clk_mgr, clk_mgr_base->clks.dppclk_khz); clks 130 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c clk_mgr_base->clks.dispclk_khz / 1000 / 7); clks 1658 drivers/gpu/drm/amd/display/dc/core/dc.c if (type == UPDATE_TYPE_FAST && memcmp(&dc->current_state->bw_ctx.bw.dcn.clk, &dc->clk_mgr->clks, offsetof(struct dc_clocks, prev_p_state_change_support)) != 0) clks 650 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c pp_display_cfg->disp_clk_khz = dc->res_pool->clk_mgr->clks.dispclk_khz; clks 688 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr->clks.dispclk_khz)) { clks 690 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c clk_mgr->clks.dispclk_khz = patched_disp_clk; clks 715 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr->clks.dispclk_khz)) { clks 717 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c clk_mgr->clks.dispclk_khz = patched_disp_clk; clks 742 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr->clks.dispclk_khz)) { clks 744 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c clk_mgr->clks.dispclk_khz = patched_disp_clk; clks 762 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr->clks.dispclk_khz)) { clks 772 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c clk_mgr->clks.dispclk_khz = dce112_set_clock(clk_mgr, patched_disp_clk); clks 777 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c if (should_set_clock(safe_to_lower, max_pix_clk, clk_mgr->clks.phyclk_khz)) { clks 780 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c clk_mgr->clks.phyclk_khz = max_pix_clk; clks 1207 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c struct dm_pp_clock_levels clks = {0}; clks 1213 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c &clks); clks 1216 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c clks.clocks_in_khz[clks.num_levels-1], 1000); clks 1218 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c clks.clocks_in_khz[clks.num_levels/8], 1000); clks 1220 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c clks.clocks_in_khz[clks.num_levels*2/8], 1000); clks 1222 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c clks.clocks_in_khz[clks.num_levels*3/8], 1000); clks 1224 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c clks.clocks_in_khz[clks.num_levels*4/8], 1000); clks 1226 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c clks.clocks_in_khz[clks.num_levels*5/8], 1000); clks 1228 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c clks.clocks_in_khz[clks.num_levels*6/8], 1000); clks 1230 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c clks.clocks_in_khz[0], 1000); clks 1231 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c dc->sclk_lvls = clks; clks 1237 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c &clks); clks 1239 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c clks.clocks_in_khz[clks.num_levels-1], 1000); clks 1241 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c clks.clocks_in_khz[clks.num_levels>>1], 1000); clks 1243 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c clks.clocks_in_khz[0], 1000); clks 1249 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c &clks); clks 1252 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c clks.clocks_in_khz[0] * MEMORY_TYPE_MULTIPLIER_CZ, 1000); clks 1254 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c clks.clocks_in_khz[clks.num_levels>>1] * MEMORY_TYPE_MULTIPLIER_CZ, clks 1257 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c clks.clocks_in_khz[clks.num_levels-1] * MEMORY_TYPE_MULTIPLIER_CZ, clks 990 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c struct dm_pp_clock_levels clks = {0}; clks 1008 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c &clks); clks 1011 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c clks.clocks_in_khz[clks.num_levels-1], 1000); clks 1013 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c clks.clocks_in_khz[clks.num_levels/8], 1000); clks 1015 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c clks.clocks_in_khz[clks.num_levels*2/8], 1000); clks 1017 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c clks.clocks_in_khz[clks.num_levels*3/8], 1000); clks 1019 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c clks.clocks_in_khz[clks.num_levels*4/8], 1000); clks 1021 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c clks.clocks_in_khz[clks.num_levels*5/8], 1000); clks 1023 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c clks.clocks_in_khz[clks.num_levels*6/8], 1000); clks 1025 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c clks.clocks_in_khz[0], 1000); clks 1031 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c &clks); clks 1034 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c clks.clocks_in_khz[0] * memory_type_multiplier, 1000); clks 1036 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c clks.clocks_in_khz[clks.num_levels>>1] * memory_type_multiplier, clks 1039 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c clks.clocks_in_khz[clks.num_levels-1] * memory_type_multiplier, clks 2296 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c dc->clk_mgr->clks.dispclk_khz / 2; clks 2310 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c dc->clk_mgr->clks.dppclk_khz = should_divided_by_2 ? clks 2311 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c dc->clk_mgr->clks.dispclk_khz / 2 : clks 2312 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c dc->clk_mgr->clks.dispclk_khz; clks 581 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c if (hubbub1->base.ctx->dc->clk_mgr->clks.prev_p_state_change_support == true && clks 582 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c hubbub1->base.ctx->dc->clk_mgr->clks.p_state_change_support == false) clks 138 drivers/gpu/drm/amd/display/dc/dm_helpers.h struct dc_clocks *clks); clks 780 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c const display_clocks_and_cfg_st *clks = &e2e_pipe_param[pipe_idx].clks_cfg; clks 795 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c double dppclk_freq_in_mhz = clks->dppclk_mhz; clks 796 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c double dispclk_freq_in_mhz = clks->dispclk_mhz; clks 797 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c double refclk_freq_in_mhz = clks->refclk_mhz; clks 780 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c const display_clocks_and_cfg_st *clks = &e2e_pipe_param[pipe_idx].clks_cfg; clks 795 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c double dppclk_freq_in_mhz = clks->dppclk_mhz; clks 796 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c double dispclk_freq_in_mhz = clks->dispclk_mhz; clks 797 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c double refclk_freq_in_mhz = clks->refclk_mhz; clks 827 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c const display_clocks_and_cfg_st *clks = &e2e_pipe_param[pipe_idx].clks_cfg; clks 842 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c double dppclk_freq_in_mhz = clks->dppclk_mhz; clks 843 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c double dispclk_freq_in_mhz = clks->dispclk_mhz; clks 844 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c double refclk_freq_in_mhz = clks->refclk_mhz; clks 370 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c display_clocks_and_cfg_st *clks = &pipes[j].clks_cfg; clks 507 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DPPCLK[mode_lib->vba.NumberOfActivePlanes] = clks->dppclk_mhz; clks 188 drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h struct dc_clocks clks; clks 755 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c uint32_t clks = hwmgr->display_config->min_core_set_clock_in_sr; clks 756 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c if (clks == 0) clks 757 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c clks = SMU8_MIN_DEEP_SLEEP_SCLK; clks 759 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c PP_DBG_LOG("Setting Deep Sleep Clock: %d\n", clks); clks 763 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c clks); clks 896 drivers/gpu/drm/amd/powerplay/navi10_ppt.c enum smu_clk_type clks[] = { clks 902 drivers/gpu/drm/amd/powerplay/navi10_ppt.c for (i = 0; i < ARRAY_SIZE(clks); i++) { clks 903 drivers/gpu/drm/amd/powerplay/navi10_ppt.c clk_type = clks[i]; clks 923 drivers/gpu/drm/amd/powerplay/navi10_ppt.c enum smu_clk_type clks[] = { clks 929 drivers/gpu/drm/amd/powerplay/navi10_ppt.c for (i = 0; i < ARRAY_SIZE(clks); i++) { clks 930 drivers/gpu/drm/amd/powerplay/navi10_ppt.c clk_type = clks[i]; clks 1085 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c uint32_t clks = reference_clock * 5 / ss_info.speed_spectrum_rate; clks 1091 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c mpll_ss2 = PHM_SET_FIELD(mpll_ss2, MPLL_SS2, CLKS, clks); clks 1132 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c uint32_t clks = reference_clock * 5 / ss_info.speed_spectrum_rate; clks 1141 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c mpll_ss2 = PHM_SET_FIELD(mpll_ss2, MPLL_SS2, CLKS, clks); clks 884 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c uint32_t clks = reference_clock * 5 / ss_info.speed_spectrum_rate; clks 893 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c mpll_ss2 = PHM_SET_FIELD(mpll_ss2, MPLL_SS2, CLKS, clks); clks 15 drivers/gpu/drm/armada/armada_510.c struct clk *clks[4]; clks 52 drivers/gpu/drm/armada/armada_510.c v->clks[idx] = clk; clks 60 drivers/gpu/drm/armada/armada_510.c v->clks[1] = clk; clks 109 drivers/gpu/drm/armada/armada_510.c v->clks, ARRAY_SIZE(v->clks), clks 826 drivers/gpu/drm/armada/armada_crtc.c struct clk *clks[], size_t num_clks, clks 842 drivers/gpu/drm/armada/armada_crtc.c clk = clks[i]; clks 91 drivers/gpu/drm/armada/armada_crtc.h struct clk *clks[], size_t num_clks, clks 64 drivers/gpu/drm/exynos/exynos5433_drm_decon.c struct clk *clks[ARRAY_SIZE(decon_clks_name)]; clks 566 drivers/gpu/drm/exynos/exynos5433_drm_decon.c ret = clk_prepare_enable(ctx->clks[i]); clks 583 drivers/gpu/drm/exynos/exynos5433_drm_decon.c clk_disable_unprepare(ctx->clks[i]); clks 714 drivers/gpu/drm/exynos/exynos5433_drm_decon.c clk_disable_unprepare(ctx->clks[i]); clks 725 drivers/gpu/drm/exynos/exynos5433_drm_decon.c ret = clk_prepare_enable(ctx->clks[i]); clks 734 drivers/gpu/drm/exynos/exynos5433_drm_decon.c clk_disable_unprepare(ctx->clks[i]); clks 814 drivers/gpu/drm/exynos/exynos5433_drm_decon.c ctx->clks[i] = clk; clks 262 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct clk **clks; clks 1758 drivers/gpu/drm/exynos/exynos_drm_dsi.c dsi->clks = devm_kcalloc(dev, clks 1759 drivers/gpu/drm/exynos/exynos_drm_dsi.c dsi->driver_data->num_clks, sizeof(*dsi->clks), clks 1761 drivers/gpu/drm/exynos/exynos_drm_dsi.c if (!dsi->clks) clks 1765 drivers/gpu/drm/exynos/exynos_drm_dsi.c dsi->clks[i] = devm_clk_get(dev, clk_names[i]); clks 1766 drivers/gpu/drm/exynos/exynos_drm_dsi.c if (IS_ERR(dsi->clks[i])) { clks 1768 drivers/gpu/drm/exynos/exynos_drm_dsi.c dsi->clks[i] = devm_clk_get(dev, clks 1770 drivers/gpu/drm/exynos/exynos_drm_dsi.c if (!IS_ERR(dsi->clks[i])) clks 1776 drivers/gpu/drm/exynos/exynos_drm_dsi.c return PTR_ERR(dsi->clks[i]); clks 1850 drivers/gpu/drm/exynos/exynos_drm_dsi.c clk_disable_unprepare(dsi->clks[i]); clks 1873 drivers/gpu/drm/exynos/exynos_drm_dsi.c ret = clk_prepare_enable(dsi->clks[i]); clks 1888 drivers/gpu/drm/exynos/exynos_drm_dsi.c clk_disable_unprepare(dsi->clks[i]); clks 98 drivers/gpu/drm/exynos/exynos_drm_mic.c struct clk *clks[NUM_CLKS]; clks 345 drivers/gpu/drm/exynos/exynos_drm_mic.c clk_disable_unprepare(mic->clks[i]); clks 356 drivers/gpu/drm/exynos/exynos_drm_mic.c ret = clk_prepare_enable(mic->clks[i]); clks 361 drivers/gpu/drm/exynos/exynos_drm_mic.c clk_disable_unprepare(mic->clks[i]); clks 413 drivers/gpu/drm/exynos/exynos_drm_mic.c mic->clks[i] = devm_clk_get(dev, clk_names[i]); clks 414 drivers/gpu/drm/exynos/exynos_drm_mic.c if (IS_ERR(mic->clks[i])) { clks 417 drivers/gpu/drm/exynos/exynos_drm_mic.c ret = PTR_ERR(mic->clks[i]); clks 1678 drivers/gpu/drm/exynos/exynos_hdmi.c struct clk **clks) clks 1695 drivers/gpu/drm/exynos/exynos_hdmi.c clks[i] = clk; clks 1706 drivers/gpu/drm/exynos/exynos_hdmi.c struct clk **clks; clks 1712 drivers/gpu/drm/exynos/exynos_hdmi.c clks = devm_kcalloc(dev, count, sizeof(*clks), GFP_KERNEL); clks 1713 drivers/gpu/drm/exynos/exynos_hdmi.c if (!clks) clks 1716 drivers/gpu/drm/exynos/exynos_hdmi.c hdata->clk_gates = clks; clks 1717 drivers/gpu/drm/exynos/exynos_hdmi.c hdata->clk_muxes = clks + drv_data->clk_gates.count; clks 79 drivers/gpu/drm/msm/dsi/pll/dsi_pll.c struct clk **clks, u32 num_clks) clks 83 drivers/gpu/drm/msm/dsi/pll/dsi_pll.c if (!num_clks || !clks) clks 87 drivers/gpu/drm/msm/dsi/pll/dsi_pll.c clk_unregister(clks[--num_clks]); clks 88 drivers/gpu/drm/msm/dsi/pll/dsi_pll.c clks[num_clks] = NULL; clks 75 drivers/gpu/drm/msm/dsi/pll/dsi_pll.h struct clk **clks, u32 num_clks); clks 79 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c struct clk *clks[NUM_DSI_CLOCKS_MAX]; clks 499 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c pll_28nm->clks, pll_28nm->num_clks); clks 505 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c pll_28nm->clk_data.clks = NULL; clks 520 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c struct clk **clks = pll_28nm->clks; clks 529 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c clks[num++] = clk_register(dev, &pll_28nm->base.clk_hw); clks 533 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c clks[num++] = clk_register_divider(dev, clk_name, clks 541 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c clks[num++] = clk_register_fixed_factor(dev, clk_name, clks 547 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c clks[num++] = provided_clks[DSI_PIXEL_PLL_CLK] = clks 556 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c clks[num++] = clk_register_mux(dev, clk_name, clks 564 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c clks[num++] = provided_clks[DSI_BYTE_PLL_CLK] = clks 571 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c pll_28nm->clk_data.clks = provided_clks; clks 74 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c struct clk *clks[NUM_DSI_CLOCKS_MAX]; clks 398 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c pll_28nm->clks, pll_28nm->num_clks); clks 411 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c struct clk **clks = pll_28nm->clks; clks 442 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c clks[num++] = clk_register(dev, &pll_28nm->base.clk_hw); clks 458 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c clks[num++] = provided_clks[DSI_BYTE_PLL_CLK] = clks 463 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c clks[num++] = provided_clks[DSI_PIXEL_PLL_CLK] = clks 472 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c pll_28nm->clk_data.clks = provided_clks; clks 165 drivers/gpu/drm/msm/hdmi/hdmi.h struct clk **clks; clks 21 drivers/gpu/drm/msm/hdmi/hdmi_phy.c phy->clks = devm_kcalloc(dev, cfg->num_clks, sizeof(phy->clks[0]), clks 23 drivers/gpu/drm/msm/hdmi/hdmi_phy.c if (!phy->clks) clks 51 drivers/gpu/drm/msm/hdmi/hdmi_phy.c phy->clks[i] = clk; clks 73 drivers/gpu/drm/msm/hdmi/hdmi_phy.c ret = clk_prepare_enable(phy->clks[i]); clks 89 drivers/gpu/drm/msm/hdmi/hdmi_phy.c clk_disable_unprepare(phy->clks[i]); clks 395 drivers/gpu/drm/omapdrm/dss/dsi.c struct dss_debugfs_entry *clks; clks 5078 drivers/gpu/drm/omapdrm/dss/dsi.c dsi->debugfs.clks = dss_debugfs_create_file(dss, name, clks 5088 drivers/gpu/drm/omapdrm/dss/dsi.c dss_debugfs_remove_file(dsi->debugfs.clks); clks 2842 drivers/gpu/drm/radeon/ci_dpm.c u32 clks = reference_clock * 5 / ss.rate; clks 2849 drivers/gpu/drm/radeon/ci_dpm.c mpll_ss2 |= CLKS(clks); clks 4929 drivers/gpu/drm/radeon/si_dpm.c u32 clks = reference_clock * 5 / ss.rate; clks 4936 drivers/gpu/drm/radeon/si_dpm.c mpll_ss2 |= CLKS(clks); clks 2072 drivers/iommu/arm-smmu.c err = devm_clk_bulk_get_all(dev, &smmu->clks); clks 2079 drivers/iommu/arm-smmu.c err = clk_bulk_prepare_enable(smmu->num_clks, smmu->clks); clks 2186 drivers/iommu/arm-smmu.c clk_bulk_disable(smmu->num_clks, smmu->clks); clks 2188 drivers/iommu/arm-smmu.c clk_bulk_unprepare(smmu->num_clks, smmu->clks); clks 2196 drivers/iommu/arm-smmu.c ret = clk_bulk_enable(smmu->num_clks, smmu->clks); clks 2209 drivers/iommu/arm-smmu.c clk_bulk_disable(smmu->num_clks, smmu->clks); clks 272 drivers/iommu/arm-smmu.h struct clk_bulk_data *clks; clks 22 drivers/irqchip/irq-gic-pm.c struct clk_bulk_data *clks; clks 32 drivers/irqchip/irq-gic-pm.c ret = clk_bulk_prepare_enable(data->num_clocks, chip_pm->clks); clks 62 drivers/irqchip/irq-gic-pm.c clk_bulk_disable_unprepare(data->num_clocks, chip_pm->clks); clks 90 drivers/irqchip/irq-gic-pm.c chip_pm->clks = devm_kcalloc(dev, data->num_clocks, clks 91 drivers/irqchip/irq-gic-pm.c sizeof(*chip_pm->clks), GFP_KERNEL); clks 92 drivers/irqchip/irq-gic-pm.c if (!chip_pm->clks) clks 96 drivers/irqchip/irq-gic-pm.c chip_pm->clks[i].id = data->clocks[i]; clks 98 drivers/irqchip/irq-gic-pm.c ret = devm_clk_bulk_get(dev, data->num_clocks, chip_pm->clks); clks 1312 drivers/media/platform/exynos4-is/media-dev.c clk_unregister(cp->clks[i]); clks 1341 drivers/media/platform/exynos4-is/media-dev.c cp->clks[i] = clk_register(NULL, &camclk->hw); clks 1342 drivers/media/platform/exynos4-is/media-dev.c if (IS_ERR(cp->clks[i])) { clks 1344 drivers/media/platform/exynos4-is/media-dev.c init.name, PTR_ERR(cp->clks[i])); clks 1345 drivers/media/platform/exynos4-is/media-dev.c ret = PTR_ERR(cp->clks[i]); clks 1356 drivers/media/platform/exynos4-is/media-dev.c cp->clk_data.clks = cp->clks; clks 141 drivers/media/platform/exynos4-is/media-dev.h struct clk *clks[FIMC_MAX_CAMCLKS]; clks 109 drivers/media/platform/qcom/venus/core.c core->clks[i] = devm_clk_get(dev, res->clks[i]); clks 110 drivers/media/platform/qcom/venus/core.c if (IS_ERR(core->clks[i])) clks 111 drivers/media/platform/qcom/venus/core.c return PTR_ERR(core->clks[i]); clks 124 drivers/media/platform/qcom/venus/core.c ret = clk_prepare_enable(core->clks[i]); clks 132 drivers/media/platform/qcom/venus/core.c clk_disable_unprepare(core->clks[i]); clks 143 drivers/media/platform/qcom/venus/core.c clk_disable_unprepare(core->clks[i]); clks 418 drivers/media/platform/qcom/venus/core.c .clks = { "core", "iface", "bus", }, clks 448 drivers/media/platform/qcom/venus/core.c .clks = {"core", "iface", "bus", "mbus" }, clks 471 drivers/media/platform/qcom/venus/core.c .clks = {"core", "iface", "bus" }, clks 35 drivers/media/platform/qcom/venus/core.h const char * const clks[VIDC_CLKS_NUM_MAX]; clks 113 drivers/media/platform/qcom/venus/core.h struct clk *clks[VIDC_CLKS_NUM_MAX]; clks 396 drivers/media/platform/qcom/venus/helpers.c struct clk *clk = core->clks[0]; clks 29 drivers/misc/sgi-gru/gruhandles.c static void update_mcs_stats(enum mcs_op op, unsigned long clks) clks 33 drivers/misc/sgi-gru/gruhandles.c nsec = CLKS2NSEC(clks); clks 214 drivers/misc/xilinx_sdfec.c struct xsdfec_clks clks; clks 1229 drivers/misc/xilinx_sdfec.c struct xsdfec_clks *clks) clks 1233 drivers/misc/xilinx_sdfec.c clks->core_clk = devm_clk_get(&pdev->dev, "core_clk"); clks 1234 drivers/misc/xilinx_sdfec.c if (IS_ERR(clks->core_clk)) { clks 1236 drivers/misc/xilinx_sdfec.c return PTR_ERR(clks->core_clk); clks 1239 drivers/misc/xilinx_sdfec.c clks->axi_clk = devm_clk_get(&pdev->dev, "s_axi_aclk"); clks 1240 drivers/misc/xilinx_sdfec.c if (IS_ERR(clks->axi_clk)) { clks 1242 drivers/misc/xilinx_sdfec.c return PTR_ERR(clks->axi_clk); clks 1245 drivers/misc/xilinx_sdfec.c clks->din_words_clk = devm_clk_get(&pdev->dev, "s_axis_din_words_aclk"); clks 1246 drivers/misc/xilinx_sdfec.c if (IS_ERR(clks->din_words_clk)) { clks 1247 drivers/misc/xilinx_sdfec.c if (PTR_ERR(clks->din_words_clk) != -ENOENT) { clks 1248 drivers/misc/xilinx_sdfec.c err = PTR_ERR(clks->din_words_clk); clks 1251 drivers/misc/xilinx_sdfec.c clks->din_words_clk = NULL; clks 1254 drivers/misc/xilinx_sdfec.c clks->din_clk = devm_clk_get(&pdev->dev, "s_axis_din_aclk"); clks 1255 drivers/misc/xilinx_sdfec.c if (IS_ERR(clks->din_clk)) { clks 1256 drivers/misc/xilinx_sdfec.c if (PTR_ERR(clks->din_clk) != -ENOENT) { clks 1257 drivers/misc/xilinx_sdfec.c err = PTR_ERR(clks->din_clk); clks 1260 drivers/misc/xilinx_sdfec.c clks->din_clk = NULL; clks 1263 drivers/misc/xilinx_sdfec.c clks->dout_clk = devm_clk_get(&pdev->dev, "m_axis_dout_aclk"); clks 1264 drivers/misc/xilinx_sdfec.c if (IS_ERR(clks->dout_clk)) { clks 1265 drivers/misc/xilinx_sdfec.c if (PTR_ERR(clks->dout_clk) != -ENOENT) { clks 1266 drivers/misc/xilinx_sdfec.c err = PTR_ERR(clks->dout_clk); clks 1269 drivers/misc/xilinx_sdfec.c clks->dout_clk = NULL; clks 1272 drivers/misc/xilinx_sdfec.c clks->dout_words_clk = clks 1274 drivers/misc/xilinx_sdfec.c if (IS_ERR(clks->dout_words_clk)) { clks 1275 drivers/misc/xilinx_sdfec.c if (PTR_ERR(clks->dout_words_clk) != -ENOENT) { clks 1276 drivers/misc/xilinx_sdfec.c err = PTR_ERR(clks->dout_words_clk); clks 1279 drivers/misc/xilinx_sdfec.c clks->dout_words_clk = NULL; clks 1282 drivers/misc/xilinx_sdfec.c clks->ctrl_clk = devm_clk_get(&pdev->dev, "s_axis_ctrl_aclk"); clks 1283 drivers/misc/xilinx_sdfec.c if (IS_ERR(clks->ctrl_clk)) { clks 1284 drivers/misc/xilinx_sdfec.c if (PTR_ERR(clks->ctrl_clk) != -ENOENT) { clks 1285 drivers/misc/xilinx_sdfec.c err = PTR_ERR(clks->ctrl_clk); clks 1288 drivers/misc/xilinx_sdfec.c clks->ctrl_clk = NULL; clks 1291 drivers/misc/xilinx_sdfec.c clks->status_clk = devm_clk_get(&pdev->dev, "m_axis_status_aclk"); clks 1292 drivers/misc/xilinx_sdfec.c if (IS_ERR(clks->status_clk)) { clks 1293 drivers/misc/xilinx_sdfec.c if (PTR_ERR(clks->status_clk) != -ENOENT) { clks 1294 drivers/misc/xilinx_sdfec.c err = PTR_ERR(clks->status_clk); clks 1297 drivers/misc/xilinx_sdfec.c clks->status_clk = NULL; clks 1300 drivers/misc/xilinx_sdfec.c err = clk_prepare_enable(clks->core_clk); clks 1306 drivers/misc/xilinx_sdfec.c err = clk_prepare_enable(clks->axi_clk); clks 1312 drivers/misc/xilinx_sdfec.c err = clk_prepare_enable(clks->din_clk); clks 1318 drivers/misc/xilinx_sdfec.c err = clk_prepare_enable(clks->din_words_clk); clks 1324 drivers/misc/xilinx_sdfec.c err = clk_prepare_enable(clks->dout_clk); clks 1330 drivers/misc/xilinx_sdfec.c err = clk_prepare_enable(clks->dout_words_clk); clks 1337 drivers/misc/xilinx_sdfec.c err = clk_prepare_enable(clks->ctrl_clk); clks 1343 drivers/misc/xilinx_sdfec.c err = clk_prepare_enable(clks->status_clk); clks 1352 drivers/misc/xilinx_sdfec.c clk_disable_unprepare(clks->ctrl_clk); clks 1354 drivers/misc/xilinx_sdfec.c clk_disable_unprepare(clks->dout_words_clk); clks 1356 drivers/misc/xilinx_sdfec.c clk_disable_unprepare(clks->dout_clk); clks 1358 drivers/misc/xilinx_sdfec.c clk_disable_unprepare(clks->din_words_clk); clks 1360 drivers/misc/xilinx_sdfec.c clk_disable_unprepare(clks->din_clk); clks 1362 drivers/misc/xilinx_sdfec.c clk_disable_unprepare(clks->axi_clk); clks 1364 drivers/misc/xilinx_sdfec.c clk_disable_unprepare(clks->core_clk); clks 1369 drivers/misc/xilinx_sdfec.c static void xsdfec_disable_all_clks(struct xsdfec_clks *clks) clks 1371 drivers/misc/xilinx_sdfec.c clk_disable_unprepare(clks->status_clk); clks 1372 drivers/misc/xilinx_sdfec.c clk_disable_unprepare(clks->ctrl_clk); clks 1373 drivers/misc/xilinx_sdfec.c clk_disable_unprepare(clks->dout_words_clk); clks 1374 drivers/misc/xilinx_sdfec.c clk_disable_unprepare(clks->dout_clk); clks 1375 drivers/misc/xilinx_sdfec.c clk_disable_unprepare(clks->din_words_clk); clks 1376 drivers/misc/xilinx_sdfec.c clk_disable_unprepare(clks->din_clk); clks 1377 drivers/misc/xilinx_sdfec.c clk_disable_unprepare(clks->core_clk); clks 1378 drivers/misc/xilinx_sdfec.c clk_disable_unprepare(clks->axi_clk); clks 1396 drivers/misc/xilinx_sdfec.c err = xsdfec_clk_init(pdev, &xsdfec->clks); clks 1455 drivers/misc/xilinx_sdfec.c xsdfec_disable_all_clks(&xsdfec->clks); clks 1466 drivers/misc/xilinx_sdfec.c xsdfec_disable_all_clks(&xsdfec->clks); clks 994 drivers/mmc/host/mmci.c unsigned long long clks; clks 1004 drivers/mmc/host/mmci.c clks = (unsigned long long)data->timeout_ns * host->cclk; clks 1005 drivers/mmc/host/mmci.c do_div(clks, NSEC_PER_SEC); clks 1007 drivers/mmc/host/mmci.c timeout = data->timeout_clks + (unsigned int)clks; clks 703 drivers/mmc/host/mtk-sd.c static void msdc_set_timeout(struct msdc_host *host, u32 ns, u32 clks) clks 709 drivers/mmc/host/mtk-sd.c host->timeout_clks = clks; clks 714 drivers/mmc/host/mtk-sd.c timeout = (ns + clk_ns - 1) / clk_ns + clks; clks 166 drivers/mmc/host/pxamci.c unsigned long long clks; clks 175 drivers/mmc/host/pxamci.c clks = (unsigned long long)data->timeout_ns * host->clkrate; clks 176 drivers/mmc/host/pxamci.c do_div(clks, 1000000000UL); clks 177 drivers/mmc/host/pxamci.c timeout = (unsigned int)clks + (data->timeout_clks << host->clkrt); clks 485 drivers/mmc/host/sdhci-s3c.c int ret, irq, ptr, clks; clks 537 drivers/mmc/host/sdhci-s3c.c for (clks = 0, ptr = 0; ptr < MAX_BUS_CLK; ptr++) { clks 545 drivers/mmc/host/sdhci-s3c.c clks++; clks 552 drivers/mmc/host/sdhci-s3c.c if (clks == 0) { clks 1050 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c .clks = gpmi_clks_for_mx2x, clks 1058 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c .clks = gpmi_clks_for_mx2x, clks 1070 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c .clks = gpmi_clks_for_mx6, clks 1078 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c .clks = gpmi_clks_for_mx6, clks 1090 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c .clks = gpmi_clks_for_mx7d, clks 1174 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c clk = devm_clk_get(this->dev, this->devdata->clks[i]); clks 83 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h const char * const *clks; clks 4061 drivers/net/ethernet/marvell/sky2.c u32 clks = sky2_read32(hw, STAT_TX_TIMER_INI); clks 4062 drivers/net/ethernet/marvell/sky2.c ecmd->tx_coalesce_usecs = sky2_clk2us(hw, clks); clks 4069 drivers/net/ethernet/marvell/sky2.c u32 clks = sky2_read32(hw, STAT_LEV_TIMER_INI); clks 4070 drivers/net/ethernet/marvell/sky2.c ecmd->rx_coalesce_usecs = sky2_clk2us(hw, clks); clks 4077 drivers/net/ethernet/marvell/sky2.c u32 clks = sky2_read32(hw, STAT_ISR_TIMER_INI); clks 4078 drivers/net/ethernet/marvell/sky2.c ecmd->rx_coalesce_usecs_irq = sky2_clk2us(hw, clks); clks 188 drivers/net/ethernet/mediatek/mtk_eth_soc.c ret = clk_set_rate(eth->clks[MTK_CLK_TRGPLL], val); clks 2309 drivers/net/ethernet/mediatek/mtk_eth_soc.c clk_disable_unprepare(eth->clks[clk]); clks 2317 drivers/net/ethernet/mediatek/mtk_eth_soc.c ret = clk_prepare_enable(eth->clks[clk]); clks 2326 drivers/net/ethernet/mediatek/mtk_eth_soc.c clk_disable_unprepare(eth->clks[clk]); clks 2965 drivers/net/ethernet/mediatek/mtk_eth_soc.c for (i = 0; i < ARRAY_SIZE(eth->clks); i++) { clks 2966 drivers/net/ethernet/mediatek/mtk_eth_soc.c eth->clks[i] = devm_clk_get(eth->dev, clks 2968 drivers/net/ethernet/mediatek/mtk_eth_soc.c if (IS_ERR(eth->clks[i])) { clks 2969 drivers/net/ethernet/mediatek/mtk_eth_soc.c if (PTR_ERR(eth->clks[i]) == -EPROBE_DEFER) clks 2976 drivers/net/ethernet/mediatek/mtk_eth_soc.c eth->clks[i] = NULL; clks 884 drivers/net/ethernet/mediatek/mtk_eth_soc.h struct clk *clks[MTK_CLK_MAX]; clks 53 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c struct clk_bulk_data *clks; clks 262 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c plat->clks = devm_kcalloc(plat->dev, num, sizeof(*plat->clks), GFP_KERNEL); clks 263 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c if (!plat->clks) clks 267 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c plat->clks[i].id = variant->clk_list[i]; clks 269 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c return devm_clk_bulk_get(plat->dev, num, plat->clks); clks 296 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c ret = clk_bulk_prepare_enable(variant->num_clks, plat->clks); clks 313 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c clk_bulk_disable_unprepare(variant->num_clks, plat->clks); clks 117 drivers/pci/controller/dwc/pcie-qcom.c struct clk_bulk_data clks[QCOM_PCIE_2_4_0_MAX_CLOCKS]; clks 646 drivers/pci/controller/dwc/pcie-qcom.c res->clks[0].id = "aux"; clks 647 drivers/pci/controller/dwc/pcie-qcom.c res->clks[1].id = "master_bus"; clks 648 drivers/pci/controller/dwc/pcie-qcom.c res->clks[2].id = "slave_bus"; clks 649 drivers/pci/controller/dwc/pcie-qcom.c res->clks[3].id = "iface"; clks 654 drivers/pci/controller/dwc/pcie-qcom.c ret = devm_clk_bulk_get(dev, res->num_clks, res->clks); clks 734 drivers/pci/controller/dwc/pcie-qcom.c clk_bulk_disable_unprepare(res->num_clks, res->clks); clks 863 drivers/pci/controller/dwc/pcie-qcom.c ret = clk_bulk_prepare_enable(res->num_clks, res->clks); clks 989 drivers/phy/qualcomm/phy-qcom-qmp.c struct clk_bulk_data *clks; clks 1338 drivers/phy/qualcomm/phy-qcom-qmp.c ret = clk_bulk_prepare_enable(cfg->num_clks, qmp->clks); clks 1396 drivers/phy/qualcomm/phy-qcom-qmp.c clk_bulk_disable_unprepare(cfg->num_clks, qmp->clks); clks 1433 drivers/phy/qualcomm/phy-qcom-qmp.c clk_bulk_disable_unprepare(cfg->num_clks, qmp->clks); clks 1679 drivers/phy/qualcomm/phy-qcom-qmp.c clk_bulk_disable_unprepare(cfg->num_clks, qmp->clks); clks 1702 drivers/phy/qualcomm/phy-qcom-qmp.c ret = clk_bulk_prepare_enable(cfg->num_clks, qmp->clks); clks 1711 drivers/phy/qualcomm/phy-qcom-qmp.c clk_bulk_disable_unprepare(cfg->num_clks, qmp->clks); clks 1767 drivers/phy/qualcomm/phy-qcom-qmp.c qmp->clks = devm_kcalloc(dev, num, sizeof(*qmp->clks), GFP_KERNEL); clks 1768 drivers/phy/qualcomm/phy-qcom-qmp.c if (!qmp->clks) clks 1772 drivers/phy/qualcomm/phy-qcom-qmp.c qmp->clks[i].id = qmp->cfg->clk_list[i]; clks 1774 drivers/phy/qualcomm/phy-qcom-qmp.c return devm_clk_bulk_get(dev, num, qmp->clks); clks 110 drivers/phy/ti/phy-am654-serdes.c struct clk *clks[SERDES_NUM_CLOCKS]; clks 471 drivers/phy/ti/phy-am654-serdes.c am654_phy->clks[clock_num] = clk; clks 619 drivers/phy/ti/phy-am654-serdes.c clk_data->clks = am654_phy->clks; clks 35 drivers/platform/x86/pmc_atom.c const struct pmc_clk *clks; clks 195 drivers/platform/x86/pmc_atom.c .clks = byt_clks, clks 200 drivers/platform/x86/pmc_atom.c .clks = cht_clks, clks 463 drivers/platform/x86/pmc_atom.c clk_data->clks = pmc_data->clks; clks 30 drivers/pwm/pwm-sprd.c struct clk_bulk_data clks[SPRD_PWM_CHN_CLKS_NUM]; clks 82 drivers/pwm/pwm-sprd.c ret = clk_bulk_prepare_enable(SPRD_PWM_CHN_CLKS_NUM, chn->clks); clks 115 drivers/pwm/pwm-sprd.c clk_bulk_disable_unprepare(SPRD_PWM_CHN_CLKS_NUM, chn->clks); clks 174 drivers/pwm/pwm-sprd.c chn->clks); clks 200 drivers/pwm/pwm-sprd.c clk_bulk_disable_unprepare(SPRD_PWM_CHN_CLKS_NUM, chn->clks); clks 222 drivers/pwm/pwm-sprd.c chn->clks[j].id = clks 226 drivers/pwm/pwm-sprd.c chn->clks); clks 238 drivers/pwm/pwm-sprd.c clk_pwm = chn->clks[SPRD_PWM_CHN_OUTPUT_CLK].clk; clks 74 drivers/remoteproc/qcom_q6v5_adsp.c struct clk_bulk_data *clks; clks 110 drivers/remoteproc/qcom_q6v5_adsp.c clk_bulk_disable_unprepare(adsp->num_clks, adsp->clks); clks 190 drivers/remoteproc/qcom_q6v5_adsp.c ret = clk_bulk_prepare_enable(adsp->num_clks, adsp->clks); clks 231 drivers/remoteproc/qcom_q6v5_adsp.c clk_bulk_disable_unprepare(adsp->num_clks, adsp->clks); clks 310 drivers/remoteproc/qcom_q6v5_adsp.c adsp->clks = devm_kcalloc(adsp->dev, adsp->num_clks, clks 311 drivers/remoteproc/qcom_q6v5_adsp.c sizeof(*adsp->clks), GFP_KERNEL); clks 312 drivers/remoteproc/qcom_q6v5_adsp.c if (!adsp->clks) clks 316 drivers/remoteproc/qcom_q6v5_adsp.c adsp->clks[i].id = clk_ids[i]; clks 318 drivers/remoteproc/qcom_q6v5_adsp.c return devm_clk_bulk_get(adsp->dev, adsp->num_clks, adsp->clks); clks 295 drivers/remoteproc/qcom_q6v5_mss.c struct clk **clks, int count) clks 301 drivers/remoteproc/qcom_q6v5_mss.c rc = clk_prepare_enable(clks[i]); clks 311 drivers/remoteproc/qcom_q6v5_mss.c clk_disable_unprepare(clks[i]); clks 317 drivers/remoteproc/qcom_q6v5_mss.c struct clk **clks, int count) clks 322 drivers/remoteproc/qcom_q6v5_mss.c clk_disable_unprepare(clks[i]); clks 1277 drivers/remoteproc/qcom_q6v5_mss.c static int q6v5_init_clocks(struct device *dev, struct clk **clks, clks 1286 drivers/remoteproc/qcom_q6v5_mss.c clks[i] = devm_clk_get(dev, clk_names[i]); clks 1287 drivers/remoteproc/qcom_q6v5_mss.c if (IS_ERR(clks[i])) { clks 1288 drivers/remoteproc/qcom_q6v5_mss.c int rc = PTR_ERR(clks[i]); clks 63 drivers/remoteproc/st_slim_rproc.c slim_rproc->clks[clk] = of_clk_get(dev->of_node, clk); clks 64 drivers/remoteproc/st_slim_rproc.c if (IS_ERR(slim_rproc->clks[clk])) { clks 65 drivers/remoteproc/st_slim_rproc.c err = PTR_ERR(slim_rproc->clks[clk]); clks 68 drivers/remoteproc/st_slim_rproc.c slim_rproc->clks[clk] = NULL; clks 77 drivers/remoteproc/st_slim_rproc.c clk_put(slim_rproc->clks[clk]); clks 86 drivers/remoteproc/st_slim_rproc.c for (clk = 0; clk < ST_SLIM_MAX_CLK && slim_rproc->clks[clk]; clk++) clks 87 drivers/remoteproc/st_slim_rproc.c clk_disable_unprepare(slim_rproc->clks[clk]); clks 94 drivers/remoteproc/st_slim_rproc.c for (clk = 0; clk < ST_SLIM_MAX_CLK && slim_rproc->clks[clk]; clk++) { clks 95 drivers/remoteproc/st_slim_rproc.c ret = clk_prepare_enable(slim_rproc->clks[clk]); clks 104 drivers/remoteproc/st_slim_rproc.c clk_disable_unprepare(slim_rproc->clks[clk]); clks 301 drivers/remoteproc/st_slim_rproc.c for (i = 0; i < ST_SLIM_MAX_CLK && slim_rproc->clks[i]; i++) clks 302 drivers/remoteproc/st_slim_rproc.c clk_put(slim_rproc->clks[i]); clks 325 drivers/remoteproc/st_slim_rproc.c for (clk = 0; clk < ST_SLIM_MAX_CLK && slim_rproc->clks[clk]; clk++) clks 326 drivers/remoteproc/st_slim_rproc.c clk_put(slim_rproc->clks[clk]); clks 98 drivers/rtc/rtc-ac100.c struct ac100_clkout clks[AC100_CLKOUT_NUM]; clks 337 drivers/rtc/rtc-ac100.c struct ac100_clkout *clk = &chip->clks[i]; clks 165 drivers/rtc/rtc-ds1307.c struct clk_hw clks[2]; clks 1324 drivers/rtc/rtc-ds1307.c container_of(clk, struct ds1307, clks[DS3231_CLK_SQW]) clks 1326 drivers/rtc/rtc-ds1307.c container_of(clk, struct ds1307, clks[DS3231_CLK_32KHZ]) clks 1514 drivers/rtc/rtc-ds1307.c onecell->clks = devm_kcalloc(ds1307->dev, onecell->clk_num, clks 1515 drivers/rtc/rtc-ds1307.c sizeof(onecell->clks[0]), GFP_KERNEL); clks 1516 drivers/rtc/rtc-ds1307.c if (!onecell->clks) clks 1532 drivers/rtc/rtc-ds1307.c ds1307->clks[i].init = &init; clks 1534 drivers/rtc/rtc-ds1307.c onecell->clks[i] = devm_clk_register(ds1307->dev, clks 1535 drivers/rtc/rtc-ds1307.c &ds1307->clks[i]); clks 1536 drivers/rtc/rtc-ds1307.c if (IS_ERR(onecell->clks[i])) clks 1537 drivers/rtc/rtc-ds1307.c return PTR_ERR(onecell->clks[i]); clks 94 drivers/sh/clk/cpg.c int __init sh_clk_mstp_register(struct clk *clks, int nr) clks 101 drivers/sh/clk/cpg.c clkp = clks + k; clks 241 drivers/sh/clk/cpg.c static int __init sh_clk_div_register_ops(struct clk *clks, int nr, clks 259 drivers/sh/clk/cpg.c clkp = clks + k; clks 336 drivers/sh/clk/cpg.c int __init sh_clk_div6_register(struct clk *clks, int nr) clks 338 drivers/sh/clk/cpg.c return sh_clk_div_register_ops(clks, nr, &sh_clk_div6_table, clks 342 drivers/sh/clk/cpg.c int __init sh_clk_div6_reparent_register(struct clk *clks, int nr) clks 344 drivers/sh/clk/cpg.c return sh_clk_div_register_ops(clks, nr, &sh_clk_div6_table, clks 389 drivers/sh/clk/cpg.c int __init sh_clk_div4_register(struct clk *clks, int nr, clks 392 drivers/sh/clk/cpg.c return sh_clk_div_register_ops(clks, nr, table, &sh_clk_div_clk_ops); clks 395 drivers/sh/clk/cpg.c int __init sh_clk_div4_enable_register(struct clk *clks, int nr, clks 398 drivers/sh/clk/cpg.c return sh_clk_div_register_ops(clks, nr, table, clks 402 drivers/sh/clk/cpg.c int __init sh_clk_div4_reparent_register(struct clk *clks, int nr, clks 405 drivers/sh/clk/cpg.c return sh_clk_div_register_ops(clks, nr, table, clks 467 drivers/sh/clk/cpg.c int __init sh_clk_fsidiv_register(struct clk *clks, int nr) clks 481 drivers/sh/clk/cpg.c map->phys = (phys_addr_t)clks[i].enable_reg; clks 484 drivers/sh/clk/cpg.c clks[i].enable_reg = 0; /* remove .enable_reg */ clks 485 drivers/sh/clk/cpg.c clks[i].ops = &fsidiv_clk_ops; clks 486 drivers/sh/clk/cpg.c clks[i].mapping = map; clks 488 drivers/sh/clk/cpg.c clk_register(&clks[i]); clks 609 drivers/soc/amlogic/meson-clk-measure.c struct dentry *root, *clks; clks 639 drivers/soc/amlogic/meson-clk-measure.c clks = debugfs_create_dir("clks", root); clks 650 drivers/soc/amlogic/meson-clk-measure.c debugfs_create_file(priv->msr_table[i].name, 0444, clks, clks 227 drivers/soc/amlogic/meson-ee-pwrc.c struct clk_bulk_data *clks; clks 280 drivers/soc/amlogic/meson-ee-pwrc.c pwrc_domain->clks); clks 319 drivers/soc/amlogic/meson-ee-pwrc.c pwrc_domain->clks); clks 346 drivers/soc/amlogic/meson-ee-pwrc.c int ret = devm_clk_bulk_get_all(&pdev->dev, &dom->clks); clks 373 drivers/soc/amlogic/meson-ee-pwrc.c ret = clk_bulk_prepare_enable(dom->num_clks, dom->clks); clks 74 drivers/soc/rockchip/pm_domains.c struct clk_bulk_data *clks; clks 299 drivers/soc/rockchip/pm_domains.c ret = clk_bulk_enable(pd->num_clks, pd->clks); clks 322 drivers/soc/rockchip/pm_domains.c clk_bulk_disable(pd->num_clks, pd->clks); clks 421 drivers/soc/rockchip/pm_domains.c pd->clks = devm_kcalloc(pmu->dev, pd->num_clks, clks 422 drivers/soc/rockchip/pm_domains.c sizeof(*pd->clks), GFP_KERNEL); clks 423 drivers/soc/rockchip/pm_domains.c if (!pd->clks) clks 432 drivers/soc/rockchip/pm_domains.c pd->clks[i].clk = of_clk_get(node, i); clks 433 drivers/soc/rockchip/pm_domains.c if (IS_ERR(pd->clks[i].clk)) { clks 434 drivers/soc/rockchip/pm_domains.c error = PTR_ERR(pd->clks[i].clk); clks 442 drivers/soc/rockchip/pm_domains.c error = clk_bulk_prepare(pd->num_clks, pd->clks); clks 507 drivers/soc/rockchip/pm_domains.c clk_bulk_unprepare(pd->num_clks, pd->clks); clks 509 drivers/soc/rockchip/pm_domains.c clk_bulk_put(pd->num_clks, pd->clks); clks 526 drivers/soc/rockchip/pm_domains.c clk_bulk_unprepare(pd->num_clks, pd->clks); clks 527 drivers/soc/rockchip/pm_domains.c clk_bulk_put(pd->num_clks, pd->clks); clks 149 drivers/soc/tegra/pmc.c struct clk **clks; clks 535 drivers/soc/tegra/pmc.c clk_disable_unprepare(pg->clks[i]); clks 544 drivers/soc/tegra/pmc.c err = clk_prepare_enable(pg->clks[i]); clks 553 drivers/soc/tegra/pmc.c clk_disable_unprepare(pg->clks[i]); clks 771 drivers/soc/tegra/pmc.c pg->clks = &clk; clks 927 drivers/soc/tegra/pmc.c pg->clks = kcalloc(count, sizeof(clk), GFP_KERNEL); clks 928 drivers/soc/tegra/pmc.c if (!pg->clks) clks 932 drivers/soc/tegra/pmc.c pg->clks[i] = of_clk_get(np, i); clks 933 drivers/soc/tegra/pmc.c if (IS_ERR(pg->clks[i])) { clks 934 drivers/soc/tegra/pmc.c err = PTR_ERR(pg->clks[i]); clks 945 drivers/soc/tegra/pmc.c clk_put(pg->clks[i]); clks 947 drivers/soc/tegra/pmc.c kfree(pg->clks); clks 1067 drivers/soc/tegra/pmc.c clk_put(pg->clks[pg->num_clks]); clks 1069 drivers/soc/tegra/pmc.c kfree(pg->clks); clks 1110 drivers/soc/tegra/pmc.c clk_put(pg->clks[pg->num_clks]); clks 1112 drivers/soc/tegra/pmc.c kfree(pg->clks); clks 140 drivers/spi/spi-qcom-qspi.c struct clk_bulk_data clks[QSPI_NUM_CLKS]; clks 238 drivers/spi/spi-qcom-qspi.c ret = clk_set_rate(ctrl->clks[QSPI_CLK_CORE].clk, speed_hz * 4); clks 448 drivers/spi/spi-qcom-qspi.c ctrl->clks[QSPI_CLK_CORE].id = "core"; clks 449 drivers/spi/spi-qcom-qspi.c ctrl->clks[QSPI_CLK_IFACE].id = "iface"; clks 450 drivers/spi/spi-qcom-qspi.c ret = devm_clk_bulk_get(dev, QSPI_NUM_CLKS, ctrl->clks); clks 508 drivers/spi/spi-qcom-qspi.c clk_bulk_disable_unprepare(QSPI_NUM_CLKS, ctrl->clks); clks 518 drivers/spi/spi-qcom-qspi.c return clk_bulk_prepare_enable(QSPI_NUM_CLKS, ctrl->clks); clks 262 drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c clk_wzrd->clk_data.clks = clk_wzrd->clkout; clks 240 drivers/staging/media/imx/imx7-mipi-csis.c struct clk_bulk_data *clks; clks 463 drivers/staging/media/imx/imx7-mipi-csis.c return clk_bulk_prepare_enable(state->num_clks, state->clks); clks 468 drivers/staging/media/imx/imx7-mipi-csis.c clk_bulk_disable_unprepare(state->num_clks, state->clks); clks 478 drivers/staging/media/imx/imx7-mipi-csis.c state->clks = devm_kcalloc(dev, state->num_clks, sizeof(*state->clks), clks 481 drivers/staging/media/imx/imx7-mipi-csis.c if (!state->clks) clks 485 drivers/staging/media/imx/imx7-mipi-csis.c state->clks[i].id = mipi_csis_clk_id[i]; clks 487 drivers/staging/media/imx/imx7-mipi-csis.c ret = devm_clk_bulk_get(dev, state->num_clks, state->clks); clks 130 drivers/tty/serial/sh-sci.c struct clk *clks[SCI_NUM_CLKS]; clks 542 drivers/tty/serial/sh-sci.c clk_prepare_enable(sci_port->clks[i]); clks 543 drivers/tty/serial/sh-sci.c sci_port->clk_rates[i] = clk_get_rate(sci_port->clks[i]); clks 556 drivers/tty/serial/sh-sci.c clk_disable_unprepare(sci_port->clks[i]); clks 2480 drivers/tty/serial/sh-sci.c s->clks[best_clk], baud, min_err); clks 2836 drivers/tty/serial/sh-sci.c sci_port->clks[i] = IS_ERR(clk) ? NULL : clk; clks 700 drivers/usb/dwc3/core.c clk_bulk_disable_unprepare(dwc->num_clks, dwc->clks); clks 1412 drivers/usb/dwc3/core.c dwc->clks = devm_kmemdup(dev, dwc3_core_clks, sizeof(dwc3_core_clks), clks 1414 drivers/usb/dwc3/core.c if (!dwc->clks) clks 1454 drivers/usb/dwc3/core.c ret = devm_clk_bulk_get(dev, dwc->num_clks, dwc->clks); clks 1469 drivers/usb/dwc3/core.c ret = clk_bulk_prepare_enable(dwc->num_clks, dwc->clks); clks 1545 drivers/usb/dwc3/core.c clk_bulk_disable_unprepare(dwc->num_clks, dwc->clks); clks 1583 drivers/usb/dwc3/core.c ret = clk_bulk_prepare_enable(dwc->num_clks, dwc->clks); clks 1594 drivers/usb/dwc3/core.c clk_bulk_disable_unprepare(dwc->num_clks, dwc->clks); clks 1071 drivers/usb/dwc3/core.h struct clk_bulk_data *clks; clks 32 drivers/usb/dwc3/dwc3-exynos.c struct clk *clks[DWC3_EXYNOS_MAX_CLOCKS]; clks 70 drivers/usb/dwc3/dwc3-exynos.c exynos->clks[i] = devm_clk_get(dev, exynos->clk_names[i]); clks 71 drivers/usb/dwc3/dwc3-exynos.c if (IS_ERR(exynos->clks[i])) { clks 74 drivers/usb/dwc3/dwc3-exynos.c return PTR_ERR(exynos->clks[i]); clks 79 drivers/usb/dwc3/dwc3-exynos.c ret = clk_prepare_enable(exynos->clks[i]); clks 82 drivers/usb/dwc3/dwc3-exynos.c clk_disable_unprepare(exynos->clks[i]); clks 88 drivers/usb/dwc3/dwc3-exynos.c clk_prepare_enable(exynos->clks[exynos->suspend_clk_idx]); clks 132 drivers/usb/dwc3/dwc3-exynos.c clk_disable_unprepare(exynos->clks[i]); clks 135 drivers/usb/dwc3/dwc3-exynos.c clk_disable_unprepare(exynos->clks[exynos->suspend_clk_idx]); clks 148 drivers/usb/dwc3/dwc3-exynos.c clk_disable_unprepare(exynos->clks[i]); clks 151 drivers/usb/dwc3/dwc3-exynos.c clk_disable_unprepare(exynos->clks[exynos->suspend_clk_idx]); clks 199 drivers/usb/dwc3/dwc3-exynos.c clk_disable_unprepare(exynos->clks[i]); clks 224 drivers/usb/dwc3/dwc3-exynos.c ret = clk_prepare_enable(exynos->clks[i]); clks 227 drivers/usb/dwc3/dwc3-exynos.c clk_disable_unprepare(exynos->clks[i]); clks 27 drivers/usb/dwc3/dwc3-of-simple.c struct clk_bulk_data *clks; clks 81 drivers/usb/dwc3/dwc3-of-simple.c ret = clk_bulk_get_all(simple->dev, &simple->clks); clks 86 drivers/usb/dwc3/dwc3-of-simple.c ret = clk_bulk_prepare_enable(simple->num_clocks, simple->clks); clks 101 drivers/usb/dwc3/dwc3-of-simple.c clk_bulk_disable_unprepare(simple->num_clocks, simple->clks); clks 102 drivers/usb/dwc3/dwc3-of-simple.c clk_bulk_put_all(simple->num_clocks, simple->clks); clks 120 drivers/usb/dwc3/dwc3-of-simple.c clk_bulk_disable_unprepare(simple->num_clocks, simple->clks); clks 121 drivers/usb/dwc3/dwc3-of-simple.c clk_bulk_put_all(simple->num_clocks, simple->clks); clks 140 drivers/usb/dwc3/dwc3-of-simple.c clk_bulk_disable(simple->num_clocks, simple->clks); clks 149 drivers/usb/dwc3/dwc3-of-simple.c return clk_bulk_enable(simple->num_clocks, simple->clks); clks 60 drivers/usb/dwc3/dwc3-qcom.c struct clk **clks; clks 252 drivers/usb/dwc3/dwc3-qcom.c clk_disable_unprepare(qcom->clks[i]); clks 271 drivers/usb/dwc3/dwc3-qcom.c ret = clk_prepare_enable(qcom->clks[i]); clks 274 drivers/usb/dwc3/dwc3-qcom.c clk_disable_unprepare(qcom->clks[i]); clks 417 drivers/usb/dwc3/dwc3-qcom.c qcom->clks = devm_kcalloc(dev, qcom->num_clocks, clks 419 drivers/usb/dwc3/dwc3-qcom.c if (!qcom->clks) clks 429 drivers/usb/dwc3/dwc3-qcom.c clk_put(qcom->clks[i]); clks 436 drivers/usb/dwc3/dwc3-qcom.c clk_disable_unprepare(qcom->clks[i]); clks 437 drivers/usb/dwc3/dwc3-qcom.c clk_put(qcom->clks[i]); clks 444 drivers/usb/dwc3/dwc3-qcom.c qcom->clks[i] = clk; clks 677 drivers/usb/dwc3/dwc3-qcom.c clk_disable_unprepare(qcom->clks[i]); clks 678 drivers/usb/dwc3/dwc3-qcom.c clk_put(qcom->clks[i]); clks 695 drivers/usb/dwc3/dwc3-qcom.c clk_disable_unprepare(qcom->clks[i]); clks 696 drivers/usb/dwc3/dwc3-qcom.c clk_put(qcom->clks[i]); clks 44 drivers/usb/host/ehci-platform.c struct clk *clks[EHCI_MAX_CLKS]; clks 82 drivers/usb/host/ehci-platform.c for (clk = 0; clk < EHCI_MAX_CLKS && priv->clks[clk]; clk++) { clks 83 drivers/usb/host/ehci-platform.c ret = clk_prepare_enable(priv->clks[clk]); clks 92 drivers/usb/host/ehci-platform.c clk_disable_unprepare(priv->clks[clk]); clks 104 drivers/usb/host/ehci-platform.c if (priv->clks[clk]) clks 105 drivers/usb/host/ehci-platform.c clk_disable_unprepare(priv->clks[clk]); clks 180 drivers/usb/host/ehci-platform.c priv->clks[clk] = of_clk_get(dev->dev.of_node, clk); clks 181 drivers/usb/host/ehci-platform.c if (IS_ERR(priv->clks[clk])) { clks 182 drivers/usb/host/ehci-platform.c err = PTR_ERR(priv->clks[clk]); clks 185 drivers/usb/host/ehci-platform.c priv->clks[clk] = NULL; clks 259 drivers/usb/host/ehci-platform.c clk_put(priv->clks[clk]); clks 283 drivers/usb/host/ehci-platform.c for (clk = 0; clk < EHCI_MAX_CLKS && priv->clks[clk]; clk++) clks 284 drivers/usb/host/ehci-platform.c clk_put(priv->clks[clk]); clks 33 drivers/usb/host/ehci-st.c struct clk *clks[USB_MAX_CLKS]; clks 87 drivers/usb/host/ehci-st.c for (clk = 0; clk < USB_MAX_CLKS && priv->clks[clk]; clk++) { clks 88 drivers/usb/host/ehci-st.c ret = clk_prepare_enable(priv->clks[clk]); clks 107 drivers/usb/host/ehci-st.c clk_disable_unprepare(priv->clks[clk]); clks 131 drivers/usb/host/ehci-st.c if (priv->clks[clk]) clks 132 drivers/usb/host/ehci-st.c clk_disable_unprepare(priv->clks[clk]); clks 185 drivers/usb/host/ehci-st.c priv->clks[clk] = of_clk_get(dev->dev.of_node, clk); clks 186 drivers/usb/host/ehci-st.c if (IS_ERR(priv->clks[clk])) { clks 187 drivers/usb/host/ehci-st.c err = PTR_ERR(priv->clks[clk]); clks 190 drivers/usb/host/ehci-st.c priv->clks[clk] = NULL; clks 247 drivers/usb/host/ehci-st.c clk_put(priv->clks[clk]); clks 269 drivers/usb/host/ehci-st.c for (clk = 0; clk < USB_MAX_CLKS && priv->clks[clk]; clk++) clks 270 drivers/usb/host/ehci-st.c clk_put(priv->clks[clk]); clks 39 drivers/usb/host/ohci-platform.c struct clk *clks[OHCI_MAX_CLKS]; clks 51 drivers/usb/host/ohci-platform.c for (clk = 0; clk < OHCI_MAX_CLKS && priv->clks[clk]; clk++) { clks 52 drivers/usb/host/ohci-platform.c ret = clk_prepare_enable(priv->clks[clk]); clks 61 drivers/usb/host/ohci-platform.c clk_disable_unprepare(priv->clks[clk]); clks 73 drivers/usb/host/ohci-platform.c if (priv->clks[clk]) clks 74 drivers/usb/host/ohci-platform.c clk_disable_unprepare(priv->clks[clk]); clks 148 drivers/usb/host/ohci-platform.c priv->clks[clk] = of_clk_get(dev->dev.of_node, clk); clks 149 drivers/usb/host/ohci-platform.c if (IS_ERR(priv->clks[clk])) { clks 150 drivers/usb/host/ohci-platform.c err = PTR_ERR(priv->clks[clk]); clks 153 drivers/usb/host/ohci-platform.c priv->clks[clk] = NULL; clks 231 drivers/usb/host/ohci-platform.c clk_put(priv->clks[clk]); clks 256 drivers/usb/host/ohci-platform.c for (clk = 0; clk < OHCI_MAX_CLKS && priv->clks[clk]; clk++) clks 257 drivers/usb/host/ohci-platform.c clk_put(priv->clks[clk]); clks 31 drivers/usb/host/ohci-st.c struct clk *clks[USB_MAX_CLKS]; clks 67 drivers/usb/host/ohci-st.c for (clk = 0; clk < USB_MAX_CLKS && priv->clks[clk]; clk++) { clks 68 drivers/usb/host/ohci-st.c ret = clk_prepare_enable(priv->clks[clk]); clks 87 drivers/usb/host/ohci-st.c clk_disable_unprepare(priv->clks[clk]); clks 112 drivers/usb/host/ohci-st.c if (priv->clks[clk]) clks 113 drivers/usb/host/ohci-st.c clk_disable_unprepare(priv->clks[clk]); clks 166 drivers/usb/host/ohci-st.c priv->clks[clk] = of_clk_get(dev->dev.of_node, clk); clks 167 drivers/usb/host/ohci-st.c if (IS_ERR(priv->clks[clk])) { clks 168 drivers/usb/host/ohci-st.c err = PTR_ERR(priv->clks[clk]); clks 171 drivers/usb/host/ohci-st.c priv->clks[clk] = NULL; clks 228 drivers/usb/host/ohci-st.c clk_put(priv->clks[clk]); clks 251 drivers/usb/host/ohci-st.c for (clk = 0; clk < USB_MAX_CLKS && priv->clks[clk]; clk++) clks 252 drivers/usb/host/ohci-st.c clk_put(priv->clks[clk]); clks 305 drivers/usb/renesas_usbhs/common.c priv->clks[0] = of_clk_get(dev_of_node(dev), 0); clks 306 drivers/usb/renesas_usbhs/common.c if (IS_ERR(priv->clks[0])) clks 307 drivers/usb/renesas_usbhs/common.c return PTR_ERR(priv->clks[0]); clks 313 drivers/usb/renesas_usbhs/common.c priv->clks[1] = of_clk_get(dev_of_node(dev), 1); clks 314 drivers/usb/renesas_usbhs/common.c if (PTR_ERR(priv->clks[1]) == -ENOENT) clks 315 drivers/usb/renesas_usbhs/common.c priv->clks[1] = NULL; clks 316 drivers/usb/renesas_usbhs/common.c else if (IS_ERR(priv->clks[1])) clks 317 drivers/usb/renesas_usbhs/common.c return PTR_ERR(priv->clks[1]); clks 329 drivers/usb/renesas_usbhs/common.c for (i = 0; i < ARRAY_SIZE(priv->clks); i++) clks 330 drivers/usb/renesas_usbhs/common.c clk_put(priv->clks[i]); clks 340 drivers/usb/renesas_usbhs/common.c for (i = 0; i < ARRAY_SIZE(priv->clks); i++) { clks 341 drivers/usb/renesas_usbhs/common.c ret = clk_prepare_enable(priv->clks[i]); clks 344 drivers/usb/renesas_usbhs/common.c clk_disable_unprepare(priv->clks[i]); clks 359 drivers/usb/renesas_usbhs/common.c for (i = 0; i < ARRAY_SIZE(priv->clks); i++) clks 360 drivers/usb/renesas_usbhs/common.c clk_disable_unprepare(priv->clks[i]); clks 284 drivers/usb/renesas_usbhs/common.h struct clk *clks[2]; clks 177 drivers/video/fbdev/simplefb.c struct clk **clks; clks 219 drivers/video/fbdev/simplefb.c par->clks = kcalloc(par->clk_count, sizeof(struct clk *), GFP_KERNEL); clks 220 drivers/video/fbdev/simplefb.c if (!par->clks) clks 228 drivers/video/fbdev/simplefb.c if (par->clks[i]) clks 229 drivers/video/fbdev/simplefb.c clk_put(par->clks[i]); clks 231 drivers/video/fbdev/simplefb.c kfree(par->clks); clks 238 drivers/video/fbdev/simplefb.c par->clks[i] = clock; clks 250 drivers/video/fbdev/simplefb.c if (par->clks[i]) { clks 251 drivers/video/fbdev/simplefb.c ret = clk_prepare_enable(par->clks[i]); clks 256 drivers/video/fbdev/simplefb.c clk_put(par->clks[i]); clks 257 drivers/video/fbdev/simplefb.c par->clks[i] = NULL; clks 268 drivers/video/fbdev/simplefb.c if (!par->clks) clks 272 drivers/video/fbdev/simplefb.c if (par->clks[i]) { clks 274 drivers/video/fbdev/simplefb.c clk_disable_unprepare(par->clks[i]); clks 275 drivers/video/fbdev/simplefb.c clk_put(par->clks[i]); clks 279 drivers/video/fbdev/simplefb.c kfree(par->clks); clks 878 include/linux/clk-provider.h struct clk **clks; clks 234 include/linux/clk.h const struct clk_bulk_data *clks); clks 243 include/linux/clk.h clk_bulk_prepare(int num_clks, const struct clk_bulk_data *clks) clks 261 include/linux/clk.h void clk_bulk_unprepare(int num_clks, const struct clk_bulk_data *clks); clks 268 include/linux/clk.h const struct clk_bulk_data *clks) clks 313 include/linux/clk.h struct clk_bulk_data *clks); clks 333 include/linux/clk.h struct clk_bulk_data **clks); clks 346 include/linux/clk.h struct clk_bulk_data *clks); clks 360 include/linux/clk.h struct clk_bulk_data *clks); clks 383 include/linux/clk.h struct clk_bulk_data *clks); clks 399 include/linux/clk.h struct clk_bulk_data **clks); clks 503 include/linux/clk.h const struct clk_bulk_data *clks); clks 537 include/linux/clk.h void clk_bulk_disable(int num_clks, const struct clk_bulk_data *clks); clks 569 include/linux/clk.h void clk_bulk_put(int num_clks, struct clk_bulk_data *clks); clks 582 include/linux/clk.h void clk_bulk_put_all(int num_clks, struct clk_bulk_data *clks); clks 751 include/linux/clk.h struct clk_bulk_data *clks) clks 757 include/linux/clk.h int num_clks, struct clk_bulk_data *clks) clks 763 include/linux/clk.h struct clk_bulk_data **clks) clks 780 include/linux/clk.h struct clk_bulk_data *clks) clks 786 include/linux/clk.h int num_clks, struct clk_bulk_data *clks) clks 792 include/linux/clk.h struct clk_bulk_data **clks) clks 806 include/linux/clk.h static inline void clk_bulk_put(int num_clks, struct clk_bulk_data *clks) {} clks 808 include/linux/clk.h static inline void clk_bulk_put_all(int num_clks, struct clk_bulk_data *clks) {} clks 826 include/linux/clk.h const struct clk_bulk_data *clks) clks 835 include/linux/clk.h const struct clk_bulk_data *clks) {} clks 925 include/linux/clk.h clk_bulk_prepare_enable(int num_clks, const struct clk_bulk_data *clks) clks 929 include/linux/clk.h ret = clk_bulk_prepare(num_clks, clks); clks 932 include/linux/clk.h ret = clk_bulk_enable(num_clks, clks); clks 934 include/linux/clk.h clk_bulk_unprepare(num_clks, clks); clks 940 include/linux/clk.h const struct clk_bulk_data *clks) clks 942 include/linux/clk.h clk_bulk_disable(num_clks, clks); clks 943 include/linux/clk.h clk_bulk_unprepare(num_clks, clks); clks 35 include/linux/platform_data/x86/clk-pmc-atom.h const struct pmc_clk *clks; clks 47 include/linux/remoteproc/st_slim_rproc.h struct clk *clks[ST_SLIM_MAX_CLK]; clks 138 include/linux/sh_clk.h int sh_clk_mstp_register(struct clk *clks, int nr); clks 146 include/linux/sh_clk.h static inline int __deprecated sh_clk_mstp32_register(struct clk *clks, int nr) clks 148 include/linux/sh_clk.h return sh_clk_mstp_register(clks, nr); clks 168 include/linux/sh_clk.h int sh_clk_div4_register(struct clk *clks, int nr, clks 170 include/linux/sh_clk.h int sh_clk_div4_enable_register(struct clk *clks, int nr, clks 172 include/linux/sh_clk.h int sh_clk_div4_reparent_register(struct clk *clks, int nr, clks 197 include/linux/sh_clk.h int sh_clk_div6_register(struct clk *clks, int nr); clks 198 include/linux/sh_clk.h int sh_clk_div6_reparent_register(struct clk *clks, int nr); clks 211 include/linux/sh_clk.h int sh_clk_fsidiv_register(struct clk *clks, int nr); clks 357 sound/soc/intel/skylake/skl-ssp-clk.c struct skl_ssp_clk *clks; clks 362 sound/soc/intel/skylake/skl-ssp-clk.c clks = clk_pdata->ssp_clks; clks 363 sound/soc/intel/skylake/skl-ssp-clk.c if (!parent_clks || !clks) clks 380 sound/soc/intel/skylake/skl-ssp-clk.c if (clks[i].rate_cfg[0].rate == 0) clks 384 sound/soc/intel/skylake/skl-ssp-clk.c &clks[i], clk_pdata, i); clks 684 sound/soc/samsung/i2s.c if (priv->rclk_srcrate == 0 && priv->clk_data.clks == NULL) clks 1324 sound/soc/samsung/i2s.c priv->clk_data.clks = priv->clk_table; clks 545 sound/soc/sh/rcar/adg.c adg->onecell.clks = adg->clkout;