Lines Matching full:bank
41 unsigned int bank; in s3c2412_print_timing() local
43 for (bank = 0; bank < MAX_BANKS; bank++) { in s3c2412_print_timing()
44 bt = iot->bank[bank].io_2412; in s3c2412_print_timing()
49 "wstoen=%d.%d wstwen=%d.%d wstbrd=%d.%d\n", pfx, bank, in s3c2412_print_timing()
87 * s3c2412_calc_bank - calculate the bank divisor settings.
89 * @bt: The bank timing.
108 * s3c2412_iotiming_debugfs - debugfs show io bank timing information
111 * @iob: The IO bank information to decode.
131 * s3c2412_iotiming_calc - calculate all the bank divisor settings.
133 * @iot: The bank timing information.
142 int bank; in s3c2412_iotiming_calc() local
145 for (bank = 0; bank < MAX_BANKS; bank++) { in s3c2412_iotiming_calc()
146 bt = iot->bank[bank].io_2412; in s3c2412_iotiming_calc()
152 printk(KERN_ERR "%s: cannot calculate bank %d io\n", in s3c2412_iotiming_calc()
153 __func__, bank); in s3c2412_iotiming_calc()
166 * @iot: The bank timing information.
168 * Set the IO bank information from the details calculated earlier from
176 int bank; in s3c2412_iotiming_set() local
180 for (bank = 0; bank < MAX_BANKS; bank++) { in s3c2412_iotiming_set()
181 bt = iot->bank[bank].io_2412; in s3c2412_iotiming_set()
185 regs = S3C2412_SSMC_BANK(bank); in s3c2412_iotiming_set()
203 unsigned int bank) in s3c2412_iotiming_getbank() argument
206 void __iomem *regs = S3C2412_SSMC_BANK(bank); in s3c2412_iotiming_getbank()
216 * bank_is_io - return true if bank is (possibly) IO.
217 * @bank: The bank number.
220 static inline bool bank_is_io(unsigned int bank, u32 bankcfg) in bank_is_io() argument
222 if (bank < 2) in bank_is_io()
225 return !(bankcfg & (1 << bank)); in bank_is_io()
233 unsigned int bank; in s3c2412_iotiming_get() local
237 for (bank = 0; bank < MAX_BANKS; bank++) { in s3c2412_iotiming_get()
238 if (!bank_is_io(bank, bankcfg)) in s3c2412_iotiming_get()
245 timings->bank[bank].io_2412 = bt; in s3c2412_iotiming_get()
246 s3c2412_iotiming_getbank(cfg, bt, bank); in s3c2412_iotiming_get()