Searched refs:base_clock (Results 1 – 5 of 5) sorted by relevance
176 int base_clock = AR7_REF_CLOCK; in tnetd7300_get_clock() local186 base_clock = bus_clock; in tnetd7300_get_clock()189 base_clock = AR7_REF_CLOCK; in tnetd7300_get_clock()192 base_clock = AR7_XTAL_CLOCK; in tnetd7300_get_clock()195 base_clock = cpu_clk.rate; in tnetd7300_get_clock()200 return base_clock / divisor; in tnetd7300_get_clock()203 return (base_clock >> (mul / 16 + 1)) / divisor; in tnetd7300_get_clock()207 (base_clock * mul) >> 1 : in tnetd7300_get_clock()208 (base_clock * (mul - 1)) >> 2; in tnetd7300_get_clock()213 return base_clock / divisor; in tnetd7300_get_clock()[all …]
409 unsigned int timer, base_clock; in atmio16d_ai_cmd() local447 base_clock = CLOCK_1_MHZ; in atmio16d_ai_cmd()450 base_clock = CLOCK_100_KHZ; in atmio16d_ai_cmd()453 base_clock = CLOCK_10_KHZ; in atmio16d_ai_cmd()456 base_clock = CLOCK_1_KHZ; in atmio16d_ai_cmd()460 outw(base_clock, dev->iobase + AM9513A_DATA_REG); in atmio16d_ai_cmd()515 base_clock = CLOCK_1_MHZ; in atmio16d_ai_cmd()518 base_clock = CLOCK_100_KHZ; in atmio16d_ai_cmd()521 base_clock = CLOCK_10_KHZ; in atmio16d_ai_cmd()524 base_clock = CLOCK_1_KHZ; in atmio16d_ai_cmd()[all …]
48 unsigned int base_clock; member624 u32 m = DIV_ROUND_UP(host->base_clock, ios->clock) - 1; in mvsd_set_ios()629 host->ns_per_clk = 1000000000 / (host->base_clock / (m+1)); in mvsd_set_ios()631 ios->clock, host->base_clock / (m+1), m); in mvsd_set_ios()731 host->base_clock = mvsd_data->clock / 2; in mvsd_probe()739 mmc->f_min = DIV_ROUND_UP(host->base_clock, MVSD_BASE_DIV_MAX); in mvsd_probe()
293 unsigned long base_clock; in pwm_freq_from_reg() local296 base_clock = clkin * 1000 / ((clkin == 48000) ? 384 : 256); in pwm_freq_from_reg()297 return base_clock / ((reg & 0x7f) + 1); in pwm_freq_from_reg()304 unsigned long base_clock; in pwm_freq_to_reg() local319 base_clock = clkin * 1000 / ((clkin == 48000) ? 384 : 256); in pwm_freq_to_reg()320 reg1 = SENSORS_LIMIT(DIV_ROUND_CLOSEST(base_clock, val), 1, 128); in pwm_freq_to_reg()321 best1 = base_clock / reg1; in pwm_freq_to_reg()
303 unsigned int base_clock; member1179 info->base_clock = tmp_params.clock_speed; in set_params32()2658 info->base_clock = tmp_params.clock_speed; in set_params()3605 info->base_clock = 14745600; in alloc_dev()3955 unsigned int osc = info->base_clock; in set_rate()4248 ((info->base_clock < (info->params.data_rate * 16)) || in async_mode()4249 (info->base_clock % (info->params.data_rate * 16)))) { in async_mode()