Lines Matching refs:tim_mult
74 static unsigned int ns_to_tim_reg(unsigned int tim_mult, unsigned int nsecs) in ns_to_tim_reg() argument
81 1000 * tim_mult); in ns_to_tim_reg()
87 unsigned int tim_mult; in octeon_cf_set_boot_reg_cfg() local
91 tim_mult = 3; in octeon_cf_set_boot_reg_cfg()
94 tim_mult = 0; in octeon_cf_set_boot_reg_cfg()
97 tim_mult = 2; in octeon_cf_set_boot_reg_cfg()
100 tim_mult = 1; in octeon_cf_set_boot_reg_cfg()
106 reg_cfg.s.tim_mult = tim_mult; /* Timing mutiplier */ in octeon_cf_set_boot_reg_cfg()
221 unsigned int tim_mult; in octeon_cf_set_dmamode() local
234 tim_mult = 4; in octeon_cf_set_dmamode()
253 dma_tim.s.oe_n = ns_to_tim_reg(tim_mult, oe_n); in octeon_cf_set_dmamode()
254 dma_tim.s.oe_a = ns_to_tim_reg(tim_mult, oe_a); in octeon_cf_set_dmamode()
260 dma_tim.s.dmack_s = ns_to_tim_reg(tim_mult, 20); in octeon_cf_set_dmamode()
261 dma_tim.s.dmack_h = ns_to_tim_reg(tim_mult, dma_ackh); in octeon_cf_set_dmamode()
264 dma_tim.s.pause = ns_to_tim_reg(tim_mult, pause); in octeon_cf_set_dmamode()
269 dma_tim.s.we_n = ns_to_tim_reg(tim_mult, oe_n); in octeon_cf_set_dmamode()
270 dma_tim.s.we_a = ns_to_tim_reg(tim_mult, oe_a); in octeon_cf_set_dmamode()
272 ata_dev_dbg(dev, "ns to ticks (mult %d) of %d is: %d\n", tim_mult, 60, in octeon_cf_set_dmamode()
273 ns_to_tim_reg(tim_mult, 60)); in octeon_cf_set_dmamode()