Searched refs:CEIL_DIV (Results 1 – 2 of 2) sorted by relevance
/linux-2.6.39/drivers/mtd/nand/ |
D | denali.c | 66 #define CEIL_DIV(X, Y) (((X)%(Y)) ? ((X)/(Y)+1) : ((X)/(Y))) macro 260 en_lo = CEIL_DIV(Trp[mode], CLK_X); in nand_onfi_timing_set() 261 en_hi = CEIL_DIV(Treh[mode], CLK_X); in nand_onfi_timing_set() 268 en_lo += CEIL_DIV((Trc[mode] - (en_lo + en_hi) * CLK_X), CLK_X); in nand_onfi_timing_set() 288 acc_clks = CEIL_DIV(Trea[mode], CLK_X); in nand_onfi_timing_set() 297 addr_2_data = CEIL_DIV(Tadl[mode], CLK_X); in nand_onfi_timing_set() 298 re_2_we = CEIL_DIV(Trhw[mode], CLK_X); in nand_onfi_timing_set() 299 re_2_re = CEIL_DIV(Trhz[mode], CLK_X); in nand_onfi_timing_set() 300 we_2_re = CEIL_DIV(Twhr[mode], CLK_X); in nand_onfi_timing_set() 301 cs_cnt = CEIL_DIV((Tcs[mode] - Trp[mode]), CLK_X); in nand_onfi_timing_set() [all …]
|
/linux-2.6.39/drivers/staging/spectra/ |
D | lld_nand.c | 37 #define CEIL_DIV(X, Y) (((X)%(Y)) ? ((X)/(Y)+1) : ((X)/(Y))) macro 186 en_lo = CEIL_DIV(Trp[mode], CLK_X); in NAND_ONFi_Timing_Mode() 187 en_hi = CEIL_DIV(Treh[mode], CLK_X); in NAND_ONFi_Timing_Mode() 195 en_lo += CEIL_DIV((Trc[mode] - (en_lo + en_hi) * CLK_X), CLK_X); in NAND_ONFi_Timing_Mode() 215 acc_clks = CEIL_DIV(Trea[mode], CLK_X); in NAND_ONFi_Timing_Mode() 224 addr_2_data = CEIL_DIV(Tadl[mode], CLK_X); in NAND_ONFi_Timing_Mode() 225 re_2_we = CEIL_DIV(Trhw[mode], CLK_X); in NAND_ONFi_Timing_Mode() 226 re_2_re = CEIL_DIV(Trhz[mode], CLK_X); in NAND_ONFi_Timing_Mode() 227 we_2_re = CEIL_DIV(Twhr[mode], CLK_X); in NAND_ONFi_Timing_Mode() 228 cs_cnt = CEIL_DIV((Tcs[mode] - Trp[mode]), CLK_X); in NAND_ONFi_Timing_Mode() [all …]
|