ccm 29 drivers/clk/imx/clk-imx1.c static void __iomem *ccm __initdata; ccm 30 drivers/clk/imx/clk-imx1.c #define CCM_CSCR (ccm + 0x0000) ccm 31 drivers/clk/imx/clk-imx1.c #define CCM_MPCTL0 (ccm + 0x0004) ccm 32 drivers/clk/imx/clk-imx1.c #define CCM_SPCTL0 (ccm + 0x000c) ccm 33 drivers/clk/imx/clk-imx1.c #define CCM_PCDR (ccm + 0x0020) ccm 34 drivers/clk/imx/clk-imx1.c #define SCM_GCCR (ccm + 0x0810) ccm 38 drivers/clk/imx/clk-imx1.c ccm = of_iomap(np, 0); ccm 39 drivers/clk/imx/clk-imx1.c BUG_ON(!ccm); ccm 23 drivers/clk/imx/clk-imx21.c static void __iomem *ccm __initdata; ccm 26 drivers/clk/imx/clk-imx21.c #define CCM_CSCR (ccm + 0x00) ccm 27 drivers/clk/imx/clk-imx21.c #define CCM_MPCTL0 (ccm + 0x04) ccm 28 drivers/clk/imx/clk-imx21.c #define CCM_SPCTL0 (ccm + 0x0c) ccm 29 drivers/clk/imx/clk-imx21.c #define CCM_PCDR0 (ccm + 0x18) ccm 30 drivers/clk/imx/clk-imx21.c #define CCM_PCDR1 (ccm + 0x1c) ccm 31 drivers/clk/imx/clk-imx21.c #define CCM_PCCR0 (ccm + 0x20) ccm 32 drivers/clk/imx/clk-imx21.c #define CCM_PCCR1 (ccm + 0x24) ccm 44 drivers/clk/imx/clk-imx21.c BUG_ON(!ccm); ccm 124 drivers/clk/imx/clk-imx21.c ccm = ioremap(MX21_CCM_BASE_ADDR, SZ_2K); ccm 163 drivers/clk/imx/clk-imx21.c ccm = of_iomap(np, 0); ccm 91 drivers/clk/imx/clk-imx25.c clk[mpll] = imx_clk_pllv1(IMX_PLLV1_IMX25, "mpll", "osc", ccm(CCM_MPCTL)); ccm 92 drivers/clk/imx/clk-imx25.c clk[upll] = imx_clk_pllv1(IMX_PLLV1_IMX25, "upll", "osc", ccm(CCM_UPCTL)); ccm 94 drivers/clk/imx/clk-imx25.c clk[cpu_sel] = imx_clk_mux("cpu_sel", ccm(CCM_CCTL), 14, 1, cpu_sel_clks, ARRAY_SIZE(cpu_sel_clks)); ccm 95 drivers/clk/imx/clk-imx25.c clk[cpu] = imx_clk_divider("cpu", "cpu_sel", ccm(CCM_CCTL), 30, 2); ccm 96 drivers/clk/imx/clk-imx25.c clk[ahb] = imx_clk_divider("ahb", "cpu", ccm(CCM_CCTL), 28, 2); ccm 97 drivers/clk/imx/clk-imx25.c clk[usb_div] = imx_clk_divider("usb_div", "upll", ccm(CCM_CCTL), 16, 6); ccm 99 drivers/clk/imx/clk-imx25.c clk[per0_sel] = imx_clk_mux("per0_sel", ccm(CCM_MCR), 0, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 100 drivers/clk/imx/clk-imx25.c clk[per1_sel] = imx_clk_mux("per1_sel", ccm(CCM_MCR), 1, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 101 drivers/clk/imx/clk-imx25.c clk[per2_sel] = imx_clk_mux("per2_sel", ccm(CCM_MCR), 2, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 102 drivers/clk/imx/clk-imx25.c clk[per3_sel] = imx_clk_mux("per3_sel", ccm(CCM_MCR), 3, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 103 drivers/clk/imx/clk-imx25.c clk[per4_sel] = imx_clk_mux("per4_sel", ccm(CCM_MCR), 4, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 104 drivers/clk/imx/clk-imx25.c clk[per5_sel] = imx_clk_mux("per5_sel", ccm(CCM_MCR), 5, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 105 drivers/clk/imx/clk-imx25.c clk[per6_sel] = imx_clk_mux("per6_sel", ccm(CCM_MCR), 6, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 106 drivers/clk/imx/clk-imx25.c clk[per7_sel] = imx_clk_mux("per7_sel", ccm(CCM_MCR), 7, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 107 drivers/clk/imx/clk-imx25.c clk[per8_sel] = imx_clk_mux("per8_sel", ccm(CCM_MCR), 8, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 108 drivers/clk/imx/clk-imx25.c clk[per9_sel] = imx_clk_mux("per9_sel", ccm(CCM_MCR), 9, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 109 drivers/clk/imx/clk-imx25.c clk[per10_sel] = imx_clk_mux("per10_sel", ccm(CCM_MCR), 10, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 110 drivers/clk/imx/clk-imx25.c clk[per11_sel] = imx_clk_mux("per11_sel", ccm(CCM_MCR), 11, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 111 drivers/clk/imx/clk-imx25.c clk[per12_sel] = imx_clk_mux("per12_sel", ccm(CCM_MCR), 12, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 112 drivers/clk/imx/clk-imx25.c clk[per13_sel] = imx_clk_mux("per13_sel", ccm(CCM_MCR), 13, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 113 drivers/clk/imx/clk-imx25.c clk[per14_sel] = imx_clk_mux("per14_sel", ccm(CCM_MCR), 14, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 114 drivers/clk/imx/clk-imx25.c clk[per15_sel] = imx_clk_mux("per15_sel", ccm(CCM_MCR), 15, 1, per_sel_clks, ARRAY_SIZE(per_sel_clks)); ccm 115 drivers/clk/imx/clk-imx25.c clk[cko_div] = imx_clk_divider("cko_div", "cko_sel", ccm(CCM_MCR), 24, 6); ccm 116 drivers/clk/imx/clk-imx25.c clk[cko_sel] = imx_clk_mux("cko_sel", ccm(CCM_MCR), 20, 4, cko_sel_clks, ARRAY_SIZE(cko_sel_clks)); ccm 117 drivers/clk/imx/clk-imx25.c clk[cko] = imx_clk_gate("cko", "cko_div", ccm(CCM_MCR), 30); ccm 118 drivers/clk/imx/clk-imx25.c clk[per0] = imx_clk_divider("per0", "per0_sel", ccm(CCM_PCDR0), 0, 6); ccm 119 drivers/clk/imx/clk-imx25.c clk[per1] = imx_clk_divider("per1", "per1_sel", ccm(CCM_PCDR0), 8, 6); ccm 120 drivers/clk/imx/clk-imx25.c clk[per2] = imx_clk_divider("per2", "per2_sel", ccm(CCM_PCDR0), 16, 6); ccm 121 drivers/clk/imx/clk-imx25.c clk[per3] = imx_clk_divider("per3", "per3_sel", ccm(CCM_PCDR0), 24, 6); ccm 122 drivers/clk/imx/clk-imx25.c clk[per4] = imx_clk_divider("per4", "per4_sel", ccm(CCM_PCDR1), 0, 6); ccm 123 drivers/clk/imx/clk-imx25.c clk[per5] = imx_clk_divider("per5", "per5_sel", ccm(CCM_PCDR1), 8, 6); ccm 124 drivers/clk/imx/clk-imx25.c clk[per6] = imx_clk_divider("per6", "per6_sel", ccm(CCM_PCDR1), 16, 6); ccm 125 drivers/clk/imx/clk-imx25.c clk[per7] = imx_clk_divider("per7", "per7_sel", ccm(CCM_PCDR1), 24, 6); ccm 126 drivers/clk/imx/clk-imx25.c clk[per8] = imx_clk_divider("per8", "per8_sel", ccm(CCM_PCDR2), 0, 6); ccm 127 drivers/clk/imx/clk-imx25.c clk[per9] = imx_clk_divider("per9", "per9_sel", ccm(CCM_PCDR2), 8, 6); ccm 128 drivers/clk/imx/clk-imx25.c clk[per10] = imx_clk_divider("per10", "per10_sel", ccm(CCM_PCDR2), 16, 6); ccm 129 drivers/clk/imx/clk-imx25.c clk[per11] = imx_clk_divider("per11", "per11_sel", ccm(CCM_PCDR2), 24, 6); ccm 130 drivers/clk/imx/clk-imx25.c clk[per12] = imx_clk_divider("per12", "per12_sel", ccm(CCM_PCDR3), 0, 6); ccm 131 drivers/clk/imx/clk-imx25.c clk[per13] = imx_clk_divider("per13", "per13_sel", ccm(CCM_PCDR3), 8, 6); ccm 132 drivers/clk/imx/clk-imx25.c clk[per14] = imx_clk_divider("per14", "per14_sel", ccm(CCM_PCDR3), 16, 6); ccm 133 drivers/clk/imx/clk-imx25.c clk[per15] = imx_clk_divider("per15", "per15_sel", ccm(CCM_PCDR3), 24, 6); ccm 134 drivers/clk/imx/clk-imx25.c clk[csi_ipg_per] = imx_clk_gate("csi_ipg_per", "per0", ccm(CCM_CGCR0), 0); ccm 135 drivers/clk/imx/clk-imx25.c clk[epit_ipg_per] = imx_clk_gate("epit_ipg_per", "per1", ccm(CCM_CGCR0), 1); ccm 136 drivers/clk/imx/clk-imx25.c clk[esai_ipg_per] = imx_clk_gate("esai_ipg_per", "per2", ccm(CCM_CGCR0), 2); ccm 137 drivers/clk/imx/clk-imx25.c clk[esdhc1_ipg_per] = imx_clk_gate("esdhc1_ipg_per", "per3", ccm(CCM_CGCR0), 3); ccm 138 drivers/clk/imx/clk-imx25.c clk[esdhc2_ipg_per] = imx_clk_gate("esdhc2_ipg_per", "per4", ccm(CCM_CGCR0), 4); ccm 139 drivers/clk/imx/clk-imx25.c clk[gpt_ipg_per] = imx_clk_gate("gpt_ipg_per", "per5", ccm(CCM_CGCR0), 5); ccm 140 drivers/clk/imx/clk-imx25.c clk[i2c_ipg_per] = imx_clk_gate("i2c_ipg_per", "per6", ccm(CCM_CGCR0), 6); ccm 141 drivers/clk/imx/clk-imx25.c clk[lcdc_ipg_per] = imx_clk_gate("lcdc_ipg_per", "per7", ccm(CCM_CGCR0), 7); ccm 142 drivers/clk/imx/clk-imx25.c clk[nfc_ipg_per] = imx_clk_gate("nfc_ipg_per", "per8", ccm(CCM_CGCR0), 8); ccm 143 drivers/clk/imx/clk-imx25.c clk[owire_ipg_per] = imx_clk_gate("owire_ipg_per", "per9", ccm(CCM_CGCR0), 9); ccm 144 drivers/clk/imx/clk-imx25.c clk[pwm_ipg_per] = imx_clk_gate("pwm_ipg_per", "per10", ccm(CCM_CGCR0), 10); ccm 145 drivers/clk/imx/clk-imx25.c clk[sim1_ipg_per] = imx_clk_gate("sim1_ipg_per", "per11", ccm(CCM_CGCR0), 11); ccm 146 drivers/clk/imx/clk-imx25.c clk[sim2_ipg_per] = imx_clk_gate("sim2_ipg_per", "per12", ccm(CCM_CGCR0), 12); ccm 147 drivers/clk/imx/clk-imx25.c clk[ssi1_ipg_per] = imx_clk_gate("ssi1_ipg_per", "per13", ccm(CCM_CGCR0), 13); ccm 148 drivers/clk/imx/clk-imx25.c clk[ssi2_ipg_per] = imx_clk_gate("ssi2_ipg_per", "per14", ccm(CCM_CGCR0), 14); ccm 149 drivers/clk/imx/clk-imx25.c clk[uart_ipg_per] = imx_clk_gate("uart_ipg_per", "per15", ccm(CCM_CGCR0), 15); ccm 150 drivers/clk/imx/clk-imx25.c clk[ata_ahb] = imx_clk_gate("ata_ahb", "ahb", ccm(CCM_CGCR0), 16); ccm 152 drivers/clk/imx/clk-imx25.c clk[csi_ahb] = imx_clk_gate("csi_ahb", "ahb", ccm(CCM_CGCR0), 18); ccm 153 drivers/clk/imx/clk-imx25.c clk[emi_ahb] = imx_clk_gate("emi_ahb", "ahb", ccm(CCM_CGCR0), 19); ccm 154 drivers/clk/imx/clk-imx25.c clk[esai_ahb] = imx_clk_gate("esai_ahb", "ahb", ccm(CCM_CGCR0), 20); ccm 155 drivers/clk/imx/clk-imx25.c clk[esdhc1_ahb] = imx_clk_gate("esdhc1_ahb", "ahb", ccm(CCM_CGCR0), 21); ccm 156 drivers/clk/imx/clk-imx25.c clk[esdhc2_ahb] = imx_clk_gate("esdhc2_ahb", "ahb", ccm(CCM_CGCR0), 22); ccm 157 drivers/clk/imx/clk-imx25.c clk[fec_ahb] = imx_clk_gate("fec_ahb", "ahb", ccm(CCM_CGCR0), 23); ccm 158 drivers/clk/imx/clk-imx25.c clk[lcdc_ahb] = imx_clk_gate("lcdc_ahb", "ahb", ccm(CCM_CGCR0), 24); ccm 159 drivers/clk/imx/clk-imx25.c clk[rtic_ahb] = imx_clk_gate("rtic_ahb", "ahb", ccm(CCM_CGCR0), 25); ccm 160 drivers/clk/imx/clk-imx25.c clk[sdma_ahb] = imx_clk_gate("sdma_ahb", "ahb", ccm(CCM_CGCR0), 26); ccm 161 drivers/clk/imx/clk-imx25.c clk[slcdc_ahb] = imx_clk_gate("slcdc_ahb", "ahb", ccm(CCM_CGCR0), 27); ccm 162 drivers/clk/imx/clk-imx25.c clk[usbotg_ahb] = imx_clk_gate("usbotg_ahb", "ahb", ccm(CCM_CGCR0), 28); ccm 165 drivers/clk/imx/clk-imx25.c clk[can1_ipg] = imx_clk_gate("can1_ipg", "ipg", ccm(CCM_CGCR1), 2); ccm 166 drivers/clk/imx/clk-imx25.c clk[can2_ipg] = imx_clk_gate("can2_ipg", "ipg", ccm(CCM_CGCR1), 3); ccm 167 drivers/clk/imx/clk-imx25.c clk[csi_ipg] = imx_clk_gate("csi_ipg", "ipg", ccm(CCM_CGCR1), 4); ccm 168 drivers/clk/imx/clk-imx25.c clk[cspi1_ipg] = imx_clk_gate("cspi1_ipg", "ipg", ccm(CCM_CGCR1), 5); ccm 169 drivers/clk/imx/clk-imx25.c clk[cspi2_ipg] = imx_clk_gate("cspi2_ipg", "ipg", ccm(CCM_CGCR1), 6); ccm 170 drivers/clk/imx/clk-imx25.c clk[cspi3_ipg] = imx_clk_gate("cspi3_ipg", "ipg", ccm(CCM_CGCR1), 7); ccm 171 drivers/clk/imx/clk-imx25.c clk[dryice_ipg] = imx_clk_gate("dryice_ipg", "ipg", ccm(CCM_CGCR1), 8); ccm 172 drivers/clk/imx/clk-imx25.c clk[ect_ipg] = imx_clk_gate("ect_ipg", "ipg", ccm(CCM_CGCR1), 9); ccm 173 drivers/clk/imx/clk-imx25.c clk[epit1_ipg] = imx_clk_gate("epit1_ipg", "ipg", ccm(CCM_CGCR1), 10); ccm 174 drivers/clk/imx/clk-imx25.c clk[epit2_ipg] = imx_clk_gate("epit2_ipg", "ipg", ccm(CCM_CGCR1), 11); ccm 176 drivers/clk/imx/clk-imx25.c clk[esdhc1_ipg] = imx_clk_gate("esdhc1_ipg", "ipg", ccm(CCM_CGCR1), 13); ccm 177 drivers/clk/imx/clk-imx25.c clk[esdhc2_ipg] = imx_clk_gate("esdhc2_ipg", "ipg", ccm(CCM_CGCR1), 14); ccm 178 drivers/clk/imx/clk-imx25.c clk[fec_ipg] = imx_clk_gate("fec_ipg", "ipg", ccm(CCM_CGCR1), 15); ccm 182 drivers/clk/imx/clk-imx25.c clk[gpt1_ipg] = imx_clk_gate("gpt1_ipg", "ipg", ccm(CCM_CGCR1), 19); ccm 183 drivers/clk/imx/clk-imx25.c clk[gpt2_ipg] = imx_clk_gate("gpt2_ipg", "ipg", ccm(CCM_CGCR1), 20); ccm 184 drivers/clk/imx/clk-imx25.c clk[gpt3_ipg] = imx_clk_gate("gpt3_ipg", "ipg", ccm(CCM_CGCR1), 21); ccm 185 drivers/clk/imx/clk-imx25.c clk[gpt4_ipg] = imx_clk_gate("gpt4_ipg", "ipg", ccm(CCM_CGCR1), 22); ccm 189 drivers/clk/imx/clk-imx25.c clk[iim_ipg] = imx_clk_gate("iim_ipg", "ipg", ccm(CCM_CGCR1), 26); ccm 192 drivers/clk/imx/clk-imx25.c clk[kpp_ipg] = imx_clk_gate("kpp_ipg", "ipg", ccm(CCM_CGCR1), 28); ccm 193 drivers/clk/imx/clk-imx25.c clk[lcdc_ipg] = imx_clk_gate("lcdc_ipg", "ipg", ccm(CCM_CGCR1), 29); ccm 195 drivers/clk/imx/clk-imx25.c clk[pwm1_ipg] = imx_clk_gate("pwm1_ipg", "ipg", ccm(CCM_CGCR1), 31); ccm 196 drivers/clk/imx/clk-imx25.c clk[pwm2_ipg] = imx_clk_gate("pwm2_ipg", "ipg", ccm(CCM_CGCR2), 0); ccm 197 drivers/clk/imx/clk-imx25.c clk[pwm3_ipg] = imx_clk_gate("pwm3_ipg", "ipg", ccm(CCM_CGCR2), 1); ccm 198 drivers/clk/imx/clk-imx25.c clk[pwm4_ipg] = imx_clk_gate("pwm4_ipg", "ipg", ccm(CCM_CGCR2), 2); ccm 199 drivers/clk/imx/clk-imx25.c clk[rngb_ipg] = imx_clk_gate("rngb_ipg", "ipg", ccm(CCM_CGCR2), 3); ccm 201 drivers/clk/imx/clk-imx25.c clk[scc_ipg] = imx_clk_gate("scc_ipg", "ipg", ccm(CCM_CGCR2), 5); ccm 202 drivers/clk/imx/clk-imx25.c clk[sdma_ipg] = imx_clk_gate("sdma_ipg", "ipg", ccm(CCM_CGCR2), 6); ccm 203 drivers/clk/imx/clk-imx25.c clk[sim1_ipg] = imx_clk_gate("sim1_ipg", "ipg", ccm(CCM_CGCR2), 7); ccm 204 drivers/clk/imx/clk-imx25.c clk[sim2_ipg] = imx_clk_gate("sim2_ipg", "ipg", ccm(CCM_CGCR2), 8); ccm 205 drivers/clk/imx/clk-imx25.c clk[slcdc_ipg] = imx_clk_gate("slcdc_ipg", "ipg", ccm(CCM_CGCR2), 9); ccm 206 drivers/clk/imx/clk-imx25.c clk[spba_ipg] = imx_clk_gate("spba_ipg", "ipg", ccm(CCM_CGCR2), 10); ccm 207 drivers/clk/imx/clk-imx25.c clk[ssi1_ipg] = imx_clk_gate("ssi1_ipg", "ipg", ccm(CCM_CGCR2), 11); ccm 208 drivers/clk/imx/clk-imx25.c clk[ssi2_ipg] = imx_clk_gate("ssi2_ipg", "ipg", ccm(CCM_CGCR2), 12); ccm 209 drivers/clk/imx/clk-imx25.c clk[tsc_ipg] = imx_clk_gate("tsc_ipg", "ipg", ccm(CCM_CGCR2), 13); ccm 210 drivers/clk/imx/clk-imx25.c clk[uart1_ipg] = imx_clk_gate("uart1_ipg", "ipg", ccm(CCM_CGCR2), 14); ccm 211 drivers/clk/imx/clk-imx25.c clk[uart2_ipg] = imx_clk_gate("uart2_ipg", "ipg", ccm(CCM_CGCR2), 15); ccm 212 drivers/clk/imx/clk-imx25.c clk[uart3_ipg] = imx_clk_gate("uart3_ipg", "ipg", ccm(CCM_CGCR2), 16); ccm 213 drivers/clk/imx/clk-imx25.c clk[uart4_ipg] = imx_clk_gate("uart4_ipg", "ipg", ccm(CCM_CGCR2), 17); ccm 214 drivers/clk/imx/clk-imx25.c clk[uart5_ipg] = imx_clk_gate("uart5_ipg", "ipg", ccm(CCM_CGCR2), 18); ccm 216 drivers/clk/imx/clk-imx25.c clk[wdt_ipg] = imx_clk_gate("wdt_ipg", "ipg", ccm(CCM_CGCR2), 19); ccm 238 drivers/clk/imx/clk-imx25.c void __iomem *ccm; ccm 240 drivers/clk/imx/clk-imx25.c ccm = of_iomap(np, 0); ccm 241 drivers/clk/imx/clk-imx25.c __mx25_clocks_init(ccm); ccm 20 drivers/clk/imx/clk-imx27.c static void __iomem *ccm __initdata; ccm 23 drivers/clk/imx/clk-imx27.c #define CCM_CSCR (ccm + 0x00) ccm 24 drivers/clk/imx/clk-imx27.c #define CCM_MPCTL0 (ccm + 0x04) ccm 25 drivers/clk/imx/clk-imx27.c #define CCM_MPCTL1 (ccm + 0x08) ccm 26 drivers/clk/imx/clk-imx27.c #define CCM_SPCTL0 (ccm + 0x0c) ccm 27 drivers/clk/imx/clk-imx27.c #define CCM_SPCTL1 (ccm + 0x10) ccm 28 drivers/clk/imx/clk-imx27.c #define CCM_PCDR0 (ccm + 0x18) ccm 29 drivers/clk/imx/clk-imx27.c #define CCM_PCDR1 (ccm + 0x1c) ccm 30 drivers/clk/imx/clk-imx27.c #define CCM_PCCR0 (ccm + 0x20) ccm 31 drivers/clk/imx/clk-imx27.c #define CCM_PCCR1 (ccm + 0x24) ccm 32 drivers/clk/imx/clk-imx27.c #define CCM_CCSR (ccm + 0x28) ccm 65 drivers/clk/imx/clk-imx27.c BUG_ON(!ccm); ccm 186 drivers/clk/imx/clk-imx27.c ccm = ioremap(MX27_CCM_BASE_ADDR, SZ_4K); ccm 272 drivers/clk/imx/clk-imx27.c ccm = of_iomap(np, 0); ccm 210 drivers/clk/imx/clk-imx31.c void __iomem *ccm; ccm 222 drivers/clk/imx/clk-imx31.c ccm = of_iomap(np, 0); ccm 223 drivers/clk/imx/clk-imx31.c if (!ccm) ccm 226 drivers/clk/imx/clk-imx31.c _mx31_clocks_init(ccm, fref); ccm 142 drivers/crypto/caam/pdb.h struct ipsec_encap_ccm ccm; ccm 208 drivers/crypto/caam/pdb.h struct ipsec_decap_ccm ccm; ccm 64 drivers/crypto/nx/nx-aes-ccm.c memcpy(nx_ctx->priv.ccm.nonce, in_key + key_len, 3); ccm 195 drivers/crypto/nx/nx-aes-ccm.c b1 = nx_ctx->priv.ccm.iauth_tag; ccm 337 drivers/crypto/nx/nx-aes-ccm.c struct nx_ccm_priv *priv = &nx_ctx->priv.ccm; ccm 488 drivers/crypto/nx/nx-aes-ccm.c memcpy(iv + 1, nx_ctx->priv.ccm.nonce, 3); ccm 518 drivers/crypto/nx/nx-aes-ccm.c memcpy(iv + 1, nx_ctx->priv.ccm.nonce, 3); ccm 136 drivers/crypto/nx/nx.h struct nx_ccm_priv ccm; ccm 843 drivers/iommu/fsl_pamu.c void __iomem *ccm = NULL; ccm 895 drivers/iommu/fsl_pamu.c ccm = of_iomap(np, 0); ccm 896 drivers/iommu/fsl_pamu.c if (!ccm) { ccm 902 drivers/iommu/fsl_pamu.c csdids = ccm + 0x600; ccm 955 drivers/iommu/fsl_pamu.c if (ccm) ccm 956 drivers/iommu/fsl_pamu.c iounmap(ccm); ccm 101 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c skb = nfp_ccm_communicate(&bpf->ccm, skb, NFP_CCM_TYPE_BPF_MAP_ALLOC, ccm 136 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c skb = nfp_ccm_communicate(&bpf->ccm, skb, NFP_CCM_TYPE_BPF_MAP_FREE, ccm 333 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c skb = nfp_ccm_communicate(&bpf->ccm, skb, op, 0); ccm 459 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c nfp_ccm_rx(&bpf->ccm, skb); ccm 463 drivers/net/ethernet/netronome/nfp/bpf/main.c err = nfp_ccm_init(&bpf->ccm, app); ccm 496 drivers/net/ethernet/netronome/nfp/bpf/main.c nfp_ccm_clean(&bpf->ccm); ccm 507 drivers/net/ethernet/netronome/nfp/bpf/main.c nfp_ccm_clean(&bpf->ccm); ccm 132 drivers/net/ethernet/netronome/nfp/bpf/main.h struct nfp_ccm ccm; ccm 14 drivers/net/ethernet/netronome/nfp/ccm.c static bool nfp_ccm_all_tags_busy(struct nfp_ccm *ccm) ccm 18 drivers/net/ethernet/netronome/nfp/ccm.c used_tags = ccm->tag_alloc_next - ccm->tag_alloc_last; ccm 23 drivers/net/ethernet/netronome/nfp/ccm.c static int nfp_ccm_alloc_tag(struct nfp_ccm *ccm) ccm 29 drivers/net/ethernet/netronome/nfp/ccm.c if (unlikely(nfp_ccm_all_tags_busy(ccm))) { ccm 30 drivers/net/ethernet/netronome/nfp/ccm.c ccm_warn(ccm->app, "all FW request contexts busy!\n"); ccm 34 drivers/net/ethernet/netronome/nfp/ccm.c WARN_ON(__test_and_set_bit(ccm->tag_alloc_next, ccm->tag_allocator)); ccm 35 drivers/net/ethernet/netronome/nfp/ccm.c return ccm->tag_alloc_next++; ccm 38 drivers/net/ethernet/netronome/nfp/ccm.c static void nfp_ccm_free_tag(struct nfp_ccm *ccm, u16 tag) ccm 40 drivers/net/ethernet/netronome/nfp/ccm.c WARN_ON(!__test_and_clear_bit(tag, ccm->tag_allocator)); ccm 42 drivers/net/ethernet/netronome/nfp/ccm.c while (!test_bit(ccm->tag_alloc_last, ccm->tag_allocator) && ccm 43 drivers/net/ethernet/netronome/nfp/ccm.c ccm->tag_alloc_last != ccm->tag_alloc_next) ccm 44 drivers/net/ethernet/netronome/nfp/ccm.c ccm->tag_alloc_last++; ccm 47 drivers/net/ethernet/netronome/nfp/ccm.c static struct sk_buff *__nfp_ccm_reply(struct nfp_ccm *ccm, u16 tag) ccm 52 drivers/net/ethernet/netronome/nfp/ccm.c skb_queue_walk(&ccm->replies, skb) { ccm 55 drivers/net/ethernet/netronome/nfp/ccm.c nfp_ccm_free_tag(ccm, tag); ccm 56 drivers/net/ethernet/netronome/nfp/ccm.c __skb_unlink(skb, &ccm->replies); ccm 65 drivers/net/ethernet/netronome/nfp/ccm.c nfp_ccm_reply(struct nfp_ccm *ccm, struct nfp_app *app, u16 tag) ccm 70 drivers/net/ethernet/netronome/nfp/ccm.c skb = __nfp_ccm_reply(ccm, tag); ccm 77 drivers/net/ethernet/netronome/nfp/ccm.c nfp_ccm_reply_drop_tag(struct nfp_ccm *ccm, struct nfp_app *app, u16 tag) ccm 82 drivers/net/ethernet/netronome/nfp/ccm.c skb = __nfp_ccm_reply(ccm, tag); ccm 84 drivers/net/ethernet/netronome/nfp/ccm.c nfp_ccm_free_tag(ccm, tag); ccm 91 drivers/net/ethernet/netronome/nfp/ccm.c nfp_ccm_wait_reply(struct nfp_ccm *ccm, struct nfp_app *app, ccm 99 drivers/net/ethernet/netronome/nfp/ccm.c skb = nfp_ccm_reply(ccm, app, tag); ccm 104 drivers/net/ethernet/netronome/nfp/ccm.c err = wait_event_interruptible_timeout(ccm->wq, ccm 105 drivers/net/ethernet/netronome/nfp/ccm.c skb = nfp_ccm_reply(ccm, app, ccm 112 drivers/net/ethernet/netronome/nfp/ccm.c skb = nfp_ccm_reply_drop_tag(ccm, app, tag); ccm 128 drivers/net/ethernet/netronome/nfp/ccm.c nfp_ccm_communicate(struct nfp_ccm *ccm, struct sk_buff *skb, ccm 131 drivers/net/ethernet/netronome/nfp/ccm.c struct nfp_app *app = ccm->app; ccm 136 drivers/net/ethernet/netronome/nfp/ccm.c tag = nfp_ccm_alloc_tag(ccm); ccm 152 drivers/net/ethernet/netronome/nfp/ccm.c skb = nfp_ccm_wait_reply(ccm, app, type, tag); ccm 175 drivers/net/ethernet/netronome/nfp/ccm.c void nfp_ccm_rx(struct nfp_ccm *ccm, struct sk_buff *skb) ccm 177 drivers/net/ethernet/netronome/nfp/ccm.c struct nfp_app *app = ccm->app; ccm 188 drivers/net/ethernet/netronome/nfp/ccm.c if (unlikely(!test_bit(tag, ccm->tag_allocator))) { ccm 194 drivers/net/ethernet/netronome/nfp/ccm.c __skb_queue_tail(&ccm->replies, skb); ccm 195 drivers/net/ethernet/netronome/nfp/ccm.c wake_up_interruptible_all(&ccm->wq); ccm 206 drivers/net/ethernet/netronome/nfp/ccm.c int nfp_ccm_init(struct nfp_ccm *ccm, struct nfp_app *app) ccm 208 drivers/net/ethernet/netronome/nfp/ccm.c ccm->app = app; ccm 209 drivers/net/ethernet/netronome/nfp/ccm.c skb_queue_head_init(&ccm->replies); ccm 210 drivers/net/ethernet/netronome/nfp/ccm.c init_waitqueue_head(&ccm->wq); ccm 214 drivers/net/ethernet/netronome/nfp/ccm.c void nfp_ccm_clean(struct nfp_ccm *ccm) ccm 216 drivers/net/ethernet/netronome/nfp/ccm.c WARN_ON(!skb_queue_empty(&ccm->replies)); ccm 106 drivers/net/ethernet/netronome/nfp/ccm.h int nfp_ccm_init(struct nfp_ccm *ccm, struct nfp_app *app); ccm 107 drivers/net/ethernet/netronome/nfp/ccm.h void nfp_ccm_clean(struct nfp_ccm *ccm); ccm 108 drivers/net/ethernet/netronome/nfp/ccm.h void nfp_ccm_rx(struct nfp_ccm *ccm, struct sk_buff *skb); ccm 110 drivers/net/ethernet/netronome/nfp/ccm.h nfp_ccm_communicate(struct nfp_ccm *ccm, struct sk_buff *skb, ccm 244 drivers/power/supply/abx500_chargalg.c struct abx500_charge_curr_maximization ccm; ccm 818 drivers/power/supply/abx500_chargalg.c di->ccm.original_iset = ccm 820 drivers/power/supply/abx500_chargalg.c di->ccm.current_iset = ccm 822 drivers/power/supply/abx500_chargalg.c di->ccm.test_delta_i = di->bm->maxi->charger_curr_step; ccm 823 drivers/power/supply/abx500_chargalg.c di->ccm.max_current = di->bm->maxi->chg_curr; ccm 824 drivers/power/supply/abx500_chargalg.c di->ccm.condition_cnt = di->bm->maxi->wait_cycles; ccm 825 drivers/power/supply/abx500_chargalg.c di->ccm.level = 0; ccm 844 drivers/power/supply/abx500_chargalg.c delta_i = di->ccm.original_iset - di->batt_data.inst_curr; ccm 848 drivers/power/supply/abx500_chargalg.c di->ccm.wait_cnt); ccm 849 drivers/power/supply/abx500_chargalg.c if (di->ccm.wait_cnt == 0) { ccm 851 drivers/power/supply/abx500_chargalg.c di->ccm.wait_cnt++; ccm 852 drivers/power/supply/abx500_chargalg.c di->ccm.condition_cnt = di->bm->maxi->wait_cycles; ccm 853 drivers/power/supply/abx500_chargalg.c di->ccm.max_current = ccm 854 drivers/power/supply/abx500_chargalg.c di->ccm.current_iset - di->ccm.test_delta_i; ccm 855 drivers/power/supply/abx500_chargalg.c di->ccm.current_iset = di->ccm.max_current; ccm 856 drivers/power/supply/abx500_chargalg.c di->ccm.level--; ccm 861 drivers/power/supply/abx500_chargalg.c di->ccm.wait_cnt = (di->ccm.wait_cnt + 1) % 3; ccm 866 drivers/power/supply/abx500_chargalg.c di->ccm.wait_cnt = 0; ccm 868 drivers/power/supply/abx500_chargalg.c if ((di->batt_data.inst_curr > di->ccm.original_iset)) { ccm 871 drivers/power/supply/abx500_chargalg.c di->batt_data.inst_curr, di->ccm.original_iset, ccm 872 drivers/power/supply/abx500_chargalg.c di->ccm.current_iset); ccm 874 drivers/power/supply/abx500_chargalg.c if (di->ccm.current_iset == di->ccm.original_iset) ccm 877 drivers/power/supply/abx500_chargalg.c di->ccm.condition_cnt = di->bm->maxi->wait_cycles; ccm 878 drivers/power/supply/abx500_chargalg.c di->ccm.current_iset = di->ccm.original_iset; ccm 879 drivers/power/supply/abx500_chargalg.c di->ccm.level = 0; ccm 884 drivers/power/supply/abx500_chargalg.c if (delta_i > di->ccm.test_delta_i && ccm 885 drivers/power/supply/abx500_chargalg.c (di->ccm.current_iset + di->ccm.test_delta_i) < ccm 886 drivers/power/supply/abx500_chargalg.c di->ccm.max_current) { ccm 887 drivers/power/supply/abx500_chargalg.c if (di->ccm.condition_cnt-- == 0) { ccm 889 drivers/power/supply/abx500_chargalg.c di->ccm.condition_cnt = di->bm->maxi->wait_cycles; ccm 890 drivers/power/supply/abx500_chargalg.c di->ccm.current_iset += di->ccm.test_delta_i; ccm 891 drivers/power/supply/abx500_chargalg.c di->ccm.level++; ccm 895 drivers/power/supply/abx500_chargalg.c di->ccm.test_delta_i, ccm 896 drivers/power/supply/abx500_chargalg.c di->ccm.current_iset, ccm 897 drivers/power/supply/abx500_chargalg.c di->ccm.original_iset, ccm 898 drivers/power/supply/abx500_chargalg.c di->ccm.level); ccm 904 drivers/power/supply/abx500_chargalg.c di->ccm.condition_cnt = di->bm->maxi->wait_cycles; ccm 918 drivers/power/supply/abx500_chargalg.c di->ccm.current_iset); ccm 79 drivers/power/supply/cpcap-battery.c int ccm; ccm 692 drivers/power/supply/cpcap-battery.c .ccm = 0x3ff, ccm 749 drivers/power/supply/cpcap-battery.c 0xffff, ddata->config.ccm); ccm 558 drivers/s390/char/sclp_cmd.c u8 ccm; ccm 624 drivers/s390/char/sclp_cmd.c u8 ccm; ccm 2462 drivers/staging/media/ipu3/include/intel-ipu3.h struct ipu3_uapi_ccm_mat_config ccm __attribute__((aligned(32))); ccm 1279 drivers/staging/media/ipu3/ipu3-abi.h struct ipu3_uapi_ccm_mat_config ccm __aligned(32); ccm 2062 drivers/staging/media/ipu3/ipu3-css-params.c acc->ccm = acc_user->ccm; ccm 2065 drivers/staging/media/ipu3/ipu3-css-params.c acc->ccm = acc_old->ccm; ccm 2068 drivers/staging/media/ipu3/ipu3-css-params.c acc->ccm = imgu_css_ccm_defaults;