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
83 1000 * tim_mult); in ns_to_tim_reg()
91 unsigned int tim_mult; in octeon_cf_set_boot_reg_cfg() local
95 tim_mult = 3; in octeon_cf_set_boot_reg_cfg()
98 tim_mult = 0; in octeon_cf_set_boot_reg_cfg()
101 tim_mult = 2; in octeon_cf_set_boot_reg_cfg()
104 tim_mult = 1; in octeon_cf_set_boot_reg_cfg()
110 reg_cfg.s.tim_mult = tim_mult; /* Timing mutiplier */ in octeon_cf_set_boot_reg_cfg()
234 unsigned int tim_mult; in octeon_cf_set_dmamode() local
247 tim_mult = 4; in octeon_cf_set_dmamode()
266 dma_tim.s.oe_n = ns_to_tim_reg(tim_mult, oe_n); in octeon_cf_set_dmamode()
267 dma_tim.s.oe_a = ns_to_tim_reg(tim_mult, oe_a); in octeon_cf_set_dmamode()
273 dma_tim.s.dmack_s = ns_to_tim_reg(tim_mult, 20); in octeon_cf_set_dmamode()
274 dma_tim.s.dmack_h = ns_to_tim_reg(tim_mult, dma_ackh); in octeon_cf_set_dmamode()
277 dma_tim.s.pause = ns_to_tim_reg(tim_mult, pause); in octeon_cf_set_dmamode()
282 dma_tim.s.we_n = ns_to_tim_reg(tim_mult, oe_n); in octeon_cf_set_dmamode()
283 dma_tim.s.we_a = ns_to_tim_reg(tim_mult, oe_a); in octeon_cf_set_dmamode()
285 pr_debug("ns to ticks (mult %d) of %d is: %d\n", tim_mult, 60, in octeon_cf_set_dmamode()
286 ns_to_tim_reg(tim_mult, 60)); in octeon_cf_set_dmamode()