Lines Matching refs:i
108 unsigned int i; in spl_init_pfc() local
110 for (i = 0; i < ARRAY_SIZE(pfc_with_unlock); i++) { in spl_init_pfc()
111 writel(~pfc_with_unlock[i].val, pfc_base); in spl_init_pfc()
112 writel(pfc_with_unlock[i].val, in spl_init_pfc()
113 pfc_base | pfc_with_unlock[i].off); in spl_init_pfc()
116 for (i = 0; i < ARRAY_SIZE(pfc_without_unlock); i++) in spl_init_pfc()
117 writel(pfc_without_unlock[i].val, in spl_init_pfc()
118 pfc_base | pfc_without_unlock[i].off); in spl_init_pfc()
141 unsigned int i; in spl_init_gpio() local
143 for (i = 0; i < ARRAY_SIZE(gpio_offs); i++) in spl_init_gpio()
144 writel(0, gpio_base | 0x20 | gpio_offs[i]); in spl_init_gpio()
146 for (i = 0; i < ARRAY_SIZE(gpio_offs); i++) in spl_init_gpio()
147 writel(0, gpio_base | 0x00 | gpio_offs[i]); in spl_init_gpio()
149 for (i = 0; i < ARRAY_SIZE(gpio_set); i++) in spl_init_gpio()
150 writel(gpio_set[i].val, gpio_base | 0x08 | gpio_set[i].off); in spl_init_gpio()
152 for (i = 0; i < ARRAY_SIZE(gpio_clr); i++) in spl_init_gpio()
153 writel(gpio_clr[i].val, gpio_base | 0x04 | gpio_clr[i].off); in spl_init_gpio()
171 unsigned int i; in spl_init_lbsc() local
173 for (i = 0; i < ARRAY_SIZE(lbsc_config); i++) { in spl_init_lbsc()
174 writel(lbsc_config[i].val, in spl_init_lbsc()
175 lbsc_base | lbsc_config[i].off); in spl_init_lbsc()
176 writel(lbsc_config[i].val, in spl_init_lbsc()
177 lbsc_base | (lbsc_config[i].off + 4)); in spl_init_lbsc()
180 for (i = 0; i < ARRAY_SIZE(lbsc_offs); i++) in spl_init_lbsc()
181 writel(0, lbsc_base | lbsc_offs[i]); in spl_init_lbsc()
332 unsigned int i; in spl_init_dbsc() local
334 for (i = 0; i < ARRAY_SIZE(dbsc_config1); i++) { in spl_init_dbsc()
335 writel(dbsc_config1[i].val, dbsc3_0_base | dbsc_config1[i].off); in spl_init_dbsc()
336 writel(dbsc_config1[i].val, dbsc3_1_base | dbsc_config1[i].off); in spl_init_dbsc()
341 for (i = 0; i < ARRAY_SIZE(dbsc_config2); i++) { in spl_init_dbsc()
342 writel(dbsc_config2[i].val, dbsc3_0_base | dbsc_config2[i].off); in spl_init_dbsc()
343 writel(dbsc_config2[i].val, dbsc3_1_base | dbsc_config2[i].off); in spl_init_dbsc()
347 for (i = 0; i < ARRAY_SIZE(dbsc_config3r0d0); i++) { in spl_init_dbsc()
348 writel(dbsc_config3r0d0[i].val, in spl_init_dbsc()
349 dbsc3_0_base | dbsc_config3r0d0[i].off); in spl_init_dbsc()
351 for (i = 0; i < ARRAY_SIZE(dbsc_config3r0d1); i++) { in spl_init_dbsc()
352 writel(dbsc_config3r0d1[i].val, in spl_init_dbsc()
353 dbsc3_1_base | dbsc_config3r0d1[i].off); in spl_init_dbsc()
356 for (i = 0; i < ARRAY_SIZE(dbsc_config3r2); i++) { in spl_init_dbsc()
357 writel(dbsc_config3r2[i].val, in spl_init_dbsc()
358 dbsc3_0_base | dbsc_config3r2[i].off); in spl_init_dbsc()
359 writel(dbsc_config3r2[i].val, in spl_init_dbsc()
360 dbsc3_1_base | dbsc_config3r2[i].off); in spl_init_dbsc()
364 for (i = 0; i < ARRAY_SIZE(dbsc_config4); i++) { in spl_init_dbsc()
365 writel(dbsc_config4[i].val, dbsc3_0_base | dbsc_config4[i].off); in spl_init_dbsc()
366 writel(dbsc_config4[i].val, dbsc3_1_base | dbsc_config4[i].off); in spl_init_dbsc()
371 for (i = 0; i < ARRAY_SIZE(dbsc_config5); i++) { in spl_init_dbsc()
372 writel(dbsc_config5[i].val, dbsc3_0_base | dbsc_config5[i].off); in spl_init_dbsc()
373 writel(dbsc_config5[i].val, dbsc3_1_base | dbsc_config5[i].off); in spl_init_dbsc()
378 for (i = 0; i < ARRAY_SIZE(dbsc_config6); i++) { in spl_init_dbsc()
379 writel(dbsc_config6[i].val, dbsc3_0_base | dbsc_config6[i].off); in spl_init_dbsc()
380 writel(dbsc_config6[i].val, dbsc3_1_base | dbsc_config6[i].off); in spl_init_dbsc()
385 for (i = 0; i < ARRAY_SIZE(dbsc_config7); i++) { in spl_init_dbsc()
386 writel(dbsc_config7[i].val, dbsc3_0_base | dbsc_config7[i].off); in spl_init_dbsc()
387 writel(dbsc_config7[i].val, dbsc3_1_base | dbsc_config7[i].off); in spl_init_dbsc()
392 for (i = 0; i < ARRAY_SIZE(dbsc_config8); i++) { in spl_init_dbsc()
393 writel(dbsc_config8[i].val, dbsc3_0_base | dbsc_config8[i].off); in spl_init_dbsc()
394 writel(dbsc_config8[i].val, dbsc3_1_base | dbsc_config8[i].off); in spl_init_dbsc()