rate                7 arch/alpha/include/asm/agp_backend.h 		u32 rate : 3;
rate              978 arch/alpha/kernel/core_marvel.c 		if (agp->mode.bits.rate != 2) 
rate              987 arch/alpha/kernel/core_marvel.c 		if (agp->mode.bits.rate == 2) 
rate             1007 arch/alpha/kernel/core_marvel.c 		       agp->mode.bits.rate,
rate             1010 arch/alpha/kernel/core_marvel.c 		agp->mode.bits.rate = new_rate;
rate             1014 arch/alpha/kernel/core_marvel.c 	       agp->hose->index, agp->mode.bits.rate, 
rate              653 arch/alpha/kernel/core_titan.c 	if (agp->mode.bits.rate & 2) 
rate              656 arch/alpha/kernel/core_titan.c 	if (agp->mode.bits.rate & 4) 
rate              788 arch/alpha/kernel/core_titan.c 	agp->capability.bits.rate = 3; 	/* 2x, 1x */
rate              797 arch/alpha/kernel/core_titan.c 	agp->mode.bits.rate = 1 << pctl.pctl_r_bits.apctl_v_agp_rate;
rate             1244 arch/arm/common/sa1111.c int sa1111_set_audio_rate(struct sa1111_dev *sadev, int rate)
rate             1252 arch/arm/common/sa1111.c 	div = (__sa1111_pll_clock(sachip) / 256 + rate / 2) / rate;
rate               84 arch/arm/include/asm/floppy.h 	raw_cmd->rate = ?;
rate              428 arch/arm/include/asm/hardware/sa1111.h int sa1111_set_audio_rate(struct sa1111_dev *sadev, int rate);
rate               98 arch/arm/kernel/topology.c 		const u32 *rate;
rate              122 arch/arm/kernel/topology.c 		rate = of_get_property(cn, "clock-frequency", &len);
rate              123 arch/arm/kernel/topology.c 		if (!rate || len != 4) {
rate              128 arch/arm/kernel/topology.c 		capacity = ((be32_to_cpup(rate)) >> 20) * cpu_eff->efficiency;
rate             1084 arch/arm/mach-davinci/devices-da8xx.c int __init da850_register_sata_refclk(int rate)
rate             1088 arch/arm/mach-davinci/devices-da8xx.c 	clk = clk_register_fixed_rate(NULL, "sata_refclk", NULL, 0, rate);
rate              109 arch/arm/mach-davinci/include/mach/da8xx.h int da850_register_sata_refclk(int rate);
rate               29 arch/arm/mach-ep93xx/clock.c 	unsigned long	rate;
rate               36 arch/arm/mach-ep93xx/clock.c 	int		(*set_rate)(struct clk *clk, unsigned long rate);
rate               42 arch/arm/mach-ep93xx/clock.c static int set_keytchclk_rate(struct clk *clk, unsigned long rate);
rate               43 arch/arm/mach-ep93xx/clock.c static int set_div_rate(struct clk *clk, unsigned long rate);
rate               44 arch/arm/mach-ep93xx/clock.c static int set_i2s_sclk_rate(struct clk *clk, unsigned long rate);
rate               45 arch/arm/mach-ep93xx/clock.c static int set_i2s_lrclk_rate(struct clk *clk, unsigned long rate);
rate               48 arch/arm/mach-ep93xx/clock.c 	.rate		= EP93XX_EXT_CLK_RATE,
rate              107 arch/arm/mach-ep93xx/clock.c 	.rate		= EP93XX_EXT_CLK_RATE,
rate              111 arch/arm/mach-ep93xx/clock.c 	.rate		= EP93XX_EXT_CLK_RATE,
rate              312 arch/arm/mach-ep93xx/clock.c 	unsigned long rate = clk_get_rate(clk->parent);
rate              317 arch/arm/mach-ep93xx/clock.c 		return rate;
rate              319 arch/arm/mach-ep93xx/clock.c 		return rate / 2;
rate              327 arch/arm/mach-ep93xx/clock.c 	return clk->rate;
rate              331 arch/arm/mach-ep93xx/clock.c static int set_keytchclk_rate(struct clk *clk, unsigned long rate)
rate              347 arch/arm/mach-ep93xx/clock.c 	if (rate == EP93XX_KEYTCHCLK_DIV4)
rate              349 arch/arm/mach-ep93xx/clock.c 	else if (rate == EP93XX_KEYTCHCLK_DIV16)
rate              355 arch/arm/mach-ep93xx/clock.c 	clk->rate = rate;
rate              359 arch/arm/mach-ep93xx/clock.c static int calc_clk_div(struct clk *clk, unsigned long rate,
rate              367 arch/arm/mach-ep93xx/clock.c 	max_rate = max3(clk_pll1.rate / 4, clk_pll2.rate / 4, clk_xtali.rate / 4);
rate              368 arch/arm/mach-ep93xx/clock.c 	rate = min(rate, max_rate);
rate              386 arch/arm/mach-ep93xx/clock.c 		mclk_rate = mclk->rate * 2;
rate              390 arch/arm/mach-ep93xx/clock.c 			__div = mclk_rate / (rate * __pdiv);
rate              396 arch/arm/mach-ep93xx/clock.c 			if (!found || abs(actual_rate - rate) < rate_err) {
rate              402 arch/arm/mach-ep93xx/clock.c 				clk->rate = actual_rate;
rate              403 arch/arm/mach-ep93xx/clock.c 				rate_err = abs(actual_rate - rate);
rate              415 arch/arm/mach-ep93xx/clock.c static int set_div_rate(struct clk *clk, unsigned long rate)
rate              420 arch/arm/mach-ep93xx/clock.c 	err = calc_clk_div(clk, rate, &psel, &esel, &pdiv, &div);
rate              436 arch/arm/mach-ep93xx/clock.c static int set_i2s_sclk_rate(struct clk *clk, unsigned long rate)
rate              440 arch/arm/mach-ep93xx/clock.c 	if (rate == clk_i2s_mclk.rate / 2)
rate              443 arch/arm/mach-ep93xx/clock.c 	else if (rate == clk_i2s_mclk.rate / 4)
rate              449 arch/arm/mach-ep93xx/clock.c 	clk_i2s_sclk.rate = rate;
rate              453 arch/arm/mach-ep93xx/clock.c static int set_i2s_lrclk_rate(struct clk *clk, unsigned long rate)
rate              458 arch/arm/mach-ep93xx/clock.c 	if (rate == clk_i2s_sclk.rate / 32)
rate              461 arch/arm/mach-ep93xx/clock.c 	else if (rate == clk_i2s_sclk.rate / 64)
rate              464 arch/arm/mach-ep93xx/clock.c 	else if (rate == clk_i2s_sclk.rate / 128)
rate              470 arch/arm/mach-ep93xx/clock.c 	clk_i2s_lrclk.rate = rate;
rate              474 arch/arm/mach-ep93xx/clock.c int clk_set_rate(struct clk *clk, unsigned long rate)
rate              477 arch/arm/mach-ep93xx/clock.c 		return clk->set_rate(clk, rate);
rate              483 arch/arm/mach-ep93xx/clock.c long clk_round_rate(struct clk *clk, unsigned long rate)
rate              513 arch/arm/mach-ep93xx/clock.c 	unsigned long long rate;
rate              516 arch/arm/mach-ep93xx/clock.c 	rate = clk_xtali.rate;
rate              517 arch/arm/mach-ep93xx/clock.c 	rate *= ((config_word >> 11) & 0x1f) + 1;		/* X1FBD */
rate              518 arch/arm/mach-ep93xx/clock.c 	rate *= ((config_word >> 5) & 0x3f) + 1;		/* X2FBD */
rate              519 arch/arm/mach-ep93xx/clock.c 	do_div(rate, (config_word & 0x1f) + 1);			/* X2IPD */
rate              521 arch/arm/mach-ep93xx/clock.c 		rate >>= 1;
rate              523 arch/arm/mach-ep93xx/clock.c 	return (unsigned long)rate;
rate              528 arch/arm/mach-ep93xx/clock.c 	clk_m2p0.rate = clk_h.rate;
rate              529 arch/arm/mach-ep93xx/clock.c 	clk_m2p1.rate = clk_h.rate;
rate              530 arch/arm/mach-ep93xx/clock.c 	clk_m2p2.rate = clk_h.rate;
rate              531 arch/arm/mach-ep93xx/clock.c 	clk_m2p3.rate = clk_h.rate;
rate              532 arch/arm/mach-ep93xx/clock.c 	clk_m2p4.rate = clk_h.rate;
rate              533 arch/arm/mach-ep93xx/clock.c 	clk_m2p5.rate = clk_h.rate;
rate              534 arch/arm/mach-ep93xx/clock.c 	clk_m2p6.rate = clk_h.rate;
rate              535 arch/arm/mach-ep93xx/clock.c 	clk_m2p7.rate = clk_h.rate;
rate              536 arch/arm/mach-ep93xx/clock.c 	clk_m2p8.rate = clk_h.rate;
rate              537 arch/arm/mach-ep93xx/clock.c 	clk_m2p9.rate = clk_h.rate;
rate              538 arch/arm/mach-ep93xx/clock.c 	clk_m2m0.rate = clk_h.rate;
rate              539 arch/arm/mach-ep93xx/clock.c 	clk_m2m1.rate = clk_h.rate;
rate              549 arch/arm/mach-ep93xx/clock.c 		clk_pll1.rate = clk_xtali.rate;
rate              551 arch/arm/mach-ep93xx/clock.c 		clk_pll1.rate = calc_pll_rate(value);
rate              554 arch/arm/mach-ep93xx/clock.c 	clk_f.rate = clk_pll1.rate / fclk_divisors[(value >> 25) & 0x7];
rate              555 arch/arm/mach-ep93xx/clock.c 	clk_h.rate = clk_pll1.rate / hclk_divisors[(value >> 20) & 0x7];
rate              556 arch/arm/mach-ep93xx/clock.c 	clk_p.rate = clk_h.rate / pclk_divisors[(value >> 18) & 0x3];
rate              562 arch/arm/mach-ep93xx/clock.c 		clk_pll2.rate = clk_xtali.rate;
rate              564 arch/arm/mach-ep93xx/clock.c 		clk_pll2.rate = calc_pll_rate(value);
rate              566 arch/arm/mach-ep93xx/clock.c 		clk_pll2.rate = 0;
rate              569 arch/arm/mach-ep93xx/clock.c 	clk_usb_host.rate = clk_pll2.rate / (((value >> 28) & 0xf) + 1);
rate              577 arch/arm/mach-ep93xx/clock.c 		clk_spi.rate /= 2;
rate              580 arch/arm/mach-ep93xx/clock.c 		clk_pll1.rate / 1000000, clk_pll2.rate / 1000000);
rate              582 arch/arm/mach-ep93xx/clock.c 		clk_f.rate / 1000000, clk_h.rate / 1000000,
rate              583 arch/arm/mach-ep93xx/clock.c 		clk_p.rate / 1000000);
rate              117 arch/arm/mach-footbridge/dc21285-timer.c 	unsigned rate = DIV_ROUND_CLOSEST(mem_fclk_21285, 16);
rate              119 arch/arm/mach-footbridge/dc21285-timer.c 	clocksource_register_hz(&cksrc_dc21285, rate);
rate              124 arch/arm/mach-footbridge/dc21285-timer.c 	clockevents_config_and_register(ce, rate, 0x4, 0xffffff);
rate              134 arch/arm/mach-footbridge/dc21285-timer.c 	unsigned rate = DIV_ROUND_CLOSEST(mem_fclk_21285, 16);
rate              140 arch/arm/mach-footbridge/dc21285-timer.c 	sched_clock_register(footbridge_read_sched_clock, 24, rate);
rate               81 arch/arm/mach-mmp/clock.c 	unsigned long rate;
rate               84 arch/arm/mach-mmp/clock.c 		rate = clk->ops->getrate(clk);
rate               86 arch/arm/mach-mmp/clock.c 		rate = clk->rate;
rate               88 arch/arm/mach-mmp/clock.c 	return rate;
rate               92 arch/arm/mach-mmp/clock.c int clk_set_rate(struct clk *clk, unsigned long rate)
rate               99 arch/arm/mach-mmp/clock.c 		ret = clk->ops->setrate(clk, rate);
rate               18 arch/arm/mach-mmp/clock.h 	unsigned long	rate;
rate               29 arch/arm/mach-mmp/clock.h 		.rate		= _rate,			\
rate               37 arch/arm/mach-mmp/clock.h 		.rate		= _rate,			\
rate               45 arch/arm/mach-mmp/clock.h 		.rate		= _rate,			\
rate               53 arch/arm/mach-mmp/clock.h 		.rate		= _rate,			\
rate                5 arch/arm/mach-mmp/common.h extern void mmp_timer_init(int irq, unsigned long rate);
rate              184 arch/arm/mach-mmp/time.c void __init mmp_timer_init(int irq, unsigned long rate)
rate              188 arch/arm/mach-mmp/time.c 	sched_clock_register(mmp_read_sched_clock, 32, rate);
rate              194 arch/arm/mach-mmp/time.c 	clocksource_register_hz(&cksrc, rate);
rate              195 arch/arm/mach-mmp/time.c 	clockevents_config_and_register(&ckevt, rate, MIN_DELTA, MAX_DELTA);
rate              209 arch/arm/mach-mmp/time.c 	unsigned long rate;
rate              222 arch/arm/mach-mmp/time.c 		rate = clk_get_rate(clk) / 2;
rate              224 arch/arm/mach-mmp/time.c 		rate = 6500000;
rate              226 arch/arm/mach-mmp/time.c 		rate = 3250000;
rate              239 arch/arm/mach-mmp/time.c 	mmp_timer_init(irq, rate);
rate               54 arch/arm/mach-omap1/clock.c 	return clk->parent->rate / div;
rate              132 arch/arm/mach-omap1/clock.c static int calc_dsor_exp(struct clk *clk, unsigned long rate)
rate              153 arch/arm/mach-omap1/clock.c 	realrate = parent->rate;
rate              155 arch/arm/mach-omap1/clock.c 		if (realrate <= rate)
rate              169 arch/arm/mach-omap1/clock.c 	return clk->parent->rate / dsor;
rate              187 arch/arm/mach-omap1/clock.c 	return clk->parent->rate / dsor;
rate              191 arch/arm/mach-omap1/clock.c int omap1_select_table_rate(struct clk *clk, unsigned long rate)
rate              197 arch/arm/mach-omap1/clock.c 	ref_rate = ck_ref_p->rate;
rate              199 arch/arm/mach-omap1/clock.c 	for (ptr = omap1_rate_table; ptr->rate; ptr++) {
rate              207 arch/arm/mach-omap1/clock.c 		if (ptr->rate <= rate)
rate              211 arch/arm/mach-omap1/clock.c 	if (!ptr->rate)
rate              221 arch/arm/mach-omap1/clock.c 	ck_dpll1_p->rate = ptr->pll_rate;
rate              226 arch/arm/mach-omap1/clock.c int omap1_clk_set_rate_dsp_domain(struct clk *clk, unsigned long rate)
rate              231 arch/arm/mach-omap1/clock.c 	dsor_exp = calc_dsor_exp(clk, rate);
rate              241 arch/arm/mach-omap1/clock.c 	clk->rate = clk->parent->rate / (1 << dsor_exp);
rate              246 arch/arm/mach-omap1/clock.c long omap1_clk_round_rate_ckctl_arm(struct clk *clk, unsigned long rate)
rate              248 arch/arm/mach-omap1/clock.c 	int dsor_exp = calc_dsor_exp(clk, rate);
rate              253 arch/arm/mach-omap1/clock.c 	return clk->parent->rate / (1 << dsor_exp);
rate              256 arch/arm/mach-omap1/clock.c int omap1_clk_set_rate_ckctl_arm(struct clk *clk, unsigned long rate)
rate              261 arch/arm/mach-omap1/clock.c 	dsor_exp = calc_dsor_exp(clk, rate);
rate              272 arch/arm/mach-omap1/clock.c 	clk->rate = clk->parent->rate / (1 << dsor_exp);
rate              276 arch/arm/mach-omap1/clock.c long omap1_round_to_table_rate(struct clk *clk, unsigned long rate)
rate              283 arch/arm/mach-omap1/clock.c 	ref_rate = ck_ref_p->rate;
rate              287 arch/arm/mach-omap1/clock.c 	for (ptr = omap1_rate_table; ptr->rate; ptr++) {
rate              294 arch/arm/mach-omap1/clock.c 		highest_rate = ptr->rate;
rate              297 arch/arm/mach-omap1/clock.c 		if (ptr->rate <= rate)
rate              304 arch/arm/mach-omap1/clock.c static unsigned calc_ext_dsor(unsigned long rate)
rate              320 arch/arm/mach-omap1/clock.c 		if (rate >= 96000000 / dsor)
rate              327 arch/arm/mach-omap1/clock.c int omap1_set_uart_rate(struct clk *clk, unsigned long rate)
rate              332 arch/arm/mach-omap1/clock.c 	if (rate == 12000000)
rate              334 arch/arm/mach-omap1/clock.c 	else if (rate == 48000000)
rate              339 arch/arm/mach-omap1/clock.c 	clk->rate = rate;
rate              345 arch/arm/mach-omap1/clock.c int omap1_set_ext_clk_rate(struct clk *clk, unsigned long rate)
rate              350 arch/arm/mach-omap1/clock.c 	dsor = calc_ext_dsor(rate);
rate              351 arch/arm/mach-omap1/clock.c 	clk->rate = 96000000 / dsor;
rate              363 arch/arm/mach-omap1/clock.c int omap1_set_sossi_rate(struct clk *clk, unsigned long rate)
rate              369 arch/arm/mach-omap1/clock.c 	p_rate = clk->parent->rate;
rate              371 arch/arm/mach-omap1/clock.c 	div = (p_rate + rate - 1) / rate;
rate              381 arch/arm/mach-omap1/clock.c 	clk->rate = p_rate / (div + 1);
rate              386 arch/arm/mach-omap1/clock.c long omap1_round_ext_clk_rate(struct clk *clk, unsigned long rate)
rate              388 arch/arm/mach-omap1/clock.c 	return 96000000 / calc_ext_dsor(rate);
rate              406 arch/arm/mach-omap1/clock.c 	clk-> rate = 96000000 / dsor;
rate              558 arch/arm/mach-omap1/clock.c long omap1_clk_round_rate(struct clk *clk, unsigned long rate)
rate              561 arch/arm/mach-omap1/clock.c 		return clk->round_rate(clk, rate);
rate              563 arch/arm/mach-omap1/clock.c 	return clk->rate;
rate              566 arch/arm/mach-omap1/clock.c int omap1_clk_set_rate(struct clk *clk, unsigned long rate)
rate              571 arch/arm/mach-omap1/clock.c 		ret = clk->set_rate(clk, rate);
rate              657 arch/arm/mach-omap1/clock.c 	ret = clk->rate;
rate              668 arch/arm/mach-omap1/clock.c long clk_round_rate(struct clk *clk, unsigned long rate)
rate              677 arch/arm/mach-omap1/clock.c 	ret = omap1_clk_round_rate(clk, rate);
rate              684 arch/arm/mach-omap1/clock.c int clk_set_rate(struct clk *clk, unsigned long rate)
rate              693 arch/arm/mach-omap1/clock.c 	ret = omap1_clk_set_rate(clk, rate);
rate              723 arch/arm/mach-omap1/clock.c 	return clk->parent->rate;
rate              734 arch/arm/mach-omap1/clock.c 	return clk->parent->rate / clk->fixed_div;
rate              755 arch/arm/mach-omap1/clock.c 			clkp->rate = clkp->recalc(clkp);
rate              775 arch/arm/mach-omap1/clock.c 			clkp->rate = clkp->recalc(clkp);
rate              980 arch/arm/mach-omap1/clock.c 			   c->name, pa ? pa->name : "none", c->rate,
rate              999 arch/arm/mach-omap1/clock.c 	debugfs_create_ulong("rate", S_IRUGO, c->dent, &c->rate);
rate               47 arch/arm/mach-omap1/clock.h #define __clk_get_rate(clk)	(clk->rate)
rate              145 arch/arm/mach-omap1/clock.h 	unsigned long		rate;
rate              165 arch/arm/mach-omap1/clock.h 	long		(*clk_round_rate)(struct clk *clk, unsigned long rate);
rate              166 arch/arm/mach-omap1/clock.h 	int		(*clk_set_rate)(struct clk *clk, unsigned long rate);
rate              195 arch/arm/mach-omap1/clock.h extern long omap1_clk_round_rate(struct clk *clk, unsigned long rate);
rate              196 arch/arm/mach-omap1/clock.h extern int omap1_clk_set_rate(struct clk *clk, unsigned long rate);
rate              198 arch/arm/mach-omap1/clock.h extern int omap1_set_sossi_rate(struct clk *clk, unsigned long rate);
rate              201 arch/arm/mach-omap1/clock.h extern int omap1_clk_set_rate_dsp_domain(struct clk *clk, unsigned long rate);
rate              202 arch/arm/mach-omap1/clock.h extern int omap1_set_uart_rate(struct clk *clk, unsigned long rate);
rate              204 arch/arm/mach-omap1/clock.h extern int omap1_set_ext_clk_rate(struct clk *clk, unsigned long rate);
rate              205 arch/arm/mach-omap1/clock.h extern long omap1_round_ext_clk_rate(struct clk *clk, unsigned long rate);
rate              207 arch/arm/mach-omap1/clock.h extern int omap1_select_table_rate(struct clk *clk, unsigned long rate);
rate              208 arch/arm/mach-omap1/clock.h extern long omap1_round_to_table_rate(struct clk *clk, unsigned long rate);
rate              209 arch/arm/mach-omap1/clock.h extern int omap1_clk_set_rate_ckctl_arm(struct clk *clk, unsigned long rate);
rate              210 arch/arm/mach-omap1/clock.h extern long omap1_clk_round_rate_ckctl_arm(struct clk *clk, unsigned long rate);
rate               78 arch/arm/mach-omap1/clock_data.c 	.rate		= 12000000,
rate              420 arch/arm/mach-omap1/clock_data.c 	.rate		= 12000000,
rate              440 arch/arm/mach-omap1/clock_data.c 		.rate		= 48000000,
rate              459 arch/arm/mach-omap1/clock_data.c 	.rate		= 12000000,
rate              478 arch/arm/mach-omap1/clock_data.c 	.rate		= 12000000,
rate              498 arch/arm/mach-omap1/clock_data.c 		.rate		= 48000000,
rate              510 arch/arm/mach-omap1/clock_data.c 	.rate		= 6000000,
rate              520 arch/arm/mach-omap1/clock_data.c 	.rate		= 48000000, /* Actually 2 clocks, 12MHz and 48MHz */
rate              530 arch/arm/mach-omap1/clock_data.c 	.rate		= 48000000,
rate              541 arch/arm/mach-omap1/clock_data.c 	.rate		= 48000000,
rate              550 arch/arm/mach-omap1/clock_data.c 	.rate		= 12000000,
rate              559 arch/arm/mach-omap1/clock_data.c 	.rate		= 12000000,
rate              568 arch/arm/mach-omap1/clock_data.c 	.rate		= 12000000,
rate              588 arch/arm/mach-omap1/clock_data.c 	.rate		= 12000000,
rate              607 arch/arm/mach-omap1/clock_data.c 	.rate		= 48000000,
rate              622 arch/arm/mach-omap1/clock_data.c 	.rate		= 48000000,
rate              633 arch/arm/mach-omap1/clock_data.c 	.rate		= 48000000,
rate              756 arch/arm/mach-omap1/clock_data.c 		  ck_ref.rate / 1000000, (ck_ref.rate / 100000) % 10,
rate              757 arch/arm/mach-omap1/clock_data.c 		  ck_dpll1.rate / 1000000, (ck_dpll1.rate / 100000) % 10,
rate              758 arch/arm/mach-omap1/clock_data.c 		  arm_ck.rate / 1000000, (arm_ck.rate / 100000) % 10);
rate              813 arch/arm/mach-omap1/clock_data.c 		ck_ref.rate = 13000000;
rate              815 arch/arm/mach-omap1/clock_data.c 		ck_ref.rate = 19200000;
rate              834 arch/arm/mach-omap1/clock_data.c 		ck_dpll1.rate = ck_ref.rate; /* Base xtal rate */
rate              838 arch/arm/mach-omap1/clock_data.c 				ck_dpll1.rate *= (pll_ctl_val & 0xf80) >> 7;
rate              839 arch/arm/mach-omap1/clock_data.c 			ck_dpll1.rate /= ((pll_ctl_val & 0x60) >> 5) + 1;
rate              846 arch/arm/mach-omap1/clock_data.c 				ck_dpll1.rate /= 2;
rate              849 arch/arm/mach-omap1/clock_data.c 				ck_dpll1.rate /= 4;
rate              907 arch/arm/mach-omap1/clock_data.c 	unsigned long rate = ck_dpll1.rate;
rate              916 arch/arm/mach-omap1/clock_data.c 		ck_dpll1.rate = OMAP1_DPLL1_SANE_VALUE;
rate              920 arch/arm/mach-omap1/clock_data.c 	loops_per_jiffy = cpufreq_scale(loops_per_jiffy, rate, ck_dpll1.rate);
rate               16 arch/arm/mach-omap1/opp.h 	unsigned long		rate;
rate              164 arch/arm/mach-omap1/time.c static __init void omap_init_mpu_timer(unsigned long rate)
rate              167 arch/arm/mach-omap1/time.c 	omap_mpu_timer_start(0, (rate / HZ) - 1, 1);
rate              170 arch/arm/mach-omap1/time.c 	clockevents_config_and_register(&clockevent_mpu_timer1, rate,
rate              186 arch/arm/mach-omap1/time.c static void __init omap_init_clocksource(unsigned long rate)
rate              193 arch/arm/mach-omap1/time.c 	sched_clock_register(omap_mpu_read_sched_clock, 32, rate);
rate              195 arch/arm/mach-omap1/time.c 	if (clocksource_mmio_init(&timer->read_tim, "mpu_timer2", rate,
rate              203 arch/arm/mach-omap1/time.c 	unsigned long	rate;
rate              207 arch/arm/mach-omap1/time.c 	rate = clk_get_rate(ck_ref);
rate              211 arch/arm/mach-omap1/time.c 	rate /= 2;
rate              213 arch/arm/mach-omap1/time.c 	omap_init_mpu_timer(rate);
rate              214 arch/arm/mach-omap1/time.c 	omap_init_clocksource(rate);
rate              108 arch/arm/mach-omap2/clkt2xxx_dpllcore.c int omap2_reprogram_dpllcore(struct clk_hw *hw, unsigned long rate,
rate              120 arch/arm/mach-omap2/clkt2xxx_dpllcore.c 	if ((rate == (cur_rate / 2)) && (mult == 2)) {
rate              122 arch/arm/mach-omap2/clkt2xxx_dpllcore.c 	} else if ((rate == (cur_rate * 2)) && (mult == 1)) {
rate              124 arch/arm/mach-omap2/clkt2xxx_dpllcore.c 	} else if (rate != cur_rate) {
rate              125 arch/arm/mach-omap2/clkt2xxx_dpllcore.c 		valid_rate = omap2_dpllcore_round_rate(rate);
rate              126 arch/arm/mach-omap2/clkt2xxx_dpllcore.c 		if (valid_rate != rate)
rate              145 arch/arm/mach-omap2/clkt2xxx_dpllcore.c 		if (rate > low) {
rate              147 arch/arm/mach-omap2/clkt2xxx_dpllcore.c 			mult = ((rate / 2) / 1000000);
rate              151 arch/arm/mach-omap2/clkt2xxx_dpllcore.c 			mult = (rate / 1000000);
rate              160 arch/arm/mach-omap2/clkt2xxx_dpllcore.c 		if (rate == curr_prcm_set->xtal_speed)	/* If asking for 1-1 */
rate               71 arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c long omap2_round_to_table_rate(struct clk_hw *hw, unsigned long rate,
rate               88 arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c 		if (ptr->mpu_speed <= rate)
rate               95 arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c int omap2_select_table_rate(struct clk_hw *hw, unsigned long rate,
rate              110 arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c 		if (prcm->mpu_speed <= rate) {
rate              118 arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c 		       rate / 1000000);
rate              173 arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c 	unsigned long rate;
rate              175 arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c 	rate = omap2xxx_clk_get_core_rate();
rate              181 arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c 		if (prcm->dpll_speed <= rate)
rate               17 arch/arm/mach-omap2/clock2xxx.h int omap2_select_table_rate(struct clk_hw *hw, unsigned long rate,
rate               19 arch/arm/mach-omap2/clock2xxx.h long omap2_round_to_table_rate(struct clk_hw *hw, unsigned long rate,
rate               13 arch/arm/mach-omap2/clock3xxx.h int omap3_core_dpll_m2_set_rate(struct clk_hw *clk, unsigned long rate,
rate              384 arch/arm/mach-omap2/io.c 	long rate;
rate              393 arch/arm/mach-omap2/io.c 	rate = clk_get_rate(dpll3_m2_ck);
rate              394 arch/arm/mach-omap2/io.c 	pr_info("Reprogramming SDRC clock to %ld Hz\n", rate);
rate              395 arch/arm/mach-omap2/io.c 	v = clk_set_rate(dpll3_m2_ck, rate);
rate               33 arch/arm/mach-omap2/omap2-restart.c 	u32 rate;
rate               35 arch/arm/mach-omap2/omap2-restart.c 	rate = clk_get_rate(reset_sys_ck);
rate               36 arch/arm/mach-omap2/omap2-restart.c 	clk_set_rate(reset_virt_prcm_set_ck, rate);
rate               97 arch/arm/mach-omap2/sdrc.c 	while (sp0->rate && sp0->rate != r) {
rate              103 arch/arm/mach-omap2/sdrc.c 	if (!sp0->rate)
rate               68 arch/arm/mach-omap2/sdrc.h 	unsigned long rate;
rate              111 arch/arm/mach-omap2/timer.c 	__omap_dm_timer_stop(&clkev, OMAP_TIMER_POSTED, clkev.rate);
rate              119 arch/arm/mach-omap2/timer.c 	__omap_dm_timer_stop(&clkev, OMAP_TIMER_POSTED, clkev.rate);
rate              121 arch/arm/mach-omap2/timer.c 	period = clkev.rate / HZ;
rate              353 arch/arm/mach-omap2/timer.c 	timer->rate = clk_get_rate(timer->fclk);
rate              392 arch/arm/mach-omap2/timer.c 	clockevents_config_and_register(&clockevent_gpt, clkev.rate,
rate              405 arch/arm/mach-omap2/timer.c 		clkev.rate);
rate              529 arch/arm/mach-omap2/timer.c 	sched_clock_register(dmtimer_read_sched_clock, 32, clksrc.rate);
rate              531 arch/arm/mach-omap2/timer.c 	if (clocksource_register_hz(&clocksource_gpt, clksrc.rate))
rate              536 arch/arm/mach-omap2/timer.c 			clocksource_gpt.name, clksrc.rate);
rate              615 arch/arm/mach-omap2/timer.c 	unsigned long rate;
rate              631 arch/arm/mach-omap2/timer.c 	rate = clk_get_rate(sys_clk);
rate              662 arch/arm/mach-omap2/timer.c 	switch (rate) {
rate              707 arch/arm/mach-omap2/timer.c 	arch_timer_freq = DIV_ROUND_UP_ULL(rate * num, den);
rate              336 arch/arm/mach-omap2/vc.c 	val *= voltdm->sys_clk.rate / 8 / 1000000 + 1;
rate              438 arch/arm/mach-omap2/vc.c 	cycles = voltdm->sys_clk.rate / 1000 * time / 1000;
rate              638 arch/arm/mach-omap2/vc.c 	switch (voltdm->sys_clk.rate) {
rate              656 arch/arm/mach-omap2/vc.c 			voltdm->sys_clk.rate);
rate              257 arch/arm/mach-omap2/voltage.c 		voltdm->sys_clk.rate = clk_get_rate(sys_ck);
rate              258 arch/arm/mach-omap2/voltage.c 		WARN_ON(!voltdm->sys_clk.rate);
rate               80 arch/arm/mach-omap2/voltage.h 		u32 rate;
rate               59 arch/arm/mach-omap2/vp.c 	sys_clk_rate = voltdm->sys_clk.rate / 1000;
rate              101 arch/arm/mach-s3c64xx/mach-crag6410-module.c 		.rate = 48000,
rate              110 arch/arm/mach-s3c64xx/mach-crag6410-module.c 		.rate = 48000,
rate              516 arch/arm/mach-vexpress/spc.c static int spc_set_rate(struct clk_hw *hw, unsigned long rate,
rate              521 arch/arm/mach-vexpress/spc.c 	return ve_spc_set_performance(spc->cluster, rate / 1000);
rate               24 arch/arm/plat-versatile/sched-clock.c void __init versatile_sched_clock_init(void __iomem *reg, unsigned long rate)
rate               27 arch/arm/plat-versatile/sched-clock.c 	sched_clock_register(versatile_read_sched_clock, 32, rate);
rate               83 arch/c6x/include/asm/clock.h 	unsigned long		rate;
rate               92 arch/c6x/include/asm/clock.h 	int (*set_rate) (struct clk *clk, unsigned long rate);
rate               93 arch/c6x/include/asm/clock.h 	int (*round_rate) (struct clk *clk, unsigned long rate);
rate               77 arch/c6x/platforms/pll.c 	return clk->rate;
rate               81 arch/c6x/platforms/pll.c long clk_round_rate(struct clk *clk, unsigned long rate)
rate               87 arch/c6x/platforms/pll.c 		return clk->round_rate(clk, rate);
rate               89 arch/c6x/platforms/pll.c 	return clk->rate;
rate              100 arch/c6x/platforms/pll.c 			clk->rate = clk->recalc(clk);
rate              105 arch/c6x/platforms/pll.c int clk_set_rate(struct clk *clk, unsigned long rate)
rate              114 arch/c6x/platforms/pll.c 		ret = clk->set_rate(clk, rate);
rate              119 arch/c6x/platforms/pll.c 			clk->rate = clk->recalc(clk);
rate              147 arch/c6x/platforms/pll.c 		clk->rate = clk->recalc(clk);
rate              160 arch/c6x/platforms/pll.c 	if (WARN(clk->parent && !clk->parent->rate,
rate              172 arch/c6x/platforms/pll.c 	if (clk->rate)
rate              177 arch/c6x/platforms/pll.c 		clk->rate = clk->recalc(clk);
rate              181 arch/c6x/platforms/pll.c 		clk->rate = clk->parent->rate;
rate              209 arch/c6x/platforms/pll.c 	unsigned long rate = clk->rate;
rate              212 arch/c6x/platforms/pll.c 		return rate;
rate              214 arch/c6x/platforms/pll.c 	rate = clk->parent->rate;
rate              218 arch/c6x/platforms/pll.c 		return rate;
rate              224 arch/c6x/platforms/pll.c 		rate = pll->input_rate;
rate              228 arch/c6x/platforms/pll.c 			 clk->name, rate / 1000);
rate              229 arch/c6x/platforms/pll.c 		return rate;
rate              233 arch/c6x/platforms/pll.c 		rate /= clk->div;
rate              235 arch/c6x/platforms/pll.c 			 clk->name, clk->div, rate / 1000);
rate              236 arch/c6x/platforms/pll.c 		return rate;
rate              246 arch/c6x/platforms/pll.c 	rate /= plldiv;
rate              249 arch/c6x/platforms/pll.c 		 clk->name, plldiv, rate / 1000);
rate              251 arch/c6x/platforms/pll.c 	return rate;
rate              257 arch/c6x/platforms/pll.c 		return clk->rate;
rate              260 arch/c6x/platforms/pll.c 		 clk->name, clk->parent->name,	clk->parent->rate / 1000);
rate              262 arch/c6x/platforms/pll.c 	return clk->parent->rate;
rate              270 arch/c6x/platforms/pll.c 	unsigned long rate = clk->rate;
rate              273 arch/c6x/platforms/pll.c 		return rate;
rate              276 arch/c6x/platforms/pll.c 	rate = pll->input_rate = clk->parent->rate;
rate              304 arch/c6x/platforms/pll.c 			rate /= prediv;
rate              306 arch/c6x/platforms/pll.c 			rate *= mult;
rate              308 arch/c6x/platforms/pll.c 			rate /= postdiv;
rate              312 arch/c6x/platforms/pll.c 			 pll->num, clk->parent->rate / 1000000,
rate              313 arch/c6x/platforms/pll.c 			 prediv, mult, postdiv, rate / 1000000);
rate              316 arch/c6x/platforms/pll.c 			 pll->num, clk->parent->rate / 1000000);
rate              318 arch/c6x/platforms/pll.c 	return rate;
rate              441 arch/c6x/platforms/plldata.c 	clkin1.rate = val;
rate              468 arch/m68k/atari/atakeyb.c void ikbd_joystick_monitor(int rate)
rate              470 arch/m68k/atari/atakeyb.c 	static const char cmd[2] = { 0x17, rate };
rate              128 arch/m68k/coldfire/clk.c 	return clk->rate;
rate              133 arch/m68k/coldfire/clk.c long clk_round_rate(struct clk *clk, unsigned long rate)
rate              140 arch/m68k/coldfire/clk.c int clk_set_rate(struct clk *clk, unsigned long rate)
rate               20 arch/m68k/include/asm/mcfclk.h 	unsigned long rate;
rate               37 arch/m68k/include/asm/mcfclk.h 	.rate = clk_rate, \
rate               47 arch/m68k/include/asm/mcfclk.h                 .rate = clk_rate, \
rate              188 arch/mips/alchemy/common/clock.c 				unsigned long rate,
rate              192 arch/mips/alchemy/common/clock.c 	unsigned long d = rate;
rate              194 arch/mips/alchemy/common/clock.c 	if (rate)
rate              208 arch/mips/alchemy/common/clock.c 					    unsigned long rate,
rate              214 arch/mips/alchemy/common/clock.c 	if (!rate || !*parent_rate)
rate              217 arch/mips/alchemy/common/clock.c 	mult = rate / (*parent_rate);
rate              369 arch/mips/alchemy/common/clock.c static long alchemy_calc_div(unsigned long rate, unsigned long prate,
rate              374 arch/mips/alchemy/common/clock.c 	div1 = prate / rate;
rate              375 arch/mips/alchemy/common/clock.c 	if ((prate / div1) > rate)
rate              426 arch/mips/alchemy/common/clock.c 		if (pr < req->rate)
rate              430 arch/mips/alchemy/common/clock.c 		tdv = alchemy_calc_div(req->rate, pr, scale, maxdiv, NULL);
rate              432 arch/mips/alchemy/common/clock.c 		diff = req->rate - nr;
rate              433 arch/mips/alchemy/common/clock.c 		if (nr > req->rate)
rate              452 arch/mips/alchemy/common/clock.c 			tpr = req->rate * j;
rate              457 arch/mips/alchemy/common/clock.c 			tdv = alchemy_calc_div(req->rate, pr, scale, maxdiv,
rate              460 arch/mips/alchemy/common/clock.c 			diff = req->rate - nr;
rate              461 arch/mips/alchemy/common/clock.c 			if (nr > req->rate)
rate              479 arch/mips/alchemy/common/clock.c 	req->rate = br;
rate              542 arch/mips/alchemy/common/clock.c static int alchemy_clk_fgv1_setr(struct clk_hw *hw, unsigned long rate,
rate              549 arch/mips/alchemy/common/clock.c 	if (!rate || !parent_rate || rate > (parent_rate / 2))
rate              551 arch/mips/alchemy/common/clock.c 	ret = alchemy_calc_div(rate, parent_rate, 2, 512, &div);
rate              663 arch/mips/alchemy/common/clock.c static int alchemy_clk_fgv2_setr(struct clk_hw *hw, unsigned long rate,
rate              670 arch/mips/alchemy/common/clock.c 	if (!rate || !parent_rate || rate > parent_rate)
rate              674 arch/mips/alchemy/common/clock.c 	ret = alchemy_calc_div(rate, parent_rate, v ? 1 : 2,
rate              886 arch/mips/alchemy/common/clock.c static int alchemy_clk_csrc_setr(struct clk_hw *hw, unsigned long rate,
rate              893 arch/mips/alchemy/common/clock.c 	if (!rate || !parent_rate || rate > parent_rate)
rate              896 arch/mips/alchemy/common/clock.c 	d = (parent_rate + (rate / 2)) / rate;
rate               88 arch/mips/ar7/clock.c 	.rate	= 125000000,
rate               92 arch/mips/ar7/clock.c 	.rate	= 150000000,
rate              182 arch/mips/ar7/clock.c 		base_clock = cpu_clk.rate;
rate              209 arch/mips/ar7/clock.c 	int base_clock = bus_clk.rate;
rate              213 arch/mips/ar7/clock.c 		base_clock = bus_clk.rate;
rate              222 arch/mips/ar7/clock.c 		base_clock = cpu_clk.rate;
rate              244 arch/mips/ar7/clock.c 	bus_clk.rate = tnetd7300_get_clock(BUS_PLL_SOURCE_SHIFT,
rate              248 arch/mips/ar7/clock.c 		cpu_clk.rate = tnetd7300_get_clock(CPU_PLL_SOURCE_SHIFT,
rate              251 arch/mips/ar7/clock.c 		cpu_clk.rate = bus_clk.rate;
rate              253 arch/mips/ar7/clock.c 	if (dsp_clk.rate == 250000000)
rate              255 arch/mips/ar7/clock.c 			bootcr, dsp_clk.rate);
rate              340 arch/mips/ar7/clock.c 		bus_clk.rate =
rate              344 arch/mips/ar7/clock.c 			bus_clk.rate);
rate              349 arch/mips/ar7/clock.c 		cpu_clk.rate =
rate              353 arch/mips/ar7/clock.c 			cpu_clk.rate);
rate              362 arch/mips/ar7/clock.c 			cpu_clk.rate = ((cpu_base / cpu_prediv) * cpu_mul)
rate              366 arch/mips/ar7/clock.c 				cpu_clk.rate);
rate              371 arch/mips/ar7/clock.c 			bus_clk.rate = cpu_clk.rate / 2;
rate              374 arch/mips/ar7/clock.c 				dsp_mul * 2, bus_clk.rate);
rate              381 arch/mips/ar7/clock.c 			bus_clk.rate = ((dsp_base / dsp_prediv) * dsp_mul)
rate              385 arch/mips/ar7/clock.c 				dsp_mul * 2, bus_clk.rate);
rate              387 arch/mips/ar7/clock.c 			cpu_clk.rate = bus_clk.rate;
rate              391 arch/mips/ar7/clock.c 	usb_base = bus_clk.rate;
rate              398 arch/mips/ar7/clock.c 	dsp_clk.rate = cpu_clk.rate;
rate              423 arch/mips/ar7/clock.c 	return clk->rate;
rate              457 arch/mips/ar7/clock.c 		dsp_clk.rate = tnetd7300_dsp_clock();
rate              464 arch/mips/ar7/clock.c 	vbus_clk.rate = bus_clk.rate / 2;
rate              468 arch/mips/ar7/clock.c long clk_round_rate(struct clk *clk, unsigned long rate)
rate              475 arch/mips/ar7/clock.c int clk_set_rate(struct clk *clk, unsigned long rate)
rate               60 arch/mips/ath79/clock.c static struct clk * __init ath79_set_clk(int type, unsigned long rate)
rate               65 arch/mips/ath79/clock.c 	clk = clk_register_fixed_rate(NULL, name, NULL, 0, rate);
rate               81 arch/mips/ath79/clock.c static unsigned long __init ath79_setup_ref_clk(unsigned long rate)
rate               86 arch/mips/ath79/clock.c 		rate = clk_get_rate(clk);
rate               88 arch/mips/ath79/clock.c 		clk = ath79_set_clk(ATH79_CLK_REF, rate);
rate               90 arch/mips/ath79/clock.c 	return rate;
rate               23 arch/mips/bcm63xx/clk.c 	unsigned int	rate;
rate              355 arch/mips/bcm63xx/clk.c 	.rate	= (50 * 1000 * 1000),
rate              389 arch/mips/bcm63xx/clk.c 	return clk->rate;
rate              394 arch/mips/bcm63xx/clk.c int clk_set_rate(struct clk *clk, unsigned long rate)
rate              400 arch/mips/bcm63xx/clk.c long clk_round_rate(struct clk *clk, unsigned long rate)
rate              539 arch/mips/bcm63xx/clk.c 		clk_hsspi_pll.rate = HSSPI_PLL_HZ_6328;
rate              555 arch/mips/bcm63xx/clk.c 		clk_hsspi_pll.rate = HSSPI_PLL_HZ_6362;
rate               17 arch/mips/include/asm/clock.h 	int (*set_rate) (struct clk *clk, unsigned long rate, int algo_id);
rate               18 arch/mips/include/asm/clock.h 	long (*round_rate) (struct clk *clk, unsigned long rate);
rate               32 arch/mips/include/asm/clock.h 	unsigned long rate;
rate              135 arch/mips/include/asm/mach-ar7/ar7.h 	unsigned int	rate;
rate              367 arch/mips/include/asm/octeon/cvmx-gmxx-defs.h 		uint64_t rate:4;
rate              385 arch/mips/include/asm/octeon/cvmx-gmxx-defs.h 		uint64_t rate:4;
rate              454 arch/mips/include/asm/octeon/cvmx-gmxx-defs.h 		uint64_t rate:4;
rate              470 arch/mips/include/asm/octeon/cvmx-gmxx-defs.h 		uint64_t rate:4;
rate               50 arch/mips/include/asm/octeon/cvmx-led-defs.h 		uint64_t rate:8;
rate               52 arch/mips/include/asm/octeon/cvmx-led-defs.h 		uint64_t rate:8;
rate               76 arch/mips/include/asm/octeon/cvmx-led-defs.h 		uint64_t rate:16;
rate               78 arch/mips/include/asm/octeon/cvmx-led-defs.h 		uint64_t rate:16;
rate               22 arch/mips/kernel/cevt-ds1287.c 	u8 rate;
rate               26 arch/mips/kernel/cevt-ds1287.c 		rate = 0x9;
rate               29 arch/mips/kernel/cevt-ds1287.c 		rate = 0x8;
rate               32 arch/mips/kernel/cevt-ds1287.c 		rate = 0x6;
rate               38 arch/mips/kernel/cevt-ds1287.c 	CMOS_WRITE(RTC_REF_CLCK_32KHZ | rate, RTC_REG_A);
rate               32 arch/mips/lantiq/clk.c 	cpu_clk_generic[0].rate = cpu;
rate               33 arch/mips/lantiq/clk.c 	cpu_clk_generic[1].rate = fpi;
rate               34 arch/mips/lantiq/clk.c 	cpu_clk_generic[2].rate = io;
rate               35 arch/mips/lantiq/clk.c 	cpu_clk_generic[3].rate = ppe;
rate               70 arch/mips/lantiq/clk.c 	if (clk->rate != 0)
rate               71 arch/mips/lantiq/clk.c 		return clk->rate;
rate               80 arch/mips/lantiq/clk.c int clk_set_rate(struct clk *clk, unsigned long rate)
rate               87 arch/mips/lantiq/clk.c 		while (*r && (*r != rate))
rate               91 arch/mips/lantiq/clk.c 				clk->cl.dev_id, clk->cl.con_id, rate);
rate               95 arch/mips/lantiq/clk.c 	clk->rate = rate;
rate              100 arch/mips/lantiq/clk.c long clk_round_rate(struct clk *clk, unsigned long rate)
rate              107 arch/mips/lantiq/clk.c 		while (*r && (*r != rate))
rate              110 arch/mips/lantiq/clk.c 			return clk->rate;
rate              113 arch/mips/lantiq/clk.c 	return rate;
rate               60 arch/mips/lantiq/clk.h 	unsigned long rate;
rate              255 arch/mips/lantiq/xway/sysctrl.c 		if (clk->rate == CLOCK_33M)
rate              261 arch/mips/lantiq/xway/sysctrl.c 		if (clk->rate == CLOCK_33M)
rate              293 arch/mips/lantiq/xway/sysctrl.c 		if (clk->rates[i] == clk->rate) {
rate              358 arch/mips/lantiq/xway/sysctrl.c 	clk->rate = CLOCK_33M;
rate              398 arch/mips/lantiq/xway/sysctrl.c 		clk->rate = 0;
rate               47 arch/mips/loongson64/lemote-2f/clock.c 	.rate = 800000000,
rate               86 arch/mips/loongson64/lemote-2f/clock.c 	return (unsigned long)clk->rate;
rate               95 arch/mips/loongson64/lemote-2f/clock.c int clk_set_rate(struct clk *clk, unsigned long rate)
rate               97 arch/mips/loongson64/lemote-2f/clock.c 	unsigned int rate_khz = rate / 1000;
rate              106 arch/mips/loongson64/lemote-2f/clock.c 		ret = clk->ops->set_rate(clk, rate, 0);
rate              119 arch/mips/loongson64/lemote-2f/clock.c 	clk->rate = rate;
rate              129 arch/mips/loongson64/lemote-2f/clock.c long clk_round_rate(struct clk *clk, unsigned long rate)
rate              135 arch/mips/loongson64/lemote-2f/clock.c 		rounded = clk->ops->round_rate(clk, rate);
rate              141 arch/mips/loongson64/lemote-2f/clock.c 	return rate;
rate               52 arch/mips/pic32/pic32mzda/time.c 	unsigned long rate = pic32_get_pbclk(7);
rate               56 arch/mips/pic32/pic32mzda/time.c 	pr_info("CPU Clock: %ldMHz\n", rate / 1000000);
rate               57 arch/mips/pic32/pic32mzda/time.c 	mips_hpt_frequency = rate / 2;
rate               20 arch/mips/ralink/clk.c 	unsigned long rate;
rate               23 arch/mips/ralink/clk.c void ralink_clk_add(const char *dev, unsigned long rate)
rate               33 arch/mips/ralink/clk.c 	clk->rate = rate;
rate               57 arch/mips/ralink/clk.c 	return clk->rate;
rate               61 arch/mips/ralink/clk.c int clk_set_rate(struct clk *clk, unsigned long rate)
rate               67 arch/mips/ralink/clk.c long clk_round_rate(struct clk *clk, unsigned long rate)
rate               26 arch/mips/ralink/common.h extern void ralink_clk_add(const char *dev, unsigned long rate);
rate               57 arch/powerpc/include/asm/cpm1.h extern void cpm_setbrg(uint brg, uint rate);
rate              110 arch/powerpc/include/asm/cpm2.h extern void __cpm2_setbrg(uint brg, uint rate, uint clk, int div16, int src);
rate              115 arch/powerpc/include/asm/cpm2.h static inline void cpm_setbrg(uint brg, uint rate)
rate              117 arch/powerpc/include/asm/cpm2.h 	__cpm2_setbrg(brg, rate, CPM2_BRG_UART_CLK, 0, CPM_BRG_EXTC_INT);
rate              123 arch/powerpc/include/asm/cpm2.h static inline void cpm2_fastbrg(uint brg, uint rate, int div16)
rate              125 arch/powerpc/include/asm/cpm2.h 	__cpm2_setbrg(brg, rate, CPM2_BRG_INT_CLK, div16, CPM_BRG_EXTC_INT);
rate              218 arch/powerpc/platforms/512x/clock-commonclk.c static inline struct clk *mpc512x_clk_fixed(const char *name, int rate)
rate              220 arch/powerpc/platforms/512x/clock-commonclk.c 	return clk_register_fixed_rate(NULL, name, NULL, 0, rate);
rate              278 arch/powerpc/platforms/8xx/cpm1.c cpm_setbrg(uint brg, uint rate)
rate              289 arch/powerpc/platforms/8xx/cpm1.c 	if (((BRG_UART_CLK / rate) - 1) < 4096)
rate              290 arch/powerpc/platforms/8xx/cpm1.c 		out_be32(bp, (((BRG_UART_CLK / rate) - 1) << 1) | CPM_BRG_EN);
rate              292 arch/powerpc/platforms/8xx/cpm1.c 		out_be32(bp, (((BRG_UART_CLK_DIV16 / rate) - 1) << 1) |
rate              319 arch/powerpc/platforms/powernv/ocxl.c static void set_templ_rate(unsigned int templ, unsigned int rate, char *buf)
rate              326 arch/powerpc/platforms/powernv/ocxl.c 	buf[idx] |= rate << shift;
rate              115 arch/powerpc/sysdev/cpm2.c void __cpm2_setbrg(uint brg, uint rate, uint clk, int div16, int src)
rate              130 arch/powerpc/sysdev/cpm2.c 	val = (((clk * 2 / rate) - 1) & ~1) | CPM_BRG_EN | src;
rate              285 arch/s390/include/asm/cpu_mf.h 						unsigned long rate)
rate              287 arch/s390/include/asm/cpu_mf.h 	return USEC_PER_SEC * qsi->cpu_speed / rate;
rate              622 arch/s390/kernel/perf_cpum_sf.c 				   unsigned long rate)
rate              624 arch/s390/kernel/perf_cpum_sf.c 	return clamp_t(unsigned long, rate,
rate              692 arch/s390/kernel/perf_cpum_sf.c 	unsigned long rate;
rate              695 arch/s390/kernel/perf_cpum_sf.c 		rate = freq_to_sample_rate(si, sample);
rate              696 arch/s390/kernel/perf_cpum_sf.c 		rate = hw_limit_rate(si, rate);
rate              702 arch/s390/kernel/perf_cpum_sf.c 		rate = hw_limit_rate(si, sample);
rate              710 arch/s390/kernel/perf_cpum_sf.c 		if (sample_rate_to_freq(si, rate) >
rate              715 arch/s390/kernel/perf_cpum_sf.c 			rate = 0;
rate              718 arch/s390/kernel/perf_cpum_sf.c 	return rate;
rate              743 arch/s390/kernel/perf_cpum_sf.c 	unsigned long rate;
rate              748 arch/s390/kernel/perf_cpum_sf.c 		rate = getrate(attr->freq, attr->sample_freq, si);
rate              752 arch/s390/kernel/perf_cpum_sf.c 		rate = getrate(attr->freq, attr->sample_period, si);
rate              753 arch/s390/kernel/perf_cpum_sf.c 		if (!rate)
rate              756 arch/s390/kernel/perf_cpum_sf.c 	attr->sample_period = rate;
rate              757 arch/s390/kernel/perf_cpum_sf.c 	SAMPL_RATE(hwc) = rate;
rate             1802 arch/s390/kernel/perf_cpum_sf.c 	unsigned long rate;
rate             1819 arch/s390/kernel/perf_cpum_sf.c 	rate = getrate(do_freq, value, &si);
rate             1820 arch/s390/kernel/perf_cpum_sf.c 	if (!rate)
rate             1823 arch/s390/kernel/perf_cpum_sf.c 	event->attr.sample_period = rate;
rate             1824 arch/s390/kernel/perf_cpum_sf.c 	SAMPL_RATE(&event->hw) = rate;
rate              131 arch/sh/drivers/pci/pcie-sh7786.c 	.rate = 100000000,	/* 100 MHz reference clock */
rate               11 arch/sh/kernel/cpu/clock-cpg.c 	.rate		= CONFIG_SH_PCLK_FREQ,
rate               25 arch/sh/kernel/cpu/sh2/clock-sh7619.c 	clk->rate *= pll2_mult * pll1rate[(__raw_readw(FREQCR) >> 8) & 7];
rate               35 arch/sh/kernel/cpu/sh2/clock-sh7619.c 	return clk->parent->rate / pfc_divisors[idx];
rate               44 arch/sh/kernel/cpu/sh2/clock-sh7619.c 	return clk->parent->rate / pll1rate[(__raw_readw(FREQCR) >> 8) & 7];
rate               26 arch/sh/kernel/cpu/sh2a/clock-sh7201.c 	clk->rate = 10000000 * pll2_mult *
rate               37 arch/sh/kernel/cpu/sh2a/clock-sh7201.c 	return clk->parent->rate / pfc_divisors[idx];
rate               47 arch/sh/kernel/cpu/sh2a/clock-sh7201.c 	return clk->parent->rate / pfc_divisors[idx];
rate               57 arch/sh/kernel/cpu/sh2a/clock-sh7201.c 	return clk->parent->rate / ifc_divisors[idx];
rate               29 arch/sh/kernel/cpu/sh2a/clock-sh7203.c 	clk->rate *= pll1rate[(__raw_readw(FREQCR) >> 8) & 0x0003] * pll2_mult;
rate               39 arch/sh/kernel/cpu/sh2a/clock-sh7203.c 	return clk->parent->rate / pfc_divisors[idx];
rate               49 arch/sh/kernel/cpu/sh2a/clock-sh7203.c 	return clk->parent->rate / pfc_divisors[idx-2];
rate               26 arch/sh/kernel/cpu/sh2a/clock-sh7206.c 	clk->rate *= pll2_mult * pll1rate[(__raw_readw(FREQCR) >> 8) & 0x0007];
rate               36 arch/sh/kernel/cpu/sh2a/clock-sh7206.c 	return clk->parent->rate / pfc_divisors[idx];
rate               45 arch/sh/kernel/cpu/sh2a/clock-sh7206.c 	return clk->parent->rate / pll1rate[(__raw_readw(FREQCR) >> 8) & 0x0007];
rate               55 arch/sh/kernel/cpu/sh2a/clock-sh7206.c 	return clk->parent->rate / ifc_divisors[idx];
rate               30 arch/sh/kernel/cpu/sh2a/clock-sh7264.c 	.rate           = 32768,
rate               38 arch/sh/kernel/cpu/sh2a/clock-sh7264.c 	.rate		= 18000000,
rate               43 arch/sh/kernel/cpu/sh2a/clock-sh7264.c 	unsigned long rate = clk->parent->rate / pll1_div;
rate               44 arch/sh/kernel/cpu/sh2a/clock-sh7264.c 	return rate * pll1rate[(__raw_readw(FRQCR) >> 8) & 1];
rate               27 arch/sh/kernel/cpu/sh2a/clock-sh7269.c 	.rate           = 32768,
rate               35 arch/sh/kernel/cpu/sh2a/clock-sh7269.c 	.rate		= 13340000,
rate               40 arch/sh/kernel/cpu/sh2a/clock-sh7269.c 	return clk->parent->rate * PLL_RATE;
rate               55 arch/sh/kernel/cpu/sh2a/clock-sh7269.c 	return clk->parent->rate / 8;
rate               70 arch/sh/kernel/cpu/sh2a/clock-sh7269.c 	return clk->parent->rate / 4;
rate               31 arch/sh/kernel/cpu/sh3/clock-sh3.c 	clk->rate *= pfc_divisors[idx];
rate               43 arch/sh/kernel/cpu/sh3/clock-sh3.c 	return clk->parent->rate / pfc_divisors[idx];
rate               55 arch/sh/kernel/cpu/sh3/clock-sh3.c 	return clk->parent->rate / stc_multipliers[idx];
rate               67 arch/sh/kernel/cpu/sh3/clock-sh3.c 	return clk->parent->rate / ifc_divisors[idx];
rate               32 arch/sh/kernel/cpu/sh3/clock-sh7705.c 	clk->rate *= pfc_divisors[__raw_readw(FRQCR) & 0x0003];
rate               42 arch/sh/kernel/cpu/sh3/clock-sh7705.c 	return clk->parent->rate / pfc_divisors[idx];
rate               52 arch/sh/kernel/cpu/sh3/clock-sh7705.c 	return clk->parent->rate / stc_multipliers[idx];
rate               62 arch/sh/kernel/cpu/sh3/clock-sh7705.c 	return clk->parent->rate / ifc_divisors[idx];
rate               27 arch/sh/kernel/cpu/sh3/clock-sh7706.c 	clk->rate *= pfc_divisors[idx];
rate               39 arch/sh/kernel/cpu/sh3/clock-sh7706.c 	return clk->parent->rate / pfc_divisors[idx];
rate               51 arch/sh/kernel/cpu/sh3/clock-sh7706.c 	return clk->parent->rate / stc_multipliers[idx];
rate               63 arch/sh/kernel/cpu/sh3/clock-sh7706.c 	return clk->parent->rate / ifc_divisors[idx];
rate               27 arch/sh/kernel/cpu/sh3/clock-sh7709.c 	clk->rate *= pfc_divisors[idx];
rate               39 arch/sh/kernel/cpu/sh3/clock-sh7709.c 	return clk->parent->rate / pfc_divisors[idx];
rate               52 arch/sh/kernel/cpu/sh3/clock-sh7709.c 	return clk->parent->rate * stc_multipliers[idx];
rate               64 arch/sh/kernel/cpu/sh3/clock-sh7709.c 	return clk->parent->rate / ifc_divisors[idx];
rate               26 arch/sh/kernel/cpu/sh3/clock-sh7710.c 	clk->rate *= md_table[__raw_readw(FRQCR) & 0x0007];
rate               36 arch/sh/kernel/cpu/sh3/clock-sh7710.c 	return clk->parent->rate / md_table[idx];
rate               46 arch/sh/kernel/cpu/sh3/clock-sh7710.c 	return clk->parent->rate / md_table[idx];
rate               56 arch/sh/kernel/cpu/sh3/clock-sh7710.c 	return clk->parent->rate / md_table[idx];
rate               26 arch/sh/kernel/cpu/sh3/clock-sh7712.c 	clk->rate *= multipliers[idx];
rate               38 arch/sh/kernel/cpu/sh3/clock-sh7712.c 	return clk->parent->rate / divisors[idx];
rate               50 arch/sh/kernel/cpu/sh3/clock-sh7712.c 	return clk->parent->rate / divisors[idx];
rate               25 arch/sh/kernel/cpu/sh4/clock-sh4-202.c 	return clk->parent->rate / frqcr3_divisors[idx];
rate               28 arch/sh/kernel/cpu/sh4/clock-sh4-202.c static inline int frqcr3_lookup(struct clk *clk, unsigned long rate)
rate               30 arch/sh/kernel/cpu/sh4/clock-sh4-202.c 	int divisor = clk->parent->rate / rate;
rate               53 arch/sh/kernel/cpu/sh4/clock-sh4-202.c 	return clk->parent->rate / frqcr3_divisors[idx];
rate               81 arch/sh/kernel/cpu/sh4/clock-sh4-202.c 		if (clk->ops->set_rate(clk, clk->parent->rate / divisor) == 0)
rate               91 arch/sh/kernel/cpu/sh4/clock-sh4-202.c 	return clk->parent->rate / frqcr3_divisors[idx];
rate               94 arch/sh/kernel/cpu/sh4/clock-sh4-202.c static int shoc_clk_verify_rate(struct clk *clk, unsigned long rate)
rate              101 arch/sh/kernel/cpu/sh4/clock-sh4-202.c 	if (rate > bclk_rate)
rate              103 arch/sh/kernel/cpu/sh4/clock-sh4-202.c 	if (rate > 66000000)
rate              109 arch/sh/kernel/cpu/sh4/clock-sh4-202.c static int shoc_clk_set_rate(struct clk *clk, unsigned long rate)
rate              115 arch/sh/kernel/cpu/sh4/clock-sh4-202.c 	if (shoc_clk_verify_rate(clk, rate) != 0)
rate              118 arch/sh/kernel/cpu/sh4/clock-sh4-202.c 	tmp = frqcr3_lookup(clk, rate);
rate              125 arch/sh/kernel/cpu/sh4/clock-sh4-202.c 	clk->rate = clk->parent->rate / frqcr3_divisors[tmp];
rate               28 arch/sh/kernel/cpu/sh4/clock-sh4.c 	clk->rate *= pfc_divisors[__raw_readw(FRQCR) & 0x0007];
rate               38 arch/sh/kernel/cpu/sh4/clock-sh4.c 	return clk->parent->rate / pfc_divisors[idx];
rate               48 arch/sh/kernel/cpu/sh4/clock-sh4.c 	return clk->parent->rate / bfc_divisors[idx];
rate               58 arch/sh/kernel/cpu/sh4/clock-sh4.c 	return clk->parent->rate / ifc_divisors[idx];
rate               28 arch/sh/kernel/cpu/sh4a/clock-sh7343.c 	.rate           = 32768,
rate               36 arch/sh/kernel/cpu/sh4a/clock-sh7343.c 	.rate		= 33333333,
rate               49 arch/sh/kernel/cpu/sh4a/clock-sh7343.c 	return clk->parent->rate * mult;
rate               69 arch/sh/kernel/cpu/sh4a/clock-sh7343.c 	return clk->parent->rate * mult;
rate               28 arch/sh/kernel/cpu/sh4a/clock-sh7366.c 	.rate           = 32768,
rate               36 arch/sh/kernel/cpu/sh4a/clock-sh7366.c 	.rate		= 33333333,
rate               49 arch/sh/kernel/cpu/sh4a/clock-sh7366.c 	return clk->parent->rate * mult;
rate               72 arch/sh/kernel/cpu/sh4a/clock-sh7366.c 	return (clk->parent->rate * mult) / div;
rate               31 arch/sh/kernel/cpu/sh4a/clock-sh7722.c 	.rate           = 32768,
rate               39 arch/sh/kernel/cpu/sh4a/clock-sh7722.c 	.rate		= 33333333,
rate               52 arch/sh/kernel/cpu/sh4a/clock-sh7722.c 	return clk->parent->rate * mult;
rate               75 arch/sh/kernel/cpu/sh4a/clock-sh7722.c 	return (clk->parent->rate * mult) / div;
rate               32 arch/sh/kernel/cpu/sh4a/clock-sh7723.c 	.rate           = 32768,
rate               40 arch/sh/kernel/cpu/sh4a/clock-sh7723.c 	.rate		= 33333333,
rate               53 arch/sh/kernel/cpu/sh4a/clock-sh7723.c 	return clk->parent->rate * mult;
rate               76 arch/sh/kernel/cpu/sh4a/clock-sh7723.c 	return (clk->parent->rate * mult) / div;
rate               35 arch/sh/kernel/cpu/sh4a/clock-sh7724.c 	.rate           = 32768,
rate               43 arch/sh/kernel/cpu/sh4a/clock-sh7724.c 	.rate		= 33333333,
rate               58 arch/sh/kernel/cpu/sh4a/clock-sh7724.c 	return (clk->parent->rate * mult) / div;
rate               78 arch/sh/kernel/cpu/sh4a/clock-sh7724.c 	return clk->parent->rate * mult;
rate               93 arch/sh/kernel/cpu/sh4a/clock-sh7724.c 	return clk->parent->rate / 3;
rate               20 arch/sh/kernel/cpu/sh4a/clock-sh7734.c 	.rate       = 33333333,
rate               35 arch/sh/kernel/cpu/sh4a/clock-sh7734.c 	return clk->parent->rate * mode;
rate               21 arch/sh/kernel/cpu/sh4a/clock-sh7757.c 	.rate		= 48000000,
rate               30 arch/sh/kernel/cpu/sh4a/clock-sh7757.c 	return clk->parent->rate * multiplier;
rate               24 arch/sh/kernel/cpu/sh4a/clock-sh7763.c 	clk->rate *= p0fc_divisors[(__raw_readl(FRQCR) >> 4) & 0x07];
rate               34 arch/sh/kernel/cpu/sh4a/clock-sh7763.c 	return clk->parent->rate / p0fc_divisors[idx];
rate               44 arch/sh/kernel/cpu/sh4a/clock-sh7763.c 	return clk->parent->rate / bfc_divisors[idx];
rate               71 arch/sh/kernel/cpu/sh4a/clock-sh7763.c 	return clk->parent->rate / cfc_divisors[idx];
rate               21 arch/sh/kernel/cpu/sh4a/clock-sh7770.c 	clk->rate *= pfc_divisors[(__raw_readl(FRQCR) >> 28) & 0x000f];
rate               31 arch/sh/kernel/cpu/sh4a/clock-sh7770.c 	return clk->parent->rate / pfc_divisors[idx];
rate               41 arch/sh/kernel/cpu/sh4a/clock-sh7770.c 	return clk->parent->rate / bfc_divisors[idx];
rate               51 arch/sh/kernel/cpu/sh4a/clock-sh7770.c 	return clk->parent->rate / ifc_divisors[idx];
rate               24 arch/sh/kernel/cpu/sh4a/clock-sh7780.c 	clk->rate *= pfc_divisors[__raw_readl(FRQCR) & 0x0003];
rate               34 arch/sh/kernel/cpu/sh4a/clock-sh7780.c 	return clk->parent->rate / pfc_divisors[idx];
rate               44 arch/sh/kernel/cpu/sh4a/clock-sh7780.c 	return clk->parent->rate / bfc_divisors[idx];
rate               54 arch/sh/kernel/cpu/sh4a/clock-sh7780.c 	return clk->parent->rate / ifc_divisors[idx];
rate               77 arch/sh/kernel/cpu/sh4a/clock-sh7780.c 	return clk->parent->rate / cfc_divisors[idx];
rate               24 arch/sh/kernel/cpu/sh4a/clock-sh7785.c 	.rate		= 33333333,
rate               33 arch/sh/kernel/cpu/sh4a/clock-sh7785.c 	return clk->parent->rate * multiplier;
rate               22 arch/sh/kernel/cpu/sh4a/clock-sh7786.c 	.rate		= 33333333,
rate               35 arch/sh/kernel/cpu/sh4a/clock-sh7786.c 	return clk->parent->rate * multiplier;
rate               23 arch/sh/kernel/cpu/sh4a/clock-shx3.c 	.rate		= 16666666,
rate               29 arch/sh/kernel/cpu/sh4a/clock-shx3.c 	return clk->parent->rate * 72;
rate               25 arch/sh/kernel/cpu/sh5/clock-sh5.c 	clk->rate *= ifc_table[idx];
rate               35 arch/sh/kernel/cpu/sh5/clock-sh5.c 	return clk->parent->rate / ifc_table[idx];
rate               45 arch/sh/kernel/cpu/sh5/clock-sh5.c 	return clk->parent->rate / ifc_table[idx];
rate               55 arch/sh/kernel/cpu/sh5/clock-sh5.c 	return clk->parent->rate / ifc_table[idx];
rate               29 arch/unicore32/kernel/clock.c 	unsigned long		rate;
rate               35 arch/unicore32/kernel/clock.c 	.rate		= CLOCK_TICK_RATE,
rate               92 arch/unicore32/kernel/clock.c 	return clk->rate;
rate               97 arch/unicore32/kernel/clock.c 	unsigned long rate;
rate              101 arch/unicore32/kernel/clock.c 	{.rate =  25175000, .cfg = 0x00002001, .div = 0x9},
rate              102 arch/unicore32/kernel/clock.c 	{.rate =  31500000, .cfg = 0x00002001, .div = 0x7},
rate              103 arch/unicore32/kernel/clock.c 	{.rate =  40000000, .cfg = 0x00003801, .div = 0x9},
rate              104 arch/unicore32/kernel/clock.c 	{.rate =  49500000, .cfg = 0x00003801, .div = 0x7},
rate              105 arch/unicore32/kernel/clock.c 	{.rate =  65000000, .cfg = 0x00002c01, .div = 0x4},
rate              106 arch/unicore32/kernel/clock.c 	{.rate =  78750000, .cfg = 0x00002400, .div = 0x7},
rate              107 arch/unicore32/kernel/clock.c 	{.rate = 108000000, .cfg = 0x00002c01, .div = 0x2},
rate              108 arch/unicore32/kernel/clock.c 	{.rate = 106500000, .cfg = 0x00003c01, .div = 0x3},
rate              109 arch/unicore32/kernel/clock.c 	{.rate =  50650000, .cfg = 0x00106400, .div = 0x9},
rate              110 arch/unicore32/kernel/clock.c 	{.rate =  61500000, .cfg = 0x00106400, .div = 0xa},
rate              111 arch/unicore32/kernel/clock.c 	{.rate =  85500000, .cfg = 0x00002800, .div = 0x6},
rate              133 arch/unicore32/kernel/clock.c int clk_set_rate(struct clk *clk, unsigned long rate)
rate              142 arch/unicore32/kernel/clock.c 			if (rate == vga_clk_table[i].rate) {
rate              185 arch/unicore32/kernel/clock.c 			if (rate == mclk_clk_table[i].mrate) {
rate              187 arch/unicore32/kernel/clock.c 				clk_mclk_clk.rate = mclk_clk_table[i].mrate;
rate              196 arch/unicore32/kernel/clock.c 		if (clk_mclk_clk.rate)
rate              197 arch/unicore32/kernel/clock.c 			clk_bclk32_clk.rate = clk_mclk_clk.rate
rate              220 arch/unicore32/kernel/clock.c 		(clk->rate)/1000000, (clk->rate)/10000 % 100);
rate              235 arch/unicore32/kernel/clock.c 	unsigned long rate;
rate              237 arch/unicore32/kernel/clock.c 	{.prate = 0x00002001, .rate = 250000000},
rate              238 arch/unicore32/kernel/clock.c 	{.prate = 0x00104801, .rate = 250000000},
rate              239 arch/unicore32/kernel/clock.c 	{.prate = 0x00104C01, .rate = 262500000},
rate              240 arch/unicore32/kernel/clock.c 	{.prate = 0x00002401, .rate = 275000000},
rate              241 arch/unicore32/kernel/clock.c 	{.prate = 0x00105001, .rate = 275000000},
rate              242 arch/unicore32/kernel/clock.c 	{.prate = 0x00105401, .rate = 287500000},
rate              243 arch/unicore32/kernel/clock.c 	{.prate = 0x00002801, .rate = 300000000},
rate              244 arch/unicore32/kernel/clock.c 	{.prate = 0x00105801, .rate = 300000000},
rate              245 arch/unicore32/kernel/clock.c 	{.prate = 0x00105C01, .rate = 312500000},
rate              246 arch/unicore32/kernel/clock.c 	{.prate = 0x00002C01, .rate = 325000000},
rate              247 arch/unicore32/kernel/clock.c 	{.prate = 0x00106001, .rate = 325000000},
rate              248 arch/unicore32/kernel/clock.c 	{.prate = 0x00106401, .rate = 337500000},
rate              249 arch/unicore32/kernel/clock.c 	{.prate = 0x00003001, .rate = 350000000},
rate              250 arch/unicore32/kernel/clock.c 	{.prate = 0x00106801, .rate = 350000000},
rate              251 arch/unicore32/kernel/clock.c 	{.prate = 0x00106C01, .rate = 362500000},
rate              252 arch/unicore32/kernel/clock.c 	{.prate = 0x00003401, .rate = 375000000},
rate              253 arch/unicore32/kernel/clock.c 	{.prate = 0x00107001, .rate = 375000000},
rate              254 arch/unicore32/kernel/clock.c 	{.prate = 0x00107401, .rate = 387500000},
rate              255 arch/unicore32/kernel/clock.c 	{.prate = 0x00003801, .rate = 400000000},
rate              256 arch/unicore32/kernel/clock.c 	{.prate = 0x00107801, .rate = 400000000},
rate              257 arch/unicore32/kernel/clock.c 	{.prate = 0x00107C01, .rate = 412500000},
rate              258 arch/unicore32/kernel/clock.c 	{.prate = 0x00003C01, .rate = 425000000},
rate              259 arch/unicore32/kernel/clock.c 	{.prate = 0x00108001, .rate = 425000000},
rate              260 arch/unicore32/kernel/clock.c 	{.prate = 0x00108401, .rate = 437500000},
rate              261 arch/unicore32/kernel/clock.c 	{.prate = 0x00004001, .rate = 450000000},
rate              262 arch/unicore32/kernel/clock.c 	{.prate = 0x00108801, .rate = 450000000},
rate              263 arch/unicore32/kernel/clock.c 	{.prate = 0x00108C01, .rate = 462500000},
rate              264 arch/unicore32/kernel/clock.c 	{.prate = 0x00004401, .rate = 475000000},
rate              265 arch/unicore32/kernel/clock.c 	{.prate = 0x00109001, .rate = 475000000},
rate              266 arch/unicore32/kernel/clock.c 	{.prate = 0x00109401, .rate = 487500000},
rate              267 arch/unicore32/kernel/clock.c 	{.prate = 0x00004801, .rate = 500000000},
rate              268 arch/unicore32/kernel/clock.c 	{.prate = 0x00109801, .rate = 500000000},
rate              269 arch/unicore32/kernel/clock.c 	{.prate = 0x00104C00, .rate = 525000000},
rate              270 arch/unicore32/kernel/clock.c 	{.prate = 0x00002400, .rate = 550000000},
rate              271 arch/unicore32/kernel/clock.c 	{.prate = 0x00105000, .rate = 550000000},
rate              272 arch/unicore32/kernel/clock.c 	{.prate = 0x00105400, .rate = 575000000},
rate              273 arch/unicore32/kernel/clock.c 	{.prate = 0x00002800, .rate = 600000000},
rate              274 arch/unicore32/kernel/clock.c 	{.prate = 0x00105800, .rate = 600000000},
rate              275 arch/unicore32/kernel/clock.c 	{.prate = 0x00105C00, .rate = 625000000},
rate              276 arch/unicore32/kernel/clock.c 	{.prate = 0x00002C00, .rate = 650000000},
rate              277 arch/unicore32/kernel/clock.c 	{.prate = 0x00106000, .rate = 650000000},
rate              278 arch/unicore32/kernel/clock.c 	{.prate = 0x00106400, .rate = 675000000},
rate              279 arch/unicore32/kernel/clock.c 	{.prate = 0x00003000, .rate = 700000000},
rate              280 arch/unicore32/kernel/clock.c 	{.prate = 0x00106800, .rate = 700000000},
rate              281 arch/unicore32/kernel/clock.c 	{.prate = 0x00106C00, .rate = 725000000},
rate              282 arch/unicore32/kernel/clock.c 	{.prate = 0x00003400, .rate = 750000000},
rate              283 arch/unicore32/kernel/clock.c 	{.prate = 0x00107000, .rate = 750000000},
rate              284 arch/unicore32/kernel/clock.c 	{.prate = 0x00107400, .rate = 775000000},
rate              285 arch/unicore32/kernel/clock.c 	{.prate = 0x00003800, .rate = 800000000},
rate              286 arch/unicore32/kernel/clock.c 	{.prate = 0x00107800, .rate = 800000000},
rate              287 arch/unicore32/kernel/clock.c 	{.prate = 0x00107C00, .rate = 825000000},
rate              288 arch/unicore32/kernel/clock.c 	{.prate = 0x00003C00, .rate = 850000000},
rate              289 arch/unicore32/kernel/clock.c 	{.prate = 0x00108000, .rate = 850000000},
rate              290 arch/unicore32/kernel/clock.c 	{.prate = 0x00108400, .rate = 875000000},
rate              291 arch/unicore32/kernel/clock.c 	{.prate = 0x00004000, .rate = 900000000},
rate              292 arch/unicore32/kernel/clock.c 	{.prate = 0x00108800, .rate = 900000000},
rate              293 arch/unicore32/kernel/clock.c 	{.prate = 0x00108C00, .rate = 925000000},
rate              294 arch/unicore32/kernel/clock.c 	{.prate = 0x00004400, .rate = 950000000},
rate              295 arch/unicore32/kernel/clock.c 	{.prate = 0x00109000, .rate = 950000000},
rate              296 arch/unicore32/kernel/clock.c 	{.prate = 0x00109400, .rate = 975000000},
rate              297 arch/unicore32/kernel/clock.c 	{.prate = 0x00004800, .rate = 1000000000},
rate              298 arch/unicore32/kernel/clock.c 	{.prate = 0x00109800, .rate = 1000000000},
rate              336 arch/unicore32/kernel/clock.c 	clk_mclk_clk.rate = 0;
rate              339 arch/unicore32/kernel/clock.c 			clk_mclk_clk.rate = pllrate_table[i].rate;
rate              344 arch/unicore32/kernel/clock.c 	if (clk_mclk_clk.rate)
rate              345 arch/unicore32/kernel/clock.c 		clk_bclk32_clk.rate = clk_mclk_clk.rate /
rate              351 arch/unicore32/kernel/clock.c 	clk_ddr_clk.rate = 0;
rate              354 arch/unicore32/kernel/clock.c 			clk_ddr_clk.rate = pddr_table[i].drate;
rate              362 arch/unicore32/kernel/clock.c 	clk_vga_clk.rate = 0;
rate              365 arch/unicore32/kernel/clock.c 			clk_vga_clk.rate = pllrate_table[i].rate;
rate              370 arch/unicore32/kernel/clock.c 	if (clk_vga_clk.rate)
rate              371 arch/unicore32/kernel/clock.c 		clk_vga_clk.rate = clk_vga_clk.rate /
rate              377 arch/unicore32/kernel/clock.c 	clk_ddr_clk.rate = 33000000;
rate              378 arch/unicore32/kernel/clock.c 	clk_mclk_clk.rate = 33000000;
rate              379 arch/unicore32/kernel/clock.c 	clk_bclk32_clk.rate = 33000000;
rate             3037 block/bfq-iosched.c 	u32 rate, weight, divisor;
rate             3065 block/bfq-iosched.c 	rate = div64_ul(bfqd->tot_sectors_dispatched<<BFQ_RATE_SHIFT,
rate             3075 block/bfq-iosched.c 	     rate <= bfqd->peak_rate) ||
rate             3076 block/bfq-iosched.c 		rate > 20<<BFQ_RATE_SHIFT)
rate             3125 block/bfq-iosched.c 	rate /= divisor; /* smoothing constant alpha = 1/divisor */
rate             3127 block/bfq-iosched.c 	bfqd->peak_rate += rate;
rate              298 drivers/ata/pata_bk3710.c 	unsigned long rate;
rate              306 drivers/ata/pata_bk3710.c 	rate = clk_get_rate(clk);
rate              307 drivers/ata/pata_bk3710.c 	if (!rate)
rate              311 drivers/ata/pata_bk3710.c 	ideclk_period = 1000000000UL / rate;
rate              337 drivers/ata/pata_bk3710.c 	ap->udma_mask = rate < 100000000 ? ATA_UDMA4 : ATA_UDMA5;
rate              874 drivers/atm/ambassador.c static int make_rate (unsigned int rate, rounding r,
rate              879 drivers/atm/ambassador.c   PRINTD (DBG_FLOW|DBG_QOS, "make_rate %u", rate);
rate              895 drivers/atm/ambassador.c   if (rate > 0xffc00000U) {
rate              905 drivers/atm/ambassador.c   } else if (rate) {
rate              909 drivers/atm/ambassador.c     man = rate;
rate             1147 drivers/atm/ambassador.c       cmd.args.modify_rate.rate = cpu_to_be32 (tx_rate_bits << SRB_RATE_SHIFT);
rate             1163 drivers/atm/ambassador.c       cmd.args.open.rate = cpu_to_be32 (tx_rate_bits << SRB_RATE_SHIFT);
rate             1196 drivers/atm/ambassador.c       cmd.args.open.rate = cpu_to_be32 (0);
rate             1232 drivers/atm/ambassador.c       cmd.args.modify_rate.rate = cpu_to_be32 (0);
rate              355 drivers/atm/ambassador.h       __be32 rate;
rate              359 drivers/atm/ambassador.h       __be32 rate;
rate             1297 drivers/atm/eni.c 	int rate,ubr,unlimited,new_tx;
rate             1301 drivers/atm/eni.c 	rate = atm_pcr_goal(txtp);
rate             1303 drivers/atm/eni.c 	unlimited = ubr && (!rate || rate <= -ATM_OC3_PCR ||
rate             1304 drivers/atm/eni.c 	    rate >= ATM_OC3_PCR);
rate             1342 drivers/atm/eni.c 	error = comp_tx(eni_dev,&rate,tx->reserved,&pre,&res,unlimited);
rate             1343 drivers/atm/eni.c 	if (!error  && txtp->min_pcr > rate) error = -EINVAL;
rate             1345 drivers/atm/eni.c 	    txtp->max_pcr < rate) error = -EINVAL;
rate             1346 drivers/atm/eni.c 	if (!error && !ubr && rate > eni_dev->tx_bw+tx->reserved)
rate             1348 drivers/atm/eni.c 	if (!error && set_rsv && !set_shp && rate < tx->shaping)
rate             1350 drivers/atm/eni.c 	if (!error && !set_rsv && rate > tx->reserved && !ubr)
rate             1359 drivers/atm/eni.c 	txtp->pcr = rate;
rate             1362 drivers/atm/eni.c 		tx->reserved = rate;
rate             1363 drivers/atm/eni.c 		eni_dev->tx_bw -= rate;
rate             1369 drivers/atm/eni.c 		tx->shaping = rate;
rate             1963 drivers/atm/eni.c 	int error,rate,rsv,shp;
rate             1967 drivers/atm/eni.c 	rate = atm_pcr_goal(&qos->txtp);
rate             1968 drivers/atm/eni.c 	if (rate < 0) rate = -rate;
rate             1970 drivers/atm/eni.c 	if ((flgs & ATM_MF_DEC_RSV) && rate && rate < tx->reserved) rsv = 1;
rate             1971 drivers/atm/eni.c 	if ((flgs & ATM_MF_INC_RSV) && (!rate || rate > tx->reserved)) rsv = 1;
rate             1972 drivers/atm/eni.c 	if ((flgs & ATM_MF_DEC_SHP) && rate && rate < tx->shaping) shp = 1;
rate             1973 drivers/atm/eni.c 	if ((flgs & ATM_MF_INC_SHP) && (!rate || rate > tx->shaping)) shp = 1;
rate              436 drivers/atm/firestream.c static int make_rate(unsigned int rate, int r,
rate              442 drivers/atm/firestream.c 	fs_dprintk (FS_DEBUG_QOS, "make_rate %u", rate);
rate              460 drivers/atm/firestream.c 	if (rate > 0xffc00000U) {
rate              470 drivers/atm/firestream.c 	} else if (rate) {
rate              474 drivers/atm/firestream.c 		man = rate;
rate             1290 drivers/atm/fore200e.c fore200e_rate_ctrl(struct atm_qos* qos, struct tpd_rate* rate)
rate             1295 drivers/atm/fore200e.c 	rate->data_cells = qos->txtp.max_pcr * FORE200E_MAX_BACK2BACK_CELLS / ATM_OC3_PCR;
rate             1296 drivers/atm/fore200e.c 	rate->idle_cells = FORE200E_MAX_BACK2BACK_CELLS - rate->data_cells;
rate             1300 drivers/atm/fore200e.c 	rate->data_cells = rate->idle_cells = 0;
rate             1391 drivers/atm/fore200e.c 	fore200e_rate_ctrl(&vcc->qos, &fore200e_vcc->rate);
rate             1397 drivers/atm/fore200e.c 		fore200e_vcc->rate.data_cells, fore200e_vcc->rate.idle_cells);
rate             1631 drivers/atm/fore200e.c     tpd->rate.data_cells = fore200e_vcc->rate.data_cells;
rate             1632 drivers/atm/fore200e.c     tpd->rate.idle_cells = fore200e_vcc->rate.idle_cells;
rate             1947 drivers/atm/fore200e.c 	fore200e_rate_ctrl(qos, &fore200e_vcc->rate);
rate              145 drivers/atm/fore200e.h     struct tpd_rate   rate;              /* tpd rate control             */
rate              879 drivers/atm/fore200e.h     struct tpd_rate        rate;               /* tx rate control data               */
rate              427 drivers/atm/he.c rate_to_atmf(unsigned rate)		/* cps to atm forum format */
rate              433 drivers/atm/he.c 	if (rate == 0)
rate              436 drivers/atm/he.c 	rate <<= 9;
rate              437 drivers/atm/he.c 	while (rate > 0x3ff) {
rate              439 drivers/atm/he.c 		rate >>= 1;
rate              442 drivers/atm/he.c 	return (NONZERO | (exp << 9) | (rate & 0x1ff));
rate              557 drivers/atm/he.c 	unsigned clock, rate, delta;
rate              568 drivers/atm/he.c 	rate = he_dev->atm_dev->link_rate;
rate              569 drivers/atm/he.c 	delta = rate / 16 / 2;
rate              577 drivers/atm/he.c 		unsigned period = clock / rate;
rate              580 drivers/atm/he.c 		rate -= delta;
rate              653 drivers/atm/he.c 	unsigned rate, delta;
rate              682 drivers/atm/he.c 	rate = he_dev->atm_dev->link_rate;
rate              683 drivers/atm/he.c 	delta = rate / 32;
rate              693 drivers/atm/he.c 		(*rategrid)[0][j] = rate;
rate              694 drivers/atm/he.c 		rate -= delta;
rate              764 drivers/atm/horizon.c   rxer->rate = make_rate (qos->peak_cells);
rate             2047 drivers/atm/idt77252.c idt77252_int_to_atmfp(unsigned int rate)
rate             2051 drivers/atm/idt77252.c 	if (rate == 0)
rate             2053 drivers/atm/idt77252.c 	e = idt77252_fls(rate) - 1;
rate             2055 drivers/atm/idt77252.c 		m = (rate - (1 << e)) << (9 - e);
rate             2057 drivers/atm/idt77252.c 		m = (rate - (1 << e));
rate             2059 drivers/atm/idt77252.c 		m = (rate - (1 << e)) >> (e - 9);
rate             2081 drivers/atm/idt77252.c 	u32 rate, cps;
rate             2090 drivers/atm/idt77252.c 	rate = ((u32)(ncells - est->last_cells)) << (7 - est->interval);
rate             2092 drivers/atm/idt77252.c 	est->avcps += ((long)rate - (long)est->avcps) >> est->ewma_log;
rate              340 drivers/atm/iphase.c float_to_cellrate(u16 rate)
rate              343 drivers/atm/iphase.c   if ((rate & NZ) == 0)
rate              345 drivers/atm/iphase.c   exp = (rate >> M_BITS) & E_MASK;
rate              346 drivers/atm/iphase.c   mantissa = rate & M_MASK;
rate              462 drivers/atm/iphase.c    u32 rateLow=0, rateHigh, rate;
rate              479 drivers/atm/iphase.c    rate = vcc->qos.txtp.max_pcr;
rate              480 drivers/atm/iphase.c    entries = rate / dev->Granularity;
rate              482 drivers/atm/iphase.c                                 entries, rate, dev->Granularity);)
rate              487 drivers/atm/iphase.c    if (3*(rate - rateLow) > (rateHigh - rate))
rate             1200 drivers/block/floppy.c 	if (raw_cmd->rate & 0x40) {
rate             1201 drivers/block/floppy.c 		switch (raw_cmd->rate & 3) {
rate             1287 drivers/block/floppy.c 	switch (raw_cmd->rate & 0x03) {
rate             1353 drivers/block/floppy.c 	if ((raw_cmd->rate & 3) == FDCS->dtr)
rate             1357 drivers/block/floppy.c 	fd_outb(raw_cmd->rate & 3, FD_DCR);
rate             1364 drivers/block/floppy.c 	FDCS->dtr = raw_cmd->rate & 3;
rate             2095 drivers/block/floppy.c #define FM_MODE(x, y) ((y) & ~(((x)->rate & 0x80) >> 1))
rate             2114 drivers/block/floppy.c 	raw_cmd->rate = _floppy->rate & 0x43;
rate             2570 drivers/block/floppy.c 	if ((_floppy->rate & FD_2M) && (!TRACK) && (!HEAD)) {
rate             2581 drivers/block/floppy.c 	raw_cmd->rate = _floppy->rate & 0x43;
rate             2582 drivers/block/floppy.c 	if ((_floppy->rate & FD_2M) && (TRACK || HEAD) && raw_cmd->rate == 2)
rate             2583 drivers/block/floppy.c 		raw_cmd->rate = 1;
rate             2617 drivers/block/floppy.c 	} else if (!TRACK && !HEAD && !(_floppy->rate & FD_2M) && probing) {
rate             3168 drivers/block/floppy.c 		ptr->rate &= 0x43;
rate               38 drivers/bluetooth/btbcm.h 	__u8 rate;
rate               79 drivers/char/agp/sis-agp.c 	int rate;
rate               87 drivers/char/agp/sis-agp.c 	rate = (command & 0x7) << 2;
rate               95 drivers/char/agp/sis-agp.c 			 pci_name(device), rate);
rate             2869 drivers/char/pcmcia/synclink_cs.c static void mgslpc_set_rate(MGSLPC_INFO *info, unsigned char channel, unsigned int rate)
rate             2878 drivers/char/pcmcia/synclink_cs.c 	if (rate) {
rate             2879 drivers/char/pcmcia/synclink_cs.c 		N = 3686400 / rate;
rate               56 drivers/clk/actions/owl-composite.c static long owl_comp_div_round_rate(struct clk_hw *hw, unsigned long rate,
rate               61 drivers/clk/actions/owl-composite.c 	return owl_divider_helper_round_rate(&comp->common, &comp->rate.div_hw,
rate               62 drivers/clk/actions/owl-composite.c 					rate, parent_rate);
rate               70 drivers/clk/actions/owl-composite.c 	return owl_divider_helper_recalc_rate(&comp->common, &comp->rate.div_hw,
rate               74 drivers/clk/actions/owl-composite.c static int owl_comp_div_set_rate(struct clk_hw *hw, unsigned long rate,
rate               79 drivers/clk/actions/owl-composite.c 	return owl_divider_helper_set_rate(&comp->common, &comp->rate.div_hw,
rate               80 drivers/clk/actions/owl-composite.c 					rate, parent_rate);
rate               83 drivers/clk/actions/owl-composite.c static long owl_comp_fact_round_rate(struct clk_hw *hw, unsigned long rate,
rate               89 drivers/clk/actions/owl-composite.c 					&comp->rate.factor_hw,
rate               90 drivers/clk/actions/owl-composite.c 					rate, parent_rate);
rate               99 drivers/clk/actions/owl-composite.c 					&comp->rate.factor_hw,
rate              103 drivers/clk/actions/owl-composite.c static int owl_comp_fact_set_rate(struct clk_hw *hw, unsigned long rate,
rate              109 drivers/clk/actions/owl-composite.c 					&comp->rate.factor_hw,
rate              110 drivers/clk/actions/owl-composite.c 					rate, parent_rate);
rate              113 drivers/clk/actions/owl-composite.c static long owl_comp_fix_fact_round_rate(struct clk_hw *hw, unsigned long rate,
rate              117 drivers/clk/actions/owl-composite.c 	struct clk_fixed_factor *fix_fact_hw = &comp->rate.fix_fact_hw;
rate              119 drivers/clk/actions/owl-composite.c 	return comp->fix_fact_ops->round_rate(&fix_fact_hw->hw, rate, parent_rate);
rate              126 drivers/clk/actions/owl-composite.c 	struct clk_fixed_factor *fix_fact_hw = &comp->rate.fix_fact_hw;
rate              132 drivers/clk/actions/owl-composite.c static int owl_comp_fix_fact_set_rate(struct clk_hw *hw, unsigned long rate,
rate               30 drivers/clk/actions/owl-composite.h 	union owl_rate		rate;
rate               42 drivers/clk/actions/owl-composite.h 		.rate.div_hw	= _div,					\
rate               56 drivers/clk/actions/owl-composite.h 		.rate.div_hw	= _div,					\
rate               71 drivers/clk/actions/owl-composite.h 		.rate.factor_hw	= _factor,				\
rate               85 drivers/clk/actions/owl-composite.h 		.rate.fix_fact_hw.mult	= _mul,				\
rate               86 drivers/clk/actions/owl-composite.h 		.rate.fix_fact_hw.div	= _div,				\
rate               18 drivers/clk/actions/owl-divider.c 				unsigned long rate,
rate               21 drivers/clk/actions/owl-divider.c 	return divider_round_rate(&common->hw, rate, parent_rate,
rate               26 drivers/clk/actions/owl-divider.c static long owl_divider_round_rate(struct clk_hw *hw, unsigned long rate,
rate               32 drivers/clk/actions/owl-divider.c 					     rate, parent_rate);
rate               63 drivers/clk/actions/owl-divider.c 				unsigned long rate,
rate               69 drivers/clk/actions/owl-divider.c 	val = divider_get_val(rate, parent_rate, div_hw->table,
rate               81 drivers/clk/actions/owl-divider.c static int owl_divider_set_rate(struct clk_hw *hw, unsigned long rate,
rate               87 drivers/clk/actions/owl-divider.c 					rate, parent_rate);
rate               61 drivers/clk/actions/owl-divider.h 				unsigned long rate,
rate               70 drivers/clk/actions/owl-divider.h 				unsigned long rate,
rate               45 drivers/clk/actions/owl-factor.c 			unsigned long rate, unsigned long parent_rate)
rate               55 drivers/clk/actions/owl-factor.c 		if ((unsigned long)calc_rate <= rate) {
rate               68 drivers/clk/actions/owl-factor.c 			struct clk_hw *hw, unsigned long rate,
rate               76 drivers/clk/actions/owl-factor.c 	if (!rate)
rate               77 drivers/clk/actions/owl-factor.c 		rate = 1;
rate               81 drivers/clk/actions/owl-factor.c 		bestval = _get_table_val(clkt, rate, parent_rate);
rate               86 drivers/clk/actions/owl-factor.c 		try_parent_rate = rate * clkt->div / clkt->mul;
rate              104 drivers/clk/actions/owl-factor.c 		if (cur_rate <= rate && cur_rate > best) {
rate              122 drivers/clk/actions/owl-factor.c 				unsigned long rate,
rate              128 drivers/clk/actions/owl-factor.c 	val = owl_clk_val_best(factor_hw, &common->hw, rate, parent_rate);
rate              134 drivers/clk/actions/owl-factor.c static long owl_factor_round_rate(struct clk_hw *hw, unsigned long rate,
rate              141 drivers/clk/actions/owl-factor.c 					rate, parent_rate);
rate              149 drivers/clk/actions/owl-factor.c 	unsigned long long int rate;
rate              168 drivers/clk/actions/owl-factor.c 	rate = (unsigned long long int)parent_rate * mul;
rate              169 drivers/clk/actions/owl-factor.c 	do_div(rate, div);
rate              171 drivers/clk/actions/owl-factor.c 	return rate;
rate              186 drivers/clk/actions/owl-factor.c 				unsigned long rate,
rate              191 drivers/clk/actions/owl-factor.c 	val = _get_table_val(factor_hw->table, rate, parent_rate);
rate              206 drivers/clk/actions/owl-factor.c static int owl_factor_set_rate(struct clk_hw *hw, unsigned long rate,
rate              214 drivers/clk/actions/owl-factor.c 					rate, parent_rate);
rate               69 drivers/clk/actions/owl-factor.h 				unsigned long rate,
rate               78 drivers/clk/actions/owl-factor.h 				unsigned long rate,
rate               18 drivers/clk/actions/owl-pll.c static u32 owl_pll_calculate_mul(struct owl_pll_hw *pll_hw, unsigned long rate)
rate               22 drivers/clk/actions/owl-pll.c 	mul = DIV_ROUND_CLOSEST(rate, pll_hw->bfreq);
rate               36 drivers/clk/actions/owl-pll.c 	for (clkt = table; clkt->rate; clkt++)
rate               38 drivers/clk/actions/owl-pll.c 			return clkt->rate;
rate               44 drivers/clk/actions/owl-pll.c 		const struct clk_pll_table *table, unsigned long rate)
rate               48 drivers/clk/actions/owl-pll.c 	for (clkt = table; clkt->rate; clkt++) {
rate               49 drivers/clk/actions/owl-pll.c 		if (clkt->rate == rate) {
rate               52 drivers/clk/actions/owl-pll.c 		} else if (clkt->rate < rate)
rate               59 drivers/clk/actions/owl-pll.c static long owl_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate               68 drivers/clk/actions/owl-pll.c 		clkt = _get_pll_table(pll_hw->table, rate);
rate               69 drivers/clk/actions/owl-pll.c 		return clkt->rate;
rate               76 drivers/clk/actions/owl-pll.c 	mul = owl_pll_calculate_mul(pll_hw, rate);
rate              155 drivers/clk/actions/owl-pll.c static int owl_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              169 drivers/clk/actions/owl-pll.c 		clkt = _get_pll_table(pll_hw->table, rate);
rate              172 drivers/clk/actions/owl-pll.c 		val = owl_pll_calculate_mul(pll_hw, rate);
rate               21 drivers/clk/actions/owl-pll.h 	unsigned long		rate;
rate              216 drivers/clk/at91/clk-audio-pll.c static int clk_audio_pll_frac_compute_frac(unsigned long rate,
rate              223 drivers/clk/at91/clk-audio-pll.c 	if (!rate)
rate              226 drivers/clk/at91/clk-audio-pll.c 	tmp = rate;
rate              251 drivers/clk/at91/clk-audio-pll.c 		 req->rate, req->best_parent_rate);
rate              253 drivers/clk/at91/clk-audio-pll.c 	req->rate = clamp(req->rate, AUDIO_PLL_FOUT_MIN, AUDIO_PLL_FOUT_MAX);
rate              258 drivers/clk/at91/clk-audio-pll.c 	ret = clk_audio_pll_frac_compute_frac(req->rate, req->best_parent_rate,
rate              263 drivers/clk/at91/clk-audio-pll.c 	req->rate = clk_audio_pll_fout(req->best_parent_rate, nd, fracr);
rate              268 drivers/clk/at91/clk-audio-pll.c 		 __func__, req->rate, nd, fracr);
rate              273 drivers/clk/at91/clk-audio-pll.c static long clk_audio_pll_pad_round_rate(struct clk_hw *hw, unsigned long rate,
rate              286 drivers/clk/at91/clk-audio-pll.c 		 rate, *parent_rate);
rate              307 drivers/clk/at91/clk-audio-pll.c 							rate * tmp_qd * div);
rate              309 drivers/clk/at91/clk-audio-pll.c 			tmp_diff = abs(rate - tmp_rate);
rate              324 drivers/clk/at91/clk-audio-pll.c static long clk_audio_pll_pmc_round_rate(struct clk_hw *hw, unsigned long rate,
rate              336 drivers/clk/at91/clk-audio-pll.c 		 rate, *parent_rate);
rate              338 drivers/clk/at91/clk-audio-pll.c 	if (!rate)
rate              342 drivers/clk/at91/clk-audio-pll.c 	div = max(best_parent_rate / rate, 1UL);
rate              344 drivers/clk/at91/clk-audio-pll.c 		best_parent_rate = clk_round_rate(pclk->clk, rate * div);
rate              346 drivers/clk/at91/clk-audio-pll.c 		tmp_diff = abs(rate - tmp_rate);
rate              364 drivers/clk/at91/clk-audio-pll.c static int clk_audio_pll_frac_set_rate(struct clk_hw *hw, unsigned long rate,
rate              371 drivers/clk/at91/clk-audio-pll.c 	pr_debug("A PLL: %s, rate = %lu (parent_rate = %lu)\n", __func__, rate,
rate              374 drivers/clk/at91/clk-audio-pll.c 	if (rate < AUDIO_PLL_FOUT_MIN || rate > AUDIO_PLL_FOUT_MAX)
rate              377 drivers/clk/at91/clk-audio-pll.c 	ret = clk_audio_pll_frac_compute_frac(rate, parent_rate, &nd, &fracr);
rate              387 drivers/clk/at91/clk-audio-pll.c static int clk_audio_pll_pad_set_rate(struct clk_hw *hw, unsigned long rate,
rate              394 drivers/clk/at91/clk-audio-pll.c 		 rate, parent_rate);
rate              396 drivers/clk/at91/clk-audio-pll.c 	if (!rate)
rate              399 drivers/clk/at91/clk-audio-pll.c 	tmp_div = parent_rate / rate;
rate              411 drivers/clk/at91/clk-audio-pll.c static int clk_audio_pll_pmc_set_rate(struct clk_hw *hw, unsigned long rate,
rate              416 drivers/clk/at91/clk-audio-pll.c 	if (!rate)
rate              420 drivers/clk/at91/clk-audio-pll.c 		 rate, parent_rate);
rate              422 drivers/clk/at91/clk-audio-pll.c 	apmc_ck->qdpmc = parent_rate / rate - 1;
rate              110 drivers/clk/at91/clk-generated.c 	tmp_diff = abs(req->rate - tmp_rate);
rate              143 drivers/clk/at91/clk-generated.c 		div = DIV_ROUND_CLOSEST(parent_rate, req->rate);
rate              172 drivers/clk/at91/clk-generated.c 		req_parent.rate = req->rate * div;
rate              174 drivers/clk/at91/clk-generated.c 		clk_generated_best_diff(req, parent, req_parent.rate, div,
rate              190 drivers/clk/at91/clk-generated.c 	req->rate = best_rate;
rate              215 drivers/clk/at91/clk-generated.c 				  unsigned long rate,
rate              221 drivers/clk/at91/clk-generated.c 	if (!rate)
rate              224 drivers/clk/at91/clk-generated.c 	if (gck->range.max && rate > gck->range.max)
rate              227 drivers/clk/at91/clk-generated.c 	div = DIV_ROUND_CLOSEST(parent_rate, rate);
rate               43 drivers/clk/at91/clk-h32mx.c static long clk_sama5d4_h32mx_round_rate(struct clk_hw *hw, unsigned long rate,
rate               48 drivers/clk/at91/clk-h32mx.c 	if (rate > *parent_rate)
rate               51 drivers/clk/at91/clk-h32mx.c 	if (rate < div)
rate               54 drivers/clk/at91/clk-h32mx.c 	if (rate - div < *parent_rate - rate)
rate               60 drivers/clk/at91/clk-h32mx.c static int clk_sama5d4_h32mx_set_rate(struct clk_hw *hw, unsigned long rate,
rate               66 drivers/clk/at91/clk-h32mx.c 	if (parent_rate != rate && (parent_rate / 2) != rate)
rate               69 drivers/clk/at91/clk-h32mx.c 	if ((parent_rate / 2) == rate)
rate               61 drivers/clk/at91/clk-master.c 	unsigned long rate = parent_rate;
rate               75 drivers/clk/at91/clk-master.c 		rate /= 3;
rate               77 drivers/clk/at91/clk-master.c 		rate >>= pres;
rate               79 drivers/clk/at91/clk-master.c 	rate /= characteristics->divisors[div];
rate               81 drivers/clk/at91/clk-master.c 	if (rate < characteristics->output.min)
rate               83 drivers/clk/at91/clk-master.c 	else if (rate > characteristics->output.max)
rate               86 drivers/clk/at91/clk-master.c 	return rate;
rate              242 drivers/clk/at91/clk-peripheral.c 					     unsigned long rate,
rate              263 drivers/clk/at91/clk-peripheral.c 	if (rate >= cur_rate)
rate              266 drivers/clk/at91/clk-peripheral.c 	best_diff = cur_rate - rate;
rate              270 drivers/clk/at91/clk-peripheral.c 		if (cur_rate < rate)
rate              271 drivers/clk/at91/clk-peripheral.c 			cur_diff = rate - cur_rate;
rate              273 drivers/clk/at91/clk-peripheral.c 			cur_diff = cur_rate - rate;
rate              280 drivers/clk/at91/clk-peripheral.c 		if (!best_diff || cur_rate < rate)
rate              288 drivers/clk/at91/clk-peripheral.c 					  unsigned long rate,
rate              294 drivers/clk/at91/clk-peripheral.c 		if (parent_rate == rate)
rate              300 drivers/clk/at91/clk-peripheral.c 	if (periph->range.max && rate > periph->range.max)
rate              304 drivers/clk/at91/clk-peripheral.c 		if (parent_rate >> shift == rate) {
rate              123 drivers/clk/at91/clk-pll.c static long clk_pll_get_best_div_mul(struct clk_pll *pll, unsigned long rate,
rate              147 drivers/clk/at91/clk-pll.c 	mindiv = (parent_rate * PLL_MUL_MIN) / rate;
rate              164 drivers/clk/at91/clk-pll.c 	maxdiv = DIV_ROUND_UP(parent_rate * PLL_MUL_MAX(layout), rate);
rate              182 drivers/clk/at91/clk-pll.c 		tmpmul = DIV_ROUND_CLOSEST(rate, parent_rate / tmpdiv);
rate              184 drivers/clk/at91/clk-pll.c 		if (tmprate > rate)
rate              185 drivers/clk/at91/clk-pll.c 			remainder = tmprate - rate;
rate              187 drivers/clk/at91/clk-pll.c 			remainder = rate - tmprate;
rate              233 drivers/clk/at91/clk-pll.c static long clk_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              238 drivers/clk/at91/clk-pll.c 	return clk_pll_get_best_div_mul(pll, rate, *parent_rate,
rate              242 drivers/clk/at91/clk-pll.c static int clk_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              251 drivers/clk/at91/clk-pll.c 	ret = clk_pll_get_best_div_mul(pll, rate, parent_rate,
rate               36 drivers/clk/at91/clk-plldiv.c static long clk_plldiv_round_rate(struct clk_hw *hw, unsigned long rate,
rate               41 drivers/clk/at91/clk-plldiv.c 	if (rate > *parent_rate)
rate               44 drivers/clk/at91/clk-plldiv.c 	if (rate < div)
rate               47 drivers/clk/at91/clk-plldiv.c 	if (rate - div < *parent_rate - rate)
rate               53 drivers/clk/at91/clk-plldiv.c static int clk_plldiv_set_rate(struct clk_hw *hw, unsigned long rate,
rate               58 drivers/clk/at91/clk-plldiv.c 	if ((parent_rate != rate) && (parent_rate / 2 != rate))
rate               62 drivers/clk/at91/clk-plldiv.c 			   parent_rate != rate ? AT91_PMC_PLLADIV2 : 0);
rate               36 drivers/clk/at91/clk-programmable.c 	unsigned long rate;
rate               41 drivers/clk/at91/clk-programmable.c 		rate = parent_rate / (PROG_PRES(layout, pckr) + 1);
rate               43 drivers/clk/at91/clk-programmable.c 		rate = parent_rate >> PROG_PRES(layout, pckr);
rate               45 drivers/clk/at91/clk-programmable.c 	return rate;
rate               69 drivers/clk/at91/clk-programmable.c 				if (tmp_rate <= req->rate)
rate               75 drivers/clk/at91/clk-programmable.c 				if (tmp_rate <= req->rate)
rate               80 drivers/clk/at91/clk-programmable.c 		if (tmp_rate > req->rate)
rate               84 drivers/clk/at91/clk-programmable.c 		    (req->rate - tmp_rate) < (req->rate - best_rate)) {
rate               97 drivers/clk/at91/clk-programmable.c 	req->rate = best_rate;
rate              140 drivers/clk/at91/clk-programmable.c static int clk_programmable_set_rate(struct clk_hw *hw, unsigned long rate,
rate              145 drivers/clk/at91/clk-programmable.c 	unsigned long div = parent_rate / rate;
rate              172 drivers/clk/at91/clk-sam9x60-pll.c 					 unsigned long rate,
rate              185 drivers/clk/at91/clk-sam9x60-pll.c 	if (rate < characteristics->output[0].min ||
rate              186 drivers/clk/at91/clk-sam9x60-pll.c 	    rate > characteristics->output[0].max)
rate              190 drivers/clk/at91/clk-sam9x60-pll.c 		mindiv = parent_rate / rate;
rate              194 drivers/clk/at91/clk-sam9x60-pll.c 		maxdiv = DIV_ROUND_UP(parent_rate * PLL_MUL_MAX, rate);
rate              211 drivers/clk/at91/clk-sam9x60-pll.c 		tmpmul = mult_frac(rate, tmpdiv, parent_rate);
rate              213 drivers/clk/at91/clk-sam9x60-pll.c 		remainder = rate - tmprate;
rate              222 drivers/clk/at91/clk-sam9x60-pll.c 			if (tmprate > rate)
rate              223 drivers/clk/at91/clk-sam9x60-pll.c 				remainder = tmprate - rate;
rate              225 drivers/clk/at91/clk-sam9x60-pll.c 				remainder = rate - tmprate;
rate              260 drivers/clk/at91/clk-sam9x60-pll.c static long sam9x60_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              265 drivers/clk/at91/clk-sam9x60-pll.c 	return sam9x60_pll_get_best_div_mul(pll, rate, *parent_rate, false);
rate              268 drivers/clk/at91/clk-sam9x60-pll.c static int sam9x60_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              273 drivers/clk/at91/clk-sam9x60-pll.c 	return sam9x60_pll_get_best_div_mul(pll, rate, parent_rate, true);
rate               39 drivers/clk/at91/clk-smd.c static long at91sam9x5_clk_smd_round_rate(struct clk_hw *hw, unsigned long rate,
rate               46 drivers/clk/at91/clk-smd.c 	if (rate >= *parent_rate)
rate               49 drivers/clk/at91/clk-smd.c 	div = *parent_rate / rate;
rate               55 drivers/clk/at91/clk-smd.c 	if (bestrate - rate > rate - tmp)
rate               84 drivers/clk/at91/clk-smd.c static int at91sam9x5_clk_smd_set_rate(struct clk_hw *hw, unsigned long rate,
rate               88 drivers/clk/at91/clk-smd.c 	unsigned long div = parent_rate / rate;
rate               90 drivers/clk/at91/clk-smd.c 	if (parent_rate % rate || div < 1 || div > (SMD_MAX_DIV + 1))
rate               75 drivers/clk/at91/clk-usb.c 			tmp_parent_rate = req->rate * div;
rate               82 drivers/clk/at91/clk-usb.c 			if (tmp_rate < req->rate)
rate               83 drivers/clk/at91/clk-usb.c 				tmp_diff = req->rate - tmp_rate;
rate               85 drivers/clk/at91/clk-usb.c 				tmp_diff = tmp_rate - req->rate;
rate               94 drivers/clk/at91/clk-usb.c 			if (!best_diff || tmp_rate < req->rate)
rate              105 drivers/clk/at91/clk-usb.c 	req->rate = best_rate;
rate              131 drivers/clk/at91/clk-usb.c static int at91sam9x5_clk_usb_set_rate(struct clk_hw *hw, unsigned long rate,
rate              137 drivers/clk/at91/clk-usb.c 	if (!rate)
rate              140 drivers/clk/at91/clk-usb.c 	div = DIV_ROUND_CLOSEST(parent_rate, rate);
rate              293 drivers/clk/at91/clk-usb.c static long at91rm9200_clk_usb_round_rate(struct clk_hw *hw, unsigned long rate,
rate              310 drivers/clk/at91/clk-usb.c 		tmp_parent_rate = rate * usb->divisors[i];
rate              313 drivers/clk/at91/clk-usb.c 		if (tmprate < rate)
rate              314 drivers/clk/at91/clk-usb.c 			tmpdiff = rate - tmprate;
rate              316 drivers/clk/at91/clk-usb.c 			tmpdiff = tmprate - rate;
rate              331 drivers/clk/at91/clk-usb.c static int at91rm9200_clk_usb_set_rate(struct clk_hw *hw, unsigned long rate,
rate              338 drivers/clk/at91/clk-usb.c 	if (!rate)
rate              341 drivers/clk/at91/clk-usb.c 	div = DIV_ROUND_CLOSEST(parent_rate, rate);
rate               28 drivers/clk/axs10x/i2s_pll_clock.c 	unsigned int rate;
rate              114 drivers/clk/axs10x/i2s_pll_clock.c static long i2s_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              126 drivers/clk/axs10x/i2s_pll_clock.c 	for (i = 0; pll_cfg[i].rate != 0; i++)
rate              127 drivers/clk/axs10x/i2s_pll_clock.c 		if (pll_cfg[i].rate == rate)
rate              128 drivers/clk/axs10x/i2s_pll_clock.c 			return rate;
rate              133 drivers/clk/axs10x/i2s_pll_clock.c static int i2s_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              145 drivers/clk/axs10x/i2s_pll_clock.c 	for (i = 0; pll_cfg[i].rate != 0; i++) {
rate              146 drivers/clk/axs10x/i2s_pll_clock.c 		if (pll_cfg[i].rate == rate) {
rate              155 drivers/clk/axs10x/i2s_pll_clock.c 	dev_err(clk->dev, "invalid rate=%ld, parent_rate=%ld\n", rate,
rate               71 drivers/clk/axs10x/pll_clock.c 	u32 rate;
rate              142 drivers/clk/axs10x/pll_clock.c 	u64 rate;
rate              150 drivers/clk/axs10x/pll_clock.c 	rate = (u64)parent_rate * fbdiv;
rate              151 drivers/clk/axs10x/pll_clock.c 	do_div(rate, idiv * odiv);
rate              153 drivers/clk/axs10x/pll_clock.c 	return rate;
rate              156 drivers/clk/axs10x/pll_clock.c static long axs10x_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              164 drivers/clk/axs10x/pll_clock.c 	if (pll_cfg[0].rate == 0)
rate              167 drivers/clk/axs10x/pll_clock.c 	best_rate = pll_cfg[0].rate;
rate              169 drivers/clk/axs10x/pll_clock.c 	for (i = 1; pll_cfg[i].rate != 0; i++) {
rate              170 drivers/clk/axs10x/pll_clock.c 		if (abs(rate - pll_cfg[i].rate) < abs(rate - best_rate))
rate              171 drivers/clk/axs10x/pll_clock.c 			best_rate = pll_cfg[i].rate;
rate              177 drivers/clk/axs10x/pll_clock.c static int axs10x_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              184 drivers/clk/axs10x/pll_clock.c 	for (i = 0; pll_cfg[i].rate != 0; i++) {
rate              185 drivers/clk/axs10x/pll_clock.c 		if (pll_cfg[i].rate == rate) {
rate              208 drivers/clk/axs10x/pll_clock.c 	dev_err(clk->dev, "invalid rate=%ld, parent_rate=%ld\n", rate,
rate              528 drivers/clk/bcm/clk-bcm2835.c static void bcm2835_pll_choose_ndiv_and_fdiv(unsigned long rate,
rate              534 drivers/clk/bcm/clk-bcm2835.c 	div = (u64)rate << A2W_PLL_FRAC_BITS;
rate              544 drivers/clk/bcm/clk-bcm2835.c 	u64 rate;
rate              549 drivers/clk/bcm/clk-bcm2835.c 	rate = (u64)parent_rate * ((ndiv << A2W_PLL_FRAC_BITS) + fdiv);
rate              550 drivers/clk/bcm/clk-bcm2835.c 	do_div(rate, pdiv);
rate              551 drivers/clk/bcm/clk-bcm2835.c 	return rate >> A2W_PLL_FRAC_BITS;
rate              554 drivers/clk/bcm/clk-bcm2835.c static long bcm2835_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              561 drivers/clk/bcm/clk-bcm2835.c 	rate = clamp(rate, data->min_rate, data->max_rate);
rate              563 drivers/clk/bcm/clk-bcm2835.c 	bcm2835_pll_choose_ndiv_and_fdiv(rate, *parent_rate, &ndiv, &fdiv);
rate              663 drivers/clk/bcm/clk-bcm2835.c 				unsigned long rate, unsigned long parent_rate)
rate              673 drivers/clk/bcm/clk-bcm2835.c 	if (rate > data->max_fb_rate) {
rate              675 drivers/clk/bcm/clk-bcm2835.c 		rate /= 2;
rate              680 drivers/clk/bcm/clk-bcm2835.c 	bcm2835_pll_choose_ndiv_and_fdiv(rate, parent_rate, &ndiv, &fdiv);
rate              792 drivers/clk/bcm/clk-bcm2835.c 					   unsigned long rate,
rate              795 drivers/clk/bcm/clk-bcm2835.c 	return clk_divider_ops.round_rate(hw, rate, parent_rate);
rate              839 drivers/clk/bcm/clk-bcm2835.c 					unsigned long rate,
rate              847 drivers/clk/bcm/clk-bcm2835.c 	div = DIV_ROUND_UP_ULL(parent_rate, rate);
rate              918 drivers/clk/bcm/clk-bcm2835.c 				    unsigned long rate,
rate              930 drivers/clk/bcm/clk-bcm2835.c 	rem = do_div(temp, rate);
rate             1061 drivers/clk/bcm/clk-bcm2835.c 				  unsigned long rate, unsigned long parent_rate)
rate             1066 drivers/clk/bcm/clk-bcm2835.c 	u32 div = bcm2835_clock_choose_div(hw, rate, parent_rate, false);
rate             1101 drivers/clk/bcm/clk-bcm2835.c 							unsigned long rate,
rate             1117 drivers/clk/bcm/clk-bcm2835.c 		*div = bcm2835_clock_choose_div(hw, rate, *prate, true);
rate             1152 drivers/clk/bcm/clk-bcm2835.c 		tmp_rate = clk_hw_round_rate(parent, rate * curdiv);
rate             1155 drivers/clk/bcm/clk-bcm2835.c 		    (tmp_rate > best_rate && tmp_rate <= rate))
rate             1158 drivers/clk/bcm/clk-bcm2835.c 		if (best_rate == rate)
rate             1174 drivers/clk/bcm/clk-bcm2835.c 	unsigned long rate, best_rate = 0;
rate             1200 drivers/clk/bcm/clk-bcm2835.c 		rate = bcm2835_clock_choose_div_and_prate(hw, i, req->rate,
rate             1203 drivers/clk/bcm/clk-bcm2835.c 		if (rate > best_rate && rate <= req->rate) {
rate             1206 drivers/clk/bcm/clk-bcm2835.c 			best_rate = rate;
rate             1217 drivers/clk/bcm/clk-bcm2835.c 	req->rate = best_avgrate;
rate               71 drivers/clk/bcm/clk-iproc-armpll.c 	unsigned long rate;
rate              207 drivers/clk/bcm/clk-iproc-armpll.c 		pll->rate = parent_rate;
rate              208 drivers/clk/bcm/clk-iproc-armpll.c 		return pll->rate;
rate              214 drivers/clk/bcm/clk-iproc-armpll.c 		pll->rate = 0;
rate              226 drivers/clk/bcm/clk-iproc-armpll.c 		pll->rate = 0;
rate              229 drivers/clk/bcm/clk-iproc-armpll.c 	pll->rate = (ndiv * parent_rate) >> 20;
rate              230 drivers/clk/bcm/clk-iproc-armpll.c 	pll->rate = (pll->rate / pdiv) / mdiv;
rate              233 drivers/clk/bcm/clk-iproc-armpll.c 		 pll->rate, parent_rate);
rate              237 drivers/clk/bcm/clk-iproc-armpll.c 	return pll->rate;
rate               31 drivers/clk/bcm/clk-iproc-asiu.c 	unsigned long rate;
rate               87 drivers/clk/bcm/clk-iproc-asiu.c 		clk->rate = 0;
rate               94 drivers/clk/bcm/clk-iproc-asiu.c 		clk->rate = parent_rate;
rate              104 drivers/clk/bcm/clk-iproc-asiu.c 	clk->rate = parent_rate / (div_h + div_l);
rate              106 drivers/clk/bcm/clk-iproc-asiu.c 		 __func__, clk->rate, parent_rate, div_h, div_l);
rate              108 drivers/clk/bcm/clk-iproc-asiu.c 	return clk->rate;
rate              111 drivers/clk/bcm/clk-iproc-asiu.c static long iproc_asiu_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              116 drivers/clk/bcm/clk-iproc-asiu.c 	if (rate == 0 || *parent_rate == 0)
rate              119 drivers/clk/bcm/clk-iproc-asiu.c 	if (rate == *parent_rate)
rate              122 drivers/clk/bcm/clk-iproc-asiu.c 	div = DIV_ROUND_UP(*parent_rate, rate);
rate              129 drivers/clk/bcm/clk-iproc-asiu.c static int iproc_asiu_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              137 drivers/clk/bcm/clk-iproc-asiu.c 	if (rate == 0 || parent_rate == 0)
rate              141 drivers/clk/bcm/clk-iproc-asiu.c 	if (rate == parent_rate) {
rate              148 drivers/clk/bcm/clk-iproc-asiu.c 	div = DIV_ROUND_UP(parent_rate, rate);
rate              116 drivers/clk/bcm/clk-iproc-pll.c 	vco_out->rate = vco_out->ndiv_int * parent_rate;
rate              119 drivers/clk/bcm/clk-iproc-pll.c 	vco_out->rate += residual;
rate              133 drivers/clk/bcm/clk-iproc-pll.c 		if (target_rate == pll->vco_param[i].rate)
rate              321 drivers/clk/bcm/clk-iproc-pll.c 	unsigned long rate = vco->rate;
rate              337 drivers/clk/bcm/clk-iproc-pll.c 	if (rate >= VCO_LOW && rate < VCO_HIGH) {
rate              340 drivers/clk/bcm/clk-iproc-pll.c 	} else if (rate >= VCO_HIGH && rate < VCO_HIGH_HIGH) {
rate              343 drivers/clk/bcm/clk-iproc-pll.c 	} else if (rate >= VCO_HIGH_HIGH && rate < VCO_MAX) {
rate              348 drivers/clk/bcm/clk-iproc-pll.c 				clk_name, rate);
rate              394 drivers/clk/bcm/clk-iproc-pll.c 	if (rate >= VCO_LOW && rate < VCO_MID)
rate              397 drivers/clk/bcm/clk-iproc-pll.c 	if (rate < VCO_HIGH)
rate              466 drivers/clk/bcm/clk-iproc-pll.c 	unsigned long rate;
rate              496 drivers/clk/bcm/clk-iproc-pll.c 	rate = (ndiv * parent_rate) >> 20;
rate              499 drivers/clk/bcm/clk-iproc-pll.c 		rate *= 2;
rate              501 drivers/clk/bcm/clk-iproc-pll.c 		rate /= pdiv;
rate              503 drivers/clk/bcm/clk-iproc-pll.c 	return rate;
rate              517 drivers/clk/bcm/clk-iproc-pll.c 	if (req->rate == 0 || req->best_parent_rate == 0)
rate              523 drivers/clk/bcm/clk-iproc-pll.c 		ret = pll_calc_param(req->rate, req->best_parent_rate,
rate              528 drivers/clk/bcm/clk-iproc-pll.c 		req->rate = vco_param.rate;
rate              537 drivers/clk/bcm/clk-iproc-pll.c 		diff = abs(req->rate - pll->vco_param[i].rate);
rate              547 drivers/clk/bcm/clk-iproc-pll.c 	req->rate = pll->vco_param[best_idx].rate;
rate              552 drivers/clk/bcm/clk-iproc-pll.c static int iproc_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              562 drivers/clk/bcm/clk-iproc-pll.c 		ret = pll_calc_param(rate, parent_rate, &vco_param);
rate              566 drivers/clk/bcm/clk-iproc-pll.c 		rate_index = pll_get_rate_index(pll, rate);
rate              628 drivers/clk/bcm/clk-iproc-pll.c 	unsigned long rate;
rate              639 drivers/clk/bcm/clk-iproc-pll.c 		rate = parent_rate / (mdiv * 2);
rate              641 drivers/clk/bcm/clk-iproc-pll.c 		rate = parent_rate / mdiv;
rate              643 drivers/clk/bcm/clk-iproc-pll.c 	return rate;
rate              651 drivers/clk/bcm/clk-iproc-pll.c 	if (req->rate == 0)
rate              653 drivers/clk/bcm/clk-iproc-pll.c 	if (req->rate == req->best_parent_rate)
rate              656 drivers/clk/bcm/clk-iproc-pll.c 	bestdiv = DIV_ROUND_CLOSEST(req->best_parent_rate, req->rate);
rate              658 drivers/clk/bcm/clk-iproc-pll.c 		req->rate = req->best_parent_rate;
rate              663 drivers/clk/bcm/clk-iproc-pll.c 	req->rate = req->best_parent_rate / bestdiv;
rate              668 drivers/clk/bcm/clk-iproc-pll.c static int iproc_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              677 drivers/clk/bcm/clk-iproc-pll.c 	if (rate == 0 || parent_rate == 0)
rate              680 drivers/clk/bcm/clk-iproc-pll.c 	div = DIV_ROUND_CLOSEST(parent_rate, rate);
rate               95 drivers/clk/bcm/clk-iproc.h 	unsigned long rate;
rate              119 drivers/clk/bcm/clk-kona.c scale_rate(struct bcm_clk_div *div, u32 rate)
rate              122 drivers/clk/bcm/clk-kona.c 		return (u64)rate;
rate              124 drivers/clk/bcm/clk-kona.c 	return (u64)rate << div->u.s.frac_width;
rate              750 drivers/clk/bcm/clk-kona.c 				unsigned long rate, unsigned long parent_rate,
rate              760 drivers/clk/bcm/clk-kona.c 	BUG_ON(!rate);
rate              794 drivers/clk/bcm/clk-kona.c 							rate);
rate             1008 drivers/clk/bcm/clk-kona.c static long kona_peri_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate             1019 drivers/clk/bcm/clk-kona.c 				rate ? rate : 1, *parent_rate, NULL);
rate             1031 drivers/clk/bcm/clk-kona.c 	long rate;
rate             1041 drivers/clk/bcm/clk-kona.c 		rate = kona_peri_clk_round_rate(hw, req->rate,
rate             1043 drivers/clk/bcm/clk-kona.c 		if (rate < 0)
rate             1044 drivers/clk/bcm/clk-kona.c 			return rate;
rate             1046 drivers/clk/bcm/clk-kona.c 		req->rate = rate;
rate             1053 drivers/clk/bcm/clk-kona.c 	best_rate = kona_peri_clk_round_rate(hw, req->rate, &parent_rate);
rate             1054 drivers/clk/bcm/clk-kona.c 	best_delta = abs(best_rate - req->rate);
rate             1068 drivers/clk/bcm/clk-kona.c 		other_rate = kona_peri_clk_round_rate(hw, req->rate,
rate             1070 drivers/clk/bcm/clk-kona.c 		delta = abs(other_rate - req->rate);
rate             1079 drivers/clk/bcm/clk-kona.c 	req->rate = best_rate;
rate             1130 drivers/clk/bcm/clk-kona.c static int kona_peri_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate             1142 drivers/clk/bcm/clk-kona.c 	if (rate == clk_hw_get_rate(hw))
rate             1146 drivers/clk/bcm/clk-kona.c 		return rate == parent_rate ? 0 : -EINVAL;
rate             1154 drivers/clk/bcm/clk-kona.c 		return rate == parent_rate ? 0 : -EINVAL;
rate             1162 drivers/clk/bcm/clk-kona.c 				rate ? rate : 1, parent_rate, &scaled_div);
rate              121 drivers/clk/bcm/clk-raspberrypi.c static int raspberrypi_fw_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              126 drivers/clk/bcm/clk-raspberrypi.c 	u32 new_rate = rate / RPI_FIRMWARE_PLLB_ARM_DIV_RATE;
rate              153 drivers/clk/bcm/clk-raspberrypi.c 	final_rate = clamp(req->rate, rpi->min_rate, rpi->max_rate);
rate              164 drivers/clk/bcm/clk-raspberrypi.c 	req->rate = final_rate >> A2W_PLL_FRAC_BITS;
rate               47 drivers/clk/berlin/berlin2-pll.c 	u64 rate = parent_rate;
rate               66 drivers/clk/berlin/berlin2-pll.c 	rate *= fbdiv * map->mult;
rate               67 drivers/clk/berlin/berlin2-pll.c 	do_div(rate, rfdiv * vcodiv);
rate               69 drivers/clk/berlin/berlin2-pll.c 	return (unsigned long)rate;
rate              261 drivers/clk/clk-asm9260.c 	u32 rate;
rate              276 drivers/clk/clk-asm9260.c 	rate = (ioread32(base + HW_SYSPLLCTRL) & 0xffff) * 1000000;
rate              281 drivers/clk/clk-asm9260.c 			ref_clk, 0, rate, accuracy);
rate              388 drivers/clk/clk-aspeed.c 	u32 val, rate;
rate              423 drivers/clk/clk-aspeed.c 		rate = 24000000 / 13;
rate              425 drivers/clk/clk-aspeed.c 		rate = 24000000;
rate              427 drivers/clk/clk-aspeed.c 	hw = clk_hw_register_fixed_rate(dev, "uart", NULL, 0, rate);
rate              566 drivers/clk/clk-aspeed.c 	int rate;
rate              573 drivers/clk/clk-aspeed.c 	rate = (val >> 8) & 3;
rate              576 drivers/clk/clk-aspeed.c 		hpll = hpll_rates[1][rate];
rate              579 drivers/clk/clk-aspeed.c 		hpll = hpll_rates[0][rate];
rate              582 drivers/clk/clk-aspeed.c 		hpll = hpll_rates[0][rate];
rate              413 drivers/clk/clk-ast2600.c 	u32 val, rate;
rate              442 drivers/clk/clk-ast2600.c 		rate = 24000000 / 13;
rate              444 drivers/clk/clk-ast2600.c 		rate = 24000000;
rate              445 drivers/clk/clk-ast2600.c 	hw = clk_hw_register_fixed_rate(dev, "uart", NULL, 0, rate);
rate              453 drivers/clk/clk-ast2600.c 		rate = 24000000 / 13;
rate              455 drivers/clk/clk-ast2600.c 		rate = 24000000;
rate              456 drivers/clk/clk-ast2600.c 	hw = clk_hw_register_fixed_rate(dev, "uartx", NULL, 0, rate);
rate              250 drivers/clk/clk-axi-clkgen.c 	unsigned long rate, unsigned long parent_rate)
rate              261 drivers/clk/clk-axi-clkgen.c 	if (parent_rate == 0 || rate == 0)
rate              264 drivers/clk/clk-axi-clkgen.c 	axi_clkgen_calc_params(parent_rate, rate, &d, &m, &dout);
rate              299 drivers/clk/clk-axi-clkgen.c static long axi_clkgen_round_rate(struct clk_hw *hw, unsigned long rate,
rate              305 drivers/clk/clk-axi-clkgen.c 	axi_clkgen_calc_params(*parent_rate, rate, &d, &m, &dout);
rate               52 drivers/clk/clk-axm5516.c 	unsigned long rate, fbdiv, refdiv, postdiv;
rate               59 drivers/clk/clk-axm5516.c 	rate = (parent_rate / (refdiv * postdiv)) * fbdiv;
rate               61 drivers/clk/clk-axm5516.c 	return rate;
rate              185 drivers/clk/clk-cdce706.c static long cdce706_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              194 drivers/clk/clk-cdce706.c 		__func__, rate, *parent_rate);
rate              196 drivers/clk/clk-cdce706.c 	rational_best_approximation(rate, *parent_rate,
rate              211 drivers/clk/clk-cdce706.c static int cdce706_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              246 drivers/clk/clk-cdce706.c 				 rate > CDCE706_PLL_FREQ_HI ?
rate              290 drivers/clk/clk-cdce706.c static long cdce706_divider_round_rate(struct clk_hw *hw, unsigned long rate,
rate              299 drivers/clk/clk-cdce706.c 		__func__, rate, *parent_rate);
rate              301 drivers/clk/clk-cdce706.c 	rational_best_approximation(rate, *parent_rate,
rate              308 drivers/clk/clk-cdce706.c 		unsigned long best_diff = rate;
rate              313 drivers/clk/clk-cdce706.c 		for (div = CDCE706_PLL_FREQ_MIN / rate; best_diff &&
rate              314 drivers/clk/clk-cdce706.c 		     div <= CDCE706_PLL_FREQ_MAX / rate; ++div) {
rate              320 drivers/clk/clk-cdce706.c 			if (rate * div < CDCE706_PLL_FREQ_MIN)
rate              323 drivers/clk/clk-cdce706.c 			rational_best_approximation(rate * div, gp_rate,
rate              331 drivers/clk/clk-cdce706.c 			diff = max(div_rate, rate) - min(div_rate, rate);
rate              346 drivers/clk/clk-cdce706.c 			__func__, *parent_rate, rate * div);
rate              347 drivers/clk/clk-cdce706.c 		*parent_rate = rate * div;
rate              358 drivers/clk/clk-cdce706.c static int cdce706_divider_set_rate(struct clk_hw *hw, unsigned long rate,
rate              423 drivers/clk/clk-cdce706.c static long cdce706_clkout_round_rate(struct clk_hw *hw, unsigned long rate,
rate              426 drivers/clk/clk-cdce706.c 	*parent_rate = rate;
rate              427 drivers/clk/clk-cdce706.c 	return rate;
rate              430 drivers/clk/clk-cdce706.c static int cdce706_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
rate              109 drivers/clk/clk-cdce925.c static void cdce925_pll_find_rate(unsigned long rate,
rate              116 drivers/clk/clk-cdce925.c 	if (rate <= parent_rate) {
rate              118 drivers/clk/clk-cdce925.c 		rate = parent_rate;
rate              123 drivers/clk/clk-cdce925.c 		if (rate < CDCE925_PLL_FREQUENCY_MIN)
rate              124 drivers/clk/clk-cdce925.c 			rate = CDCE925_PLL_FREQUENCY_MIN;
rate              125 drivers/clk/clk-cdce925.c 		else if (rate > CDCE925_PLL_FREQUENCY_MAX)
rate              126 drivers/clk/clk-cdce925.c 			rate = CDCE925_PLL_FREQUENCY_MAX;
rate              128 drivers/clk/clk-cdce925.c 		g = gcd(rate, parent_rate);
rate              130 drivers/clk/clk-cdce925.c 		un = rate / g;
rate              146 drivers/clk/clk-cdce925.c static long cdce925_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              151 drivers/clk/clk-cdce925.c 	cdce925_pll_find_rate(rate, *parent_rate, &n, &m);
rate              155 drivers/clk/clk-cdce925.c static int cdce925_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              160 drivers/clk/clk-cdce925.c 	if (!rate || (rate == parent_rate)) {
rate              166 drivers/clk/clk-cdce925.c 	if ((rate < CDCE925_PLL_FREQUENCY_MIN) ||
rate              167 drivers/clk/clk-cdce925.c 		(rate > CDCE925_PLL_FREQUENCY_MAX)) {
rate              168 drivers/clk/clk-cdce925.c 		pr_debug("%s: rate %lu outside PLL range.\n", __func__, rate);
rate              172 drivers/clk/clk-cdce925.c 	if (rate < parent_rate) {
rate              174 drivers/clk/clk-cdce925.c 			rate, parent_rate);
rate              178 drivers/clk/clk-cdce925.c 	cdce925_pll_find_rate(rate, parent_rate, &data->n, &data->m);
rate              203 drivers/clk/clk-cdce925.c 	unsigned long rate = clk_get_rate(parent);
rate              205 drivers/clk/clk-cdce925.c 	rate = mult_frac(rate, (unsigned long)n, (unsigned long)m);
rate              206 drivers/clk/clk-cdce925.c 	if (rate >= 175000000)
rate              208 drivers/clk/clk-cdce925.c 	if (rate >= 150000000)
rate              210 drivers/clk/clk-cdce925.c 	if (rate >= 125000000)
rate              378 drivers/clk/clk-cdce925.c static u16 cdce925_calc_divider(unsigned long rate,
rate              383 drivers/clk/clk-cdce925.c 	if (!rate)
rate              385 drivers/clk/clk-cdce925.c 	if (rate >= parent_rate)
rate              388 drivers/clk/clk-cdce925.c 	divider = DIV_ROUND_CLOSEST(parent_rate, rate);
rate              396 drivers/clk/clk-cdce925.c 	struct clk_hw *hw, unsigned long rate)
rate              401 drivers/clk/clk-cdce925.c 	unsigned long best_rate_error = rate;
rate              407 drivers/clk/clk-cdce925.c 	if (root_rate % rate == 0)
rate              410 drivers/clk/clk-cdce925.c 	pdiv_min = (u16)max(1ul, DIV_ROUND_UP(CDCE925_PLL_FREQUENCY_MIN, rate));
rate              411 drivers/clk/clk-cdce925.c 	pdiv_max = (u16)min(127ul, CDCE925_PLL_FREQUENCY_MAX / rate);
rate              418 drivers/clk/clk-cdce925.c 		unsigned long target_rate = rate * pdiv_now;
rate              426 drivers/clk/clk-cdce925.c 		rate_error = abs((long)actual_rate - (long)rate);
rate              435 drivers/clk/clk-cdce925.c 	return rate * pdiv_best;
rate              438 drivers/clk/clk-cdce925.c static long cdce925_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              442 drivers/clk/clk-cdce925.c 	u16 divider = cdce925_calc_divider(rate, l_parent_rate);
rate              444 drivers/clk/clk-cdce925.c 	if (l_parent_rate / divider != rate) {
rate              445 drivers/clk/clk-cdce925.c 		l_parent_rate = cdce925_clk_best_parent_rate(hw, rate);
rate              446 drivers/clk/clk-cdce925.c 		divider = cdce925_calc_divider(rate, l_parent_rate);
rate              455 drivers/clk/clk-cdce925.c static int cdce925_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              460 drivers/clk/clk-cdce925.c 	data->pdiv = cdce925_calc_divider(rate, parent_rate);
rate              474 drivers/clk/clk-cdce925.c static u16 cdce925_y1_calc_divider(unsigned long rate,
rate              479 drivers/clk/clk-cdce925.c 	if (!rate)
rate              481 drivers/clk/clk-cdce925.c 	if (rate >= parent_rate)
rate              484 drivers/clk/clk-cdce925.c 	divider = DIV_ROUND_CLOSEST(parent_rate, rate);
rate              491 drivers/clk/clk-cdce925.c static long cdce925_clk_y1_round_rate(struct clk_hw *hw, unsigned long rate,
rate              495 drivers/clk/clk-cdce925.c 	u16 divider = cdce925_y1_calc_divider(rate, l_parent_rate);
rate              502 drivers/clk/clk-cdce925.c static int cdce925_clk_y1_set_rate(struct clk_hw *hw, unsigned long rate,
rate              507 drivers/clk/clk-cdce925.c 	data->pdiv = cdce925_y1_calc_divider(rate, parent_rate);
rate               57 drivers/clk/clk-composite.c 	long rate;
rate               72 drivers/clk/clk-composite.c 			rate = rate_ops->round_rate(rate_hw, req->rate,
rate               74 drivers/clk/clk-composite.c 			if (rate < 0)
rate               75 drivers/clk/clk-composite.c 				return rate;
rate               77 drivers/clk/clk-composite.c 			req->rate = rate;
rate               88 drivers/clk/clk-composite.c 			tmp_rate = rate_ops->round_rate(rate_hw, req->rate,
rate               93 drivers/clk/clk-composite.c 			rate_diff = abs(req->rate - tmp_rate);
rate              107 drivers/clk/clk-composite.c 		req->rate = best_rate;
rate              118 drivers/clk/clk-composite.c static long clk_composite_round_rate(struct clk_hw *hw, unsigned long rate,
rate              127 drivers/clk/clk-composite.c 	return rate_ops->round_rate(rate_hw, rate, prate);
rate              130 drivers/clk/clk-composite.c static int clk_composite_set_rate(struct clk_hw *hw, unsigned long rate,
rate              139 drivers/clk/clk-composite.c 	return rate_ops->set_rate(rate_hw, rate, parent_rate);
rate              143 drivers/clk/clk-composite.c 					     unsigned long rate,
rate              158 drivers/clk/clk-composite.c 	if (temp_rate > rate) {
rate              159 drivers/clk/clk-composite.c 		rate_ops->set_rate(rate_hw, rate, parent_rate);
rate              163 drivers/clk/clk-composite.c 		rate_ops->set_rate(rate_hw, rate, parent_rate);
rate               83 drivers/clk/clk-conf.c 	u32 rate;
rate               85 drivers/clk/clk-conf.c 	of_property_for_each_u32(node, "assigned-clock-rates", prop, cur, rate) {
rate               86 drivers/clk/clk-conf.c 		if (rate) {
rate              107 drivers/clk/clk-conf.c 			rc = clk_set_rate(clk, rate);
rate              110 drivers/clk/clk-conf.c 				       __clk_get_name(clk), rate, rc,
rate              300 drivers/clk/clk-cs2000-cp.c static long cs2000_round_rate(struct clk_hw *hw, unsigned long rate,
rate              305 drivers/clk/clk-cs2000-cp.c 	ratio = cs2000_rate_to_ratio(*parent_rate, rate);
rate              311 drivers/clk/clk-cs2000-cp.c 			     unsigned long rate, unsigned long parent_rate)
rate              320 drivers/clk/clk-cs2000-cp.c 	ret = cs2000_ratio_set(priv, ch, parent_rate, rate);
rate              328 drivers/clk/clk-cs2000-cp.c 	priv->saved_rate	= rate;
rate              335 drivers/clk/clk-cs2000-cp.c 			   unsigned long rate, unsigned long parent_rate)
rate              340 drivers/clk/clk-cs2000-cp.c 	return __cs2000_set_rate(priv, ch, rate, parent_rate);
rate              425 drivers/clk/clk-cs2000-cp.c 	int rate;
rate              435 drivers/clk/clk-cs2000-cp.c 	rate = clk_get_rate(priv->ref_clk);
rate              436 drivers/clk/clk-cs2000-cp.c 	ret = __cs2000_set_rate(priv, ch, rate, rate);
rate              219 drivers/clk/clk-divider.c 			 unsigned long parent_rate, unsigned long rate,
rate              222 drivers/clk/clk-divider.c 	int div = DIV_ROUND_UP_ULL((u64)parent_rate, rate);
rate              233 drivers/clk/clk-divider.c 			      unsigned long parent_rate, unsigned long rate,
rate              239 drivers/clk/clk-divider.c 	up = DIV_ROUND_UP_ULL((u64)parent_rate, rate);
rate              240 drivers/clk/clk-divider.c 	down = parent_rate / rate;
rate              253 drivers/clk/clk-divider.c 	return (rate - up_rate) <= (down_rate - rate) ? up : down;
rate              257 drivers/clk/clk-divider.c 		      unsigned long parent_rate, unsigned long rate,
rate              261 drivers/clk/clk-divider.c 		return _div_round_closest(table, parent_rate, rate, flags);
rate              263 drivers/clk/clk-divider.c 	return _div_round_up(table, parent_rate, rate, flags);
rate              266 drivers/clk/clk-divider.c static bool _is_best_div(unsigned long rate, unsigned long now,
rate              270 drivers/clk/clk-divider.c 		return abs(rate - now) < abs(rate - best);
rate              272 drivers/clk/clk-divider.c 	return now <= rate && now > best;
rate              289 drivers/clk/clk-divider.c 			       unsigned long rate,
rate              298 drivers/clk/clk-divider.c 	if (!rate)
rate              299 drivers/clk/clk-divider.c 		rate = 1;
rate              305 drivers/clk/clk-divider.c 		bestdiv = _div_round(table, parent_rate, rate, flags);
rate              315 drivers/clk/clk-divider.c 	maxdiv = min(ULONG_MAX / rate, maxdiv);
rate              319 drivers/clk/clk-divider.c 		if (rate * i == parent_rate_saved) {
rate              328 drivers/clk/clk-divider.c 		parent_rate = clk_hw_round_rate(parent, rate * i);
rate              330 drivers/clk/clk-divider.c 		if (_is_best_div(rate, now, best, flags)) {
rate              346 drivers/clk/clk-divider.c 			       unsigned long rate, unsigned long *prate,
rate              352 drivers/clk/clk-divider.c 	div = clk_divider_bestdiv(hw, parent, rate, prate, table, width, flags);
rate              359 drivers/clk/clk-divider.c 				  unsigned long rate, unsigned long *prate,
rate              372 drivers/clk/clk-divider.c 		*prate = clk_hw_round_rate(parent, rate * div);
rate              380 drivers/clk/clk-divider.c static long clk_divider_round_rate(struct clk_hw *hw, unsigned long rate,
rate              392 drivers/clk/clk-divider.c 		return divider_ro_round_rate(hw, rate, prate, divider->table,
rate              397 drivers/clk/clk-divider.c 	return divider_round_rate(hw, rate, prate, divider->table,
rate              401 drivers/clk/clk-divider.c int divider_get_val(unsigned long rate, unsigned long parent_rate,
rate              407 drivers/clk/clk-divider.c 	div = DIV_ROUND_UP_ULL((u64)parent_rate, rate);
rate              418 drivers/clk/clk-divider.c static int clk_divider_set_rate(struct clk_hw *hw, unsigned long rate,
rate              426 drivers/clk/clk-divider.c 	value = divider_get_val(rate, parent_rate, divider->table,
rate               26 drivers/clk/clk-fixed-factor.c 	unsigned long long int rate;
rate               28 drivers/clk/clk-fixed-factor.c 	rate = (unsigned long long int)parent_rate * fix->mult;
rate               29 drivers/clk/clk-fixed-factor.c 	do_div(rate, fix->div);
rate               30 drivers/clk/clk-fixed-factor.c 	return (unsigned long)rate;
rate               33 drivers/clk/clk-fixed-factor.c static long clk_factor_round_rate(struct clk_hw *hw, unsigned long rate,
rate               41 drivers/clk/clk-fixed-factor.c 		best_parent = (rate / fix->mult) * fix->div;
rate               48 drivers/clk/clk-fixed-factor.c static int clk_factor_set_rate(struct clk_hw *hw, unsigned long rate,
rate              162 drivers/clk/clk-fixed-rate.c 	u32 rate;
rate              166 drivers/clk/clk-fixed-rate.c 	if (of_property_read_u32(node, "clock-frequency", &rate))
rate              174 drivers/clk/clk-fixed-rate.c 						    0, rate, accuracy);
rate               71 drivers/clk/clk-fractional-divider.c static void clk_fd_general_approximation(struct clk_hw *hw, unsigned long rate,
rate               83 drivers/clk/clk-fractional-divider.c 	scale = fls_long(*parent_rate / rate - 1);
rate               85 drivers/clk/clk-fractional-divider.c 		rate <<= scale - fd->nwidth;
rate               87 drivers/clk/clk-fractional-divider.c 	rational_best_approximation(rate, *parent_rate,
rate               92 drivers/clk/clk-fractional-divider.c static long clk_fd_round_rate(struct clk_hw *hw, unsigned long rate,
rate               99 drivers/clk/clk-fractional-divider.c 	if (!rate || (!clk_hw_can_set_rate_parent(hw) && rate >= *parent_rate))
rate              103 drivers/clk/clk-fractional-divider.c 		fd->approximation(hw, rate, parent_rate, &m, &n);
rate              105 drivers/clk/clk-fractional-divider.c 		clk_fd_general_approximation(hw, rate, parent_rate, &m, &n);
rate              113 drivers/clk/clk-fractional-divider.c static int clk_fd_set_rate(struct clk_hw *hw, unsigned long rate,
rate              121 drivers/clk/clk-fractional-divider.c 	rational_best_approximation(rate, parent_rate,
rate               75 drivers/clk/clk-gemini.c 	unsigned long rate;
rate              131 drivers/clk/clk-gemini.c static long gemini_pci_round_rate(struct clk_hw *hw, unsigned long rate,
rate              135 drivers/clk/clk-gemini.c 	if (rate < 48000000)
rate              140 drivers/clk/clk-gemini.c static int gemini_pci_set_rate(struct clk_hw *hw, unsigned long rate,
rate              145 drivers/clk/clk-gemini.c 	if (rate == 33000000)
rate              149 drivers/clk/clk-gemini.c 	if (rate == 66000000)
rate              110 drivers/clk/clk-highbank.c static void clk_pll_calc(unsigned long rate, unsigned long ref_freq,
rate              116 drivers/clk/clk-highbank.c 	if (rate < HB_PLL_MIN_FREQ)
rate              117 drivers/clk/clk-highbank.c 		rate = HB_PLL_MIN_FREQ;
rate              118 drivers/clk/clk-highbank.c 	if (rate > HB_PLL_MAX_FREQ)
rate              119 drivers/clk/clk-highbank.c 		rate = HB_PLL_MAX_FREQ;
rate              122 drivers/clk/clk-highbank.c 		if ((rate * (1 << divq)) >= HB_PLL_VCO_MIN_FREQ)
rate              126 drivers/clk/clk-highbank.c 	vco_freq = rate * (1 << divq);
rate              134 drivers/clk/clk-highbank.c static long clk_pll_round_rate(struct clk_hw *hwclk, unsigned long rate,
rate              140 drivers/clk/clk-highbank.c 	clk_pll_calc(rate, ref_freq, &divq, &divf);
rate              145 drivers/clk/clk-highbank.c static int clk_pll_set_rate(struct clk_hw *hwclk, unsigned long rate,
rate              152 drivers/clk/clk-highbank.c 	clk_pll_calc(rate, parent_rate, &divq, &divf);
rate              231 drivers/clk/clk-highbank.c static long clk_periclk_round_rate(struct clk_hw *hwclk, unsigned long rate,
rate              236 drivers/clk/clk-highbank.c 	div = *parent_rate / rate;
rate              243 drivers/clk/clk-highbank.c static int clk_periclk_set_rate(struct clk_hw *hwclk, unsigned long rate,
rate              249 drivers/clk/clk-highbank.c 	div = parent_rate / rate;
rate               51 drivers/clk/clk-hsdk-pll.c 	u32 rate;
rate               98 drivers/clk/clk-hsdk-pll.c 	int (*update_rate)(struct hsdk_pll_clk *clk, unsigned long rate,
rate              167 drivers/clk/clk-hsdk-pll.c 	u64 rate;
rate              190 drivers/clk/clk-hsdk-pll.c 	rate = (u64)parent_rate * fbdiv;
rate              191 drivers/clk/clk-hsdk-pll.c 	do_div(rate, idiv * odiv);
rate              193 drivers/clk/clk-hsdk-pll.c 	return rate;
rate              196 drivers/clk/clk-hsdk-pll.c static long hsdk_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              204 drivers/clk/clk-hsdk-pll.c 	if (pll_cfg[0].rate == 0)
rate              207 drivers/clk/clk-hsdk-pll.c 	best_rate = pll_cfg[0].rate;
rate              209 drivers/clk/clk-hsdk-pll.c 	for (i = 1; pll_cfg[i].rate != 0; i++) {
rate              210 drivers/clk/clk-hsdk-pll.c 		if (abs(rate - pll_cfg[i].rate) < abs(rate - best_rate))
rate              211 drivers/clk/clk-hsdk-pll.c 			best_rate = pll_cfg[i].rate;
rate              220 drivers/clk/clk-hsdk-pll.c 				     unsigned long rate,
rate              240 drivers/clk/clk-hsdk-pll.c 				     unsigned long rate,
rate              247 drivers/clk/clk-hsdk-pll.c 	if (rate > CORE_IF_CLK_THRESHOLD_HZ)
rate              267 drivers/clk/clk-hsdk-pll.c 	if (rate <= CORE_IF_CLK_THRESHOLD_HZ)
rate              273 drivers/clk/clk-hsdk-pll.c static int hsdk_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              280 drivers/clk/clk-hsdk-pll.c 	for (i = 0; pll_cfg[i].rate != 0; i++) {
rate              281 drivers/clk/clk-hsdk-pll.c 		if (pll_cfg[i].rate == rate) {
rate              282 drivers/clk/clk-hsdk-pll.c 			return clk->pll_devdata->update_rate(clk, rate,
rate              287 drivers/clk/clk-hsdk-pll.c 	dev_err(clk->dev, "invalid rate=%ld, parent_rate=%ld\n", rate,
rate              129 drivers/clk/clk-max9485.c static int max9485_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
rate              136 drivers/clk/clk-max9485.c 		if (entry->out == rate)
rate              162 drivers/clk/clk-max9485.c static long max9485_clkout_round_rate(struct clk_hw *hw, unsigned long rate,
rate              169 drivers/clk/clk-max9485.c 		if (curr->out == rate)
rate              170 drivers/clk/clk-max9485.c 			return rate;
rate              176 drivers/clk/clk-max9485.c 		if (curr->out > rate) {
rate              192 drivers/clk/clk-max9485.c 			return (mid > rate) ? prev->out : curr->out;
rate              389 drivers/clk/clk-milbeaut.c static long m10v_clk_divider_round_rate(struct clk_hw *hw, unsigned long rate,
rate              401 drivers/clk/clk-milbeaut.c 		return divider_ro_round_rate(hw, rate, prate, divider->table,
rate              406 drivers/clk/clk-milbeaut.c 	return divider_round_rate(hw, rate, prate, divider->table,
rate              410 drivers/clk/clk-milbeaut.c static int m10v_clk_divider_set_rate(struct clk_hw *hw, unsigned long rate,
rate              419 drivers/clk/clk-milbeaut.c 	value = divider_get_val(rate, parent_rate, divider->table,
rate               32 drivers/clk/clk-multiplier.c 				unsigned long rate,
rate               36 drivers/clk/clk-multiplier.c 		return DIV_ROUND_CLOSEST(rate, parent_rate);
rate               38 drivers/clk/clk-multiplier.c 	return rate / parent_rate;
rate               56 drivers/clk/clk-multiplier.c static bool __is_best_rate(unsigned long rate, unsigned long new,
rate               60 drivers/clk/clk-multiplier.c 		return abs(rate - new) < abs(rate - best);
rate               62 drivers/clk/clk-multiplier.c 	return new >= rate && new < best;
rate               65 drivers/clk/clk-multiplier.c static unsigned long __bestmult(struct clk_hw *hw, unsigned long rate,
rate               76 drivers/clk/clk-multiplier.c 		bestmult = rate / orig_parent_rate;
rate               91 drivers/clk/clk-multiplier.c 		if (rate == orig_parent_rate * i) {
rate              102 drivers/clk/clk-multiplier.c 						rate / i);
rate              105 drivers/clk/clk-multiplier.c 		if (__is_best_rate(rate, current_rate, best_rate, flags)) {
rate              115 drivers/clk/clk-multiplier.c static long clk_multiplier_round_rate(struct clk_hw *hw, unsigned long rate,
rate              119 drivers/clk/clk-multiplier.c 	unsigned long factor = __bestmult(hw, rate, parent_rate,
rate              125 drivers/clk/clk-multiplier.c static int clk_multiplier_set_rate(struct clk_hw *hw, unsigned long rate,
rate              129 drivers/clk/clk-multiplier.c 	unsigned long factor = __get_mult(mult, rate, parent_rate);
rate              863 drivers/clk/clk-qoriq.c 		unsigned long rate;
rate              871 drivers/clk/clk-qoriq.c 		rate = clk_get_rate(div->clk);
rate              874 drivers/clk/clk-qoriq.c 		    rate > pct80_rate)
rate              876 drivers/clk/clk-qoriq.c 		if (rate < min_rate)
rate              878 drivers/clk/clk-qoriq.c 		if (rate > max_rate)
rate             1033 drivers/clk/clk-qoriq.c 	u32 rate;
rate             1035 drivers/clk/clk-qoriq.c 	if (of_property_read_u32(node, "clock-frequency", &rate))
rate             1038 drivers/clk/clk-qoriq.c 	return clk_register_fixed_rate(NULL, name, NULL, 0, rate);
rate               29 drivers/clk/clk-scmi.c 	u64 rate;
rate               32 drivers/clk/clk-scmi.c 	ret = clk->handle->clk_ops->rate_get(clk->handle, clk->id, &rate);
rate               35 drivers/clk/clk-scmi.c 	return rate;
rate               38 drivers/clk/clk-scmi.c static long scmi_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate               51 drivers/clk/clk-scmi.c 		return rate;
rate               55 drivers/clk/clk-scmi.c 	if (rate <= fmin)
rate               57 drivers/clk/clk-scmi.c 	else if (rate >= fmax)
rate               60 drivers/clk/clk-scmi.c 	ftmp = rate - fmin;
rate               67 drivers/clk/clk-scmi.c static int scmi_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate               72 drivers/clk/clk-scmi.c 	return clk->handle->clk_ops->rate_set(clk->handle, clk->id, rate);
rate               36 drivers/clk/clk-scpi.c static long scpi_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate               45 drivers/clk/clk-scpi.c 	return rate;
rate               48 drivers/clk/clk-scpi.c static int scpi_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate               53 drivers/clk/clk-scpi.c 	return clk->scpi_ops->clk_set_val(clk->id, rate);
rate               63 drivers/clk/clk-scpi.c static long __scpi_dvfs_round_rate(struct scpi_clk *clk, unsigned long rate)
rate               71 drivers/clk/clk-scpi.c 		if (ftmp >= rate) {
rate               96 drivers/clk/clk-scpi.c static long scpi_dvfs_round_rate(struct clk_hw *hw, unsigned long rate,
rate              101 drivers/clk/clk-scpi.c 	return __scpi_dvfs_round_rate(clk, rate);
rate              104 drivers/clk/clk-scpi.c static int __scpi_find_dvfs_index(struct scpi_clk *clk, unsigned long rate)
rate              110 drivers/clk/clk-scpi.c 		if (opp->freq == rate)
rate              115 drivers/clk/clk-scpi.c static int scpi_dvfs_set_rate(struct clk_hw *hw, unsigned long rate,
rate              119 drivers/clk/clk-scpi.c 	int ret = __scpi_find_dvfs_index(clk, rate);
rate              230 drivers/clk/clk-si514.c static long si514_round_rate(struct clk_hw *hw, unsigned long rate,
rate              236 drivers/clk/clk-si514.c 	if (!rate)
rate              239 drivers/clk/clk-si514.c 	err = si514_calc_muldiv(&settings, rate);
rate              251 drivers/clk/clk-si514.c static int si514_set_rate(struct clk_hw *hw, unsigned long rate,
rate              259 drivers/clk/clk-si514.c 	err = si514_calc_muldiv(&settings, rate);
rate              500 drivers/clk/clk-si5341.c static long si5341_synth_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              509 drivers/clk/clk-si5341.c 	if (rate < f)
rate              514 drivers/clk/clk-si5341.c 	if (rate > f)
rate              517 drivers/clk/clk-si5341.c 	return rate;
rate              539 drivers/clk/clk-si5341.c static int si5341_synth_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              552 drivers/clk/clk-si5341.c 	r = do_div(n_num, rate);
rate              559 drivers/clk/clk-si5341.c 		g = gcd(r, rate);
rate              560 drivers/clk/clk-si5341.c 		n_den = rate / g;
rate              663 drivers/clk/clk-si5341.c static long si5341_output_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              671 drivers/clk/clk-si5341.c 	if (r && !(r % rate))
rate              672 drivers/clk/clk-si5341.c 		return (long)rate;
rate              675 drivers/clk/clk-si5341.c 		if (rate > 200000000) {
rate              680 drivers/clk/clk-si5341.c 			r = (400000000u / rate) & ~1;
rate              682 drivers/clk/clk-si5341.c 		*parent_rate = r * rate;
rate              685 drivers/clk/clk-si5341.c 		r /= rate;
rate              686 drivers/clk/clk-si5341.c 		rate = *parent_rate / (r << 1);
rate              689 drivers/clk/clk-si5341.c 	return rate;
rate              692 drivers/clk/clk-si5341.c static int si5341_output_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              697 drivers/clk/clk-si5341.c 	u32 r_div = (parent_rate / rate) >> 1;
rate              270 drivers/clk/clk-si5351.c 	unsigned long rate;
rate              273 drivers/clk/clk-si5351.c 	rate = parent_rate;
rate              276 drivers/clk/clk-si5351.c 		rate /= 8;
rate              279 drivers/clk/clk-si5351.c 		rate /= 4;
rate              282 drivers/clk/clk-si5351.c 		rate /= 2;
rate              291 drivers/clk/clk-si5351.c 		__func__, (1 << (idiv >> 6)), rate);
rate              293 drivers/clk/clk-si5351.c 	return rate;
rate              326 drivers/clk/clk-si5351.c static int si5351_vxco_set_rate(struct clk_hw *hw, unsigned long rate,
rate              421 drivers/clk/clk-si5351.c 	unsigned long long rate;
rate              430 drivers/clk/clk-si5351.c 	rate  = hwdata->params.p1 * hwdata->params.p3;
rate              431 drivers/clk/clk-si5351.c 	rate += 512 * hwdata->params.p3;
rate              432 drivers/clk/clk-si5351.c 	rate += hwdata->params.p2;
rate              433 drivers/clk/clk-si5351.c 	rate *= parent_rate;
rate              434 drivers/clk/clk-si5351.c 	do_div(rate, 128 * hwdata->params.p3);
rate              440 drivers/clk/clk-si5351.c 		parent_rate, (unsigned long)rate);
rate              442 drivers/clk/clk-si5351.c 	return (unsigned long)rate;
rate              445 drivers/clk/clk-si5351.c static long si5351_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              453 drivers/clk/clk-si5351.c 	if (rate < SI5351_PLL_VCO_MIN)
rate              454 drivers/clk/clk-si5351.c 		rate = SI5351_PLL_VCO_MIN;
rate              455 drivers/clk/clk-si5351.c 	if (rate > SI5351_PLL_VCO_MAX)
rate              456 drivers/clk/clk-si5351.c 		rate = SI5351_PLL_VCO_MAX;
rate              459 drivers/clk/clk-si5351.c 	a = rate / *parent_rate;
rate              462 drivers/clk/clk-si5351.c 		rate = *parent_rate * SI5351_PLL_A_MIN;
rate              464 drivers/clk/clk-si5351.c 		rate = *parent_rate * SI5351_PLL_A_MAX;
rate              468 drivers/clk/clk-si5351.c 	lltmp = rate % (*parent_rate);
rate              491 drivers/clk/clk-si5351.c 	rate  = (unsigned long)lltmp;
rate              492 drivers/clk/clk-si5351.c 	rate += *parent_rate * a;
rate              497 drivers/clk/clk-si5351.c 		*parent_rate, rate);
rate              499 drivers/clk/clk-si5351.c 	return rate;
rate              502 drivers/clk/clk-si5351.c static int si5351_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              527 drivers/clk/clk-si5351.c 		parent_rate, rate);
rate              605 drivers/clk/clk-si5351.c 	unsigned long long rate;
rate              615 drivers/clk/clk-si5351.c 	rate = parent_rate;
rate              624 drivers/clk/clk-si5351.c 		rate *= 128 * hwdata->params.p3;
rate              632 drivers/clk/clk-si5351.c 	do_div(rate, m);
rate              638 drivers/clk/clk-si5351.c 		m, parent_rate, (unsigned long)rate);
rate              640 drivers/clk/clk-si5351.c 	return (unsigned long)rate;
rate              643 drivers/clk/clk-si5351.c static long si5351_msynth_round_rate(struct clk_hw *hw, unsigned long rate,
rate              653 drivers/clk/clk-si5351.c 	if (hwdata->num >= 6 && rate > SI5351_MULTISYNTH67_MAX_FREQ)
rate              654 drivers/clk/clk-si5351.c 		rate = SI5351_MULTISYNTH67_MAX_FREQ;
rate              657 drivers/clk/clk-si5351.c 	if (rate > SI5351_MULTISYNTH_MAX_FREQ)
rate              658 drivers/clk/clk-si5351.c 		rate = SI5351_MULTISYNTH_MAX_FREQ;
rate              659 drivers/clk/clk-si5351.c 	if (rate < SI5351_MULTISYNTH_MIN_FREQ)
rate              660 drivers/clk/clk-si5351.c 		rate = SI5351_MULTISYNTH_MIN_FREQ;
rate              663 drivers/clk/clk-si5351.c 	if (rate > SI5351_MULTISYNTH_DIVBY4_FREQ)
rate              674 drivers/clk/clk-si5351.c 			do_div(lltmp, rate);
rate              682 drivers/clk/clk-si5351.c 		*parent_rate = a * rate;
rate              685 drivers/clk/clk-si5351.c 		a = DIV_ROUND_CLOSEST(*parent_rate, rate);
rate              698 drivers/clk/clk-si5351.c 			rate = SI5351_MULTISYNTH_DIVBY4_FREQ;
rate              703 drivers/clk/clk-si5351.c 		a = *parent_rate / rate;
rate              711 drivers/clk/clk-si5351.c 		lltmp = (*parent_rate) % rate;
rate              713 drivers/clk/clk-si5351.c 		do_div(lltmp, rate);
rate              728 drivers/clk/clk-si5351.c 	rate  = (unsigned long)lltmp;
rate              750 drivers/clk/clk-si5351.c 		*parent_rate, rate);
rate              752 drivers/clk/clk-si5351.c 	return rate;
rate              755 drivers/clk/clk-si5351.c static int si5351_msynth_set_rate(struct clk_hw *hw, unsigned long rate,
rate              766 drivers/clk/clk-si5351.c 	if (rate > SI5351_MULTISYNTH_DIVBY4_FREQ)
rate              783 drivers/clk/clk-si5351.c 		divby4, parent_rate, rate);
rate             1028 drivers/clk/clk-si5351.c static long si5351_clkout_round_rate(struct clk_hw *hw, unsigned long rate,
rate             1036 drivers/clk/clk-si5351.c 	if (hwdata->num >= 6 && rate > SI5351_CLKOUT67_MAX_FREQ)
rate             1037 drivers/clk/clk-si5351.c 		rate = SI5351_CLKOUT67_MAX_FREQ;
rate             1040 drivers/clk/clk-si5351.c 	if (rate > SI5351_CLKOUT_MAX_FREQ)
rate             1041 drivers/clk/clk-si5351.c 		rate = SI5351_CLKOUT_MAX_FREQ;
rate             1042 drivers/clk/clk-si5351.c 	if (rate < SI5351_CLKOUT_MIN_FREQ)
rate             1043 drivers/clk/clk-si5351.c 		rate = SI5351_CLKOUT_MIN_FREQ;
rate             1049 drivers/clk/clk-si5351.c 		while (rate < SI5351_MULTISYNTH_MIN_FREQ &&
rate             1052 drivers/clk/clk-si5351.c 			rate *= 2;
rate             1054 drivers/clk/clk-si5351.c 		*parent_rate = rate;
rate             1061 drivers/clk/clk-si5351.c 		err = abs(new_rate - rate);
rate             1064 drivers/clk/clk-si5351.c 			new_err = abs(new_rate - rate);
rate             1071 drivers/clk/clk-si5351.c 	rate = *parent_rate >> rdiv;
rate             1076 drivers/clk/clk-si5351.c 		*parent_rate, rate);
rate             1078 drivers/clk/clk-si5351.c 	return rate;
rate             1081 drivers/clk/clk-si5351.c static int si5351_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
rate             1092 drivers/clk/clk-si5351.c 	err = abs(new_rate - rate);
rate             1095 drivers/clk/clk-si5351.c 		new_err = abs(new_rate - rate);
rate             1127 drivers/clk/clk-si5351.c 		parent_rate, rate);
rate             1321 drivers/clk/clk-si5351.c 			pdata->clkout[num].rate = val;
rate             1617 drivers/clk/clk-si5351.c 		if (pdata->clkout[n].rate != 0) {
rate             1620 drivers/clk/clk-si5351.c 					   pdata->clkout[n].rate);
rate              299 drivers/clk/clk-si544.c 	unsigned long rate = si544_calc_center_rate(settings);
rate              300 drivers/clk/clk-si544.c 	s64 delta = (s64)rate * (DELTA_M_FRAC_NUM * settings->delta_m);
rate              313 drivers/clk/clk-si544.c 	return rate + delta;
rate              330 drivers/clk/clk-si544.c static long si544_round_rate(struct clk_hw *hw, unsigned long rate,
rate              335 drivers/clk/clk-si544.c 	if (!is_valid_frequency(data, rate))
rate              339 drivers/clk/clk-si544.c 	return rate;
rate              343 drivers/clk/clk-si544.c static unsigned long si544_max_delta(unsigned long rate)
rate              345 drivers/clk/clk-si544.c 	u64 num = rate;
rate              360 drivers/clk/clk-si544.c static int si544_set_rate(struct clk_hw *hw, unsigned long rate,
rate              371 drivers/clk/clk-si544.c 	if (!is_valid_frequency(data, rate))
rate              381 drivers/clk/clk-si544.c 	delta = rate - center;
rate              388 drivers/clk/clk-si544.c 	err = si544_calc_muldiv(&settings, rate);
rate              224 drivers/clk/clk-si570.c 	u64 rfreq, rate;
rate              235 drivers/clk/clk-si570.c 	rate = (data->fxtal * rfreq) >> 28;
rate              237 drivers/clk/clk-si570.c 	return rate;
rate              240 drivers/clk/clk-si570.c static long si570_round_rate(struct clk_hw *hw, unsigned long rate,
rate              248 drivers/clk/clk-si570.c 	if (!rate)
rate              251 drivers/clk/clk-si570.c 	if (div64_u64(abs(rate - data->frequency) * 10000LL,
rate              253 drivers/clk/clk-si570.c 		rfreq = div64_u64((data->rfreq * rate) +
rate              259 drivers/clk/clk-si570.c 		err = si570_calc_divs(rate, data, &rfreq, &n1, &hs_div);
rate              267 drivers/clk/clk-si570.c 	return rate;
rate              333 drivers/clk/clk-si570.c static int si570_set_rate(struct clk_hw *hw, unsigned long rate,
rate              340 drivers/clk/clk-si570.c 	if (rate < SI570_MIN_FREQ || rate > data->max_freq) {
rate              342 drivers/clk/clk-si570.c 			"requested frequency %lu Hz is out of range\n", rate);
rate              346 drivers/clk/clk-si570.c 	if (div64_u64(abs(rate - data->frequency) * 10000LL,
rate              348 drivers/clk/clk-si570.c 		err = si570_set_frequency_small(data, rate);
rate              350 drivers/clk/clk-si570.c 		err = si570_set_frequency(data, rate);
rate              355 drivers/clk/clk-si570.c 	data->frequency = rate;
rate              430 drivers/clk/clk-stm32f4.c static long clk_apb_mul_round_rate(struct clk_hw *hw, unsigned long rate,
rate              440 drivers/clk/clk-stm32f4.c 		unsigned long best_parent = rate / mult;
rate              448 drivers/clk/clk-stm32f4.c static int clk_apb_mul_set_rate(struct clk_hw *hw, unsigned long rate,
rate              646 drivers/clk/clk-stm32f4.c static long stm32f4_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              653 drivers/clk/clk-stm32f4.c 	n = rate / *prate;
rate              663 drivers/clk/clk-stm32f4.c static int stm32f4_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              678 drivers/clk/clk-stm32f4.c 	n = rate  / parent_rate;
rate              712 drivers/clk/clk-stm32f4.c static long stm32f4_pll_div_round_rate(struct clk_hw *hw, unsigned long rate,
rate              715 drivers/clk/clk-stm32f4.c 	return clk_divider_ops.round_rate(hw, rate, prate);
rate              718 drivers/clk/clk-stm32f4.c static int stm32f4_pll_div_set_rate(struct clk_hw *hw, unsigned long rate,
rate              731 drivers/clk/clk-stm32f4.c 	ret = clk_divider_ops.set_rate(hw, rate, parent_rate);
rate              750 drivers/clk/clk-stm32h7.c 	u64 rate, rate1 = 0;
rate              763 drivers/clk/clk-stm32h7.c 	rate = (u64)parent_rate * n;
rate              764 drivers/clk/clk-stm32h7.c 	do_div(rate, m);
rate              772 drivers/clk/clk-stm32h7.c 	return rate + rate1;
rate              848 drivers/clk/clk-stm32h7.c static long odf_divider_round_rate(struct clk_hw *hw, unsigned long rate,
rate              851 drivers/clk/clk-stm32h7.c 	return clk_divider_ops.round_rate(hw, rate, prate);
rate              854 drivers/clk/clk-stm32h7.c static int odf_divider_set_rate(struct clk_hw *hw, unsigned long rate,
rate              868 drivers/clk/clk-stm32h7.c 	ret = clk_divider_ops.set_rate(hw, rate, parent_rate);
rate              827 drivers/clk/clk-stm32mp1.c 	u64 rate, rate_frac = 0;
rate              833 drivers/clk/clk-stm32mp1.c 	rate = (u64)parent_rate * divn;
rate              835 drivers/clk/clk-stm32mp1.c 	do_div(rate, divm);
rate              843 drivers/clk/clk-stm32mp1.c 	return rate + rate_frac;
rate              916 drivers/clk/clk-stm32mp1.c static unsigned long __bestmult(struct clk_hw *hw, unsigned long rate,
rate              929 drivers/clk/clk-stm32mp1.c 	if (rate / parent_rate >= 4)
rate              935 drivers/clk/clk-stm32mp1.c static long timer_ker_round_rate(struct clk_hw *hw, unsigned long rate,
rate              938 drivers/clk/clk-stm32mp1.c 	unsigned long factor = __bestmult(hw, rate, *parent_rate);
rate              943 drivers/clk/clk-stm32mp1.c static int timer_ker_set_rate(struct clk_hw *hw, unsigned long rate,
rate              948 drivers/clk/clk-stm32mp1.c 	unsigned long factor = __bestmult(hw, rate, parent_rate);
rate              633 drivers/clk/clk-u300.c syscon_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              641 drivers/clk/clk-u300.c 	if (rate <= 13000000)
rate              643 drivers/clk/clk-u300.c 	if (rate <= 52000000)
rate              645 drivers/clk/clk-u300.c 	if (rate <= 104000000)
rate              650 drivers/clk/clk-u300.c static int syscon_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              659 drivers/clk/clk-u300.c 	switch (rate) {
rate             1043 drivers/clk/clk-u300.c mclk_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate             1046 drivers/clk/clk-u300.c 	if (rate <= 18900000)
rate             1048 drivers/clk/clk-u300.c 	if (rate <= 20800000)
rate             1050 drivers/clk/clk-u300.c 	if (rate <= 23100000)
rate             1052 drivers/clk/clk-u300.c 	if (rate <= 26000000)
rate             1054 drivers/clk/clk-u300.c 	if (rate <= 29700000)
rate             1056 drivers/clk/clk-u300.c 	if (rate <= 34700000)
rate             1058 drivers/clk/clk-u300.c 	if (rate <= 41600000)
rate             1064 drivers/clk/clk-u300.c static int mclk_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate             1070 drivers/clk/clk-u300.c 	switch (rate) {
rate              284 drivers/clk/clk-versaclock5.c static long vc5_dbl_round_rate(struct clk_hw *hw, unsigned long rate,
rate              287 drivers/clk/clk-versaclock5.c 	if ((*parent_rate == rate) || ((*parent_rate * 2) == rate))
rate              288 drivers/clk/clk-versaclock5.c 		return rate;
rate              293 drivers/clk/clk-versaclock5.c static int vc5_dbl_set_rate(struct clk_hw *hw, unsigned long rate,
rate              300 drivers/clk/clk-versaclock5.c 	if ((parent_rate * 2) == rate)
rate              340 drivers/clk/clk-versaclock5.c static long vc5_pfd_round_rate(struct clk_hw *hw, unsigned long rate,
rate              346 drivers/clk/clk-versaclock5.c 	if (rate > 50000000)
rate              353 drivers/clk/clk-versaclock5.c 	idiv = DIV_ROUND_UP(*parent_rate, rate);
rate              360 drivers/clk/clk-versaclock5.c static int vc5_pfd_set_rate(struct clk_hw *hw, unsigned long rate,
rate              377 drivers/clk/clk-versaclock5.c 	idiv = DIV_ROUND_UP(parent_rate, rate);
rate              418 drivers/clk/clk-versaclock5.c static long vc5_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              425 drivers/clk/clk-versaclock5.c 	if (rate < VC5_PLL_VCO_MIN)
rate              426 drivers/clk/clk-versaclock5.c 		rate = VC5_PLL_VCO_MIN;
rate              427 drivers/clk/clk-versaclock5.c 	if (rate > VC5_PLL_VCO_MAX)
rate              428 drivers/clk/clk-versaclock5.c 		rate = VC5_PLL_VCO_MAX;
rate              431 drivers/clk/clk-versaclock5.c 	div_int = rate / *parent_rate;
rate              433 drivers/clk/clk-versaclock5.c 		rate = *parent_rate * 0xfff;
rate              436 drivers/clk/clk-versaclock5.c 	div_frc = rate % *parent_rate;
rate              446 drivers/clk/clk-versaclock5.c static int vc5_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              496 drivers/clk/clk-versaclock5.c static long vc5_fod_round_rate(struct clk_hw *hw, unsigned long rate,
rate              506 drivers/clk/clk-versaclock5.c 	div_int = f_in / rate;
rate              514 drivers/clk/clk-versaclock5.c 		rate = f_in / div_int;
rate              518 drivers/clk/clk-versaclock5.c 	div_frc = f_in % rate;
rate              520 drivers/clk/clk-versaclock5.c 	do_div(div_frc, rate);
rate              528 drivers/clk/clk-versaclock5.c static int vc5_fod_set_rate(struct clk_hw *hw, unsigned long rate,
rate              131 drivers/clk/clk-vt8500.c static long vt8500_dclk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              137 drivers/clk/clk-vt8500.c 	if (rate == 0)
rate              140 drivers/clk/clk-vt8500.c 	divisor = *prate / rate;
rate              143 drivers/clk/clk-vt8500.c 	if (rate * divisor < *prate)
rate              157 drivers/clk/clk-vt8500.c static int vt8500_dclk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              164 drivers/clk/clk-vt8500.c 	if (rate == 0)
rate              167 drivers/clk/clk-vt8500.c 	divisor =  parent_rate / rate;
rate              350 drivers/clk/clk-vt8500.c static int vt8500_find_pll_bits(unsigned long rate, unsigned long parent_rate,
rate              356 drivers/clk/clk-vt8500.c 	if ((rate < parent_rate * 4) || (rate > parent_rate * 62)) {
rate              362 drivers/clk/clk-vt8500.c 	if (rate <= parent_rate * 31)
rate              368 drivers/clk/clk-vt8500.c 	*multiplier = rate / (parent_rate / *prediv);
rate              371 drivers/clk/clk-vt8500.c 	if (tclk != rate)
rate              373 drivers/clk/clk-vt8500.c 								rate, tclk);
rate              389 drivers/clk/clk-vt8500.c static int wm8650_find_pll_bits(unsigned long rate,
rate              395 drivers/clk/clk-vt8500.c 	if (!parent_rate || (rate < 37500000) || (rate > 600000000))
rate              398 drivers/clk/clk-vt8500.c 	*divisor2 = rate <= 75000000 ? 3 : rate <= 150000000 ? 2 :
rate              399 drivers/clk/clk-vt8500.c 					   rate <= 300000000 ? 1 : 0;
rate              406 drivers/clk/clk-vt8500.c 		O1 = rate * *divisor1 * (1 << (*divisor2));
rate              452 drivers/clk/clk-vt8500.c static int wm8750_find_pll_bits(unsigned long rate, unsigned long parent_rate,
rate              466 drivers/clk/clk-vt8500.c 				if (tclk > rate)
rate              469 drivers/clk/clk-vt8500.c 				rate_err = rate - tclk;
rate              487 drivers/clk/clk-vt8500.c 		pr_warn("%s: impossible rate %lu\n", __func__, rate);
rate              492 drivers/clk/clk-vt8500.c 	pr_warn("%s: requested rate %lu, found rate %lu\n", __func__, rate,
rate              493 drivers/clk/clk-vt8500.c 							rate - best_err);
rate              500 drivers/clk/clk-vt8500.c static int wm8850_find_pll_bits(unsigned long rate, unsigned long parent_rate,
rate              515 drivers/clk/clk-vt8500.c 				if (tclk > rate)
rate              518 drivers/clk/clk-vt8500.c 				rate_err = rate - tclk;
rate              535 drivers/clk/clk-vt8500.c 		pr_warn("%s: impossible rate %lu\n", __func__, rate);
rate              540 drivers/clk/clk-vt8500.c 	pr_warn("%s: requested rate %lu, found rate %lu\n", __func__, rate,
rate              541 drivers/clk/clk-vt8500.c 							rate - best_err);
rate              546 drivers/clk/clk-vt8500.c static int vtwm_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              559 drivers/clk/clk-vt8500.c 		ret = vt8500_find_pll_bits(rate, parent_rate, &mul, &div1);
rate              564 drivers/clk/clk-vt8500.c 		ret = wm8650_find_pll_bits(rate, parent_rate, &mul, &div1, &div2);
rate              569 drivers/clk/clk-vt8500.c 		ret = wm8750_find_pll_bits(rate, parent_rate, &filter, &mul, &div1, &div2);
rate              574 drivers/clk/clk-vt8500.c 		ret = wm8850_find_pll_bits(rate, parent_rate, &mul, &div1, &div2);
rate              597 drivers/clk/clk-vt8500.c static long vtwm_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              607 drivers/clk/clk-vt8500.c 		ret = vt8500_find_pll_bits(rate, *prate, &mul, &div1);
rate              612 drivers/clk/clk-vt8500.c 		ret = wm8650_find_pll_bits(rate, *prate, &mul, &div1, &div2);
rate              617 drivers/clk/clk-vt8500.c 		ret = wm8750_find_pll_bits(rate, *prate, &filter, &mul, &div1, &div2);
rate              622 drivers/clk/clk-vt8500.c 		ret = wm8850_find_pll_bits(rate, *prate, &mul, &div1, &div2);
rate              136 drivers/clk/clk-wm831x.c static long wm831x_fll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              143 drivers/clk/clk-wm831x.c 		if (abs(wm831x_fll_auto_rates[i] - rate) <
rate              144 drivers/clk/clk-wm831x.c 		    abs(wm831x_fll_auto_rates[best] - rate))
rate              150 drivers/clk/clk-wm831x.c static int wm831x_fll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              159 drivers/clk/clk-wm831x.c 		if (wm831x_fll_auto_rates[i] == rate)
rate              274 drivers/clk/clk-xgene.c static long xgene_clk_pmd_round_rate(struct clk_hw *hw, unsigned long rate,
rate              280 drivers/clk/clk-xgene.c 	if (!rate || rate >= *parent_rate)
rate              284 drivers/clk/clk-xgene.c 	ret = rate * fd->denom;
rate              293 drivers/clk/clk-xgene.c static int xgene_clk_pmd_set_rate(struct clk_hw *hw, unsigned long rate,
rate              307 drivers/clk/clk-xgene.c 	ret = rate * fd->denom;
rate              557 drivers/clk/clk-xgene.c static int xgene_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              571 drivers/clk/clk-xgene.c 		if (rate > parent_rate)
rate              572 drivers/clk/clk-xgene.c 			rate = parent_rate;
rate              573 drivers/clk/clk-xgene.c 		divider_save = divider = parent_rate / rate; /* Rounded down */
rate              597 drivers/clk/clk-xgene.c static long xgene_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              606 drivers/clk/clk-xgene.c 		if (rate > parent_rate)
rate              607 drivers/clk/clk-xgene.c 			rate = parent_rate;
rate              608 drivers/clk/clk-xgene.c 		divider = parent_rate / rate;   /* Rounded down */
rate               67 drivers/clk/clk.c 	unsigned long		rate;
rate              479 drivers/clk/clk.c 		return core->rate;
rate              542 drivers/clk/clk.c static bool mux_is_better_rate(unsigned long rate, unsigned long now,
rate              546 drivers/clk/clk.c 		return abs(now - rate) < abs(best - rate);
rate              548 drivers/clk/clk.c 	return now <= rate && now > best;
rate              569 drivers/clk/clk.c 			best = parent_req.rate;
rate              592 drivers/clk/clk.c 			parent_req.rate = clk_core_get_rate_nolock(parent);
rate              595 drivers/clk/clk.c 		if (mux_is_better_rate(req->rate, parent_req.rate,
rate              598 drivers/clk/clk.c 			best = parent_req.rate;
rate              609 drivers/clk/clk.c 	req->rate = best;
rate             1310 drivers/clk/clk.c 	long rate;
rate             1324 drivers/clk/clk.c 		req->rate = core->rate;
rate             1328 drivers/clk/clk.c 		rate = core->ops->round_rate(core->hw, req->rate,
rate             1330 drivers/clk/clk.c 		if (rate < 0)
rate             1331 drivers/clk/clk.c 			return rate;
rate             1333 drivers/clk/clk.c 		req->rate = rate;
rate             1352 drivers/clk/clk.c 		req->best_parent_rate = parent->rate;
rate             1370 drivers/clk/clk.c 		req->rate = 0;
rate             1381 drivers/clk/clk.c 	req->rate = core->rate;
rate             1395 drivers/clk/clk.c 		req->rate = 0;
rate             1403 drivers/clk/clk.c unsigned long clk_hw_round_rate(struct clk_hw *hw, unsigned long rate)
rate             1409 drivers/clk/clk.c 	req.rate = rate;
rate             1415 drivers/clk/clk.c 	return req.rate;
rate             1428 drivers/clk/clk.c long clk_round_rate(struct clk *clk, unsigned long rate)
rate             1442 drivers/clk/clk.c 	req.rate = rate;
rate             1454 drivers/clk/clk.c 	return req.rate;
rate             1559 drivers/clk/clk.c 	unsigned long rate = parent_rate;
rate             1562 drivers/clk/clk.c 		rate = core->ops->recalc_rate(core->hw, parent_rate);
rate             1565 drivers/clk/clk.c 	return rate;
rate             1588 drivers/clk/clk.c 	old_rate = core->rate;
rate             1591 drivers/clk/clk.c 		parent_rate = core->parent->rate;
rate             1593 drivers/clk/clk.c 	core->rate = clk_recalc(core, parent_rate);
rate             1600 drivers/clk/clk.c 		__clk_notify(core, msg, old_rate, core->rate);
rate             1608 drivers/clk/clk.c 	unsigned long rate;
rate             1615 drivers/clk/clk.c 	rate = clk_core_get_rate_nolock(core);
rate             1618 drivers/clk/clk.c 	return rate;
rate             1844 drivers/clk/clk.c 		ret = __clk_notify(core, PRE_RATE_CHANGE, core->rate, new_rate);
rate             1886 drivers/clk/clk.c 					   unsigned long rate)
rate             1904 drivers/clk/clk.c 		best_parent_rate = parent->rate;
rate             1912 drivers/clk/clk.c 		req.rate = rate;
rate             1923 drivers/clk/clk.c 		new_rate = req.rate;
rate             1930 drivers/clk/clk.c 		core->new_rate = core->rate;
rate             1934 drivers/clk/clk.c 		top = clk_calc_new_rates(parent, rate);
rate             1958 drivers/clk/clk.c 	    best_parent_rate != parent->rate)
rate             1978 drivers/clk/clk.c 	if (core->rate == core->new_rate)
rate             1982 drivers/clk/clk.c 		ret = __clk_notify(core, event, core->rate, core->new_rate);
rate             2020 drivers/clk/clk.c 	old_rate = core->rate;
rate             2024 drivers/clk/clk.c 		best_parent_rate = core->new_parent->rate;
rate             2027 drivers/clk/clk.c 		best_parent_rate = core->parent->rate;
rate             2069 drivers/clk/clk.c 	core->rate = clk_recalc(core, best_parent_rate);
rate             2083 drivers/clk/clk.c 	if (core->notifier_count && old_rate != core->rate)
rate             2084 drivers/clk/clk.c 		__clk_notify(core, POST_RATE_CHANGE, old_rate, core->rate);
rate             2124 drivers/clk/clk.c 	req.rate = req_rate;
rate             2131 drivers/clk/clk.c 	return ret ? 0 : req.rate;
rate             2138 drivers/clk/clk.c 	unsigned long rate;
rate             2144 drivers/clk/clk.c 	rate = clk_core_req_round_rate_nolock(core, req_rate);
rate             2147 drivers/clk/clk.c 	if (rate == clk_core_get_rate_nolock(core))
rate             2204 drivers/clk/clk.c int clk_set_rate(struct clk *clk, unsigned long rate)
rate             2217 drivers/clk/clk.c 	ret = clk_core_set_rate_nolock(clk->core, rate);
rate             2247 drivers/clk/clk.c int clk_set_rate_exclusive(struct clk *clk, unsigned long rate)
rate             2263 drivers/clk/clk.c 	ret = clk_core_set_rate_nolock(clk->core, rate);
rate             2286 drivers/clk/clk.c 	unsigned long old_min, old_max, rate;
rate             2309 drivers/clk/clk.c 	rate = clk_core_get_rate_nolock(clk->core);
rate             2310 drivers/clk/clk.c 	if (rate < min || rate > max) {
rate             2324 drivers/clk/clk.c 		if (rate < min)
rate             2325 drivers/clk/clk.c 			rate = min;
rate             2327 drivers/clk/clk.c 			rate = max;
rate             2329 drivers/clk/clk.c 		ret = clk_core_set_rate_nolock(clk->core, rate);
rate             2353 drivers/clk/clk.c int clk_set_min_rate(struct clk *clk, unsigned long rate)
rate             2358 drivers/clk/clk.c 	return clk_set_rate_range(clk, rate, clk->max_rate);
rate             2369 drivers/clk/clk.c int clk_set_max_rate(struct clk *clk, unsigned long rate)
rate             2374 drivers/clk/clk.c 	return clk_set_rate_range(clk, clk->min_rate, rate);
rate             2494 drivers/clk/clk.c 		p_rate = parent->rate;
rate             3153 drivers/clk/clk.c 	debugfs_create_ulong("clk_rate", 0444, root, &core->rate);
rate             3295 drivers/clk/clk.c 	unsigned long rate;
rate             3419 drivers/clk/clk.c 		rate = core->ops->recalc_rate(core->hw,
rate             3422 drivers/clk/clk.c 		rate = core->parent->rate;
rate             3424 drivers/clk/clk.c 		rate = 0;
rate             3425 drivers/clk/clk.c 	core->rate = core->req_rate = rate;
rate             3846 drivers/clk/clk.c static int clk_nodrv_set_rate(struct clk_hw *hw, unsigned long rate,
rate              464 drivers/clk/davinci/da8xx-cfgchip.c static long da8xx_usb0_clk48_round_rate(struct clk_hw *hw, unsigned long rate,
rate              119 drivers/clk/davinci/pll.c 	unsigned long rate = parent_rate;
rate              123 drivers/clk/davinci/pll.c 	rate *= mult + 1;
rate              125 drivers/clk/davinci/pll.c 	return rate;
rate              134 drivers/clk/davinci/pll.c 	unsigned long rate = req->rate;
rate              139 drivers/clk/davinci/pll.c 	if (rate < req->min_rate)
rate              142 drivers/clk/davinci/pll.c 	rate = min(rate, req->max_rate);
rate              143 drivers/clk/davinci/pll.c 	mult = rate / parent_rate;
rate              154 drivers/clk/davinci/pll.c 		req->rate = best_rate;
rate              163 drivers/clk/davinci/pll.c 		parent_rate = clk_hw_round_rate(parent, rate / mult);
rate              167 drivers/clk/davinci/pll.c 		if (r > rate || r > req->max_rate)
rate              171 drivers/clk/davinci/pll.c 			req->rate = best_rate;
rate              173 drivers/clk/davinci/pll.c 			if (best_rate == rate)
rate              181 drivers/clk/davinci/pll.c static int davinci_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              187 drivers/clk/davinci/pll.c 	mult = rate / parent_rate;
rate              211 drivers/clk/davinci/pll.c 	unsigned long rate = parent_rate;
rate              215 drivers/clk/davinci/pll.c 	rate *= mult * 2;
rate              217 drivers/clk/davinci/pll.c 	return rate;
rate               37 drivers/clk/h8300/clk-h8s2678.c static long pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate               43 drivers/clk/h8300/clk-h8s2678.c 	if (rate > MAX_FREQ)
rate               44 drivers/clk/h8300/clk-h8s2678.c 		rate = MAX_FREQ;
rate               45 drivers/clk/h8300/clk-h8s2678.c 	if (rate < MIN_FREQ)
rate               46 drivers/clk/h8300/clk-h8s2678.c 		rate = MIN_FREQ;
rate               49 drivers/clk/h8300/clk-h8s2678.c 		offset[i] = abs(rate - (*prate * (1 << i)));
rate               59 drivers/clk/h8300/clk-h8s2678.c static int pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate               67 drivers/clk/h8300/clk-h8s2678.c 	pll = ((rate / parent_rate) / 2) & 0x03;
rate              286 drivers/clk/hisilicon/clk-hi3620.c 	if ((req->rate <= 13000000) && (mclk->id == HI3620_MMC_CIUCLK1)) {
rate              287 drivers/clk/hisilicon/clk-hi3620.c 		req->rate = 13000000;
rate              289 drivers/clk/hisilicon/clk-hi3620.c 	} else if (req->rate <= 26000000) {
rate              290 drivers/clk/hisilicon/clk-hi3620.c 		req->rate = 25000000;
rate              292 drivers/clk/hisilicon/clk-hi3620.c 	} else if (req->rate <= 52000000) {
rate              293 drivers/clk/hisilicon/clk-hi3620.c 		req->rate = 50000000;
rate              295 drivers/clk/hisilicon/clk-hi3620.c 	} else if (req->rate <= 100000000) {
rate              296 drivers/clk/hisilicon/clk-hi3620.c 		req->rate = 100000000;
rate              300 drivers/clk/hisilicon/clk-hi3620.c 		req->rate = 180000000;
rate              321 drivers/clk/hisilicon/clk-hi3620.c static int mmc_clk_set_timing(struct clk_hw *hw, unsigned long rate)
rate              328 drivers/clk/hisilicon/clk-hi3620.c 	switch (rate) {
rate              388 drivers/clk/hisilicon/clk-hi3620.c 	unsigned long rate;
rate              391 drivers/clk/hisilicon/clk-hi3620.c 		rate = 13000000;
rate              393 drivers/clk/hisilicon/clk-hi3620.c 		rate = 25000000;
rate              395 drivers/clk/hisilicon/clk-hi3620.c 	return mmc_clk_set_timing(hw, rate);
rate              398 drivers/clk/hisilicon/clk-hi3620.c static int mmc_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              401 drivers/clk/hisilicon/clk-hi3620.c 	return mmc_clk_set_timing(hw, rate);
rate               51 drivers/clk/hisilicon/clk-hi3660-stub.c 	unsigned int rate;
rate               66 drivers/clk/hisilicon/clk-hi3660-stub.c 	stub_clk->rate = readl(freq_reg + (stub_clk->id << 2)) * MHZ;
rate               67 drivers/clk/hisilicon/clk-hi3660-stub.c 	return stub_clk->rate;
rate               70 drivers/clk/hisilicon/clk-hi3660-stub.c static long hi3660_stub_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate               77 drivers/clk/hisilicon/clk-hi3660-stub.c 	return rate;
rate               80 drivers/clk/hisilicon/clk-hi3660-stub.c static int hi3660_stub_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate               86 drivers/clk/hisilicon/clk-hi3660-stub.c 	stub_clk->msg[1] = rate / MHZ;
rate               94 drivers/clk/hisilicon/clk-hi3660-stub.c 	stub_clk->rate = rate;
rate              119 drivers/clk/hisilicon/clk-hi6220-stub.c 	u32 rate = 0;
rate              124 drivers/clk/hisilicon/clk-hi6220-stub.c 		rate = hi6220_acpu_get_freq(stub_clk);
rate              127 drivers/clk/hisilicon/clk-hi6220-stub.c 		rate *= 1000;
rate              136 drivers/clk/hisilicon/clk-hi6220-stub.c 	return rate;
rate              139 drivers/clk/hisilicon/clk-hi6220-stub.c static int hi6220_stub_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              143 drivers/clk/hisilicon/clk-hi6220-stub.c 	unsigned long new_rate = rate / 1000;  /* kHz */
rate              164 drivers/clk/hisilicon/clk-hi6220-stub.c static long hi6220_stub_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              168 drivers/clk/hisilicon/clk-hi6220-stub.c 	unsigned long new_rate = rate / 1000;  /* kHz */
rate               58 drivers/clk/hisilicon/clkdivider-hi6220.c static long hi6220_clkdiv_round_rate(struct clk_hw *hw, unsigned long rate,
rate               63 drivers/clk/hisilicon/clkdivider-hi6220.c 	return divider_round_rate(hw, rate, prate, dclk->table,
rate               67 drivers/clk/hisilicon/clkdivider-hi6220.c static int hi6220_clkdiv_set_rate(struct clk_hw *hw, unsigned long rate,
rate               75 drivers/clk/hisilicon/clkdivider-hi6220.c 	value = divider_get_val(rate, parent_rate, dclk->table,
rate               48 drivers/clk/imx/clk-busy.c static long clk_busy_divider_round_rate(struct clk_hw *hw, unsigned long rate,
rate               53 drivers/clk/imx/clk-busy.c 	return busy->div_ops->round_rate(&busy->div.hw, rate, prate);
rate               56 drivers/clk/imx/clk-busy.c static int clk_busy_divider_set_rate(struct clk_hw *hw, unsigned long rate,
rate               62 drivers/clk/imx/clk-busy.c 	ret = busy->div_ops->set_rate(&busy->div.hw, rate, parent_rate);
rate               48 drivers/clk/imx/clk-composite-8m.c static int imx8m_clk_composite_compute_dividers(unsigned long rate,
rate               61 drivers/clk/imx/clk-composite-8m.c 			int new_error = ((parent_rate / div1) / div2) - rate;
rate               75 drivers/clk/imx/clk-composite-8m.c 						unsigned long rate,
rate               81 drivers/clk/imx/clk-composite-8m.c 	imx8m_clk_composite_compute_dividers(rate, *prate,
rate               83 drivers/clk/imx/clk-composite-8m.c 	rate = DIV_ROUND_UP(*prate, prediv_value);
rate               85 drivers/clk/imx/clk-composite-8m.c 	return DIV_ROUND_UP(rate, div_value);
rate               90 drivers/clk/imx/clk-composite-8m.c 					unsigned long rate,
rate              100 drivers/clk/imx/clk-composite-8m.c 	ret = imx8m_clk_composite_compute_dividers(rate, parent_rate,
rate               32 drivers/clk/imx/clk-cpu.c static long clk_cpu_round_rate(struct clk_hw *hw, unsigned long rate,
rate               37 drivers/clk/imx/clk-cpu.c 	return clk_round_rate(cpu->pll, rate);
rate               40 drivers/clk/imx/clk-cpu.c static int clk_cpu_set_rate(struct clk_hw *hw, unsigned long rate,
rate               52 drivers/clk/imx/clk-cpu.c 	ret = clk_set_rate(cpu->pll, rate);
rate               61 drivers/clk/imx/clk-cpu.c 	clk_set_rate(cpu->div, rate);
rate               67 drivers/clk/imx/clk-divider-gate.c static long clk_divider_round_rate(struct clk_hw *hw, unsigned long rate,
rate               70 drivers/clk/imx/clk-divider-gate.c 	return clk_divider_ops.round_rate(hw, rate, prate);
rate               73 drivers/clk/imx/clk-divider-gate.c static int clk_divider_gate_set_rate(struct clk_hw *hw, unsigned long rate,
rate               82 drivers/clk/imx/clk-divider-gate.c 	value = divider_get_val(rate, parent_rate, div->table,
rate               44 drivers/clk/imx/clk-fixup-div.c static long clk_fixup_div_round_rate(struct clk_hw *hw, unsigned long rate,
rate               49 drivers/clk/imx/clk-fixup-div.c 	return fixup_div->ops->round_rate(&fixup_div->divider.hw, rate, prate);
rate               52 drivers/clk/imx/clk-fixup-div.c static int clk_fixup_div_set_rate(struct clk_hw *hw, unsigned long rate,
rate               61 drivers/clk/imx/clk-fixup-div.c 	divider = parent_rate / rate;
rate              101 drivers/clk/imx/clk-frac-pll.c 	u64 rate;
rate              114 drivers/clk/imx/clk-frac-pll.c 	rate = parent_rate * 8 * (divfi + 1);
rate              115 drivers/clk/imx/clk-frac-pll.c 	do_div(rate, divq);
rate              116 drivers/clk/imx/clk-frac-pll.c 	rate += temp64;
rate              118 drivers/clk/imx/clk-frac-pll.c 	return rate;
rate              121 drivers/clk/imx/clk-frac-pll.c static long clk_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              129 drivers/clk/imx/clk-frac-pll.c 	rate *= 2;
rate              130 drivers/clk/imx/clk-frac-pll.c 	temp64 = rate;
rate              133 drivers/clk/imx/clk-frac-pll.c 	temp64 = rate - divfi * parent_rate;
rate              142 drivers/clk/imx/clk-frac-pll.c 	rate = parent_rate * divfi + temp64;
rate              144 drivers/clk/imx/clk-frac-pll.c 	return rate / 2;
rate              154 drivers/clk/imx/clk-frac-pll.c static int clk_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              163 drivers/clk/imx/clk-frac-pll.c 	rate *= 2;
rate              164 drivers/clk/imx/clk-frac-pll.c 	divfi = rate / parent_rate;
rate              166 drivers/clk/imx/clk-frac-pll.c 	temp64 = rate - temp64;
rate              424 drivers/clk/imx/clk-imx6q.c 							unsigned long rate)
rate              430 drivers/clk/imx/clk-imx6q.c 		hw = imx_obtain_fixed_clock_hw(name, rate);
rate               64 drivers/clk/imx/clk-pfd.c static long clk_pfd_round_rate(struct clk_hw *hw, unsigned long rate,
rate               70 drivers/clk/imx/clk-pfd.c 	tmp = tmp * 18 + rate / 2;
rate               71 drivers/clk/imx/clk-pfd.c 	do_div(tmp, rate);
rate               84 drivers/clk/imx/clk-pfd.c static int clk_pfd_set_rate(struct clk_hw *hw, unsigned long rate,
rate               91 drivers/clk/imx/clk-pfd.c 	tmp = tmp * 18 + rate / 2;
rate               92 drivers/clk/imx/clk-pfd.c 	do_div(tmp, rate);
rate              101 drivers/clk/imx/clk-pfdv2.c static long clk_pfdv2_round_rate(struct clk_hw *hw, unsigned long rate,
rate              107 drivers/clk/imx/clk-pfdv2.c 	tmp = tmp * 18 + rate / 2;
rate              108 drivers/clk/imx/clk-pfdv2.c 	do_div(tmp, rate);
rate              133 drivers/clk/imx/clk-pfdv2.c static int clk_pfdv2_set_rate(struct clk_hw *hw, unsigned long rate,
rate              142 drivers/clk/imx/clk-pfdv2.c 	tmp = tmp * 18 + rate / 2;
rate              143 drivers/clk/imx/clk-pfdv2.c 	do_div(tmp, rate);
rate               45 drivers/clk/imx/clk-pll14xx.c 		struct clk_pll14xx *pll, unsigned long rate)
rate               51 drivers/clk/imx/clk-pll14xx.c 		if (rate == rate_table[i].rate)
rate               57 drivers/clk/imx/clk-pll14xx.c static long clk_pll14xx_round_rate(struct clk_hw *hw, unsigned long rate,
rate               66 drivers/clk/imx/clk-pll14xx.c 		if (rate >= rate_table[i].rate)
rate               67 drivers/clk/imx/clk-pll14xx.c 			return rate_table[i].rate;
rate               70 drivers/clk/imx/clk-pll14xx.c 	return rate_table[i - 1].rate;
rate              115 drivers/clk/imx/clk-pll14xx.c static inline bool clk_pll14xx_mp_change(const struct imx_pll14xx_rate_table *rate,
rate              123 drivers/clk/imx/clk-pll14xx.c 	return rate->mdiv != old_mdiv || rate->pdiv != old_pdiv;
rate              138 drivers/clk/imx/clk-pll14xx.c 	const struct imx_pll14xx_rate_table *rate;
rate              142 drivers/clk/imx/clk-pll14xx.c 	rate = imx_get_pll_settings(pll, drate);
rate              143 drivers/clk/imx/clk-pll14xx.c 	if (!rate) {
rate              151 drivers/clk/imx/clk-pll14xx.c 	if (!clk_pll14xx_mp_change(rate, tmp)) {
rate              153 drivers/clk/imx/clk-pll14xx.c 		tmp |= rate->sdiv << SDIV_SHIFT;
rate              172 drivers/clk/imx/clk-pll14xx.c 	div_val = (rate->mdiv << MDIV_SHIFT) | (rate->pdiv << PDIV_SHIFT) |
rate              173 drivers/clk/imx/clk-pll14xx.c 		(rate->sdiv << SDIV_SHIFT);
rate              204 drivers/clk/imx/clk-pll14xx.c 	const struct imx_pll14xx_rate_table *rate;
rate              208 drivers/clk/imx/clk-pll14xx.c 	rate = imx_get_pll_settings(pll, drate);
rate              209 drivers/clk/imx/clk-pll14xx.c 	if (!rate) {
rate              217 drivers/clk/imx/clk-pll14xx.c 	if (!clk_pll14xx_mp_change(rate, tmp)) {
rate              219 drivers/clk/imx/clk-pll14xx.c 		tmp |= rate->sdiv << SDIV_SHIFT;
rate              222 drivers/clk/imx/clk-pll14xx.c 		tmp = rate->kdiv << KDIV_SHIFT;
rate              237 drivers/clk/imx/clk-pll14xx.c 	div_val = (rate->mdiv << MDIV_SHIFT) | (rate->pdiv << PDIV_SHIFT) |
rate              238 drivers/clk/imx/clk-pll14xx.c 		(rate->sdiv << SDIV_SHIFT);
rate              240 drivers/clk/imx/clk-pll14xx.c 	writel_relaxed(rate->kdiv << KDIV_SHIFT, pll->base + 0x8);
rate               60 drivers/clk/imx/clk-pllv1.c 	unsigned long rate;
rate               95 drivers/clk/imx/clk-pllv1.c 	rate = parent_rate * 2;
rate               96 drivers/clk/imx/clk-pllv1.c 	rate /= pd + 1;
rate               98 drivers/clk/imx/clk-pllv1.c 	ull = (unsigned long long)rate * mfn_abs;
rate              103 drivers/clk/imx/clk-pllv1.c 		ull = (rate * mfi) - ull;
rate              105 drivers/clk/imx/clk-pllv1.c 		ull = (rate * mfi) + ull;
rate              126 drivers/clk/imx/clk-pllv2.c static int __clk_pllv2_set_rate(unsigned long rate, unsigned long parent_rate,
rate              137 drivers/clk/imx/clk-pllv2.c 		mfi = rate * (pdf+1) / quad_parent_rate;
rate              142 drivers/clk/imx/clk-pllv2.c 	temp64 = rate * (pdf + 1) - quad_parent_rate * mfi;
rate              155 drivers/clk/imx/clk-pllv2.c static int clk_pllv2_set_rate(struct clk_hw *hw, unsigned long rate,
rate              166 drivers/clk/imx/clk-pllv2.c 	ret = __clk_pllv2_set_rate(rate, parent_rate, &dp_op, &dp_mfd, &dp_mfn);
rate              181 drivers/clk/imx/clk-pllv2.c static long clk_pllv2_round_rate(struct clk_hw *hw, unsigned long rate,
rate              187 drivers/clk/imx/clk-pllv2.c 	ret = __clk_pllv2_set_rate(rate, *prate, &dp_op, &dp_mfd, &dp_mfn);
rate              122 drivers/clk/imx/clk-pllv3.c static long clk_pllv3_round_rate(struct clk_hw *hw, unsigned long rate,
rate              127 drivers/clk/imx/clk-pllv3.c 	return (rate >= parent_rate * 22) ? parent_rate * 22 :
rate              131 drivers/clk/imx/clk-pllv3.c static int clk_pllv3_set_rate(struct clk_hw *hw, unsigned long rate,
rate              137 drivers/clk/imx/clk-pllv3.c 	if (rate == parent_rate * 22)
rate              139 drivers/clk/imx/clk-pllv3.c 	else if (rate == parent_rate * 20)
rate              170 drivers/clk/imx/clk-pllv3.c static long clk_pllv3_sys_round_rate(struct clk_hw *hw, unsigned long rate,
rate              178 drivers/clk/imx/clk-pllv3.c 	if (rate > max_rate)
rate              179 drivers/clk/imx/clk-pllv3.c 		rate = max_rate;
rate              180 drivers/clk/imx/clk-pllv3.c 	else if (rate < min_rate)
rate              181 drivers/clk/imx/clk-pllv3.c 		rate = min_rate;
rate              182 drivers/clk/imx/clk-pllv3.c 	div = rate * 2 / parent_rate;
rate              187 drivers/clk/imx/clk-pllv3.c static int clk_pllv3_sys_set_rate(struct clk_hw *hw, unsigned long rate,
rate              195 drivers/clk/imx/clk-pllv3.c 	if (rate < min_rate || rate > max_rate)
rate              198 drivers/clk/imx/clk-pllv3.c 	div = rate * 2 / parent_rate;
rate              231 drivers/clk/imx/clk-pllv3.c static long clk_pllv3_av_round_rate(struct clk_hw *hw, unsigned long rate,
rate              242 drivers/clk/imx/clk-pllv3.c 	if (rate > max_rate)
rate              243 drivers/clk/imx/clk-pllv3.c 		rate = max_rate;
rate              244 drivers/clk/imx/clk-pllv3.c 	else if (rate < min_rate)
rate              245 drivers/clk/imx/clk-pllv3.c 		rate = min_rate;
rate              250 drivers/clk/imx/clk-pllv3.c 	div = rate / parent_rate;
rate              251 drivers/clk/imx/clk-pllv3.c 	temp64 = (u64) (rate - div * parent_rate);
rate              263 drivers/clk/imx/clk-pllv3.c static int clk_pllv3_av_set_rate(struct clk_hw *hw, unsigned long rate,
rate              274 drivers/clk/imx/clk-pllv3.c 	if (rate < min_rate || rate > max_rate)
rate              280 drivers/clk/imx/clk-pllv3.c 	div = rate / parent_rate;
rate              281 drivers/clk/imx/clk-pllv3.c 	temp64 = (u64) (rate - div * parent_rate);
rate              324 drivers/clk/imx/clk-pllv3.c 		unsigned long parent_rate, unsigned long rate)
rate              329 drivers/clk/imx/clk-pllv3.c 	mf.mfi = (rate >= 22 * parent_rate) ? 22 : 20;
rate              332 drivers/clk/imx/clk-pllv3.c 	if (rate <= parent_rate * mf.mfi)
rate              334 drivers/clk/imx/clk-pllv3.c 	else if (rate >= parent_rate * (mf.mfi + 1))
rate              338 drivers/clk/imx/clk-pllv3.c 		temp64 = rate - parent_rate * mf.mfi;
rate              360 drivers/clk/imx/clk-pllv3.c static long clk_pllv3_vf610_round_rate(struct clk_hw *hw, unsigned long rate,
rate              363 drivers/clk/imx/clk-pllv3.c 	struct clk_pllv3_vf610_mf mf = clk_pllv3_vf610_rate_to_mf(*prate, rate);
rate              368 drivers/clk/imx/clk-pllv3.c static int clk_pllv3_vf610_set_rate(struct clk_hw *hw, unsigned long rate,
rate              373 drivers/clk/imx/clk-pllv3.c 			clk_pllv3_vf610_rate_to_mf(parent_rate, rate);
rate               87 drivers/clk/imx/clk-pllv4.c static long clk_pllv4_round_rate(struct clk_hw *hw, unsigned long rate,
rate               98 drivers/clk/imx/clk-pllv4.c 		if (rate >= round_rate) {
rate              106 drivers/clk/imx/clk-pllv4.c 			clk_hw_get_name(hw), rate, parent_rate);
rate              113 drivers/clk/imx/clk-pllv4.c 	temp64 = (u64)(rate - round_rate);
rate              147 drivers/clk/imx/clk-pllv4.c static int clk_pllv4_set_rate(struct clk_hw *hw, unsigned long rate,
rate              154 drivers/clk/imx/clk-pllv4.c 	mult = rate / parent_rate;
rate              162 drivers/clk/imx/clk-pllv4.c 	temp64 = (u64)(rate - mult * parent_rate);
rate              271 drivers/clk/imx/clk-sccg-pll.c 					uint64_t rate, int try_bypass)
rate              280 drivers/clk/imx/clk-sccg-pll.c 	temp_setup.fout_request = rate;
rate              285 drivers/clk/imx/clk-sccg-pll.c 		if (prate == rate) {
rate              287 drivers/clk/imx/clk-sccg-pll.c 			setup->fout = rate;
rate              367 drivers/clk/imx/clk-sccg-pll.c static int clk_sccg_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              424 drivers/clk/imx/clk-sccg-pll.c 					uint64_t rate,
rate              451 drivers/clk/imx/clk-sccg-pll.c 		ret = clk_sccg_pll_find_setup(setup, req->rate,
rate              452 drivers/clk/imx/clk-sccg-pll.c 						rate, bypass);
rate              456 drivers/clk/imx/clk-sccg-pll.c 	req->best_parent_rate = req->rate;
rate              457 drivers/clk/imx/clk-sccg-pll.c 	req->rate = setup->fout;
rate              467 drivers/clk/imx/clk-sccg-pll.c 	uint64_t rate = req->rate;
rate              472 drivers/clk/imx/clk-sccg-pll.c 	if (rate < PLL_OUT_MIN_FREQ || rate > PLL_OUT_MAX_FREQ)
rate              475 drivers/clk/imx/clk-sccg-pll.c 	ret = __clk_sccg_pll_determine_rate(hw, req, req->rate, req->rate,
rate              476 drivers/clk/imx/clk-sccg-pll.c 						rate, PLL_BYPASS2);
rate              481 drivers/clk/imx/clk-sccg-pll.c 						PLL_STAGE1_REF_MAX_FREQ, rate,
rate              487 drivers/clk/imx/clk-sccg-pll.c 						PLL_REF_MAX_FREQ, rate,
rate               43 drivers/clk/imx/clk-scu.c 	__le32 rate;
rate               54 drivers/clk/imx/clk-scu.c 	__le32 rate;
rate              167 drivers/clk/imx/clk-scu.c 	return le32_to_cpu(msg.data.resp.rate);
rate              178 drivers/clk/imx/clk-scu.c static long clk_scu_round_rate(struct clk_hw *hw, unsigned long rate,
rate              185 drivers/clk/imx/clk-scu.c 	return rate;
rate              188 drivers/clk/imx/clk-scu.c static int clk_scu_atf_set_cpu_rate(struct clk_hw *hw, unsigned long rate,
rate              202 drivers/clk/imx/clk-scu.c 		      cluster_id, rate, 0, 0, 0, 0, &res);
rate              216 drivers/clk/imx/clk-scu.c static int clk_scu_set_rate(struct clk_hw *hw, unsigned long rate,
rate              228 drivers/clk/imx/clk-scu.c 	msg.rate = cpu_to_le32(rate);
rate               76 drivers/clk/imx/clk.c 			const char *name, unsigned long rate)
rate               82 drivers/clk/imx/clk.c 		clk = imx_clk_fixed(name, rate);
rate               87 drivers/clk/imx/clk.c 			const char *name, unsigned long rate)
rate               93 drivers/clk/imx/clk.c 		clk = imx_clk_fixed(name, rate);
rate               39 drivers/clk/imx/clk.h 	unsigned int rate;
rate              134 drivers/clk/imx/clk.h 		.rate	=	(_rate),		\
rate              142 drivers/clk/imx/clk.h 		.rate	=	(_rate),		\
rate              159 drivers/clk/imx/clk.h 			const char *name, unsigned long rate);
rate              162 drivers/clk/imx/clk.h 			const char *name, unsigned long rate);
rate              205 drivers/clk/imx/clk.h static inline struct clk *imx_clk_fixed(const char *name, int rate)
rate              207 drivers/clk/imx/clk.h 	return clk_register_fixed_rate(NULL, name, NULL, 0, rate);
rate              210 drivers/clk/imx/clk.h static inline struct clk_hw *imx_clk_hw_fixed(const char *name, int rate)
rate              212 drivers/clk/imx/clk.h 	return clk_hw_register_fixed_rate(NULL, name, NULL, 0, rate);
rate              114 drivers/clk/ingenic/cgu.c 		 unsigned long rate, unsigned long parent_rate,
rate              131 drivers/clk/ingenic/cgu.c 	m = (rate / MHZ) * od * n / (parent_rate / MHZ);
rate              175 drivers/clk/ingenic/cgu.c 	unsigned long rate, flags;
rate              179 drivers/clk/ingenic/cgu.c 	rate = ingenic_pll_calc(clk_info, req_rate, parent_rate,
rate              181 drivers/clk/ingenic/cgu.c 	if (rate != req_rate)
rate              183 drivers/clk/ingenic/cgu.c 			clk_info->name, req_rate, rate);
rate              369 drivers/clk/ingenic/cgu.c 	unsigned long rate = parent_rate;
rate              384 drivers/clk/ingenic/cgu.c 		rate /= div;
rate              386 drivers/clk/ingenic/cgu.c 		rate /= clk_info->fixdiv.div;
rate              389 drivers/clk/ingenic/cgu.c 	return rate;
rate              464 drivers/clk/ingenic/cgu.c 	unsigned long rate, flags;
rate              473 drivers/clk/ingenic/cgu.c 		rate = DIV_ROUND_UP(parent_rate, div);
rate              475 drivers/clk/ingenic/cgu.c 		if (rate != req_rate)
rate              174 drivers/clk/ingenic/tcu.c static u8 ingenic_tcu_get_prescale(unsigned long rate, unsigned long req_rate)
rate              179 drivers/clk/ingenic/tcu.c 		if ((rate >> (prescale * 2)) <= req_rate)
rate              188 drivers/clk/ingenic/tcu.c 	unsigned long rate = *parent_rate;
rate              191 drivers/clk/ingenic/tcu.c 	if (req_rate > rate)
rate              192 drivers/clk/ingenic/tcu.c 		return rate;
rate              194 drivers/clk/ingenic/tcu.c 	prescale = ingenic_tcu_get_prescale(rate, req_rate);
rate              196 drivers/clk/ingenic/tcu.c 	return rate >> (prescale * 2);
rate               80 drivers/clk/keystone/pll.c 	unsigned long rate = parent_rate;
rate              109 drivers/clk/keystone/pll.c 	rate /= (prediv + 1);
rate              110 drivers/clk/keystone/pll.c 	rate = (rate * (mult + 1));
rate              111 drivers/clk/keystone/pll.c 	rate /= postdiv;
rate              113 drivers/clk/keystone/pll.c 	return rate;
rate              182 drivers/clk/keystone/sci-clk.c 						      req->rate,
rate              192 drivers/clk/keystone/sci-clk.c 	req->rate = new_rate;
rate              206 drivers/clk/keystone/sci-clk.c static int sci_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              212 drivers/clk/keystone/sci-clk.c 					    clk->clk_id, rate, rate, rate);
rate               22 drivers/clk/loongson1/clk-loongson1b.c 	u32 pll, rate;
rate               25 drivers/clk/loongson1/clk-loongson1b.c 	rate = 12 + (pll & GENMASK(5, 0));
rate               26 drivers/clk/loongson1/clk-loongson1b.c 	rate *= OSC;
rate               27 drivers/clk/loongson1/clk-loongson1b.c 	rate >>= 1;
rate               29 drivers/clk/loongson1/clk-loongson1b.c 	return rate;
rate               21 drivers/clk/loongson1/clk-loongson1c.c 	u32 pll, rate;
rate               24 drivers/clk/loongson1/clk-loongson1c.c 	rate = ((pll >> 8) & 0xff) + ((pll >> 16) & 0xff);
rate               25 drivers/clk/loongson1/clk-loongson1c.c 	rate *= OSC;
rate               26 drivers/clk/loongson1/clk-loongson1c.c 	rate >>= 2;
rate               28 drivers/clk/loongson1/clk-loongson1c.c 	return rate;
rate               58 drivers/clk/mediatek/clk-mtk.c 					      rc->rate);
rate               26 drivers/clk/mediatek/clk-mtk.h 	unsigned long rate;
rate               33 drivers/clk/mediatek/clk-mtk.h 		.rate = _rate,				\
rate              196 drivers/clk/mediatek/clk-pll.c static int mtk_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              203 drivers/clk/mediatek/clk-pll.c 	mtk_pll_calc_values(pll, &pcw, &postdiv, rate, parent_rate);
rate              225 drivers/clk/mediatek/clk-pll.c static long mtk_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              232 drivers/clk/mediatek/clk-pll.c 	mtk_pll_calc_values(pll, &pcw, &postdiv, rate, *prate);
rate               31 drivers/clk/meson/clk-cpu-dyndiv.c 					    unsigned long rate,
rate               37 drivers/clk/meson/clk-cpu-dyndiv.c 	return divider_round_rate(hw, rate, prate, NULL, data->div.width, 0);
rate               40 drivers/clk/meson/clk-cpu-dyndiv.c static int meson_clk_cpu_dyndiv_set_rate(struct clk_hw *hw, unsigned long rate,
rate               48 drivers/clk/meson/clk-cpu-dyndiv.c 	ret = divider_get_val(rate, parent_rate, NULL, data->div.width, 0);
rate               64 drivers/clk/meson/clk-dualdiv.c __dualdiv_get_setting(unsigned long rate, unsigned long parent_rate,
rate               78 drivers/clk/meson/clk-dualdiv.c 		if (now == rate) {
rate               80 drivers/clk/meson/clk-dualdiv.c 		} else if (abs(now - rate) < abs(best - rate)) {
rate               89 drivers/clk/meson/clk-dualdiv.c static long meson_clk_dualdiv_round_rate(struct clk_hw *hw, unsigned long rate,
rate               95 drivers/clk/meson/clk-dualdiv.c 		__dualdiv_get_setting(rate, *parent_rate, dualdiv);
rate              103 drivers/clk/meson/clk-dualdiv.c static int meson_clk_dualdiv_set_rate(struct clk_hw *hw, unsigned long rate,
rate              109 drivers/clk/meson/clk-dualdiv.c 		__dualdiv_get_setting(rate, parent_rate, dualdiv);
rate               81 drivers/clk/meson/clk-mpll.c 	long rate;
rate               86 drivers/clk/meson/clk-mpll.c 	rate = rate_from_params(parent_rate, sdm, n2);
rate               87 drivers/clk/meson/clk-mpll.c 	return rate < 0 ? 0 : rate;
rate               91 drivers/clk/meson/clk-mpll.c 			    unsigned long rate,
rate               98 drivers/clk/meson/clk-mpll.c 	params_from_rate(rate, *parent_rate, &sdm, &n2, mpll->flags);
rate              103 drivers/clk/meson/clk-mpll.c 			 unsigned long rate,
rate              111 drivers/clk/meson/clk-mpll.c 	params_from_rate(rate, parent_rate, &sdm, &n2, mpll->flags);
rate               60 drivers/clk/meson/clk-pll.c 	u64 rate = (u64)parent_rate * m;
rate               65 drivers/clk/meson/clk-pll.c 		rate += DIV_ROUND_UP_ULL(frac_rate,
rate               69 drivers/clk/meson/clk-pll.c 	return DIV_ROUND_UP_ULL(rate, n);
rate               98 drivers/clk/meson/clk-pll.c static unsigned int __pll_params_with_frac(unsigned long rate,
rate              105 drivers/clk/meson/clk-pll.c 	u64 val = (u64)rate * n;
rate              108 drivers/clk/meson/clk-pll.c 	if (rate < parent_rate * m / n)
rate              121 drivers/clk/meson/clk-pll.c static bool meson_clk_pll_is_better(unsigned long rate,
rate              128 drivers/clk/meson/clk-pll.c 		if (abs(now - rate) < abs(best - rate))
rate              132 drivers/clk/meson/clk-pll.c 		if (now <= rate && best < now)
rate              153 drivers/clk/meson/clk-pll.c static unsigned int meson_clk_get_pll_range_m(unsigned long rate,
rate              158 drivers/clk/meson/clk-pll.c 	u64 val = (u64)rate * n;
rate              166 drivers/clk/meson/clk-pll.c static int meson_clk_get_pll_range_index(unsigned long rate,
rate              181 drivers/clk/meson/clk-pll.c 		if (rate <= pll->range->min * parent_rate) {
rate              184 drivers/clk/meson/clk-pll.c 		} else if (rate >= pll->range->max * parent_rate) {
rate              190 drivers/clk/meson/clk-pll.c 	*m = meson_clk_get_pll_range_m(rate, parent_rate, *n, pll);
rate              199 drivers/clk/meson/clk-pll.c static int meson_clk_get_pll_get_index(unsigned long rate,
rate              207 drivers/clk/meson/clk-pll.c 		return meson_clk_get_pll_range_index(rate, parent_rate,
rate              215 drivers/clk/meson/clk-pll.c static int meson_clk_get_pll_settings(unsigned long rate,
rate              226 drivers/clk/meson/clk-pll.c 		ret = meson_clk_get_pll_get_index(rate, parent_rate,
rate              232 drivers/clk/meson/clk-pll.c 		if (meson_clk_pll_is_better(rate, best, now, pll)) {
rate              237 drivers/clk/meson/clk-pll.c 			if (now == rate)
rate              245 drivers/clk/meson/clk-pll.c static long meson_clk_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              254 drivers/clk/meson/clk-pll.c 	ret = meson_clk_get_pll_settings(rate, *parent_rate, &m, &n, pll);
rate              260 drivers/clk/meson/clk-pll.c 	if (!MESON_PARM_APPLICABLE(&pll->frac) || rate == round)
rate              267 drivers/clk/meson/clk-pll.c 	frac = __pll_params_with_frac(rate, *parent_rate, m, n, pll);
rate              361 drivers/clk/meson/clk-pll.c static int meson_clk_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              369 drivers/clk/meson/clk-pll.c 	if (parent_rate == 0 || rate == 0)
rate              372 drivers/clk/meson/clk-pll.c 	old_rate = rate;
rate              374 drivers/clk/meson/clk-pll.c 	ret = meson_clk_get_pll_settings(rate, parent_rate, &m, &n, pll);
rate              386 drivers/clk/meson/clk-pll.c 		frac = __pll_params_with_frac(rate, parent_rate, m, n, pll);
rate               78 drivers/clk/meson/clk-regmap.c static long clk_regmap_div_round_rate(struct clk_hw *hw, unsigned long rate,
rate               96 drivers/clk/meson/clk-regmap.c 		return divider_ro_round_rate(hw, rate, prate, div->table,
rate              100 drivers/clk/meson/clk-regmap.c 	return divider_round_rate(hw, rate, prate, div->table, div->width,
rate              104 drivers/clk/meson/clk-regmap.c static int clk_regmap_div_set_rate(struct clk_hw *hw, unsigned long rate,
rate              112 drivers/clk/meson/clk-regmap.c 	ret = divider_get_val(rate, parent_rate, div->table, div->width,
rate               41 drivers/clk/meson/sclk-div.c static int sclk_div_getdiv(struct clk_hw *hw, unsigned long rate,
rate               44 drivers/clk/meson/sclk-div.c 	int div = DIV_ROUND_CLOSEST_ULL((u64)prate, rate);
rate               49 drivers/clk/meson/sclk-div.c static int sclk_div_bestdiv(struct clk_hw *hw, unsigned long rate,
rate               58 drivers/clk/meson/sclk-div.c 	if (!rate)
rate               59 drivers/clk/meson/sclk-div.c 		rate = 1;
rate               64 drivers/clk/meson/sclk-div.c 		return sclk_div_getdiv(hw, rate, *prate, maxdiv);
rate               70 drivers/clk/meson/sclk-div.c 	maxdiv = min(ULONG_MAX / rate, maxdiv);
rate               78 drivers/clk/meson/sclk-div.c 		if (rate * i == *prate)
rate               81 drivers/clk/meson/sclk-div.c 		parent_now = clk_hw_round_rate(parent, rate * i);
rate               84 drivers/clk/meson/sclk-div.c 		if (abs(rate - now) < abs(rate - best)) {
rate               99 drivers/clk/meson/sclk-div.c static long sclk_div_round_rate(struct clk_hw *hw, unsigned long rate,
rate              106 drivers/clk/meson/sclk-div.c 	div = sclk_div_bestdiv(hw, rate, prate, sclk);
rate              166 drivers/clk/meson/sclk-div.c static int sclk_div_set_rate(struct clk_hw *hw, unsigned long rate,
rate              173 drivers/clk/meson/sclk-div.c 	sclk->cached_div = sclk_div_getdiv(hw, rate, prate, maxdiv);
rate              119 drivers/clk/microchip/clk-core.c static unsigned long calc_best_divided_rate(unsigned long rate,
rate              131 drivers/clk/microchip/clk-core.c 	div = parent_rate / rate;
rate              137 drivers/clk/microchip/clk-core.c 	if (abs(rate - divided_rate_down) < abs(rate - divided_rate))
rate              158 drivers/clk/microchip/clk-core.c static long pbclk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              161 drivers/clk/microchip/clk-core.c 	return calc_best_divided_rate(rate, *parent_rate,
rate              165 drivers/clk/microchip/clk-core.c static int pbclk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              180 drivers/clk/microchip/clk-core.c 	div = DIV_ROUND_CLOSEST(parent_rate, rate);
rate              315 drivers/clk/microchip/clk-core.c static void roclk_calc_div_trim(unsigned long rate,
rate              333 drivers/clk/microchip/clk-core.c 	if (parent_rate <= rate) {
rate              339 drivers/clk/microchip/clk-core.c 		div = parent_rate / (rate << 1);
rate              342 drivers/clk/microchip/clk-core.c 		do_div(frac, rate);
rate              373 drivers/clk/microchip/clk-core.c static long roclk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              379 drivers/clk/microchip/clk-core.c 	roclk_calc_div_trim(rate, *parent_rate, &rodiv, &rotrim);
rate              402 drivers/clk/microchip/clk-core.c 		if (req->rate > parent_rate)
rate              405 drivers/clk/microchip/clk-core.c 		nearest_rate = roclk_round_rate(hw, req->rate, &parent_rate);
rate              406 drivers/clk/microchip/clk-core.c 		delta = abs(nearest_rate - req->rate);
rate              407 drivers/clk/microchip/clk-core.c 		if ((nearest_rate >= req->rate) && (delta < best_delta)) {
rate              421 drivers/clk/microchip/clk-core.c 		       __func__, clk_hw_get_name(hw), req->rate);
rate              426 drivers/clk/microchip/clk-core.c 		 clk_hw_get_name(hw), req->rate,
rate              474 drivers/clk/microchip/clk-core.c 				     unsigned long rate,
rate              484 drivers/clk/microchip/clk-core.c 	roclk_calc_div_trim(rate, parent_rate, &rodiv, &trim);
rate              487 drivers/clk/microchip/clk-core.c 		 parent_rate, rate, rodiv, trim);
rate              535 drivers/clk/microchip/clk-core.c static int roclk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              540 drivers/clk/microchip/clk-core.c 	return roclk_set_rate_and_parent(hw, rate, parent_rate, index);
rate              597 drivers/clk/microchip/clk-core.c 					unsigned long rate,
rate              602 drivers/clk/microchip/clk-core.c 	unsigned long new_rate, best_rate = rate;
rate              614 drivers/clk/microchip/clk-core.c 			delta = abs(rate - new_rate);
rate              615 drivers/clk/microchip/clk-core.c 			if ((new_rate >= rate) && (delta < best_delta)) {
rate              631 drivers/clk/microchip/clk-core.c 		 rate, parent_rate, best_mul, best_div, best_rate);
rate              666 drivers/clk/microchip/clk-core.c static long spll_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              671 drivers/clk/microchip/clk-core.c 	return spll_calc_mult_div(pll, rate, *parent_rate, NULL, NULL);
rate              674 drivers/clk/microchip/clk-core.c static int spll_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              682 drivers/clk/microchip/clk-core.c 	ret = spll_calc_mult_div(pll, rate, parent_rate, &mult, &odiv);
rate              781 drivers/clk/microchip/clk-core.c static long sclk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              784 drivers/clk/microchip/clk-core.c 	return calc_best_divided_rate(rate, *parent_rate, SLEW_SYSDIV, 1);
rate              788 drivers/clk/microchip/clk-core.c 			 unsigned long rate, unsigned long parent_rate)
rate              795 drivers/clk/microchip/clk-core.c 	div = parent_rate / rate;
rate               31 drivers/clk/mmp/clk-frac.c 	unsigned long rate = 0, prev_rate;
rate               35 drivers/clk/mmp/clk-frac.c 		prev_rate = rate;
rate               36 drivers/clk/mmp/clk-frac.c 		rate = (((*prate / 10000) * factor->ftbl[i].den) /
rate               38 drivers/clk/mmp/clk-frac.c 		if (rate > drate)
rate               42 drivers/clk/mmp/clk-frac.c 		return rate;
rate               44 drivers/clk/mmp/clk-frac.c 		if ((drate - prev_rate) > (rate - drate))
rate               45 drivers/clk/mmp/clk-frac.c 			return rate;
rate               81 drivers/clk/mmp/clk-frac.c 	unsigned long rate = 0;
rate               85 drivers/clk/mmp/clk-frac.c 		rate = (((prate / 10000) * factor->ftbl[i].den) /
rate               87 drivers/clk/mmp/clk-frac.c 		if (rate > drate)
rate               31 drivers/clk/mmp/clk-gate.c 	unsigned long rate;
rate               46 drivers/clk/mmp/clk-gate.c 		rate = clk_hw_get_rate(hw);
rate               48 drivers/clk/mmp/clk-gate.c 		udelay(2000000/rate);
rate              125 drivers/clk/mmp/clk-mix.c 		if (parent_rate % item->rate) {
rate              128 drivers/clk/mmp/clk-mix.c 			item->divisor = parent_rate / item->rate;
rate              231 drivers/clk/mmp/clk-mix.c 			gap = abs(mix_rate - req->rate);
rate              249 drivers/clk/mmp/clk-mix.c 				gap = abs(mix_rate - req->rate);
rate              268 drivers/clk/mmp/clk-mix.c 	req->rate = mix_rate_best;
rate              274 drivers/clk/mmp/clk-mix.c 						unsigned long rate,
rate              282 drivers/clk/mmp/clk-mix.c 	div = parent_rate / rate;
rate              376 drivers/clk/mmp/clk-mix.c static int mmp_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              386 drivers/clk/mmp/clk-mix.c 	best_divisor = best_parent_rate / rate;
rate               68 drivers/clk/mmp/clk.h 	unsigned long rate;
rate              160 drivers/clk/mvebu/ap-cpu-clk.c static int ap_cpu_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              164 drivers/clk/mvebu/ap-cpu-clk.c 	int ret, reg, divider = parent_rate / rate;
rate              214 drivers/clk/mvebu/ap-cpu-clk.c static long ap_cpu_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              217 drivers/clk/mvebu/ap-cpu-clk.c 	int divider = *parent_rate / rate;
rate              481 drivers/clk/mvebu/armada-37xx-periph.c static long clk_pm_cpu_round_rate(struct clk_hw *hw, unsigned long rate,
rate              486 drivers/clk/mvebu/armada-37xx-periph.c 	unsigned int div = *parent_rate / rate;
rate              530 drivers/clk/mvebu/armada-37xx-periph.c static void clk_pm_cpu_set_rate_wa(unsigned long rate, struct regmap *base)
rate              534 drivers/clk/mvebu/armada-37xx-periph.c 	if (rate != 1200 * 1000 * 1000)
rate              548 drivers/clk/mvebu/armada-37xx-periph.c static int clk_pm_cpu_set_rate(struct clk_hw *hw, unsigned long rate,
rate              553 drivers/clk/mvebu/armada-37xx-periph.c 	unsigned int div = parent_rate / rate;
rate              579 drivers/clk/mvebu/armada-37xx-periph.c 			clk_pm_cpu_set_rate_wa(rate, base);
rate              583 drivers/clk/mvebu/armada-37xx-periph.c 			return rate;
rate              640 drivers/clk/mvebu/armada-37xx-periph.c 			struct clk_double_div *rate;
rate              642 drivers/clk/mvebu/armada-37xx-periph.c 			rate =  to_clk_double_div(rate_hw);
rate              643 drivers/clk/mvebu/armada-37xx-periph.c 			rate->reg1 = reg + (u64)rate->reg1;
rate              644 drivers/clk/mvebu/armada-37xx-periph.c 			rate->reg2 = reg + (u64)rate->reg2;
rate              646 drivers/clk/mvebu/armada-37xx-periph.c 			struct clk_divider *rate = to_clk_divider(rate_hw);
rate              650 drivers/clk/mvebu/armada-37xx-periph.c 			rate->reg = reg + (u64)rate->reg;
rate              651 drivers/clk/mvebu/armada-37xx-periph.c 			for (clkt = rate->table; clkt->div; clkt++)
rate              653 drivers/clk/mvebu/armada-37xx-periph.c 			rate->width = order_base_2(table_size);
rate              654 drivers/clk/mvebu/armada-37xx-periph.c 			rate->lock = lock;
rate               26 drivers/clk/mvebu/armada-37xx-xtal.c 	unsigned int rate;
rate               55 drivers/clk/mvebu/armada-37xx-xtal.c 		rate = 40000000;
rate               57 drivers/clk/mvebu/armada-37xx-xtal.c 		rate = 25000000;
rate               60 drivers/clk/mvebu/armada-37xx-xtal.c 	xtal_hw = clk_hw_register_fixed_rate(NULL, xtal_name, NULL, 0, rate);
rate              138 drivers/clk/mvebu/clk-corediv.c static long clk_corediv_round_rate(struct clk_hw *hwclk, unsigned long rate,
rate              144 drivers/clk/mvebu/clk-corediv.c 	div = *parent_rate / rate;
rate              153 drivers/clk/mvebu/clk-corediv.c static int clk_corediv_set_rate(struct clk_hw *hwclk, unsigned long rate,
rate              162 drivers/clk/mvebu/clk-corediv.c 	div = parent_rate / rate;
rate               59 drivers/clk/mvebu/clk-cpu.c static long clk_cpu_round_rate(struct clk_hw *hwclk, unsigned long rate,
rate               65 drivers/clk/mvebu/clk-cpu.c 	div = *parent_rate / rate;
rate               74 drivers/clk/mvebu/clk-cpu.c static int clk_cpu_off_set_rate(struct clk_hw *hwclk, unsigned long rate,
rate               82 drivers/clk/mvebu/clk-cpu.c 	div = parent_rate / rate;
rate              108 drivers/clk/mvebu/clk-cpu.c static int clk_cpu_on_set_rate(struct clk_hw *hwclk, unsigned long rate,
rate              129 drivers/clk/mvebu/clk-cpu.c 	if (rate == 2 * cur_rate)
rate              151 drivers/clk/mvebu/clk-cpu.c static int clk_cpu_set_rate(struct clk_hw *hwclk, unsigned long rate,
rate              155 drivers/clk/mvebu/clk-cpu.c 		return clk_cpu_on_set_rate(hwclk, rate, parent_rate);
rate              157 drivers/clk/mvebu/clk-cpu.c 		return clk_cpu_off_set_rate(hwclk, rate, parent_rate);
rate              113 drivers/clk/mvebu/common.c 	unsigned long rate;
rate              137 drivers/clk/mvebu/common.c 	rate = desc->get_tclk_freq(base);
rate              139 drivers/clk/mvebu/common.c 						   rate);
rate              145 drivers/clk/mvebu/common.c 	rate = desc->get_cpu_freq(base);
rate              149 drivers/clk/mvebu/common.c 		rate = desc->fix_sscg_deviation(rate);
rate              152 drivers/clk/mvebu/common.c 						   rate);
rate              173 drivers/clk/mvebu/common.c 		rate = desc->get_refclk_freq(base);
rate              175 drivers/clk/mvebu/common.c 			clk_register_fixed_rate(NULL, name, NULL, 0, rate);
rate               67 drivers/clk/mvebu/dove-divider.c static int dove_calc_divider(const struct dove_clk *dc, unsigned long rate,
rate               72 drivers/clk/mvebu/dove-divider.c 	divider = DIV_ROUND_CLOSEST(parent_rate, rate);
rate              103 drivers/clk/mvebu/dove-divider.c 	unsigned long rate = DIV_ROUND_CLOSEST(parent, divider);
rate              106 drivers/clk/mvebu/dove-divider.c 		 __func__, dc->name, divider, parent, rate);
rate              108 drivers/clk/mvebu/dove-divider.c 	return rate;
rate              111 drivers/clk/mvebu/dove-divider.c static long dove_round_rate(struct clk_hw *hw, unsigned long rate,
rate              118 drivers/clk/mvebu/dove-divider.c 	divider = dove_calc_divider(dc, rate, parent_rate, false);
rate              122 drivers/clk/mvebu/dove-divider.c 	rate = DIV_ROUND_CLOSEST(parent_rate, divider);
rate              125 drivers/clk/mvebu/dove-divider.c 		 __func__, dc->name, divider, parent_rate, rate);
rate              127 drivers/clk/mvebu/dove-divider.c 	return rate;
rate              130 drivers/clk/mvebu/dove-divider.c static int dove_set_clock(struct clk_hw *hw, unsigned long rate,
rate              137 drivers/clk/mvebu/dove-divider.c 	divider = dove_calc_divider(dc, rate, parent_rate, true);
rate              142 drivers/clk/mvebu/dove-divider.c 		 __func__, dc->name, divider, parent_rate, rate);
rate               43 drivers/clk/mxs/clk-div.c static long clk_div_round_rate(struct clk_hw *hw, unsigned long rate,
rate               48 drivers/clk/mxs/clk-div.c 	return div->ops->round_rate(&div->divider.hw, rate, prate);
rate               51 drivers/clk/mxs/clk-div.c static int clk_div_set_rate(struct clk_hw *hw, unsigned long rate,
rate               57 drivers/clk/mxs/clk-div.c 	ret = div->ops->set_rate(&div->divider.hw, rate, parent_rate);
rate               47 drivers/clk/mxs/clk-frac.c static long clk_frac_round_rate(struct clk_hw *hw, unsigned long rate,
rate               55 drivers/clk/mxs/clk-frac.c 	if (rate > parent_rate)
rate               58 drivers/clk/mxs/clk-frac.c 	tmp = rate;
rate               73 drivers/clk/mxs/clk-frac.c static int clk_frac_set_rate(struct clk_hw *hw, unsigned long rate,
rate               81 drivers/clk/mxs/clk-frac.c 	if (rate > parent_rate)
rate               84 drivers/clk/mxs/clk-frac.c 	tmp = rate;
rate               27 drivers/clk/mxs/clk-pll.c 	unsigned long rate;
rate               71 drivers/clk/mxs/clk-pll.c 	return pll->rate;
rate               83 drivers/clk/mxs/clk-pll.c 			void __iomem *base, u8 power, unsigned long rate)
rate              100 drivers/clk/mxs/clk-pll.c 	pll->rate = rate;
rate               60 drivers/clk/mxs/clk-ref.c static long clk_ref_round_rate(struct clk_hw *hw, unsigned long rate,
rate               67 drivers/clk/mxs/clk-ref.c 	tmp = tmp * 18 + rate / 2;
rate               68 drivers/clk/mxs/clk-ref.c 	do_div(tmp, rate);
rate               83 drivers/clk/mxs/clk-ref.c static int clk_ref_set_rate(struct clk_hw *hw, unsigned long rate,
rate               92 drivers/clk/mxs/clk-ref.c 	tmp = tmp * 18 + rate / 2;
rate               93 drivers/clk/mxs/clk-ref.c 	do_div(tmp, rate);
rate               21 drivers/clk/mxs/clk-ssp.c void mxs_ssp_set_clk_rate(struct mxs_ssp *ssp, unsigned int rate)
rate               30 drivers/clk/mxs/clk-ssp.c 		clock_rate = DIV_ROUND_UP(ssp_clk, rate * clock_divide);
rate               38 drivers/clk/mxs/clk-ssp.c 			"%s: cannot set clock to %d\n", __func__, rate);
rate               54 drivers/clk/mxs/clk-ssp.c 		__func__, clock_divide, clock_rate, ssp_clk, ssp_sck, rate);
rate               22 drivers/clk/mxs/clk.h 			void __iomem *base, u8 power, unsigned long rate);
rate               33 drivers/clk/mxs/clk.h static inline struct clk *mxs_clk_fixed(const char *name, int rate)
rate               35 drivers/clk/mxs/clk.h 	return clk_register_fixed_rate(NULL, name, NULL, 0, rate);
rate              377 drivers/clk/nxp/clk-lpc18xx-cgu.c static long lpc18xx_pll0_round_rate(struct clk_hw *hw, unsigned long rate,
rate              382 drivers/clk/nxp/clk-lpc18xx-cgu.c 	if (*prate < rate) {
rate              387 drivers/clk/nxp/clk-lpc18xx-cgu.c 	m = DIV_ROUND_UP_ULL(*prate, rate * 2);
rate              389 drivers/clk/nxp/clk-lpc18xx-cgu.c 		pr_warn("%s: unable to support rate %lu\n", __func__, rate);
rate              396 drivers/clk/nxp/clk-lpc18xx-cgu.c static int lpc18xx_pll0_set_rate(struct clk_hw *hw, unsigned long rate,
rate              403 drivers/clk/nxp/clk-lpc18xx-cgu.c 	if (parent_rate < rate) {
rate              408 drivers/clk/nxp/clk-lpc18xx-cgu.c 	m = DIV_ROUND_UP_ULL(parent_rate, rate * 2);
rate              410 drivers/clk/nxp/clk-lpc18xx-cgu.c 		pr_warn("%s: unable to support rate %lu\n", __func__, rate);
rate              477 drivers/clk/nxp/clk-lpc32xx.c 	unsigned long rate, cco_rate, ref_rate;
rate              504 drivers/clk/nxp/clk-lpc32xx.c 	rate = cco_rate = ref_rate * clk->m_div;
rate              511 drivers/clk/nxp/clk-lpc32xx.c 			rate /= (1 << clk->p_div);
rate              519 drivers/clk/nxp/clk-lpc32xx.c 		 clk->n_div, clk->m_div, (1 << clk->p_div), rate);
rate              529 drivers/clk/nxp/clk-lpc32xx.c 	return rate;
rate              532 drivers/clk/nxp/clk-lpc32xx.c static int clk_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              576 drivers/clk/nxp/clk-lpc32xx.c 	if (new_rate != rate)
rate              582 drivers/clk/nxp/clk-lpc32xx.c static long clk_hclk_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              586 drivers/clk/nxp/clk-lpc32xx.c 	u64 m_i, o = rate, i = *parent_rate, d = (u64)rate << 6;
rate              590 drivers/clk/nxp/clk-lpc32xx.c 	pr_debug("%s: %lu/%lu\n", clk_hw_get_name(hw), *parent_rate, rate);
rate              592 drivers/clk/nxp/clk-lpc32xx.c 	if (rate > 266500000)
rate              617 drivers/clk/nxp/clk-lpc32xx.c 	if (d == (u64)rate << 6) {
rate              619 drivers/clk/nxp/clk-lpc32xx.c 		       clk_hw_get_name(hw), rate);
rate              637 drivers/clk/nxp/clk-lpc32xx.c 			 clk_hw_get_name(hw), rate, m, n, p);
rate              640 drivers/clk/nxp/clk-lpc32xx.c 			 clk_hw_get_name(hw), rate, m, n, p, o);
rate              645 drivers/clk/nxp/clk-lpc32xx.c static long clk_usb_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              652 drivers/clk/nxp/clk-lpc32xx.c 	pr_debug("%s: %lu/%lu\n", clk_hw_get_name(hw), *parent_rate, rate);
rate              660 drivers/clk/nxp/clk-lpc32xx.c 	if (rate != 48000000)
rate              690 drivers/clk/nxp/clk-lpc32xx.c 			return rate;
rate              958 drivers/clk/nxp/clk-lpc32xx.c static long clk_divider_round_rate(struct clk_hw *hw, unsigned long rate,
rate              974 drivers/clk/nxp/clk-lpc32xx.c 	return divider_round_rate(hw, rate, prate, divider->table,
rate              978 drivers/clk/nxp/clk-lpc32xx.c static int clk_divider_set_rate(struct clk_hw *hw, unsigned long rate,
rate              984 drivers/clk/nxp/clk-lpc32xx.c 	value = divider_get_val(rate, parent_rate, divider->table,
rate              142 drivers/clk/pistachio/clk-pll.c static long pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              150 drivers/clk/pistachio/clk-pll.c 		    pll->rates[i].fout <= rate)
rate              193 drivers/clk/pistachio/clk-pll.c static int pll_gf40lp_frac_set_rate(struct clk_hw *hw, unsigned long rate,
rate              202 drivers/clk/pistachio/clk-pll.c 	if (rate < MIN_OUTPUT_FRAC || rate > MAX_OUTPUT_FRAC)
rate              205 drivers/clk/pistachio/clk-pll.c 	params = pll_get_params(pll, parent_rate, rate);
rate              273 drivers/clk/pistachio/clk-pll.c 	u64 val, prediv, fbdiv, frac, postdiv1, postdiv2, rate;
rate              287 drivers/clk/pistachio/clk-pll.c 	rate = parent_rate;
rate              289 drivers/clk/pistachio/clk-pll.c 		rate *= (fbdiv << 24) + frac;
rate              291 drivers/clk/pistachio/clk-pll.c 		rate *= (fbdiv << 24);
rate              293 drivers/clk/pistachio/clk-pll.c 	rate = do_div_round_closest(rate, (prediv * postdiv1 * postdiv2) << 24);
rate              295 drivers/clk/pistachio/clk-pll.c 	return rate;
rate              350 drivers/clk/pistachio/clk-pll.c static int pll_gf40lp_laint_set_rate(struct clk_hw *hw, unsigned long rate,
rate              359 drivers/clk/pistachio/clk-pll.c 	if (rate < MIN_OUTPUT_LA || rate > MAX_OUTPUT_LA)
rate              362 drivers/clk/pistachio/clk-pll.c 	params = pll_get_params(pll, parent_rate, rate);
rate              414 drivers/clk/pistachio/clk-pll.c 	u64 rate = parent_rate;
rate              424 drivers/clk/pistachio/clk-pll.c 	rate *= fbdiv;
rate              425 drivers/clk/pistachio/clk-pll.c 	rate = do_div_round_closest(rate, prediv * postdiv1 * postdiv2);
rate              427 drivers/clk/pistachio/clk-pll.c 	return rate;
rate              211 drivers/clk/pxa/clk-pxa.c 	unsigned long rate;
rate              214 drivers/clk/pxa/clk-pxa.c 		rate = freqs[i].cpll;
rate              215 drivers/clk/pxa/clk-pxa.c 		if (rate == req->rate)
rate              217 drivers/clk/pxa/clk-pxa.c 		if (rate < req->min_rate)
rate              219 drivers/clk/pxa/clk-pxa.c 		if (rate > req->max_rate)
rate              221 drivers/clk/pxa/clk-pxa.c 		if (rate <= req->rate)
rate              223 drivers/clk/pxa/clk-pxa.c 		if ((rate >= req->rate) && (closest_above == -1))
rate              230 drivers/clk/pxa/clk-pxa.c 		rate = req->rate;
rate              232 drivers/clk/pxa/clk-pxa.c 		rate = freqs[closest_below].cpll;
rate              234 drivers/clk/pxa/clk-pxa.c 		rate = freqs[closest_above].cpll;
rate              236 drivers/clk/pxa/clk-pxa.c 		pr_debug("%s(rate=%lu) no match\n", __func__, req->rate);
rate              240 drivers/clk/pxa/clk-pxa.c 	pr_debug("%s(rate=%lu) rate=%lu\n", __func__, req->rate, rate);
rate              241 drivers/clk/pxa/clk-pxa.c 	req->rate = rate;
rate              258 drivers/clk/pxa/clk-pxa25x.c static int clk_pxa25x_cpll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              263 drivers/clk/pxa/clk-pxa25x.c 	pr_debug("%s(rate=%lu parent_rate=%lu)\n", __func__, rate, parent_rate);
rate              265 drivers/clk/pxa/clk-pxa25x.c 		if (pxa25x_freqs[i].cpll == rate)
rate              250 drivers/clk/pxa/clk-pxa27x.c static int clk_pxa27x_cpll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              255 drivers/clk/pxa/clk-pxa27x.c 	pr_debug("%s(rate=%lu parent_rate=%lu)\n", __func__, rate, parent_rate);
rate              257 drivers/clk/pxa/clk-pxa27x.c 		if (pxa27x_freqs[i].cpll == rate)
rate               84 drivers/clk/pxa/clk-pxa3xx.c 	unsigned long ac97_div, rate;
rate               91 drivers/clk/pxa/clk-pxa3xx.c 	rate = parent_rate / 2;
rate               92 drivers/clk/pxa/clk-pxa3xx.c 	rate /= ((ac97_div >> 12) & 0x7fff);
rate               93 drivers/clk/pxa/clk-pxa3xx.c 	rate *= (ac97_div & 0xfff);
rate               95 drivers/clk/pxa/clk-pxa3xx.c 	return rate;
rate              413 drivers/clk/qcom/clk-alpha-pll.c alpha_pll_round_rate(unsigned long rate, unsigned long prate, u32 *l, u64 *a,
rate              419 drivers/clk/qcom/clk-alpha-pll.c 	quotient = rate;
rate              425 drivers/clk/qcom/clk-alpha-pll.c 		return rate;
rate              441 drivers/clk/qcom/clk-alpha-pll.c alpha_pll_find_vco(const struct clk_alpha_pll *pll, unsigned long rate)
rate              447 drivers/clk/qcom/clk-alpha-pll.c 		if (rate >= v->min_freq && rate <= v->max_freq)
rate              535 drivers/clk/qcom/clk-alpha-pll.c static int __clk_alpha_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              544 drivers/clk/qcom/clk-alpha-pll.c 	rate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width);
rate              545 drivers/clk/qcom/clk-alpha-pll.c 	vco = alpha_pll_find_vco(pll, rate);
rate              573 drivers/clk/qcom/clk-alpha-pll.c static int clk_alpha_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              576 drivers/clk/qcom/clk-alpha-pll.c 	return __clk_alpha_pll_set_rate(hw, rate, prate,
rate              580 drivers/clk/qcom/clk-alpha-pll.c static int clk_alpha_pll_hwfsm_set_rate(struct clk_hw *hw, unsigned long rate,
rate              583 drivers/clk/qcom/clk-alpha-pll.c 	return __clk_alpha_pll_set_rate(hw, rate, prate,
rate              587 drivers/clk/qcom/clk-alpha-pll.c static long clk_alpha_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              595 drivers/clk/qcom/clk-alpha-pll.c 	rate = alpha_pll_round_rate(rate, *prate, &l, &a, alpha_width);
rate              596 drivers/clk/qcom/clk-alpha-pll.c 	if (!pll->vco_table || alpha_pll_find_vco(pll, rate))
rate              597 drivers/clk/qcom/clk-alpha-pll.c 		return rate;
rate              602 drivers/clk/qcom/clk-alpha-pll.c 	return clamp(rate, min_freq, max_freq);
rate              619 drivers/clk/qcom/clk-alpha-pll.c alpha_huayra_pll_round_rate(unsigned long rate, unsigned long prate,
rate              625 drivers/clk/qcom/clk-alpha-pll.c 	quotient = rate;
rate              631 drivers/clk/qcom/clk-alpha-pll.c 		return rate;
rate              655 drivers/clk/qcom/clk-alpha-pll.c 	u64 rate = parent_rate, tmp;
rate              682 drivers/clk/qcom/clk-alpha-pll.c 			return alpha_huayra_pll_calc_rate(rate, l, alpha);
rate              687 drivers/clk/qcom/clk-alpha-pll.c 		rate *= l;
rate              693 drivers/clk/qcom/clk-alpha-pll.c 			rate -= tmp;
rate              697 drivers/clk/qcom/clk-alpha-pll.c 			rate += tmp;
rate              700 drivers/clk/qcom/clk-alpha-pll.c 		return rate;
rate              703 drivers/clk/qcom/clk-alpha-pll.c 	return alpha_huayra_pll_calc_rate(rate, l, alpha);
rate              706 drivers/clk/qcom/clk-alpha-pll.c static int alpha_pll_huayra_set_rate(struct clk_hw *hw, unsigned long rate,
rate              712 drivers/clk/qcom/clk-alpha-pll.c 	rate = alpha_huayra_pll_round_rate(rate, prate, &l, &a);
rate              749 drivers/clk/qcom/clk-alpha-pll.c static long alpha_pll_huayra_round_rate(struct clk_hw *hw, unsigned long rate,
rate              754 drivers/clk/qcom/clk-alpha-pll.c 	return alpha_huayra_pll_round_rate(rate, *prate, &l, &a);
rate              862 drivers/clk/qcom/clk-alpha-pll.c static long clk_trion_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              870 drivers/clk/qcom/clk-alpha-pll.c 	rate = alpha_pll_round_rate(rate, *prate,
rate              872 drivers/clk/qcom/clk-alpha-pll.c 	if (!pll->vco_table || alpha_pll_find_vco(pll, rate))
rate              873 drivers/clk/qcom/clk-alpha-pll.c 		return rate;
rate              878 drivers/clk/qcom/clk-alpha-pll.c 	return clamp(rate, min_freq, max_freq);
rate              951 drivers/clk/qcom/clk-alpha-pll.c clk_alpha_pll_postdiv_round_rate(struct clk_hw *hw, unsigned long rate,
rate              962 drivers/clk/qcom/clk-alpha-pll.c 	return divider_round_rate(hw, rate, prate, table,
rate              967 drivers/clk/qcom/clk-alpha-pll.c clk_alpha_pll_postdiv_round_ro_rate(struct clk_hw *hw, unsigned long rate,
rate              980 drivers/clk/qcom/clk-alpha-pll.c 		*prate = clk_hw_round_rate(clk_hw_get_parent(hw), div * rate);
rate              985 drivers/clk/qcom/clk-alpha-pll.c static int clk_alpha_pll_postdiv_set_rate(struct clk_hw *hw, unsigned long rate,
rate              992 drivers/clk/qcom/clk-alpha-pll.c 	div = DIV_ROUND_UP_ULL(parent_rate, rate) - 1;
rate             1140 drivers/clk/qcom/clk-alpha-pll.c static int alpha_pll_fabia_set_rate(struct clk_hw *hw, unsigned long rate,
rate             1153 drivers/clk/qcom/clk-alpha-pll.c 	rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width);
rate             1159 drivers/clk/qcom/clk-alpha-pll.c 	if (rrate > (rate + FABIA_PLL_RATE_MARGIN) || rrate < rate) {
rate             1236 drivers/clk/qcom/clk-alpha-pll.c clk_trion_pll_postdiv_round_rate(struct clk_hw *hw, unsigned long rate,
rate             1241 drivers/clk/qcom/clk-alpha-pll.c 	return divider_round_rate(hw, rate, prate, pll->post_div_table,
rate             1246 drivers/clk/qcom/clk-alpha-pll.c clk_trion_pll_postdiv_set_rate(struct clk_hw *hw, unsigned long rate,
rate             1253 drivers/clk/qcom/clk-alpha-pll.c 	div = DIV_ROUND_UP_ULL(parent_rate, rate);
rate             1274 drivers/clk/qcom/clk-alpha-pll.c 				unsigned long rate, unsigned long *prate)
rate             1278 drivers/clk/qcom/clk-alpha-pll.c 	return divider_round_rate(hw, rate, prate, pll->post_div_table,
rate             1283 drivers/clk/qcom/clk-alpha-pll.c 				unsigned long rate, unsigned long parent_rate)
rate             1299 drivers/clk/qcom/clk-alpha-pll.c 	div = DIV_ROUND_UP_ULL(parent_rate, rate);
rate               37 drivers/clk/qcom/clk-hfpll.c 		unsigned long rate;
rate               39 drivers/clk/qcom/clk-hfpll.c 		rate = clk_hw_get_rate(hw);
rate               42 drivers/clk/qcom/clk-hfpll.c 		if (hd->user_vco_mask && rate > hd->low_vco_max_rate)
rate              128 drivers/clk/qcom/clk-hfpll.c static long clk_hfpll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              135 drivers/clk/qcom/clk-hfpll.c 	rate = clamp(rate, hd->min_rate, hd->max_rate);
rate              137 drivers/clk/qcom/clk-hfpll.c 	rrate = DIV_ROUND_UP(rate, *parent_rate) * *parent_rate;
rate              148 drivers/clk/qcom/clk-hfpll.c static int clk_hfpll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              158 drivers/clk/qcom/clk-hfpll.c 	l_val = rate / parent_rate;
rate              169 drivers/clk/qcom/clk-hfpll.c 		if (rate <= hd->low_vco_max_rate)
rate               79 drivers/clk/qcom/clk-krait.c static long krait_div2_round_rate(struct clk_hw *hw, unsigned long rate,
rate               82 drivers/clk/qcom/clk-krait.c 	*parent_rate = clk_hw_round_rate(clk_hw_get_parent(hw), rate * 2);
rate               86 drivers/clk/qcom/clk-krait.c static int krait_div2_set_rate(struct clk_hw *hw, unsigned long rate,
rate               84 drivers/clk/qcom/clk-pll.c 	unsigned long rate;
rate               95 drivers/clk/qcom/clk-pll.c 	rate = parent_rate * l;
rate              100 drivers/clk/qcom/clk-pll.c 		rate += tmp;
rate              106 drivers/clk/qcom/clk-pll.c 		rate /= config + 1;
rate              109 drivers/clk/qcom/clk-pll.c 	return rate;
rate              113 drivers/clk/qcom/clk-pll.c struct pll_freq_tbl *find_freq(const struct pll_freq_tbl *f, unsigned long rate)
rate              119 drivers/clk/qcom/clk-pll.c 		if (rate <= f->freq)
rate              131 drivers/clk/qcom/clk-pll.c 	f = find_freq(pll->freq_tbl, req->rate);
rate              133 drivers/clk/qcom/clk-pll.c 		req->rate = clk_pll_recalc_rate(hw, req->best_parent_rate);
rate              135 drivers/clk/qcom/clk-pll.c 		req->rate = f->freq;
rate              141 drivers/clk/qcom/clk-pll.c clk_pll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long p_rate)
rate              149 drivers/clk/qcom/clk-pll.c 	f = find_freq(pll->freq_tbl, rate);
rate              301 drivers/clk/qcom/clk-pll.c clk_pll_sr2_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate)
rate              309 drivers/clk/qcom/clk-pll.c 	f = find_freq(pll->freq_tbl, rate);
rate              326 drivers/clk/qcom/clk-rcg.c calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 pre_div)
rate              329 drivers/clk/qcom/clk-rcg.c 		rate /= pre_div + 1;
rate              332 drivers/clk/qcom/clk-rcg.c 		u64 tmp = rate;
rate              335 drivers/clk/qcom/clk-rcg.c 		rate = tmp;
rate              338 drivers/clk/qcom/clk-rcg.c 	return rate;
rate              403 drivers/clk/qcom/clk-rcg.c 	unsigned long clk_flags, rate = req->rate;
rate              407 drivers/clk/qcom/clk-rcg.c 	f = qcom_find_freq(f, rate);
rate              418 drivers/clk/qcom/clk-rcg.c 		rate = rate * f->pre_div;
rate              420 drivers/clk/qcom/clk-rcg.c 			u64 tmp = rate;
rate              423 drivers/clk/qcom/clk-rcg.c 			rate = tmp;
rate              426 drivers/clk/qcom/clk-rcg.c 		rate =  clk_hw_get_rate(p);
rate              429 drivers/clk/qcom/clk-rcg.c 	req->best_parent_rate = rate;
rate              430 drivers/clk/qcom/clk-rcg.c 	req->rate = f->freq;
rate              468 drivers/clk/qcom/clk-rcg.c 	req->best_parent_rate = clk_hw_round_rate(p, req->rate);
rate              469 drivers/clk/qcom/clk-rcg.c 	req->rate = req->best_parent_rate;
rate              516 drivers/clk/qcom/clk-rcg.c static int clk_rcg_set_rate(struct clk_hw *hw, unsigned long rate,
rate              522 drivers/clk/qcom/clk-rcg.c 	f = qcom_find_freq(rcg->freq_tbl, rate);
rate              529 drivers/clk/qcom/clk-rcg.c static int clk_rcg_bypass_set_rate(struct clk_hw *hw, unsigned long rate,
rate              543 drivers/clk/qcom/clk-rcg.c 	req->best_parent_rate = clk_hw_round_rate(p, req->rate);
rate              544 drivers/clk/qcom/clk-rcg.c 	req->rate = req->best_parent_rate;
rate              549 drivers/clk/qcom/clk-rcg.c static int clk_rcg_bypass2_set_rate(struct clk_hw *hw, unsigned long rate,
rate              575 drivers/clk/qcom/clk-rcg.c 		unsigned long rate, unsigned long parent_rate, u8 index)
rate              578 drivers/clk/qcom/clk-rcg.c 	return clk_rcg_bypass2_set_rate(hw, rate, parent_rate);
rate              601 drivers/clk/qcom/clk-rcg.c 		request = (req->rate * frac->den) / frac->num;
rate              610 drivers/clk/qcom/clk-rcg.c 		req->rate = (src_rate * frac->num) / frac->den;
rate              617 drivers/clk/qcom/clk-rcg.c static int clk_rcg_pixel_set_rate(struct clk_hw *hw, unsigned long rate,
rate              646 drivers/clk/qcom/clk-rcg.c 		request = (rate * frac->den) / frac->num;
rate              662 drivers/clk/qcom/clk-rcg.c 		unsigned long rate, unsigned long parent_rate, u8 index)
rate              664 drivers/clk/qcom/clk-rcg.c 	return clk_rcg_pixel_set_rate(hw, rate, parent_rate);
rate              675 drivers/clk/qcom/clk-rcg.c 	if (req->rate == 0)
rate              680 drivers/clk/qcom/clk-rcg.c 	div = src_rate / req->rate;
rate              684 drivers/clk/qcom/clk-rcg.c 		req->rate = src_rate / div;
rate              691 drivers/clk/qcom/clk-rcg.c static int clk_rcg_esc_set_rate(struct clk_hw *hw, unsigned long rate,
rate              701 drivers/clk/qcom/clk-rcg.c 	if (rate == 0)
rate              717 drivers/clk/qcom/clk-rcg.c 	div = parent_rate / rate;
rate              728 drivers/clk/qcom/clk-rcg.c 		unsigned long rate, unsigned long parent_rate, u8 index)
rate              730 drivers/clk/qcom/clk-rcg.c 	return clk_rcg_esc_set_rate(hw, rate, parent_rate);
rate              744 drivers/clk/qcom/clk-rcg.c static int clk_rcg_lcc_set_rate(struct clk_hw *hw, unsigned long rate,
rate              752 drivers/clk/qcom/clk-rcg.c 	f = qcom_find_freq(rcg->freq_tbl, rate);
rate              784 drivers/clk/qcom/clk-rcg.c static int __clk_dyn_rcg_set_rate(struct clk_hw *hw, unsigned long rate)
rate              789 drivers/clk/qcom/clk-rcg.c 	f = qcom_find_freq(rcg->freq_tbl, rate);
rate              796 drivers/clk/qcom/clk-rcg.c static int clk_dyn_rcg_set_rate(struct clk_hw *hw, unsigned long rate,
rate              799 drivers/clk/qcom/clk-rcg.c 	return __clk_dyn_rcg_set_rate(hw, rate);
rate              803 drivers/clk/qcom/clk-rcg.c 		unsigned long rate, unsigned long parent_rate, u8 index)
rate              805 drivers/clk/qcom/clk-rcg.c 	return __clk_dyn_rcg_set_rate(hw, rate);
rate              147 drivers/clk/qcom/clk-rcg2.c calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 hid_div)
rate              150 drivers/clk/qcom/clk-rcg2.c 		rate *= 2;
rate              151 drivers/clk/qcom/clk-rcg2.c 		rate /= hid_div + 1;
rate              155 drivers/clk/qcom/clk-rcg2.c 		u64 tmp = rate;
rate              158 drivers/clk/qcom/clk-rcg2.c 		rate = tmp;
rate              161 drivers/clk/qcom/clk-rcg2.c 	return rate;
rate              195 drivers/clk/qcom/clk-rcg2.c 	unsigned long clk_flags, rate = req->rate;
rate              202 drivers/clk/qcom/clk-rcg2.c 		f = qcom_find_freq_floor(f, rate);
rate              205 drivers/clk/qcom/clk-rcg2.c 		f = qcom_find_freq(f, rate);
rate              224 drivers/clk/qcom/clk-rcg2.c 		rate = f->freq;
rate              226 drivers/clk/qcom/clk-rcg2.c 			if (!rate)
rate              227 drivers/clk/qcom/clk-rcg2.c 				rate = req->rate;
rate              228 drivers/clk/qcom/clk-rcg2.c 			rate /= 2;
rate              229 drivers/clk/qcom/clk-rcg2.c 			rate *= f->pre_div + 1;
rate              233 drivers/clk/qcom/clk-rcg2.c 			u64 tmp = rate;
rate              236 drivers/clk/qcom/clk-rcg2.c 			rate = tmp;
rate              239 drivers/clk/qcom/clk-rcg2.c 		rate =  clk_hw_get_rate(p);
rate              242 drivers/clk/qcom/clk-rcg2.c 	req->best_parent_rate = rate;
rate              243 drivers/clk/qcom/clk-rcg2.c 	req->rate = f->freq;
rate              312 drivers/clk/qcom/clk-rcg2.c static int __clk_rcg2_set_rate(struct clk_hw *hw, unsigned long rate,
rate              320 drivers/clk/qcom/clk-rcg2.c 		f = qcom_find_freq_floor(rcg->freq_tbl, rate);
rate              323 drivers/clk/qcom/clk-rcg2.c 		f = qcom_find_freq(rcg->freq_tbl, rate);
rate              335 drivers/clk/qcom/clk-rcg2.c static int clk_rcg2_set_rate(struct clk_hw *hw, unsigned long rate,
rate              338 drivers/clk/qcom/clk-rcg2.c 	return __clk_rcg2_set_rate(hw, rate, CEIL);
rate              341 drivers/clk/qcom/clk-rcg2.c static int clk_rcg2_set_floor_rate(struct clk_hw *hw, unsigned long rate,
rate              344 drivers/clk/qcom/clk-rcg2.c 	return __clk_rcg2_set_rate(hw, rate, FLOOR);
rate              348 drivers/clk/qcom/clk-rcg2.c 		unsigned long rate, unsigned long parent_rate, u8 index)
rate              350 drivers/clk/qcom/clk-rcg2.c 	return __clk_rcg2_set_rate(hw, rate, CEIL);
rate              354 drivers/clk/qcom/clk-rcg2.c 		unsigned long rate, unsigned long parent_rate, u8 index)
rate              356 drivers/clk/qcom/clk-rcg2.c 	return __clk_rcg2_set_rate(hw, rate, FLOOR);
rate              408 drivers/clk/qcom/clk-rcg2.c static int clk_edp_pixel_set_rate(struct clk_hw *hw, unsigned long rate,
rate              426 drivers/clk/qcom/clk-rcg2.c 		request = rate;
rate              448 drivers/clk/qcom/clk-rcg2.c 		unsigned long rate, unsigned long parent_rate, u8 index)
rate              451 drivers/clk/qcom/clk-rcg2.c 	return clk_edp_pixel_set_rate(hw, rate, parent_rate);
rate              476 drivers/clk/qcom/clk-rcg2.c 		request = req->rate;
rate              488 drivers/clk/qcom/clk-rcg2.c 		req->rate = calc_rate(req->best_parent_rate,
rate              518 drivers/clk/qcom/clk-rcg2.c 	if (req->rate == 0)
rate              522 drivers/clk/qcom/clk-rcg2.c 	req->best_parent_rate = parent_rate = clk_hw_round_rate(p, req->rate);
rate              524 drivers/clk/qcom/clk-rcg2.c 	div = DIV_ROUND_UP((2 * parent_rate), req->rate) - 1;
rate              527 drivers/clk/qcom/clk-rcg2.c 	req->rate = calc_rate(parent_rate, 0, 0, 0, div);
rate              532 drivers/clk/qcom/clk-rcg2.c static int clk_byte_set_rate(struct clk_hw *hw, unsigned long rate,
rate              540 drivers/clk/qcom/clk-rcg2.c 	div = DIV_ROUND_UP((2 * parent_rate), rate) - 1;
rate              549 drivers/clk/qcom/clk-rcg2.c 		unsigned long rate, unsigned long parent_rate, u8 index)
rate              552 drivers/clk/qcom/clk-rcg2.c 	return clk_byte_set_rate(hw, rate, parent_rate);
rate              573 drivers/clk/qcom/clk-rcg2.c 	unsigned long rate = req->rate;
rate              575 drivers/clk/qcom/clk-rcg2.c 	if (rate == 0)
rate              579 drivers/clk/qcom/clk-rcg2.c 	req->best_parent_rate = parent_rate = clk_hw_round_rate(p, rate);
rate              581 drivers/clk/qcom/clk-rcg2.c 	div = DIV_ROUND_UP((2 * parent_rate), rate) - 1;
rate              584 drivers/clk/qcom/clk-rcg2.c 	req->rate = calc_rate(parent_rate, 0, 0, 0, div);
rate              589 drivers/clk/qcom/clk-rcg2.c static int clk_byte2_set_rate(struct clk_hw *hw, unsigned long rate,
rate              599 drivers/clk/qcom/clk-rcg2.c 	div = DIV_ROUND_UP((2 * parent_rate), rate) - 1;
rate              619 drivers/clk/qcom/clk-rcg2.c 		unsigned long rate, unsigned long parent_rate, u8 index)
rate              622 drivers/clk/qcom/clk-rcg2.c 	return clk_byte2_set_rate(hw, rate, parent_rate);
rate              652 drivers/clk/qcom/clk-rcg2.c 		request = (req->rate * frac->den) / frac->num;
rate              660 drivers/clk/qcom/clk-rcg2.c 		req->rate = (src_rate * frac->num) / frac->den;
rate              667 drivers/clk/qcom/clk-rcg2.c static int clk_pixel_set_rate(struct clk_hw *hw, unsigned long rate,
rate              690 drivers/clk/qcom/clk-rcg2.c 		request = (rate * frac->den) / frac->num;
rate              709 drivers/clk/qcom/clk-rcg2.c static int clk_pixel_set_rate_and_parent(struct clk_hw *hw, unsigned long rate,
rate              712 drivers/clk/qcom/clk-rcg2.c 	return clk_pixel_set_rate(hw, rate, parent_rate);
rate              735 drivers/clk/qcom/clk-rcg2.c 	if (req->rate == clk_hw_get_rate(xo)) {
rate              747 drivers/clk/qcom/clk-rcg2.c 	parent_req.rate = req->rate = min(req->rate, p9_rate);
rate              748 drivers/clk/qcom/clk-rcg2.c 	if (req->rate == p9_rate) {
rate              749 drivers/clk/qcom/clk-rcg2.c 		req->rate = req->best_parent_rate = p9_rate;
rate              756 drivers/clk/qcom/clk-rcg2.c 		if (clk_hw_get_rate(p8) == req->rate)
rate              770 drivers/clk/qcom/clk-rcg2.c 	req->rate = req->best_parent_rate = parent_req.rate;
rate              775 drivers/clk/qcom/clk-rcg2.c static int clk_gfx3d_set_rate_and_parent(struct clk_hw *hw, unsigned long rate,
rate              791 drivers/clk/qcom/clk-rcg2.c static int clk_gfx3d_set_rate(struct clk_hw *hw, unsigned long rate,
rate              861 drivers/clk/qcom/clk-rcg2.c static int clk_rcg2_shared_set_rate(struct clk_hw *hw, unsigned long rate,
rate              867 drivers/clk/qcom/clk-rcg2.c 	f = qcom_find_freq(rcg->freq_tbl, rate);
rate              882 drivers/clk/qcom/clk-rcg2.c 		unsigned long rate, unsigned long parent_rate, u8 index)
rate              884 drivers/clk/qcom/clk-rcg2.c 	return clk_rcg2_shared_set_rate(hw, rate, parent_rate);
rate               18 drivers/clk/qcom/clk-regmap-divider.c static long div_round_ro_rate(struct clk_hw *hw, unsigned long rate,
rate               29 drivers/clk/qcom/clk-regmap-divider.c 	return divider_ro_round_rate(hw, rate, prate, NULL, divider->width,
rate               33 drivers/clk/qcom/clk-regmap-divider.c static long div_round_rate(struct clk_hw *hw, unsigned long rate,
rate               38 drivers/clk/qcom/clk-regmap-divider.c 	return divider_round_rate(hw, rate, prate, NULL, divider->width,
rate               42 drivers/clk/qcom/clk-regmap-divider.c static int div_set_rate(struct clk_hw *hw, unsigned long rate,
rate               49 drivers/clk/qcom/clk-regmap-divider.c 	div = divider_get_val(rate, parent_rate, NULL, divider->width,
rate               94 drivers/clk/qcom/clk-regmap-mux-div.c 	unsigned long req_rate = req->rate;
rate              108 drivers/clk/qcom/clk-regmap-mux-div.c 				req->rate = best_rate;
rate              124 drivers/clk/qcom/clk-regmap-mux-div.c static int __mux_div_set_rate_and_parent(struct clk_hw *hw, unsigned long rate,
rate              139 drivers/clk/qcom/clk-regmap-mux-div.c 			parent_rate = mult_frac(rate, div, 2);
rate              143 drivers/clk/qcom/clk-regmap-mux-div.c 			if (is_better_rate(rate, best_rate, actual_rate)) {
rate              149 drivers/clk/qcom/clk-regmap-mux-div.c 			if (actual_rate < rate || best_rate <= rate)
rate              187 drivers/clk/qcom/clk-regmap-mux-div.c 			    unsigned long rate, unsigned long prate)
rate              191 drivers/clk/qcom/clk-regmap-mux-div.c 	return __mux_div_set_rate_and_parent(hw, rate, prate, md->src);
rate              194 drivers/clk/qcom/clk-regmap-mux-div.c static int mux_div_set_rate_and_parent(struct clk_hw *hw,  unsigned long rate,
rate              199 drivers/clk/qcom/clk-regmap-mux-div.c 	return __mux_div_set_rate_and_parent(hw, rate, prate,
rate               31 drivers/clk/qcom/clk-rpm.c 		.rate = INT_MAX,					      \
rate               43 drivers/clk/qcom/clk-rpm.c 		.rate = INT_MAX,					      \
rate               67 drivers/clk/qcom/clk-rpm.c 		.rate = (r),						      \
rate               82 drivers/clk/qcom/clk-rpm.c 		.rate = (r),						      \
rate               94 drivers/clk/qcom/clk-rpm.c 		.rate = (r),						      \
rate              109 drivers/clk/qcom/clk-rpm.c 		.rate = (r),						      \
rate              122 drivers/clk/qcom/clk-rpm.c 		.rate = (r),						      \
rate              140 drivers/clk/qcom/clk-rpm.c 	unsigned long rate;
rate              189 drivers/clk/qcom/clk-rpm.c static int clk_rpm_set_rate_active(struct clk_rpm *r, unsigned long rate)
rate              191 drivers/clk/qcom/clk-rpm.c 	u32 value = DIV_ROUND_UP(rate, 1000); /* to kHz */
rate              197 drivers/clk/qcom/clk-rpm.c static int clk_rpm_set_rate_sleep(struct clk_rpm *r, unsigned long rate)
rate              199 drivers/clk/qcom/clk-rpm.c 	u32 value = DIV_ROUND_UP(rate, 1000); /* to kHz */
rate              205 drivers/clk/qcom/clk-rpm.c static void to_active_sleep(struct clk_rpm *r, unsigned long rate,
rate              208 drivers/clk/qcom/clk-rpm.c 	*active = rate;
rate              232 drivers/clk/qcom/clk-rpm.c 	if (!r->rate)
rate              235 drivers/clk/qcom/clk-rpm.c 	to_active_sleep(r, r->rate, &this_rate, &this_sleep_rate);
rate              239 drivers/clk/qcom/clk-rpm.c 		to_active_sleep(peer, peer->rate,
rate              279 drivers/clk/qcom/clk-rpm.c 	if (!r->rate)
rate              284 drivers/clk/qcom/clk-rpm.c 		to_active_sleep(peer, peer->rate, &peer_rate,
rate              370 drivers/clk/qcom/clk-rpm.c 			    unsigned long rate, unsigned long parent_rate)
rate              384 drivers/clk/qcom/clk-rpm.c 	to_active_sleep(r, rate, &this_rate, &this_sleep_rate);
rate              388 drivers/clk/qcom/clk-rpm.c 		to_active_sleep(peer, peer->rate,
rate              401 drivers/clk/qcom/clk-rpm.c 	r->rate = rate;
rate              409 drivers/clk/qcom/clk-rpm.c static long clk_rpm_round_rate(struct clk_hw *hw, unsigned long rate,
rate              417 drivers/clk/qcom/clk-rpm.c 	return rate;
rate              430 drivers/clk/qcom/clk-rpm.c 	return r->rate;
rate              299 drivers/clk/qcom/clk-rpmh.c static int clk_rpmh_bcm_set_rate(struct clk_hw *hw, unsigned long rate,
rate              304 drivers/clk/qcom/clk-rpmh.c 	c->aggr_state = rate / c->unit;
rate              315 drivers/clk/qcom/clk-rpmh.c static long clk_rpmh_round_rate(struct clk_hw *hw, unsigned long rate,
rate              318 drivers/clk/qcom/clk-rpmh.c 	return rate;
rate               38 drivers/clk/qcom/clk-smd-rpm.c 		.rate = INT_MAX,					      \
rate               53 drivers/clk/qcom/clk-smd-rpm.c 		.rate = INT_MAX,					      \
rate               72 drivers/clk/qcom/clk-smd-rpm.c 		.rate = (r),						      \
rate               88 drivers/clk/qcom/clk-smd-rpm.c 		.rate = (r),						      \
rate              131 drivers/clk/qcom/clk-smd-rpm.c 	unsigned long rate;
rate              178 drivers/clk/qcom/clk-smd-rpm.c 				       unsigned long rate)
rate              183 drivers/clk/qcom/clk-smd-rpm.c 		.value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */
rate              192 drivers/clk/qcom/clk-smd-rpm.c 				      unsigned long rate)
rate              197 drivers/clk/qcom/clk-smd-rpm.c 		.value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */
rate              205 drivers/clk/qcom/clk-smd-rpm.c static void to_active_sleep(struct clk_smd_rpm *r, unsigned long rate,
rate              208 drivers/clk/qcom/clk-smd-rpm.c 	*active = rate;
rate              232 drivers/clk/qcom/clk-smd-rpm.c 	if (!r->rate)
rate              235 drivers/clk/qcom/clk-smd-rpm.c 	to_active_sleep(r, r->rate, &this_rate, &this_sleep_rate);
rate              239 drivers/clk/qcom/clk-smd-rpm.c 		to_active_sleep(peer, peer->rate,
rate              279 drivers/clk/qcom/clk-smd-rpm.c 	if (!r->rate)
rate              284 drivers/clk/qcom/clk-smd-rpm.c 		to_active_sleep(peer, peer->rate, &peer_rate,
rate              303 drivers/clk/qcom/clk-smd-rpm.c static int clk_smd_rpm_set_rate(struct clk_hw *hw, unsigned long rate,
rate              318 drivers/clk/qcom/clk-smd-rpm.c 	to_active_sleep(r, rate, &this_rate, &this_sleep_rate);
rate              322 drivers/clk/qcom/clk-smd-rpm.c 		to_active_sleep(peer, peer->rate,
rate              335 drivers/clk/qcom/clk-smd-rpm.c 	r->rate = rate;
rate              343 drivers/clk/qcom/clk-smd-rpm.c static long clk_smd_rpm_round_rate(struct clk_hw *hw, unsigned long rate,
rate              351 drivers/clk/qcom/clk-smd-rpm.c 	return rate;
rate              364 drivers/clk/qcom/clk-smd-rpm.c 	return r->rate;
rate              114 drivers/clk/qcom/clk-spmi-pmic-div.c static long clk_spmi_pmic_div_round_rate(struct clk_hw *hw, unsigned long rate,
rate              119 drivers/clk/qcom/clk-spmi-pmic-div.c 	div = DIV_ROUND_UP(*parent_rate, rate);
rate              138 drivers/clk/qcom/clk-spmi-pmic-div.c static int clk_spmi_pmic_div_set_rate(struct clk_hw *hw, unsigned long rate,
rate              142 drivers/clk/qcom/clk-spmi-pmic-div.c 	unsigned int div_factor = div_to_div_factor(parent_rate / rate);
rate               27 drivers/clk/qcom/common.c struct freq_tbl *qcom_find_freq(const struct freq_tbl *f, unsigned long rate)
rate               36 drivers/clk/qcom/common.c 		if (rate <= f->freq)
rate               45 drivers/clk/qcom/common.c 					    unsigned long rate)
rate               50 drivers/clk/qcom/common.c 		if (rate >= f->freq)
rate              120 drivers/clk/qcom/common.c 				       const char *name, unsigned long rate,
rate              141 drivers/clk/qcom/common.c 		fixed->fixed_rate = rate;
rate              176 drivers/clk/qcom/common.c 			       const char *name, unsigned long rate)
rate              186 drivers/clk/qcom/common.c 	return _qcom_cc_register_board_clk(dev, path, name, rate, add_factor);
rate               45 drivers/clk/qcom/common.h 					     unsigned long rate);
rate               47 drivers/clk/qcom/common.h 						   unsigned long rate);
rate               54 drivers/clk/qcom/common.h 				      const char *name, unsigned long rate);
rate             1251 drivers/clk/qcom/gcc-ipq4019.c static long clk_cpu_div_round_rate(struct clk_hw *hw, unsigned long rate,
rate             1258 drivers/clk/qcom/gcc-ipq4019.c 	f = qcom_find_freq(pll->freq_tbl, rate);
rate             1273 drivers/clk/qcom/gcc-ipq4019.c static int clk_cpu_div_set_rate(struct clk_hw *hw, unsigned long rate,
rate             1281 drivers/clk/qcom/gcc-ipq4019.c 	f = qcom_find_freq(pll->freq_tbl, rate);
rate             1310 drivers/clk/qcom/gcc-ipq4019.c 	u64 rate;
rate             1325 drivers/clk/qcom/gcc-ipq4019.c 	rate = clk_fepll_vco_calc_rate(pll, parent_rate) * 2;
rate             1326 drivers/clk/qcom/gcc-ipq4019.c 	do_div(rate, pre_div);
rate             1328 drivers/clk/qcom/gcc-ipq4019.c 	return rate;
rate             1386 drivers/clk/qcom/gcc-ipq4019.c 	u64 rate;
rate             1401 drivers/clk/qcom/gcc-ipq4019.c 	rate = clk_fepll_vco_calc_rate(pll, parent_rate);
rate             1402 drivers/clk/qcom/gcc-ipq4019.c 	do_div(rate, pre_div);
rate             1404 drivers/clk/qcom/gcc-ipq4019.c 	return rate;
rate               93 drivers/clk/renesas/clk-div6.c static unsigned int cpg_div6_clock_calc_div(unsigned long rate,
rate               98 drivers/clk/renesas/clk-div6.c 	if (!rate)
rate               99 drivers/clk/renesas/clk-div6.c 		rate = 1;
rate              101 drivers/clk/renesas/clk-div6.c 	div = DIV_ROUND_CLOSEST(parent_rate, rate);
rate              105 drivers/clk/renesas/clk-div6.c static long cpg_div6_clock_round_rate(struct clk_hw *hw, unsigned long rate,
rate              108 drivers/clk/renesas/clk-div6.c 	unsigned int div = cpg_div6_clock_calc_div(rate, *parent_rate);
rate              113 drivers/clk/renesas/clk-div6.c static int cpg_div6_clock_set_rate(struct clk_hw *hw, unsigned long rate,
rate              117 drivers/clk/renesas/clk-div6.c 	unsigned int div = cpg_div6_clock_calc_div(rate, parent_rate);
rate               69 drivers/clk/renesas/clk-rcar-gen2.c static long cpg_z_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate               78 drivers/clk/renesas/clk-rcar-gen2.c 	mult = div_u64((u64)rate * 32, prate);
rate               84 drivers/clk/renesas/clk-rcar-gen2.c static int cpg_z_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate               92 drivers/clk/renesas/clk-rcar-gen2.c 	mult = div_u64((u64)rate * 32, parent_rate);
rate              578 drivers/clk/renesas/r9a06g032-clocks.c 			unsigned long rate, unsigned long prate)
rate              581 drivers/clk/renesas/r9a06g032-clocks.c 	u32 div = DIV_ROUND_UP(prate, rate + 1);
rate              591 drivers/clk/renesas/r9a06g032-clocks.c 			unsigned long m = rate -
rate              595 drivers/clk/renesas/r9a06g032-clocks.c 				rate;
rate              609 drivers/clk/renesas/r9a06g032-clocks.c 			 unsigned long rate, unsigned long *prate)
rate              612 drivers/clk/renesas/r9a06g032-clocks.c 	u32 div = DIV_ROUND_UP(*prate, rate);
rate              615 drivers/clk/renesas/r9a06g032-clocks.c 		 hw->clk, rate, *prate, div);
rate              620 drivers/clk/renesas/r9a06g032-clocks.c 	div = r9a06g032_div_clamp_div(clk, rate, *prate);
rate              642 drivers/clk/renesas/r9a06g032-clocks.c 		       unsigned long rate, unsigned long parent_rate)
rate              646 drivers/clk/renesas/r9a06g032-clocks.c 	u32 div = DIV_ROUND_UP(parent_rate, rate + 1);
rate              650 drivers/clk/renesas/r9a06g032-clocks.c 		 rate, parent_rate, div);
rate               66 drivers/clk/renesas/rcar-gen2-cpg.c static long cpg_z_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate               75 drivers/clk/renesas/rcar-gen2-cpg.c 	mult = div_u64((u64)rate * 32, prate);
rate               81 drivers/clk/renesas/rcar-gen2-cpg.c static int cpg_z_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate               89 drivers/clk/renesas/rcar-gen2-cpg.c 	mult = div_u64((u64)rate * 32, parent_rate);
rate              117 drivers/clk/renesas/rcar-gen3-cpg.c static long cpg_z_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              125 drivers/clk/renesas/rcar-gen3-cpg.c 	mult = div_u64(rate * 32ULL, prate);
rate              131 drivers/clk/renesas/rcar-gen3-cpg.c static int cpg_z_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              138 drivers/clk/renesas/rcar-gen3-cpg.c 	mult = DIV64_U64_ROUND_CLOSEST(rate * 32ULL * zclk->fixed_div,
rate              313 drivers/clk/renesas/rcar-gen3-cpg.c 					  unsigned long rate,
rate              322 drivers/clk/renesas/rcar-gen3-cpg.c 		diff = calc_rate > rate ? calc_rate - rate : rate - calc_rate;
rate              332 drivers/clk/renesas/rcar-gen3-cpg.c static long cpg_sd_clock_round_rate(struct clk_hw *hw, unsigned long rate,
rate              336 drivers/clk/renesas/rcar-gen3-cpg.c 	unsigned int div = cpg_sd_clock_calc_div(clock, rate, *parent_rate);
rate              341 drivers/clk/renesas/rcar-gen3-cpg.c static int cpg_sd_clock_set_rate(struct clk_hw *hw, unsigned long rate,
rate              345 drivers/clk/renesas/rcar-gen3-cpg.c 	unsigned int div = cpg_sd_clock_calc_div(clock, rate, parent_rate);
rate               72 drivers/clk/rockchip/clk-cpu.c 			    struct rockchip_cpuclk *cpuclk, unsigned long rate)
rate               79 drivers/clk/rockchip/clk-cpu.c 		if (rate == rate_table[i].prate)
rate              103 drivers/clk/rockchip/clk-cpu.c 				const struct rockchip_cpuclk_rate_table *rate)
rate              108 drivers/clk/rockchip/clk-cpu.c 	for (i = 0; i < ARRAY_SIZE(rate->divs); i++) {
rate              109 drivers/clk/rockchip/clk-cpu.c 		const struct rockchip_cpuclk_clksel *clksel = &rate->divs[i];
rate              124 drivers/clk/rockchip/clk-cpu.c 	const struct rockchip_cpuclk_rate_table *rate;
rate              129 drivers/clk/rockchip/clk-cpu.c 	rate = rockchip_get_cpuclk_settings(cpuclk, ndata->new_rate);
rate              130 drivers/clk/rockchip/clk-cpu.c 	if (!rate) {
rate              187 drivers/clk/rockchip/clk-cpu.c 	const struct rockchip_cpuclk_rate_table *rate;
rate              190 drivers/clk/rockchip/clk-cpu.c 	rate = rockchip_get_cpuclk_settings(cpuclk, ndata->new_rate);
rate              191 drivers/clk/rockchip/clk-cpu.c 	if (!rate) {
rate              200 drivers/clk/rockchip/clk-cpu.c 		rockchip_cpuclk_set_dividers(cpuclk, rate);
rate              217 drivers/clk/rockchip/clk-cpu.c 		rockchip_cpuclk_set_dividers(cpuclk, rate);
rate               59 drivers/clk/rockchip/clk-ddr.c 					   unsigned long rate,
rate               64 drivers/clk/rockchip/clk-ddr.c 	arm_smccc_smc(ROCKCHIP_SIP_DRAM_FREQ, rate, 0,
rate               13 drivers/clk/rockchip/clk-half-divider.c static bool _is_best_half_div(unsigned long rate, unsigned long now,
rate               17 drivers/clk/rockchip/clk-half-divider.c 		return abs(rate - now) < abs(rate - best);
rate               19 drivers/clk/rockchip/clk-half-divider.c 	return now <= rate && now > best;
rate               35 drivers/clk/rockchip/clk-half-divider.c static int clk_half_divider_bestdiv(struct clk_hw *hw, unsigned long rate,
rate               43 drivers/clk/rockchip/clk-half-divider.c 	if (!rate)
rate               44 drivers/clk/rockchip/clk-half-divider.c 		rate = 1;
rate               50 drivers/clk/rockchip/clk-half-divider.c 		bestdiv = DIV_ROUND_UP_ULL(((u64)parent_rate * 2), rate);
rate               63 drivers/clk/rockchip/clk-half-divider.c 	maxdiv = min(ULONG_MAX / rate, maxdiv);
rate               66 drivers/clk/rockchip/clk-half-divider.c 		if (((u64)rate * (i * 2 + 3)) == ((u64)parent_rate_saved * 2)) {
rate               76 drivers/clk/rockchip/clk-half-divider.c 						((u64)rate * (i * 2 + 3)) / 2);
rate               80 drivers/clk/rockchip/clk-half-divider.c 		if (_is_best_half_div(rate, now, best, flags)) {
rate               95 drivers/clk/rockchip/clk-half-divider.c static long clk_half_divider_round_rate(struct clk_hw *hw, unsigned long rate,
rate              101 drivers/clk/rockchip/clk-half-divider.c 	div = clk_half_divider_bestdiv(hw, rate, prate,
rate              108 drivers/clk/rockchip/clk-half-divider.c static int clk_half_divider_set_rate(struct clk_hw *hw, unsigned long rate,
rate              116 drivers/clk/rockchip/clk-half-divider.c 	value = DIV_ROUND_UP_ULL(((u64)parent_rate * 2), rate);
rate               49 drivers/clk/rockchip/clk-mmc-phase.c 	unsigned long rate = clk_hw_get_rate(hw);
rate               55 drivers/clk/rockchip/clk-mmc-phase.c 	if (!rate)
rate               65 drivers/clk/rockchip/clk-mmc-phase.c 					36 * (rate / 10000);
rate               78 drivers/clk/rockchip/clk-mmc-phase.c 	unsigned long rate = clk_hw_get_rate(hw);
rate               96 drivers/clk/rockchip/clk-mmc-phase.c 	if (!rate) {
rate              130 drivers/clk/rockchip/clk-mmc-phase.c 			(rate / 1000) * 36 *
rate               50 drivers/clk/rockchip/clk-pll.c 			    struct rockchip_clk_pll *pll, unsigned long rate)
rate               56 drivers/clk/rockchip/clk-pll.c 		if (rate == rate_table[i].rate)
rate               72 drivers/clk/rockchip/clk-pll.c 		if (drate >= rate_table[i].rate)
rate               73 drivers/clk/rockchip/clk-pll.c 			return rate_table[i].rate;
rate               77 drivers/clk/rockchip/clk-pll.c 	return rate_table[i - 1].rate;
rate              129 drivers/clk/rockchip/clk-pll.c 					struct rockchip_pll_rate_table *rate)
rate              134 drivers/clk/rockchip/clk-pll.c 	rate->fbdiv = ((pllcon >> RK3036_PLLCON0_FBDIV_SHIFT)
rate              136 drivers/clk/rockchip/clk-pll.c 	rate->postdiv1 = ((pllcon >> RK3036_PLLCON0_POSTDIV1_SHIFT)
rate              140 drivers/clk/rockchip/clk-pll.c 	rate->refdiv = ((pllcon >> RK3036_PLLCON1_REFDIV_SHIFT)
rate              142 drivers/clk/rockchip/clk-pll.c 	rate->postdiv2 = ((pllcon >> RK3036_PLLCON1_POSTDIV2_SHIFT)
rate              144 drivers/clk/rockchip/clk-pll.c 	rate->dsmpd = ((pllcon >> RK3036_PLLCON1_DSMPD_SHIFT)
rate              148 drivers/clk/rockchip/clk-pll.c 	rate->frac = ((pllcon >> RK3036_PLLCON2_FRAC_SHIFT)
rate              179 drivers/clk/rockchip/clk-pll.c 				const struct rockchip_pll_rate_table *rate)
rate              190 drivers/clk/rockchip/clk-pll.c 		__func__, rate->rate, rate->fbdiv, rate->postdiv1, rate->refdiv,
rate              191 drivers/clk/rockchip/clk-pll.c 		rate->postdiv2, rate->dsmpd, rate->frac);
rate              194 drivers/clk/rockchip/clk-pll.c 	cur.rate = 0;
rate              203 drivers/clk/rockchip/clk-pll.c 	writel_relaxed(HIWORD_UPDATE(rate->fbdiv, RK3036_PLLCON0_FBDIV_MASK,
rate              205 drivers/clk/rockchip/clk-pll.c 		       HIWORD_UPDATE(rate->postdiv1, RK3036_PLLCON0_POSTDIV1_MASK,
rate              209 drivers/clk/rockchip/clk-pll.c 	writel_relaxed(HIWORD_UPDATE(rate->refdiv, RK3036_PLLCON1_REFDIV_MASK,
rate              211 drivers/clk/rockchip/clk-pll.c 		       HIWORD_UPDATE(rate->postdiv2, RK3036_PLLCON1_POSTDIV2_MASK,
rate              213 drivers/clk/rockchip/clk-pll.c 		       HIWORD_UPDATE(rate->dsmpd, RK3036_PLLCON1_DSMPD_MASK,
rate              220 drivers/clk/rockchip/clk-pll.c 	pllcon |= rate->frac << RK3036_PLLCON2_FRAC_SHIFT;
rate              241 drivers/clk/rockchip/clk-pll.c 	const struct rockchip_pll_rate_table *rate;
rate              247 drivers/clk/rockchip/clk-pll.c 	rate = rockchip_get_pll_settings(pll, drate);
rate              248 drivers/clk/rockchip/clk-pll.c 	if (!rate) {
rate              254 drivers/clk/rockchip/clk-pll.c 	return rockchip_rk3036_pll_set_params(pll, rate);
rate              288 drivers/clk/rockchip/clk-pll.c 	const struct rockchip_pll_rate_table *rate;
rate              296 drivers/clk/rockchip/clk-pll.c 	rate = rockchip_get_pll_settings(pll, drate);
rate              299 drivers/clk/rockchip/clk-pll.c 	if (!rate)
rate              310 drivers/clk/rockchip/clk-pll.c 		 rate->fbdiv, rate->postdiv1, rate->refdiv, rate->postdiv2,
rate              311 drivers/clk/rockchip/clk-pll.c 		 rate->dsmpd, rate->frac);
rate              313 drivers/clk/rockchip/clk-pll.c 	if (rate->fbdiv != cur.fbdiv || rate->postdiv1 != cur.postdiv1 ||
rate              314 drivers/clk/rockchip/clk-pll.c 		rate->refdiv != cur.refdiv || rate->postdiv2 != cur.postdiv2 ||
rate              315 drivers/clk/rockchip/clk-pll.c 		rate->dsmpd != cur.dsmpd ||
rate              316 drivers/clk/rockchip/clk-pll.c 		(!cur.dsmpd && (rate->frac != cur.frac))) {
rate              327 drivers/clk/rockchip/clk-pll.c 		rockchip_rk3036_pll_set_params(pll, rate);
rate              368 drivers/clk/rockchip/clk-pll.c 					struct rockchip_pll_rate_table *rate)
rate              373 drivers/clk/rockchip/clk-pll.c 	rate->nr = ((pllcon >> RK3066_PLLCON0_NR_SHIFT)
rate              375 drivers/clk/rockchip/clk-pll.c 	rate->no = ((pllcon >> RK3066_PLLCON0_OD_SHIFT)
rate              379 drivers/clk/rockchip/clk-pll.c 	rate->nf = ((pllcon >> RK3066_PLLCON1_NF_SHIFT)
rate              383 drivers/clk/rockchip/clk-pll.c 	rate->nb = ((pllcon >> RK3066_PLLCON2_NB_SHIFT)
rate              412 drivers/clk/rockchip/clk-pll.c 				const struct rockchip_pll_rate_table *rate)
rate              422 drivers/clk/rockchip/clk-pll.c 		 __func__, rate->rate, rate->nr, rate->no, rate->nf);
rate              425 drivers/clk/rockchip/clk-pll.c 	cur.rate = 0;
rate              438 drivers/clk/rockchip/clk-pll.c 	writel(HIWORD_UPDATE(rate->nr - 1, RK3066_PLLCON0_NR_MASK,
rate              440 drivers/clk/rockchip/clk-pll.c 	       HIWORD_UPDATE(rate->no - 1, RK3066_PLLCON0_OD_MASK,
rate              444 drivers/clk/rockchip/clk-pll.c 	writel_relaxed(HIWORD_UPDATE(rate->nf - 1, RK3066_PLLCON1_NF_MASK,
rate              447 drivers/clk/rockchip/clk-pll.c 	writel_relaxed(HIWORD_UPDATE(rate->nb - 1, RK3066_PLLCON2_NB_MASK,
rate              454 drivers/clk/rockchip/clk-pll.c 	udelay(RK3066_PLL_RESET_DELAY(rate->nr));
rate              474 drivers/clk/rockchip/clk-pll.c 	const struct rockchip_pll_rate_table *rate;
rate              480 drivers/clk/rockchip/clk-pll.c 	rate = rockchip_get_pll_settings(pll, drate);
rate              481 drivers/clk/rockchip/clk-pll.c 	if (!rate) {
rate              487 drivers/clk/rockchip/clk-pll.c 	return rockchip_rk3066_pll_set_params(pll, rate);
rate              521 drivers/clk/rockchip/clk-pll.c 	const struct rockchip_pll_rate_table *rate;
rate              529 drivers/clk/rockchip/clk-pll.c 	rate = rockchip_get_pll_settings(pll, drate);
rate              532 drivers/clk/rockchip/clk-pll.c 	if (!rate)
rate              538 drivers/clk/rockchip/clk-pll.c 		 __func__, clk_hw_get_name(hw), drate, rate->nr, cur.nr,
rate              539 drivers/clk/rockchip/clk-pll.c 		 rate->no, cur.no, rate->nf, cur.nf, rate->nb, cur.nb);
rate              540 drivers/clk/rockchip/clk-pll.c 	if (rate->nr != cur.nr || rate->no != cur.no || rate->nf != cur.nf
rate              541 drivers/clk/rockchip/clk-pll.c 						     || rate->nb != cur.nb) {
rate              544 drivers/clk/rockchip/clk-pll.c 		rockchip_rk3066_pll_set_params(pll, rate);
rate              604 drivers/clk/rockchip/clk-pll.c 					struct rockchip_pll_rate_table *rate)
rate              609 drivers/clk/rockchip/clk-pll.c 	rate->fbdiv = ((pllcon >> RK3399_PLLCON0_FBDIV_SHIFT)
rate              613 drivers/clk/rockchip/clk-pll.c 	rate->refdiv = ((pllcon >> RK3399_PLLCON1_REFDIV_SHIFT)
rate              615 drivers/clk/rockchip/clk-pll.c 	rate->postdiv1 = ((pllcon >> RK3399_PLLCON1_POSTDIV1_SHIFT)
rate              617 drivers/clk/rockchip/clk-pll.c 	rate->postdiv2 = ((pllcon >> RK3399_PLLCON1_POSTDIV2_SHIFT)
rate              621 drivers/clk/rockchip/clk-pll.c 	rate->frac = ((pllcon >> RK3399_PLLCON2_FRAC_SHIFT)
rate              625 drivers/clk/rockchip/clk-pll.c 	rate->dsmpd = ((pllcon >> RK3399_PLLCON3_DSMPD_SHIFT)
rate              656 drivers/clk/rockchip/clk-pll.c 				const struct rockchip_pll_rate_table *rate)
rate              667 drivers/clk/rockchip/clk-pll.c 		__func__, rate->rate, rate->fbdiv, rate->postdiv1, rate->refdiv,
rate              668 drivers/clk/rockchip/clk-pll.c 		rate->postdiv2, rate->dsmpd, rate->frac);
rate              671 drivers/clk/rockchip/clk-pll.c 	cur.rate = 0;
rate              680 drivers/clk/rockchip/clk-pll.c 	writel_relaxed(HIWORD_UPDATE(rate->fbdiv, RK3399_PLLCON0_FBDIV_MASK,
rate              684 drivers/clk/rockchip/clk-pll.c 	writel_relaxed(HIWORD_UPDATE(rate->refdiv, RK3399_PLLCON1_REFDIV_MASK,
rate              686 drivers/clk/rockchip/clk-pll.c 		       HIWORD_UPDATE(rate->postdiv1, RK3399_PLLCON1_POSTDIV1_MASK,
rate              688 drivers/clk/rockchip/clk-pll.c 		       HIWORD_UPDATE(rate->postdiv2, RK3399_PLLCON1_POSTDIV2_MASK,
rate              695 drivers/clk/rockchip/clk-pll.c 	pllcon |= rate->frac << RK3399_PLLCON2_FRAC_SHIFT;
rate              698 drivers/clk/rockchip/clk-pll.c 	writel_relaxed(HIWORD_UPDATE(rate->dsmpd, RK3399_PLLCON3_DSMPD_MASK,
rate              720 drivers/clk/rockchip/clk-pll.c 	const struct rockchip_pll_rate_table *rate;
rate              726 drivers/clk/rockchip/clk-pll.c 	rate = rockchip_get_pll_settings(pll, drate);
rate              727 drivers/clk/rockchip/clk-pll.c 	if (!rate) {
rate              733 drivers/clk/rockchip/clk-pll.c 	return rockchip_rk3399_pll_set_params(pll, rate);
rate              767 drivers/clk/rockchip/clk-pll.c 	const struct rockchip_pll_rate_table *rate;
rate              775 drivers/clk/rockchip/clk-pll.c 	rate = rockchip_get_pll_settings(pll, drate);
rate              778 drivers/clk/rockchip/clk-pll.c 	if (!rate)
rate              789 drivers/clk/rockchip/clk-pll.c 		 rate->fbdiv, rate->postdiv1, rate->refdiv, rate->postdiv2,
rate              790 drivers/clk/rockchip/clk-pll.c 		 rate->dsmpd, rate->frac);
rate              792 drivers/clk/rockchip/clk-pll.c 	if (rate->fbdiv != cur.fbdiv || rate->postdiv1 != cur.postdiv1 ||
rate              793 drivers/clk/rockchip/clk-pll.c 		rate->refdiv != cur.refdiv || rate->postdiv2 != cur.postdiv2 ||
rate              794 drivers/clk/rockchip/clk-pll.c 		rate->dsmpd != cur.dsmpd ||
rate              795 drivers/clk/rockchip/clk-pll.c 		(!cur.dsmpd && (rate->frac != cur.frac))) {
rate              806 drivers/clk/rockchip/clk-pll.c 		rockchip_rk3399_pll_set_params(pll, rate);
rate              909 drivers/clk/rockchip/clk-pll.c 		for (len = 0; rate_table[len].rate != 0; )
rate              812 drivers/clk/rockchip/clk-rk3188.c 	unsigned long rate;
rate              833 drivers/clk/rockchip/clk-rk3188.c 		rate = clk_get_rate(clk1);
rate              840 drivers/clk/rockchip/clk-rk3188.c 		clk_set_rate(clk1, rate);
rate              858 drivers/clk/rockchip/clk-rk3188.c 		struct rockchip_pll_rate_table *rate;
rate              863 drivers/clk/rockchip/clk-rk3188.c 		rate = pll->rate_table;
rate              864 drivers/clk/rockchip/clk-rk3188.c 		while (rate->rate > 0) {
rate              865 drivers/clk/rockchip/clk-rk3188.c 			rate->nb = 1;
rate              866 drivers/clk/rockchip/clk-rk3188.c 			rate++;
rate              180 drivers/clk/rockchip/clk.c 		unsigned long rate, unsigned long *parent_rate,
rate              189 drivers/clk/rockchip/clk.c 	if ((rate * 20 > p_rate) && (p_rate % rate != 0)) {
rate              200 drivers/clk/rockchip/clk.c 	scale = fls_long(*parent_rate / rate - 1);
rate              202 drivers/clk/rockchip/clk.c 		rate <<= scale - fd->nwidth;
rate              204 drivers/clk/rockchip/clk.c 	rational_best_approximation(rate, *parent_rate,
rate              201 drivers/clk/rockchip/clk.h 	.rate	= _rate##U,					\
rate              212 drivers/clk/rockchip/clk.h 	.rate	= _rate##U,			\
rate              221 drivers/clk/rockchip/clk.h 	.rate	= _rate##U,					\
rate              245 drivers/clk/rockchip/clk.h 	unsigned long rate;
rate               36 drivers/clk/samsung/clk-pll.c 				struct samsung_clk_pll *pll, unsigned long rate)
rate               42 drivers/clk/samsung/clk-pll.c 		if (rate == rate_table[i].rate)
rate               58 drivers/clk/samsung/clk-pll.c 		if (drate >= rate_table[i].rate)
rate               59 drivers/clk/samsung/clk-pll.c 			return rate_table[i].rate;
rate               63 drivers/clk/samsung/clk-pll.c 	return rate_table[i - 1].rate;
rate              194 drivers/clk/samsung/clk-pll.c 		const struct samsung_pll_rate_table *rate, u32 pll_con)
rate              201 drivers/clk/samsung/clk-pll.c 	return (rate->mdiv != old_mdiv || rate->pdiv != old_pdiv);
rate              208 drivers/clk/samsung/clk-pll.c 	const struct samsung_pll_rate_table *rate;
rate              212 drivers/clk/samsung/clk-pll.c 	rate = samsung_get_pll_settings(pll, drate);
rate              213 drivers/clk/samsung/clk-pll.c 	if (!rate) {
rate              221 drivers/clk/samsung/clk-pll.c 	if (!(samsung_pll35xx_mp_change(rate, tmp))) {
rate              224 drivers/clk/samsung/clk-pll.c 		tmp |= rate->sdiv << PLL35XX_SDIV_SHIFT;
rate              231 drivers/clk/samsung/clk-pll.c 	writel_relaxed(rate->pdiv * PLL35XX_LOCK_FACTOR,
rate              238 drivers/clk/samsung/clk-pll.c 	tmp |= (rate->mdiv << PLL35XX_MDIV_SHIFT) |
rate              239 drivers/clk/samsung/clk-pll.c 			(rate->pdiv << PLL35XX_PDIV_SHIFT) |
rate              240 drivers/clk/samsung/clk-pll.c 			(rate->sdiv << PLL35XX_SDIV_SHIFT);
rate              305 drivers/clk/samsung/clk-pll.c 	const struct samsung_pll_rate_table *rate, u32 pll_con0, u32 pll_con1)
rate              313 drivers/clk/samsung/clk-pll.c 	return (rate->mdiv != old_mdiv || rate->pdiv != old_pdiv ||
rate              314 drivers/clk/samsung/clk-pll.c 		rate->kdiv != old_kdiv);
rate              322 drivers/clk/samsung/clk-pll.c 	const struct samsung_pll_rate_table *rate;
rate              324 drivers/clk/samsung/clk-pll.c 	rate = samsung_get_pll_settings(pll, drate);
rate              325 drivers/clk/samsung/clk-pll.c 	if (!rate) {
rate              334 drivers/clk/samsung/clk-pll.c 	if (!(samsung_pll36xx_mpk_change(rate, pll_con0, pll_con1))) {
rate              337 drivers/clk/samsung/clk-pll.c 		pll_con0 |= (rate->sdiv << PLL36XX_SDIV_SHIFT);
rate              344 drivers/clk/samsung/clk-pll.c 	writel_relaxed(rate->pdiv * PLL36XX_LOCK_FACTOR, pll->lock_reg);
rate              350 drivers/clk/samsung/clk-pll.c 	pll_con0 |= (rate->mdiv << PLL36XX_MDIV_SHIFT) |
rate              351 drivers/clk/samsung/clk-pll.c 			(rate->pdiv << PLL36XX_PDIV_SHIFT) |
rate              352 drivers/clk/samsung/clk-pll.c 			(rate->sdiv << PLL36XX_SDIV_SHIFT);
rate              356 drivers/clk/samsung/clk-pll.c 	pll_con1 |= rate->kdiv << PLL36XX_KDIV_SHIFT;
rate              422 drivers/clk/samsung/clk-pll.c 				const struct samsung_pll_rate_table *rate)
rate              430 drivers/clk/samsung/clk-pll.c 	return (old_mdiv != rate->mdiv || old_pdiv != rate->pdiv
rate              431 drivers/clk/samsung/clk-pll.c 		|| old_afc != rate->afc);
rate              438 drivers/clk/samsung/clk-pll.c 	const struct samsung_pll_rate_table *rate;
rate              443 drivers/clk/samsung/clk-pll.c 	rate = samsung_get_pll_settings(pll, drate);
rate              444 drivers/clk/samsung/clk-pll.c 	if (!rate) {
rate              453 drivers/clk/samsung/clk-pll.c 	if (!(samsung_pll45xx_mp_change(con0, con1, rate))) {
rate              456 drivers/clk/samsung/clk-pll.c 		con0 |= rate->sdiv << PLL45XX_SDIV_SHIFT;
rate              466 drivers/clk/samsung/clk-pll.c 	con0 |= (rate->mdiv << PLL45XX_MDIV_SHIFT) |
rate              467 drivers/clk/samsung/clk-pll.c 			(rate->pdiv << PLL45XX_PDIV_SHIFT) |
rate              468 drivers/clk/samsung/clk-pll.c 			(rate->sdiv << PLL45XX_SDIV_SHIFT);
rate              473 drivers/clk/samsung/clk-pll.c 	con1 |= (rate->afc << PLL45XX_AFC_SHIFT);
rate              478 drivers/clk/samsung/clk-pll.c 		writel_relaxed(rate->pdiv * PLL4502_LOCK_FACTOR, pll->lock_reg);
rate              481 drivers/clk/samsung/clk-pll.c 		writel_relaxed(rate->pdiv * PLL4508_LOCK_FACTOR, pll->lock_reg);
rate              573 drivers/clk/samsung/clk-pll.c 				const struct samsung_pll_rate_table *rate)
rate              581 drivers/clk/samsung/clk-pll.c 	return (old_mdiv != rate->mdiv || old_pdiv != rate->pdiv
rate              582 drivers/clk/samsung/clk-pll.c 		|| old_kdiv != rate->kdiv);
rate              589 drivers/clk/samsung/clk-pll.c 	const struct samsung_pll_rate_table *rate;
rate              594 drivers/clk/samsung/clk-pll.c 	rate = samsung_get_pll_settings(pll, drate);
rate              595 drivers/clk/samsung/clk-pll.c 	if (!rate) {
rate              604 drivers/clk/samsung/clk-pll.c 	if (!(samsung_pll46xx_mpk_change(con0, con1, rate))) {
rate              607 drivers/clk/samsung/clk-pll.c 		con0 |= rate->sdiv << PLL46XX_SDIV_SHIFT;
rate              614 drivers/clk/samsung/clk-pll.c 	lock = rate->pdiv * PLL46XX_LOCK_FACTOR;
rate              629 drivers/clk/samsung/clk-pll.c 		con0 |=	rate->vsel << PLL46XX_VSEL_SHIFT;
rate              632 drivers/clk/samsung/clk-pll.c 	con0 |= (rate->mdiv << PLL46XX_MDIV_SHIFT) |
rate              633 drivers/clk/samsung/clk-pll.c 			(rate->pdiv << PLL46XX_PDIV_SHIFT) |
rate              634 drivers/clk/samsung/clk-pll.c 			(rate->sdiv << PLL46XX_SDIV_SHIFT);
rate              641 drivers/clk/samsung/clk-pll.c 	con1 |= (rate->kdiv << PLL46XX_KDIV_SHIFT) |
rate              642 drivers/clk/samsung/clk-pll.c 			(rate->mfr << PLL46XX_MFR_SHIFT) |
rate              643 drivers/clk/samsung/clk-pll.c 			(rate->mrr << PLL46XX_MRR_SHIFT);
rate              808 drivers/clk/samsung/clk-pll.c 	const struct samsung_pll_rate_table *rate;
rate              812 drivers/clk/samsung/clk-pll.c 	rate = samsung_get_pll_settings(pll, drate);
rate              813 drivers/clk/samsung/clk-pll.c 	if (!rate) {
rate              825 drivers/clk/samsung/clk-pll.c 	tmp |= (rate->mdiv << PLLS3C2410_MDIV_SHIFT) |
rate              826 drivers/clk/samsung/clk-pll.c 			(rate->pdiv << PLLS3C2410_PDIV_SHIFT) |
rate              827 drivers/clk/samsung/clk-pll.c 			(rate->sdiv << PLLS3C2410_SDIV_SHIFT);
rate             1004 drivers/clk/samsung/clk-pll.c 	const struct samsung_pll_rate_table *rate;
rate             1008 drivers/clk/samsung/clk-pll.c 	rate = samsung_get_pll_settings(pll, drate);
rate             1009 drivers/clk/samsung/clk-pll.c 	if (!rate) {
rate             1017 drivers/clk/samsung/clk-pll.c 	if (!(samsung_pll2550xx_mp_change(rate->mdiv, rate->pdiv, tmp))) {
rate             1020 drivers/clk/samsung/clk-pll.c 		tmp |= rate->sdiv << PLL2550XX_S_SHIFT;
rate             1027 drivers/clk/samsung/clk-pll.c 	writel_relaxed(rate->pdiv * PLL2550XX_LOCK_FACTOR, pll->lock_reg);
rate             1033 drivers/clk/samsung/clk-pll.c 	tmp |= (rate->mdiv << PLL2550XX_M_SHIFT) |
rate             1034 drivers/clk/samsung/clk-pll.c 			(rate->pdiv << PLL2550XX_P_SHIFT) |
rate             1035 drivers/clk/samsung/clk-pll.c 			(rate->sdiv << PLL2550XX_S_SHIFT);
rate             1104 drivers/clk/samsung/clk-pll.c 	const struct samsung_pll_rate_table *rate;
rate             1108 drivers/clk/samsung/clk-pll.c 	rate = samsung_get_pll_settings(pll, drate);
rate             1109 drivers/clk/samsung/clk-pll.c 	if (!rate) {
rate             1119 drivers/clk/samsung/clk-pll.c 	writel_relaxed(rate->pdiv * PLL2650X_LOCK_FACTOR, pll->lock_reg);
rate             1125 drivers/clk/samsung/clk-pll.c 	con0 |= (rate->mdiv << PLL2650X_M_SHIFT) |
rate             1126 drivers/clk/samsung/clk-pll.c 			(rate->pdiv << PLL2650X_P_SHIFT) |
rate             1127 drivers/clk/samsung/clk-pll.c 			(rate->sdiv << PLL2650X_S_SHIFT);
rate             1132 drivers/clk/samsung/clk-pll.c 	con1 |= ((rate->kdiv & PLL2650X_K_MASK) << PLL2650X_K_SHIFT);
rate             1200 drivers/clk/samsung/clk-pll.c 	const struct samsung_pll_rate_table *rate;
rate             1202 drivers/clk/samsung/clk-pll.c 	rate = samsung_get_pll_settings(pll, drate);
rate             1203 drivers/clk/samsung/clk-pll.c 	if (!rate) {
rate             1216 drivers/clk/samsung/clk-pll.c 	pll_con0 |= rate->mdiv << PLL2650XX_MDIV_SHIFT;
rate             1217 drivers/clk/samsung/clk-pll.c 	pll_con0 |= rate->pdiv << PLL2650XX_PDIV_SHIFT;
rate             1218 drivers/clk/samsung/clk-pll.c 	pll_con0 |= rate->sdiv << PLL2650XX_SDIV_SHIFT;
rate             1223 drivers/clk/samsung/clk-pll.c 	pll_con2 |= ((~(rate->kdiv) + 1) & PLL2650XX_KDIV_MASK)
rate             1227 drivers/clk/samsung/clk-pll.c 	writel_relaxed(PLL2650XX_LOCK_FACTOR * rate->pdiv, pll->lock_reg);
rate             1271 drivers/clk/samsung/clk-pll.c 		for (len = 0; pll_clk->rate_table[len].rate != 0; )
rate               48 drivers/clk/samsung/clk-pll.h 		.rate	=	PLL_VALID_RATE(_fin, _rate,	\
rate               57 drivers/clk/samsung/clk-pll.h 		.rate	=	PLL_VALID_RATE(_fin, _rate,	\
rate               66 drivers/clk/samsung/clk-pll.h 		.rate	=	PLL_VALID_RATE(_fin, _rate,	\
rate               75 drivers/clk/samsung/clk-pll.h 		.rate	=	PLL_VALID_RATE(_fin, _rate,	\
rate               85 drivers/clk/samsung/clk-pll.h 		.rate	=	PLL_VALID_RATE(_fin, _rate,	\
rate               95 drivers/clk/samsung/clk-pll.h 		.rate	=	PLL_VALID_RATE(_fin, _rate,	\
rate              106 drivers/clk/samsung/clk-pll.h 		.rate	=	PLL_VALID_RATE(_fin, _rate,	\
rate              120 drivers/clk/samsung/clk-pll.h 	unsigned int rate;
rate              391 drivers/clk/sifive/fu540-prci.c 					       unsigned long rate,
rate              400 drivers/clk/sifive/fu540-prci.c 	wrpll_configure_for_rate(&c, rate, *parent_rate);
rate              406 drivers/clk/sifive/fu540-prci.c 					    unsigned long rate,
rate              414 drivers/clk/sifive/fu540-prci.c 	r = wrpll_configure_for_rate(&pwd->c, rate, parent_rate);
rate              357 drivers/clk/sirf/clk-atlas7.c 	u64 rate;
rate              373 drivers/clk/sirf/clk-atlas7.c 		rate = fin;
rate              374 drivers/clk/sirf/clk-atlas7.c 		rate *= 1 << 24;
rate              375 drivers/clk/sirf/clk-atlas7.c 		do_div(rate, nr);
rate              376 drivers/clk/sirf/clk-atlas7.c 		do_div(rate, (256 * ((ssdiv >> ssdepth) << ssdepth)
rate              379 drivers/clk/sirf/clk-atlas7.c 		rate = 2 * fin;
rate              380 drivers/clk/sirf/clk-atlas7.c 		rate *= nf;
rate              381 drivers/clk/sirf/clk-atlas7.c 		do_div(rate, nr);
rate              383 drivers/clk/sirf/clk-atlas7.c 	return rate;
rate              522 drivers/clk/sirf/clk-atlas7.c 	u64 rate = parent_rate;
rate              527 drivers/clk/sirf/clk-atlas7.c 	rate *= finc;
rate              530 drivers/clk/sirf/clk-atlas7.c 		do_div(rate, DTO_RESL_NORMAL);
rate              532 drivers/clk/sirf/clk-atlas7.c 		do_div(rate, DTO_RESL_DOUBLE);
rate              534 drivers/clk/sirf/clk-atlas7.c 	return rate;
rate              537 drivers/clk/sirf/clk-atlas7.c static long dto_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              540 drivers/clk/sirf/clk-atlas7.c 	u64 dividend = rate * DTO_RESL_DOUBLE;
rate              549 drivers/clk/sirf/clk-atlas7.c static int dto_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              552 drivers/clk/sirf/clk-atlas7.c 	u64 dividend = rate * DTO_RESL_DOUBLE;
rate               95 drivers/clk/sirf/clk-common.c static long pll_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              105 drivers/clk/sirf/clk-common.c 	rate = rate - rate % MHZ;
rate              107 drivers/clk/sirf/clk-common.c 	nf = rate / MHZ;
rate              126 drivers/clk/sirf/clk-common.c static int pll_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              137 drivers/clk/sirf/clk-common.c 	nf = rate / MHZ;
rate              138 drivers/clk/sirf/clk-common.c 	if (unlikely((rate % MHZ) || nf > BIT(13) || nf < 1))
rate              162 drivers/clk/sirf/clk-common.c static long cpu_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              172 drivers/clk/sirf/clk-common.c 	return pll_clk_round_rate(parent_clk, rate, &pll_parent_rate);
rate              353 drivers/clk/sirf/clk-common.c static long dmn_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              362 drivers/clk/sirf/clk-common.c 	ratio = fin / rate;
rate              375 drivers/clk/sirf/clk-common.c static int dmn_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              385 drivers/clk/sirf/clk-common.c 	ratio = fin / rate;
rate              390 drivers/clk/sirf/clk-common.c 	WARN_ON(fin % rate);
rate              407 drivers/clk/sirf/clk-common.c static int cpu_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              413 drivers/clk/sirf/clk-common.c 	if (rate == clk_get_rate(clk_pll1.hw.clk)) {
rate              418 drivers/clk/sirf/clk-common.c 	if (rate == clk_get_rate(clk_pll2.hw.clk)) {
rate              423 drivers/clk/sirf/clk-common.c 	if (rate == clk_get_rate(clk_pll3.hw.clk)) {
rate              436 drivers/clk/sirf/clk-common.c 	ret2 = clk_set_rate(clk_pll1.hw.clk, rate);
rate               72 drivers/clk/spear/clk-vco-pll.c 	unsigned long rate = prate;
rate               76 drivers/clk/spear/clk-vco-pll.c 	rate = (((2 * rate / 10000) * rtbl[index].m) / (mode * rtbl[index].n));
rate               79 drivers/clk/spear/clk-vco-pll.c 		*pll_rate = (rate / (1 << rtbl[index].p)) * 10000;
rate               81 drivers/clk/spear/clk-vco-pll.c 	return rate * 10000;
rate               88 drivers/clk/spear/clk-vco-pll.c 	unsigned long prev_rate, vco_prev_rate, rate = 0;
rate               98 drivers/clk/spear/clk-vco-pll.c 		prev_rate = rate;
rate              101 drivers/clk/spear/clk-vco-pll.c 				&rate);
rate              102 drivers/clk/spear/clk-vco-pll.c 		if (drate < rate) {
rate              105 drivers/clk/spear/clk-vco-pll.c 				rate = prev_rate;
rate              113 drivers/clk/spear/clk-vco-pll.c 	return rate;
rate               20 drivers/clk/spear/clk.c 	unsigned long prev_rate, rate = 0;
rate               23 drivers/clk/spear/clk.c 		prev_rate = rate;
rate               24 drivers/clk/spear/clk.c 		rate = calc_rate(hw, parent_rate, *index);
rate               25 drivers/clk/spear/clk.c 		if (drate < rate) {
rate               28 drivers/clk/spear/clk.c 				rate = prev_rate;
rate               38 drivers/clk/spear/clk.c 	return rate;
rate               12 drivers/clk/sprd/composite.c static long sprd_comp_round_rate(struct clk_hw *hw, unsigned long rate,
rate               18 drivers/clk/sprd/composite.c 					 rate, parent_rate);
rate               29 drivers/clk/sprd/composite.c static int sprd_comp_set_rate(struct clk_hw *hw, unsigned long rate,
rate               35 drivers/clk/sprd/composite.c 				       rate, parent_rate);
rate               14 drivers/clk/sprd/div.c 				unsigned long rate,
rate               17 drivers/clk/sprd/div.c 	return divider_round_rate(&common->hw, rate, parent_rate,
rate               22 drivers/clk/sprd/div.c static long sprd_div_round_rate(struct clk_hw *hw, unsigned long rate,
rate               28 drivers/clk/sprd/div.c 					  rate, parent_rate);
rate               57 drivers/clk/sprd/div.c 			     unsigned long rate,
rate               63 drivers/clk/sprd/div.c 	val = divider_get_val(rate, parent_rate, NULL,
rate               77 drivers/clk/sprd/div.c static int sprd_div_set_rate(struct clk_hw *hw, unsigned long rate,
rate               83 drivers/clk/sprd/div.c 					rate, parent_rate);
rate               61 drivers/clk/sprd/div.h 				unsigned long rate,
rate               70 drivers/clk/sprd/div.h 			     unsigned long rate,
rate               86 drivers/clk/sprd/pll.c static u32 pll_get_ibias(u64 rate, const u64 *table)
rate               91 drivers/clk/sprd/pll.c 		if (rate <= table[i])
rate              102 drivers/clk/sprd/pll.c 	unsigned long rate, nint, kint = 0;
rate              124 drivers/clk/sprd/pll.c 		rate = refin * pinternal_val(pll, cfg, PLL_N) * CLK_PLL_10M;
rate              134 drivers/clk/sprd/pll.c 		rate = DIV_ROUND_CLOSEST_ULL(refin * kint * k1,
rate              140 drivers/clk/sprd/pll.c 	return rate;
rate              147 drivers/clk/sprd/pll.c 			      unsigned long rate,
rate              155 drivers/clk/sprd/pll.c 	u64 tmp, refin, fvco = rate;
rate              239 drivers/clk/sprd/pll.c 			     unsigned long rate,
rate              244 drivers/clk/sprd/pll.c 	return _sprd_pll_set_rate(pll, rate, parent_rate);
rate              256 drivers/clk/sprd/pll.c static long sprd_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              259 drivers/clk/sprd/pll.c 	return rate;
rate              110 drivers/clk/st/clk-flexgen.c clk_best_div(unsigned long parent_rate, unsigned long rate)
rate              112 drivers/clk/st/clk-flexgen.c 	return parent_rate / rate + ((rate > (2*(parent_rate % rate))) ? 0 : 1);
rate              115 drivers/clk/st/clk-flexgen.c static long flexgen_round_rate(struct clk_hw *hw, unsigned long rate,
rate              121 drivers/clk/st/clk-flexgen.c 	div = clk_best_div(*prate, rate);
rate              124 drivers/clk/st/clk-flexgen.c 		*prate = rate * div;
rate              125 drivers/clk/st/clk-flexgen.c 		return rate;
rate              147 drivers/clk/st/clk-flexgen.c static int flexgen_set_rate(struct clk_hw *hw, unsigned long rate,
rate              168 drivers/clk/st/clk-flexgen.c 	div = clk_best_div(parent_rate, rate);
rate              178 drivers/clk/st/clk-flexgen.c 		ret = clk_divider_ops.set_rate(fdiv_hw, rate, rate * div);
rate              181 drivers/clk/st/clk-flexgen.c 		ret = clk_divider_ops.set_rate(pdiv_hw, rate, rate * div);
rate              261 drivers/clk/st/clkgen-fsyn.c 			   unsigned long *rate)
rate              265 drivers/clk/st/clkgen-fsyn.c 	*rate = input * nd;
rate              274 drivers/clk/st/clkgen-fsyn.c 	unsigned long rate = 0;
rate              278 drivers/clk/st/clkgen-fsyn.c 	if (clk_fs660c32_vco_get_rate(parent_rate, &params, &rate))
rate              284 drivers/clk/st/clkgen-fsyn.c 	return rate;
rate              317 drivers/clk/st/clkgen-fsyn.c 					   unsigned long rate,
rate              322 drivers/clk/st/clkgen-fsyn.c 	if (clk_fs660c32_vco_get_params(*prate, rate, &params))
rate              323 drivers/clk/st/clkgen-fsyn.c 		return rate;
rate              325 drivers/clk/st/clkgen-fsyn.c 	clk_fs660c32_vco_get_rate(*prate, &params, &rate);
rate              329 drivers/clk/st/clkgen-fsyn.c 		 rate, (unsigned int)params.ndiv);
rate              331 drivers/clk/st/clkgen-fsyn.c 	return rate;
rate              334 drivers/clk/st/clkgen-fsyn.c static int quadfs_pll_fs660c32_set_rate(struct clk_hw *hw, unsigned long rate,
rate              343 drivers/clk/st/clkgen-fsyn.c 	if (!rate || !parent_rate)
rate              346 drivers/clk/st/clkgen-fsyn.c 	ret = clk_fs660c32_vco_get_params(parent_rate, rate, &params);
rate              561 drivers/clk/st/clkgen-fsyn.c 				const struct stm_fs *fs, unsigned long *rate)
rate              578 drivers/clk/st/clkgen-fsyn.c 	*rate = (unsigned long)div64_u64(input * P20 * 32, res);
rate              720 drivers/clk/st/clkgen-fsyn.c 	unsigned long rate = 0;
rate              726 drivers/clk/st/clkgen-fsyn.c 		clk_fs_get_rate(prate, params, &rate);
rate              728 drivers/clk/st/clkgen-fsyn.c 	return rate;
rate              735 drivers/clk/st/clkgen-fsyn.c 	unsigned long rate = 0;
rate              745 drivers/clk/st/clkgen-fsyn.c 	if (clk_fs_get_rate(parent_rate, &params, &rate)) {
rate              750 drivers/clk/st/clkgen-fsyn.c 	pr_debug("%s:%s rate %lu\n", clk_hw_get_name(hw), __func__, rate);
rate              752 drivers/clk/st/clkgen-fsyn.c 	return rate;
rate              755 drivers/clk/st/clkgen-fsyn.c static long quadfs_round_rate(struct clk_hw *hw, unsigned long rate,
rate              760 drivers/clk/st/clkgen-fsyn.c 	rate = quadfs_find_best_rate(hw, rate, *prate, &params);
rate              764 drivers/clk/st/clkgen-fsyn.c 		 rate, (unsigned int)params.sdiv, (unsigned int)params.mdiv,
rate              767 drivers/clk/st/clkgen-fsyn.c 	return rate;
rate              787 drivers/clk/st/clkgen-fsyn.c static int quadfs_set_rate(struct clk_hw *hw, unsigned long rate,
rate              795 drivers/clk/st/clkgen-fsyn.c 	if (!rate || !parent_rate)
rate              800 drivers/clk/st/clkgen-fsyn.c 	hwrate = quadfs_find_best_rate(hw, rate, parent_rate, &params);
rate              304 drivers/clk/st/clkgen-pll.c 			unsigned long *rate)
rate              309 drivers/clk/st/clkgen-pll.c 	*rate = ((2 * (input / 1000) * pll->ndiv) / pll->idf) * 1000;
rate              319 drivers/clk/st/clkgen-pll.c 	unsigned long rate = 0;
rate              329 drivers/clk/st/clkgen-pll.c 		rate = ((2 * (parent_rate/1000) * ndiv) / idf) * 1000;
rate              331 drivers/clk/st/clkgen-pll.c 	pr_debug("%s:%s rate %lu\n", clk_hw_get_name(hw), __func__, rate);
rate              333 drivers/clk/st/clkgen-pll.c 	return rate;
rate              336 drivers/clk/st/clkgen-pll.c static long round_rate_stm_pll3200c32(struct clk_hw *hw, unsigned long rate,
rate              341 drivers/clk/st/clkgen-pll.c 	if (!clk_pll3200c32_get_params(*prate, rate, &params))
rate              342 drivers/clk/st/clkgen-pll.c 		clk_pll3200c32_get_rate(*prate, &params, &rate);
rate              345 drivers/clk/st/clkgen-pll.c 			 __clk_get_name(hw->clk), rate);
rate              351 drivers/clk/st/clkgen-pll.c 		 rate, (unsigned int)params.ndiv,
rate              354 drivers/clk/st/clkgen-pll.c 	return rate;
rate              357 drivers/clk/st/clkgen-pll.c static int set_rate_stm_pll3200c32(struct clk_hw *hw, unsigned long rate,
rate              365 drivers/clk/st/clkgen-pll.c 	if (!rate || !parent_rate)
rate              368 drivers/clk/st/clkgen-pll.c 	if (!clk_pll3200c32_get_params(parent_rate, rate, &params))
rate              460 drivers/clk/st/clkgen-pll.c 			unsigned long *rate)
rate              465 drivers/clk/st/clkgen-pll.c 	*rate = (input / pll->idf) * 2 * pll->ndiv;
rate              475 drivers/clk/st/clkgen-pll.c 	unsigned long rate;
rate              483 drivers/clk/st/clkgen-pll.c 	clk_pll4600c28_get_rate(parent_rate, &params, &rate);
rate              485 drivers/clk/st/clkgen-pll.c 	pr_debug("%s:%s rate %lu\n", __clk_get_name(hw->clk), __func__, rate);
rate              487 drivers/clk/st/clkgen-pll.c 	return rate;
rate              490 drivers/clk/st/clkgen-pll.c static long round_rate_stm_pll4600c28(struct clk_hw *hw, unsigned long rate,
rate              495 drivers/clk/st/clkgen-pll.c 	if (!clk_pll4600c28_get_params(*prate, rate, &params)) {
rate              496 drivers/clk/st/clkgen-pll.c 		clk_pll4600c28_get_rate(*prate, &params, &rate);
rate              499 drivers/clk/st/clkgen-pll.c 			 __clk_get_name(hw->clk), rate);
rate              505 drivers/clk/st/clkgen-pll.c 		 rate, (unsigned int)params.ndiv,
rate              508 drivers/clk/st/clkgen-pll.c 	return rate;
rate              511 drivers/clk/st/clkgen-pll.c static int set_rate_stm_pll4600c28(struct clk_hw *hw, unsigned long rate,
rate              519 drivers/clk/st/clkgen-pll.c 	if (!rate || !parent_rate)
rate              522 drivers/clk/st/clkgen-pll.c 	if (!clk_pll4600c28_get_params(parent_rate, rate, &params)) {
rate              526 drivers/clk/st/clkgen-pll.c 			 __clk_get_name(hw->clk), rate);
rate               58 drivers/clk/sunxi-ng/ccu-sun4i-a10.c 	{ .rate = 22579200, .pattern = 0xc0010d84, .m = 8, .n = 7 },
rate               59 drivers/clk/sunxi-ng/ccu-sun4i-a10.c 	{ .rate = 24576000, .pattern = 0xc000ac02, .m = 14, .n = 14 },
rate               57 drivers/clk/sunxi-ng/ccu-sun50i-a64.c 	{ .rate = 22579200, .pattern = 0xc0010d84, .m = 8, .n = 7 },
rate               58 drivers/clk/sunxi-ng/ccu-sun50i-a64.c 	{ .rate = 24576000, .pattern = 0xc000ac02, .m = 14, .n = 14 },
rate               56 drivers/clk/sunxi-ng/ccu-sun5i.c 	{ .rate = 22579200, .pattern = 0xc0010d84, .m = 8, .n = 7 },
rate               57 drivers/clk/sunxi-ng/ccu-sun5i.c 	{ .rate = 24576000, .pattern = 0xc000ac02, .m = 14, .n = 14 },
rate               55 drivers/clk/sunxi-ng/ccu-sun6i-a31.c 	{ .rate = 22579200, .pattern = 0xc0010d84, .m = 8, .n = 7 },
rate               56 drivers/clk/sunxi-ng/ccu-sun6i-a31.c 	{ .rate = 24576000, .pattern = 0xc000ac02, .m = 14, .n = 14 },
rate               59 drivers/clk/sunxi-ng/ccu-sun8i-a23.c 	{ .rate = 22579200, .pattern = 0xc0010d84, .m = 8, .n = 7 },
rate               60 drivers/clk/sunxi-ng/ccu-sun8i-a23.c 	{ .rate = 24576000, .pattern = 0xc000ac02, .m = 14, .n = 14 },
rate               57 drivers/clk/sunxi-ng/ccu-sun8i-a33.c 	{ .rate = 22579200, .pattern = 0xc0010d84, .m = 8, .n = 7 },
rate               58 drivers/clk/sunxi-ng/ccu-sun8i-a33.c 	{ .rate = 24576000, .pattern = 0xc000ac02, .m = 14, .n = 14 },
rate               74 drivers/clk/sunxi-ng/ccu-sun8i-a83t.c 	{ .rate = 45158400, .pattern = 0xc00121ff, .m = 29, .n = 54 },
rate               75 drivers/clk/sunxi-ng/ccu-sun8i-a83t.c 	{ .rate = 49152000, .pattern = 0xc000e147, .m = 30, .n = 61 },
rate               51 drivers/clk/sunxi-ng/ccu-sun8i-h3.c 	{ .rate = 22579200, .pattern = 0xc0010d84, .m = 8, .n = 7 },
rate               52 drivers/clk/sunxi-ng/ccu-sun8i-h3.c 	{ .rate = 24576000, .pattern = 0xc000ac02, .m = 14, .n = 14 },
rate               16 drivers/clk/sunxi-ng/ccu_div.c 					unsigned long rate,
rate               22 drivers/clk/sunxi-ng/ccu_div.c 		rate *= cd->fixed_post_div;
rate               24 drivers/clk/sunxi-ng/ccu_div.c 	rate = divider_round_rate_parent(&cd->common.hw, parent,
rate               25 drivers/clk/sunxi-ng/ccu_div.c 					 rate, parent_rate,
rate               30 drivers/clk/sunxi-ng/ccu_div.c 		rate /= cd->fixed_post_div;
rate               32 drivers/clk/sunxi-ng/ccu_div.c 	return rate;
rate               88 drivers/clk/sunxi-ng/ccu_div.c static int ccu_div_set_rate(struct clk_hw *hw, unsigned long rate,
rate              100 drivers/clk/sunxi-ng/ccu_div.c 		rate *= cd->fixed_post_div;
rate              102 drivers/clk/sunxi-ng/ccu_div.c 	val = divider_get_val(rate, parent_rate, cd->div.table, cd->div.width,
rate               54 drivers/clk/sunxi-ng/ccu_frac.c 			      unsigned long rate)
rate               59 drivers/clk/sunxi-ng/ccu_frac.c 	return (cf->rates[0] == rate) || (cf->rates[1] == rate);
rate               85 drivers/clk/sunxi-ng/ccu_frac.c 			     unsigned long rate, u32 lock)
rate               93 drivers/clk/sunxi-ng/ccu_frac.c 	if (cf->rates[0] == rate)
rate               95 drivers/clk/sunxi-ng/ccu_frac.c 	else if (cf->rates[1] == rate)
rate               36 drivers/clk/sunxi-ng/ccu_frac.h 			      unsigned long rate);
rate               43 drivers/clk/sunxi-ng/ccu_frac.h 			     unsigned long rate, u32 lock);
rate               79 drivers/clk/sunxi-ng/ccu_gate.c 	unsigned long rate = parent_rate;
rate               82 drivers/clk/sunxi-ng/ccu_gate.c 		rate /= cg->common.prediv;
rate               84 drivers/clk/sunxi-ng/ccu_gate.c 	return rate;
rate               87 drivers/clk/sunxi-ng/ccu_gate.c static long ccu_gate_round_rate(struct clk_hw *hw, unsigned long rate,
rate               97 drivers/clk/sunxi-ng/ccu_gate.c 		unsigned long best_parent = rate;
rate              107 drivers/clk/sunxi-ng/ccu_gate.c static int ccu_gate_set_rate(struct clk_hw *hw, unsigned long rate,
rate               13 drivers/clk/sunxi-ng/ccu_mp.c static void ccu_mp_find_best(unsigned long parent, unsigned long rate,
rate               25 drivers/clk/sunxi-ng/ccu_mp.c 			if (tmp_rate > rate)
rate               28 drivers/clk/sunxi-ng/ccu_mp.c 			if ((rate - tmp_rate) < (rate - best_rate)) {
rate               42 drivers/clk/sunxi-ng/ccu_mp.c 						      unsigned long rate,
rate               59 drivers/clk/sunxi-ng/ccu_mp.c 	maxdiv = min(ULONG_MAX / rate, maxdiv);
rate               68 drivers/clk/sunxi-ng/ccu_mp.c 			if (rate * div == parent_rate_saved) {
rate               76 drivers/clk/sunxi-ng/ccu_mp.c 				return rate;
rate               79 drivers/clk/sunxi-ng/ccu_mp.c 			parent_rate = clk_hw_round_rate(hw, rate * div);
rate               82 drivers/clk/sunxi-ng/ccu_mp.c 			if (now <= rate && now > best_rate) {
rate               86 drivers/clk/sunxi-ng/ccu_mp.c 				if (now == rate)
rate               87 drivers/clk/sunxi-ng/ccu_mp.c 					return rate;
rate               98 drivers/clk/sunxi-ng/ccu_mp.c 				       unsigned long rate,
rate              106 drivers/clk/sunxi-ng/ccu_mp.c 		rate *= cmp->fixed_post_div;
rate              112 drivers/clk/sunxi-ng/ccu_mp.c 		ccu_mp_find_best(*parent_rate, rate, max_m, max_p, &m, &p);
rate              113 drivers/clk/sunxi-ng/ccu_mp.c 		rate = *parent_rate / p / m;
rate              115 drivers/clk/sunxi-ng/ccu_mp.c 		rate = ccu_mp_find_best_with_parent_adj(hw, parent_rate, rate,
rate              120 drivers/clk/sunxi-ng/ccu_mp.c 		rate /= cmp->fixed_post_div;
rate              122 drivers/clk/sunxi-ng/ccu_mp.c 	return rate;
rate              150 drivers/clk/sunxi-ng/ccu_mp.c 	unsigned long rate;
rate              169 drivers/clk/sunxi-ng/ccu_mp.c 	rate = (parent_rate >> p) / m;
rate              171 drivers/clk/sunxi-ng/ccu_mp.c 		rate /= cmp->fixed_post_div;
rate              173 drivers/clk/sunxi-ng/ccu_mp.c 	return rate;
rate              185 drivers/clk/sunxi-ng/ccu_mp.c static int ccu_mp_set_rate(struct clk_hw *hw, unsigned long rate,
rate              203 drivers/clk/sunxi-ng/ccu_mp.c 		rate = rate * cmp->fixed_post_div;
rate              205 drivers/clk/sunxi-ng/ccu_mp.c 	ccu_mp_find_best(parent_rate, rate, max_m, max_p, &m, &p);
rate              269 drivers/clk/sunxi-ng/ccu_mp.c 	unsigned long rate = ccu_mp_recalc_rate(hw, parent_rate);
rate              274 drivers/clk/sunxi-ng/ccu_mp.c 		return rate / 2;
rate              275 drivers/clk/sunxi-ng/ccu_mp.c 	return rate;
rate              287 drivers/clk/sunxi-ng/ccu_mp.c 		req->rate *= 2;
rate              296 drivers/clk/sunxi-ng/ccu_mp.c 		req->rate /= 2;
rate              304 drivers/clk/sunxi-ng/ccu_mp.c static int ccu_mp_mmc_set_rate(struct clk_hw *hw, unsigned long rate,
rate              311 drivers/clk/sunxi-ng/ccu_mp.c 		rate *= 2;
rate              313 drivers/clk/sunxi-ng/ccu_mp.c 	return ccu_mp_set_rate(hw, rate, parent_rate);
rate               17 drivers/clk/sunxi-ng/ccu_mult.c static void ccu_mult_find_best(unsigned long parent, unsigned long rate,
rate               22 drivers/clk/sunxi-ng/ccu_mult.c 	_mult = rate / parent;
rate               35 drivers/clk/sunxi-ng/ccu_mult.c 					 unsigned long rate,
rate               48 drivers/clk/sunxi-ng/ccu_mult.c 	ccu_mult_find_best(*parent_rate, rate, &_cm);
rate              103 drivers/clk/sunxi-ng/ccu_mult.c static int ccu_mult_set_rate(struct clk_hw *hw, unsigned long rate,
rate              111 drivers/clk/sunxi-ng/ccu_mult.c 	if (ccu_frac_helper_has_rate(&cm->common, &cm->frac, rate)) {
rate              115 drivers/clk/sunxi-ng/ccu_mult.c 						rate, cm->lock);
rate              130 drivers/clk/sunxi-ng/ccu_mult.c 	ccu_mult_find_best(parent_rate, rate, &_cm);
rate               99 drivers/clk/sunxi-ng/ccu_mux.c 				  req->rate, data);
rate              123 drivers/clk/sunxi-ng/ccu_mux.c 		tmp_rate = round(cm, parent, &parent_rate, req->rate, data);
rate              132 drivers/clk/sunxi-ng/ccu_mux.c 		if (tmp_rate == req->rate) {
rate              139 drivers/clk/sunxi-ng/ccu_mux.c 		if ((req->rate - tmp_rate) < (req->rate - best_rate)) {
rate              152 drivers/clk/sunxi-ng/ccu_mux.c 	req->rate = best_rate;
rate               18 drivers/clk/sunxi-ng/ccu_nk.c static void ccu_nk_find_best(unsigned long parent, unsigned long rate,
rate               29 drivers/clk/sunxi-ng/ccu_nk.c 			if (tmp_rate > rate)
rate               32 drivers/clk/sunxi-ng/ccu_nk.c 			if ((rate - tmp_rate) < (rate - best_rate)) {
rate               69 drivers/clk/sunxi-ng/ccu_nk.c 	unsigned long rate, n, k;
rate               86 drivers/clk/sunxi-ng/ccu_nk.c 	rate = parent_rate * n * k;
rate               88 drivers/clk/sunxi-ng/ccu_nk.c 		rate /= nk->fixed_post_div;
rate               90 drivers/clk/sunxi-ng/ccu_nk.c 	return rate;
rate               93 drivers/clk/sunxi-ng/ccu_nk.c static long ccu_nk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              100 drivers/clk/sunxi-ng/ccu_nk.c 		rate *= nk->fixed_post_div;
rate              107 drivers/clk/sunxi-ng/ccu_nk.c 	ccu_nk_find_best(*parent_rate, rate, &_nk);
rate              108 drivers/clk/sunxi-ng/ccu_nk.c 	rate = *parent_rate * _nk.n * _nk.k;
rate              111 drivers/clk/sunxi-ng/ccu_nk.c 		rate = rate / nk->fixed_post_div;
rate              113 drivers/clk/sunxi-ng/ccu_nk.c 	return rate;
rate              116 drivers/clk/sunxi-ng/ccu_nk.c static int ccu_nk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              125 drivers/clk/sunxi-ng/ccu_nk.c 		rate = rate * nk->fixed_post_div;
rate              132 drivers/clk/sunxi-ng/ccu_nk.c 	ccu_nk_find_best(parent_rate, rate, &_nk);
rate               19 drivers/clk/sunxi-ng/ccu_nkm.c static void ccu_nkm_find_best(unsigned long parent, unsigned long rate,
rate               33 drivers/clk/sunxi-ng/ccu_nkm.c 				if (tmp_rate > rate)
rate               35 drivers/clk/sunxi-ng/ccu_nkm.c 				if ((rate - tmp_rate) < (rate - best_rate)) {
rate               75 drivers/clk/sunxi-ng/ccu_nkm.c 	unsigned long n, m, k, rate;
rate               98 drivers/clk/sunxi-ng/ccu_nkm.c 	rate = parent_rate * n  * k / m;
rate              101 drivers/clk/sunxi-ng/ccu_nkm.c 		rate /= nkm->fixed_post_div;
rate              103 drivers/clk/sunxi-ng/ccu_nkm.c 	return rate;
rate              109 drivers/clk/sunxi-ng/ccu_nkm.c 					unsigned long rate,
rate              123 drivers/clk/sunxi-ng/ccu_nkm.c 		rate *= nkm->fixed_post_div;
rate              125 drivers/clk/sunxi-ng/ccu_nkm.c 	ccu_nkm_find_best(*parent_rate, rate, &_nkm);
rate              127 drivers/clk/sunxi-ng/ccu_nkm.c 	rate = *parent_rate * _nkm.n * _nkm.k / _nkm.m;
rate              130 drivers/clk/sunxi-ng/ccu_nkm.c 		rate /= nkm->fixed_post_div;
rate              132 drivers/clk/sunxi-ng/ccu_nkm.c 	return rate;
rate              144 drivers/clk/sunxi-ng/ccu_nkm.c static int ccu_nkm_set_rate(struct clk_hw *hw, unsigned long rate,
rate              153 drivers/clk/sunxi-ng/ccu_nkm.c 		rate *= nkm->fixed_post_div;
rate              162 drivers/clk/sunxi-ng/ccu_nkm.c 	ccu_nkm_find_best(parent_rate, rate, &_nkm);
rate               24 drivers/clk/sunxi-ng/ccu_nkmp.c 	u64 rate = parent;
rate               26 drivers/clk/sunxi-ng/ccu_nkmp.c 	rate *= n * k;
rate               27 drivers/clk/sunxi-ng/ccu_nkmp.c 	do_div(rate, m * p);
rate               29 drivers/clk/sunxi-ng/ccu_nkmp.c 	return rate;
rate               32 drivers/clk/sunxi-ng/ccu_nkmp.c static void ccu_nkmp_find_best(unsigned long parent, unsigned long rate,
rate               49 drivers/clk/sunxi-ng/ccu_nkmp.c 					if (tmp_rate > rate)
rate               52 drivers/clk/sunxi-ng/ccu_nkmp.c 					if ((rate - tmp_rate) < (rate - best_rate)) {
rate               95 drivers/clk/sunxi-ng/ccu_nkmp.c 	unsigned long n, m, k, p, rate;
rate              121 drivers/clk/sunxi-ng/ccu_nkmp.c 	rate = ccu_nkmp_calc_rate(parent_rate, n, k, m, 1 << p);
rate              123 drivers/clk/sunxi-ng/ccu_nkmp.c 		rate /= nkmp->fixed_post_div;
rate              125 drivers/clk/sunxi-ng/ccu_nkmp.c 	return rate;
rate              128 drivers/clk/sunxi-ng/ccu_nkmp.c static long ccu_nkmp_round_rate(struct clk_hw *hw, unsigned long rate,
rate              135 drivers/clk/sunxi-ng/ccu_nkmp.c 		rate *= nkmp->fixed_post_div;
rate              137 drivers/clk/sunxi-ng/ccu_nkmp.c 	if (nkmp->max_rate && rate > nkmp->max_rate) {
rate              138 drivers/clk/sunxi-ng/ccu_nkmp.c 		rate = nkmp->max_rate;
rate              140 drivers/clk/sunxi-ng/ccu_nkmp.c 			rate /= nkmp->fixed_post_div;
rate              141 drivers/clk/sunxi-ng/ccu_nkmp.c 		return rate;
rate              153 drivers/clk/sunxi-ng/ccu_nkmp.c 	ccu_nkmp_find_best(*parent_rate, rate, &_nkmp);
rate              155 drivers/clk/sunxi-ng/ccu_nkmp.c 	rate = ccu_nkmp_calc_rate(*parent_rate, _nkmp.n, _nkmp.k,
rate              158 drivers/clk/sunxi-ng/ccu_nkmp.c 		rate = rate / nkmp->fixed_post_div;
rate              160 drivers/clk/sunxi-ng/ccu_nkmp.c 	return rate;
rate              163 drivers/clk/sunxi-ng/ccu_nkmp.c static int ccu_nkmp_set_rate(struct clk_hw *hw, unsigned long rate,
rate              173 drivers/clk/sunxi-ng/ccu_nkmp.c 		rate = rate * nkmp->fixed_post_div;
rate              184 drivers/clk/sunxi-ng/ccu_nkmp.c 	ccu_nkmp_find_best(parent_rate, rate, &_nkmp);
rate               22 drivers/clk/sunxi-ng/ccu_nm.c 	u64 rate = parent;
rate               24 drivers/clk/sunxi-ng/ccu_nm.c 	rate *= n;
rate               25 drivers/clk/sunxi-ng/ccu_nm.c 	do_div(rate, m);
rate               27 drivers/clk/sunxi-ng/ccu_nm.c 	return rate;
rate               30 drivers/clk/sunxi-ng/ccu_nm.c static void ccu_nm_find_best(unsigned long parent, unsigned long rate,
rate               42 drivers/clk/sunxi-ng/ccu_nm.c 			if (tmp_rate > rate)
rate               45 drivers/clk/sunxi-ng/ccu_nm.c 			if ((rate - tmp_rate) < (rate - best_rate)) {
rate               82 drivers/clk/sunxi-ng/ccu_nm.c 	unsigned long rate;
rate               87 drivers/clk/sunxi-ng/ccu_nm.c 		rate = ccu_frac_helper_read_rate(&nm->common, &nm->frac);
rate               90 drivers/clk/sunxi-ng/ccu_nm.c 			rate /= nm->fixed_post_div;
rate               92 drivers/clk/sunxi-ng/ccu_nm.c 		return rate;
rate              110 drivers/clk/sunxi-ng/ccu_nm.c 		rate = ccu_sdm_helper_read_rate(&nm->common, &nm->sdm, m, n);
rate              112 drivers/clk/sunxi-ng/ccu_nm.c 		rate = ccu_nm_calc_rate(parent_rate, n, m);
rate              115 drivers/clk/sunxi-ng/ccu_nm.c 		rate /= nm->fixed_post_div;
rate              117 drivers/clk/sunxi-ng/ccu_nm.c 	return rate;
rate              120 drivers/clk/sunxi-ng/ccu_nm.c static long ccu_nm_round_rate(struct clk_hw *hw, unsigned long rate,
rate              127 drivers/clk/sunxi-ng/ccu_nm.c 		rate *= nm->fixed_post_div;
rate              129 drivers/clk/sunxi-ng/ccu_nm.c 	if (rate < nm->min_rate) {
rate              130 drivers/clk/sunxi-ng/ccu_nm.c 		rate = nm->min_rate;
rate              132 drivers/clk/sunxi-ng/ccu_nm.c 			rate /= nm->fixed_post_div;
rate              133 drivers/clk/sunxi-ng/ccu_nm.c 		return rate;
rate              136 drivers/clk/sunxi-ng/ccu_nm.c 	if (nm->max_rate && rate > nm->max_rate) {
rate              137 drivers/clk/sunxi-ng/ccu_nm.c 		rate = nm->max_rate;
rate              139 drivers/clk/sunxi-ng/ccu_nm.c 			rate /= nm->fixed_post_div;
rate              140 drivers/clk/sunxi-ng/ccu_nm.c 		return rate;
rate              143 drivers/clk/sunxi-ng/ccu_nm.c 	if (ccu_frac_helper_has_rate(&nm->common, &nm->frac, rate)) {
rate              145 drivers/clk/sunxi-ng/ccu_nm.c 			rate /= nm->fixed_post_div;
rate              146 drivers/clk/sunxi-ng/ccu_nm.c 		return rate;
rate              149 drivers/clk/sunxi-ng/ccu_nm.c 	if (ccu_sdm_helper_has_rate(&nm->common, &nm->sdm, rate)) {
rate              151 drivers/clk/sunxi-ng/ccu_nm.c 			rate /= nm->fixed_post_div;
rate              152 drivers/clk/sunxi-ng/ccu_nm.c 		return rate;
rate              160 drivers/clk/sunxi-ng/ccu_nm.c 	ccu_nm_find_best(*parent_rate, rate, &_nm);
rate              161 drivers/clk/sunxi-ng/ccu_nm.c 	rate = ccu_nm_calc_rate(*parent_rate, _nm.n, _nm.m);
rate              164 drivers/clk/sunxi-ng/ccu_nm.c 		rate /= nm->fixed_post_div;
rate              166 drivers/clk/sunxi-ng/ccu_nm.c 	return rate;
rate              169 drivers/clk/sunxi-ng/ccu_nm.c static int ccu_nm_set_rate(struct clk_hw *hw, unsigned long rate,
rate              179 drivers/clk/sunxi-ng/ccu_nm.c 		rate = rate * nm->fixed_post_div;
rate              181 drivers/clk/sunxi-ng/ccu_nm.c 	if (ccu_frac_helper_has_rate(&nm->common, &nm->frac, rate)) {
rate              194 drivers/clk/sunxi-ng/ccu_nm.c 						rate, nm->lock);
rate              204 drivers/clk/sunxi-ng/ccu_nm.c 	if (ccu_sdm_helper_has_rate(&nm->common, &nm->sdm, rate)) {
rate              205 drivers/clk/sunxi-ng/ccu_nm.c 		ccu_sdm_helper_enable(&nm->common, &nm->sdm, rate);
rate              208 drivers/clk/sunxi-ng/ccu_nm.c 		ccu_sdm_helper_get_factors(&nm->common, &nm->sdm, rate,
rate              212 drivers/clk/sunxi-ng/ccu_nm.c 		ccu_nm_find_best(parent_rate, rate, &_nm);
rate               26 drivers/clk/sunxi-ng/ccu_sdm.c 			   unsigned long rate)
rate               37 drivers/clk/sunxi-ng/ccu_sdm.c 		if (sdm->table[i].rate == rate)
rate               92 drivers/clk/sunxi-ng/ccu_sdm.c 			     unsigned long rate)
rate              100 drivers/clk/sunxi-ng/ccu_sdm.c 		if (sdm->table[i].rate == rate)
rate              130 drivers/clk/sunxi-ng/ccu_sdm.c 			return sdm->table[i].rate;
rate              138 drivers/clk/sunxi-ng/ccu_sdm.c 			       unsigned long rate,
rate              147 drivers/clk/sunxi-ng/ccu_sdm.c 		if (sdm->table[i].rate == rate) {
rate               14 drivers/clk/sunxi-ng/ccu_sdm.h 	unsigned long	rate;
rate               55 drivers/clk/sunxi-ng/ccu_sdm.h 			   unsigned long rate);
rate               61 drivers/clk/sunxi-ng/ccu_sdm.h 			     unsigned long rate);
rate               69 drivers/clk/sunxi-ng/ccu_sdm.h 			       unsigned long rate,
rate               23 drivers/clk/sunxi/clk-a10-hosc.c 	u32 rate;
rate               25 drivers/clk/sunxi/clk-a10-hosc.c 	if (of_property_read_u32(node, "clock-frequency", &rate))
rate               42 drivers/clk/sunxi/clk-a10-hosc.c 	fixed->fixed_rate = rate;
rate               45 drivers/clk/sunxi/clk-factors.c 	unsigned long rate;
rate               79 drivers/clk/sunxi/clk-factors.c 		return factors_req.rate;
rate               83 drivers/clk/sunxi/clk-factors.c 	rate = (parent_rate * (n + config->n_start) * (k + 1) >> p) / (m + 1);
rate               85 drivers/clk/sunxi/clk-factors.c 	return rate;
rate              100 drivers/clk/sunxi/clk-factors.c 			.rate = req->rate,
rate              107 drivers/clk/sunxi/clk-factors.c 			parent_rate = clk_hw_round_rate(parent, req->rate);
rate              113 drivers/clk/sunxi/clk-factors.c 		child_rate = factors_req.rate;
rate              115 drivers/clk/sunxi/clk-factors.c 		if (child_rate <= req->rate && child_rate > best_child_rate) {
rate              127 drivers/clk/sunxi/clk-factors.c 	req->rate = best_child_rate;
rate              132 drivers/clk/sunxi/clk-factors.c static int clk_factors_set_rate(struct clk_hw *hw, unsigned long rate,
rate              136 drivers/clk/sunxi/clk-factors.c 		.rate = rate,
rate              162 drivers/clk/sunxi/clk-factors.c 	__delay((rate >> 20) * 500 / 2);
rate               23 drivers/clk/sunxi/clk-factors.h 	unsigned long rate;
rate               29 drivers/clk/sunxi/clk-mod0.c 	if (req->rate > req->parent_rate)
rate               30 drivers/clk/sunxi/clk-mod0.c 		req->rate = req->parent_rate;
rate               32 drivers/clk/sunxi/clk-mod0.c 	div = DIV_ROUND_UP(req->parent_rate, req->rate);
rate               45 drivers/clk/sunxi/clk-mod0.c 	req->rate = (req->parent_rate >> calcp) / calcm;
rate               98 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c static unsigned long tcon_ch1_calc_divider(unsigned long rate,
rate              115 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c 			if (tmp_rate > rate)
rate              119 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c 			    (rate - tmp_rate) < (rate - best_rate)) {
rate              152 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c 		tmp_rate = tcon_ch1_calc_divider(req->rate, parent_rate,
rate              156 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c 		    (req->rate - tmp_rate) < (req->rate - best_rate)) {
rate              166 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c 	req->rate = best_rate;
rate              186 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c static int tcon_ch1_set_rate(struct clk_hw *hw, unsigned long rate,
rate              195 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c 	tcon_ch1_calc_divider(rate, parent_rate, &div_m, &half);
rate               31 drivers/clk/sunxi/clk-sun6i-ar100.c 	if (req->rate > req->parent_rate)
rate               32 drivers/clk/sunxi/clk-sun6i-ar100.c 		req->rate = req->parent_rate;
rate               34 drivers/clk/sunxi/clk-sun6i-ar100.c 	div = DIV_ROUND_UP(req->parent_rate, req->rate);
rate               50 drivers/clk/sunxi/clk-sun6i-ar100.c 	req->rate = (req->parent_rate >> shift) / div;
rate               33 drivers/clk/sunxi/clk-sun9i-core.c 	n = DIV_ROUND_UP(req->rate, 6000000);
rate               53 drivers/clk/sunxi/clk-sun9i-core.c 	req->rate = ((24000000 * n) >> p) / (m + 1);
rate              103 drivers/clk/sunxi/clk-sun9i-core.c 	if (req->parent_rate < req->rate)
rate              104 drivers/clk/sunxi/clk-sun9i-core.c 		req->rate = req->parent_rate;
rate              106 drivers/clk/sunxi/clk-sun9i-core.c 	div = DIV_ROUND_UP(req->parent_rate, req->rate);
rate              112 drivers/clk/sunxi/clk-sun9i-core.c 	req->rate = req->parent_rate / div;
rate              158 drivers/clk/sunxi/clk-sun9i-core.c 	if (req->parent_rate < req->rate)
rate              159 drivers/clk/sunxi/clk-sun9i-core.c 		req->rate = req->parent_rate;
rate              161 drivers/clk/sunxi/clk-sun9i-core.c 	_p = order_base_2(DIV_ROUND_UP(req->parent_rate, req->rate));
rate              167 drivers/clk/sunxi/clk-sun9i-core.c 	req->rate = req->parent_rate >> _p;
rate              238 drivers/clk/sunxi/clk-sun9i-core.c 	if (req->parent_rate < req->rate)
rate              239 drivers/clk/sunxi/clk-sun9i-core.c 		req->rate = req->parent_rate;
rate              241 drivers/clk/sunxi/clk-sun9i-core.c 	div = DIV_ROUND_UP(req->parent_rate, req->rate);
rate              249 drivers/clk/sunxi/clk-sun9i-core.c 	req->rate = (req->parent_rate >> req->p) / (req->m + 1);
rate               56 drivers/clk/sunxi/clk-sun9i-cpus.c 	unsigned long rate;
rate               67 drivers/clk/sunxi/clk-sun9i-cpus.c 	rate = parent_rate / (SUN9I_CPUS_DIV_GET(reg) + 1);
rate               69 drivers/clk/sunxi/clk-sun9i-cpus.c 	return rate;
rate               72 drivers/clk/sunxi/clk-sun9i-cpus.c static long sun9i_a80_cpus_clk_round(unsigned long rate, u8 *divp, u8 *pre_divp,
rate               81 drivers/clk/sunxi/clk-sun9i-cpus.c 	if (parent_rate && rate > parent_rate)
rate               82 drivers/clk/sunxi/clk-sun9i-cpus.c 		rate = parent_rate;
rate               84 drivers/clk/sunxi/clk-sun9i-cpus.c 	div = DIV_ROUND_UP(parent_rate, rate);
rate              119 drivers/clk/sunxi/clk-sun9i-cpus.c 	unsigned long rate = req->rate;
rate              128 drivers/clk/sunxi/clk-sun9i-cpus.c 			parent_rate = clk_hw_round_rate(parent, rate);
rate              132 drivers/clk/sunxi/clk-sun9i-cpus.c 		child_rate = sun9i_a80_cpus_clk_round(rate, NULL, NULL, i,
rate              135 drivers/clk/sunxi/clk-sun9i-cpus.c 		if (child_rate <= rate && child_rate > best_child_rate) {
rate              147 drivers/clk/sunxi/clk-sun9i-cpus.c 	req->rate = best_child_rate;
rate              152 drivers/clk/sunxi/clk-sun9i-cpus.c static int sun9i_a80_cpus_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              166 drivers/clk/sunxi/clk-sun9i-cpus.c 	sun9i_a80_cpus_clk_round(rate, &div, &pre_div, parent, parent_rate);
rate               38 drivers/clk/sunxi/clk-sunxi.c 	div = req->rate / 6000000;
rate               39 drivers/clk/sunxi/clk-sunxi.c 	req->rate = 6000000 * div;
rate               45 drivers/clk/sunxi/clk-sunxi.c 	if (req->rate >= 768000000 || req->rate == 42000000 ||
rate               46 drivers/clk/sunxi/clk-sunxi.c 			req->rate == 54000000)
rate               86 drivers/clk/sunxi/clk-sunxi.c 	u32 freq_mhz = req->rate / 1000000;
rate              101 drivers/clk/sunxi/clk-sunxi.c 	req->rate = freq_mhz * 1000000;
rate              162 drivers/clk/sunxi/clk-sunxi.c 	div = req->rate / 6000000;
rate              163 drivers/clk/sunxi/clk-sunxi.c 	req->rate = 6000000 * div;
rate              169 drivers/clk/sunxi/clk-sunxi.c 	if (req->rate >= 768000000 || req->rate == 42000000 ||
rate              170 drivers/clk/sunxi/clk-sunxi.c 			req->rate == 54000000)
rate              206 drivers/clk/sunxi/clk-sunxi.c 	div = req->rate / req->parent_rate;
rate              207 drivers/clk/sunxi/clk-sunxi.c 	req->rate = req->parent_rate * div;
rate              233 drivers/clk/sunxi/clk-sunxi.c 	div = req->rate / req->parent_rate;
rate              234 drivers/clk/sunxi/clk-sunxi.c 	req->rate = req->parent_rate * div;
rate              254 drivers/clk/sunxi/clk-sunxi.c 	if (req->parent_rate < req->rate)
rate              255 drivers/clk/sunxi/clk-sunxi.c 		req->rate = req->parent_rate;
rate              261 drivers/clk/sunxi/clk-sunxi.c 	if (req->rate < 8000)
rate              262 drivers/clk/sunxi/clk-sunxi.c 		req->rate = 8000;
rate              263 drivers/clk/sunxi/clk-sunxi.c 	if (req->rate > 300000000)
rate              264 drivers/clk/sunxi/clk-sunxi.c 		req->rate = 300000000;
rate              266 drivers/clk/sunxi/clk-sunxi.c 	div = order_base_2(DIV_ROUND_UP(req->parent_rate, req->rate));
rate              272 drivers/clk/sunxi/clk-sunxi.c 	req->rate = req->parent_rate >> div;
rate              296 drivers/clk/sunxi/clk-sunxi.c 	if (req->parent_rate && req->rate > req->parent_rate)
rate              297 drivers/clk/sunxi/clk-sunxi.c 		req->rate = req->parent_rate;
rate              299 drivers/clk/sunxi/clk-sunxi.c 	div = DIV_ROUND_UP(req->parent_rate, req->rate);
rate              318 drivers/clk/sunxi/clk-sunxi.c 	req->rate = (req->parent_rate / calcm) >> calcp;
rate              329 drivers/clk/sunxi/clk-sunxi.c 	req->rate = req->parent_rate;
rate              333 drivers/clk/sunxi/clk-sunxi.c 		req->rate /= req->m + 1;
rate              336 drivers/clk/sunxi/clk-sunxi.c 	req->rate >>= req->p;
rate              350 drivers/clk/sunxi/clk-sunxi.c 	if (req->parent_rate < req->rate)
rate              351 drivers/clk/sunxi/clk-sunxi.c 		req->rate = req->parent_rate;
rate              353 drivers/clk/sunxi/clk-sunxi.c 	div = DIV_ROUND_UP(req->parent_rate, req->rate);
rate              370 drivers/clk/sunxi/clk-sunxi.c 	req->rate = (req->parent_rate >> calcp) / (calcm + 1);
rate              390 drivers/clk/sunxi/clk-sunxi.c 	if (req->rate > req->parent_rate)
rate              391 drivers/clk/sunxi/clk-sunxi.c 		req->rate = req->parent_rate;
rate              393 drivers/clk/sunxi/clk-sunxi.c 	div = DIV_ROUND_UP(req->parent_rate, req->rate);
rate              406 drivers/clk/sunxi/clk-sunxi.c 	req->rate = (req->parent_rate >> calcp) / calcm;
rate             1140 drivers/clk/sunxi/clk-sunxi.c 	if (req->rate > req->parent_rate)
rate             1141 drivers/clk/sunxi/clk-sunxi.c 		req->rate = req->parent_rate;
rate             1143 drivers/clk/sunxi/clk-sunxi.c 	m = DIV_ROUND_UP(req->parent_rate, req->rate);
rate             1145 drivers/clk/sunxi/clk-sunxi.c 	req->rate = req->parent_rate / m;
rate               17 drivers/clk/tegra/clk-audio-sync.c 	return sync->rate;
rate               20 drivers/clk/tegra/clk-audio-sync.c static long clk_sync_source_round_rate(struct clk_hw *hw, unsigned long rate,
rate               25 drivers/clk/tegra/clk-audio-sync.c 	if (rate > sync->max_rate)
rate               28 drivers/clk/tegra/clk-audio-sync.c 		return rate;
rate               31 drivers/clk/tegra/clk-audio-sync.c static int clk_sync_source_set_rate(struct clk_hw *hw, unsigned long rate,
rate               36 drivers/clk/tegra/clk-audio-sync.c 	sync->rate = rate;
rate              164 drivers/clk/tegra/clk-bpmp.c 	return response.rate;
rate              167 drivers/clk/tegra/clk-bpmp.c static long tegra_bpmp_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              177 drivers/clk/tegra/clk-bpmp.c 	request.rate = rate;
rate              191 drivers/clk/tegra/clk-bpmp.c 	return response.rate;
rate              250 drivers/clk/tegra/clk-bpmp.c static int tegra_bpmp_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              259 drivers/clk/tegra/clk-bpmp.c 	request.rate = rate;
rate              202 drivers/clk/tegra/clk-dfll.c #define DVCO_RATE_TO_MULT(rate, ref_rate)	((rate) / ((ref_rate) / 2))
rate              253 drivers/clk/tegra/clk-dfll.c 	unsigned long rate;
rate              506 drivers/clk/tegra/clk-dfll.c 	unsigned long rate, prev_rate;
rate              510 drivers/clk/tegra/clk-dfll.c 	for (rate = 0, prev_rate = 0; ; rate++) {
rate              511 drivers/clk/tegra/clk-dfll.c 		opp = dev_pm_opp_find_freq_ceil(td->soc->dev, &rate);
rate              521 drivers/clk/tegra/clk-dfll.c 		prev_rate = rate;
rate              795 drivers/clk/tegra/clk-dfll.c static int find_lut_index_for_rate(struct tegra_dfll *td, unsigned long rate)
rate              800 drivers/clk/tegra/clk-dfll.c 	opp = dev_pm_opp_find_freq_ceil(td->soc->dev, &rate);
rate              828 drivers/clk/tegra/clk-dfll.c 				       unsigned long rate)
rate              839 drivers/clk/tegra/clk-dfll.c 	if (rate < td->dvco_rate_min) {
rate              842 drivers/clk/tegra/clk-dfll.c 		scale = DIV_ROUND_CLOSEST(rate / 1000 * DFLL_FREQ_REQ_SCALE_MAX,
rate              846 drivers/clk/tegra/clk-dfll.c 				__func__, rate);
rate              850 drivers/clk/tegra/clk-dfll.c 		rate = td->dvco_rate_min;
rate              854 drivers/clk/tegra/clk-dfll.c 	val = DVCO_RATE_TO_MULT(rate, td->ref_rate);
rate              857 drivers/clk/tegra/clk-dfll.c 			__func__, rate);
rate              862 drivers/clk/tegra/clk-dfll.c 	req->rate = dfll_scale_dvco_rate(req->scale_bits,
rate              911 drivers/clk/tegra/clk-dfll.c static int dfll_request_rate(struct tegra_dfll *td, unsigned long rate)
rate              922 drivers/clk/tegra/clk-dfll.c 	ret = dfll_calculate_rate_request(td, &req, rate);
rate              926 drivers/clk/tegra/clk-dfll.c 	td->last_unrounded_rate = rate;
rate             1024 drivers/clk/tegra/clk-dfll.c 		if (req->rate == 0) {
rate             1136 drivers/clk/tegra/clk-dfll.c 	ret = dfll_calculate_rate_request(td, &req, clk_req->rate);
rate             1149 drivers/clk/tegra/clk-dfll.c static int dfll_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate             1154 drivers/clk/tegra/clk-dfll.c 	return dfll_request_rate(td, rate);
rate             1588 drivers/clk/tegra/clk-dfll.c 	unsigned long rate, reg_volt;
rate             1616 drivers/clk/tegra/clk-dfll.c 	rate = get_dvco_rate_below(td, td->lut_bottom);
rate             1617 drivers/clk/tegra/clk-dfll.c 	if (!rate) {
rate             1622 drivers/clk/tegra/clk-dfll.c 	td->dvco_rate_min = rate;
rate             1642 drivers/clk/tegra/clk-dfll.c 	unsigned long rate, v, v_opp;
rate             1653 drivers/clk/tegra/clk-dfll.c 	for (j = 1, rate = 0; ; rate++) {
rate             1656 drivers/clk/tegra/clk-dfll.c 		opp = dev_pm_opp_find_freq_ceil(td->soc->dev, &rate);
rate             1707 drivers/clk/tegra/clk-dfll.c 	unsigned long rate, v_max;
rate             1710 drivers/clk/tegra/clk-dfll.c 	rate = ULONG_MAX;
rate             1711 drivers/clk/tegra/clk-dfll.c 	opp = dev_pm_opp_find_freq_floor(td->soc->dev, &rate);
rate               21 drivers/clk/tegra/clk-divider.c static int get_div(struct tegra_clk_frac_div *divider, unsigned long rate,
rate               26 drivers/clk/tegra/clk-divider.c 	div = div_frac_get(rate, parent_rate, divider->width,
rate               41 drivers/clk/tegra/clk-divider.c 	u64 rate = parent_rate;
rate               49 drivers/clk/tegra/clk-divider.c 	rate *= mul;
rate               50 drivers/clk/tegra/clk-divider.c 	rate += div - 1;
rate               51 drivers/clk/tegra/clk-divider.c 	do_div(rate, div);
rate               53 drivers/clk/tegra/clk-divider.c 	return rate;
rate               56 drivers/clk/tegra/clk-divider.c static long clk_frac_div_round_rate(struct clk_hw *hw, unsigned long rate,
rate               63 drivers/clk/tegra/clk-divider.c 	if (!rate)
rate               66 drivers/clk/tegra/clk-divider.c 	div = get_div(divider, rate, output_rate);
rate               75 drivers/clk/tegra/clk-divider.c static int clk_frac_div_set_rate(struct clk_hw *hw, unsigned long rate,
rate               83 drivers/clk/tegra/clk-divider.c 	div = get_div(divider, rate, parent_rate);
rate               65 drivers/clk/tegra/clk-emc.c 	unsigned long rate, parent_rate;
rate              134 drivers/clk/tegra/clk-emc.c 		if (timing->rate < req->rate && i != t - 1)
rate              137 drivers/clk/tegra/clk-emc.c 		if (timing->rate > req->max_rate) {
rate              139 drivers/clk/tegra/clk-emc.c 			req->rate = tegra->timings[i - 1].rate;
rate              143 drivers/clk/tegra/clk-emc.c 		if (timing->rate < req->min_rate)
rate              146 drivers/clk/tegra/clk-emc.c 		req->rate = timing->rate;
rate              151 drivers/clk/tegra/clk-emc.c 		req->rate = timing->rate;
rate              155 drivers/clk/tegra/clk-emc.c 	req->rate = clk_hw_get_rate(hw);
rate              213 drivers/clk/tegra/clk-emc.c 	pr_debug("going to rate %ld prate %ld p %s\n", timing->rate,
rate              242 drivers/clk/tegra/clk-emc.c 	div = timing->parent_rate / (timing->rate / 2) - 2;
rate              244 drivers/clk/tegra/clk-emc.c 	err = tegra_emc_prepare_timing_change(emc, timing->rate);
rate              262 drivers/clk/tegra/clk-emc.c 	tegra_emc_complete_timing_change(emc, timing->rate);
rate              311 drivers/clk/tegra/clk-emc.c static int emc_set_rate(struct clk_hw *hw, unsigned long rate,
rate              321 drivers/clk/tegra/clk-emc.c 	if (clk_hw_get_rate(hw) == rate)
rate              333 drivers/clk/tegra/clk-emc.c 		if (tegra->timings[i].rate == rate &&
rate              341 drivers/clk/tegra/clk-emc.c 		pr_err("cannot switch to rate %ld without emc table\n", rate);
rate              362 drivers/clk/tegra/clk-emc.c 			 backup_timing->rate, rate);
rate              389 drivers/clk/tegra/clk-emc.c 	timing->rate = tmp;
rate              428 drivers/clk/tegra/clk-emc.c 	if (a->rate < b->rate)
rate              430 drivers/clk/tegra/clk-emc.c 	else if (a->rate == b->rate)
rate               55 drivers/clk/tegra/clk-periph-fixed.c 	unsigned long long rate;
rate               57 drivers/clk/tegra/clk-periph-fixed.c 	rate = (unsigned long long)parent_rate * fixed->mul;
rate               58 drivers/clk/tegra/clk-periph-fixed.c 	do_div(rate, fixed->div);
rate               60 drivers/clk/tegra/clk-periph-fixed.c 	return (unsigned long)rate;
rate               47 drivers/clk/tegra/clk-periph.c static long clk_periph_round_rate(struct clk_hw *hw, unsigned long rate,
rate               56 drivers/clk/tegra/clk-periph.c 	return div_ops->round_rate(div_hw, rate, prate);
rate               59 drivers/clk/tegra/clk-periph.c static int clk_periph_set_rate(struct clk_hw *hw, unsigned long rate,
rate               68 drivers/clk/tegra/clk-periph.c 	return div_ops->set_rate(div_hw, rate, parent_rate);
rate              510 drivers/clk/tegra/clk-pll.c 			   unsigned long rate, unsigned long parent_rate)
rate              518 drivers/clk/tegra/clk-pll.c 		    sel->output_rate == rate)
rate              544 drivers/clk/tegra/clk-pll.c 		      unsigned long rate, unsigned long parent_rate)
rate              554 drivers/clk/tegra/clk-pll.c 		cfreq = (rate <= 1000000 * 1000) ? 1000000 : 2000000;
rate              557 drivers/clk/tegra/clk-pll.c 		cfreq = (rate <= 1000000 * 1000) ? 1000000 : 2600000;
rate              561 drivers/clk/tegra/clk-pll.c 		cfreq = (rate <= 1200000 * 1000) ? 1200000 : 2400000;
rate              577 drivers/clk/tegra/clk-pll.c 	for (cfg->output_rate = rate; cfg->output_rate < 200 * cfreq;
rate              716 drivers/clk/tegra/clk-pll.c 			      unsigned long rate)
rate              731 drivers/clk/tegra/clk-pll.c 		if (rate >= (pll->params->vco_max >> 1))
rate              739 drivers/clk/tegra/clk-pll.c 			unsigned long rate)
rate              767 drivers/clk/tegra/clk-pll.c 		_update_pll_cpcon(pll, cfg, rate);
rate              778 drivers/clk/tegra/clk-pll.c static int clk_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              787 drivers/clk/tegra/clk-pll.c 		if (rate != pll->params->fixed_rate) {
rate              790 drivers/clk/tegra/clk-pll.c 				pll->params->fixed_rate, rate);
rate              796 drivers/clk/tegra/clk-pll.c 	if (_get_table_rate(hw, &cfg, rate, parent_rate) &&
rate              797 drivers/clk/tegra/clk-pll.c 	    pll->params->calc_rate(hw, &cfg, rate, parent_rate)) {
rate              799 drivers/clk/tegra/clk-pll.c 		       clk_hw_get_name(hw), rate);
rate              812 drivers/clk/tegra/clk-pll.c 		ret = _program_pll(hw, &cfg, rate);
rate              820 drivers/clk/tegra/clk-pll.c static long clk_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              833 drivers/clk/tegra/clk-pll.c 	if (_get_table_rate(hw, &cfg, rate, *prate) &&
rate              834 drivers/clk/tegra/clk-pll.c 	    pll->params->calc_rate(hw, &cfg, rate, *prate))
rate              846 drivers/clk/tegra/clk-pll.c 	u64 rate = parent_rate;
rate              885 drivers/clk/tegra/clk-pll.c 	rate *= cfg.n;
rate              886 drivers/clk/tegra/clk-pll.c 	do_div(rate, cfg.m);
rate              888 drivers/clk/tegra/clk-pll.c 	return rate;
rate              999 drivers/clk/tegra/clk-pll.c 	u64 rate = parent_rate;
rate             1006 drivers/clk/tegra/clk-pll.c 	rate *= divn;
rate             1007 drivers/clk/tegra/clk-pll.c 	do_div(rate, divm);
rate             1008 drivers/clk/tegra/clk-pll.c 	return rate;
rate             1176 drivers/clk/tegra/clk-pll.c 				unsigned long rate, unsigned long parent_rate)
rate             1182 drivers/clk/tegra/clk-pll.c 	if (!rate)
rate             1185 drivers/clk/tegra/clk-pll.c 	p = DIV_ROUND_UP(pll->params->vco_min, rate);
rate             1187 drivers/clk/tegra/clk-pll.c 	cfg->output_rate = rate * p;
rate             1259 drivers/clk/tegra/clk-pll.c 			      unsigned long rate, unsigned long parent_rate)
rate             1264 drivers/clk/tegra/clk-pll.c 	err = _get_table_rate(hw, cfg, rate, parent_rate);
rate             1266 drivers/clk/tegra/clk-pll.c 		err = _calc_dynamic_ramp_rate(hw, cfg, rate, parent_rate);
rate             1282 drivers/clk/tegra/clk-pll.c static int clk_pllxc_set_rate(struct clk_hw *hw, unsigned long rate,
rate             1290 drivers/clk/tegra/clk-pll.c 	ret = _pll_ramp_calc_pll(hw, &cfg, rate, parent_rate);
rate             1302 drivers/clk/tegra/clk-pll.c 		ret = _program_pll(hw, &cfg, rate);
rate             1310 drivers/clk/tegra/clk-pll.c static long clk_pll_ramp_round_rate(struct clk_hw *hw, unsigned long rate,
rate             1318 drivers/clk/tegra/clk-pll.c 	ret = _pll_ramp_calc_pll(hw, &cfg, rate, *prate);
rate             1440 drivers/clk/tegra/clk-pll.c static int clk_pllc_set_rate(struct clk_hw *hw, unsigned long rate,
rate             1451 drivers/clk/tegra/clk-pll.c 	ret = _pll_ramp_calc_pll(hw, &cfg, rate, parent_rate);
rate             1487 drivers/clk/tegra/clk-pll.c 			     unsigned long rate, unsigned long parent_rate)
rate             1493 drivers/clk/tegra/clk-pll.c 	n = rate * m / parent_rate;
rate             1506 drivers/clk/tegra/clk-pll.c static int clk_pllre_set_rate(struct clk_hw *hw, unsigned long rate,
rate             1517 drivers/clk/tegra/clk-pll.c 	_pllre_calc_rate(pll, &cfg, rate, parent_rate);
rate             1545 drivers/clk/tegra/clk-pll.c 	u64 rate = parent_rate;
rate             1549 drivers/clk/tegra/clk-pll.c 	rate *= cfg.n;
rate             1550 drivers/clk/tegra/clk-pll.c 	do_div(rate, cfg.m);
rate             1552 drivers/clk/tegra/clk-pll.c 	return rate;
rate             1555 drivers/clk/tegra/clk-pll.c static long clk_pllre_round_rate(struct clk_hw *hw, unsigned long rate,
rate             1560 drivers/clk/tegra/clk-pll.c 	return _pllre_calc_rate(pll, NULL, rate, *prate);
rate               93 drivers/clk/tegra/clk-sdmmc-mux.c 	u64 rate = parent_rate;
rate              100 drivers/clk/tegra/clk-sdmmc-mux.c 	rate *= SDMMC_MUL;
rate              101 drivers/clk/tegra/clk-sdmmc-mux.c 	rate += div - 1;
rate              102 drivers/clk/tegra/clk-sdmmc-mux.c 	do_div(rate, div);
rate              104 drivers/clk/tegra/clk-sdmmc-mux.c 	return rate;
rate              114 drivers/clk/tegra/clk-sdmmc-mux.c 	req->rate = max(req->rate, req->min_rate);
rate              115 drivers/clk/tegra/clk-sdmmc-mux.c 	req->rate = min(req->rate, req->max_rate);
rate              117 drivers/clk/tegra/clk-sdmmc-mux.c 	if (!req->rate)
rate              120 drivers/clk/tegra/clk-sdmmc-mux.c 	div = div_frac_get(req->rate, output_rate, 8, 1, sdmmc_mux->div_flags);
rate              125 drivers/clk/tegra/clk-sdmmc-mux.c 		req->rate =  DIV_ROUND_UP(output_rate * SDMMC_MUL,
rate              128 drivers/clk/tegra/clk-sdmmc-mux.c 		req->rate =  output_rate * SDMMC_MUL / (div + SDMMC_MUL);
rate              133 drivers/clk/tegra/clk-sdmmc-mux.c static int clk_sdmmc_mux_set_rate(struct clk_hw *hw, unsigned long rate,
rate              142 drivers/clk/tegra/clk-sdmmc-mux.c 	div = div_frac_get(rate, parent_rate, 8, 1, sdmmc_mux->div_flags);
rate              118 drivers/clk/tegra/clk-super.c static long clk_super_round_rate(struct clk_hw *hw, unsigned long rate,
rate              126 drivers/clk/tegra/clk-super.c 	return super->div_ops->round_rate(div_hw, rate, parent_rate);
rate              140 drivers/clk/tegra/clk-super.c static int clk_super_set_rate(struct clk_hw *hw, unsigned long rate,
rate              148 drivers/clk/tegra/clk-super.c 	return super->div_ops->set_rate(div_hw, rate, parent_rate);
rate               33 drivers/clk/tegra/clk-tegra-audio.c 	unsigned long	rate;
rate             1403 drivers/clk/tegra/clk-tegra210.c 			       unsigned long rate, unsigned long input_rate)
rate             1411 drivers/clk/tegra/clk-tegra210.c 	if (!rate)
rate             1415 drivers/clk/tegra/clk-tegra210.c 		p = DIV_ROUND_UP(params->vco_min, rate);
rate             1418 drivers/clk/tegra/clk-tegra210.c 		p = rate >= params->vco_min ? 1 : -EINVAL;
rate             1430 drivers/clk/tegra/clk-tegra210.c 	p_rate = rate * p;
rate               12 drivers/clk/tegra/clk-utils.c int div_frac_get(unsigned long rate, unsigned parent_rate, u8 width,
rate               18 drivers/clk/tegra/clk-utils.c 	if (!rate)
rate               27 drivers/clk/tegra/clk-utils.c 		divider_ux1 += rate - 1;
rate               29 drivers/clk/tegra/clk-utils.c 	do_div(divider_ux1, rate);
rate              263 drivers/clk/tegra/clk.c 		if (tbl->rate)
rate              264 drivers/clk/tegra/clk.c 			if (clk_set_rate(clk, tbl->rate)) {
rate              266 drivers/clk/tegra/clk.c 				       __func__, tbl->rate,
rate               22 drivers/clk/tegra/clk.h 	unsigned long	rate;
rate              280 drivers/clk/tegra/clk.h 			unsigned long rate, unsigned long parent_rate);
rate              734 drivers/clk/tegra/clk.h 	unsigned long	rate;
rate              830 drivers/clk/tegra/clk.h int div_frac_get(unsigned long rate, unsigned parent_rate, u8 width,
rate              457 drivers/clk/ti/adpll.c 	u64 rate;
rate              466 drivers/clk/ti/adpll.c 	rate = (u64)readw_relaxed(d->regs + ADPLL_MN2DIV_OFFSET) << 18;
rate              467 drivers/clk/ti/adpll.c 	rate += frac_m;
rate              468 drivers/clk/ti/adpll.c 	rate *= parent_rate;
rate              472 drivers/clk/ti/adpll.c 	do_div(rate, divider);
rate              477 drivers/clk/ti/adpll.c 			rate *= 4;
rate              478 drivers/clk/ti/adpll.c 		rate *= 2;
rate              481 drivers/clk/ti/adpll.c 	return rate;
rate              131 drivers/clk/ti/clk-dra7-atl.c static long atl_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              136 drivers/clk/ti/clk-dra7-atl.c 	divider = (*parent_rate + rate / 2) / rate;
rate              143 drivers/clk/ti/clk-dra7-atl.c static int atl_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              149 drivers/clk/ti/clk-dra7-atl.c 	if (!hw || !rate)
rate              153 drivers/clk/ti/clk-dra7-atl.c 	divider = ((parent_rate + rate / 2) / rate) - 1;
rate              276 drivers/clk/ti/clock.h int omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              279 drivers/clk/ti/clock.h 					   unsigned long rate,
rate              297 drivers/clk/ti/clock.h int omap3_dpll4_set_rate(struct clk_hw *clk, unsigned long rate,
rate              299 drivers/clk/ti/clock.h int omap3_dpll4_set_rate_and_parent(struct clk_hw *hw, unsigned long rate,
rate              301 drivers/clk/ti/clock.h int omap3_dpll5_set_rate(struct clk_hw *hw, unsigned long rate,
rate               37 drivers/clk/ti/composite.c static long ti_composite_round_rate(struct clk_hw *hw, unsigned long rate,
rate               43 drivers/clk/ti/composite.c static int ti_composite_set_rate(struct clk_hw *hw, unsigned long rate,
rate              144 drivers/clk/ti/divider.c 			 unsigned long parent_rate, unsigned long rate)
rate              148 drivers/clk/ti/divider.c 	int div = DIV_ROUND_UP_ULL((u64)parent_rate, rate);
rate              164 drivers/clk/ti/divider.c 		      unsigned long parent_rate, unsigned long rate)
rate              167 drivers/clk/ti/divider.c 		return DIV_ROUND_UP(parent_rate, rate);
rate              169 drivers/clk/ti/divider.c 	return _div_round_up(table, parent_rate, rate);
rate              172 drivers/clk/ti/divider.c static int ti_clk_divider_bestdiv(struct clk_hw *hw, unsigned long rate,
rate              180 drivers/clk/ti/divider.c 	if (!rate)
rate              181 drivers/clk/ti/divider.c 		rate = 1;
rate              187 drivers/clk/ti/divider.c 		bestdiv = _div_round(divider->table, parent_rate, rate);
rate              197 drivers/clk/ti/divider.c 	maxdiv = min(ULONG_MAX / rate, maxdiv);
rate              202 drivers/clk/ti/divider.c 		if (rate * i == parent_rate_saved) {
rate              212 drivers/clk/ti/divider.c 				MULT_ROUND_UP(rate, i));
rate              214 drivers/clk/ti/divider.c 		if (now <= rate && now > best) {
rate              230 drivers/clk/ti/divider.c static long ti_clk_divider_round_rate(struct clk_hw *hw, unsigned long rate,
rate              234 drivers/clk/ti/divider.c 	div = ti_clk_divider_bestdiv(hw, rate, prate);
rate              239 drivers/clk/ti/divider.c static int ti_clk_divider_set_rate(struct clk_hw *hw, unsigned long rate,
rate              246 drivers/clk/ti/divider.c 	if (!hw || !rate)
rate              251 drivers/clk/ti/divider.c 	div = DIV_ROUND_UP(parent_rate, rate);
rate              505 drivers/clk/ti/dpll3xxx.c 	if (!req->rate)
rate              512 drivers/clk/ti/dpll3xxx.c 	if (clk_hw_get_rate(dd->clk_bypass) == req->rate &&
rate              516 drivers/clk/ti/dpll3xxx.c 		req->rate = omap2_dpll_round_rate(hw, req->rate,
rate              521 drivers/clk/ti/dpll3xxx.c 	req->best_parent_rate = req->rate;
rate              561 drivers/clk/ti/dpll3xxx.c int omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              569 drivers/clk/ti/dpll3xxx.c 	if (!hw || !rate)
rate              589 drivers/clk/ti/dpll3xxx.c 		 clk_hw_get_name(hw), rate);
rate              610 drivers/clk/ti/dpll3xxx.c 					   unsigned long rate,
rate              616 drivers/clk/ti/dpll3xxx.c 	if (!hw || !rate)
rate              627 drivers/clk/ti/dpll3xxx.c 		ret = omap3_noncore_dpll_set_rate(hw, rate, parent_rate);
rate              757 drivers/clk/ti/dpll3xxx.c 	unsigned long rate;
rate              776 drivers/clk/ti/dpll3xxx.c 		rate = parent_rate;
rate              778 drivers/clk/ti/dpll3xxx.c 		rate = parent_rate * 2;
rate              779 drivers/clk/ti/dpll3xxx.c 	return rate;
rate              923 drivers/clk/ti/dpll3xxx.c int omap3_dpll4_set_rate(struct clk_hw *hw, unsigned long rate,
rate              936 drivers/clk/ti/dpll3xxx.c 	return omap3_noncore_dpll_set_rate(hw, rate, parent_rate);
rate              951 drivers/clk/ti/dpll3xxx.c int omap3_dpll4_set_rate_and_parent(struct clk_hw *hw, unsigned long rate,
rate              959 drivers/clk/ti/dpll3xxx.c 	return omap3_noncore_dpll_set_rate_and_parent(hw, rate, parent_rate,
rate              968 drivers/clk/ti/dpll3xxx.c 		unsigned int rate, m, n;
rate              991 drivers/clk/ti/dpll3xxx.c 		if (parent_rate == precomputed[i].rate)
rate             1019 drivers/clk/ti/dpll3xxx.c int omap3_dpll5_set_rate(struct clk_hw *hw, unsigned long rate,
rate             1022 drivers/clk/ti/dpll3xxx.c 	if (rate == OMAP3_DPLL5_FREQ_FOR_USBHOST * 8) {
rate             1027 drivers/clk/ti/dpll3xxx.c 	return omap3_noncore_dpll_set_rate(hw, rate, parent_rate);
rate              117 drivers/clk/ti/dpll44xx.c 	unsigned long rate;
rate              125 drivers/clk/ti/dpll44xx.c 	rate = omap2_get_dpll_rate(clk);
rate              130 drivers/clk/ti/dpll44xx.c 		rate *= OMAP4430_REGM4XEN_MULT;
rate              132 drivers/clk/ti/dpll44xx.c 	return rate;
rate              205 drivers/clk/ti/dpll44xx.c 	if (!req->rate)
rate              212 drivers/clk/ti/dpll44xx.c 	if (clk_hw_get_rate(dd->clk_bypass) == req->rate &&
rate              216 drivers/clk/ti/dpll44xx.c 		req->rate = omap4_dpll_regm4xen_round_rate(hw, req->rate,
rate              221 drivers/clk/ti/dpll44xx.c 	req->best_parent_rate = req->rate;
rate              172 drivers/clk/ti/fapll.c 	u64 rate;
rate              177 drivers/clk/ti/fapll.c 	rate = parent_rate;
rate              183 drivers/clk/ti/fapll.c 		do_div(rate, fapll_p);
rate              186 drivers/clk/ti/fapll.c 		rate *= fapll_n;
rate              188 drivers/clk/ti/fapll.c 	return rate;
rate              201 drivers/clk/ti/fapll.c static int ti_fapll_set_div_mult(unsigned long rate,
rate              211 drivers/clk/ti/fapll.c 	if (rate < parent_rate) {
rate              216 drivers/clk/ti/fapll.c 	*mult_n = rate / parent_rate;
rate              224 drivers/clk/ti/fapll.c static long ti_fapll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              230 drivers/clk/ti/fapll.c 	if (!rate)
rate              233 drivers/clk/ti/fapll.c 	error = ti_fapll_set_div_mult(rate, *parent_rate,
rate              238 drivers/clk/ti/fapll.c 	rate = *parent_rate / pre_div_p;
rate              239 drivers/clk/ti/fapll.c 	rate *= mult_n;
rate              241 drivers/clk/ti/fapll.c 	return rate;
rate              244 drivers/clk/ti/fapll.c static int ti_fapll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              251 drivers/clk/ti/fapll.c 	if (!rate)
rate              254 drivers/clk/ti/fapll.c 	error = ti_fapll_set_div_mult(rate, parent_rate,
rate              318 drivers/clk/ti/fapll.c 	u64 rate;
rate              332 drivers/clk/ti/fapll.c 	rate = parent_rate;
rate              346 drivers/clk/ti/fapll.c 		rate *= 10000000;
rate              347 drivers/clk/ti/fapll.c 		do_div(rate, synth_div_freq);
rate              348 drivers/clk/ti/fapll.c 		rate *= SYNTH_PHASE_K;
rate              354 drivers/clk/ti/fapll.c 	return DIV_ROUND_UP_ULL(rate, synth_div_m);
rate              372 drivers/clk/ti/fapll.c 					unsigned long rate,
rate              377 drivers/clk/ti/fapll.c 	post_div_m = DIV_ROUND_UP_ULL((u64)parent_rate * SYNTH_PHASE_K, rate);
rate              388 drivers/clk/ti/fapll.c 						 rate * post_div_m);
rate              409 drivers/clk/ti/fapll.c static long ti_fapll_synth_round_rate(struct clk_hw *hw, unsigned long rate,
rate              416 drivers/clk/ti/fapll.c 	if (ti_fapll_clock_is_bypass(fd) || !synth->div || !rate)
rate              425 drivers/clk/ti/fapll.c 		synth_post_div_m = DIV_ROUND_UP(frac_rate, rate);
rate              431 drivers/clk/ti/fapll.c 	if (rate > r)
rate              435 drivers/clk/ti/fapll.c 	if (rate < r)
rate              438 drivers/clk/ti/fapll.c 	r = rate;
rate              443 drivers/clk/ti/fapll.c static int ti_fapll_synth_set_rate(struct clk_hw *hw, unsigned long rate,
rate              451 drivers/clk/ti/fapll.c 	if (ti_fapll_clock_is_bypass(fd) || !synth->div || !rate)
rate              456 drivers/clk/ti/fapll.c 	if (frac_rate < rate) {
rate              460 drivers/clk/ti/fapll.c 		post_div_m = DIV_ROUND_UP(frac_rate, rate);
rate              468 drivers/clk/ti/fapll.c 	if ((post_rate != rate) && synth->freq)
rate              470 drivers/clk/ti/fapll.c 							  rate,
rate               29 drivers/clk/uniphier/clk-uniphier-core.c 							&data->data.rate);
rate               63 drivers/clk/uniphier/clk-uniphier.h 		struct uniphier_clk_fixed_rate_data rate;
rate               82 drivers/clk/ux500/clk-prcmu.c static long clk_prcmu_round_rate(struct clk_hw *hw, unsigned long rate,
rate               86 drivers/clk/ux500/clk-prcmu.c 	return prcmu_round_clock_rate(clk->cg_sel, rate);
rate               89 drivers/clk/ux500/clk-prcmu.c static int clk_prcmu_set_rate(struct clk_hw *hw, unsigned long rate,
rate               93 drivers/clk/ux500/clk-prcmu.c 	return prcmu_set_clock_rate(clk->cg_sel, rate);
rate              247 drivers/clk/ux500/clk-prcmu.c 				 unsigned long rate,
rate              269 drivers/clk/ux500/clk-prcmu.c 	if (rate)
rate              270 drivers/clk/ux500/clk-prcmu.c 		prcmu_set_clock_rate(cg_sel, rate);
rate              294 drivers/clk/ux500/clk-prcmu.c 				   unsigned long rate,
rate              297 drivers/clk/ux500/clk-prcmu.c 	return clk_reg_prcmu(name, parent_name, cg_sel, rate, flags,
rate              313 drivers/clk/ux500/clk-prcmu.c 					unsigned long rate,
rate              316 drivers/clk/ux500/clk-prcmu.c 	return clk_reg_prcmu(name, parent_name, cg_sel, rate, flags,
rate              341 drivers/clk/ux500/clk-prcmu.c 					    unsigned long rate,
rate              344 drivers/clk/ux500/clk-prcmu.c 	return clk_reg_prcmu(name, parent_name, cg_sel, rate, flags,
rate               29 drivers/clk/ux500/clk-sysctrl.c 	unsigned long rate;
rate               62 drivers/clk/ux500/clk-sysctrl.c 	return clk->rate;
rate              124 drivers/clk/ux500/clk-sysctrl.c 				unsigned long rate,
rate              159 drivers/clk/ux500/clk-sysctrl.c 	clk->rate = rate;
rate              200 drivers/clk/ux500/clk-sysctrl.c 					unsigned long rate,
rate              209 drivers/clk/ux500/clk-sysctrl.c 			rate, enable_delay_us, flags,
rate               32 drivers/clk/ux500/clk.h 				   unsigned long rate,
rate               43 drivers/clk/ux500/clk.h 					unsigned long rate,
rate               59 drivers/clk/ux500/clk.h 					    unsigned long rate,
rate               77 drivers/clk/ux500/clk.h 					    unsigned long rate,
rate               63 drivers/clk/versatile/clk-icst.c 	unsigned long rate;
rate              244 drivers/clk/versatile/clk-icst.c 	icst->rate = icst_hz(icst->params, vco);
rate              245 drivers/clk/versatile/clk-icst.c 	return icst->rate;
rate              248 drivers/clk/versatile/clk-icst.c static long icst_round_rate(struct clk_hw *hw, unsigned long rate,
rate              256 drivers/clk/versatile/clk-icst.c 		if (rate <= 12000000)
rate              258 drivers/clk/versatile/clk-icst.c 		if (rate >= 160000000)
rate              261 drivers/clk/versatile/clk-icst.c 		return DIV_ROUND_CLOSEST(rate, 1000000) * 1000000;
rate              265 drivers/clk/versatile/clk-icst.c 		if (rate <= 6000000)
rate              267 drivers/clk/versatile/clk-icst.c 		if (rate >= 66000000)
rate              270 drivers/clk/versatile/clk-icst.c 		return DIV_ROUND_CLOSEST(rate, 500000) * 500000;
rate              275 drivers/clk/versatile/clk-icst.c 		if (rate <= 3000000)
rate              277 drivers/clk/versatile/clk-icst.c 		if (rate >= 50000000)
rate              280 drivers/clk/versatile/clk-icst.c 		return DIV_ROUND_CLOSEST(rate, 250000) * 250000;
rate              288 drivers/clk/versatile/clk-icst.c 		if (rate <= 25000000 || rate < 29000000)
rate              294 drivers/clk/versatile/clk-icst.c 	vco = icst_hz_to_vco(icst->params, rate);
rate              298 drivers/clk/versatile/clk-icst.c static int icst_set_rate(struct clk_hw *hw, unsigned long rate,
rate              309 drivers/clk/versatile/clk-icst.c 		if (rate == 25000000) {
rate              311 drivers/clk/versatile/clk-icst.c 		} else if (rate == 33000000) {
rate              315 drivers/clk/versatile/clk-icst.c 			       rate);
rate              336 drivers/clk/versatile/clk-icst.c 	vco = icst_hz_to_vco(icst->params, rate);
rate              337 drivers/clk/versatile/clk-icst.c 	icst->rate = icst_hz(icst->params, vco);
rate               28 drivers/clk/versatile/clk-vexpress-osc.c 	u32 rate;
rate               30 drivers/clk/versatile/clk-vexpress-osc.c 	regmap_read(osc->reg, 0, &rate);
rate               32 drivers/clk/versatile/clk-vexpress-osc.c 	return rate;
rate               35 drivers/clk/versatile/clk-vexpress-osc.c static long vexpress_osc_round_rate(struct clk_hw *hw, unsigned long rate,
rate               40 drivers/clk/versatile/clk-vexpress-osc.c 	if (osc->rate_min && rate < osc->rate_min)
rate               41 drivers/clk/versatile/clk-vexpress-osc.c 		rate = osc->rate_min;
rate               43 drivers/clk/versatile/clk-vexpress-osc.c 	if (osc->rate_max && rate > osc->rate_max)
rate               44 drivers/clk/versatile/clk-vexpress-osc.c 		rate = osc->rate_max;
rate               46 drivers/clk/versatile/clk-vexpress-osc.c 	return rate;
rate               49 drivers/clk/versatile/clk-vexpress-osc.c static int vexpress_osc_set_rate(struct clk_hw *hw, unsigned long rate,
rate               54 drivers/clk/versatile/clk-vexpress-osc.c 	return regmap_write(osc->reg, 0, rate);
rate               53 drivers/clk/zte/clk-zx296702.c 	{ .rate = 700000000, .cfg0 = 0x800405d1, .cfg1 = 0x04555555 },
rate               54 drivers/clk/zte/clk-zx296702.c 	{ .rate = 800000000, .cfg0 = 0x80040691, .cfg1 = 0x04aaaaaa },
rate               55 drivers/clk/zte/clk-zx296702.c 	{ .rate = 900000000, .cfg0 = 0x80040791, .cfg1 = 0x04000000 },
rate               56 drivers/clk/zte/clk-zx296702.c 	{ .rate = 1000000000, .cfg0 = 0x80040851, .cfg1 = 0x04555555 },
rate               57 drivers/clk/zte/clk-zx296702.c 	{ .rate = 1100000000, .cfg0 = 0x80040911, .cfg1 = 0x04aaaaaa },
rate               58 drivers/clk/zte/clk-zx296702.c 	{ .rate = 1200000000, .cfg0 = 0x80040a11, .cfg1 = 0x04000000 },
rate               25 drivers/clk/zte/clk.c static int rate_to_idx(struct clk_zx_pll *zx_pll, unsigned long rate)
rate               31 drivers/clk/zte/clk.c 		if (config[i].rate > rate)
rate               34 drivers/clk/zte/clk.c 		if (config[i].rate == rate)
rate               75 drivers/clk/zte/clk.c 	return zx_pll->lookup_table[idx].rate;
rate               78 drivers/clk/zte/clk.c static long zx_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate               84 drivers/clk/zte/clk.c 	idx = rate_to_idx(zx_pll, rate);
rate               86 drivers/clk/zte/clk.c 	return zx_pll->lookup_table[idx].rate;
rate               89 drivers/clk/zte/clk.c static int zx_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate               97 drivers/clk/zte/clk.c 	idx = rate_to_idx(zx_pll, rate);
rate              189 drivers/clk/zte/clk.c static u32 calc_reg(u32 parent_rate, u32 rate)
rate              194 drivers/clk/zte/clk.c 	do_div(tmp64, rate);
rate              241 drivers/clk/zte/clk.c static long zx_audio_round_rate(struct clk_hw *hw, unsigned long rate,
rate              246 drivers/clk/zte/clk.c 	if (rate * 2 > *prate)
rate              249 drivers/clk/zte/clk.c 	reg = calc_reg(*prate, rate);
rate              253 drivers/clk/zte/clk.c static int zx_audio_set_rate(struct clk_hw *hw, unsigned long rate,
rate              259 drivers/clk/zte/clk.c 	reg = calc_reg(parent_rate, rate);
rate              334 drivers/clk/zte/clk.c 	unsigned long rate;
rate              345 drivers/clk/zte/clk.c 	unsigned long rate, m, n;
rate              351 drivers/clk/zte/clk.c 	rate = (parent_rate * n) / m;
rate              353 drivers/clk/zte/clk.c 	return rate;
rate              358 drivers/clk/zte/clk.c 			   unsigned long rate, unsigned long parent_rate)
rate              363 drivers/clk/zte/clk.c 	reg_int = parent_rate / rate;
rate              369 drivers/clk/zte/clk.c 	m = parent_rate - rate * reg_int;
rate              370 drivers/clk/zte/clk.c 	n = rate;
rate              387 drivers/clk/zte/clk.c 	div_table->rate = parent_rate * n / (reg_int * n + m);
rate              404 drivers/clk/zte/clk.c static long zx_audio_div_round_rate(struct clk_hw *hw, unsigned long rate,
rate              410 drivers/clk/zte/clk.c 	audio_calc_reg(zx_audio_div, &divt, rate, *prate);
rate              415 drivers/clk/zte/clk.c static int zx_audio_div_set_rate(struct clk_hw *hw, unsigned long rate,
rate              422 drivers/clk/zte/clk.c 	audio_calc_reg(zx_audio_div, &divt, rate, parent_rate);
rate              423 drivers/clk/zte/clk.c 	if (divt.rate != rate)
rate              424 drivers/clk/zte/clk.c 		pr_debug("the real rate is:%ld", divt.rate);
rate               15 drivers/clk/zte/clk.h 	unsigned long rate;
rate               32 drivers/clk/zte/clk.h 	.rate = _rate,			\
rate               51 drivers/clk/zynq/pll.c static long zynq_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate               56 drivers/clk/zynq/pll.c 	fbdiv = DIV_ROUND_CLOSEST(rate, *prate);
rate               47 drivers/clk/zynqmp/divider.c 					 unsigned long rate)
rate               49 drivers/clk/zynqmp/divider.c 	return DIV_ROUND_CLOSEST(parent_rate, rate);
rate              100 drivers/clk/zynqmp/divider.c 					  unsigned long rate,
rate              126 drivers/clk/zynqmp/divider.c 	bestdiv = zynqmp_divider_get_val(*prate, rate);
rate              129 drivers/clk/zynqmp/divider.c 		bestdiv = rate % *prate ? 1 : bestdiv;
rate              130 drivers/clk/zynqmp/divider.c 	*prate = rate * bestdiv;
rate              132 drivers/clk/zynqmp/divider.c 	return rate;
rate              143 drivers/clk/zynqmp/divider.c static int zynqmp_clk_divider_set_rate(struct clk_hw *hw, unsigned long rate,
rate              154 drivers/clk/zynqmp/divider.c 	value = zynqmp_divider_get_val(parent_rate, rate);
rate               97 drivers/clk/zynqmp/pll.c static long zynqmp_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              104 drivers/clk/zynqmp/pll.c 	rate_div = (rate * FRAC_DIV) / *prate;
rate              109 drivers/clk/zynqmp/pll.c 		if (rate > PS_PLL_VCO_MAX) {
rate              110 drivers/clk/zynqmp/pll.c 			fbdiv = rate / PS_PLL_VCO_MAX;
rate              111 drivers/clk/zynqmp/pll.c 			rate = rate / (fbdiv + 1);
rate              113 drivers/clk/zynqmp/pll.c 		if (rate < PS_PLL_VCO_MIN) {
rate              114 drivers/clk/zynqmp/pll.c 			fbdiv = DIV_ROUND_UP(PS_PLL_VCO_MIN, rate);
rate              115 drivers/clk/zynqmp/pll.c 			rate = rate * fbdiv;
rate              117 drivers/clk/zynqmp/pll.c 		return rate;
rate              120 drivers/clk/zynqmp/pll.c 	fbdiv = DIV_ROUND_CLOSEST(rate, *prate);
rate              139 drivers/clk/zynqmp/pll.c 	unsigned long rate, frac;
rate              149 drivers/clk/zynqmp/pll.c 	rate =  parent_rate * fbdiv;
rate              155 drivers/clk/zynqmp/pll.c 		rate = rate + frac;
rate              158 drivers/clk/zynqmp/pll.c 	return rate;
rate              171 drivers/clk/zynqmp/pll.c static int zynqmp_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              183 drivers/clk/zynqmp/pll.c 		rate_div = (rate * FRAC_DIV) / parent_rate;
rate              187 drivers/clk/zynqmp/pll.c 		rate = parent_rate * m;
rate              197 drivers/clk/zynqmp/pll.c 		return rate + frac;
rate              200 drivers/clk/zynqmp/pll.c 	fbdiv = DIV_ROUND_CLOSEST(rate, parent_rate);
rate              893 drivers/clocksource/arm_arch_timer.c static void arch_timer_of_configure_rate(u32 rate, struct device_node *np)
rate              900 drivers/clocksource/arm_arch_timer.c 		arch_timer_rate = rate;
rate             1249 drivers/clocksource/arm_arch_timer.c 	u32 rate;
rate             1262 drivers/clocksource/arm_arch_timer.c 	rate = arch_timer_get_cntfrq();
rate             1263 drivers/clocksource/arm_arch_timer.c 	arch_timer_of_configure_rate(rate, np);
rate             1305 drivers/clocksource/arm_arch_timer.c 	u32 rate;
rate             1313 drivers/clocksource/arm_arch_timer.c 	rate = readl_relaxed(base + CNTFRQ);
rate             1317 drivers/clocksource/arm_arch_timer.c 	return rate;
rate             1417 drivers/clocksource/arm_arch_timer.c 	u32 rate;
rate             1474 drivers/clocksource/arm_arch_timer.c 	rate = arch_timer_mem_frame_get_cntfrq(frame);
rate             1475 drivers/clocksource/arm_arch_timer.c 	arch_timer_of_configure_rate(rate, np);
rate             1492 drivers/clocksource/arm_arch_timer.c 	u32 rate;
rate             1501 drivers/clocksource/arm_arch_timer.c 		rate = arch_timer_mem_frame_get_cntfrq(frame);
rate             1502 drivers/clocksource/arm_arch_timer.c 		if (rate == arch_timer_rate)
rate             1507 drivers/clocksource/arm_arch_timer.c 			(unsigned long)rate, (unsigned long)arch_timer_rate);
rate               29 drivers/clocksource/armv7m_systick.c 	u32 rate;
rate               38 drivers/clocksource/armv7m_systick.c 	ret = of_property_read_u32(np, "clock-frequency", &rate);
rate               50 drivers/clocksource/armv7m_systick.c 		rate = clk_get_rate(clk);
rate               51 drivers/clocksource/armv7m_systick.c 		if (!rate) {
rate               60 drivers/clocksource/armv7m_systick.c 	ret = clocksource_mmio_init(base + SYST_CVR, "arm_system_timer", rate,
rate              188 drivers/clocksource/asm9260_timer.c 	unsigned long rate;
rate              225 drivers/clocksource/asm9260_timer.c 	rate = clk_get_rate(clk);
rate              226 drivers/clocksource/asm9260_timer.c 	clocksource_mmio_init(priv.base + HW_TC1, DRIVER_NAME, rate,
rate              235 drivers/clocksource/asm9260_timer.c 	priv.ticks_per_jiffy = DIV_ROUND_CLOSEST(rate, HZ);
rate              237 drivers/clocksource/asm9260_timer.c 	clockevents_config_and_register(&event_dev, rate, 0x2c00, 0xfffffffe);
rate               45 drivers/clocksource/clksrc_st_lpc.c 	unsigned long rate;
rate               50 drivers/clocksource/clksrc_st_lpc.c 	rate = clk_get_rate(ddata.clk);
rate               52 drivers/clocksource/clksrc_st_lpc.c 	sched_clock_register(st_clksrc_sched_clock_read, 32, rate);
rate               55 drivers/clocksource/clksrc_st_lpc.c 				    "clksrc-st-lpc", rate, 300, 32,
rate               32 drivers/clocksource/clps711x-timer.c 	unsigned long rate = clk_get_rate(clock);
rate               36 drivers/clocksource/clps711x-timer.c 	clocksource_mmio_init(tcd, "clps711x-clocksource", rate, 300, 16,
rate               39 drivers/clocksource/clps711x-timer.c 	sched_clock_register(clps711x_sched_clock_read, 16, rate);
rate               55 drivers/clocksource/clps711x-timer.c 	unsigned long rate;
rate               61 drivers/clocksource/clps711x-timer.c 	rate = clk_get_rate(clock);
rate               64 drivers/clocksource/clps711x-timer.c 	writew(DIV_ROUND_CLOSEST(rate, HZ), base);
rate               18 drivers/clocksource/dw_apb_timer_of.c 				    void __iomem **base, u32 *rate)
rate               54 drivers/clocksource/dw_apb_timer_of.c 		*rate = clk_get_rate(timer_clk);
rate               59 drivers/clocksource/dw_apb_timer_of.c 	if (of_property_read_u32(np, "clock-freq", rate) &&
rate               60 drivers/clocksource/dw_apb_timer_of.c 	    of_property_read_u32(np, "clock-frequency", rate))
rate               68 drivers/clocksource/dw_apb_timer_of.c 	u32 irq, rate;
rate               74 drivers/clocksource/dw_apb_timer_of.c 	timer_get_base_and_rate(event_timer, &iobase, &rate);
rate               77 drivers/clocksource/dw_apb_timer_of.c 				     rate);
rate               91 drivers/clocksource/dw_apb_timer_of.c 	u32 rate;
rate               93 drivers/clocksource/dw_apb_timer_of.c 	timer_get_base_and_rate(source_timer, &iobase, &rate);
rate               95 drivers/clocksource/dw_apb_timer_of.c 	cs = dw_apb_clocksource_init(300, source_timer->name, iobase, rate);
rate              108 drivers/clocksource/dw_apb_timer_of.c 	sched_rate = rate;
rate               30 drivers/clocksource/em_sti.c 	unsigned long rate;
rate              224 drivers/clocksource/em_sti.c 	clocksource_register_hz(cs, p->rate);
rate              276 drivers/clocksource/em_sti.c 	clockevents_config_and_register(ced, p->rate, 2, 0xffffffff);
rate              330 drivers/clocksource/em_sti.c 	p->rate = clk_get_rate(p->clk);
rate               42 drivers/clocksource/h8300_timer8.c 	unsigned int rate;
rate              121 drivers/clocksource/h8300_timer8.c 	timer8_clock_event_start(p, (p->rate + HZ/2) / HZ);
rate              188 drivers/clocksource/h8300_timer8.c 	timer8_priv.rate = clk_get_rate(clk) / SCALE;
rate              189 drivers/clocksource/h8300_timer8.c 	if (!timer8_priv.rate) {
rate              201 drivers/clocksource/h8300_timer8.c 					timer8_priv.rate, 1, 0x0000ffff);
rate              113 drivers/clocksource/ingenic-timer.c 	unsigned long rate;
rate              124 drivers/clocksource/ingenic-timer.c 	rate = clk_get_rate(tcu->timer_clk);
rate              125 drivers/clocksource/ingenic-timer.c 	if (!rate) {
rate              156 drivers/clocksource/ingenic-timer.c 	clockevents_config_and_register(&tcu->cevt, rate, 10, 0xffff);
rate              174 drivers/clocksource/ingenic-timer.c 	unsigned long rate;
rate              185 drivers/clocksource/ingenic-timer.c 	rate = clk_get_rate(tcu->cs_clk);
rate              186 drivers/clocksource/ingenic-timer.c 	if (!rate) {
rate              208 drivers/clocksource/ingenic-timer.c 	err = clocksource_register_hz(cs, rate);
rate              242 drivers/clocksource/ingenic-timer.c 	long rate;
rate              288 drivers/clocksource/ingenic-timer.c 	rate = clk_get_rate(tcu->cs_clk);
rate              289 drivers/clocksource/ingenic-timer.c 	sched_clock_register(ingenic_tcu_timer_read, 16, rate);
rate              101 drivers/clocksource/mips-gic-timer.c 	unsigned long rate = (unsigned long)data;
rate              103 drivers/clocksource/mips-gic-timer.c 	clockevents_update_freq(this_cpu_ptr(&gic_clockevent_device), rate);
rate              103 drivers/clocksource/mps2-timer.c 	u32 rate;
rate              107 drivers/clocksource/mps2-timer.c 	ret = of_property_read_u32(np, "clock-frequency", &rate);
rate              122 drivers/clocksource/mps2-timer.c 		rate = clk_get_rate(clk);
rate              146 drivers/clocksource/mps2-timer.c 	ce->clock_count_per_tick = DIV_ROUND_CLOSEST(rate, HZ);
rate              166 drivers/clocksource/mps2-timer.c 	clockevents_config_and_register(&ce->clkevt, rate, 0xf, 0xffffffff);
rate              187 drivers/clocksource/mps2-timer.c 	u32 rate;
rate              191 drivers/clocksource/mps2-timer.c 	ret = of_property_read_u32(np, "clock-frequency", &rate);
rate              206 drivers/clocksource/mps2-timer.c 		rate = clk_get_rate(clk);
rate              226 drivers/clocksource/mps2-timer.c 				    rate, 200, 32,
rate              234 drivers/clocksource/mps2-timer.c 	sched_clock_register(mps2_sched_read, 32, rate);
rate              194 drivers/clocksource/nomadik-mtu.c 	unsigned long rate;
rate              210 drivers/clocksource/nomadik-mtu.c 	rate = clk_get_rate(clk);
rate              211 drivers/clocksource/nomadik-mtu.c 	if (rate > 32000000) {
rate              212 drivers/clocksource/nomadik-mtu.c 		rate /= 16;
rate              219 drivers/clocksource/nomadik-mtu.c 	nmdk_cycle = DIV_ROUND_CLOSEST(rate, HZ);
rate              226 drivers/clocksource/nomadik-mtu.c 				    rate, 200, 32, clocksource_mmio_readl_down);
rate              232 drivers/clocksource/nomadik-mtu.c 	sched_clock_register(nomadik_read_sched_clock, 32, rate);
rate              238 drivers/clocksource/nomadik-mtu.c 	clockevents_config_and_register(&nmdk_clkevt, rate, 2, 0xffffffffU);
rate              241 drivers/clocksource/nomadik-mtu.c 	mtu_delay_timer.freq = rate;
rate               70 drivers/clocksource/renesas-ostm.c static int __init ostm_init_clksrc(struct ostm_device *ostm, unsigned long rate)
rate               83 drivers/clocksource/renesas-ostm.c 			"ostm", rate,
rate               93 drivers/clocksource/renesas-ostm.c 			unsigned long rate)
rate               96 drivers/clocksource/renesas-ostm.c 	sched_clock_register(ostm_read_sched_clock, 32, rate);
rate              159 drivers/clocksource/renesas-ostm.c 			unsigned long rate)
rate              181 drivers/clocksource/renesas-ostm.c 	clockevents_config_and_register(ced, rate, 0xf, 0xffffffff);
rate              192 drivers/clocksource/renesas-ostm.c 	unsigned long rate;
rate              223 drivers/clocksource/renesas-ostm.c 	rate = clk_get_rate(ostm_clk);
rate              224 drivers/clocksource/renesas-ostm.c 	ostm->ticks_per_jiffy = DIV_ROUND_CLOSEST(rate, HZ);
rate              231 drivers/clocksource/renesas-ostm.c 		ret = ostm_init_clksrc(ostm, rate);
rate              234 drivers/clocksource/renesas-ostm.c 			ostm_init_sched_clock(ostm, rate);
rate              239 drivers/clocksource/renesas-ostm.c 		ret = ostm_init_clkevt(ostm, irq, rate);
rate              114 drivers/clocksource/sh_cmt.c 	unsigned long rate;
rate              689 drivers/clocksource/sh_cmt.c 	clocksource_register_hz(cs, ch->cmt->rate);
rate              703 drivers/clocksource/sh_cmt.c 		sh_cmt_set_next(ch, ((ch->cmt->rate + HZ/2) / HZ) - 1);
rate              805 drivers/clocksource/sh_cmt.c 	ced->mult = div_sc(ch->cmt->rate, NSEC_PER_SEC, ced->shift);
rate              999 drivers/clocksource/sh_cmt.c 		cmt->rate = clk_get_rate(cmt->clk) / 512;
rate             1001 drivers/clocksource/sh_cmt.c 		cmt->rate = clk_get_rate(cmt->clk) / 8;
rate              203 drivers/clocksource/sh_mtu2.c 	unsigned long rate;
rate              220 drivers/clocksource/sh_mtu2.c 	rate = clk_get_rate(ch->mtu->clk) / 64;
rate              221 drivers/clocksource/sh_mtu2.c 	periodic = (rate + HZ/2) / HZ;
rate               53 drivers/clocksource/sh_tmu.c 	unsigned long rate;
rate              326 drivers/clocksource/sh_tmu.c 	clocksource_register_hz(cs, ch->tmu->rate);
rate              340 drivers/clocksource/sh_tmu.c 		ch->periodic = (ch->tmu->rate + HZ/2) / HZ;
rate              422 drivers/clocksource/sh_tmu.c 	clockevents_config_and_register(ced, ch->tmu->rate, 0x300, 0xffffffff);
rate              550 drivers/clocksource/sh_tmu.c 	tmu->rate = clk_get_rate(tmu->clk) / 4;
rate              363 drivers/clocksource/timer-atmel-tcb.c 	u32 rate, divided_rate = 0;
rate              414 drivers/clocksource/timer-atmel-tcb.c 	rate = (u32) clk_get_rate(t0_clk);
rate              425 drivers/clocksource/timer-atmel-tcb.c 		tmp = rate / divisor;
rate              426 drivers/clocksource/timer-atmel-tcb.c 		pr_debug("TC: %u / %-3u [%d] --> %u\n", rate, divisor, i, tmp);
rate              154 drivers/clocksource/timer-digicolor.c 	unsigned long rate;
rate              180 drivers/clocksource/timer-digicolor.c 	rate = clk_get_rate(clk);
rate              181 drivers/clocksource/timer-digicolor.c 	dc_timer_dev.ticks_per_jiffy = DIV_ROUND_UP(rate, HZ);
rate              187 drivers/clocksource/timer-digicolor.c 	sched_clock_register(digicolor_timer_sched_read, 32, rate);
rate              189 drivers/clocksource/timer-digicolor.c 			      rate, 340, 32, clocksource_mmio_readl_down);
rate              202 drivers/clocksource/timer-digicolor.c 	clockevents_config_and_register(&dc_timer_dev.ce, rate, 0, 0xffffffff);
rate              133 drivers/clocksource/timer-efm32.c 	unsigned long rate;
rate              149 drivers/clocksource/timer-efm32.c 	rate = clk_get_rate(clk);
rate              164 drivers/clocksource/timer-efm32.c 				    DIV_ROUND_CLOSEST(rate, 1024), 200, 16,
rate              191 drivers/clocksource/timer-efm32.c 	unsigned long rate;
rate              208 drivers/clocksource/timer-efm32.c 	rate = clk_get_rate(clk);
rate              227 drivers/clocksource/timer-efm32.c 	clock_event_ddata.periodic_top = DIV_ROUND_CLOSEST(rate, 1024 * HZ);
rate              230 drivers/clocksource/timer-efm32.c 					DIV_ROUND_CLOSEST(rate, 1024),
rate              140 drivers/clocksource/timer-imx-sysctr.c 	to_sysctr.of_clk.rate /= SYS_CTR_CLK_DIV;
rate               30 drivers/clocksource/timer-integrator-ap.c 	unsigned long rate = inrate;
rate               33 drivers/clocksource/timer-integrator-ap.c 	if (rate >= 1500000) {
rate               34 drivers/clocksource/timer-integrator-ap.c 		rate /= 16;
rate               42 drivers/clocksource/timer-integrator-ap.c 				    rate, 200, 16, clocksource_mmio_readl_down);
rate               47 drivers/clocksource/timer-integrator-ap.c 	sched_clock_register(integrator_read_sched_clock, 16, rate);
rate              136 drivers/clocksource/timer-integrator-ap.c 	unsigned long rate = inrate;
rate              142 drivers/clocksource/timer-integrator-ap.c 	if (rate > 0x100000 * HZ) {
rate              143 drivers/clocksource/timer-integrator-ap.c 		rate /= 256;
rate              145 drivers/clocksource/timer-integrator-ap.c 	} else if (rate > 0x10000 * HZ) {
rate              146 drivers/clocksource/timer-integrator-ap.c 		rate /= 16;
rate              149 drivers/clocksource/timer-integrator-ap.c 	timer_reload = rate / HZ;
rate              157 drivers/clocksource/timer-integrator-ap.c 					rate,
rate              170 drivers/clocksource/timer-integrator-ap.c 	unsigned long rate;
rate              183 drivers/clocksource/timer-integrator-ap.c 	rate = clk_get_rate(clk);
rate              204 drivers/clocksource/timer-integrator-ap.c 		return integrator_clocksource_init(rate, base);
rate              220 drivers/clocksource/timer-integrator-ap.c 		return integrator_clockevent_init(rate, base, irq);
rate              146 drivers/clocksource/timer-keystone.c 	unsigned long rate;
rate              175 drivers/clocksource/timer-keystone.c 	rate = clk_get_rate(clk);
rate              192 drivers/clocksource/timer-keystone.c 	timer.hz_period = DIV_ROUND_UP(rate, HZ);
rate              215 drivers/clocksource/timer-keystone.c 	clockevents_config_and_register(event_dev, rate, 1, ULONG_MAX);
rate              217 drivers/clocksource/timer-keystone.c 	pr_info("keystone timer clock @%lu Hz\n", rate);
rate              162 drivers/clocksource/timer-lpc32xx.c 	unsigned long rate;
rate              196 drivers/clocksource/timer-lpc32xx.c 	rate = clk_get_rate(clk);
rate              198 drivers/clocksource/timer-lpc32xx.c 				    rate, 300, 32, clocksource_mmio_readl_up);
rate              205 drivers/clocksource/timer-lpc32xx.c 	lpc32xx_delay_timer.freq = rate;
rate              207 drivers/clocksource/timer-lpc32xx.c 	sched_clock_register(lpc32xx_read_sched_clock, 32, rate);
rate              223 drivers/clocksource/timer-lpc32xx.c 	unsigned long rate;
rate              262 drivers/clocksource/timer-lpc32xx.c 	rate = clk_get_rate(clk);
rate              264 drivers/clocksource/timer-lpc32xx.c 	lpc32xx_clk_event_ddata.ticks_per_jiffy = DIV_ROUND_CLOSEST(rate, HZ);
rate              266 drivers/clocksource/timer-lpc32xx.c 					rate, 1, -1);
rate              171 drivers/clocksource/timer-milbeaut.c 	unsigned long rate;
rate              177 drivers/clocksource/timer-milbeaut.c 	rate = timer_of_rate(&to) / MLB_TMR_DIV_CNT;
rate              180 drivers/clocksource/timer-milbeaut.c 		node->name, rate, MLB_TIMER_RATING, 32,
rate              182 drivers/clocksource/timer-milbeaut.c 	sched_clock_register(mlb_timer_sched_read, 32, rate);
rate              199 drivers/clocksource/timer-npcm7xx.c 	npcm7xx_to.of_clk.rate = npcm7xx_to.of_clk.rate /
rate               96 drivers/clocksource/timer-of.c 	of_clk->rate = 0;
rate              130 drivers/clocksource/timer-of.c 	of_clk->rate = clk_get_rate(of_clk->clk);
rate              131 drivers/clocksource/timer-of.c 	if (!of_clk->rate) {
rate              137 drivers/clocksource/timer-of.c 	of_clk->period = DIV_ROUND_UP(of_clk->rate, HZ);
rate               30 drivers/clocksource/timer-of.h 	unsigned long rate;
rate               61 drivers/clocksource/timer-of.h 	return to->of_clk.rate;
rate               49 drivers/clocksource/timer-orion.c static void orion_delay_timer_init(unsigned long rate)
rate               51 drivers/clocksource/timer-orion.c 	orion_delay_timer.freq = rate;
rate              125 drivers/clocksource/timer-orion.c 	unsigned long rate;
rate              155 drivers/clocksource/timer-orion.c 	rate = clk_get_rate(clk);
rate              165 drivers/clocksource/timer-orion.c 				    "orion_clocksource", rate, 300, 32,
rate              172 drivers/clocksource/timer-orion.c 	sched_clock_register(orion_read_sched_clock, 32, rate);
rate              184 drivers/clocksource/timer-orion.c 	clockevents_config_and_register(&orion_clkevt, rate,
rate              188 drivers/clocksource/timer-orion.c 	orion_delay_timer_init(rate);
rate              119 drivers/clocksource/timer-owl.c 	unsigned long rate;
rate              141 drivers/clocksource/timer-owl.c 	rate = clk_get_rate(clk);
rate              146 drivers/clocksource/timer-owl.c 	sched_clock_register(owl_timer_sched_read, 32, rate);
rate              148 drivers/clocksource/timer-owl.c 			      rate, 200, 32, clocksource_mmio_readl_up);
rate              162 drivers/clocksource/timer-owl.c 	clockevents_config_and_register(&owl_clockevent, rate,
rate              155 drivers/clocksource/timer-pistachio.c 	unsigned long rate;
rate              202 drivers/clocksource/timer-pistachio.c 	rate = clk_get_rate(fast_clk);
rate              214 drivers/clocksource/timer-pistachio.c 	sched_clock_register(pistachio_read_sched_clock, 32, rate);
rate              215 drivers/clocksource/timer-pistachio.c 	return clocksource_register_hz(&pcs_gpt.cs, rate);
rate              192 drivers/clocksource/timer-prima2.c 	unsigned long rate;
rate              208 drivers/clocksource/timer-prima2.c 	rate = clk_get_rate(clk);
rate              210 drivers/clocksource/timer-prima2.c 	if (rate < PRIMA2_CLOCK_FREQ || rate % PRIMA2_CLOCK_FREQ) {
rate              223 drivers/clocksource/timer-prima2.c 	writel_relaxed(rate / PRIMA2_CLOCK_FREQ / 2 - 1,
rate              180 drivers/clocksource/timer-rda.c 	unsigned long rate = 2000000;
rate              187 drivers/clocksource/timer-rda.c 	clocksource_register_hz(&rda_hwtimer_clocksource, rate);
rate              189 drivers/clocksource/timer-rda.c 	clockevents_config_and_register(&rda_ostimer_of.clkevt, rate,
rate               27 drivers/clocksource/timer-sp804.c 	long rate;
rate               45 drivers/clocksource/timer-sp804.c 	rate = clk_get_rate(clk);
rate               46 drivers/clocksource/timer-sp804.c 	if (rate < 0) {
rate               47 drivers/clocksource/timer-sp804.c 		pr_err("sp804: clock failed to get rate: %ld\n", rate);
rate               53 drivers/clocksource/timer-sp804.c 	return rate;
rate               73 drivers/clocksource/timer-sp804.c 	long rate;
rate               84 drivers/clocksource/timer-sp804.c 	rate = sp804_get_clock_rate(clk);
rate               85 drivers/clocksource/timer-sp804.c 	if (rate < 0)
rate               96 drivers/clocksource/timer-sp804.c 		rate, 200, 32, clocksource_mmio_readl_down);
rate              100 drivers/clocksource/timer-sp804.c 		sched_clock_register(sp804_read, 32, rate);
rate              181 drivers/clocksource/timer-sp804.c 	long rate;
rate              191 drivers/clocksource/timer-sp804.c 	rate = sp804_get_clock_rate(clk);
rate              192 drivers/clocksource/timer-sp804.c 	if (rate < 0)
rate              196 drivers/clocksource/timer-sp804.c 	clkevt_reload = DIV_ROUND_CLOSEST(rate, HZ);
rate              204 drivers/clocksource/timer-sp804.c 	clockevents_config_and_register(evt, rate, 0xf, 0xffffffff);
rate              227 drivers/clocksource/timer-stm32.c 	to->of_clk.rate = DIV_ROUND_CLOSEST(to->of_clk.rate, prescaler);
rate              228 drivers/clocksource/timer-stm32.c 	to->of_clk.period = DIV_ROUND_UP(to->of_clk.rate, HZ);
rate              191 drivers/clocksource/timer-sun5i.c 	unsigned long rate;
rate              204 drivers/clocksource/timer-sun5i.c 	rate = clk_get_rate(clk);
rate              205 drivers/clocksource/timer-sun5i.c 	if (!rate) {
rate              232 drivers/clocksource/timer-sun5i.c 	ret = clocksource_register_hz(&cs->clksrc, rate);
rate              268 drivers/clocksource/timer-sun5i.c 	unsigned long rate;
rate              282 drivers/clocksource/timer-sun5i.c 	rate = clk_get_rate(clk);
rate              283 drivers/clocksource/timer-sun5i.c 	if (!rate) {
rate              290 drivers/clocksource/timer-sun5i.c 	ce->timer.ticks_per_jiffy = DIV_ROUND_UP(rate, HZ);
rate              316 drivers/clocksource/timer-sun5i.c 	clockevents_config_and_register(&ce->clkevt, rate,
rate              304 drivers/clocksource/timer-tegra.c 		unsigned long rate = tegra_rate_for_timer(to, tegra20);
rate              319 drivers/clocksource/timer-tegra.c 		cpu_to->of_clk.period = rate / HZ;
rate              320 drivers/clocksource/timer-tegra.c 		cpu_to->of_clk.rate = rate;
rate              542 drivers/clocksource/timer-ti-dm.c 	unsigned long rate = 0;
rate              548 drivers/clocksource/timer-ti-dm.c 		rate = clk_get_rate(timer->fclk);
rate              550 drivers/clocksource/timer-ti-dm.c 	__omap_dm_timer_stop(timer, timer->posted, rate);
rate              366 drivers/clocksource/timer-u300.c 	unsigned long rate;
rate              393 drivers/clocksource/timer-u300.c 	rate = clk_get_rate(clk);
rate              395 drivers/clocksource/timer-u300.c 	u300_clockevent_data.ticks_per_jiffy = DIV_ROUND_CLOSEST(rate, HZ);
rate              397 drivers/clocksource/timer-u300.c 	sched_clock_register(u300_read_sched_clock, 32, rate);
rate              400 drivers/clocksource/timer-u300.c 	u300_delay_timer.freq = rate;
rate              444 drivers/clocksource/timer-u300.c 				    "GPT2", rate, 300, 32, clocksource_mmio_readl_up);
rate              451 drivers/clocksource/timer-u300.c 	clockevents_config_and_register(&u300_clockevent_data.cevd, rate,
rate               56 drivers/clocksource/timer-vf-pit.c static int __init pit_clocksource_init(unsigned long rate)
rate               63 drivers/clocksource/timer-vf-pit.c 	sched_clock_register(pit_read_sched_clock, 32, rate);
rate               64 drivers/clocksource/timer-vf-pit.c 	return clocksource_mmio_init(clksrc_base + PITCVAL, "vf-pit", rate,
rate              133 drivers/clocksource/timer-vf-pit.c static int __init pit_clockevent_init(unsigned long rate, int irq)
rate              150 drivers/clocksource/timer-vf-pit.c 	clockevents_config_and_register(&clockevent_pit, rate, 2, 0xffffffff);
rate              106 drivers/cpufreq/arm_big_little.c 	u32 rate = clk_get_rate(clk[cur_cluster]) / 1000;
rate              110 drivers/cpufreq/arm_big_little.c 		rate = VIRT_FREQ(cur_cluster, rate);
rate              113 drivers/cpufreq/arm_big_little.c 			cur_cluster, rate);
rate              115 drivers/cpufreq/arm_big_little.c 	return rate;
rate              131 drivers/cpufreq/arm_big_little.c bL_cpufreq_set_rate(u32 cpu, u32 old_cluster, u32 new_cluster, u32 rate)
rate              141 drivers/cpufreq/arm_big_little.c 		per_cpu(cpu_last_req_freq, cpu) = rate;
rate              147 drivers/cpufreq/arm_big_little.c 		new_rate = rate;
rate               70 drivers/cpufreq/loongson2_cpufreq.c 	unsigned long rate;
rate               79 drivers/cpufreq/loongson2_cpufreq.c 	rate = cpu_clock_freq / 1000;
rate               80 drivers/cpufreq/loongson2_cpufreq.c 	if (!rate) {
rate               89 drivers/cpufreq/loongson2_cpufreq.c 		loongson2_clockmod_table[i].frequency = (rate * i) / 8;
rate               91 drivers/cpufreq/loongson2_cpufreq.c 	ret = clk_set_rate(cpuclk, rate * 1000);
rate              308 drivers/cpufreq/mediatek-cpufreq.c 	unsigned long rate;
rate              372 drivers/cpufreq/mediatek-cpufreq.c 	rate = clk_get_rate(inter_clk);
rate              373 drivers/cpufreq/mediatek-cpufreq.c 	opp = dev_pm_opp_find_freq_ceil(cpu_dev, &rate);
rate               23 drivers/cpufreq/raspberrypi-cpufreq.c 	unsigned long rate;
rate               47 drivers/cpufreq/raspberrypi-cpufreq.c 	for (rate = min; rate <= max; rate += RASPBERRYPI_FREQ_INTERVAL) {
rate               48 drivers/cpufreq/raspberrypi-cpufreq.c 		ret = dev_pm_opp_add(cpu_dev, rate, 0);
rate              338 drivers/cpufreq/s3c2416-cpufreq.c 	unsigned long rate;
rate              356 drivers/cpufreq/s3c2416-cpufreq.c 	rate = clk_get_rate(msysclk);
rate              357 drivers/cpufreq/s3c2416-cpufreq.c 	if (rate == 800 * 1000 * 1000) {
rate              359 drivers/cpufreq/s3c2416-cpufreq.c 			rate / 1000);
rate              362 drivers/cpufreq/s3c2416-cpufreq.c 	} else if (rate / 1000 == 534000) {
rate              364 drivers/cpufreq/s3c2416-cpufreq.c 			rate / 1000);
rate              374 drivers/cpufreq/s3c2416-cpufreq.c 		       rate / 1000);
rate              397 drivers/cpufreq/s3c2416-cpufreq.c 	rate = clk_get_rate(s3c_freq->hclk);
rate              398 drivers/cpufreq/s3c2416-cpufreq.c 	if (rate < 133 * 1000 * 1000) {
rate              437 drivers/cpufreq/s3c2416-cpufreq.c 		rate = clk_round_rate(s3c_freq->armdiv,
rate              439 drivers/cpufreq/s3c2416-cpufreq.c 		rate /= 1000;
rate              440 drivers/cpufreq/s3c2416-cpufreq.c 		if (rate != pos->frequency) {
rate              442 drivers/cpufreq/s3c2416-cpufreq.c 				pos->frequency, rate);
rate              538 drivers/cpufreq/s3c24xx-cpufreq.c 	u32 rate = (u32)clk_get_rate(_clk_xtal);
rate              546 drivers/cpufreq/s3c24xx-cpufreq.c 	val = calc_locktime(rate, cpu_cur.info->locktime_u) << bits;
rate              547 drivers/cpufreq/s3c24xx-cpufreq.c 	val |= calc_locktime(rate, cpu_cur.info->locktime_m);
rate               34 drivers/cpufreq/scmi-cpufreq.c 	unsigned long rate;
rate               37 drivers/cpufreq/scmi-cpufreq.c 	ret = perf_ops->freq_get(handle, priv->domain_id, &rate, false);
rate               40 drivers/cpufreq/scmi-cpufreq.c 	return rate / 1000;
rate               44 drivers/cpufreq/scpi-cpufreq.c 	unsigned long rate = clk_get_rate(priv->clk);
rate               46 drivers/cpufreq/scpi-cpufreq.c 	return rate / 1000;
rate               54 drivers/cpufreq/scpi-cpufreq.c 	u64 rate = freq * 1000;
rate               57 drivers/cpufreq/scpi-cpufreq.c 	ret = clk_set_rate(priv->clk, rate);
rate               62 drivers/cpufreq/scpi-cpufreq.c 	if (clk_get_rate(priv->clk) != rate)
rate               86 drivers/cpufreq/tegra20-cpufreq.c 	unsigned long rate = freq_table[index].frequency;
rate               94 drivers/cpufreq/tegra20-cpufreq.c 	if (rate == ifreq)
rate               97 drivers/cpufreq/tegra20-cpufreq.c 	ret = clk_set_rate(cpufreq->pll_x_clk, rate * 1000);
rate              100 drivers/cpufreq/tegra20-cpufreq.c 		dev_err(cpufreq->dev, "Failed to change pll_x to %lu\n", rate);
rate              246 drivers/devfreq/exynos-bus.c 	unsigned long rate;
rate              269 drivers/devfreq/exynos-bus.c 	rate = clk_get_rate(bus->clk);
rate              271 drivers/devfreq/exynos-bus.c 	opp = devfreq_recommended_opp(dev, &rate, 0);
rate               68 drivers/devfreq/rk3399_dmc.c 	unsigned long rate, target_rate;
rate               79 drivers/devfreq/rk3399_dmc.c 	unsigned long old_clk_rate = dmcfreq->rate;
rate               93 drivers/devfreq/rk3399_dmc.c 	if (dmcfreq->rate == target_rate)
rate              140 drivers/devfreq/rk3399_dmc.c 	dmcfreq->rate = clk_get_rate(dmcfreq->dmc_clk);
rate              143 drivers/devfreq/rk3399_dmc.c 	if (dmcfreq->rate != target_rate) {
rate              145 drivers/devfreq/rk3399_dmc.c 			target_rate, dmcfreq->rate);
rate              155 drivers/devfreq/rk3399_dmc.c 	dmcfreq->rate = target_rate;
rate              174 drivers/devfreq/rk3399_dmc.c 	stat->current_frequency = dmcfreq->rate;
rate              185 drivers/devfreq/rk3399_dmc.c 	*freq = dmcfreq->rate;
rate              436 drivers/devfreq/rk3399_dmc.c 	data->rate = clk_get_rate(data->dmc_clk);
rate              438 drivers/devfreq/rk3399_dmc.c 	opp = devfreq_recommended_opp(dev, &data->rate, 0);
rate              444 drivers/devfreq/rk3399_dmc.c 	data->rate = dev_pm_opp_get_freq(opp);
rate              448 drivers/devfreq/rk3399_dmc.c 	rk3399_devfreq_dmc_profile.initial_freq = data->rate;
rate               43 drivers/devfreq/tegra20-devfreq.c 	unsigned long rate;
rate               50 drivers/devfreq/tegra20-devfreq.c 	rate = dev_pm_opp_get_freq(opp);
rate               53 drivers/devfreq/tegra20-devfreq.c 	err = clk_set_min_rate(tegra->emc_clock, rate);
rate              127 drivers/devfreq/tegra20-devfreq.c 	unsigned long rate;
rate              154 drivers/devfreq/tegra20-devfreq.c 	for (rate = 0; rate <= max_rate; rate++) {
rate              155 drivers/devfreq/tegra20-devfreq.c 		rate = clk_round_rate(tegra->emc_clock, rate);
rate              157 drivers/devfreq/tegra20-devfreq.c 		err = dev_pm_opp_add(&pdev->dev, rate, 0);
rate              455 drivers/devfreq/tegra30-devfreq.c 	unsigned long rate;
rate              463 drivers/devfreq/tegra30-devfreq.c 	rate = dev_pm_opp_get_freq(opp);
rate              466 drivers/devfreq/tegra30-devfreq.c 	err = clk_set_min_rate(tegra->emc_clock, rate);
rate              592 drivers/devfreq/tegra30-devfreq.c 	unsigned long rate;
rate              648 drivers/devfreq/tegra30-devfreq.c 	for (rate = 0; rate <= tegra->max_freq * KHZ; rate++) {
rate              649 drivers/devfreq/tegra30-devfreq.c 		rate = clk_round_rate(tegra->emc_clock, rate);
rate              651 drivers/devfreq/tegra30-devfreq.c 		err = dev_pm_opp_add(&pdev->dev, rate, 0);
rate               48 drivers/firmware/arm_scmi/clock.c 	} rate[0];
rate              127 drivers/firmware/arm_scmi/clock.c 	u64 *rate;
rate              164 drivers/firmware/arm_scmi/clock.c 			clk->range.min_rate = RATE_TO_U64(rlist->rate[0]);
rate              165 drivers/firmware/arm_scmi/clock.c 			clk->range.max_rate = RATE_TO_U64(rlist->rate[1]);
rate              166 drivers/firmware/arm_scmi/clock.c 			clk->range.step_size = RATE_TO_U64(rlist->rate[2]);
rate              173 drivers/firmware/arm_scmi/clock.c 		rate = &clk->list.rates[tot_rate_cnt];
rate              174 drivers/firmware/arm_scmi/clock.c 		for (cnt = 0; cnt < num_returned; cnt++, rate++) {
rate              175 drivers/firmware/arm_scmi/clock.c 			*rate = RATE_TO_U64(rlist->rate[cnt]);
rate              176 drivers/firmware/arm_scmi/clock.c 			dev_dbg(handle->dev, "Rate %llu Hz\n", *rate);
rate              218 drivers/firmware/arm_scmi/clock.c 			       u64 rate)
rate              238 drivers/firmware/arm_scmi/clock.c 	cfg->value_low = cpu_to_le32(rate & 0xffffffff);
rate              239 drivers/firmware/arm_scmi/clock.c 	cfg->value_high = cpu_to_le32(rate >> 32);
rate              291 drivers/firmware/arm_scpi.c 	__le32 rate;
rate              295 drivers/firmware/arm_scpi.c 	__le32 rate;
rate              550 drivers/firmware/arm_scpi.c 	__le32 rate;
rate              554 drivers/firmware/arm_scpi.c 				sizeof(le_clk_id), &rate, sizeof(rate));
rate              556 drivers/firmware/arm_scpi.c 	return ret ? ret : le32_to_cpu(rate);
rate              559 drivers/firmware/arm_scpi.c static int scpi_clk_set_val(u16 clk_id, unsigned long rate)
rate              564 drivers/firmware/arm_scpi.c 		.rate = cpu_to_le32(rate)
rate              571 drivers/firmware/arm_scpi.c static int legacy_scpi_clk_set_val(u16 clk_id, unsigned long rate)
rate              576 drivers/firmware/arm_scpi.c 		.rate = cpu_to_le32(rate)
rate              396 drivers/firmware/xilinx/zynqmp.c static int zynqmp_pm_clock_setrate(u32 clock_id, u64 rate)
rate              399 drivers/firmware/xilinx/zynqmp.c 				   lower_32_bits(rate),
rate              400 drivers/firmware/xilinx/zynqmp.c 				   upper_32_bits(rate),
rate              414 drivers/firmware/xilinx/zynqmp.c static int zynqmp_pm_clock_getrate(u32 clock_id, u64 *rate)
rate              421 drivers/firmware/xilinx/zynqmp.c 	*rate = ((u64)ret_payload[2] << 32) | ret_payload[1];
rate              758 drivers/gpio/gpio-aspeed.c 	u64 rate;
rate              762 drivers/gpio/gpio-aspeed.c 	rate = clk_get_rate(gpio->clk);
rate              763 drivers/gpio/gpio-aspeed.c 	if (!rate)
rate              766 drivers/gpio/gpio-aspeed.c 	n = rate * usecs;
rate              785 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 	u16 percentage = 0, rate = 0;
rate              797 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 				rate = le16_to_cpu(igp_info->info_6.usDVISSpreadRateIn10Hz);
rate              801 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 				rate = le16_to_cpu(igp_info->info_6.usHDMISSpreadRateIn10Hz);
rate              805 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 				rate = le16_to_cpu(igp_info->info_6.usLvdsSSpreadRateIn10Hz);
rate              813 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 				rate = le16_to_cpu(igp_info->info_7.usDVISSpreadRateIn10Hz);
rate              817 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 				rate = le16_to_cpu(igp_info->info_7.usHDMISSpreadRateIn10Hz);
rate              821 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 				rate = le16_to_cpu(igp_info->info_7.usLvdsSSpreadRateIn10Hz);
rate              829 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 				rate = le16_to_cpu(igp_info->info_8.usDVISSpreadRateIn10Hz);
rate              833 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 				rate = le16_to_cpu(igp_info->info_8.usHDMISSpreadRateIn10Hz);
rate              837 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 				rate = le16_to_cpu(igp_info->info_8.usLvdsSSpreadRateIn10Hz);
rate              845 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 				rate = le16_to_cpu(igp_info->info_9.usDVISSpreadRateIn10Hz);
rate              849 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 				rate = le16_to_cpu(igp_info->info_9.usHDMISSpreadRateIn10Hz);
rate              853 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 				rate = le16_to_cpu(igp_info->info_9.usLvdsSSpreadRateIn10Hz);
rate              863 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 		if (rate)
rate              864 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 			ss->rate = rate;
rate              920 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 					ss->rate = le16_to_cpu(ss_assign->v1.usSpreadRateInKhz);
rate              938 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 					ss->rate = le16_to_cpu(ss_assign->v2.usSpreadRateIn10Hz);
rate              943 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 						ss->rate /= 100;
rate              960 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 					ss->rate = le16_to_cpu(ss_assign->v3.usSpreadRateIn10Hz);
rate              968 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 						ss->rate /= 100;
rate              249 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h 	int			rate;
rate              376 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h 	uint16_t rate;
rate              875 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c 			step_size = (4 * amount * ref_div * ((u32)amdgpu_crtc->ss.rate * 2048)) /
rate              878 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c 			step_size = (2 * amount * ref_div * ((u32)amdgpu_crtc->ss.rate * 2048)) /
rate             1431 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		adev->mode_info.audio.pin[i].rate = -1;
rate             1473 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		adev->mode_info.audio.pin[i].rate = -1;
rate             1346 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		adev->mode_info.audio.pin[i].rate = -1;
rate             1394 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		adev->mode_info.audio.pin[i].rate = -1;
rate             5291 drivers/gpu/drm/amd/amdgpu/si_dpm.c 			u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate);
rate             5391 drivers/gpu/drm/amd/amdgpu/si_dpm.c 			u32 clks = reference_clock * 5 / ss.rate;
rate             5392 drivers/gpu/drm/amd/amdgpu/si_dpm.c 			u32 clkv = (u32)((((131 * ss.percentage * ss.rate) / 100) * tmp) / freq_nom);
rate              597 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		adev->mode_info.audio.pin[i].rate = -1;
rate              131 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	uint8_t rate;
rate              161 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		rate = 0;
rate              162 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		core_link_write_dpcd(link, DP_LINK_BW_SET, &rate, 1);
rate              166 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		rate = (uint8_t) (lt_settings->link_settings.link_rate);
rate              167 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		core_link_write_dpcd(link, DP_LINK_BW_SET, &rate, 1);
rate              170 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (rate) {
rate              469 drivers/gpu/drm/amd/display/dc/dc_types.h 	} rate;
rate              229 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c 			sample_rates->rate.RATE_192 = 0;
rate              232 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c 			sample_rates->rate.RATE_192 = 0;
rate              233 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c 			sample_rates->rate.RATE_176_4 = 0;
rate              236 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c 			sample_rates->rate.RATE_192 = 0;
rate              237 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c 			sample_rates->rate.RATE_176_4 = 0;
rate              238 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c 			sample_rates->rate.RATE_96 = 0;
rate              241 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c 			sample_rates->rate.RATE_192 = 0;
rate              242 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c 			sample_rates->rate.RATE_176_4 = 0;
rate              243 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c 			sample_rates->rate.RATE_96 = 0;
rate              244 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c 			sample_rates->rate.RATE_88_2 = 0;
rate              576 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c 	sample_rate.rate.RATE_192 = 1;
rate              584 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c 	set_high_bit_rate_capable(audio, sample_rate.rate.RATE_192);
rate               64 drivers/gpu/drm/arc/arcpgu_crtc.c 	long rate, clk_rate = mode->clock * 1000;
rate               67 drivers/gpu/drm/arc/arcpgu_crtc.c 	rate = clk_round_rate(arcpgu->clk, clk_rate);
rate               68 drivers/gpu/drm/arc/arcpgu_crtc.c 	if ((max(rate, clk_rate) - min(rate, clk_rate) < diff) && (rate > 0))
rate              195 drivers/gpu/drm/arm/hdlcd_crtc.c 	long rate, clk_rate = mode->clock * 1000;
rate              197 drivers/gpu/drm/arm/hdlcd_crtc.c 	rate = clk_round_rate(hdlcd->clk, clk_rate);
rate              199 drivers/gpu/drm/arm/hdlcd_crtc.c 	if (abs(rate - clk_rate) * 1000 > clk_rate) {
rate               34 drivers/gpu/drm/arm/malidp_crtc.c 	long rate, req_rate = mode->crtc_clock * 1000;
rate               37 drivers/gpu/drm/arm/malidp_crtc.c 		rate = clk_round_rate(hwdev->pxlclk, req_rate);
rate               38 drivers/gpu/drm/arm/malidp_crtc.c 		if (rate != req_rate) {
rate               63 drivers/gpu/drm/bridge/adv7511/adv7511_audio.c 	unsigned int rate;
rate               68 drivers/gpu/drm/bridge/adv7511/adv7511_audio.c 		rate = ADV7511_SAMPLE_FREQ_32000;
rate               71 drivers/gpu/drm/bridge/adv7511/adv7511_audio.c 		rate = ADV7511_SAMPLE_FREQ_44100;
rate               74 drivers/gpu/drm/bridge/adv7511/adv7511_audio.c 		rate = ADV7511_SAMPLE_FREQ_48000;
rate               77 drivers/gpu/drm/bridge/adv7511/adv7511_audio.c 		rate = ADV7511_SAMPLE_FREQ_88200;
rate               80 drivers/gpu/drm/bridge/adv7511/adv7511_audio.c 		rate = ADV7511_SAMPLE_FREQ_96000;
rate               83 drivers/gpu/drm/bridge/adv7511/adv7511_audio.c 		rate = ADV7511_SAMPLE_FREQ_176400;
rate               86 drivers/gpu/drm/bridge/adv7511/adv7511_audio.c 		rate = ADV7511_SAMPLE_FREQ_192000;
rate              144 drivers/gpu/drm/bridge/adv7511/adv7511_audio.c 			   ADV7511_I2C_FREQ_ID_CFG_RATE_MASK, rate << 4);
rate              845 drivers/gpu/drm/bridge/analogix-anx78xx.c 	value = drm_dp_link_rate_to_bw_code(anx78xx->link.rate);
rate              455 drivers/gpu/drm/bridge/sii902x.c static int sii902x_select_mclk_div(u8 *i2s_config_reg, unsigned int rate,
rate              458 drivers/gpu/drm/bridge/sii902x.c 	int div = mclk / rate;
rate              908 drivers/gpu/drm/bridge/sil-sii8620.c 		unsigned int rate;
rate              918 drivers/gpu/drm/bridge/sil-sii8620.c 	unsigned long rate = clk_get_rate(ctx->clk_xtal) / 1000;
rate              922 drivers/gpu/drm/bridge/sil-sii8620.c 		if (rate <= rates[i].rate)
rate              925 drivers/gpu/drm/bridge/sil-sii8620.c 	if (rate != rates[i].rate)
rate              927 drivers/gpu/drm/bridge/sil-sii8620.c 			rate, rates[i].rate);
rate              424 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	dw_hdmi_set_sample_rate(dw->data.hdmi, runtime->rate);
rate              648 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c void dw_hdmi_set_sample_rate(struct dw_hdmi *hdmi, unsigned int rate)
rate              651 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c 	hdmi->sample_rate = rate;
rate              442 drivers/gpu/drm/bridge/tc358767.c 	if (tc->link.base.rate != 162000)
rate              589 drivers/gpu/drm/bridge/tc358767.c 	unsigned long rate;
rate              592 drivers/gpu/drm/bridge/tc358767.c 	rate = clk_get_rate(tc->refclk);
rate              593 drivers/gpu/drm/bridge/tc358767.c 	switch (rate) {
rate              607 drivers/gpu/drm/bridge/tc358767.c 		dev_err(tc->dev, "Invalid refclk rate: %lu Hz\n", rate);
rate              672 drivers/gpu/drm/bridge/tc358767.c 	if (tc->link.base.rate != 162000 && tc->link.base.rate != 270000) {
rate              674 drivers/gpu/drm/bridge/tc358767.c 		tc->link.base.rate = 270000;
rate              700 drivers/gpu/drm/bridge/tc358767.c 		(tc->link.base.rate == 162000) ? "1.62Gbps" : "2.7Gbps",
rate              742 drivers/gpu/drm/bridge/tc358767.c 	out_bw = tc->link.base.num_lanes * tc->link.base.rate;
rate              904 drivers/gpu/drm/bridge/tc358767.c 		 ((tc->link.base.rate != 162000) ? DP0_SRCCTRL_BW27 : 0));
rate             1299 drivers/gpu/drm/bridge/tc358767.c 	avail = tc->link.base.num_lanes * tc->link.base.rate;
rate              362 drivers/gpu/drm/drm_dp_helper.c 	link->rate = drm_dp_bw_code_to_link_rate(values[1]);
rate              453 drivers/gpu/drm/drm_dp_helper.c 	values[0] = drm_dp_link_rate_to_bw_code(link->rate);
rate               87 drivers/gpu/drm/gma500/intel_bios.c 	dev_priv->edp.rate = edp_link_params->rate ? DP_LINK_BW_2_7 :
rate              102 drivers/gpu/drm/gma500/intel_bios.c 			dev_priv->edp.lanes, dev_priv->edp.rate, dev_priv->edp.bpp);
rate              453 drivers/gpu/drm/gma500/intel_bios.h 	u8 rate:4;
rate              599 drivers/gpu/drm/gma500/psb_drv.h 		int rate;
rate             1006 drivers/gpu/drm/gma500/psb_intel_sdvo.c 	int rate;
rate             1065 drivers/gpu/drm/gma500/psb_intel_sdvo.c 	case 1: rate = SDVO_CLOCK_RATE_MULT_1X; break;
rate             1066 drivers/gpu/drm/gma500/psb_intel_sdvo.c 	case 2: rate = SDVO_CLOCK_RATE_MULT_2X; break;
rate             1067 drivers/gpu/drm/gma500/psb_intel_sdvo.c 	case 4: rate = SDVO_CLOCK_RATE_MULT_4X; break;
rate             1069 drivers/gpu/drm/gma500/psb_intel_sdvo.c 	if (!psb_intel_sdvo_set_clock_rate_mult(psb_intel_sdvo, rate))
rate              123 drivers/gpu/drm/i915/display/intel_audio.c audio_config_dp_get_n_m(const struct intel_crtc_state *crtc_state, int rate)
rate              128 drivers/gpu/drm/i915/display/intel_audio.c 		if (rate == dp_aud_n_m[i].sample_rate &&
rate              258 drivers/gpu/drm/i915/display/intel_audio.c 				   int rate)
rate              275 drivers/gpu/drm/i915/display/intel_audio.c 		if (rate == hdmi_ncts_table[i].sample_rate &&
rate              380 drivers/gpu/drm/i915/display/intel_audio.c 	int rate;
rate              383 drivers/gpu/drm/i915/display/intel_audio.c 	rate = acomp ? acomp->aud_sample_rate[port] : 0;
rate              384 drivers/gpu/drm/i915/display/intel_audio.c 	nm = audio_config_dp_get_n_m(crtc_state, rate);
rate              426 drivers/gpu/drm/i915/display/intel_audio.c 	int n, rate;
rate              429 drivers/gpu/drm/i915/display/intel_audio.c 	rate = acomp ? acomp->aud_sample_rate[port] : 0;
rate              437 drivers/gpu/drm/i915/display/intel_audio.c 	n = audio_config_hdmi_get_n(crtc_state, rate);
rate              967 drivers/gpu/drm/i915/display/intel_audio.c 						int pipe, int rate)
rate              993 drivers/gpu/drm/i915/display/intel_audio.c 	acomp->aud_sample_rate[port] = rate;
rate              597 drivers/gpu/drm/i915/display/intel_bios.c 	switch (edp_link_params->rate) {
rate              599 drivers/gpu/drm/i915/display/intel_bios.c 		dev_priv->vbt.edp.rate = DP_LINK_BW_1_62;
rate              602 drivers/gpu/drm/i915/display/intel_bios.c 		dev_priv->vbt.edp.rate = DP_LINK_BW_2_7;
rate              606 drivers/gpu/drm/i915/display/intel_bios.c 			      edp_link_params->rate);
rate              850 drivers/gpu/drm/i915/display/intel_ddi.c icl_get_combo_buf_trans(struct drm_i915_private *dev_priv, int type, int rate,
rate              856 drivers/gpu/drm/i915/display/intel_ddi.c 	} else if (rate > 540000 && type == INTEL_OUTPUT_EDP) {
rate             2397 drivers/gpu/drm/i915/display/intel_ddi.c 	int width, rate, ln;
rate             2402 drivers/gpu/drm/i915/display/intel_ddi.c 		rate = 0; /* Rate is always < than 6GHz for HDMI */
rate             2407 drivers/gpu/drm/i915/display/intel_ddi.c 		rate = intel_dp->link_rate;
rate             2433 drivers/gpu/drm/i915/display/intel_ddi.c 		if ((rate <= 600000 && width == 4 && ln >= 1)  ||
rate             2434 drivers/gpu/drm/i915/display/intel_ddi.c 		    (rate <= 600000 && width < 4 && (ln == 1 || ln == 2))) {
rate             2461 drivers/gpu/drm/i915/display/intel_ddi.c 					int rate)
rate             2467 drivers/gpu/drm/i915/display/intel_ddi.c 	ddi_translations = icl_get_combo_buf_trans(dev_priv, type, rate,
rate             2522 drivers/gpu/drm/i915/display/intel_ddi.c 	int rate = 0;
rate             2533 drivers/gpu/drm/i915/display/intel_ddi.c 		rate = intel_dp->link_rate;
rate             2559 drivers/gpu/drm/i915/display/intel_ddi.c 		if ((rate <= 600000 && width == 4 && ln >= 1) ||
rate             2560 drivers/gpu/drm/i915/display/intel_ddi.c 		    (rate <= 600000 && width < 4 && (ln == 1 || ln == 2))) {
rate             2577 drivers/gpu/drm/i915/display/intel_ddi.c 	icl_ddi_combo_vswing_program(dev_priv, level, phy, type, rate);
rate              398 drivers/gpu/drm/i915/display/intel_dp.c static int intel_dp_rate_index(const int *rates, int len, int rate)
rate              403 drivers/gpu/drm/i915/display/intel_dp.c 		if (rate == rates[i])
rate             1807 drivers/gpu/drm/i915/display/intel_dp.c int intel_dp_rate_select(struct intel_dp *intel_dp, int rate)
rate             1810 drivers/gpu/drm/i915/display/intel_dp.c 				    intel_dp->num_sink_rates, rate);
rate               76 drivers/gpu/drm/i915/display/intel_dp.h int intel_dp_rate_select(struct intel_dp *intel_dp, int rate);
rate             1443 drivers/gpu/drm/i915/display/intel_sdvo.c 	int rate;
rate             1504 drivers/gpu/drm/i915/display/intel_sdvo.c 	case 1: rate = SDVO_CLOCK_RATE_MULT_1X; break;
rate             1505 drivers/gpu/drm/i915/display/intel_sdvo.c 	case 2: rate = SDVO_CLOCK_RATE_MULT_2X; break;
rate             1506 drivers/gpu/drm/i915/display/intel_sdvo.c 	case 4: rate = SDVO_CLOCK_RATE_MULT_4X; break;
rate             1508 drivers/gpu/drm/i915/display/intel_sdvo.c 	if (!intel_sdvo_set_clock_rate_mult(intel_sdvo, rate))
rate              635 drivers/gpu/drm/i915/display/intel_vbt_defs.h 	u8 rate:4;
rate              769 drivers/gpu/drm/i915/i915_drv.h 		int rate;
rate             1700 drivers/gpu/drm/i915/intel_pm.c 		unsigned int rate;
rate             1707 drivers/gpu/drm/i915/intel_pm.c 		rate = raw->plane[plane_id];
rate             1708 drivers/gpu/drm/i915/intel_pm.c 		fifo_state->plane[plane_id] = fifo_size * rate / total_rate;
rate             4212 drivers/gpu/drm/i915/intel_pm.c 	u64 rate;
rate             4243 drivers/gpu/drm/i915/intel_pm.c 	rate = mul_round_up_u32_fixed16(data_rate, down_scale_amount);
rate             4245 drivers/gpu/drm/i915/intel_pm.c 	rate *= fb->format->cpp[plane];
rate             4246 drivers/gpu/drm/i915/intel_pm.c 	return rate;
rate             4267 drivers/gpu/drm/i915/intel_pm.c 		u64 rate;
rate             4270 drivers/gpu/drm/i915/intel_pm.c 		rate = skl_plane_relative_data_rate(crtc_state, plane_state, 0);
rate             4271 drivers/gpu/drm/i915/intel_pm.c 		plane_data_rate[plane_id] = rate;
rate             4272 drivers/gpu/drm/i915/intel_pm.c 		total_data_rate += rate;
rate             4275 drivers/gpu/drm/i915/intel_pm.c 		rate = skl_plane_relative_data_rate(crtc_state, plane_state, 1);
rate             4276 drivers/gpu/drm/i915/intel_pm.c 		uv_plane_data_rate[plane_id] = rate;
rate             4277 drivers/gpu/drm/i915/intel_pm.c 		total_data_rate += rate;
rate             4299 drivers/gpu/drm/i915/intel_pm.c 		u64 rate;
rate             4302 drivers/gpu/drm/i915/intel_pm.c 			rate = skl_plane_relative_data_rate(crtc_state, plane_state, 0);
rate             4303 drivers/gpu/drm/i915/intel_pm.c 			plane_data_rate[plane_id] = rate;
rate             4304 drivers/gpu/drm/i915/intel_pm.c 			total_data_rate += rate;
rate             4319 drivers/gpu/drm/i915/intel_pm.c 			rate = skl_plane_relative_data_rate(crtc_state, plane_state, 0);
rate             4321 drivers/gpu/drm/i915/intel_pm.c 			plane_data_rate[y_plane_id] = rate;
rate             4322 drivers/gpu/drm/i915/intel_pm.c 			total_data_rate += rate;
rate             4324 drivers/gpu/drm/i915/intel_pm.c 			rate = skl_plane_relative_data_rate(crtc_state, plane_state, 1);
rate             4325 drivers/gpu/drm/i915/intel_pm.c 			plane_data_rate[plane_id] = rate;
rate             4326 drivers/gpu/drm/i915/intel_pm.c 			total_data_rate += rate;
rate             4436 drivers/gpu/drm/i915/intel_pm.c 		u64 rate;
rate             4449 drivers/gpu/drm/i915/intel_pm.c 		rate = plane_data_rate[plane_id];
rate             4451 drivers/gpu/drm/i915/intel_pm.c 			      DIV64_U64_ROUND_UP(alloc_size * rate,
rate             4455 drivers/gpu/drm/i915/intel_pm.c 		total_data_rate -= rate;
rate             4460 drivers/gpu/drm/i915/intel_pm.c 		rate = uv_plane_data_rate[plane_id];
rate             4462 drivers/gpu/drm/i915/intel_pm.c 			      DIV64_U64_ROUND_UP(alloc_size * rate,
rate             4466 drivers/gpu/drm/i915/intel_pm.c 		total_data_rate -= rate;
rate              244 drivers/gpu/drm/imx/imx-tve.c 	unsigned long rate;
rate              247 drivers/gpu/drm/imx/imx-tve.c 	rate = clk_round_rate(tve->clk, 2000UL * mode->clock) / 2000;
rate              248 drivers/gpu/drm/imx/imx-tve.c 	if (rate == mode->clock)
rate              252 drivers/gpu/drm/imx/imx-tve.c 	rate = clk_round_rate(tve->clk, 1000UL * mode->clock) / 1000;
rate              253 drivers/gpu/drm/imx/imx-tve.c 	if (rate == mode->clock)
rate              276 drivers/gpu/drm/imx/imx-tve.c 	unsigned long rate;
rate              285 drivers/gpu/drm/imx/imx-tve.c 	rate = 2000UL * mode->clock;
rate              286 drivers/gpu/drm/imx/imx-tve.c 	clk_set_rate(tve->clk, rate);
rate              288 drivers/gpu/drm/imx/imx-tve.c 	if (rounded_rate >= rate)
rate              399 drivers/gpu/drm/imx/imx-tve.c static long clk_tve_di_round_rate(struct clk_hw *hw, unsigned long rate,
rate              404 drivers/gpu/drm/imx/imx-tve.c 	div = *prate / rate;
rate              412 drivers/gpu/drm/imx/imx-tve.c static int clk_tve_di_set_rate(struct clk_hw *hw, unsigned long rate,
rate              420 drivers/gpu/drm/imx/imx-tve.c 	div = parent_rate / rate;
rate              323 drivers/gpu/drm/ingenic/ingenic-drm.c 	long rate;
rate              328 drivers/gpu/drm/ingenic/ingenic-drm.c 	rate = clk_round_rate(priv->pix_clk,
rate              330 drivers/gpu/drm/ingenic/ingenic-drm.c 	if (rate < 0)
rate              331 drivers/gpu/drm/ingenic/ingenic-drm.c 		return rate;
rate              836 drivers/gpu/drm/mediatek/mtk_hdmi.c 	unsigned long rate;
rate              847 drivers/gpu/drm/mediatek/mtk_hdmi.c 	rate = clk_get_rate(hdmi->clk[MTK_HDMI_CLK_HDMI_PLL]);
rate              849 drivers/gpu/drm/mediatek/mtk_hdmi.c 	if (DIV_ROUND_CLOSEST(rate, 1000) != DIV_ROUND_CLOSEST(clock, 1000))
rate              851 drivers/gpu/drm/mediatek/mtk_hdmi.c 			 rate);
rate              853 drivers/gpu/drm/mediatek/mtk_hdmi.c 		dev_dbg(hdmi->dev, "Want PLL %u Hz, got %lu Hz\n", clock, rate);
rate              284 drivers/gpu/drm/mediatek/mtk_mipi_tx.c static long mtk_mipi_tx_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              287 drivers/gpu/drm/mediatek/mtk_mipi_tx.c 	return clamp_val(rate, 50000000, 1250000000);
rate              290 drivers/gpu/drm/mediatek/mtk_mipi_tx.c static int mtk_mipi_tx_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              295 drivers/gpu/drm/mediatek/mtk_mipi_tx.c 	dev_dbg(mipi_tx->dev, "set rate: %lu Hz\n", rate);
rate              297 drivers/gpu/drm/mediatek/mtk_mipi_tx.c 	mipi_tx->data_rate = rate;
rate              109 drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c static long mtk_hdmi_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              112 drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c 	return rate;
rate              115 drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c static int mtk_hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              121 drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c 	if (rate <= 64000000)
rate              123 drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c 	else if (rate <= 128000000)
rate              194 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c static long mtk_hdmi_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              199 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c 	hdmi_phy->pll_rate = rate;
rate              200 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c 	if (rate <= 74250000)
rate              201 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c 		*parent_rate = rate;
rate              203 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c 		*parent_rate = rate / 2;
rate              205 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c 	return rate;
rate              208 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c static int mtk_hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              219 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c 		rate, parent_rate);
rate              221 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c 	if (rate <= 27000000) {
rate              224 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c 	} else if (rate <= 74250000) {
rate              250 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c 	if (rate < 165000000) {
rate             1487 drivers/gpu/drm/meson/meson_registers.h #define		VPU_HDMI_WR_RATE(rate)          (((rate & 0x1f) - 1) << 8)
rate             1488 drivers/gpu/drm/meson/meson_registers.h #define		VPU_HDMI_RD_RATE(rate)          (((rate & 0x1f) - 1) << 12)
rate              247 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c static int _dpu_core_perf_set_core_clk_rate(struct dpu_kms *kms, u64 rate)
rate              251 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c 	if (core_clk->max_rate && (rate > core_clk->max_rate))
rate              252 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c 		rate = core_clk->max_rate;
rate              254 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c 	core_clk->rate = rate;
rate               64 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 					clk_arry[i].rate);
rate               66 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 					clk_arry[i].rate);
rate              185 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 		u32 rate = clk_get_rate(mp->clk_config[i].clk);
rate              186 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 		if (!rate)
rate              188 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 		mp->clk_config[i].rate = rate;
rate               25 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.h 	unsigned long rate;
rate              576 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c static long dpu_kms_round_pixclk(struct msm_kms *kms, unsigned long rate,
rate              579 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	return rate;
rate              216 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c long mdp4_dtv_round_pixclk(struct drm_encoder *encoder, unsigned long rate)
rate              219 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c 	return clk_round_rate(mdp4_dtv_encoder->mdp_clk, rate);
rate              146 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c static long mdp4_round_pixclk(struct msm_kms *kms, unsigned long rate,
rate              152 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c 		return mdp4_dtv_round_pixclk(encoder, rate);
rate              156 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c 		return rate;
rate              197 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.h long mdp4_dtv_round_pixclk(struct drm_encoder *encoder, unsigned long rate);
rate              200 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.h long mdp4_lcdc_round_pixclk(struct drm_encoder *encoder, unsigned long rate);
rate              420 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c long mdp4_lcdc_round_pixclk(struct drm_encoder *encoder, unsigned long rate)
rate              424 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c 	return clk_round_rate(mdp4_lcdc_encoder->lcdc_clk, rate);
rate               26 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_pll.c 	unsigned long rate;
rate               48 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_pll.c static const struct pll_rate *find_rate(unsigned long rate)
rate               52 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_pll.c 		if (rate > freqtbl[i].rate)
rate               64 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_pll.c 	DBG("pixclk=%lu (%lu)", lvds_pll->pixclk, pll_rate->rate);
rate              101 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_pll.c static long mpd4_lvds_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              104 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_pll.c 	const struct pll_rate *pll_rate = find_rate(rate);
rate              105 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_pll.c 	return pll_rate->rate;
rate              108 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_pll.c static int mpd4_lvds_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              112 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_pll.c 	lvds_pll->pixclk = rate;
rate              197 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c static long mdp5_round_pixclk(struct msm_kms *kms, unsigned long rate,
rate              200 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c 	return rate;
rate               52 drivers/gpu/drm/msm/dsi/pll/dsi_pll.c 		unsigned long rate, unsigned long *parent_rate)
rate               56 drivers/gpu/drm/msm/dsi/pll/dsi_pll.c 	if      (rate < pll->min_rate)
rate               58 drivers/gpu/drm/msm/dsi/pll/dsi_pll.c 	else if (rate > pll->max_rate)
rate               61 drivers/gpu/drm/msm/dsi/pll/dsi_pll.c 		return rate;
rate               70 drivers/gpu/drm/msm/dsi/pll/dsi_pll.h 		unsigned long rate, unsigned long *parent_rate);
rate              316 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c static int dsi_pll_10nm_vco_set_rate(struct clk_hw *hw, unsigned long rate,
rate              322 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c 	DBG("DSI PLL%d rate=%lu, parent's=%lu", pll_10nm->id, rate,
rate              325 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c 	pll_10nm->vco_current_rate = rate;
rate              574 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c static int dsi_pll_14nm_vco_set_rate(struct clk_hw *hw, unsigned long rate,
rate              582 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c 	DBG("DSI PLL%d rate=%lu, parent's=%lu", pll_14nm->id, rate,
rate              585 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c 	pll_14nm->vco_current_rate = rate;
rate              697 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c 					    unsigned long rate,
rate              703 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c 	DBG("DSI%d PLL parent rate=%lu", pll_14nm->id, rate);
rate              705 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c 	return divider_round_rate(hw, rate, prate, NULL,
rate              710 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c static int dsi_pll_14nm_postdiv_set_rate(struct clk_hw *hw, unsigned long rate,
rate              723 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c 	DBG("DSI%d PLL parent rate=%lu parent rate %lu", pll_14nm->id, rate,
rate              726 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c 	value = divider_get_val(rate, parent_rate, NULL, postdiv->width,
rate              127 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c static int dsi_pll_28nm_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              141 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c 	VERB("rate=%lu, parent's=%lu", rate, parent_rate);
rate              148 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c 		if (rate <= lpfr_lut[i].vco_rate)
rate              152 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c 				rate);
rate              161 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c 	rem = rate % VCO_REF_CLK_RATE;
rate              165 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c 		div_fbx1000 = rate / (VCO_REF_CLK_RATE / 500);
rate              170 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c 		div_fbx1000 = rate / (VCO_REF_CLK_RATE / 1000);
rate              109 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c static int dsi_pll_28nm_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              117 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c 	DBG("rate=%lu, parent's=%lu", rate, parent_rate);
rate              119 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c 	temp = rate / 10;
rate              247 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c static long clk_bytediv_round_rate(struct clk_hw *hw, unsigned long rate,
rate              253 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c 	factor = get_vco_mul_factor(rate);
rate              255 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c 	best_parent = rate * factor;
rate              261 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c static int clk_bytediv_set_rate(struct clk_hw *hw, unsigned long rate,
rate              268 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c 	factor = get_vco_mul_factor(rate);
rate              114 drivers/gpu/drm/msm/edp/edp_ctrl.c 	u32 rate; /* in kHz */
rate              416 drivers/gpu/drm/msm/edp/edp_ctrl.c 	ctrl->link_rate = drm_dp_link_rate_to_bw_code(ctrl->dp_link.rate);
rate              699 drivers/gpu/drm/msm/edp/edp_ctrl.c 	u8 rate, lane, max_lane;
rate              702 drivers/gpu/drm/msm/edp/edp_ctrl.c 	rate = ctrl->link_rate;
rate              711 drivers/gpu/drm/msm/edp/edp_ctrl.c 	if (rate > DP_LINK_BW_1_62 && rate <= EDP_LINK_BW_MAX) {
rate              712 drivers/gpu/drm/msm/edp/edp_ctrl.c 		rate -= 4;	/* reduce rate */
rate              721 drivers/gpu/drm/msm/edp/edp_ctrl.c 		lrate *= rate;
rate              726 drivers/gpu/drm/msm/edp/edp_ctrl.c 			lrate, prate, rate, lane,
rate              731 drivers/gpu/drm/msm/edp/edp_ctrl.c 			ctrl->link_rate = rate;
rate              733 drivers/gpu/drm/msm/edp/edp_ctrl.c 			DBG("new rate=%d %d", rate, lane);
rate              763 drivers/gpu/drm/msm/edp/edp_ctrl.c 	dp_link.rate = drm_dp_bw_code_to_link_rate(ctrl->link_rate);
rate             1235 drivers/gpu/drm/msm/edp/edp_ctrl.c 	ctrl->link_rate = drm_dp_link_rate_to_bw_code(ctrl->dp_link.rate);
rate             1333 drivers/gpu/drm/msm/edp/edp_ctrl.c 		clk_err = abs(divs[i].rate - pixel_rate);
rate             1334 drivers/gpu/drm/msm/edp/edp_ctrl.c 		if ((divs[i].rate * err / 100) >= clk_err) {
rate              438 drivers/gpu/drm/msm/hdmi/hdmi.c 	unsigned int rate;
rate              472 drivers/gpu/drm/msm/hdmi/hdmi.c 		rate = HDMI_SAMPLE_RATE_32KHZ;
rate              475 drivers/gpu/drm/msm/hdmi/hdmi.c 		rate = HDMI_SAMPLE_RATE_44_1KHZ;
rate              478 drivers/gpu/drm/msm/hdmi/hdmi.c 		rate = HDMI_SAMPLE_RATE_48KHZ;
rate              481 drivers/gpu/drm/msm/hdmi/hdmi.c 		rate = HDMI_SAMPLE_RATE_88_2KHZ;
rate              484 drivers/gpu/drm/msm/hdmi/hdmi.c 		rate = HDMI_SAMPLE_RATE_96KHZ;
rate              487 drivers/gpu/drm/msm/hdmi/hdmi.c 		rate = HDMI_SAMPLE_RATE_176_4KHZ;
rate              490 drivers/gpu/drm/msm/hdmi/hdmi.c 		rate = HDMI_SAMPLE_RATE_192KHZ;
rate              498 drivers/gpu/drm/msm/hdmi/hdmi.c 	msm_hdmi_audio_set_sample_rate(hdmi, rate);
rate               34 drivers/gpu/drm/msm/hdmi/hdmi.h 	int rate;
rate              221 drivers/gpu/drm/msm/hdmi/hdmi.h void msm_hdmi_audio_set_sample_rate(struct hdmi *hdmi, int rate);
rate               86 drivers/gpu/drm/msm/hdmi/hdmi_audio.c 		info->level_shift_value, info->downmix_inhibit, audio->rate);
rate              118 drivers/gpu/drm/msm/hdmi/hdmi_audio.c 		n   = arcs->lut[audio->rate].n;
rate              119 drivers/gpu/drm/msm/hdmi/hdmi_audio.c 		cts = arcs->lut[audio->rate].cts;
rate              121 drivers/gpu/drm/msm/hdmi/hdmi_audio.c 		if ((MSM_HDMI_SAMPLE_RATE_192KHZ == audio->rate) ||
rate              122 drivers/gpu/drm/msm/hdmi/hdmi_audio.c 				(MSM_HDMI_SAMPLE_RATE_176_4KHZ == audio->rate)) {
rate              125 drivers/gpu/drm/msm/hdmi/hdmi_audio.c 		} else if ((MSM_HDMI_SAMPLE_RATE_96KHZ == audio->rate) ||
rate              126 drivers/gpu/drm/msm/hdmi/hdmi_audio.c 				(MSM_HDMI_SAMPLE_RATE_88_2KHZ == audio->rate)) {
rate              139 drivers/gpu/drm/msm/hdmi/hdmi_audio.c 		if ((MSM_HDMI_SAMPLE_RATE_48KHZ == audio->rate) ||
rate              140 drivers/gpu/drm/msm/hdmi/hdmi_audio.c 				(MSM_HDMI_SAMPLE_RATE_96KHZ == audio->rate) ||
rate              141 drivers/gpu/drm/msm/hdmi/hdmi_audio.c 				(MSM_HDMI_SAMPLE_RATE_192KHZ == audio->rate))
rate              143 drivers/gpu/drm/msm/hdmi/hdmi_audio.c 		else if ((MSM_HDMI_SAMPLE_RATE_44_1KHZ == audio->rate) ||
rate              144 drivers/gpu/drm/msm/hdmi/hdmi_audio.c 				(MSM_HDMI_SAMPLE_RATE_88_2KHZ == audio->rate) ||
rate              145 drivers/gpu/drm/msm/hdmi/hdmi_audio.c 				(MSM_HDMI_SAMPLE_RATE_176_4KHZ == audio->rate))
rate              240 drivers/gpu/drm/msm/hdmi/hdmi_audio.c void msm_hdmi_audio_set_sample_rate(struct hdmi *hdmi, int rate)
rate              249 drivers/gpu/drm/msm/hdmi/hdmi_audio.c 	if ((rate < 0) || (rate >= MSM_HDMI_SAMPLE_RATE_MAX))
rate              252 drivers/gpu/drm/msm/hdmi/hdmi_audio.c 	audio->rate = rate;
rate              395 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c static int hdmi_8996_pll_set_clk_rate(struct clk_hw *hw, unsigned long rate,
rate              405 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c 	ret = pll_calculate(rate, parent_rate, &cfg);
rate              633 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c 				     unsigned long rate,
rate              636 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c 	if (rate < HDMI_PCLK_MIN_FREQ)
rate              638 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c 	else if (rate > HDMI_PCLK_MAX_FREQ)
rate              641 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c 		return rate;
rate               31 drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c 	unsigned long rate;
rate              357 drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c static const struct pll_rate *find_rate(unsigned long rate)
rate              362 drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c 		if (rate > freqtbl[i].rate)
rate              376 drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c static long hdmi_pll_round_rate(struct clk_hw *hw, unsigned long rate,
rate              379 drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c 	const struct pll_rate *pll_rate = find_rate(rate);
rate              381 drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c 	return pll_rate->rate;
rate              384 drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c static int hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate,
rate              388 drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c 	const struct pll_rate *pll_rate = find_rate(rate);
rate              391 drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c 	DBG("rate=%lu", rate);
rate              396 drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c 	pll->pixclk = rate;
rate              430 drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c 		if (WARN_ON(freqtbl[i].rate < freqtbl[i + 1].rate))
rate              114 drivers/gpu/drm/msm/msm_kms.h 	long (*round_pixclk)(struct msm_kms *kms, unsigned long rate,
rate              328 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 	u32 rate;
rate              367 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 	for (cfg = nvkm_dp_rates; cfg->rate; cfg++) {
rate              377 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 		if (failsafe && cfg[1].rate < dataKBps)
rate               91 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c 	u32 rate;
rate               94 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c 	rate = clk->parent_rate * pll->n;
rate               97 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c 	return rate / divider / 2;
rate              101 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c gk20a_pllg_calc_mnp(struct gk20a_clk *clk, unsigned long rate,
rate              113 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c 	target_clk_f = rate * 2 / KHZ;
rate              490 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c 	u32 rate = gk20a_pllg_calc_rate(&clk->base, pll) / KHZ;
rate              495 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c 	if (rate > clk->safe_fmax_vmin)
rate              496 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c 		rate = rate * (100 - 10) / 100;
rate              499 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c 	rate *= 2;
rate              502 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c 	nsafe = pll->m * rate / (clk->base.parent_rate);
rate              505 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c 		pll->pl = DIV_ROUND_UP(nmin * parent_rate, pll->m * rate);
rate              642 drivers/gpu/drm/omapdrm/dss/dss.c int dss_set_fck_rate(struct dss_device *dss, unsigned long rate)
rate              646 drivers/gpu/drm/omapdrm/dss/dss.c 	DSSDBG("set fck to %lu\n", rate);
rate              648 drivers/gpu/drm/omapdrm/dss/dss.c 	r = clk_set_rate(dss->dss_clk, rate);
rate              654 drivers/gpu/drm/omapdrm/dss/dss.c 	WARN_ONCE(dss->dss_clk_rate != rate, "clk rate mismatch: %lu != %lu",
rate              655 drivers/gpu/drm/omapdrm/dss/dss.c 		  dss->dss_clk_rate, rate);
rate              341 drivers/gpu/drm/omapdrm/dss/dss.h int dss_set_fck_rate(struct dss_device *dss, unsigned long rate);
rate               43 drivers/gpu/drm/panfrost/panfrost_device.c 	unsigned long rate;
rate               51 drivers/gpu/drm/panfrost/panfrost_device.c 	rate = clk_get_rate(pfdev->clock);
rate               52 drivers/gpu/drm/panfrost/panfrost_device.c 	dev_info(pfdev->dev, "clock rate = %lu\n", rate);
rate               66 drivers/gpu/drm/panfrost/panfrost_device.c 		rate = clk_get_rate(pfdev->bus_clock);
rate               67 drivers/gpu/drm/panfrost/panfrost_device.c 		dev_info(pfdev->dev, "bus_clock rate = %lu\n", rate);
rate              447 drivers/gpu/drm/pl111/pl111_display.c static int pl111_clk_div_choose_div(struct clk_hw *hw, unsigned long rate,
rate              460 drivers/gpu/drm/pl111/pl111_display.c 			this_prate = clk_hw_round_rate(parent, rate * div);
rate              464 drivers/gpu/drm/pl111/pl111_display.c 		diff = abs(rate - div_rate);
rate              477 drivers/gpu/drm/pl111/pl111_display.c static long pl111_clk_div_round_rate(struct clk_hw *hw, unsigned long rate,
rate              480 drivers/gpu/drm/pl111/pl111_display.c 	int div = pl111_clk_div_choose_div(hw, rate, prate, true);
rate              504 drivers/gpu/drm/pl111/pl111_display.c static int pl111_clk_div_set_rate(struct clk_hw *hw, unsigned long rate,
rate              509 drivers/gpu/drm/pl111/pl111_display.c 	int div = pl111_clk_div_choose_div(hw, rate, &prate, false);
rate             1131 drivers/gpu/drm/radeon/atombios_crtc.c 				step_size = (4 * amount * ref_div * ((u32)radeon_crtc->ss.rate * 2048)) /
rate             1134 drivers/gpu/drm/radeon/atombios_crtc.c 				step_size = (2 * amount * ref_div * ((u32)radeon_crtc->ss.rate * 2048)) /
rate             2842 drivers/gpu/drm/radeon/ci_dpm.c 			u32 clks = reference_clock * 5 / ss.rate;
rate             2843 drivers/gpu/drm/radeon/ci_dpm.c 			u32 clkv = (u32)((((131 * ss.percentage * ss.rate) / 100) * tmp) / freq_nom);
rate             3193 drivers/gpu/drm/radeon/ci_dpm.c 			u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate);
rate              562 drivers/gpu/drm/radeon/cypress_dpm.c 			u32 clk_s = reference_clock * 5 / (decoded_ref * ss.rate);
rate             2046 drivers/gpu/drm/radeon/ni_dpm.c 			u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate);
rate             2244 drivers/gpu/drm/radeon/ni_dpm.c 			u32 clk_s = reference_clock * 5 / (decoded_ref * ss.rate);
rate               94 drivers/gpu/drm/radeon/r600_hdmi.c 		status.rate = 44100;
rate               96 drivers/gpu/drm/radeon/r600_hdmi.c 		status.rate = 48000;
rate               97 drivers/gpu/drm/radeon/r600_hdmi.c 	status.rate *= ((value >> 11) & 0x7) + 1;
rate               98 drivers/gpu/drm/radeon/r600_hdmi.c 	status.rate /= ((value >> 8) & 0x7) + 1;
rate              124 drivers/gpu/drm/radeon/r600_hdmi.c 	    rdev->audio.pin[0].rate != audio_status.rate ||
rate              430 drivers/gpu/drm/radeon/r600_hdmi.c 		  audio.channels, audio.rate, audio.bits_per_sample);
rate             1747 drivers/gpu/drm/radeon/radeon.h 	int			rate;
rate             1439 drivers/gpu/drm/radeon/radeon_atombios.c 	u16 percentage = 0, rate = 0;
rate             1451 drivers/gpu/drm/radeon/radeon_atombios.c 				rate = le16_to_cpu(igp_info->info_6.usDVISSpreadRateIn10Hz);
rate             1455 drivers/gpu/drm/radeon/radeon_atombios.c 				rate = le16_to_cpu(igp_info->info_6.usHDMISSpreadRateIn10Hz);
rate             1459 drivers/gpu/drm/radeon/radeon_atombios.c 				rate = le16_to_cpu(igp_info->info_6.usLvdsSSpreadRateIn10Hz);
rate             1467 drivers/gpu/drm/radeon/radeon_atombios.c 				rate = le16_to_cpu(igp_info->info_7.usDVISSpreadRateIn10Hz);
rate             1471 drivers/gpu/drm/radeon/radeon_atombios.c 				rate = le16_to_cpu(igp_info->info_7.usHDMISSpreadRateIn10Hz);
rate             1475 drivers/gpu/drm/radeon/radeon_atombios.c 				rate = le16_to_cpu(igp_info->info_7.usLvdsSSpreadRateIn10Hz);
rate             1483 drivers/gpu/drm/radeon/radeon_atombios.c 				rate = le16_to_cpu(igp_info->info_8.usDVISSpreadRateIn10Hz);
rate             1487 drivers/gpu/drm/radeon/radeon_atombios.c 				rate = le16_to_cpu(igp_info->info_8.usHDMISSpreadRateIn10Hz);
rate             1491 drivers/gpu/drm/radeon/radeon_atombios.c 				rate = le16_to_cpu(igp_info->info_8.usLvdsSSpreadRateIn10Hz);
rate             1501 drivers/gpu/drm/radeon/radeon_atombios.c 		if (rate)
rate             1502 drivers/gpu/drm/radeon/radeon_atombios.c 			ss->rate = rate;
rate             1558 drivers/gpu/drm/radeon/radeon_atombios.c 					ss->rate = le16_to_cpu(ss_assign->v1.usSpreadRateInKhz);
rate             1576 drivers/gpu/drm/radeon/radeon_atombios.c 					ss->rate = le16_to_cpu(ss_assign->v2.usSpreadRateIn10Hz);
rate             1581 drivers/gpu/drm/radeon/radeon_atombios.c 						ss->rate /= 100;
rate             1598 drivers/gpu/drm/radeon/radeon_atombios.c 					ss->rate = le16_to_cpu(ss_assign->v3.usSpreadRateIn10Hz);
rate             1606 drivers/gpu/drm/radeon/radeon_atombios.c 						ss->rate /= 100;
rate              326 drivers/gpu/drm/radeon/radeon_audio.c 		rdev->audio.pin[i].rate = -1;
rate              317 drivers/gpu/drm/radeon/radeon_mode.h 	uint16_t rate;
rate              568 drivers/gpu/drm/radeon/rv6xx_dpm.c 									      ss.rate,
rate              572 drivers/gpu/drm/radeon/rv6xx_dpm.c 				clk_s = rv6xx_calculate_spread_spectrum_clk_s(ss.rate,
rate              686 drivers/gpu/drm/radeon/rv6xx_dpm.c 									     ss.rate,
rate              690 drivers/gpu/drm/radeon/rv6xx_dpm.c 				clk_s = rv6xx_calculate_spread_spectrum_clk_s(ss.rate,
rate               96 drivers/gpu/drm/radeon/rv730_dpm.c 			u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate);
rate              172 drivers/gpu/drm/radeon/rv730_dpm.c 			u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate);
rate              164 drivers/gpu/drm/radeon/rv740_dpm.c 			u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate);
rate              253 drivers/gpu/drm/radeon/rv740_dpm.c 			u32 clk_s = reference_clock * 5 / (decoded_ref * ss.rate);
rate              543 drivers/gpu/drm/radeon/rv770_dpm.c 			u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate);
rate             4829 drivers/gpu/drm/radeon/si_dpm.c 			u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate);
rate             4929 drivers/gpu/drm/radeon/si_dpm.c 			u32 clks = reference_clock * 5 / ss.rate;
rate             4930 drivers/gpu/drm/radeon/si_dpm.c 			u32 clkv = (u32)((((131 * ss.percentage * ss.rate) / 100) * tmp) / freq_nom);
rate              167 drivers/gpu/drm/rcar-du/rcar_du_crtc.c 	unsigned long rate;
rate              175 drivers/gpu/drm/rcar-du/rcar_du_crtc.c 	unsigned long rate;
rate              190 drivers/gpu/drm/rcar-du/rcar_du_crtc.c 	rate = clk_round_rate(clk, target);
rate              191 drivers/gpu/drm/rcar-du/rcar_du_crtc.c 	div = clamp(DIV_ROUND_CLOSEST(rate, target), 1UL, 64UL) - 1;
rate              192 drivers/gpu/drm/rcar-du/rcar_du_crtc.c 	diff = abs(rate / (div + 1) - target);
rate              200 drivers/gpu/drm/rcar-du/rcar_du_crtc.c 		params->rate = rate;
rate              281 drivers/gpu/drm/rcar-du/rcar_du_crtc.c 			params.rate);
rate              283 drivers/gpu/drm/rcar-du/rcar_du_crtc.c 		clk_set_rate(params.clk, params.rate);
rate               86 drivers/gpu/drm/rockchip/cdn-dp-core.c 	unsigned long rate;
rate              113 drivers/gpu/drm/rockchip/cdn-dp-core.c 	rate = clk_get_rate(dp->core_clk);
rate              114 drivers/gpu/drm/rockchip/cdn-dp-core.c 	if (!rate) {
rate              120 drivers/gpu/drm/rockchip/cdn-dp-core.c 	cdn_dp_set_fw_clk(dp, rate);
rate              282 drivers/gpu/drm/rockchip/cdn-dp-core.c 	u32 requested, actual, rate, sink_max, source_max = 0;
rate              309 drivers/gpu/drm/rockchip/cdn-dp-core.c 	rate = min(source_max, sink_max);
rate              311 drivers/gpu/drm/rockchip/cdn-dp-core.c 	actual = rate * lanes / 100;
rate              480 drivers/gpu/drm/rockchip/cdn-dp-core.c 	dp->link.rate = 0;
rate              573 drivers/gpu/drm/rockchip/cdn-dp-core.c 	if (!port || !dp->link.rate || !dp->link.num_lanes)
rate              955 drivers/gpu/drm/rockchip/cdn-dp-core.c 		unsigned int rate = dp->link.rate;
rate              969 drivers/gpu/drm/rockchip/cdn-dp-core.c 		    (rate != dp->link.rate || lanes != dp->link.num_lanes)) {
rate              538 drivers/gpu/drm/rockchip/cdn-dp-reg.c 	dp->link.rate = drm_dp_bw_code_to_link_rate(status[0]);
rate              563 drivers/gpu/drm/rockchip/cdn-dp-reg.c 	DRM_DEV_DEBUG_KMS(dp->dev, "rate:0x%x, lanes:%d\n", dp->link.rate,
rate              642 drivers/gpu/drm/rockchip/cdn-dp-reg.c 	link_rate = dp->link.rate / 1000;
rate             1043 drivers/gpu/drm/rockchip/rockchip_drm_vop.c 	unsigned long rate;
rate             1076 drivers/gpu/drm/rockchip/rockchip_drm_vop.c 	rate = clk_round_rate(vop->dclk, adjusted_mode->clock * 1000 + 999);
rate             1077 drivers/gpu/drm/rockchip/rockchip_drm_vop.c 	adjusted_mode->clock = DIV_ROUND_UP(rate, 1000);
rate               56 drivers/gpu/drm/sti/sti_crtc.c 	int rate = mode->clock * 1000;
rate               78 drivers/gpu/drm/sti/sti_crtc.c 	if (clk_set_rate(pix_clk, rate) < 0) {
rate               79 drivers/gpu/drm/sti/sti_crtc.c 		DRM_ERROR("Cannot set rate (%dHz) for pix clk\n", rate);
rate              284 drivers/gpu/drm/sti/sti_dvo.c 	int rate = mode->clock * 1000;
rate              305 drivers/gpu/drm/sti/sti_dvo.c 	ret = clk_set_rate(dvo->clk_pix, rate);
rate              307 drivers/gpu/drm/sti/sti_dvo.c 		DRM_ERROR("Cannot set rate (%dHz) for dvo_pix clk\n", rate);
rate              311 drivers/gpu/drm/sti/sti_dvo.c 	ret = clk_set_rate(dvo->clk, rate);
rate              313 drivers/gpu/drm/sti/sti_dvo.c 		DRM_ERROR("Cannot set rate (%dHz) for dvo clk\n", rate);
rate              662 drivers/gpu/drm/sti/sti_gdp.c 		int rate = mode->clock * 1000;
rate              677 drivers/gpu/drm/sti/sti_gdp.c 		res = clk_set_rate(gdp->clk_pix, rate);
rate              680 drivers/gpu/drm/sti/sti_gdp.c 				  rate);
rate              514 drivers/gpu/drm/stm/ltdc.c 	int rate = mode->clock * 1000;
rate              523 drivers/gpu/drm/stm/ltdc.c 	if (clk_set_rate(ldev->pixel_clk, rate) < 0) {
rate              524 drivers/gpu/drm/stm/ltdc.c 		DRM_ERROR("Cannot set rate (%dHz) for pixel clk\n", rate);
rate               70 drivers/gpu/drm/sun4i/sun4i_dotclock.c static long sun4i_dclk_round_rate(struct clk_hw *hw, unsigned long rate,
rate               80 drivers/gpu/drm/sun4i/sun4i_dotclock.c 		u64 ideal = (u64)rate * i;
rate              102 drivers/gpu/drm/sun4i/sun4i_dotclock.c 		if (abs(rate - rounded / i) <
rate              103 drivers/gpu/drm/sun4i/sun4i_dotclock.c 		    abs(rate - best_parent / best_div)) {
rate              115 drivers/gpu/drm/sun4i/sun4i_dotclock.c static int sun4i_dclk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              119 drivers/gpu/drm/sun4i/sun4i_dotclock.c 	u8 div = parent_rate / rate;
rate               27 drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c static unsigned long sun4i_ddc_calc_divider(unsigned long rate,
rate               43 drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c 			if (tmp_rate > rate)
rate               46 drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c 			if (abs(rate - tmp_rate) < abs(rate - best_rate)) {
rate               62 drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c static long sun4i_ddc_round_rate(struct clk_hw *hw, unsigned long rate,
rate               67 drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c 	return sun4i_ddc_calc_divider(rate, *prate, ddc->pre_div,
rate               86 drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c static int sun4i_ddc_set_rate(struct clk_hw *hw, unsigned long rate,
rate               92 drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c 	sun4i_ddc_calc_divider(rate, parent_rate, ddc->pre_div,
rate              184 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c 	unsigned long rate = mode->clock * 1000;
rate              185 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c 	unsigned long diff = rate / 200; /* +-0.5% allowed by HDMI spec */
rate              189 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c 	if (rate > 165000000)
rate              191 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c 	rounded_rate = clk_round_rate(hdmi->tmds_clk, rate);
rate              193 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c 	    max_t(unsigned long, rounded_rate, rate) -
rate              194 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c 	    min_t(unsigned long, rounded_rate, rate) < diff)
rate               27 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c static unsigned long sun4i_tmds_calc_divider(unsigned long rate,
rate               45 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c 			if (tmp_rate > rate)
rate               49 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c 			    (rate - tmp_rate) < (rate - best_rate)) {
rate               72 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c 	unsigned long rate = req->rate;
rate               90 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c 				unsigned long ideal = rate * i * j;
rate              103 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c 				    abs(rate - rounded / i / j) <
rate              104 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c 				    abs(rate - best_parent / best_half /
rate              118 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c 	req->rate = best_parent / best_half / best_div;
rate              143 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c static int sun4i_tmds_set_rate(struct clk_hw *hw, unsigned long rate,
rate              151 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c 	sun4i_tmds_calc_divider(rate, parent_rate, tmds->div_offset,
rate               67 drivers/gpu/drm/sun4i/sun4i_rgb.c 	unsigned long long rate = mode->clock * 1000;
rate              121 drivers/gpu/drm/sun4i/sun4i_rgb.c 	rounded_rate = clk_round_rate(tcon->dclk, rate);
rate              123 drivers/gpu/drm/sun4i/sun4i_rgb.c 	lowest = rate * (1000 - SUN4I_RGB_DOTCLOCK_TOLERANCE_PER_MILLE);
rate              128 drivers/gpu/drm/sun4i/sun4i_rgb.c 	highest = rate * (1000 + SUN4I_RGB_DOTCLOCK_TOLERANCE_PER_MILLE);
rate               23 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c 	unsigned long rate = req->rate;
rate               36 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c 			unsigned long ideal = rate * i;
rate               49 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c 			    abs(rate - rounded / i) <
rate               50 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c 			    abs(rate - best_rate / best_div)) {
rate               57 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c 		if (best_rate / best_div == rate)
rate               61 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c 	req->rate = best_rate / best_div;
rate               81 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c static int sun8i_phy_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate               91 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c 		if (tmp_rate > rate)
rate               95 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c 		    (rate - tmp_rate) < (rate - best_rate)) {
rate              648 drivers/gpu/drm/tegra/hub.c 			if (!hub_state->clk || dc->pclk > hub_state->rate) {
rate              651 drivers/gpu/drm/tegra/hub.c 				hub_state->rate = dc->pclk;
rate              693 drivers/gpu/drm/tegra/hub.c 		err = clk_set_rate(hub_state->clk, hub_state->rate);
rate              696 drivers/gpu/drm/tegra/hub.c 				hub_state->clk, hub_state->rate);
rate               65 drivers/gpu/drm/tegra/hub.h 	unsigned long rate;
rate              908 drivers/gpu/drm/tegra/sor.c 	const u64 f = 100000, link_rate = link->rate * 1000;
rate             1688 drivers/gpu/drm/tegra/sor.c 	u8 rate, lanes;
rate             1871 drivers/gpu/drm/tegra/sor.c 	value |= drm_dp_link_rate_to_bw_code(link.rate) << 2;
rate             1908 drivers/gpu/drm/tegra/sor.c 	rate = drm_dp_link_rate_to_bw_code(link.rate);
rate             1913 drivers/gpu/drm/tegra/sor.c 	value |= SOR_CLK_CNTRL_DP_LINK_SPEED(rate);
rate             2430 drivers/gpu/drm/tegra/sor.c 	unsigned long rate, pclk;
rate             2576 drivers/gpu/drm/tegra/sor.c 	rate = clk_get_rate(sor->clk_parent);
rate             2579 drivers/gpu/drm/tegra/sor.c 		rate /= 2;
rate             2581 drivers/gpu/drm/tegra/sor.c 	DRM_DEBUG_KMS("setting clock to %lu Hz, mode: %lu Hz\n", rate, pclk);
rate             2583 drivers/gpu/drm/tegra/sor.c 	clk_set_rate(sor->clk, rate);
rate              196 drivers/gpu/drm/tilcdc/tilcdc_crtc.c static unsigned int tilcdc_pclk_diff(unsigned long rate,
rate              199 drivers/gpu/drm/tilcdc/tilcdc_crtc.c 	int r = rate / 100, rr = real_rate / 100;
rate              444 drivers/gpu/ipu-v3/ipu-di.c 		unsigned long rate, clkrate;
rate              450 drivers/gpu/ipu-v3/ipu-di.c 		rate = clkrate / div;
rate              452 drivers/gpu/ipu-v3/ipu-di.c 		error = rate / (sig->mode.pixelclock / 1000);
rate              455 drivers/gpu/ipu-v3/ipu-di.c 			rate, div, (signed)(error - 1000) / 10, error % 10);
rate              264 drivers/hsi/controllers/omap_ssi_core.c 	unsigned long rate = clk_get_rate(omap_ssi->fck);
rate              265 drivers/hsi/controllers/omap_ssi_core.c 	return rate;
rate              129 drivers/hwmon/lm63.c #define UPDATE_INTERVAL(max, rate) \
rate              130 drivers/hwmon/lm63.c 			((1000 << (LM63_MAX_CONVRATE - (rate))) / (max))
rate              108 drivers/hwmon/lm95245.c 	unsigned int rate;
rate              111 drivers/hwmon/lm95245.c 	ret = regmap_read(data->regmap, LM95245_REG_RW_CONVERS_RATE, &rate);
rate              115 drivers/hwmon/lm95245.c 	switch (rate) {
rate              135 drivers/hwmon/lm95245.c 	int ret, rate;
rate              139 drivers/hwmon/lm95245.c 		rate = RATE_CR0063;
rate              142 drivers/hwmon/lm95245.c 		rate = RATE_CR0364;
rate              145 drivers/hwmon/lm95245.c 		rate = RATE_CR1000;
rate              148 drivers/hwmon/lm95245.c 		rate = RATE_CR2500;
rate              151 drivers/hwmon/lm95245.c 	ret = regmap_write(data->regmap, LM95245_REG_RW_CONVERS_RATE, rate);
rate              194 drivers/hwmon/pmbus/max31785.c 	int rate;
rate              198 drivers/hwmon/pmbus/max31785.c 		rate = 0x7fff;
rate              201 drivers/hwmon/pmbus/max31785.c 		rate = pmbus_get_fan_rate_cached(client, page, 0, percent);
rate              202 drivers/hwmon/pmbus/max31785.c 		if (rate < 0)
rate              203 drivers/hwmon/pmbus/max31785.c 			return rate;
rate              204 drivers/hwmon/pmbus/max31785.c 		rate = max31785_scale_pwm(rate);
rate              208 drivers/hwmon/pmbus/max31785.c 		rate = pmbus_get_fan_rate_cached(client, page, 0, rpm);
rate              209 drivers/hwmon/pmbus/max31785.c 		if (rate < 0)
rate              210 drivers/hwmon/pmbus/max31785.c 			return rate;
rate              213 drivers/hwmon/pmbus/max31785.c 		rate = 0xffff;
rate              219 drivers/hwmon/pmbus/max31785.c 	return pmbus_update_fan(client, page, 0, config, PB_FAN_1_RPM, rate);
rate              437 drivers/hwmon/tmp401.c 	int err, rate;
rate              452 drivers/hwmon/tmp401.c 	rate = 7 - __fls(val * 4 / (125 * 3));
rate              454 drivers/hwmon/tmp401.c 	i2c_smbus_write_byte_data(client, TMP401_CONVERSION_RATE_WRITE, rate);
rate              455 drivers/hwmon/tmp401.c 	data->update_interval = (1 << (7 - rate)) * 125;
rate              157 drivers/hwmon/w83773g.c 	int rate;
rate              168 drivers/hwmon/w83773g.c 	rate = 8 - __fls((val * 8 / (625 * 7)));
rate              169 drivers/hwmon/w83773g.c 	return regmap_write(regmap, W83773_CONVERSION_RATE_REG_WRITE, rate);
rate               85 drivers/i2c/busses/i2c-bcm2835.c static int clk_bcm2835_i2c_calc_divider(unsigned long rate,
rate               88 drivers/i2c/busses/i2c-bcm2835.c 	u32 divider = DIV_ROUND_UP(parent_rate, rate);
rate              104 drivers/i2c/busses/i2c-bcm2835.c static int clk_bcm2835_i2c_set_rate(struct clk_hw *hw, unsigned long rate,
rate              109 drivers/i2c/busses/i2c-bcm2835.c 	u32 divider = clk_bcm2835_i2c_calc_divider(rate, parent_rate);
rate              135 drivers/i2c/busses/i2c-bcm2835.c static long clk_bcm2835_i2c_round_rate(struct clk_hw *hw, unsigned long rate,
rate              138 drivers/i2c/busses/i2c-bcm2835.c 	u32 divider = clk_bcm2835_i2c_calc_divider(rate, *parent_rate);
rate              309 drivers/i2c/busses/i2c-efm32.c 	unsigned long rate;
rate              396 drivers/i2c/busses/i2c-efm32.c 	rate = clk_get_rate(ddata->clk);
rate              397 drivers/i2c/busses/i2c-efm32.c 	if (!rate) {
rate              402 drivers/i2c/busses/i2c-efm32.c 	clkdiv = DIV_ROUND_UP(rate, 8 * ddata->frequency) - 1;
rate              406 drivers/i2c/busses/i2c-efm32.c 				rate, ddata->frequency);
rate              412 drivers/i2c/busses/i2c-efm32.c 			rate, ddata->frequency, (unsigned long)clkdiv);
rate              124 drivers/i2c/busses/i2c-hix5hd2.c 	u32 rate, val;
rate              131 drivers/i2c/busses/i2c-hix5hd2.c 	rate = priv->freq;
rate              133 drivers/i2c/busses/i2c-hix5hd2.c 	scl = (sysclock / (rate * 2)) / 2 - 1;
rate              141 drivers/i2c/busses/i2c-hix5hd2.c 		__func__, sysclock, rate, scl);
rate              782 drivers/i2c/busses/i2c-ocores.c 		unsigned long rate;
rate              790 drivers/i2c/busses/i2c-ocores.c 		rate = clk_get_rate(i2c->clk) / 1000;
rate              791 drivers/i2c/busses/i2c-ocores.c 		if (rate)
rate              792 drivers/i2c/busses/i2c-ocores.c 			i2c->ip_clock_khz = rate;
rate              207 drivers/i2c/busses/i2c-pxa.c 	unsigned long		rate;
rate             1198 drivers/i2c/busses/i2c-pxa.c 		i2c->rate = plat->rate;
rate             1281 drivers/i2c/busses/i2c-pxa.c 		if (i2c->rate) {
rate             1282 drivers/i2c/busses/i2c-pxa.c 			clk_set_rate(i2c->clk, i2c->rate);
rate              241 drivers/i2c/busses/i2c-rcar.c 	unsigned long rate;
rate              278 drivers/i2c/busses/i2c-rcar.c 	rate = clk_get_rate(priv->clk);
rate              279 drivers/i2c/busses/i2c-rcar.c 	cdf = rate / 20000000;
rate              281 drivers/i2c/busses/i2c-rcar.c 		dev_err(dev, "Input clock %lu too high\n", rate);
rate              284 drivers/i2c/busses/i2c-rcar.c 	ick = rate / (cdf + 1);
rate              285 drivers/i2c/busses/i2c-riic.c 	unsigned long rate;
rate              298 drivers/i2c/busses/i2c-riic.c 	rate = clk_get_rate(riic->clk);
rate              315 drivers/i2c/busses/i2c-riic.c 	total_ticks = DIV_ROUND_UP(rate, t->bus_freq_hz);
rate              327 drivers/i2c/busses/i2c-riic.c 		rate /= 2;
rate              352 drivers/i2c/busses/i2c-riic.c 	brl -= t->scl_fall_ns / (1000000000 / rate);
rate              353 drivers/i2c/busses/i2c-riic.c 	brh -= t->scl_rise_ns / (1000000000 / rate);
rate              362 drivers/i2c/busses/i2c-riic.c 		 rate / total_ticks, ((brl + 3) * 100) / (brl + brh + 6),
rate              363 drivers/i2c/busses/i2c-riic.c 		 t->scl_fall_ns / (1000000000 / rate),
rate              364 drivers/i2c/busses/i2c-riic.c 		 t->scl_rise_ns / (1000000000 / rate), cks, brl, brh);
rate              403 drivers/i2c/busses/i2c-sh7760.c 		mck = mclk->rate;
rate              141 drivers/i2c/busses/i2c-st.c 	u32 rate;
rate              216 drivers/i2c/busses/i2c-st.c 		.rate			= 100000,
rate              225 drivers/i2c/busses/i2c-st.c 		.rate			= 400000,
rate              272 drivers/i2c/busses/i2c-st.c 	unsigned long rate;
rate              286 drivers/i2c/busses/i2c-st.c 	rate = clk_get_rate(i2c_dev->clk);
rate              287 drivers/i2c/busses/i2c-st.c 	ns_per_clk = 1000000000 / rate;
rate              290 drivers/i2c/busses/i2c-st.c 	val = rate / (2 * t->rate);
rate              324 drivers/i2c/busses/i2c-st.c 	val = rate / 10000000;
rate              329 drivers/i2c/busses/i2c-st.c 	val = i2c_dev->scl_min_width_us * rate / 100000000;
rate              333 drivers/i2c/busses/i2c-st.c 	val = i2c_dev->sda_min_width_us * rate / 100000000;
rate              185 drivers/i2c/busses/i2c-stm32f7.c 	u32 rate;
rate              317 drivers/i2c/busses/i2c-stm32f7.c 		.rate = 100000,
rate              329 drivers/i2c/busses/i2c-stm32f7.c 		.rate = 400000,
rate              341 drivers/i2c/busses/i2c-stm32f7.c 		.rate = 1000000,
rate              419 drivers/i2c/busses/i2c-stm32f7.c 	if (setup->speed_freq > i2c_specs[setup->speed].rate) {
rate              421 drivers/i2c/busses/i2c-stm32f7.c 			setup->speed_freq, i2c_specs[setup->speed].rate);
rate              578 drivers/i2c/busses/i2c-stm32f7.c 	setup->speed_freq = i2c_specs[setup->speed].rate;
rate              596 drivers/i2c/busses/i2c-stm32f7.c 					i2c_specs[setup->speed].rate;
rate              599 drivers/i2c/busses/i2c-stm32f7.c 					 i2c_specs[setup->speed].rate);
rate              459 drivers/i2c/busses/i2c-stu300.c 	unsigned long rate;
rate              485 drivers/i2c/busses/i2c-stu300.c 	       stu300_clktable[i].rate < clkrate)
rate               22 drivers/i2c/busses/i2c-synquacer.c #define WAIT_PCLK(n, rate)	\
rate               23 drivers/i2c/busses/i2c-synquacer.c 	ndelay(DIV_ROUND_UP(DIV_ROUND_UP(1000000000, rate), n) + 10)
rate               66 drivers/i2c/busses/i2c-synquacer.c #define SYNQUACER_I2C_BUS_CLK_FR(rate)	(((rate) / 20000000) + 1)
rate               69 drivers/i2c/busses/i2c-synquacer.c #define SYNQUACER_I2C_CLK_MASTER_STD(rate)			\
rate               70 drivers/i2c/busses/i2c-synquacer.c 	DIV_ROUND_UP(DIV_ROUND_UP((rate), 100000) - 2, 2)
rate               72 drivers/i2c/busses/i2c-synquacer.c #define SYNQUACER_I2C_CLK_MASTER_FAST(rate)			\
rate               73 drivers/i2c/busses/i2c-synquacer.c 	DIV_ROUND_UP((DIV_ROUND_UP((rate), 400000) - 2) * 2, 3)
rate               77 drivers/i2c/busses/i2c-synquacer.c #define SYNQUACER_I2C_CCR_CS_STD_MAX_18M(rate)			\
rate               78 drivers/i2c/busses/i2c-synquacer.c 	   ((SYNQUACER_I2C_CLK_MASTER_STD(rate) - 65)		\
rate               82 drivers/i2c/busses/i2c-synquacer.c #define SYNQUACER_I2C_CSR_CS_STD_MAX_18M(rate)		0x00
rate               85 drivers/i2c/busses/i2c-synquacer.c #define SYNQUACER_I2C_CCR_CS_FAST_MAX_18M(rate)			\
rate               86 drivers/i2c/busses/i2c-synquacer.c 	   ((SYNQUACER_I2C_CLK_MASTER_FAST(rate) - 1)		\
rate               90 drivers/i2c/busses/i2c-synquacer.c #define SYNQUACER_I2C_CSR_CS_FAST_MAX_18M(rate)		0x00
rate               94 drivers/i2c/busses/i2c-synquacer.c #define SYNQUACER_I2C_CCR_CS_STD_MIN_18M(rate)			\
rate               95 drivers/i2c/busses/i2c-synquacer.c 	   ((SYNQUACER_I2C_CLK_MASTER_STD(rate) - 1)		\
rate               99 drivers/i2c/busses/i2c-synquacer.c #define SYNQUACER_I2C_CSR_CS_STD_MIN_18M(rate)			\
rate              100 drivers/i2c/busses/i2c-synquacer.c 	   (((SYNQUACER_I2C_CLK_MASTER_STD(rate) - 1) >> 5)	\
rate              104 drivers/i2c/busses/i2c-synquacer.c #define SYNQUACER_I2C_CCR_CS_FAST_MIN_18M(rate)			\
rate              105 drivers/i2c/busses/i2c-synquacer.c 	   ((SYNQUACER_I2C_CLK_MASTER_FAST(rate) - 1)		\
rate              109 drivers/i2c/busses/i2c-synquacer.c #define SYNQUACER_I2C_CSR_CS_FAST_MIN_18M(rate)			\
rate              110 drivers/i2c/busses/i2c-synquacer.c 	   (((SYNQUACER_I2C_CLK_MASTER_FAST(rate) - 1) >> 5)	\
rate              250 drivers/ide/ide-xfer-mode.c int ide_set_xfer_rate(ide_drive_t *drive, u8 rate)
rate              259 drivers/ide/ide-xfer-mode.c 	rate = ide_rate_filter(drive, rate);
rate              261 drivers/ide/ide-xfer-mode.c 	BUG_ON(rate < XFER_PIO_0);
rate              263 drivers/ide/ide-xfer-mode.c 	if (rate >= XFER_PIO_0 && rate <= XFER_PIO_6)
rate              264 drivers/ide/ide-xfer-mode.c 		return ide_set_pio_mode(drive, rate);
rate              266 drivers/ide/ide-xfer-mode.c 	return ide_set_dma_mode(drive, rate);
rate              305 drivers/ide/palm_bk3710.c 	unsigned long rate, mem_size;
rate              314 drivers/ide/palm_bk3710.c 	rate = clk_get_rate(clk);
rate              315 drivers/ide/palm_bk3710.c 	if (!rate)
rate              319 drivers/ide/palm_bk3710.c 	ideclk_period = 1000000000UL / rate;
rate              358 drivers/ide/palm_bk3710.c 	palm_bk3710_port_info.udma_mask = rate < 100000000 ? ATA_UDMA4 :
rate              239 drivers/iio/accel/stk8312.c static int stk8312_set_sample_rate(struct stk8312_data *data, u8 rate)
rate              246 drivers/iio/accel/stk8312.c 	if (rate == data->sample_rate_idx)
rate              259 drivers/iio/accel/stk8312.c 	masked_reg = (ret & (~STK8312_SR_MASK)) | rate;
rate              265 drivers/iio/accel/stk8312.c 	data->sample_rate_idx = rate;
rate              215 drivers/iio/adc/ad7791.c 	unsigned int rate;
rate              254 drivers/iio/adc/ad7791.c 		rate = st->filter & AD7791_FILTER_RATE_MASK;
rate              255 drivers/iio/adc/ad7791.c 		*val = ad7791_sample_freq_avail[rate][0];
rate              256 drivers/iio/adc/ad7791.c 		*val2 = ad7791_sample_freq_avail[rate][1];
rate              576 drivers/iio/adc/axp20x_adc.c static int axp20x_adc_rate(struct axp20x_adc_iio *info, int rate)
rate              580 drivers/iio/adc/axp20x_adc.c 				  AXP20X_ADC_RATE_HZ(rate));
rate              583 drivers/iio/adc/axp20x_adc.c static int axp22x_adc_rate(struct axp20x_adc_iio *info, int rate)
rate              587 drivers/iio/adc/axp20x_adc.c 				  AXP22X_ADC_RATE_HZ(rate));
rate              590 drivers/iio/adc/axp20x_adc.c static int axp813_adc_rate(struct axp20x_adc_iio *info, int rate)
rate              594 drivers/iio/adc/axp20x_adc.c 				 AXP813_ADC_RATE_HZ(rate));
rate              603 drivers/iio/adc/axp20x_adc.c 						    int rate);
rate              164 drivers/iio/adc/ingenic-adc.c 	unsigned long parent_rate, rate;
rate              181 drivers/iio/adc/ingenic-adc.c 	rate = parent_rate / div_main;
rate              182 drivers/iio/adc/ingenic-adc.c 	if (rate < 500000 || rate > 8000000) {
rate              188 drivers/iio/adc/ingenic-adc.c 	div_10us = DIV_ROUND_UP(rate, 100000);
rate              124 drivers/iio/adc/lpc18xx_adc.c 	unsigned long rate;
rate              147 drivers/iio/adc/lpc18xx_adc.c 	rate = clk_get_rate(adc->clk);
rate              148 drivers/iio/adc/lpc18xx_adc.c 	clkdiv = DIV_ROUND_UP(rate, LPC18XX_ADC_CLK_TARGET);
rate              126 drivers/iio/adc/spear_adc.c static void spear_adc_set_scanrate(struct spear_adc_state *st, u32 rate)
rate              129 drivers/iio/adc/spear_adc.c 		__raw_writel(SPEAR600_ADC_SCAN_RATE_LO(rate),
rate              131 drivers/iio/adc/spear_adc.c 		__raw_writel(SPEAR600_ADC_SCAN_RATE_HI(rate),
rate              134 drivers/iio/adc/spear_adc.c 		__raw_writel(rate, &st->adc_base_spear3xx->scan_rate);
rate              128 drivers/iio/adc/stm32-adc-core.c 	unsigned long rate;
rate              138 drivers/iio/adc/stm32-adc-core.c 	rate = clk_get_rate(priv->aclk);
rate              139 drivers/iio/adc/stm32-adc-core.c 	if (!rate) {
rate              145 drivers/iio/adc/stm32-adc-core.c 		if ((rate / stm32f4_pclk_div[i]) <= priv->cfg->max_clk_rate_hz)
rate              153 drivers/iio/adc/stm32-adc-core.c 	priv->common.rate = rate / stm32f4_pclk_div[i];
rate              160 drivers/iio/adc/stm32-adc-core.c 		priv->common.rate / 1000);
rate              201 drivers/iio/adc/stm32-adc-core.c 	unsigned long rate;
rate              220 drivers/iio/adc/stm32-adc-core.c 		rate = clk_get_rate(priv->aclk);
rate              221 drivers/iio/adc/stm32-adc-core.c 		if (!rate) {
rate              234 drivers/iio/adc/stm32-adc-core.c 			if ((rate / div) <= priv->cfg->max_clk_rate_hz)
rate              240 drivers/iio/adc/stm32-adc-core.c 	rate = clk_get_rate(priv->bclk);
rate              241 drivers/iio/adc/stm32-adc-core.c 	if (!rate) {
rate              254 drivers/iio/adc/stm32-adc-core.c 		if ((rate / div) <= priv->cfg->max_clk_rate_hz)
rate              263 drivers/iio/adc/stm32-adc-core.c 	priv->common.rate = rate / div;
rate              273 drivers/iio/adc/stm32-adc-core.c 		ckmode ? "bus" : "adc", div, priv->common.rate / 1000);
rate              177 drivers/iio/adc/stm32-adc-core.h 	unsigned long			rate;
rate              645 drivers/iio/adc/stm32-adc.c 	if (adc->common->rate > STM32H7_BOOST_CLKRATE)
rate             1608 drivers/iio/adc/stm32-adc.c 	period_ns = NSEC_PER_SEC / adc->common->rate;
rate              425 drivers/iio/adc/ti-ads1015.c static int ads1015_set_data_rate(struct ads1015_data *data, int chan, int rate)
rate              430 drivers/iio/adc/ti-ads1015.c 		if (data->data_rate[i] == rate) {
rate              809 drivers/iio/chemical/bme680_core.c static bool bme680_is_valid_oversampling(int rate)
rate              811 drivers/iio/chemical/bme680_core.c 	return (rate > 0 && rate <= 16 && is_power_of_2(rate));
rate              514 drivers/iio/dac/ad5755.c 		val |= pdata->dac[i].slew.rate <<
rate              585 drivers/iio/dac/ad5755.c 			.rate = AD5755_SLEW_RATE_64k, \
rate              676 drivers/iio/dac/ad5755.c 			pdata->dac[devnr].slew.rate = AD5755_SLEW_RATE_64k;
rate              679 drivers/iio/dac/ad5755.c 					pdata->dac[devnr].slew.rate =
rate              705 drivers/iio/dac/ad5755.c 			pdata->dac[devnr].slew.rate = AD5755_SLEW_RATE_64k;
rate              653 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c static int inv_mpu6050_set_lpf(struct inv_mpu6050_state *st, int rate)
rate              664 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c 	h = (rate >> 1);
rate               77 drivers/iio/light/zopt2201.c 	u8 rate;
rate              308 drivers/iio/light/zopt2201.c 					data->rate);
rate              535 drivers/iio/light/zopt2201.c 	data->rate = ZOPT2201_MEAS_FREQ_100MS;
rate              289 drivers/iio/magnetometer/hmc5843_core.c static int hmc5843_set_samp_freq(struct hmc5843_data *data, u8 rate)
rate              296 drivers/iio/magnetometer/hmc5843_core.c 				 rate << HMC5843_RATE_OFFSET);
rate              400 drivers/iio/magnetometer/hmc5843_core.c 	int rate, range;
rate              404 drivers/iio/magnetometer/hmc5843_core.c 		rate = hmc5843_get_samp_freq_index(data, val, val2);
rate              405 drivers/iio/magnetometer/hmc5843_core.c 		if (rate < 0)
rate              408 drivers/iio/magnetometer/hmc5843_core.c 		return hmc5843_set_samp_freq(data, rate);
rate              346 drivers/iio/magnetometer/mag3110.c 	int rate, ret;
rate              354 drivers/iio/magnetometer/mag3110.c 		rate = mag3110_get_samp_freq_index(data, val, val2);
rate              355 drivers/iio/magnetometer/mag3110.c 		if (rate < 0) {
rate              361 drivers/iio/magnetometer/mag3110.c 		data->ctrl_reg1 |= rate << MAG3110_CTRL_DR_SHIFT;
rate              303 drivers/iio/pressure/dps310.c 	int rate;
rate              312 drivers/iio/pressure/dps310.c 	rate = dps310_get_pres_samp_freq(data);
rate              313 drivers/iio/pressure/dps310.c 	timeout = DPS310_POLL_TIMEOUT_US(rate);
rate              354 drivers/iio/pressure/dps310.c 	int rate;
rate              361 drivers/iio/pressure/dps310.c 	rate = dps310_get_temp_samp_freq(data);
rate              362 drivers/iio/pressure/dps310.c 	timeout = DPS310_POLL_TIMEOUT_US(rate);
rate               43 drivers/iio/pressure/ms5611.h 	unsigned short rate;
rate               25 drivers/iio/pressure/ms5611_core.c 	{ .cmd = _cmd, .conv_usec = _conv_usec, .rate = _rate }
rate              278 drivers/iio/pressure/ms5611_core.c 			*val = (int)st->temp_osr->rate;
rate              280 drivers/iio/pressure/ms5611_core.c 			*val = (int)st->pressure_osr->rate;
rate              288 drivers/iio/pressure/ms5611_core.c static const struct ms5611_osr *ms5611_find_osr(int rate,
rate              295 drivers/iio/pressure/ms5611_core.c 		if ((unsigned short)rate == osr[r].rate)
rate             1329 drivers/infiniband/core/cm.c 	cm_req_set_primary_packet_rate(req_msg, pri_path->rate);
rate             1364 drivers/infiniband/core/cm.c 		cm_req_set_alt_packet_rate(req_msg, alt_path->rate);
rate             1596 drivers/infiniband/core/cm.c 	primary_path->rate = cm_req_get_primary_packet_rate(req_msg);
rate             1617 drivers/infiniband/core/cm.c 		alt_path->rate = cm_req_get_alt_packet_rate(req_msg);
rate             3112 drivers/infiniband/core/cm.c 	cm_lap_set_packet_rate(lap_msg, alternate_path->rate);
rate             3209 drivers/infiniband/core/cm.c 	path->rate = cm_lap_get_packet_rate(lap_msg);
rate              303 drivers/infiniband/core/cm_msgs.h 						  u8 rate)
rate              307 drivers/infiniband/core/cm_msgs.h 				     0xFFFFFFC0) | (rate & 0x3F));
rate              365 drivers/infiniband/core/cm_msgs.h 					      u8 rate)
rate              369 drivers/infiniband/core/cm_msgs.h 				  0xFFFFFFC0) | (rate & 0x3F));
rate             2897 drivers/infiniband/core/cma.c 	route->path_rec->rate = iboe_get_rate(ndev);
rate             4385 drivers/infiniband/core/cma.c 	mc->multicast.ib->rec.rate = iboe_get_rate(ndev);
rate              306 drivers/infiniband/core/multicast.c 			   src->rate, dst->rate))
rate              761 drivers/infiniband/core/multicast.c 	rdma_ah_set_static_rate(ah_attr, rec->rate);
rate              269 drivers/infiniband/core/sa_query.c 	{ PATH_REC_FIELD(rate),
rate              403 drivers/infiniband/core/sa_query.c 	{ OPA_PATH_REC_FIELD(rate),
rate              463 drivers/infiniband/core/sa_query.c 	{ MCMEMBER_REC_FIELD(rate),
rate             1269 drivers/infiniband/core/sa_query.c 	rdma_ah_set_static_rate(ah_attr, rec->rate);
rate              244 drivers/infiniband/core/sysfs.c 	int rate;		/* in deci-Gb/sec */
rate              254 drivers/infiniband/core/sysfs.c 		rate = 50;
rate              258 drivers/infiniband/core/sysfs.c 		rate = 100;
rate              262 drivers/infiniband/core/sysfs.c 		rate = 100;
rate              266 drivers/infiniband/core/sysfs.c 		rate = 140;
rate              270 drivers/infiniband/core/sysfs.c 		rate = 250;
rate              274 drivers/infiniband/core/sysfs.c 		rate = 500;
rate              279 drivers/infiniband/core/sysfs.c 		rate = 25;
rate              283 drivers/infiniband/core/sysfs.c 	rate *= ib_width_enum_to_int(attr.active_width);
rate              284 drivers/infiniband/core/sysfs.c 	if (rate < 0)
rate              288 drivers/infiniband/core/sysfs.c 		       rate / 10, rate % 10 ? ".5" : "",
rate              344 drivers/infiniband/core/sysfs.c static PORT_ATTR_RO(rate);
rate              155 drivers/infiniband/core/uverbs_marshall.c 	dst->rate		= src->rate;
rate              207 drivers/infiniband/core/uverbs_marshall.c 	dst->rate		= src->rate;
rate              124 drivers/infiniband/core/verbs.c __attribute_const__ int ib_rate_to_mult(enum ib_rate rate)
rate              126 drivers/infiniband/core/verbs.c 	switch (rate) {
rate              182 drivers/infiniband/core/verbs.c __attribute_const__ int ib_rate_to_mbps(enum ib_rate rate)
rate              184 drivers/infiniband/core/verbs.c 	switch (rate) {
rate             7546 drivers/infiniband/hw/hfi1/chip.c 		u8 rate = remote_tx_rate & ppd->local_tx_rate;
rate             7548 drivers/infiniband/hw/hfi1/chip.c 		if (rate & 2)
rate             7550 drivers/infiniband/hw/hfi1/chip.c 		else if (rate & 1)
rate             1595 drivers/infiniband/hw/hfi1/hfi.h static inline u32 egress_cycles(u32 len, u32 rate)
rate             1609 drivers/infiniband/hw/hfi1/hfi.h 	cycles /= rate;
rate             2837 drivers/infiniband/hw/mlx5/qp.c static int ib_rate_to_mlx5(struct mlx5_ib_dev *dev, u8 rate)
rate             2839 drivers/infiniband/hw/mlx5/qp.c 	if (rate == IB_RATE_PORT_CURRENT)
rate             2842 drivers/infiniband/hw/mlx5/qp.c 	if (rate < IB_RATE_2_5_GBPS || rate > IB_RATE_600_GBPS)
rate             2845 drivers/infiniband/hw/mlx5/qp.c 	while (rate != IB_RATE_PORT_CURRENT &&
rate             2846 drivers/infiniband/hw/mlx5/qp.c 	       !(1 << (rate + MLX5_STAT_RATE_OFFSET) &
rate             2848 drivers/infiniband/hw/mlx5/qp.c 		--rate;
rate             2850 drivers/infiniband/hw/mlx5/qp.c 	return rate ? rate + MLX5_STAT_RATE_OFFSET : rate;
rate             3225 drivers/infiniband/hw/mlx5/qp.c 		if (new_rl.rate) {
rate             3230 drivers/infiniband/hw/mlx5/qp.c 				       err, new_rl.rate, new_rl.max_burst_sz,
rate             3252 drivers/infiniband/hw/mlx5/qp.c 	if ((old_rl.rate && !mlx5_rl_are_equal(&old_rl, &new_rl)) ||
rate             3663 drivers/infiniband/hw/mlx5/qp.c 			raw_qp_param.rl.rate = attr->rate_limit;
rate              101 drivers/infiniband/hw/mthca/mthca_av.c 		return memfree_rate_to_ib(mthca_rate, dev->rate[port - 1]);
rate              103 drivers/infiniband/hw/mthca/mthca_av.c 		return tavor_rate_to_ib(mthca_rate, dev->rate[port - 1]);
rate              136 drivers/infiniband/hw/mthca/mthca_av.c 	u8 rate;
rate              138 drivers/infiniband/hw/mthca/mthca_av.c 	if (!static_rate || ib_rate_to_mult(static_rate) >= dev->rate[port - 1])
rate              142 drivers/infiniband/hw/mthca/mthca_av.c 		rate = ib_rate_to_memfree(ib_rate_to_mult(static_rate),
rate              143 drivers/infiniband/hw/mthca/mthca_av.c 					  dev->rate[port - 1]);
rate              145 drivers/infiniband/hw/mthca/mthca_av.c 		rate = ib_rate_to_tavor(static_rate);
rate              147 drivers/infiniband/hw/mthca/mthca_av.c 	if (!(dev->limits.stat_rate_support & (1 << rate)))
rate              148 drivers/infiniband/hw/mthca/mthca_av.c 		rate = 1;
rate              150 drivers/infiniband/hw/mthca/mthca_av.c 	return rate;
rate              359 drivers/infiniband/hw/mthca/mthca_dev.h 	u8                    rate[MTHCA_MAX_PORTS];
rate               67 drivers/infiniband/hw/mthca/mthca_mad.c 	dev->rate[port_num - 1] = tprops->active_speed *
rate              201 drivers/infiniband/ulp/ipoib/ipoib_fs.c 	int rate;
rate              216 drivers/infiniband/ulp/ipoib/ipoib_fs.c 		rate = ib_rate_to_mbps(path.pathrec.rate);
rate              224 drivers/infiniband/ulp/ipoib/ipoib_fs.c 			   rate / 1000, rate % 1000);
rate              238 drivers/infiniband/ulp/ipoib/ipoib_multicast.c 		priv->broadcast->mcmember.rate = mcmember->rate;
rate              282 drivers/infiniband/ulp/ipoib/ipoib_multicast.c 	rdma_ah_set_static_rate(&av, mcast->mcmember.rate);
rate              525 drivers/infiniband/ulp/ipoib/ipoib_multicast.c 		rec.rate	  = priv->broadcast->mcmember.rate;
rate              292 drivers/input/keyboard/spear-keyboard.c 	unsigned int rate = 0, mode_ctl_reg, val;
rate              310 drivers/input/keyboard/spear-keyboard.c 			rate = kbd->suspended_rate / 1000000 - 1;
rate              312 drivers/input/keyboard/spear-keyboard.c 			rate = clk_get_rate(kbd->clk) / 1000000 - 1;
rate              316 drivers/input/keyboard/spear-keyboard.c 		val |= (rate & MODE_CTL_PCLK_FREQ_MSK)
rate              562 drivers/input/misc/adxl34x.c static DEVICE_ATTR(rate, 0664, adxl34x_rate_show, adxl34x_rate_store);
rate              612 drivers/input/mouse/cypress_ps2.c static void cypress_set_rate(struct psmouse *psmouse, unsigned int rate)
rate              616 drivers/input/mouse/cypress_ps2.c 	if (rate >= 80) {
rate              617 drivers/input/mouse/cypress_ps2.c 		psmouse->rate = 80;
rate              620 drivers/input/mouse/cypress_ps2.c 		psmouse->rate = 40;
rate              624 drivers/input/mouse/cypress_ps2.c 	ps2_command(&psmouse->ps2dev, (unsigned char *)&psmouse->rate,
rate              946 drivers/input/mouse/elantech.c 		unsigned int rate)
rate              950 drivers/input/mouse/elantech.c 	etd->original_set_rate(psmouse, rate);
rate              184 drivers/input/mouse/elantech.h 	void (*original_set_rate)(struct psmouse *psmouse, unsigned int rate);
rate              395 drivers/input/mouse/focaltech.c static void focaltech_set_rate(struct psmouse *psmouse, unsigned int rate)
rate               62 drivers/input/mouse/psmouse-base.c module_param_named(rate, psmouse_rate, uint, 0644);
rate               63 drivers/input/mouse/psmouse-base.c MODULE_PARM_DESC(rate, "Report rate, in reports per second.");
rate               84 drivers/input/mouse/psmouse-base.c PSMOUSE_DEFINE_ATTR(rate, S_IWUSR | S_IRUGO,
rate               85 drivers/input/mouse/psmouse-base.c 			(void *) offsetof(struct psmouse, rate),
rate              469 drivers/input/mouse/psmouse-base.c static void psmouse_set_rate(struct psmouse *psmouse, unsigned int rate)
rate              475 drivers/input/mouse/psmouse-base.c 	while (rates[i] > rate)
rate              479 drivers/input/mouse/psmouse-base.c 	psmouse->rate = r;
rate             1291 drivers/input/mouse/psmouse-base.c 		psmouse->set_rate(psmouse, psmouse->rate);
rate             1626 drivers/input/mouse/psmouse-base.c 	psmouse->rate = psmouse_rate;
rate              112 drivers/input/mouse/psmouse.h 	unsigned int rate;
rate              119 drivers/input/mouse/psmouse.h 	void (*set_rate)(struct psmouse *psmouse, unsigned int rate);
rate              585 drivers/input/mouse/synaptics.c 	if (psmouse->rate >= 80)
rate              607 drivers/input/mouse/synaptics.c static void synaptics_set_rate(struct psmouse *psmouse, unsigned int rate)
rate              611 drivers/input/mouse/synaptics.c 	if (rate >= 80) {
rate              613 drivers/input/mouse/synaptics.c 		psmouse->rate = 80;
rate              616 drivers/input/mouse/synaptics.c 		psmouse->rate = 40;
rate             1631 drivers/input/mouse/synaptics.c 	if (psmouse->rate >= 80 && impaired_toshiba_kbc) {
rate             1635 drivers/input/mouse/synaptics.c 		psmouse->rate = 40;
rate              139 drivers/interconnect/qcom/qcs404.c 	u64 rate;
rate              347 drivers/interconnect/qcom/qcs404.c 	u64 rate;
rate              388 drivers/interconnect/qcom/qcs404.c 	rate = max(sum_bw, max_peak_bw);
rate              390 drivers/interconnect/qcom/qcs404.c 	do_div(rate, qn->buswidth);
rate              392 drivers/interconnect/qcom/qcs404.c 	if (qn->rate == rate)
rate              396 drivers/interconnect/qcom/qcs404.c 		ret = clk_set_rate(qp->bus_clks[i].clk, rate);
rate              404 drivers/interconnect/qcom/qcs404.c 	qn->rate = rate;
rate             1167 drivers/md/bcache/request.c 			atomic_long_set(&dc->writeback_rate.rate, 1);
rate             1171 drivers/md/bcache/request.c 		atomic_long_set(&this_dc->writeback_rate.rate, 1);
rate              196 drivers/md/bcache/sysfs.c 		     wb ? atomic_long_read(&dc->writeback_rate.rate) << 9 : 0);
rate              206 drivers/md/bcache/sysfs.c 		char rate[20];
rate              218 drivers/md/bcache/sysfs.c 		bch_hprint(rate,
rate              219 drivers/md/bcache/sysfs.c 			   wb ? atomic_long_read(&dc->writeback_rate.rate) << 9
rate              239 drivers/md/bcache/sysfs.c 			       rate, dirty, target, proportional,
rate              308 drivers/md/bcache/sysfs.c 		long int v = atomic_long_read(&dc->writeback_rate.rate);
rate              313 drivers/md/bcache/sysfs.c 			atomic_long_set(&dc->writeback_rate.rate, v);
rate              205 drivers/md/bcache/util.c 	d->next += div_u64(done * NSEC_PER_SEC, atomic_long_read(&d->rate));
rate              445 drivers/md/bcache/util.h 	atomic_long_t		rate;
rate              117 drivers/md/bcache/writeback.c 			atomic_long_read(&dc->writeback_rate.rate);
rate              118 drivers/md/bcache/writeback.c 	atomic_long_set(&dc->writeback_rate.rate, new_rate);
rate              148 drivers/md/bcache/writeback.c 	atomic_long_set(&dc->writeback_rate.rate, INT_MAX);
rate              817 drivers/md/bcache/writeback.c 	atomic_long_set(&dc->writeback_rate.rate, 1024);
rate              170 drivers/media/dvb-frontends/cx24110.c 	static const int rate[FEC_AUTO] = {-1,    1,    2,    3,    5,    7, -1};
rate              197 drivers/media/dvb-frontends/cx24110.c 		if (rate[fec] < 0)
rate              200 drivers/media/dvb-frontends/cx24110.c 		cx24110_writereg(state, 0x05, (cx24110_readreg(state, 0x05) & 0xf0) | rate[fec]);
rate              202 drivers/media/dvb-frontends/cx24110.c 		cx24110_writereg(state, 0x22, (cx24110_readreg(state, 0x22) & 0xf0) | rate[fec]);
rate              443 drivers/media/dvb-frontends/cx24116.c static int cx24116_set_symbolrate(struct cx24116_state *state, u32 rate)
rate              445 drivers/media/dvb-frontends/cx24116.c 	dprintk("%s(%d)\n", __func__, rate);
rate              448 drivers/media/dvb-frontends/cx24116.c 	if ((rate > state->frontend.ops.info.symbol_rate_max) ||
rate              449 drivers/media/dvb-frontends/cx24116.c 	    (rate < state->frontend.ops.info.symbol_rate_min)) {
rate              450 drivers/media/dvb-frontends/cx24116.c 		dprintk("%s() unsupported symbol_rate = %d\n", __func__, rate);
rate              454 drivers/media/dvb-frontends/cx24116.c 	state->dnxt.symbol_rate = rate;
rate              455 drivers/media/dvb-frontends/cx24116.c 	dprintk("%s() symbol_rate = %d\n", __func__, rate);
rate              423 drivers/media/dvb-frontends/cx24117.c static int cx24117_set_symbolrate(struct cx24117_state *state, u32 rate)
rate              426 drivers/media/dvb-frontends/cx24117.c 		__func__, rate, state->demod);
rate              428 drivers/media/dvb-frontends/cx24117.c 	state->dnxt.symbol_rate = rate;
rate              432 drivers/media/dvb-frontends/cx24117.c 		__func__, state->demod, rate);
rate              833 drivers/media/dvb-frontends/cx24120.c static void cx24120_calculate_ber_window(struct cx24120_state *state, u32 rate)
rate              843 drivers/media/dvb-frontends/cx24120.c 	tmp = (u64)c->symbol_rate * rate;
rate              872 drivers/media/dvb-frontends/cx24120.c 	u32 rate;
rate              959 drivers/media/dvb-frontends/cx24120.c 		clock_ratios_table[idx].rate);
rate              972 drivers/media/dvb-frontends/cx24120.c 	cmd.arg[8] = (clock_ratios_table[idx].rate >> 8) & 0xff;
rate              973 drivers/media/dvb-frontends/cx24120.c 	cmd.arg[9] = (clock_ratios_table[idx].rate >> 0) & 0xff;
rate              978 drivers/media/dvb-frontends/cx24120.c 	cx24120_calculate_ber_window(state, clock_ratios_table[idx].rate);
rate             1105 drivers/media/dvb-frontends/cx24120.c static int cx24120_set_symbolrate(struct cx24120_state *state, u32 rate)
rate             1107 drivers/media/dvb-frontends/cx24120.c 	dev_dbg(&state->i2c->dev, "(%d)\n", rate);
rate             1109 drivers/media/dvb-frontends/cx24120.c 	state->dnxt.symbol_rate = rate;
rate             1112 drivers/media/dvb-frontends/cx24120.c 	if (rate  > 31000000) {
rate             1113 drivers/media/dvb-frontends/cx24120.c 		state->dnxt.clkdiv  = (-(rate < 31000001) & 3) + 2;
rate             1114 drivers/media/dvb-frontends/cx24120.c 		state->dnxt.ratediv = (-(rate < 31000001) & 6) + 4;
rate              134 drivers/media/dvb-frontends/mb86a16.c static int smrt_set(struct mb86a16_state *state, int rate)
rate              141 drivers/media/dvb-frontends/mb86a16.c 	tmp = (8192 * state->master_clk - 2 * m * rate * 8192 + state->master_clk / 2) / state->master_clk;
rate              341 drivers/media/dvb-frontends/mb86a16.c static void smrt_info_get(struct mb86a16_state *state, int rate)
rate              343 drivers/media/dvb-frontends/mb86a16.c 	if (rate >= 37501) {
rate              345 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 30001) {
rate              347 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 26251) {
rate              349 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 22501) {
rate              351 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 18751) {
rate              353 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 15001) {
rate              355 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 13126) {
rate              357 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 11251) {
rate              359 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 9376) {
rate              361 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 7501) {
rate              363 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 6563) {
rate              365 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 5626) {
rate              367 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 4688) {
rate              369 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 3751) {
rate              371 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 3282) {
rate              373 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 2814) {
rate              375 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 2344) {
rate              377 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 1876) {
rate              379 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 1641) {
rate              381 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 1407) {
rate              383 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >= 1172) {
rate              385 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >=  939) {
rate              387 drivers/media/dvb-frontends/mb86a16.c 	} else if (rate >=  821) {
rate              548 drivers/media/dvb-frontends/mb86a20s.c 	u32 rate;
rate              607 drivers/media/dvb-frontends/mb86a20s.c 	rate = isdbt_rate[mod][fec][guard] * segment * BER_SAMPLING_RATE;
rate              610 drivers/media/dvb-frontends/mb86a20s.c 	if (rate < 256)
rate              611 drivers/media/dvb-frontends/mb86a20s.c 		rate = 256;
rate              612 drivers/media/dvb-frontends/mb86a20s.c 	else if (rate > (1 << 24) - 1)
rate              613 drivers/media/dvb-frontends/mb86a20s.c 		rate = (1 << 24) - 1;
rate              619 drivers/media/dvb-frontends/mb86a20s.c 		rate, rate);
rate              621 drivers/media/dvb-frontends/mb86a20s.c 	state->estimated_rate[layer] = rate;
rate             2545 drivers/media/dvb-frontends/stv090x.c 	u32 reg, rate;
rate             2548 drivers/media/dvb-frontends/stv090x.c 	rate = STV090x_GETFIELD_Px(reg, VIT_CURPUN_FIELD);
rate             2550 drivers/media/dvb-frontends/stv090x.c 	switch (rate) {
rate              941 drivers/media/dvb-frontends/stv0910.c static int enable_puncture_rate(struct stv *state, enum fe_code_rate rate)
rate              945 drivers/media/dvb-frontends/stv0910.c 	switch (rate) {
rate              235 drivers/media/i2c/adv748x/adv748x-csi2.c int adv748x_csi2_set_pixelrate(struct v4l2_subdev *sd, s64 rate)
rate              242 drivers/media/i2c/adv748x/adv748x-csi2.c 	return v4l2_ctrl_s_ctrl_int64(tx->pixel_rate, rate);
rate              440 drivers/media/i2c/adv748x/adv748x.h int adv748x_csi2_set_pixelrate(struct v4l2_subdev *sd, s64 rate);
rate              846 drivers/media/i2c/ov5640.c 					 unsigned long rate,
rate              884 drivers/media/i2c/ov5640.c 			if (_rate < rate)
rate              887 drivers/media/i2c/ov5640.c 			if (abs(rate - _rate) < abs(rate - best)) {
rate              893 drivers/media/i2c/ov5640.c 			if (_rate == rate)
rate              948 drivers/media/i2c/ov5640.c 				unsigned long rate)
rate              966 drivers/media/i2c/ov5640.c 	ov5640_calc_sys_clk(sensor, rate, &prediv, &mult, &sysdiv);
rate              990 drivers/media/i2c/ov5640.c 				      unsigned long rate,
rate              994 drivers/media/i2c/ov5640.c 	unsigned long _rate = rate * OV5640_PLL_ROOT_DIV * OV5640_BIT_DIV *
rate             1006 drivers/media/i2c/ov5640.c static int ov5640_set_dvp_pclk(struct ov5640_dev *sensor, unsigned long rate)
rate             1011 drivers/media/i2c/ov5640.c 	ov5640_calc_pclk(sensor, rate, &prediv, &mult, &sysdiv, &pll_rdiv,
rate             1803 drivers/media/i2c/ov5640.c 	unsigned long rate;
rate             1826 drivers/media/i2c/ov5640.c 	rate = mode->vtot * mode->htot * 16;
rate             1827 drivers/media/i2c/ov5640.c 	rate *= ov5640_framerates[sensor->current_fr];
rate             1829 drivers/media/i2c/ov5640.c 		rate = rate / sensor->ep.bus.mipi_csi2.num_data_lanes;
rate             1830 drivers/media/i2c/ov5640.c 		ret = ov5640_set_mipi_pclk(sensor, rate);
rate             1832 drivers/media/i2c/ov5640.c 		rate = rate / sensor->ep.bus.parallel.bus_width;
rate             1833 drivers/media/i2c/ov5640.c 		ret = ov5640_set_dvp_pclk(sensor, rate);
rate             2109 drivers/media/i2c/ov5640.c 	enum ov5640_frame_rate rate = OV5640_15_FPS;
rate             2119 drivers/media/i2c/ov5640.c 		rate = OV5640_60_FPS;
rate             2132 drivers/media/i2c/ov5640.c 			rate = i;
rate             2140 drivers/media/i2c/ov5640.c 	mode = ov5640_find_mode(sensor, rate, width, height, false);
rate             2141 drivers/media/i2c/ov5640.c 	return mode ? rate : -EINVAL;
rate             2889 drivers/media/i2c/smiapp/smiapp-core.c 			unsigned long rate;
rate             2900 drivers/media/i2c/smiapp/smiapp-core.c 			rate = clk_get_rate(sensor->ext_clk);
rate             2901 drivers/media/i2c/smiapp/smiapp-core.c 			if (rate != sensor->hwcfg->ext_clk) {
rate             2904 drivers/media/i2c/smiapp/smiapp-core.c 					sensor->hwcfg->ext_clk, rate);
rate             2453 drivers/media/i2c/tda1997x.c 	int rate, err;
rate             2455 drivers/media/i2c/tda1997x.c 	rate = state->audio_samplerate;
rate             2457 drivers/media/i2c/tda1997x.c 					   rate, rate);
rate             2460 drivers/media/i2c/tda1997x.c 			rate);
rate             2463 drivers/media/i2c/tda1997x.c 	dev_info(component->dev, "set samplerate constraint to %dHz\n", rate);
rate              384 drivers/media/pci/saa7134/saa7134-alsa.c 	int analog_io, rate;
rate              422 drivers/media/pci/saa7134/saa7134-alsa.c 				rate = (32000 == dev->dmasound.rate) ?
rate              429 drivers/media/pci/saa7134/saa7134-alsa.c 					   0x03, rate);
rate              568 drivers/media/pci/saa7134/saa7134-alsa.c 	dev->dmasound.rate = runtime->rate;
rate              501 drivers/media/pci/saa7134/saa7134.h 	unsigned int               rate;
rate              156 drivers/media/pci/tw686x/tw686x-audio.c 	if (((dev->audio_rate != rt->rate) ||
rate              163 drivers/media/pci/tw686x/tw686x-audio.c 	if (dev->audio_rate != rt->rate) {
rate              166 drivers/media/pci/tw686x/tw686x-audio.c 		dev->audio_rate = rt->rate;
rate              167 drivers/media/pci/tw686x/tw686x-audio.c 		reg = ((125000000 / rt->rate) << 16) +
rate              168 drivers/media/pci/tw686x/tw686x-audio.c 		       ((125000000 % rt->rate) << 16) / rt->rate;
rate              369 drivers/media/platform/atmel/atmel-isc-base.c 			unsigned long rate;
rate              372 drivers/media/platform/atmel/atmel-isc-base.c 			rate = DIV_ROUND_CLOSEST(parent_rate, div);
rate              373 drivers/media/platform/atmel/atmel-isc-base.c 			diff = abs(req->rate - rate);
rate              376 drivers/media/platform/atmel/atmel-isc-base.c 				best_rate = rate;
rate              382 drivers/media/platform/atmel/atmel-isc-base.c 			if (!best_diff || rate < req->rate)
rate              399 drivers/media/platform/atmel/atmel-isc-base.c 	req->rate = best_rate;
rate              424 drivers/media/platform/atmel/atmel-isc-base.c 			     unsigned long rate,
rate              430 drivers/media/platform/atmel/atmel-isc-base.c 	if (!rate)
rate              433 drivers/media/platform/atmel/atmel-isc-base.c 	div = DIV_ROUND_CLOSEST(parent_rate, rate);
rate              225 drivers/media/platform/omap3isp/isp.c static u32 isp_xclk_calc_divider(unsigned long *rate, unsigned long parent_rate)
rate              229 drivers/media/platform/omap3isp/isp.c 	if (*rate >= parent_rate) {
rate              230 drivers/media/platform/omap3isp/isp.c 		*rate = parent_rate;
rate              234 drivers/media/platform/omap3isp/isp.c 	if (*rate == 0)
rate              235 drivers/media/platform/omap3isp/isp.c 		*rate = 1;
rate              237 drivers/media/platform/omap3isp/isp.c 	divider = DIV_ROUND_CLOSEST(parent_rate, *rate);
rate              241 drivers/media/platform/omap3isp/isp.c 	*rate = parent_rate / divider;
rate              245 drivers/media/platform/omap3isp/isp.c static long isp_xclk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              248 drivers/media/platform/omap3isp/isp.c 	isp_xclk_calc_divider(&rate, *parent_rate);
rate              249 drivers/media/platform/omap3isp/isp.c 	return rate;
rate              252 drivers/media/platform/omap3isp/isp.c static int isp_xclk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              259 drivers/media/platform/omap3isp/isp.c 	divider = isp_xclk_calc_divider(&rate, parent_rate);
rate              270 drivers/media/platform/omap3isp/isp.c 		__func__, xclk->id == ISP_XCLK_A ? 'a' : 'b', rate, divider);
rate             1317 drivers/media/platform/omap3isp/isp.c 	unsigned long rate;
rate             1334 drivers/media/platform/omap3isp/isp.c 	rate = clk_get_rate(isp->clock[ISP_CLK_CAM_MCLK]);
rate             1335 drivers/media/platform/omap3isp/isp.c 	if (rate != CM_CAM_MCLK_HZ)
rate             1338 drivers/media/platform/omap3isp/isp.c 				   " actual   : %ld\n", CM_CAM_MCLK_HZ, rate);
rate              939 drivers/media/platform/omap3isp/ispccdc.c 	unsigned int rate;
rate              949 drivers/media/platform/omap3isp/ispccdc.c 		rate = pipe->l3_ick / 2 * 9 / 10;
rate              951 drivers/media/platform/omap3isp/ispccdc.c 		rate = pipe->l3_ick / 2;
rate              953 drivers/media/platform/omap3isp/ispccdc.c 	*max_rate = min(*max_rate, rate);
rate             1035 drivers/media/platform/omap3isp/ispvideo.c 		unsigned int rate = UINT_MAX;
rate             1040 drivers/media/platform/omap3isp/ispvideo.c 		omap3isp_ccdc_max_rate(&isp->isp_ccdc, &rate);
rate             1041 drivers/media/platform/omap3isp/ispvideo.c 		if (pipe->external_rate > rate)
rate              486 drivers/media/platform/qcom/camss/camss-csid.c 			long rate;
rate              505 drivers/media/platform/qcom/camss/camss-csid.c 			rate = clk_round_rate(clock->clk, clock->freq[j]);
rate              506 drivers/media/platform/qcom/camss/camss-csid.c 			if (rate < 0) {
rate              508 drivers/media/platform/qcom/camss/camss-csid.c 					rate);
rate              512 drivers/media/platform/qcom/camss/camss-csid.c 			ret = clk_set_rate(clock->clk, rate);
rate             1131 drivers/media/platform/qcom/camss/camss-vfe.c 			long rate;
rate             1169 drivers/media/platform/qcom/camss/camss-vfe.c 			rate = clk_round_rate(clock->clk, clock->freq[j]);
rate             1170 drivers/media/platform/qcom/camss/camss-vfe.c 			if (rate < 0) {
rate             1172 drivers/media/platform/qcom/camss/camss-vfe.c 					rate);
rate             1176 drivers/media/platform/qcom/camss/camss-vfe.c 			ret = clk_set_rate(clock->clk, rate);
rate             1213 drivers/media/platform/qcom/camss/camss-vfe.c 			unsigned long rate;
rate             1236 drivers/media/platform/qcom/camss/camss-vfe.c 			rate = clk_get_rate(clock->clk);
rate             1237 drivers/media/platform/qcom/camss/camss-vfe.c 			if (rate < min_rate)
rate              293 drivers/media/platform/qcom/camss/camss.c inline void camss_add_clock_margin(u64 *rate)
rate              295 drivers/media/platform/qcom/camss/camss.c 	*rate *= CAMSS_CLOCK_MARGIN_NUMERATOR;
rate              296 drivers/media/platform/qcom/camss/camss.c 	*rate = div_u64(*rate, CAMSS_CLOCK_MARGIN_DENOMINATOR);
rate              105 drivers/media/platform/qcom/camss/camss.h void camss_add_clock_margin(u64 *rate);
rate               25 drivers/media/platform/vivid/vivid-vbi-gen.c 	const unsigned rate = 5000000;	/* WSS has a 5 MHz transmission rate */
rate               41 drivers/media/platform/vivid/vivid-vbi-gen.c 		unsigned n = ((bit + 1) * sampling_rate) / rate;
rate               51 drivers/media/platform/vivid/vivid-vbi-gen.c 	const unsigned rate = 6937500 / 10;	/* Teletext has a 6.9375 MHz transmission rate */
rate               61 drivers/media/platform/vivid/vivid-vbi-gen.c 		unsigned n = ((bit + 1) * sampling_rate) / rate;
rate               86 drivers/media/platform/vivid/vivid-vbi-gen.c 	const unsigned rate = 1000000;	/* CC has a 1 MHz transmission rate */
rate              102 drivers/media/platform/vivid/vivid-vbi-gen.c 		unsigned n = ((bit + 1) * sampling_rate) / rate;
rate               68 drivers/media/rc/ir-hix5hd2.c 	unsigned long		rate;
rate               98 drivers/media/rc/ir-hix5hd2.c 	u32 val, rate;
rate              111 drivers/media/rc/ir-hix5hd2.c 	rate = DIV_ROUND_CLOSEST(priv->rate, 1000000);
rate              117 drivers/media/rc/ir-hix5hd2.c 	val |= (rate - 1) & IR_CFG_FREQ_MASK << IR_CFG_FREQ_SHIFT;
rate              251 drivers/media/rc/ir-hix5hd2.c 	priv->rate = clk_get_rate(priv->clock);
rate              522 drivers/media/usb/cx231xx/cx231xx-audio.c 	unsigned int channels, rate, format;
rate              525 drivers/media/usb/cx231xx/cx231xx-audio.c 	rate = params_rate(hw_params);
rate              377 drivers/media/usb/em28xx/em28xx-audio.c 	unsigned int channels, rate, format;
rate              380 drivers/media/usb/em28xx/em28xx-audio.c 	rate = params_rate(hw_params);
rate              196 drivers/media/v4l2-core/v4l2-clk.c int v4l2_clk_set_rate(struct v4l2_clk *clk, unsigned long rate)
rate              201 drivers/media/v4l2-core/v4l2-clk.c 		long r = clk_round_rate(clk->clk, rate);
rate              216 drivers/media/v4l2-core/v4l2-clk.c 		ret = clk->ops->set_rate(clk, rate);
rate              285 drivers/media/v4l2-core/v4l2-clk.c 	unsigned long rate;
rate              292 drivers/media/v4l2-core/v4l2-clk.c 	return priv->rate;
rate              296 drivers/media/v4l2-core/v4l2-clk.c 				unsigned long rate, struct module *owner)
rate              304 drivers/media/v4l2-core/v4l2-clk.c 	priv->rate = rate;
rate              141 drivers/memory/jz4780-nemc.c 	unsigned long rate;
rate              143 drivers/memory/jz4780-nemc.c 	rate = clk_get_rate(nemc->clk);
rate              144 drivers/memory/jz4780-nemc.c 	if (!rate)
rate              148 drivers/memory/jz4780-nemc.c 	return div64_ul(1000000000000ull, rate);
rate              272 drivers/memory/mvebu-devbus.c 	unsigned long rate;
rate              295 drivers/memory/mvebu-devbus.c 	rate = clk_get_rate(clk) / 1000;
rate              296 drivers/memory/mvebu-devbus.c 	devbus->tick_ps = 1000000000 / rate;
rate              284 drivers/memory/omap-gpmc.c 	unsigned long rate = clk_get_rate(gpmc_l3_clk);
rate              286 drivers/memory/omap-gpmc.c 	rate /= 1000;
rate              287 drivers/memory/omap-gpmc.c 	rate = 1000000000 / rate;	/* In picoseconds */
rate              289 drivers/memory/omap-gpmc.c 	return rate;
rate               55 drivers/memory/pl172.c 	unsigned long rate;
rate               68 drivers/memory/pl172.c 		cycles = DIV_ROUND_UP(val * pl172->rate, NSEC_PER_MSEC) - start;
rate              234 drivers/memory/pl172.c 	pl172->rate = clk_get_rate(pl172->clk) / MSEC_PER_SEC;
rate              235 drivers/memory/pl172.c 	if (!pl172->rate) {
rate              310 drivers/memory/tegra/mc.c void tegra_mc_write_emem_configuration(struct tegra_mc *mc, unsigned long rate)
rate              316 drivers/memory/tegra/mc.c 		if (mc->timings[i].rate == rate) {
rate              324 drivers/memory/tegra/mc.c 			rate);
rate              357 drivers/memory/tegra/mc.c 	timing->rate = tmp;
rate              440 drivers/memory/tegra/tegra124-emc.c 	unsigned long rate;
rate              537 drivers/memory/tegra/tegra124-emc.c 						unsigned long rate)
rate              543 drivers/memory/tegra/tegra124-emc.c 		if (emc->timings[i].rate == rate) {
rate              550 drivers/memory/tegra/tegra124-emc.c 		dev_err(emc->dev, "no timing for rate %lu\n", rate);
rate              558 drivers/memory/tegra/tegra124-emc.c 				    unsigned long rate)
rate              560 drivers/memory/tegra/tegra124-emc.c 	struct emc_timing *timing = tegra_emc_find_timing(emc, rate);
rate              665 drivers/memory/tegra/tegra124-emc.c 	tegra_mc_write_emem_configuration(emc->mc, timing->rate);
rate              786 drivers/memory/tegra/tegra124-emc.c 				      unsigned long rate)
rate              788 drivers/memory/tegra/tegra124-emc.c 	struct emc_timing *timing = tegra_emc_find_timing(emc, rate);
rate              888 drivers/memory/tegra/tegra124-emc.c 	timing->rate = value;
rate              937 drivers/memory/tegra/tegra124-emc.c 	if (a->rate < b->rate)
rate              939 drivers/memory/tegra/tegra124-emc.c 	else if (a->rate == b->rate)
rate             1003 drivers/memory/tegra/tegra124-emc.c static int emc_debug_rate_get(void *data, u64 *rate)
rate             1007 drivers/memory/tegra/tegra124-emc.c 	*rate = clk_get_rate(c);
rate             1012 drivers/memory/tegra/tegra124-emc.c static int emc_debug_rate_set(void *data, u64 rate)
rate             1016 drivers/memory/tegra/tegra124-emc.c 	return clk_set_rate(c, rate);
rate             1031 drivers/memory/tegra/tegra124-emc.c 		seq_printf(s, "%s%lu", prefix, timing->rate);
rate              132 drivers/memory/tegra/tegra20-emc.c 	unsigned long rate;
rate              176 drivers/memory/tegra/tegra20-emc.c 						unsigned long rate)
rate              182 drivers/memory/tegra/tegra20-emc.c 		if (emc->timings[i].rate >= rate) {
rate              189 drivers/memory/tegra/tegra20-emc.c 		dev_err(emc->dev, "no timing for rate %lu\n", rate);
rate              196 drivers/memory/tegra/tegra20-emc.c static int emc_prepare_timing_change(struct tegra_emc *emc, unsigned long rate)
rate              198 drivers/memory/tegra/tegra20-emc.c 	struct emc_timing *timing = tegra_emc_find_timing(emc, rate);
rate              205 drivers/memory/tegra/tegra20-emc.c 		__func__, timing->rate, rate);
rate              282 drivers/memory/tegra/tegra20-emc.c 	u32 rate;
rate              290 drivers/memory/tegra/tegra20-emc.c 	err = of_property_read_u32(node, "clock-frequency", &rate);
rate              311 drivers/memory/tegra/tegra20-emc.c 	timing->rate = rate * 2 * 1000;
rate              314 drivers/memory/tegra/tegra20-emc.c 		__func__, node, timing->rate);
rate              324 drivers/memory/tegra/tegra20-emc.c 	if (a->rate < b->rate)
rate              327 drivers/memory/tegra/tegra20-emc.c 	if (a->rate > b->rate)
rate              427 drivers/memory/tegra/tegra20-emc.c static int emc_init(struct tegra_emc *emc, unsigned long rate)
rate              438 drivers/memory/tegra/tegra20-emc.c 	err = clk_set_rate(emc->pll_m, rate);
rate              452 drivers/memory/tegra/tegra20-emc.c 	err = clk_set_rate(emc->clk, rate);
rate              554 drivers/memory/tegra/tegra20-emc.c 	err = emc_init(emc, emc->timings[emc->num_timings - 1].rate);
rate               50 drivers/mfd/asic3.c 	unsigned long rate;
rate               56 drivers/mfd/asic3.c 		.rate = _rate,			\
rate             1473 drivers/mfd/db8500-prcmu.c 	u64 rate;
rate             1480 drivers/mfd/db8500-prcmu.c 	rate = src_rate;
rate             1481 drivers/mfd/db8500-prcmu.c 	rate *= ((val & PRCM_PLL_FREQ_D_MASK) >> PRCM_PLL_FREQ_D_SHIFT);
rate             1501 drivers/mfd/db8500-prcmu.c 	(void)do_div(rate, div);
rate             1503 drivers/mfd/db8500-prcmu.c 	return (unsigned long)rate;
rate             1512 drivers/mfd/db8500-prcmu.c 	unsigned long rate = ROOT_CLOCK_RATE;
rate             1518 drivers/mfd/db8500-prcmu.c 			rate /= 2;
rate             1519 drivers/mfd/db8500-prcmu.c 		return rate;
rate             1526 drivers/mfd/db8500-prcmu.c 		rate = pll_rate(PRCM_PLLSOC0_FREQ, rate, clk_mgt[clock].branch);
rate             1528 drivers/mfd/db8500-prcmu.c 		rate = pll_rate(PRCM_PLLSOC1_FREQ, rate, clk_mgt[clock].branch);
rate             1530 drivers/mfd/db8500-prcmu.c 		rate = pll_rate(PRCM_PLLDDR_FREQ, rate, clk_mgt[clock].branch);
rate             1536 drivers/mfd/db8500-prcmu.c 		u64 r = (rate * 10);
rate             1543 drivers/mfd/db8500-prcmu.c 		return rate / val;
rate             1551 drivers/mfd/db8500-prcmu.c 	unsigned long rate;
rate             1558 drivers/mfd/db8500-prcmu.c 		rate = pll_rate(PRCM_PLLDDR_FREQ, ROOT_CLOCK_RATE, PLL_FIX);
rate             1562 drivers/mfd/db8500-prcmu.c 			rate /= 2;
rate             1567 drivers/mfd/db8500-prcmu.c 		rate /= r;
rate             1570 drivers/mfd/db8500-prcmu.c 		rate = pll_rate(PRCM_PLLARM_FREQ, ROOT_CLOCK_RATE, PLL_DIV);
rate             1573 drivers/mfd/db8500-prcmu.c 	return rate;
rate             1655 drivers/mfd/db8500-prcmu.c static u32 clock_divider(unsigned long src_rate, unsigned long rate)
rate             1659 drivers/mfd/db8500-prcmu.c 	div = (src_rate / rate);
rate             1662 drivers/mfd/db8500-prcmu.c 	if (rate < (src_rate / div))
rate             1667 drivers/mfd/db8500-prcmu.c static long round_clock_rate(u8 clock, unsigned long rate)
rate             1677 drivers/mfd/db8500-prcmu.c 	div = clock_divider(src_rate, rate);
rate             1689 drivers/mfd/db8500-prcmu.c 		if (r <= rate)
rate             1714 drivers/mfd/db8500-prcmu.c static long round_armss_rate(unsigned long rate)
rate             1732 drivers/mfd/db8500-prcmu.c 		if (rate <= freq)
rate             1743 drivers/mfd/db8500-prcmu.c static long round_plldsi_rate(unsigned long rate)
rate             1751 drivers/mfd/db8500-prcmu.c 	rem = rate;
rate             1756 drivers/mfd/db8500-prcmu.c 		d = (r * rate);
rate             1767 drivers/mfd/db8500-prcmu.c 		if (rate < d) {
rate             1772 drivers/mfd/db8500-prcmu.c 		if ((rate - d) < rem) {
rate             1773 drivers/mfd/db8500-prcmu.c 			rem = (rate - d);
rate             1780 drivers/mfd/db8500-prcmu.c static long round_dsiclk_rate(unsigned long rate)
rate             1788 drivers/mfd/db8500-prcmu.c 	div = clock_divider(src_rate, rate);
rate             1794 drivers/mfd/db8500-prcmu.c static long round_dsiescclk_rate(unsigned long rate)
rate             1801 drivers/mfd/db8500-prcmu.c 	div = clock_divider(src_rate, rate);
rate             1807 drivers/mfd/db8500-prcmu.c long prcmu_round_clock_rate(u8 clock, unsigned long rate)
rate             1810 drivers/mfd/db8500-prcmu.c 		return round_clock_rate(clock, rate);
rate             1812 drivers/mfd/db8500-prcmu.c 		return round_armss_rate(rate);
rate             1814 drivers/mfd/db8500-prcmu.c 		return round_plldsi_rate(rate);
rate             1816 drivers/mfd/db8500-prcmu.c 		return round_dsiclk_rate(rate);
rate             1818 drivers/mfd/db8500-prcmu.c 		return round_dsiescclk_rate(rate);
rate             1823 drivers/mfd/db8500-prcmu.c static void set_clock_rate(u8 clock, unsigned long rate)
rate             1839 drivers/mfd/db8500-prcmu.c 	div = clock_divider(src_rate, rate);
rate             1854 drivers/mfd/db8500-prcmu.c 			if (r <= rate) {
rate             1872 drivers/mfd/db8500-prcmu.c static int set_armss_rate(unsigned long rate)
rate             1891 drivers/mfd/db8500-prcmu.c 		if (rate == freq)
rate             1895 drivers/mfd/db8500-prcmu.c 	if (rate != freq)
rate             1903 drivers/mfd/db8500-prcmu.c static int set_plldsi_rate(unsigned long rate)
rate             1911 drivers/mfd/db8500-prcmu.c 	rem = rate;
rate             1917 drivers/mfd/db8500-prcmu.c 		d = (r * rate);
rate             1928 drivers/mfd/db8500-prcmu.c 		if (rate < hwrate) {
rate             1934 drivers/mfd/db8500-prcmu.c 		if ((rate - hwrate) < rem) {
rate             1935 drivers/mfd/db8500-prcmu.c 			rem = (rate - hwrate);
rate             1949 drivers/mfd/db8500-prcmu.c static void set_dsiclk_rate(u8 n, unsigned long rate)
rate             1955 drivers/mfd/db8500-prcmu.c 			clock_rate(PRCMU_HDMICLK), PLL_RAW), rate);
rate             1967 drivers/mfd/db8500-prcmu.c static void set_dsiescclk_rate(u8 n, unsigned long rate)
rate             1972 drivers/mfd/db8500-prcmu.c 	div = clock_divider(clock_rate(PRCMU_TVCLK), rate);
rate             1979 drivers/mfd/db8500-prcmu.c int prcmu_set_clock_rate(u8 clock, unsigned long rate)
rate             1982 drivers/mfd/db8500-prcmu.c 		set_clock_rate(clock, rate);
rate             1984 drivers/mfd/db8500-prcmu.c 		return set_armss_rate(rate);
rate             1986 drivers/mfd/db8500-prcmu.c 		return set_plldsi_rate(rate);
rate             1988 drivers/mfd/db8500-prcmu.c 		set_dsiclk_rate((clock - PRCMU_DSI0CLK), rate);
rate             1990 drivers/mfd/db8500-prcmu.c 		set_dsiescclk_rate((clock - PRCMU_DSI0ESCCLK), rate);
rate              570 drivers/mfd/twl-core.c 	int rate;
rate              576 drivers/mfd/twl-core.c 		rate = 19200000;
rate              579 drivers/mfd/twl-core.c 		rate = 26000000;
rate              582 drivers/mfd/twl-core.c 		rate = 38400000;
rate              586 drivers/mfd/twl-core.c 		rate = -EINVAL;
rate              590 drivers/mfd/twl-core.c 	return rate;
rate              995 drivers/mfd/twl-core.c 	u32 rate;
rate             1005 drivers/mfd/twl-core.c 	rate = clk_get_rate(osc);
rate             1008 drivers/mfd/twl-core.c 	switch (rate) {
rate              718 drivers/misc/apds990x.c static int apds990x_set_arate(struct apds990x_chip *chip, int rate)
rate              723 drivers/misc/apds990x.c 		if (rate >= arates_hz[i])
rate              216 drivers/misc/bh1770glc.c 	int rate;
rate              218 drivers/misc/bh1770glc.c 	rate = (mode == PROX_ABOVE_THRESHOLD) ?
rate              223 drivers/misc/bh1770glc.c 					rate);
rate              572 drivers/misc/bh1770glc.c 	int rate = 0;
rate              603 drivers/misc/bh1770glc.c 		rate = prox_rates_ms[chip->prox_rate_threshold];
rate              617 drivers/misc/bh1770glc.c 	if (rate) {
rate              624 drivers/misc/bh1770glc.c 				msecs_to_jiffies(rate + 50));
rate              797 drivers/misc/bh1770glc.c static int bh1770_prox_rate_validate(int rate)
rate              802 drivers/misc/bh1770glc.c 		if (rate >= prox_rates_hz[i])
rate              234 drivers/misc/lis3lv02d/lis3lv02d.c static int lis3lv02d_set_odr(struct lis3lv02d *lis3, int rate)
rate              239 drivers/misc/lis3lv02d/lis3lv02d.c 	if (!rate)
rate              248 drivers/misc/lis3lv02d/lis3lv02d.c 		if (lis3->odrs[i] == rate) {
rate              820 drivers/misc/lis3lv02d/lis3lv02d.c 	unsigned long rate;
rate              823 drivers/misc/lis3lv02d/lis3lv02d.c 	ret = kstrtoul(buf, 0, &rate);
rate              828 drivers/misc/lis3lv02d/lis3lv02d.c 	if (lis3lv02d_set_odr(lis3, rate))
rate              836 drivers/misc/lis3lv02d/lis3lv02d.c static DEVICE_ATTR(rate, S_IRUGO | S_IWUSR, lis3lv02d_rate_show,
rate              101 drivers/mmc/core/mmc_test.c 	unsigned int rate;
rate              534 drivers/mmc/core/mmc_test.c 	unsigned int rate, unsigned int iops)
rate              548 drivers/mmc/core/mmc_test.c 	tr->rate = rate;
rate              560 drivers/mmc/core/mmc_test.c 	unsigned int rate, iops, sectors = bytes >> 9;
rate              565 drivers/mmc/core/mmc_test.c 	rate = mmc_test_rate(bytes, &ts);
rate              572 drivers/mmc/core/mmc_test.c 			 (u32)ts.tv_nsec, rate / 1000, rate / 1024,
rate              575 drivers/mmc/core/mmc_test.c 	mmc_test_save_transfer_result(test, 1, sectors, ts, rate, iops);
rate              585 drivers/mmc/core/mmc_test.c 	unsigned int rate, iops, sectors = bytes >> 9;
rate              591 drivers/mmc/core/mmc_test.c 	rate = mmc_test_rate(tot, &ts);
rate              600 drivers/mmc/core/mmc_test.c 			 rate / 1000, rate / 1024, iops / 100, iops % 100,
rate              603 drivers/mmc/core/mmc_test.c 	mmc_test_save_transfer_result(test, count, sectors, ts, rate, iops);
rate             3058 drivers/mmc/core/mmc_test.c 				tr->rate, tr->iops / 100, tr->iops % 100);
rate              602 drivers/mmc/host/au1xmmc.c static void au1xmmc_set_clock(struct au1xmmc_host *host, int rate)
rate              605 drivers/mmc/host/au1xmmc.c 	unsigned int divisor = ((pbus / rate) / 2) - 1;
rate              839 drivers/mmc/host/jz4740_mmc.c static int jz4740_mmc_set_clock_rate(struct jz4740_mmc_host *host, int rate)
rate              849 drivers/mmc/host/jz4740_mmc.c 	while (real_rate > rate && div < 7) {
rate              338 drivers/mmc/host/meson-gx-mmc.c static int meson_mmc_clk_set(struct meson_host *host, unsigned long rate,
rate              346 drivers/mmc/host/meson-gx-mmc.c 	if (host->ddr == ddr && host->req_rate == rate)
rate              355 drivers/mmc/host/meson-gx-mmc.c 	if (!rate)
rate              365 drivers/mmc/host/meson-gx-mmc.c 		rate <<= 1;
rate              373 drivers/mmc/host/meson-gx-mmc.c 	ret = clk_set_rate(host->mmc_clk, rate);
rate              376 drivers/mmc/host/meson-gx-mmc.c 			rate, ret);
rate              380 drivers/mmc/host/meson-gx-mmc.c 	host->req_rate = rate;
rate              390 drivers/mmc/host/meson-gx-mmc.c 	if (rate != mmc->actual_clock)
rate              391 drivers/mmc/host/meson-gx-mmc.c 		dev_dbg(host->dev, "requested rate was %lu\n", rate);
rate              143 drivers/mmc/host/moxart-mmc.c 	u32				rate;
rate              390 drivers/mmc/host/moxart-mmc.c 	writel(host->rate, host->base + REG_DATA_TIMER);
rate              507 drivers/mmc/host/moxart-mmc.c 		host->rate = host->sysclk / (2 * (div + 1));
rate              508 drivers/mmc/host/moxart-mmc.c 		if (host->rate > host->sysclk)
rate              446 drivers/mmc/host/pxamci.c 		unsigned long rate = host->clkrate;
rate              447 drivers/mmc/host/pxamci.c 		unsigned int clk = rate / ios->clock;
rate              465 drivers/mmc/host/pxamci.c 			if (rate / clk > ios->clock)
rate              156 drivers/mmc/host/sdhci-s3c.c 	unsigned long rate, max = 0;
rate              160 drivers/mmc/host/sdhci-s3c.c 		rate = ourhost->clk_rates[src];
rate              161 drivers/mmc/host/sdhci-s3c.c 		if (rate > max)
rate              162 drivers/mmc/host/sdhci-s3c.c 			max = rate;
rate              178 drivers/mmc/host/sdhci-s3c.c 	unsigned long rate;
rate              190 drivers/mmc/host/sdhci-s3c.c 		rate = clk_round_rate(clksrc, wanted);
rate              191 drivers/mmc/host/sdhci-s3c.c 		return wanted - rate;
rate              194 drivers/mmc/host/sdhci-s3c.c 	rate = ourhost->clk_rates[src];
rate              197 drivers/mmc/host/sdhci-s3c.c 		if ((rate >> shift) <= wanted)
rate              204 drivers/mmc/host/sdhci-s3c.c 			src, rate, rate / 256, wanted);
rate              209 drivers/mmc/host/sdhci-s3c.c 		src, rate, wanted, rate >> shift);
rate              211 drivers/mmc/host/sdhci-s3c.c 	return wanted - (rate >> shift);
rate              305 drivers/mmc/host/sdhci-s3c.c 	unsigned long rate, min = ULONG_MAX;
rate              309 drivers/mmc/host/sdhci-s3c.c 		rate = ourhost->clk_rates[src] / 256;
rate              310 drivers/mmc/host/sdhci-s3c.c 		if (!rate)
rate              312 drivers/mmc/host/sdhci-s3c.c 		if (rate < min)
rate              313 drivers/mmc/host/sdhci-s3c.c 			min = rate;
rate              323 drivers/mmc/host/sdhci-s3c.c 	unsigned long rate, max = 0;
rate              333 drivers/mmc/host/sdhci-s3c.c 		rate = clk_round_rate(clk, ULONG_MAX);
rate              334 drivers/mmc/host/sdhci-s3c.c 		if (rate > max)
rate              335 drivers/mmc/host/sdhci-s3c.c 			max = rate;
rate              345 drivers/mmc/host/sdhci-s3c.c 	unsigned long rate, min = ULONG_MAX;
rate              355 drivers/mmc/host/sdhci-s3c.c 		rate = clk_round_rate(clk, 0);
rate              356 drivers/mmc/host/sdhci-s3c.c 		if (rate < min)
rate              357 drivers/mmc/host/sdhci-s3c.c 			min = rate;
rate              718 drivers/mmc/host/sunxi-mmc.c 				   struct mmc_ios *ios, u32 rate)
rate              731 drivers/mmc/host/sunxi-mmc.c 	if (rate <= 400000) {
rate              733 drivers/mmc/host/sunxi-mmc.c 	} else if (rate <= 25000000) {
rate              735 drivers/mmc/host/sunxi-mmc.c 	} else if (rate <= 52000000) {
rate              759 drivers/mmc/host/sunxi-mmc.c 	long rate;
rate              798 drivers/mmc/host/sunxi-mmc.c 	rate = clk_round_rate(host->clk_mmc, clock);
rate              799 drivers/mmc/host/sunxi-mmc.c 	if (rate < 0) {
rate              801 drivers/mmc/host/sunxi-mmc.c 			clock, rate);
rate              802 drivers/mmc/host/sunxi-mmc.c 		return rate;
rate              805 drivers/mmc/host/sunxi-mmc.c 		clock, rate);
rate              808 drivers/mmc/host/sunxi-mmc.c 	ret = clk_set_rate(host->clk_mmc, rate);
rate              811 drivers/mmc/host/sunxi-mmc.c 			rate, ret);
rate              822 drivers/mmc/host/sunxi-mmc.c 	rate /= div;
rate              838 drivers/mmc/host/sunxi-mmc.c 	ret = sunxi_mmc_clk_set_phase(host, ios, rate);
rate              859 drivers/mmc/host/sunxi-mmc.c 	mmc->actual_clock = rate;
rate              188 drivers/mmc/host/usdhi6rol0.c 	unsigned long rate;
rate              724 drivers/mmc/host/usdhi6rol0.c 	unsigned long rate = ios->clock;
rate              741 drivers/mmc/host/usdhi6rol0.c 	if (rate) {
rate              744 drivers/mmc/host/usdhi6rol0.c 		if (host->imclk <= rate) {
rate              754 drivers/mmc/host/usdhi6rol0.c 				roundup_pow_of_two(DIV_ROUND_UP(host->imclk, rate));
rate              759 drivers/mmc/host/usdhi6rol0.c 		if (host->rate == new_rate)
rate              762 drivers/mmc/host/usdhi6rol0.c 		host->rate = new_rate;
rate              765 drivers/mmc/host/usdhi6rol0.c 			rate, (val & 0xff) << 2, new_rate);
rate              772 drivers/mmc/host/usdhi6rol0.c 	if (host->imclk == rate || host->imclk == host->rate || !rate)
rate              776 drivers/mmc/host/usdhi6rol0.c 	if (!rate) {
rate              777 drivers/mmc/host/usdhi6rol0.c 		host->rate = 0;
rate              783 drivers/mmc/host/usdhi6rol0.c 	if (host->imclk == rate || host->imclk == host->rate ||
rate              862 drivers/mmc/host/usdhi6rol0.c 	if (host->rate != ios->clock)
rate              874 drivers/mmc/host/usdhi6rol0.c 		ticks = host->rate / 1000 * mrq->cmd->busy_timeout;
rate              876 drivers/mmc/host/usdhi6rol0.c 		ticks = host->rate / 1000000 * (mrq->data->timeout_ns / 1000) +
rate              889 drivers/mmc/host/usdhi6rol0.c 		mrq->data ? "data" : "cmd", ticks, host->rate);
rate              326 drivers/mtd/devices/spear_smi.c 	unsigned long rate = 0;
rate              330 drivers/mtd/devices/spear_smi.c 	rate = clk_get_rate(dev->clk);
rate              333 drivers/mtd/devices/spear_smi.c 	prescale = DIV_ROUND_UP(rate, dev->clk_rate);
rate              509 drivers/mtd/nand/raw/mtk_nand.c 	u32 rate, tpoecs, tprecs, tc2r, tw2r, twh, twst = 0, trlt = 0;
rate              519 drivers/mtd/nand/raw/mtk_nand.c 	rate = clk_get_rate(nfc->clk.nfi_clk);
rate              521 drivers/mtd/nand/raw/mtk_nand.c 	rate /= nfc->caps->nfi_clk_div;
rate              524 drivers/mtd/nand/raw/mtk_nand.c 	rate /= 1000;
rate              527 drivers/mtd/nand/raw/mtk_nand.c 	tpoecs = DIV_ROUND_UP(tpoecs * rate, 1000000);
rate              531 drivers/mtd/nand/raw/mtk_nand.c 	tprecs = DIV_ROUND_UP(tprecs * rate, 1000000);
rate              538 drivers/mtd/nand/raw/mtk_nand.c 	tw2r = DIV_ROUND_UP(tw2r * rate, 1000000);
rate              543 drivers/mtd/nand/raw/mtk_nand.c 	twh = DIV_ROUND_UP(twh * rate, 1000000) - 1;
rate              547 drivers/mtd/nand/raw/mtk_nand.c 	temp = (twh + 1) * 1000000 / rate;
rate              558 drivers/mtd/nand/raw/mtk_nand.c 	twst = DIV_ROUND_UP(twst * rate, 1000000) - 1;
rate              568 drivers/mtd/nand/raw/mtk_nand.c 	trlt = DIV_ROUND_UP(trlt * rate, 1000000) - 1;
rate              572 drivers/mtd/nand/raw/mtk_nand.c 	temp = (trlt + 1) * 1000000 / rate;
rate              581 drivers/mtd/nand/raw/mtk_nand.c 		tsel = DIV_ROUND_UP(tsel * rate, 1000000);
rate             1147 drivers/mtd/nand/raw/mxc_nand.c 	unsigned long rate, rate_round;
rate             1158 drivers/mtd/nand/raw/mxc_nand.c 	rate = 1000000000 / tRC_min_ns;
rate             1167 drivers/mtd/nand/raw/mxc_nand.c 		rate_round = clk_round_rate(host->clk, rate);
rate             1171 drivers/mtd/nand/raw/mxc_nand.c 		rate *= 2;
rate             1172 drivers/mtd/nand/raw/mxc_nand.c 		rate_round = clk_round_rate(host->clk, rate);
rate             1203 drivers/mtd/nand/raw/mxc_nand.c 	ret = clk_set_rate(host->clk, rate);
rate              783 drivers/mtd/nand/raw/tegra_nand.c 	unsigned int rate = clk_get_rate(ctrl->clk) / 1000000;
rate              784 drivers/mtd/nand/raw/tegra_nand.c 	unsigned int period = DIV_ROUND_UP(1000000, rate);
rate              467 drivers/net/dsa/sja1105/sja1105_main.c 	policing[index].rate = SJA1105_RATE_MBPS(1000);
rate              303 drivers/net/dsa/sja1105/sja1105_static_config.c 	sja1105_packing(buf, &entry->rate,      41, 26, size, op);
rate              227 drivers/net/dsa/sja1105/sja1105_static_config.h 	u64 rate;
rate              135 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	unsigned long rate;
rate              140 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	rate = pdata->sysclk_rate;
rate              148 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	ret = (usec * (rate / 1000000)) / 256;
rate              158 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	unsigned long rate;
rate              163 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	rate = pdata->sysclk_rate;
rate              171 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	ret = (riwt * 256) / (rate / 1000000);
rate              382 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c 	u32 rate = 0;
rate              385 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c 		rate |= SUPPORTED_10000baseT_Full;
rate              388 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c 		rate |= SUPPORTED_2500baseX_Full;
rate              391 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c 		rate |= SUPPORTED_1000baseT_Full;
rate              393 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c 	return rate;
rate              399 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c 	u32 rate, supported_rates;
rate              406 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c 	err = aq_nic->aq_fw_ops->get_eee_rate(aq_nic->aq_hw, &rate,
rate              417 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c 	eee->lp_advertised = eee_mask_to_ethtool_mask(rate);
rate              431 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c 	u32 rate, supported_rates;
rate              442 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c 	err = aq_nic->aq_fw_ops->get_eee_rate(aq_nic->aq_hw, &rate,
rate              449 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c 		rate = supported_rates;
rate              450 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c 		cfg->eee_speeds = rate;
rate              452 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c 		rate = 0;
rate              457 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c 	err = aq_nic->aq_fw_ops->set_eee_rate(aq_nic->aq_hw, rate);
rate              272 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*get_eee_rate)(struct aq_hw_s *self, u32 *rate,
rate              867 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	u32 rate = 0U;
rate              871 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		rate = self->aq_nic_cfg.aq_hw_caps->link_speed_msk;
rate              878 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			rate = AQ_NIC_RATE_100M;
rate              882 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			rate = AQ_NIC_RATE_1G;
rate              886 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			rate = AQ_NIC_RATE_2GS;
rate              890 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			rate = AQ_NIC_RATE_5G;
rate              894 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			rate = AQ_NIC_RATE_10G;
rate              902 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		if (!(self->aq_nic_cfg.aq_hw_caps->link_speed_msk & rate)) {
rate              911 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = self->aq_fw_ops->set_link_speed(self->aq_hw, rate);
rate              916 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->aq_nic_cfg.link_speed_msk = rate;
rate              106 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	enum hw_atl_fw2x_rate rate = 0;
rate              109 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		rate |= FW2X_RATE_10G;
rate              112 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		rate |= FW2X_RATE_5G;
rate              115 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		rate |= FW2X_RATE_5G;
rate              118 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		rate |= FW2X_RATE_2G5;
rate              121 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		rate |= FW2X_RATE_1G;
rate              124 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		rate |= FW2X_RATE_100M;
rate              126 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	return rate;
rate              131 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	u32 rate = 0;
rate              134 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		rate |= AQ_NIC_RATE_EEE_10G;
rate              136 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		rate |= AQ_NIC_RATE_EEE_5G;
rate              138 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		rate |= AQ_NIC_RATE_EEE_2GS;
rate              140 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		rate |= AQ_NIC_RATE_EEE_1G;
rate              142 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	return rate;
rate              147 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	u32 rate = 0;
rate              150 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		rate |= HW_ATL_FW2X_CAP_EEE_10G_MASK;
rate              152 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		rate |= HW_ATL_FW2X_CAP_EEE_5G_MASK;
rate              154 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		rate |= HW_ATL_FW2X_CAP_EEE_2G5_MASK;
rate              156 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		rate |= HW_ATL_FW2X_CAP_EEE_1G_MASK;
rate              158 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	return rate;
rate              458 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_get_eee_rate(struct aq_hw_s *self, u32 *rate,
rate              476 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	*rate = fw2x_to_eee_mask(mpi_state);
rate             4990 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h 	u16 rate;
rate             4992 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h 	u16 rate;
rate              358 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h 		vdata->vnic_max_rate[vnic].vn_counter.rate =
rate              366 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h 			(u32)vdata->vnic_max_rate[vnic].vn_counter.rate / 8;
rate             2853 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 			m_rs_vn.vn_counter.rate =
rate             2856 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 				(m_rs_vn.vn_counter.rate *
rate               44 drivers/net/ethernet/cadence/macb_main.c 	unsigned long rate;
rate              407 drivers/net/ethernet/cadence/macb_main.c 	long ferr, rate, rate_rounded;
rate              414 drivers/net/ethernet/cadence/macb_main.c 		rate = 2500000;
rate              417 drivers/net/ethernet/cadence/macb_main.c 		rate = 25000000;
rate              420 drivers/net/ethernet/cadence/macb_main.c 		rate = 125000000;
rate              426 drivers/net/ethernet/cadence/macb_main.c 	rate_rounded = clk_round_rate(clk, rate);
rate              433 drivers/net/ethernet/cadence/macb_main.c 	ferr = abs(rate_rounded - rate);
rate              434 drivers/net/ethernet/cadence/macb_main.c 	ferr = DIV_ROUND_UP(ferr, rate / 100000);
rate              437 drivers/net/ethernet/cadence/macb_main.c 			    rate);
rate             3972 drivers/net/ethernet/cadence/macb_main.c 	return mgmt->rate;
rate             3975 drivers/net/ethernet/cadence/macb_main.c static long fu540_macb_tx_round_rate(struct clk_hw *hw, unsigned long rate,
rate             3978 drivers/net/ethernet/cadence/macb_main.c 	if (WARN_ON(rate < 2500000))
rate             3980 drivers/net/ethernet/cadence/macb_main.c 	else if (rate == 2500000)
rate             3982 drivers/net/ethernet/cadence/macb_main.c 	else if (WARN_ON(rate < 13750000))
rate             3984 drivers/net/ethernet/cadence/macb_main.c 	else if (WARN_ON(rate < 25000000))
rate             3986 drivers/net/ethernet/cadence/macb_main.c 	else if (rate == 25000000)
rate             3988 drivers/net/ethernet/cadence/macb_main.c 	else if (WARN_ON(rate < 75000000))
rate             3990 drivers/net/ethernet/cadence/macb_main.c 	else if (WARN_ON(rate < 125000000))
rate             3992 drivers/net/ethernet/cadence/macb_main.c 	else if (rate == 125000000)
rate             3995 drivers/net/ethernet/cadence/macb_main.c 	WARN_ON(rate > 125000000);
rate             4000 drivers/net/ethernet/cadence/macb_main.c static int fu540_macb_tx_set_rate(struct clk_hw *hw, unsigned long rate,
rate             4003 drivers/net/ethernet/cadence/macb_main.c 	rate = fu540_macb_tx_round_rate(hw, rate, &parent_rate);
rate             4004 drivers/net/ethernet/cadence/macb_main.c 	if (rate != 125000000)
rate             4008 drivers/net/ethernet/cadence/macb_main.c 	mgmt->rate = rate;
rate             4039 drivers/net/ethernet/cadence/macb_main.c 	mgmt->rate = 0;
rate             3055 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c static int cxgb_set_tx_maxrate(struct net_device *dev, int index, u32 rate)
rate             3079 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	req_rate = rate * 1000;
rate             3085 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 			rate, SCHED_MAX_RATE_KBPS / 1000);
rate             10370 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	cmd.u.params.rate = ratemode;
rate             3519 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h 			__u8   rate;
rate               91 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c 	link_settings->base.speed = priv->link_state.rate;
rate              124 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c 	cfg.rate = priv->link_state.rate;
rate              292 drivers/net/ethernet/freescale/dpaa2/dpni-cmd.h 	__le32 rate;
rate              308 drivers/net/ethernet/freescale/dpaa2/dpni-cmd.h 	__le32 rate;
rate              848 drivers/net/ethernet/freescale/dpaa2/dpni.c 	cmd_params->rate = cpu_to_le32(cfg->rate);
rate              885 drivers/net/ethernet/freescale/dpaa2/dpni.c 	cfg->rate = le32_to_cpu(rsp_params->rate);
rate              922 drivers/net/ethernet/freescale/dpaa2/dpni.c 	state->rate = le32_to_cpu(rsp_params->rate);
rate              522 drivers/net/ethernet/freescale/dpaa2/dpni.h 	u32 rate;
rate              543 drivers/net/ethernet/freescale/dpaa2/dpni.h 	u32	rate;
rate             2116 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 				  enum dsaf_port_rate_mode rate)
rate             2120 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	switch (rate) {
rate              623 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	iov_data->vf_info[vf_idx].rate = max_rate;
rate              645 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	ivi->max_tx_rate = vf_info->rate;
rate              734 drivers/net/ethernet/intel/fm10k/fm10k_pf.c static s32 fm10k_iov_configure_tc_pf(struct fm10k_hw *hw, u16 vf_idx, int rate)
rate              756 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	if (rate) {
rate              757 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 		if (rate > FM10K_VF_TC_MAX || rate < FM10K_VF_TC_MIN)
rate              767 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 		tc_rate = (rate * 128) / 125;
rate              772 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 		if (rate < 4000)
rate             1395 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 		hw->iov.ops.configure_tc(hw, vf_info->vf_idx, vf_info->rate);
rate              584 drivers/net/ethernet/intel/fm10k/fm10k_type.h 	int			rate;		/* Tx BW cap as defined by OS */
rate              200 drivers/net/ethernet/intel/igb/igb_ptp.c 	u64 rate;
rate              207 drivers/net/ethernet/intel/igb/igb_ptp.c 	rate = ppb;
rate              208 drivers/net/ethernet/intel/igb/igb_ptp.c 	rate <<= 14;
rate              209 drivers/net/ethernet/intel/igb/igb_ptp.c 	rate = div_u64(rate, 1953125);
rate              214 drivers/net/ethernet/intel/igb/igb_ptp.c 		incvalue -= rate;
rate              216 drivers/net/ethernet/intel/igb/igb_ptp.c 		incvalue += rate;
rate              229 drivers/net/ethernet/intel/igb/igb_ptp.c 	u64 rate;
rate              236 drivers/net/ethernet/intel/igb/igb_ptp.c 	rate = scaled_ppm;
rate              237 drivers/net/ethernet/intel/igb/igb_ptp.c 	rate <<= 13;
rate              238 drivers/net/ethernet/intel/igb/igb_ptp.c 	rate = div_u64(rate, 15625);
rate              240 drivers/net/ethernet/intel/igb/igb_ptp.c 	inca = rate & INCVALUE_MASK;
rate              501 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c 	u64 rate = IXGBE_X550_BASE_PERIOD;
rate              508 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c 	rate *= ppb;
rate              509 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c 	rate = div_u64(rate, 1000000000ULL);
rate              512 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c 	if (rate >= INCVALUE_MASK)
rate              515 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c 	inca = rate & INCVALUE_MASK;
rate             1136 drivers/net/ethernet/marvell/mv643xx_eth.c static void tx_set_rate(struct mv643xx_eth_private *mp, int rate, int burst)
rate             1142 drivers/net/ethernet/marvell/mv643xx_eth.c 	token_rate = ((rate / 1000) * 64) / (mp->t_clk / 1000);
rate             1168 drivers/net/ethernet/marvell/mv643xx_eth.c static void txq_set_rate(struct tx_queue *txq, int rate, int burst)
rate             1174 drivers/net/ethernet/marvell/mv643xx_eth.c 	token_rate = ((rate / 1000) * 64) / (mp->t_clk / 1000);
rate             1455 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 	unsigned long rate;
rate             1475 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 		rate = packets * HZ / period;
rate             1481 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 		if (rate > (MLX4_EN_RX_RATE_THRESH / priv->rx_ring_num) &&
rate             1483 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 			if (rate <= pkt_rate_low)
rate             1485 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 			else if (rate >= pkt_rate_high)
rate             1488 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 				moder_time = (rate - pkt_rate_low) *
rate             1306 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 				struct mlx5e_txqsq *sq, u32 rate);
rate             1399 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		rl.rate = sq->rate_limit;
rate             1745 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 				struct mlx5e_txqsq *sq, u32 rate)
rate             1754 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	if (rate == sq->rate_limit)
rate             1759 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		rl.rate = sq->rate_limit;
rate             1766 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	if (rate) {
rate             1767 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		rl.rate = rate;
rate             1771 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 				   rate, err);
rate             1783 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 			   rate, err);
rate             1785 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		if (rate)
rate             1790 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	sq->rate_limit = rate;
rate             1794 drivers/net/ethernet/mellanox/mlx5/core/en_main.c static int mlx5e_set_tx_maxrate(struct net_device *dev, int index, u32 rate)
rate             1807 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	rate = rate << 10;
rate             1810 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	if (rate && !mlx5_rl_is_in_range(mdev, rate)) {
rate             1811 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		netdev_err(dev, "TX rate %u, is not in range\n", rate);
rate             1817 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		err = mlx5e_set_sq_maxrate(dev, sq, rate);
rate             1819 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		priv->tx_rates[index] = rate;
rate             3946 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c static int apply_police_params(struct mlx5e_priv *priv, u32 rate,
rate             3969 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	rate_mbps = rate ? max_t(u32, (rate * 8 + 500000) / 1000000, 1) : 0;
rate               56 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h #define MLX5_RATE_TO_BW_SHARE(rate, divider, limit) \
rate               57 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h 	min_t(u32, max_t(u32, (rate) / (divider), MLX5_MIN_BW_SHARE), limit)
rate              163 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c static inline int mlx5_ptys_rate_enum_to_int(enum mlx5_ptys_rate rate)
rate              165 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c 	switch (rate) {
rate              197 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c 	int rate, width;
rate              199 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c 	rate = mlx5_ptys_rate_enum_to_int(ib_proto_oper);
rate              200 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c 	if (rate < 0)
rate              206 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c 	return rate * width;
rate              119 drivers/net/ethernet/mellanox/mlx5/core/rl.c 		if (!empty_found && !table->rl_entry[i].rl.rate) {
rate              138 drivers/net/ethernet/mellanox/mlx5/core/rl.c 	MLX5_SET(set_pp_rate_limit_in, in, rate_limit, rl->rate);
rate              144 drivers/net/ethernet/mellanox/mlx5/core/rl.c bool mlx5_rl_is_in_range(struct mlx5_core_dev *dev, u32 rate)
rate              148 drivers/net/ethernet/mellanox/mlx5/core/rl.c 	return (rate <= table->max_rate && rate >= table->min_rate);
rate              155 drivers/net/ethernet/mellanox/mlx5/core/rl.c 	return ((rl_0->rate == rl_1->rate) &&
rate              170 drivers/net/ethernet/mellanox/mlx5/core/rl.c 	if (!rl->rate || !mlx5_rl_is_in_range(dev, rl->rate)) {
rate              172 drivers/net/ethernet/mellanox/mlx5/core/rl.c 			      rl->rate, table->min_rate, table->max_rate);
rate              192 drivers/net/ethernet/mellanox/mlx5/core/rl.c 				      err, rl->rate, rl->max_burst_sz,
rate              214 drivers/net/ethernet/mellanox/mlx5/core/rl.c 	if (rl->rate == 0)
rate              221 drivers/net/ethernet/mellanox/mlx5/core/rl.c 			       rl->rate, rl->max_burst_sz, rl->typical_pkt_sz);
rate              281 drivers/net/ethernet/mellanox/mlx5/core/rl.c 		if (table->rl_entry[i].rl.rate)
rate             9184 drivers/net/ethernet/mellanox/mlxsw/reg.h MLXSW_ITEM32(reg, mpsc, rate, 0x08, 0, 32);
rate             9187 drivers/net/ethernet/mellanox/mlxsw/reg.h 				       u32 rate)
rate             9192 drivers/net/ethernet/mellanox/mlxsw/reg.h 	mlxsw_reg_mpsc_rate_set(payload, rate);
rate              585 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 				    bool enable, u32 rate)
rate              590 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_reg_mpsc_pack(mpsc_pl, mlxsw_sp_port->local_port, enable, rate);
rate             1387 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	if (act->sample.rate > MLXSW_REG_MPSC_RATE_MAX) {
rate             1396 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_sp_port->sample->rate = act->sample.rate;
rate             1398 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_sp_port_sample_set(mlxsw_sp_port, true, act->sample.rate);
rate             4328 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 			      mlxsw_sp_port->sample->rate);
rate             4453 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	u32 rate;
rate             4472 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 			rate = 128;
rate             4477 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 			rate = 16 * 1024;
rate             4488 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 			rate = 1024;
rate             4492 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 			rate = 1024;
rate             4496 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 			rate = 24 * 1024;
rate             4500 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 			rate = 19 * 1024;
rate             4504 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 			rate = 360;
rate             4511 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 		mlxsw_reg_qpcr_pack(qpcr_pl, i, ir_units, is_bytes, rate,
rate              202 drivers/net/ethernet/mellanox/mlxsw/spectrum.h 	u32 rate;
rate              211 drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c 	u32 rate;
rate              218 drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c 		rate = 10 * 1024; /* 10Kpps */
rate              225 drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c 	mlxsw_reg_qpcr_pack(qpcr_pl, policer_id, ir_units, is_bytes, rate,
rate              185 drivers/net/ethernet/mscc/ocelot_police.c 	pp.pir = pol->rate;
rate               13 drivers/net/ethernet/mscc/ocelot_police.h 	u32 rate; /* kilobit per second */
rate               56 drivers/net/ethernet/mscc/ocelot_tc.c 		pol.rate = (u32)div_u64(action->police.rate_bytes_ps, 1000) * 8;
rate               72 drivers/net/ethernet/netronome/nfp/flower/qos_conf.c 	u64 burst, rate;
rate              106 drivers/net/ethernet/netronome/nfp/flower/qos_conf.c 	rate = action->police.rate_bytes_ps;
rate              107 drivers/net/ethernet/netronome/nfp/flower/qos_conf.c 	burst = div_u64(rate * PSCHED_NS2TICKS(action->police.burst),
rate              123 drivers/net/ethernet/netronome/nfp/flower/qos_conf.c 	config->pir = cpu_to_be32(rate);
rate              124 drivers/net/ethernet/netronome/nfp/flower/qos_conf.c 	config->cir = cpu_to_be32(rate);
rate               83 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c 	enum nfp_eth_rate rate;
rate               94 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c static unsigned int nfp_eth_rate2speed(enum nfp_eth_rate rate)
rate               99 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c 		if (nsp_eth_rate_tbl[i].rate == rate)
rate              111 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c 			return nsp_eth_rate_tbl[i].rate;
rate              128 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c 	unsigned int rate;
rate              145 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c 	rate = nfp_eth_rate2speed(FIELD_GET(NSP_ETH_STATE_RATE, state));
rate              146 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c 	dst->speed = dst->lanes * rate;
rate              580 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c 	enum nfp_eth_rate rate;
rate              582 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c 	rate = nfp_eth_speed2rate(speed);
rate              583 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c 	if (rate == RATE_INVALID) {
rate              591 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c 				      NSP_ETH_STATE_RATE, rate,
rate              910 drivers/net/ethernet/qlogic/qed/qed.h int qed_configure_vport_wfq(struct qed_dev *cdev, u16 vp_id, u32 rate);
rate             5196 drivers/net/ethernet/qlogic/qed/qed_dev.c 				     struct qed_ptt *p_ptt, u16 vp_id, u32 rate)
rate             5204 drivers/net/ethernet/qlogic/qed/qed_dev.c 		p_hwfn->qm_info.wfq_data[vp_id].min_speed = rate;
rate             5209 drivers/net/ethernet/qlogic/qed/qed_dev.c 	rc = qed_init_wfq_param(p_hwfn, vp_id, rate, p_link->min_pf_rate);
rate             5231 drivers/net/ethernet/qlogic/qed/qed_dev.c 		u32 rate;
rate             5236 drivers/net/ethernet/qlogic/qed/qed_dev.c 		rate = p_hwfn->qm_info.wfq_data[i].min_speed;
rate             5239 drivers/net/ethernet/qlogic/qed/qed_dev.c 		rc = qed_init_wfq_param(p_hwfn, i, rate, min_pf_rate);
rate             5259 drivers/net/ethernet/qlogic/qed/qed_dev.c int qed_configure_vport_wfq(struct qed_dev *cdev, u16 vp_id, u32 rate)
rate             5278 drivers/net/ethernet/qlogic/qed/qed_dev.c 		rc = __qed_configure_vport_wfq(p_hwfn, p_ptt, vp_id, rate);
rate               97 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c #define QM_RL_INC_VAL(rate) ({ \
rate               98 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c 	typeof(rate) __rate = (rate); \
rate             4377 drivers/net/ethernet/qlogic/qed/qed_sriov.c qed_iov_configure_min_tx_rate(struct qed_dev *cdev, int vfid, u32 rate)
rate             4396 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	return qed_configure_vport_wfq(cdev, vport_id, rate);
rate             4769 drivers/net/ethernet/qlogic/qed/qed_sriov.c 			int rate;
rate             4771 drivers/net/ethernet/qlogic/qed/qed_sriov.c 			rate = min_t(int, vf_info->tx_rate, link.speed);
rate             4779 drivers/net/ethernet/qlogic/qed/qed_sriov.c 			if (!qed_iov_configure_tx_rate(hwfn, ptt, i, rate)) {
rate             4780 drivers/net/ethernet/qlogic/qed/qed_sriov.c 				vf_info->tx_rate = rate;
rate             4781 drivers/net/ethernet/qlogic/qed/qed_sriov.c 				link.speed = rate;
rate             4842 drivers/net/ethernet/qlogic/qed/qed_sriov.c static int qed_configure_max_vf_rate(struct qed_dev *cdev, int vfid, int rate)
rate             4858 drivers/net/ethernet/qlogic/qed/qed_sriov.c 		vf->tx_rate = rate;
rate             2157 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 				    u32 rate)
rate             2159 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->nic_ops->config_led(adapter, state, rate);
rate             1542 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int qlcnic_82xx_config_led(struct qlcnic_adapter *adapter, u32 state, u32 rate)
rate             1554 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	req.words[0] = cpu_to_le64(((u64)rate << 32) | adapter->portnum);
rate               31 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c int qlcnicvf_config_led(struct qlcnic_adapter *adapter, u32 state, u32 rate)
rate               97 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 				  u8 *state, u8 *rate)
rate               99 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	*rate = LSB(beacon);
rate              102 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	QLCDB(adapter, DRV, "rate %x state %x\n", *rate, *state);
rate              105 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 		*rate = __QLCNIC_MAX_LED_RATE;
rate              111 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if ((!*rate) || (*rate > __QLCNIC_MAX_LED_RATE))
rate             1921 drivers/net/ethernet/renesas/ravb_main.c 	unsigned long rate;
rate             1924 drivers/net/ethernet/renesas/ravb_main.c 	rate = clk_get_rate(priv->clk);
rate             1925 drivers/net/ethernet/renesas/ravb_main.c 	if (!rate)
rate             1929 drivers/net/ethernet/renesas/ravb_main.c 	do_div(inc, rate);
rate              185 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c 	unsigned long rate = 125000000;
rate              193 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c 		rate = 125000000;
rate              198 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c 		rate = 25000000;
rate              202 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c 		rate = 2500000;
rate              250 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c 	err = clk_set_rate(eqos->clk_tx, rate);
rate              258 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c 	unsigned long rate;
rate              261 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c 	rate = clk_get_rate(eqos->clk_slave);
rate              263 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c 	value = (rate / 1000000) - 1;
rate             1390 drivers/net/ethernet/sun/niu.c static int mrvl88x2011_led_blink_rate(struct niu *np, int rate)
rate             1398 drivers/net/ethernet/sun/niu.c 		err |= (rate << 4);
rate             1424 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 	unsigned long rate;
rate             1427 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 	rate = pdata->sysclk_rate;
rate             1434 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 	ret = (usec * (rate / 1000000)) / 256;
rate             1442 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 	unsigned long rate;
rate             1445 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 	rate = pdata->sysclk_rate;
rate             1452 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 	ret = (riwt * 256) / (rate / 1000000);
rate             2218 drivers/net/ethernet/ti/cpsw.c static int cpsw_ndo_set_tx_maxrate(struct net_device *ndev, int queue, u32 rate)
rate             2228 drivers/net/ethernet/ti/cpsw.c 	if (ch_rate == rate)
rate             2231 drivers/net/ethernet/ti/cpsw.c 	ch_rate = rate * 1000;
rate             2239 drivers/net/ethernet/ti/cpsw.c 	if (rate > cpsw->speed) {
rate             2262 drivers/net/ethernet/ti/cpsw.c 		netdev_get_tx_queue(slave->ndev, queue)->tx_maxrate = rate;
rate              125 drivers/net/ethernet/ti/davinci_cpdma.c 	u32				rate;
rate              362 drivers/net/ethernet/ti/davinci_cpdma.c 	if (!chan->rate)
rate              406 drivers/net/ethernet/ti/davinci_cpdma.c static int cpdma_chan_fit_rate(struct cpdma_chan *ch, u32 rate,
rate              411 drivers/net/ethernet/ti/davinci_cpdma.c 	u32 old_rate = ch->rate;
rate              422 drivers/net/ethernet/ti/davinci_cpdma.c 			chan->rate = rate;
rate              424 drivers/net/ethernet/ti/davinci_cpdma.c 		if (chan->rate) {
rate              439 drivers/net/ethernet/ti/davinci_cpdma.c 	ch->rate = old_rate;
rate              455 drivers/net/ethernet/ti/davinci_cpdma.c 	if (!ch->rate) {
rate              466 drivers/net/ethernet/ti/davinci_cpdma.c 	min_send_cnt = freq - ch->rate;
rate              467 drivers/net/ethernet/ti/davinci_cpdma.c 	send_cnt = DIV_ROUND_UP(min_send_cnt, ch->rate);
rate              469 drivers/net/ethernet/ti/davinci_cpdma.c 		divident = ch->rate * send_cnt;
rate              477 drivers/net/ethernet/ti/davinci_cpdma.c 		delta = new_rate >= ch->rate ? new_rate - ch->rate : delta;
rate              496 drivers/net/ethernet/ti/davinci_cpdma.c 		send_cnt = DIV_ROUND_CLOSEST_ULL(divident, ch->rate);
rate              501 drivers/net/ethernet/ti/davinci_cpdma.c 	ch->rate = best_rate;
rate              583 drivers/net/ethernet/ti/davinci_cpdma.c 			if (is_tx_chan(chan) && !chan->rate)
rate              825 drivers/net/ethernet/ti/davinci_cpdma.c int cpdma_chan_set_rate(struct cpdma_chan *ch, u32 rate)
rate              835 drivers/net/ethernet/ti/davinci_cpdma.c 	if (ch->rate == rate)
rate              836 drivers/net/ethernet/ti/davinci_cpdma.c 		return rate;
rate              842 drivers/net/ethernet/ti/davinci_cpdma.c 	ret = cpdma_chan_fit_rate(ch, rate, &rmask, &prio_mode);
rate              867 drivers/net/ethernet/ti/davinci_cpdma.c 	u32 rate;
rate              870 drivers/net/ethernet/ti/davinci_cpdma.c 	rate = ch->rate;
rate              873 drivers/net/ethernet/ti/davinci_cpdma.c 	return rate;
rate              903 drivers/net/ethernet/ti/davinci_cpdma.c 	chan->rate	= 0;
rate               97 drivers/net/ethernet/ti/davinci_cpdma.h int cpdma_chan_set_rate(struct cpdma_chan *ch, u32 rate);
rate              571 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 	u8 rate;
rate              608 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 		    ((scan->ext_rate[j] & 0x7f) < (scan->rate[i] & 0x7f)))
rate              609 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 		    rate = scan->ext_rate[j++] & 0x7f;
rate              611 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 		    rate = scan->rate[i++] & 0x7f;
rate              612 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 		iwe.u.bitrate.value = rate * 500000; /* 500kbps unit */
rate             1567 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 		if (!be16_to_cpu(scan_info->channel) || !scan_info->rate[0]) {
rate             1615 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 			if (scan_info->rate[r])
rate              155 drivers/net/ethernet/toshiba/ps3_gelic_wireless.h 	u8  rate[16]; /* first 12 are valid */
rate              370 drivers/net/phy/dp83640.c 	u64 rate;
rate              378 drivers/net/phy/dp83640.c 	rate = scaled_ppm;
rate              379 drivers/net/phy/dp83640.c 	rate <<= 13;
rate              380 drivers/net/phy/dp83640.c 	rate = div_u64(rate, 15625);
rate              382 drivers/net/phy/dp83640.c 	hi = (rate >> 16) & PTP_RATE_HI_MASK;
rate              386 drivers/net/phy/dp83640.c 	lo = rate & 0xffff;
rate              190 drivers/net/phy/mdio-bcm-unimac.c 	unsigned long rate;
rate              198 drivers/net/phy/mdio-bcm-unimac.c 		rate = 250000000;
rate              200 drivers/net/phy/mdio-bcm-unimac.c 		rate = clk_get_rate(priv->clk);
rate              202 drivers/net/phy/mdio-bcm-unimac.c 	div = (rate / (2 * priv->clk_freq)) - 1;
rate              960 drivers/net/phy/micrel.c 		unsigned long rate = clk_get_rate(clk);
rate              967 drivers/net/phy/micrel.c 		if (rate > 24500000 && rate < 25500000) {
rate              969 drivers/net/phy/micrel.c 		} else if (rate > 49500000 && rate < 50500000) {
rate              973 drivers/net/phy/micrel.c 				   rate);
rate             1185 drivers/net/wan/ixp4xx_hss.c static u32 check_clock(u32 rate, u32 a, u32 b, u32 c,
rate             1194 drivers/net/wan/ixp4xx_hss.c 	new_diff = abs((u32)new_rate - rate);
rate             1204 drivers/net/wan/ixp4xx_hss.c static void find_best_clock(u32 rate, u32 *best, u32 *reg)
rate             1208 drivers/net/wan/ixp4xx_hss.c 	a = ixp4xx_timer_freq / rate;
rate             1211 drivers/net/wan/ixp4xx_hss.c 		check_clock(rate, 0x3FF, 1, 1, best, &diff, reg);
rate             1216 drivers/net/wan/ixp4xx_hss.c 		rate = ixp4xx_timer_freq;
rate             1219 drivers/net/wan/ixp4xx_hss.c 	if (rate * a == ixp4xx_timer_freq) { /* don't divide by 0 later */
rate             1220 drivers/net/wan/ixp4xx_hss.c 		check_clock(rate, a - 1, 1, 1, best, &diff, reg);
rate             1225 drivers/net/wan/ixp4xx_hss.c 		u64 c = (b + 1) * (u64)rate;
rate             1226 drivers/net/wan/ixp4xx_hss.c 		do_div(c, ixp4xx_timer_freq - rate * a);
rate             1230 drivers/net/wan/ixp4xx_hss.c 			    !check_clock(rate, a - 1, 1, 1, best, &diff, reg))
rate             1232 drivers/net/wan/ixp4xx_hss.c 			check_clock(rate, a, b, 0xFFF, best, &diff, reg);
rate             1235 drivers/net/wan/ixp4xx_hss.c 		if (!check_clock(rate, a, b, c, best, &diff, reg))
rate             1237 drivers/net/wan/ixp4xx_hss.c 		if (!check_clock(rate, a, b, c + 1, best, &diff, reg))
rate              400 drivers/net/wan/sbni.c 	nl->csr1.rate = baud[ num ];
rate              421 drivers/net/wan/sbni.c 		  / (1 << nl->csr1.rate));
rate             1315 drivers/net/wan/sbni.c 		flags.rate	= nl->csr1.rate;
rate             1338 drivers/net/wan/sbni.c 		nl->csr1.rate = flags.rate;
rate               49 drivers/net/wan/sbni.h 	u8 rate	: 2;
rate               53 drivers/net/wan/sbni.h 	u8 rate	: 2;
rate              126 drivers/net/wan/sbni.h 	u32	rate		: 2;
rate              359 drivers/net/wireless/admtek/adm8211.c 	u8 rssi, rate;
rate              366 drivers/net/wireless/admtek/adm8211.c 		rate = (status & RDES0_STATUS_RXDR) >> 12;
rate              443 drivers/net/wireless/admtek/adm8211.c 			rx_status.rate_idx = rate;
rate             1163 drivers/net/wireless/ath/ar5523/ar5523.c 			int rate = band->bitrates[bit].bitrate;
rate             1164 drivers/net/wireless/ath/ar5523/ar5523.c 			switch (rate) {
rate              151 drivers/net/wireless/ath/ar5523/ar5523_hw.h 	__be32	rate;		/* rx rate code */
rate              359 drivers/net/wireless/ath/ath10k/htt.h 	__le32 rate;
rate              940 drivers/net/wireless/ath/ath10k/htt_rx.c 	u8 cck, rate, bw, sgi, mcs, nss;
rate              960 drivers/net/wireless/ath/ath10k/htt_rx.c 		rate = MS(info1, RX_PPDU_START_INFO1_L_SIG_RATE);
rate              961 drivers/net/wireless/ath/ath10k/htt_rx.c 		rate &= ~RX_PPDU_START_RATE_FLAG;
rate              964 drivers/net/wireless/ath/ath10k/htt_rx.c 		status->rate_idx = ath10k_mac_hw_rate_to_idx(sband, rate, cck);
rate             3313 drivers/net/wireless/ath/ath10k/htt_rx.c static inline s8 ath10k_get_legacy_rate_idx(struct ath10k *ar, u8 rate)
rate             3320 drivers/net/wireless/ath/ath10k/htt_rx.c 		if (rate == legacy_rates[i])
rate             3324 drivers/net/wireless/ath/ath10k/htt_rx.c 	ath10k_warn(ar, "Invalid legacy rate %hhd peer stats", rate);
rate             3457 drivers/net/wireless/ath/ath10k/htt_rx.c 	u8 rate = 0, sgi;
rate             3493 drivers/net/wireless/ath/ath10k/htt_rx.c 		rate = ATH10K_HW_LEGACY_RATE(peer_stats->ratecode);
rate             3495 drivers/net/wireless/ath/ath10k/htt_rx.c 		if (rate == 6 && txrate.flags == WMI_RATE_PREAMBLE_CCK)
rate             3496 drivers/net/wireless/ath/ath10k/htt_rx.c 			rate = 5;
rate             3497 drivers/net/wireless/ath/ath10k/htt_rx.c 		rate_idx = ath10k_get_legacy_rate_idx(ar, rate);
rate             3500 drivers/net/wireless/ath/ath10k/htt_rx.c 		arsta->txrate.legacy = rate;
rate              118 drivers/net/wireless/ath/ath10k/mac.c 	const struct ieee80211_rate *rate;
rate              122 drivers/net/wireless/ath/ath10k/mac.c 		rate = &sband->bitrates[i];
rate              124 drivers/net/wireless/ath/ath10k/mac.c 		if (ath10k_mac_bitrate_is_cck(rate->bitrate) != cck)
rate              127 drivers/net/wireless/ath/ath10k/mac.c 		if (rate->hw_value == hw_rate)
rate              129 drivers/net/wireless/ath/ath10k/mac.c 		else if (rate->flags & IEEE80211_RATE_SHORT_PREAMBLE &&
rate              130 drivers/net/wireless/ath/ath10k/mac.c 			 rate->hw_value_short == hw_rate)
rate             2231 drivers/net/wireless/ath/ath10k/mac.c 	u8 rate;
rate             2251 drivers/net/wireless/ath/ath10k/mac.c 		rate = ath10k_mac_bitrate_to_rate(rates->bitrate);
rate             2252 drivers/net/wireless/ath/ath10k/mac.c 		rateset->rates[rateset->num_rates] = rate;
rate             5650 drivers/net/wireless/ath/ath10k/mac.c 	u8 rate, basic_rate_idx, rateidx;
rate             5854 drivers/net/wireless/ath/ath10k/mac.c 		rate = ATH10K_HW_RATECODE(hw_value, 0, preamble);
rate             5858 drivers/net/wireless/ath/ath10k/mac.c 			   arvif->vdev_id, rate);
rate             5862 drivers/net/wireless/ath/ath10k/mac.c 						vdev_param, rate);
rate             5870 drivers/net/wireless/ath/ath10k/mac.c 						vdev_param, rate);
rate             7275 drivers/net/wireless/ath/ath10k/mac.c 					u8 *rate, u8 *nss, bool vht_only)
rate             7301 drivers/net/wireless/ath/ath10k/mac.c 		*rate = preamble << 6 |
rate             7311 drivers/net/wireless/ath/ath10k/mac.c 			*rate = WMI_RATE_PREAMBLE_HT << 6 |
rate             7323 drivers/net/wireless/ath/ath10k/mac.c 			*rate = WMI_RATE_PREAMBLE_VHT << 6 |
rate             7335 drivers/net/wireless/ath/ath10k/mac.c 					    u8 rate, u8 nss, u8 sgi, u8 ldpc)
rate             7344 drivers/net/wireless/ath/ath10k/mac.c 		   arvif->vdev_id, rate, nss, sgi);
rate             7347 drivers/net/wireless/ath/ath10k/mac.c 	ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, rate);
rate             7350 drivers/net/wireless/ath/ath10k/mac.c 			    rate, ret);
rate             7415 drivers/net/wireless/ath/ath10k/mac.c 	u8 rate = arvif->vht_pfr;
rate             7422 drivers/net/wireless/ath/ath10k/mac.c 					WMI_PEER_PARAM_FIXED_RATE, rate);
rate             7480 drivers/net/wireless/ath/ath10k/mac.c 	u8 rate;
rate             7515 drivers/net/wireless/ath/ath10k/mac.c 							      &rate, &nss,
rate             7524 drivers/net/wireless/ath/ath10k/mac.c 		rate = WMI_FIXED_RATE_NONE;
rate             7527 drivers/net/wireless/ath/ath10k/mac.c 		rate = WMI_FIXED_RATE_NONE;
rate             7567 drivers/net/wireless/ath/ath10k/mac.c 	ret = ath10k_mac_set_fixed_rate_params(arvif, rate, nss, sgi, ldpc);
rate              820 drivers/net/wireless/ath/ath10k/wmi-tlv.c 	arg->rate = ev->rate;
rate             1647 drivers/net/wireless/ath/ath10k/wmi-tlv.h 	__le32 rate;
rate             2259 drivers/net/wireless/ath/ath10k/wmi.c 	arg->rate = ev_hdr->rate;
rate             2303 drivers/net/wireless/ath/ath10k/wmi.c 	arg->rate = ev_hdr->rate;
rate             2454 drivers/net/wireless/ath/ath10k/wmi.c 	u32 rate;
rate             2469 drivers/net/wireless/ath/ath10k/wmi.c 	rate = __le32_to_cpu(arg.rate);
rate             2515 drivers/net/wireless/ath/ath10k/wmi.c 	status->rate_idx = ath10k_mac_bitrate_to_idx(sband, rate / 100);
rate             3374 drivers/net/wireless/ath/ath10k/wmi.h 	__le32 rate;
rate             3399 drivers/net/wireless/ath/ath10k/wmi.h 	__le32 rate;
rate             4278 drivers/net/wireless/ath/ath10k/wmi.h 	__le32 rate;
rate             5050 drivers/net/wireless/ath/ath10k/wmi.h #define ATH10K_HW_NSS(rate)		(1 + (((rate) >> 4) & 0x3))
rate             5051 drivers/net/wireless/ath/ath10k/wmi.h #define ATH10K_HW_PREAMBLE(rate)	(((rate) >> 6) & 0x3)
rate             5052 drivers/net/wireless/ath/ath10k/wmi.h #define ATH10K_HW_MCS_RATE(rate)	((rate) & 0xf)
rate             5053 drivers/net/wireless/ath/ath10k/wmi.h #define ATH10K_HW_LEGACY_RATE(rate)	((rate) & 0x3f)
rate             5056 drivers/net/wireless/ath/ath10k/wmi.h #define ATH10K_HW_RATECODE(rate, nss, preamble) \
rate             5057 drivers/net/wireless/ath/ath10k/wmi.h 	(((preamble) << 6) | ((nss) << 4) | (rate))
rate             6769 drivers/net/wireless/ath/ath10k/wmi.h 	__le32 rate;
rate             1536 drivers/net/wireless/ath/ath5k/ath5k.h 		int len, struct ieee80211_rate *rate, bool shortpre);
rate              716 drivers/net/wireless/ath/ath5k/base.c 	struct ieee80211_rate *rate;
rate              720 drivers/net/wireless/ath/ath5k/base.c 	rate = ath5k_get_rate(hw, info, bf, idx);
rate              721 drivers/net/wireless/ath/ath5k/base.c 	if (!rate)
rate              726 drivers/net/wireless/ath/ath5k/base.c 		   rate->hw_value_short : rate->hw_value;
rate              740 drivers/net/wireless/ath/ath5k/base.c 	struct ieee80211_rate *rate;
rate              760 drivers/net/wireless/ath/ath5k/base.c 	rate = ath5k_get_rate(ah->hw, info, bf, 0);
rate              762 drivers/net/wireless/ath/ath5k/base.c 	if (!rate) {
rate              813 drivers/net/wireless/ath/ath5k/base.c 			rate = ath5k_get_rate(ah->hw, info, bf, i);
rate              814 drivers/net/wireless/ath/ath5k/base.c 			if (!rate)
rate              114 drivers/net/wireless/ath/ath5k/pcu.c 		int len, struct ieee80211_rate *rate, bool shortpre)
rate              123 drivers/net/wireless/ath/ath5k/pcu.c 					NULL, band, len, rate);
rate              133 drivers/net/wireless/ath/ath5k/pcu.c 	bitrate = rate->bitrate;
rate              279 drivers/net/wireless/ath/ath5k/pcu.c 	struct ieee80211_rate *rate;
rate              290 drivers/net/wireless/ath/ath5k/pcu.c 			rate = &ah->sbands[band].bitrates[ack_rates_high[i]];
rate              293 drivers/net/wireless/ath/ath5k/pcu.c 			rate = &ah->sbands[band].bitrates[0];
rate              296 drivers/net/wireless/ath/ath5k/pcu.c 			rate = &ah->sbands[band].bitrates[4];
rate              299 drivers/net/wireless/ath/ath5k/pcu.c 		reg = AR5K_RATE_DUR(rate->hw_value);
rate              308 drivers/net/wireless/ath/ath5k/pcu.c 					rate, false);
rate              312 drivers/net/wireless/ath/ath5k/pcu.c 		if (!(rate->flags & IEEE80211_RATE_SHORT_PREAMBLE))
rate              315 drivers/net/wireless/ath/ath5k/pcu.c 		tx_time = ath5k_hw_get_frame_duration(ah, band, 10, rate, true);
rate              562 drivers/net/wireless/ath/ath5k/qcu.c 	struct ieee80211_rate *rate;
rate              614 drivers/net/wireless/ath/ath5k/qcu.c 	rate = NULL;
rate              618 drivers/net/wireless/ath/ath5k/qcu.c 		rate = &sband->bitrates[i];
rate              621 drivers/net/wireless/ath/ath5k/qcu.c 	if (WARN_ON(!rate))
rate              624 drivers/net/wireless/ath/ath5k/qcu.c 	ack_tx_time = ath5k_hw_get_frame_duration(ah, band, 10, rate, false);
rate             1713 drivers/net/wireless/ath/ath6kl/cfg80211.c static bool is_rate_legacy(s32 rate)
rate             1722 drivers/net/wireless/ath/ath6kl/cfg80211.c 		if (rate == legacy[i])
rate             1728 drivers/net/wireless/ath/ath6kl/cfg80211.c static bool is_rate_ht20(s32 rate, u8 *mcs, bool *sgi)
rate             1736 drivers/net/wireless/ath/ath6kl/cfg80211.c 		if (rate == ht20[i]) {
rate             1750 drivers/net/wireless/ath/ath6kl/cfg80211.c static bool is_rate_ht40(s32 rate, u8 *mcs, bool *sgi)
rate             1759 drivers/net/wireless/ath/ath6kl/cfg80211.c 		if (rate == ht40[i]) {
rate             1781 drivers/net/wireless/ath/ath6kl/cfg80211.c 	s32 rate;
rate             1829 drivers/net/wireless/ath/ath6kl/cfg80211.c 	rate = vif->target_stats.tx_ucast_rate;
rate             1831 drivers/net/wireless/ath/ath6kl/cfg80211.c 	if (is_rate_legacy(rate)) {
rate             1832 drivers/net/wireless/ath/ath6kl/cfg80211.c 		sinfo->txrate.legacy = rate / 100;
rate             1833 drivers/net/wireless/ath/ath6kl/cfg80211.c 	} else if (is_rate_ht20(rate, &mcs, &sgi)) {
rate             1843 drivers/net/wireless/ath/ath6kl/cfg80211.c 	} else if (is_rate_ht40(rate, &mcs, &sgi)) {
rate             1855 drivers/net/wireless/ath/ath6kl/cfg80211.c 			   "invalid rate from stats: %d\n", rate);
rate             3386 drivers/net/wireless/ath/ath6kl/cfg80211.c 					  u32 rate, u32 pkts, u32 intvl)
rate             3402 drivers/net/wireless/ath/ath6kl/cfg80211.c 					 rate, pkts, intvl);
rate              707 drivers/net/wireless/ath/ath6kl/main.c 	s32 rate;
rate              738 drivers/net/wireless/ath/ath6kl/main.c 	rate = a_sle32_to_cpu(tgt_stats->stats.tx.ucast_rate);
rate              739 drivers/net/wireless/ath/ath6kl/main.c 	stats->tx_ucast_rate = ath6kl_wmi_get_rate(ar->wmi, rate);
rate              757 drivers/net/wireless/ath/ath6kl/main.c 	rate = a_sle32_to_cpu(tgt_stats->stats.rx.ucast_rate);
rate              758 drivers/net/wireless/ath/ath6kl/main.c 	stats->rx_ucast_rate = ath6kl_wmi_get_rate(ar->wmi, rate);
rate             1204 drivers/net/wireless/ath/ath6kl/wmi.c 	s32 rate;
rate             1215 drivers/net/wireless/ath/ath6kl/wmi.c 		rate = RATE_AUTO;
rate             1222 drivers/net/wireless/ath/ath6kl/wmi.c 		rate = wmi_rate_tbl[index][sgi];
rate             1587 drivers/net/wireless/ath/ath6kl/wmi.c 	u32 rate, pkts;
rate             1601 drivers/net/wireless/ath/ath6kl/wmi.c 	rate = le32_to_cpu(ev->rate);
rate             1605 drivers/net/wireless/ath/ath6kl/wmi.c 		   vif->bssid, rate, pkts, vif->txe_intvl);
rate             1608 drivers/net/wireless/ath/ath6kl/wmi.c 				rate, vif->txe_intvl, GFP_KERNEL);
rate             1614 drivers/net/wireless/ath/ath6kl/wmi.c 			      u32 rate, u32 pkts, u32 intvl)
rate             1624 drivers/net/wireless/ath/ath6kl/wmi.c 	cmd->rate = cpu_to_le32(rate);
rate             2140 drivers/net/wireless/ath/ath6kl/wmi.h 	__le32 rate;
rate             2147 drivers/net/wireless/ath/ath6kl/wmi.h 	__le32 rate;
rate             2664 drivers/net/wireless/ath/ath6kl/wmi.h 			      u32 rate, u32 pkts, u32 intvl);
rate              149 drivers/net/wireless/ath/ath9k/ath9k.h #define IS_HT_RATE(rate)   (rate & 0x80)
rate              150 drivers/net/wireless/ath/ath9k/ath9k.h #define IS_CCK_RATE(rate)  ((rate >= 0x18) && (rate <= 0x1e))
rate              151 drivers/net/wireless/ath/ath9k/ath9k.h #define IS_OFDM_RATE(rate) ((rate >= 0x8) && (rate <= 0xf))
rate             1131 drivers/net/wireless/ath/ath9k/ath9k.h u8 ath_txchainmask_reduction(struct ath_softc *sc, u8 chainmask, u32 rate);
rate               81 drivers/net/wireless/ath/ath9k/beacon.c 	u8 i, rate = 0;
rate               84 drivers/net/wireless/ath/ath9k/beacon.c 	rate = sband->bitrates[rateidx].hw_value;
rate               86 drivers/net/wireless/ath/ath9k/beacon.c 		rate |= sband->bitrates[rateidx].hw_value_short;
rate              106 drivers/net/wireless/ath/ath9k/beacon.c 	info.rates[0].Rate = rate;
rate              107 drivers/net/wireless/ath/ath9k/beacon.c 	info.rates[0].ChSel = ath_txchainmask_reduction(sc, chainmask, rate);
rate              254 drivers/net/wireless/ath/ath9k/dynack.c 		const struct ieee80211_rate *rate;
rate              258 drivers/net/wireless/ath/ath9k/dynack.c 		rate = &common->sbands[info->band].bitrates[rates[ridx].idx];
rate              260 drivers/net/wireless/ath/ath9k/dynack.c 		    !(rate->flags & IEEE80211_RATE_ERP_G))
rate              447 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c 	struct ieee80211_tx_rate *rate;
rate              463 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c 	rate = &tx_info->status.rates[0];
rate              484 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c 		rate->flags |= IEEE80211_TX_RC_USE_RTS_CTS;
rate              486 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c 	rate->count = 1;
rate              487 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c 	rate->idx = MS(txs->ts_rate, ATH9K_HTC_TXSTAT_RATE);
rate              490 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c 		rate->flags |= IEEE80211_TX_RC_MCS;
rate              493 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c 			rate->flags |= IEEE80211_TX_RC_40_MHZ_WIDTH;
rate              495 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c 			rate->flags |= IEEE80211_TX_RC_SHORT_GI;
rate              498 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c 			rate->idx += 4; /* No CCK rates */
rate             1018 drivers/net/wireless/ath/ath9k/recv.c 	const struct ieee80211_rate *rate;
rate             1049 drivers/net/wireless/ath/ath9k/recv.c 		rate = &common->sbands[rxs->band].bitrates[rxs->rate_idx];
rate             1050 drivers/net/wireless/ath/ath9k/recv.c 		airtime += ath9k_hw_computetxtime(ah, phy, rate->bitrate * 100,
rate               51 drivers/net/wireless/ath/ath9k/tx99.c 	struct ieee80211_tx_rate *rate;
rate               82 drivers/net/wireless/ath/ath9k/tx99.c 	rate = &tx_info->control.rates[0];
rate               86 drivers/net/wireless/ath/ath9k/tx99.c 	rate->count = 1;
rate               88 drivers/net/wireless/ath/ath9k/tx99.c 		rate->flags |= IEEE80211_TX_RC_MCS;
rate               90 drivers/net/wireless/ath/ath9k/tx99.c 			rate->flags |= IEEE80211_TX_RC_40_MHZ_WIDTH;
rate             1212 drivers/net/wireless/ath/ath9k/xmit.c 	const struct ieee80211_rate *rate;
rate             1281 drivers/net/wireless/ath/ath9k/xmit.c 		rate = &common->sbands[tx_info->band].bitrates[rates[i].idx];
rate             1283 drivers/net/wireless/ath/ath9k/xmit.c 		    !(rate->flags & IEEE80211_RATE_ERP_G))
rate             1288 drivers/net/wireless/ath/ath9k/xmit.c 		info->rates[i].Rate = rate->hw_value;
rate             1289 drivers/net/wireless/ath/ath9k/xmit.c 		if (rate->hw_value_short) {
rate             1291 drivers/net/wireless/ath/ath9k/xmit.c 				info->rates[i].Rate |= rate->hw_value_short;
rate             1303 drivers/net/wireless/ath/ath9k/xmit.c 			phy, rate->bitrate * 100, len, rix, is_sp);
rate             2074 drivers/net/wireless/ath/ath9k/xmit.c 	const struct ieee80211_rate *rate;
rate             2090 drivers/net/wireless/ath/ath9k/xmit.c 	rate = ieee80211_get_rts_cts_rate(hw, tx_info);
rate             2118 drivers/net/wireless/ath/ath9k/xmit.c 	if (!rate)
rate             2120 drivers/net/wireless/ath/ath9k/xmit.c 	fi->rtscts_rate = rate->hw_value;
rate             2122 drivers/net/wireless/ath/ath9k/xmit.c 		fi->rtscts_rate |= rate->hw_value_short;
rate             2125 drivers/net/wireless/ath/ath9k/xmit.c u8 ath_txchainmask_reduction(struct ath_softc *sc, u8 chainmask, u32 rate)
rate             2131 drivers/net/wireless/ath/ath9k/xmit.c 	    (chainmask == 0x7) && (rate < 0x90))
rate             2134 drivers/net/wireless/ath/ath9k/xmit.c 		 IS_CCK_RATE(rate))
rate              710 drivers/net/wireless/ath/carl9170/tx.c 	struct ieee80211_rate *rate = NULL;
rate              747 drivers/net/wireless/ath/carl9170/tx.c 		rate = &__carl9170_ratetable[idx];
rate              748 drivers/net/wireless/ath/carl9170/tx.c 		*tpc += txpower[(rate->hw_value & 0x30) >> 4];
rate              749 drivers/net/wireless/ath/carl9170/tx.c 		*phyrate = rate->hw_value & 0xf;
rate              756 drivers/net/wireless/ath/carl9170/tx.c 		    rate && rate->bitrate >= 360)
rate              826 drivers/net/wireless/ath/carl9170/tx.c 				  struct ieee80211_tx_rate *rate,
rate              836 drivers/net/wireless/ath/carl9170/tx.c 		if (!(rate->flags & IEEE80211_TX_RC_USE_RTS_CTS))
rate              852 drivers/net/wireless/ath/carl9170/tx.c 				  struct ieee80211_tx_rate *rate)
rate              857 drivers/net/wireless/ath/carl9170/tx.c 		if (!(rate->flags & IEEE80211_TX_RC_USE_CTS_PROTECT))
rate             1571 drivers/net/wireless/ath/carl9170/tx.c 	struct ieee80211_tx_rate *rate;
rate             1576 drivers/net/wireless/ath/carl9170/tx.c 	rate = &txinfo->control.rates[0];
rate             1578 drivers/net/wireless/ath/carl9170/tx.c 	carl9170_tx_rate_tpc_chains(ar, txinfo, rate, plcp, &power, &chains);
rate             1589 drivers/net/wireless/ath/carl9170/tx.c 		if (rate->flags & IEEE80211_TX_RC_SHORT_GI)
rate             1592 drivers/net/wireless/ath/carl9170/tx.c 		if (rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH) {
rate             1595 drivers/net/wireless/ath/carl9170/tx.c 		} else if (rate->flags & IEEE80211_TX_RC_DUP_DATA) {
rate             1583 drivers/net/wireless/ath/wcn36xx/hal.h 	u8 rate[WCN36XX_HAL_MAC_RATESET_EID_MAX];
rate              606 drivers/net/wireless/broadcom/b43/b43.h #define B43_RATE_TO_BASE100KBPS(rate)	(((rate) * 10) / 2)
rate             1527 drivers/net/wireless/broadcom/b43/main.c 				      u16 shm_size_offset, u8 rate)
rate             1533 drivers/net/wireless/broadcom/b43/main.c 	b43_generate_plcp_hdr(&plcp, size + FCS_LEN, rate);
rate             1612 drivers/net/wireless/broadcom/b43/main.c 	unsigned int rate;
rate             1621 drivers/net/wireless/broadcom/b43/main.c 	rate = ieee80211_get_tx_rate(dev->wl->hw, info)->hw_value;
rate             1637 drivers/net/wireless/broadcom/b43/main.c 				  len, ram_offset, shm_size_offset, rate);
rate             1648 drivers/net/wireless/broadcom/b43/main.c 	if (b43_is_cck_rate(rate))
rate             3150 drivers/net/wireless/broadcom/b43/main.c static void b43_rate_memory_write(struct b43_wldev *dev, u16 rate, int is_ofdm)
rate             3156 drivers/net/wireless/broadcom/b43/main.c 		offset += (b43_plcp_get_ratecode_ofdm(rate) & 0x000F) * 2;
rate             3159 drivers/net/wireless/broadcom/b43/main.c 		offset += (b43_plcp_get_ratecode_cck(rate) & 0x000F) * 2;
rate             4054 drivers/net/wireless/broadcom/b43/main.c 	struct ieee80211_rate *rate;
rate             4059 drivers/net/wireless/broadcom/b43/main.c 		rate = &sband->bitrates[i];
rate             4061 drivers/net/wireless/broadcom/b43/main.c 		if (b43_is_cck_rate(rate->hw_value)) {
rate             4064 drivers/net/wireless/broadcom/b43/main.c 			offset = b43_plcp_get_ratecode_cck(rate->hw_value);
rate             4069 drivers/net/wireless/broadcom/b43/main.c 			offset = b43_plcp_get_ratecode_ofdm(rate->hw_value);
rate             4073 drivers/net/wireless/broadcom/b43/main.c 		rate = ieee80211_get_response_rate(sband, brates, rate->bitrate);
rate             4075 drivers/net/wireless/broadcom/b43/main.c 		if (b43_is_cck_rate(rate->hw_value)) {
rate             4076 drivers/net/wireless/broadcom/b43/main.c 			basic_offset = b43_plcp_get_ratecode_cck(rate->hw_value);
rate             4079 drivers/net/wireless/broadcom/b43/main.c 			basic_offset = b43_plcp_get_ratecode_ofdm(rate->hw_value);
rate               48 drivers/net/wireless/broadcom/b43/main.h static inline int b43_is_cck_rate(int rate)
rate               50 drivers/net/wireless/broadcom/b43/main.h 	return (rate == B43_CCK_RATE_1MB ||
rate               51 drivers/net/wireless/broadcom/b43/main.h 		rate == B43_CCK_RATE_2MB ||
rate               52 drivers/net/wireless/broadcom/b43/main.h 		rate == B43_CCK_RATE_5MB || rate == B43_CCK_RATE_11MB);
rate               55 drivers/net/wireless/broadcom/b43/main.h static inline int b43_is_ofdm_rate(int rate)
rate               57 drivers/net/wireless/broadcom/b43/main.h 	return !b43_is_cck_rate(rate);
rate               28 drivers/net/wireless/broadcom/b43/ppr.c 	u8 *rate;
rate               30 drivers/net/wireless/broadcom/b43/ppr.c 	ppr_for_each_entry(ppr, i, rate) {
rate               31 drivers/net/wireless/broadcom/b43/ppr.c 		*rate = clamp_val(*rate + diff, 0, 127);
rate               38 drivers/net/wireless/broadcom/b43/ppr.c 	u8 *rate;
rate               40 drivers/net/wireless/broadcom/b43/ppr.c 	ppr_for_each_entry(ppr, i, rate) {
rate               41 drivers/net/wireless/broadcom/b43/ppr.c 		*rate = min(*rate, max);
rate               48 drivers/net/wireless/broadcom/b43/ppr.c 	u8 *rate;
rate               50 drivers/net/wireless/broadcom/b43/ppr.c 	ppr_for_each_entry(ppr, i, rate) {
rate               51 drivers/net/wireless/broadcom/b43/ppr.c 		*rate = max(*rate, min);
rate               59 drivers/net/wireless/broadcom/b43/ppr.c 	u8 *rate;
rate               61 drivers/net/wireless/broadcom/b43/ppr.c 	ppr_for_each_entry(ppr, i, rate) {
rate               62 drivers/net/wireless/broadcom/b43/ppr.c 		res = max(*rate, res);
rate              250 drivers/net/wireless/broadcom/b43/xmit.c 	u8 rate, rate_fb;
rate              265 drivers/net/wireless/broadcom/b43/xmit.c 	rate = txrate ? txrate->hw_value : B43_CCK_RATE_1MB;
rate              266 drivers/net/wireless/broadcom/b43/xmit.c 	rate_ofdm = b43_is_ofdm_rate(rate);
rate              272 drivers/net/wireless/broadcom/b43/xmit.c 		txhdr->phy_rate = b43_plcp_get_ratecode_ofdm(rate);
rate              274 drivers/net/wireless/broadcom/b43/xmit.c 		txhdr->phy_rate = b43_plcp_get_ratecode_cck(rate);
rate              279 drivers/net/wireless/broadcom/b43/xmit.c 	if ((rate_fb == rate) ||
rate              343 drivers/net/wireless/broadcom/b43/xmit.c 				      plcp_fragment_len, rate);
rate              347 drivers/net/wireless/broadcom/b43/xmit.c 				      plcp_fragment_len, rate);
rate              351 drivers/net/wireless/broadcom/b43/xmit.c 				      plcp_fragment_len, rate);
rate              557 drivers/net/wireless/broadcom/b43/xmit.c 			cpu_to_le16(b43_generate_tx_phy_ctl1(dev, rate));
rate              285 drivers/net/wireless/broadcom/b43legacy/b43legacy.h #define B43legacy_RATE_TO_100KBPS(rate)	(((rate) * 10) / 2)
rate              895 drivers/net/wireless/broadcom/b43legacy/main.c 					    u16 shm_size_offset, u8 rate)
rate              902 drivers/net/wireless/broadcom/b43legacy/main.c 	b43legacy_generate_plcp_hdr(&plcp, size + FCS_LEN, rate);
rate              947 drivers/net/wireless/broadcom/b43legacy/main.c 	unsigned int rate;
rate              955 drivers/net/wireless/broadcom/b43legacy/main.c 	rate = ieee80211_get_tx_rate(dev->wl->hw, info)->hw_value;
rate              958 drivers/net/wireless/broadcom/b43legacy/main.c 					shm_size_offset, rate);
rate             1021 drivers/net/wireless/broadcom/b43legacy/main.c 					    struct ieee80211_rate *rate)
rate             1028 drivers/net/wireless/broadcom/b43legacy/main.c 	b43legacy_generate_plcp_hdr(&plcp, size + FCS_LEN, rate->hw_value);
rate             1033 drivers/net/wireless/broadcom/b43legacy/main.c 					       rate);
rate             1052 drivers/net/wireless/broadcom/b43legacy/main.c 					       struct ieee80211_rate *rate)
rate             1099 drivers/net/wireless/broadcom/b43legacy/main.c 					       rate);
rate             1108 drivers/net/wireless/broadcom/b43legacy/main.c 						struct ieee80211_rate *rate)
rate             1114 drivers/net/wireless/broadcom/b43legacy/main.c 	probe_resp_data = b43legacy_generate_probe_resp(dev, &size, rate);
rate             1134 drivers/net/wireless/broadcom/b43legacy/main.c 					shm_size_offset, rate->hw_value);
rate             2051 drivers/net/wireless/broadcom/b43legacy/main.c 					u16 rate,
rate             2058 drivers/net/wireless/broadcom/b43legacy/main.c 		offset += (b43legacy_plcp_get_ratecode_ofdm(rate) & 0x000F) * 2;
rate             2061 drivers/net/wireless/broadcom/b43legacy/main.c 		offset += (b43legacy_plcp_get_ratecode_cck(rate) & 0x000F) * 2;
rate             2764 drivers/net/wireless/broadcom/b43legacy/main.c 	struct ieee80211_rate *rate;
rate             2769 drivers/net/wireless/broadcom/b43legacy/main.c 		rate = &sband->bitrates[i];
rate             2771 drivers/net/wireless/broadcom/b43legacy/main.c 		if (b43legacy_is_cck_rate(rate->hw_value)) {
rate             2774 drivers/net/wireless/broadcom/b43legacy/main.c 			offset = b43legacy_plcp_get_ratecode_cck(rate->hw_value);
rate             2779 drivers/net/wireless/broadcom/b43legacy/main.c 			offset = b43legacy_plcp_get_ratecode_ofdm(rate->hw_value);
rate             2783 drivers/net/wireless/broadcom/b43legacy/main.c 		rate = ieee80211_get_response_rate(sband, brates, rate->bitrate);
rate             2785 drivers/net/wireless/broadcom/b43legacy/main.c 		if (b43legacy_is_cck_rate(rate->hw_value)) {
rate             2786 drivers/net/wireless/broadcom/b43legacy/main.c 			basic_offset = b43legacy_plcp_get_ratecode_cck(rate->hw_value);
rate             2789 drivers/net/wireless/broadcom/b43legacy/main.c 			basic_offset = b43legacy_plcp_get_ratecode_ofdm(rate->hw_value);
rate               73 drivers/net/wireless/broadcom/b43legacy/main.h int b43legacy_is_cck_rate(int rate)
rate               75 drivers/net/wireless/broadcom/b43legacy/main.h 	return (rate == B43legacy_CCK_RATE_1MB ||
rate               76 drivers/net/wireless/broadcom/b43legacy/main.h 		rate == B43legacy_CCK_RATE_2MB ||
rate               77 drivers/net/wireless/broadcom/b43legacy/main.h 		rate == B43legacy_CCK_RATE_5MB ||
rate               78 drivers/net/wireless/broadcom/b43legacy/main.h 		rate == B43legacy_CCK_RATE_11MB);
rate               82 drivers/net/wireless/broadcom/b43legacy/main.h int b43legacy_is_ofdm_rate(int rate)
rate               84 drivers/net/wireless/broadcom/b43legacy/main.h 	return !b43legacy_is_cck_rate(rate);
rate              183 drivers/net/wireless/broadcom/b43legacy/xmit.c 	u8 rate;
rate              199 drivers/net/wireless/broadcom/b43legacy/xmit.c 	rate = tx_rate->hw_value;
rate              200 drivers/net/wireless/broadcom/b43legacy/xmit.c 	rate_ofdm = b43legacy_is_ofdm_rate(rate);
rate              208 drivers/net/wireless/broadcom/b43legacy/xmit.c 	if ((rate_fb->hw_value == rate) ||
rate              258 drivers/net/wireless/broadcom/b43legacy/xmit.c 				    rate);
rate               98 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c #define RATE_TO_BASE100KBPS(rate)   (((rate) * 10) / 2)
rate             2560 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	u32 rate;
rate             2564 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	err = brcmf_fil_cmd_int_get(ifp, BRCMF_C_GET_RATE, &rate);
rate             2570 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	sinfo->txrate.legacy = rate * 5;
rate              643 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h 	__be32	rate;
rate              154 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	u32 rate, mcs;
rate              159 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 		rate = mcs_2_rate(mcs, false, false);
rate              160 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 		ampdu->max_txlen[mcs][0][0] = (rate * dur) >> 3;
rate              162 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 		rate = mcs_2_rate(mcs, true, false);
rate              163 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 		ampdu->max_txlen[mcs][1][0] = (rate * dur) >> 3;
rate              165 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 		rate = mcs_2_rate(mcs, false, true);
rate              166 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 		ampdu->max_txlen[mcs][0][1] = (rate * dur) >> 3;
rate              168 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 		rate = mcs_2_rate(mcs, true, true);
rate              169 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 		ampdu->max_txlen[mcs][1][1] = (rate * dur) >> 3;
rate              684 drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h #define	D11A_PHY_HDR_SRATE(phdr, rate)		\
rate              685 drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h 	((phdr)->rlpt[0] = ((phdr)->rlpt[0] & 0xf0) | ((rate) & 0xf))
rate              262 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c static void brcms_set_basic_rate(struct brcm_rateset *rs, u16 rate, bool is_br)
rate              267 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		if (rate != (rs->rates[i] & 0x7f))
rate              631 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		u16 rate;
rate              644 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 			rate = (bi->bitrates[i].bitrate << 1) / 10;
rate              647 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 			brcms_set_basic_rate(&rs, rate, br_mask & 1);
rate              619 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	uint rate = rspec2rate(ratespec);
rate              621 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	if (rate == 0) {
rate              624 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		rate = BRCM_RATE_1M;
rate              652 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	} else if (is_ofdm_rate(rate)) {
rate              656 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		Ndps = rate * 2;
rate              671 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		dur = (mac_len + rate - 1) / rate;
rate             1636 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 					 u8 rate)
rate             1641 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		u8 rate;
rate             1657 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		if (rate == rate_lookup[i].rate) {
rate             1671 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	u8 rate;
rate             1685 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		rate = rates[i];
rate             1687 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		entry_ptr = brcms_b_ofdm_ratetable_offset(wlc_hw, rate);
rate             3429 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	u8 rate;
rate             3448 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		rate = (rateset->rates[i] & BRCMS_RATE_MASK);
rate             3450 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		if (rate > BRCM_MAXRATE) {
rate             3457 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		br[rate] = rate;
rate             3475 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		rate = wlc->band->hw_rateset.rates[i];
rate             3477 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		if (br[rate] != 0) {
rate             3482 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			if (is_ofdm_rate(rate))
rate             3483 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 				ofdm_basic = rate;
rate             3485 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 				cck_basic = rate;
rate             3495 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		br[rate] = is_ofdm_rate(rate) ? ofdm_basic : cck_basic;
rate             3497 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		if (br[rate] != 0)
rate             3500 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		if (is_ofdm_rate(rate)) {
rate             3505 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			if (rate >= BRCM_RATE_24M)
rate             3507 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			else if (rate >= BRCM_RATE_12M)
rate             3513 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			mandatory = rate;
rate             3516 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		br[rate] = mandatory;
rate             3622 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c static void brcms_c_write_rate_shm(struct brcms_c_info *wlc, u8 rate,
rate             3634 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	basic_table = is_ofdm_rate(rate) ? M_RT_BBRSMAP_A : M_RT_BBRSMAP_B;
rate             3640 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	phy_rate = rate_info[rate] & BRCMS_RATE_MASK;
rate             3678 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	u8 rate, basic_rate;
rate             3688 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		rate = rs.rates[i] & BRCMS_RATE_MASK;
rate             3693 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		basic_rate = brcms_basic_rate(wlc, rate);
rate             3700 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_c_write_rate_shm(wlc, rate, basic_rate);
rate             5676 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c u16 brcms_b_rate_shm_offset(struct brcms_hardware *wlc_hw, u8 rate)
rate             5682 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	if (is_ofdm_rate(rate))
rate             5690 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	phy_rate = rate_info[rate] & BRCMS_RATE_MASK;
rate             5773 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_c_compute_frame_dur(struct brcms_c_info *wlc, u32 rate,
rate             5781 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	dur += (u16) brcms_c_calc_ack_time(wlc, rate, preamble_type);
rate             5789 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		    (u16) brcms_c_calc_frame_time(wlc, rate, preamble_type,
rate             5801 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	uint rate = rspec2rate(ratespec);
rate             5821 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		Ndps = rate * 2;
rate             5831 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		mac_len = dur * rate;
rate             5881 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	u8 rate = int_val & NRATE_RATE_MASK;
rate             5890 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		return (u32) rate;
rate             5903 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		if (rate == 32) {
rate             5913 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		} else if (rate > HIGHEST_SINGLE_STREAM_MCS) {
rate             5918 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 						   wlc->pub->unit, rate);
rate             5935 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	} else if (is_ofdm_rate(rate)) {
rate             5942 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	} else if (is_cck_rate(rate)) {
rate             5964 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	rspec = rate;
rate             5983 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	if ((rate != 0)
rate             5985 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		return rate;
rate             5989 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	return rate;
rate             6066 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	int rate = rspec2rate(rspec);
rate             6072 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	rate_signal = rate_info[rate] & BRCMS_RATE_MASK;
rate             6086 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	int rate = rspec2rate(rspec);
rate             6088 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	brcms_c_cck_plcp_set(wlc, rate, length, plcp);
rate             7244 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	u8 rate;
rate             7262 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		rate = rs.rates[i] & BRCMS_RATE_MASK;
rate             7264 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		entry_ptr = brcms_b_rate_shm_offset(wlc->hw, rate);
rate             7267 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_c_compute_plcp(wlc, rate, frame_len, plcp);
rate             7273 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		dur = (u16) brcms_c_calc_frame_time(wlc, rate,
rate              656 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h u16 brcms_b_rate_shm_offset(struct brcms_hardware *wlc_hw, u8 rate);
rate             1452 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	u8 maxtxpwr, mintxpwr, rate, pactrl;
rate             1460 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	for (rate = 0; rate < max_num_rate; rate++) {
rate             1463 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 					  rate);
rate             1528 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 				 u8 rate)
rate             1535 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	u8 maxtxpwr, mintxpwr, rate, pactrl;
rate             1586 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	for (rate = start_rate; rate < max_num_rate; rate++) {
rate             1588 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		tx_pwr_target[rate] = pi->tx_user_target[rate];
rate             1591 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 			tx_pwr_target[rate] +=
rate             1595 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 								 rate);
rate             1599 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 					  &mintxpwr, &maxtxpwr, rate);
rate             1601 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		maxtxpwr = min(maxtxpwr, pi->txpwr_limit[rate]);
rate             1607 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		maxtxpwr = min(maxtxpwr, tx_pwr_target[rate]);
rate             1612 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		tx_pwr_target[rate] = max(maxtxpwr, mintxpwr);
rate             1614 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		tx_pwr_target[rate] =
rate             1615 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 			min(tx_pwr_target[rate], pi->txpwr_env_limit[rate]);
rate             1617 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		if (tx_pwr_target[rate] > tx_pwr_max)
rate             1618 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 			tx_pwr_max_rate_ind = rate;
rate             1620 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		tx_pwr_max = max(tx_pwr_max, tx_pwr_target[rate]);
rate             1621 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		tx_pwr_min = min(tx_pwr_min, tx_pwr_target[rate]);
rate             1628 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	for (rate = 0; rate < max_num_rate; rate++) {
rate             1630 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		pi->tx_power_target[rate] = tx_pwr_target[rate];
rate             1633 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 			pi->tx_power_offset[rate] =
rate             1634 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 				pi->tx_power_max - pi->tx_power_target[rate];
rate             1636 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 			pi->tx_power_offset[rate] =
rate             1637 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 				pi->tx_power_target[rate] - pi->tx_power_min;
rate             2031 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	uint rate, num_rates;
rate             2057 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	for (rate = 0; rate < num_rates; rate++) {
rate             2058 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		power->user_limit[rate] = pi->tx_user_target[rate];
rate             2060 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 					  rate);
rate             2061 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		power->board_limit[rate] = (u8) max_pwr;
rate             2062 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		power->target[rate] = pi->tx_power_target[rate];
rate              217 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_hal.h 			       u8 *_max_, int rate);
rate             27884 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	u8 rate;
rate             27888 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	for (rate = rate_start; rate <= rate_end; rate++) {
rate             27889 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		word_num = (rate - rate_start) >> 2;
rate             27890 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		nibble_num = (rate - rate_start) & 0x3;
rate             27893 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		srom_max[rate] = tmp_max_pwr - 2 * tmp_nibble;
rate             27901 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	u8 rate;
rate             27903 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	for (rate = rate_start; rate <= rate_end; rate++)
rate             27904 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		srom_max[rate] -= 2 * pwr_offset;
rate              195 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy_shim.c u16 wlapi_bmac_rate_shm_offset(struct phy_shim_info *physhim, u8 rate)
rate              197 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy_shim.c 	return brcms_b_rate_shm_offset(physhim->wlc_hw, rate);
rate              162 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy_shim.h u16 wlapi_bmac_rate_shm_offset(struct phy_shim_info *physhim, u8 rate);
rate              484 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c s16 brcms_c_rate_legacy_phyctl(uint rate)
rate              488 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c 		if (rate == legacy_phycfg_table[i].rate_ofdm)
rate              183 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.h 	u32 rate = (ratespec & BRCMS_RATE_MASK);
rate              186 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.h 			rate == BRCM_RATE_1M || rate == BRCM_RATE_2M ||
rate              187 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.h 			rate == BRCM_RATE_5M5 || rate == BRCM_RATE_11M);
rate              238 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.h s16 brcms_c_rate_legacy_phyctl(uint rate);
rate              998 drivers/net/wireless/cisco/airo.c 	u8 rate;
rate             4881 drivers/net/wireless/intel/ipw2x00/ipw2100.c static int ipw2100_set_tx_rates(struct ipw2100_priv *priv, u32 rate,
rate             4891 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	cmd.host_command_parameters[0] = rate & TX_RATE_MASK;
rate             4916 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	priv->tx_rates = rate;
rate             7075 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	u32 rate;
rate             7084 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	rate = 0;
rate             7088 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		rate |= TX_RATE_1_MBIT;
rate             7091 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		rate |= TX_RATE_2_MBIT;
rate             7094 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		rate |= TX_RATE_5_5_MBIT;
rate             7097 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		rate |= TX_RATE_11_MBIT;
rate             7098 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (rate == 0)
rate             7099 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		rate = DEFAULT_TX_RATES;
rate             7101 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	err = ipw2100_set_tx_rates(priv, rate, 0);
rate             7103 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	IPW_DEBUG_WX("SET Rate -> %04X\n", rate);
rate             4186 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	u32 rate, len = sizeof(rate);
rate             4193 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		err = ipw_get_ordinal(priv, IPW_ORD_STAT_TX_CURR_RATE, &rate,
rate             4202 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	switch (rate) {
rate             5270 drivers/net/wireless/intel/ipw2x00/ipw2200.c static int ipw_is_rate_in_mask(struct ipw_priv *priv, int ieee_mode, u8 rate)
rate             5272 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	rate &= ~LIBIPW_BASIC_RATE_MASK;
rate             5274 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		switch (rate) {
rate             5305 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	switch (rate) {
rate             5321 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	switch (rate) {
rate             7738 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	u16 pktrate = frame->rate;
rate             7919 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	u8 rate = frame->rate;
rate             8029 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	switch (rate) {
rate             8293 drivers/net/wireless/intel/ipw2x00/ipw2200.c 					.rate = pkt->u.frame.rate,
rate             8311 drivers/net/wireless/intel/ipw2x00/ipw2200.c 				if (stats.rate != 0)
rate              470 drivers/net/wireless/intel/ipw2x00/ipw2200.h 	u8 rate;
rate              613 drivers/net/wireless/intel/ipw2x00/ipw2200.h 	u8 rate;
rate              666 drivers/net/wireless/intel/ipw2x00/ipw2200.h 	u8 rate;
rate              228 drivers/net/wireless/intel/ipw2x00/libipw.h 	u16 rate;		/* in 100 kbps */
rate              916 drivers/net/wireless/intel/ipw2x00/libipw.h static inline int libipw_is_ofdm_rate(u8 rate)
rate              918 drivers/net/wireless/intel/ipw2x00/libipw.h 	switch (rate & ~LIBIPW_BASIC_RATE_MASK) {
rate              932 drivers/net/wireless/intel/ipw2x00/libipw.h static inline int libipw_is_cck_rate(u8 rate)
rate              934 drivers/net/wireless/intel/ipw2x00/libipw.h 	switch (rate & ~LIBIPW_BASIC_RATE_MASK) {
rate               55 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	u8 rate;
rate              120 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			rate = network->rates_ex[j++] & 0x7F;
rate              122 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			rate = network->rates[i++] & 0x7F;
rate              124 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		iwe.u.bitrate.value = ((rate & 0x7f) * 500000);
rate              130 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		rate = network->rates_ex[j] & 0x7F;
rate              132 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		iwe.u.bitrate.value = ((rate & 0x7f) * 500000);
rate              318 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	u8 rate;
rate              328 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	rate = il_get_lowest_plcp(il);
rate              330 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	frame_size = il3945_hw_get_beacon_cmd(il, frame, rate);
rate              769 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	u8 rate = beacon->beacon_notify_hdr.rate;
rate              775 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	     le32_to_cpu(beacon->high_tsf), le32_to_cpu(beacon->low_tsf), rate);
rate             2598 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		scan->tx_cmd.rate = RATE_1M_PLCP;
rate             2602 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		scan->tx_cmd.rate = RATE_6M_PLCP;
rate               82 drivers/net/wireless/intel/iwlegacy/3945.c 	u8 rate = il3945_rates[rate_idx].prev_ieee;
rate               84 drivers/net/wireless/intel/iwlegacy/3945.c 	if (rate == RATE_INVALID)
rate               85 drivers/net/wireless/intel/iwlegacy/3945.c 		rate = rate_idx;
rate               86 drivers/net/wireless/intel/iwlegacy/3945.c 	return rate;
rate              238 drivers/net/wireless/intel/iwlegacy/3945.c il3945_rs_next_rate(struct il_priv *il, int rate)
rate              240 drivers/net/wireless/intel/iwlegacy/3945.c 	int next_rate = il3945_get_prev_ieee_rate(rate);
rate              244 drivers/net/wireless/intel/iwlegacy/3945.c 		if (rate == RATE_12M_IDX)
rate              246 drivers/net/wireless/intel/iwlegacy/3945.c 		else if (rate == RATE_6M_IDX)
rate              252 drivers/net/wireless/intel/iwlegacy/3945.c 			if (rate == RATE_11M_IDX)
rate              336 drivers/net/wireless/intel/iwlegacy/3945.c 	rate_idx = il3945_hwrate_to_plcp_idx(tx_resp->rate);
rate              351 drivers/net/wireless/intel/iwlegacy/3945.c 	     il3945_get_tx_fail_reason(status), status, tx_resp->rate,
rate              548 drivers/net/wireless/intel/iwlegacy/3945.c 	rx_status.rate_idx = il3945_hwrate_to_plcp_idx(rx_hdr->rate);
rate              690 drivers/net/wireless/intel/iwlegacy/3945.c 	int rate;
rate              697 drivers/net/wireless/intel/iwlegacy/3945.c 	rate = il3945_rates[rate_idx].plcp;
rate              713 drivers/net/wireless/intel/iwlegacy/3945.c 	tx_cmd->rate = rate;
rate              724 drivers/net/wireless/intel/iwlegacy/3945.c 	       "cck/ofdm mask: 0x%x/0x%x\n", sta_id, tx_cmd->rate,
rate             1417 drivers/net/wireless/intel/iwlegacy/3945.c 		txpower.power[i].rate = il3945_rates[rate_idx].plcp;
rate             1422 drivers/net/wireless/intel/iwlegacy/3945.c 			txpower.power[i].tpc.dsp_atten, txpower.power[i].rate);
rate             1428 drivers/net/wireless/intel/iwlegacy/3945.c 		txpower.power[i].rate = il3945_rates[rate_idx].plcp;
rate             1433 drivers/net/wireless/intel/iwlegacy/3945.c 			txpower.power[i].tpc.dsp_atten, txpower.power[i].rate);
rate             2415 drivers/net/wireless/intel/iwlegacy/3945.c 			 u8 rate)
rate             2433 drivers/net/wireless/intel/iwlegacy/3945.c 	tx_beacon_cmd->tx.rate = rate;
rate              215 drivers/net/wireless/intel/iwlegacy/3945.h 				      struct il3945_frame *frame, u8 rate);
rate              245 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_rs_next_rate(struct il_priv *il, int rate);
rate              862 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	u8 rate;
rate              939 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			rate = RATE_6M_PLCP;
rate              941 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			rate = RATE_1M_PLCP;
rate              946 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		rate = RATE_6M_PLCP;
rate              980 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	scan->tx_cmd.rate_n_flags = cpu_to_le32(rate | rate_flags);
rate             3786 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	u32 rate;
rate             3825 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	rate = il_get_lowest_plcp(il);
rate             3828 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if ((rate >= IL_FIRST_CCK_RATE) && (rate <= IL_LAST_CCK_RATE))
rate             3830 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	tx_beacon_cmd->tx.rate_n_flags = cpu_to_le32(rate | rate_flags);
rate             4079 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	u8 rate = il4965_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags);
rate             4085 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	     le32_to_cpu(beacon->high_tsf), le32_to_cpu(beacon->low_tsf), rate);
rate             1079 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	s8 rate = idx;
rate             1085 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		    il4965_rs_get_adjacent_rate(il, rate, rate_mask,
rate             1106 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		if ((100 * tpt_tbl[rate] > lq_sta->last_tpt &&
rate             1108 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		      && tpt_tbl[rate] <= active_tpt)) ||
rate             1110 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		     tpt_tbl[rate] > active_tpt)) {
rate             1120 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			new_rate = rate;
rate             1124 drivers/net/wireless/intel/iwlegacy/4965-rs.c 				rate = low;
rate             1141 drivers/net/wireless/intel/iwlegacy/4965-rs.c 				rate = high;
rate             1145 drivers/net/wireless/intel/iwlegacy/4965-rs.c 				new_rate = rate;
rate             1164 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	s32 rate;
rate             1192 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	rate = il4965_rs_get_best_rate(il, lq_sta, tbl, rate_mask, idx);
rate             1194 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	D_RATE("LQ: MIMO2 best rate %d mask %X\n", rate, rate_mask);
rate             1195 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	if (rate == RATE_INVALID || !((1 << rate) & rate_mask)) {
rate             1196 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		D_RATE("Can't switch with idx %d rate mask %x\n", rate,
rate             1201 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	    il4965_rate_n_flags_from_tbl(il, tbl, rate, is_green);
rate             1218 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	s32 rate;
rate             1240 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	rate = il4965_rs_get_best_rate(il, lq_sta, tbl, rate_mask, idx);
rate             1242 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	D_RATE("LQ: get best rate %d mask %X\n", rate, rate_mask);
rate             1243 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	if (rate == RATE_INVALID || !((1 << rate) & rate_mask)) {
rate             1244 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		D_RATE("can not switch with idx %d rate mask %x\n", rate,
rate             1249 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	    il4965_rate_n_flags_from_tbl(il, tbl, rate, is_green);
rate             1713 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	u32 rate;
rate             1716 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	rate = il4965_rate_n_flags_from_tbl(il, tbl, idx, is_green);
rate             1717 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	il4965_rs_fill_link_cmd(il, lq_sta, rate);
rate             2138 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	u32 rate;
rate             2162 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	rate = il_rates[i].plcp;
rate             2164 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	rate |= tbl->ant_type << RATE_MCS_ANT_POS;
rate             2167 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		rate |= RATE_MCS_CCK_MSK;
rate             2169 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	il4965_rs_get_tbl_info_from_mcs(rate, il->band, tbl, &rate_idx);
rate             2171 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		il4965_rs_toggle_antenna(valid_tx_ant, &rate, tbl);
rate             2173 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	rate = il4965_rate_n_flags_from_tbl(il, tbl, rate_idx, use_green);
rate             2174 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	tbl->current_rate = rate;
rate             2176 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	il4965_rs_fill_link_cmd(NULL, lq_sta, rate);
rate              234 drivers/net/wireless/intel/iwlegacy/commands.h 	u8 rate;		/* plcp */
rate             1176 drivers/net/wireless/intel/iwlegacy/commands.h 	u8 rate;
rate             1376 drivers/net/wireless/intel/iwlegacy/commands.h 	u8 rate;
rate             1422 drivers/net/wireless/intel/iwlegacy/commands.h 	u8 rate;
rate             1928 drivers/net/wireless/intel/iwlegacy/common.c 	u16 rate;
rate             1992 drivers/net/wireless/intel/iwlegacy/common.c 	rate = (il->band == NL80211_BAND_5GHZ) ? RATE_6M_PLCP : RATE_1M_PLCP;
rate             1994 drivers/net/wireless/intel/iwlegacy/common.c 	station->sta.rate_n_flags = cpu_to_le16(rate | RATE_MCS_ANT_AB_MSK);
rate             4068 drivers/net/wireless/intel/iwlegacy/common.c 	struct ieee80211_rate *rate;
rate             4080 drivers/net/wireless/intel/iwlegacy/common.c 		rate = &(hw->bitrates[i]);
rate             4081 drivers/net/wireless/intel/iwlegacy/common.c 		if (rate->hw_value < RATE_COUNT_LEGACY)
rate             4082 drivers/net/wireless/intel/iwlegacy/common.c 			il->active_rate |= (1 << rate->hw_value);
rate              383 drivers/net/wireless/intel/iwlwifi/dvm/agn.h static inline __le32 iwl_hw_set_rate_n_flags(u8 rate, u32 flags)
rate              385 drivers/net/wireless/intel/iwlwifi/dvm/agn.h 	return cpu_to_le32(flags|(u32)rate);
rate              195 drivers/net/wireless/intel/iwlwifi/dvm/main.c 	u32 rate;
rate              242 drivers/net/wireless/intel/iwlwifi/dvm/main.c 		rate = 0;
rate              244 drivers/net/wireless/intel/iwlwifi/dvm/main.c 		rate = info->control.rates[0].idx;
rate              252 drivers/net/wireless/intel/iwlwifi/dvm/main.c 		rate += IWL_FIRST_OFDM_RATE;
rate              253 drivers/net/wireless/intel/iwlwifi/dvm/main.c 	else if (rate >= IWL_FIRST_CCK_RATE && rate <= IWL_LAST_CCK_RATE)
rate              257 drivers/net/wireless/intel/iwlwifi/dvm/main.c 			iwl_hw_set_rate_n_flags(rate, rate_flags);
rate             1166 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	s8 rate = index;
rate             1171 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 		high_low = rs_get_adjacent_rate(priv, rate, rate_mask,
rate             1192 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 		if ((((100 * tpt_tbl[rate]) > lq_sta->last_tpt) &&
rate             1195 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 		      (tpt_tbl[rate] <= active_tpt))) ||
rate             1197 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 		     (tpt_tbl[rate] > active_tpt))) {
rate             1207 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 			new_rate = rate;
rate             1211 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 				rate = low;
rate             1228 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 				rate = high;
rate             1232 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 				new_rate = rate;
rate             1251 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	s32 rate;
rate             1281 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	rate = rs_get_best_rate(priv, lq_sta, tbl, rate_mask, index);
rate             1283 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	IWL_DEBUG_RATE(priv, "LQ: MIMO2 best rate %d mask %X\n", rate, rate_mask);
rate             1284 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	if ((rate == IWL_RATE_INVALID) || !((1 << rate) & rate_mask)) {
rate             1286 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 						rate, rate_mask);
rate             1289 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	tbl->current_rate = rate_n_flags_from_tbl(priv, tbl, rate, is_green);
rate             1306 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	s32 rate;
rate             1336 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	rate = rs_get_best_rate(priv, lq_sta, tbl, rate_mask, index);
rate             1339 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 		rate, rate_mask);
rate             1340 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	if ((rate == IWL_RATE_INVALID) || !((1 << rate) & rate_mask)) {
rate             1342 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 						rate, rate_mask);
rate             1345 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	tbl->current_rate = rate_n_flags_from_tbl(priv, tbl, rate, is_green);
rate             1363 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	s32 rate;
rate             1387 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	rate = rs_get_best_rate(priv, lq_sta, tbl, rate_mask, index);
rate             1389 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	IWL_DEBUG_RATE(priv, "LQ: get best rate %d mask %X\n", rate, rate_mask);
rate             1390 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	if ((rate == IWL_RATE_INVALID) || !((1 << rate) & rate_mask)) {
rate             1392 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 			     rate, rate_mask);
rate             1395 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	tbl->current_rate = rate_n_flags_from_tbl(priv, tbl, rate, is_green);
rate             2177 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	u32 rate;
rate             2180 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	rate = rate_n_flags_from_tbl(priv, tbl, index, is_green);
rate             2181 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	rs_fill_link_cmd(priv, lq_sta, rate);
rate             2645 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	u32 rate;
rate             2672 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	rate = iwl_rates[i].plcp;
rate             2674 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	rate |= tbl->ant_type << RATE_MCS_ANT_POS;
rate             2677 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 		rate |= RATE_MCS_CCK_MSK;
rate             2679 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	rs_get_tbl_info_from_mcs(rate, priv->band, tbl, &rate_idx);
rate             2681 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	    rs_toggle_antenna(valid_tx_ant, &rate, tbl);
rate             2683 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	rate = rate_n_flags_from_tbl(priv, tbl, rate_idx, use_green);
rate             2684 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	tbl->current_rate = rate;
rate             2686 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	rs_fill_link_cmd(NULL, lq_sta, rate);
rate              121 drivers/net/wireless/intel/iwlwifi/dvm/rx.c 	u8 rate = iwl_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags);
rate              129 drivers/net/wireless/intel/iwlwifi/dvm/rx.c 		le32_to_cpu(beacon->low_tsf), rate);
rate              629 drivers/net/wireless/intel/iwlwifi/dvm/scan.c 	u8 rate;
rate              748 drivers/net/wireless/intel/iwlwifi/dvm/scan.c 			rate = IWL_RATE_6M_PLCP;
rate              750 drivers/net/wireless/intel/iwlwifi/dvm/scan.c 			rate = IWL_RATE_1M_PLCP;
rate              762 drivers/net/wireless/intel/iwlwifi/dvm/scan.c 		rate = IWL_RATE_6M_PLCP;
rate              810 drivers/net/wireless/intel/iwlwifi/dvm/scan.c 	scan->tx_cmd.rate_n_flags = iwl_hw_set_rate_n_flags(rate, rate_flags);
rate              265 drivers/net/wireless/intel/iwlwifi/fw/api/location.h 	u8 rate;
rate              936 drivers/net/wireless/intel/iwlwifi/fw/api/location.h 	u8 rate;
rate              235 drivers/net/wireless/intel/iwlwifi/fw/api/rs.h 	__le32 rate;
rate              738 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h 	__le32 rate;
rate             1230 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c 	u8 rate;
rate             1277 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c 	rate = iwl_mvm_mac_ctxt_get_lowest_rate(info, vif);
rate             1278 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c 	flags = iwl_mvm_mac80211_idx_to_hwrate(rate);
rate             1280 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c 	if (rate == IWL_FIRST_CCK_RATE)
rate              857 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 	u8 rate;
rate              860 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 		rate = IWL_FIRST_OFDM_RATE;
rate              862 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 		rate = IWL_FIRST_CCK_RATE;
rate              864 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 	return rate;
rate              874 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 	u8 rate;
rate              897 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 	rate = iwl_mvm_mac_ctxt_get_lowest_rate(info, vif);
rate              899 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 	tx->rate_n_flags |= cpu_to_le32(iwl_mvm_mac80211_idx_to_hwrate(rate));
rate              900 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 	if (rate == IWL_FIRST_CCK_RATE)
rate              980 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 	u8 rate = iwl_mvm_mac_ctxt_get_lowest_rate(info, vif);
rate              983 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 	flags = iwl_mvm_mac80211_idx_to_hwrate(rate);
rate              985 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 	if (rate == IWL_FIRST_CCK_RATE)
rate             2910 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 		ewma_rate_init(&mdata->uapsd_nonagg_detect.rate);
rate              609 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h DECLARE_EWMA(rate, 16, 16)
rate              624 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h 		struct ewma_rate rate;
rate             1768 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h void iwl_mvm_update_frame_stats(struct iwl_mvm *mvm, u32 rate, bool agg);
rate             1769 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h int rs_pretty_print_rate(char *buf, int bufsz, const u32 rate);
rate              361 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c 		lq_sta->last_rate_n_flags = le32_to_cpu(notif->rate);
rate              122 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				     struct rs_rate *rate,
rate              134 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			 struct rs_rate *rate,
rate              141 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			  struct rs_rate *rate,
rate              163 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			  struct rs_rate *rate,
rate              173 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			 struct rs_rate *rate,
rate              179 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_ht20(rate) && (ht_cap->cap &
rate              182 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_ht40(rate) && (ht_cap->cap &
rate              185 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_ht80(rate) && (vht_cap->cap &
rate              188 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_ht160(rate) && (vht_cap->cap &
rate              522 drivers/net/wireless/intel/iwlwifi/mvm/rs.c static char *rs_pretty_rate(const struct rs_rate *rate)
rate              553 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_type_legacy(rate->type) && (rate->index <= IWL_RATE_54M_INDEX))
rate              554 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate_str = legacy_rates[rate->index];
rate              555 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	else if ((is_type_ht(rate->type) || is_type_vht(rate->type)) &&
rate              556 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		 (rate->index >= IWL_RATE_MCS_0_INDEX) &&
rate              557 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		 (rate->index <= IWL_RATE_MCS_9_INDEX))
rate              558 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate_str = ht_vht_rates[rate->index];
rate              562 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	sprintf(buf, "(%s|%s|%s)", rs_pretty_lq_type(rate->type),
rate              563 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rs_pretty_ant(rate->ant), rate_str);
rate              567 drivers/net/wireless/intel/iwlwifi/mvm/rs.c static inline void rs_dump_rate(struct iwl_mvm *mvm, const struct rs_rate *rate,
rate              572 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		       prefix, rs_pretty_rate(rate), rate->bw,
rate              573 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		       rate->sgi, rate->ldpc, rate->stbc);
rate              819 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				  struct rs_rate *rate)
rate              822 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	int index = rate->index;
rate              824 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	ucode_rate |= ((rate->ant << RATE_MCS_ANT_POS) &
rate              827 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_legacy(rate)) {
rate              834 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_ht(rate)) {
rate              841 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		if (is_ht_siso(rate))
rate              843 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		else if (is_ht_mimo2(rate))
rate              847 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	} else if (is_vht(rate)) {
rate              853 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		if (is_vht_siso(rate))
rate              855 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		else if (is_vht_mimo2(rate))
rate              861 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		IWL_ERR(mvm, "Invalid rate->type %d\n", rate->type);
rate              864 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_siso(rate) && rate->stbc) {
rate              870 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	ucode_rate |= rate->bw;
rate              871 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (rate->sgi)
rate              873 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (rate->ldpc)
rate              882 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				   struct rs_rate *rate)
rate              888 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	memset(rate, 0, sizeof(*rate));
rate              889 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->index = iwl_hwrate_to_plcp_idx(ucode_rate);
rate              891 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (rate->index == IWL_RATE_INVALID)
rate              894 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->ant = (ant_msk >> RATE_MCS_ANT_POS);
rate              902 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				rate->type = LQ_LEGACY_A;
rate              904 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				rate->type = LQ_LEGACY_G;
rate              912 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->sgi = true;
rate              914 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->ldpc = true;
rate              916 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->stbc = true;
rate              918 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->bfer = true;
rate              920 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->bw = ucode_rate & RATE_MCS_CHAN_WIDTH_MSK;
rate              927 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			rate->type = LQ_HT_SISO;
rate              928 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			WARN_ONCE(!rate->stbc && !rate->bfer && num_of_ant != 1,
rate              930 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				  rate->stbc, rate->bfer);
rate              932 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			rate->type = LQ_HT_MIMO2;
rate              942 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			rate->type = LQ_VHT_SISO;
rate              943 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			WARN_ONCE(!rate->stbc && !rate->bfer && num_of_ant != 1,
rate              945 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				  rate->stbc, rate->bfer);
rate              947 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			rate->type = LQ_VHT_MIMO2;
rate              957 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			rate->type = LQ_HE_SISO;
rate              958 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			WARN_ONCE(!rate->stbc && !rate->bfer && num_of_ant != 1,
rate              959 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				  "stbc %d bfer %d", rate->stbc, rate->bfer);
rate              961 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			rate->type = LQ_HE_MIMO2;
rate              968 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	WARN_ON_ONCE(rate->bw == RATE_MCS_CHAN_WIDTH_80 &&
rate              969 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		     !is_he(rate) && !is_vht(rate));
rate              976 drivers/net/wireless/intel/iwlwifi/mvm/rs.c static int rs_toggle_antenna(u32 valid_ant, struct rs_rate *rate)
rate              980 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (!rate->ant || WARN_ON_ONCE(rate->ant & ANT_C))
rate              983 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (!rs_is_valid_ant(valid_ant, rate->ant))
rate              986 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	new_ant_type = ant_toggle_lookup[rate->ant];
rate              988 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	while ((new_ant_type != rate->ant) &&
rate              992 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (new_ant_type == rate->ant)
rate              995 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->ant = new_ant_type;
rate             1001 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				  struct rs_rate *rate)
rate             1003 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_legacy(rate))
rate             1005 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	else if (is_siso(rate))
rate             1007 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	else if (is_mimo2(rate))
rate             1071 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				     struct rs_rate *rate)
rate             1073 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	return BIT(rate->index) & rs_get_supported_rates(lq_sta, rate);
rate             1080 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 					struct rs_rate *rate)
rate             1087 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate_mask = rs_get_supported_rates(lq_sta, rate);
rate             1088 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	high_low = rs_get_adjacent_rate(mvm, rate->index, rate_mask,
rate             1089 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 					rate->type);
rate             1096 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->index = low;
rate             1102 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 					  struct rs_rate *rate)
rate             1106 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_legacy(rate)) {
rate             1109 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	} else if (is_siso(rate)) {
rate             1112 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			rate->type = LQ_LEGACY_A;
rate             1114 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			rate->type = LQ_LEGACY_G;
rate             1116 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->bw = RATE_MCS_CHAN_WIDTH_20;
rate             1118 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		WARN_ON_ONCE(rate->index < IWL_RATE_MCS_0_INDEX ||
rate             1119 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			     rate->index > IWL_RATE_MCS_9_INDEX);
rate             1121 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->index = rs_ht_to_legacy[rate->index];
rate             1122 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->ldpc = false;
rate             1125 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->type = is_vht_mimo2(rate) ?
rate             1129 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (num_of_ant(rate->ant) > 1)
rate             1130 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->ant = first_antenna(iwl_mvm_get_valid_tx_ant(mvm));
rate             1133 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->sgi = false;
rate             1135 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (!rs_rate_supported(lq_sta, rate))
rate             1136 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rs_get_lower_rate_in_column(lq_sta, rate);
rate             1154 drivers/net/wireless/intel/iwlwifi/mvm/rs.c static inline enum rs_column rs_get_column_from_rate(struct rs_rate *rate)
rate             1156 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_legacy(rate)) {
rate             1157 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		if (rate->ant == ANT_A)
rate             1160 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		if (rate->ant == ANT_B)
rate             1166 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_siso(rate)) {
rate             1167 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		if (rate->ant == ANT_A || rate->stbc || rate->bfer)
rate             1168 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			return rate->sgi ? RS_COLUMN_SISO_ANT_A_SGI :
rate             1171 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		if (rate->ant == ANT_B)
rate             1172 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			return rate->sgi ? RS_COLUMN_SISO_ANT_B_SGI :
rate             1178 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_mimo(rate))
rate             1179 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		return rate->sgi ? RS_COLUMN_MIMO2_SGI : RS_COLUMN_MIMO2;
rate             1349 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	struct rs_rate *rate = &tbl->rate;
rate             1352 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	tbl->expected_tpt = rs_get_expected_tpt_table(lq_sta, column, rate->bw);
rate             1400 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 						tbl->rate.type);
rate             1540 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if ((!is_vht(&tbl->rate) && !is_ht(&tbl->rate)) ||
rate             1541 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	    tbl->rate.index < IWL_RATE_MCS_5_INDEX ||
rate             1576 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rs_fill_lq_cmd(mvm, sta, lq_sta, &tbl->rate);
rate             1589 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (!is_vht_siso(&tbl->rate))
rate             1592 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if ((tbl->rate.bw == RATE_MCS_CHAN_WIDTH_80) &&
rate             1593 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	    (tbl->rate.index == IWL_RATE_MCS_0_INDEX) &&
rate             1595 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		tbl->rate.bw = RATE_MCS_CHAN_WIDTH_20;
rate             1596 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		tbl->rate.index = IWL_RATE_MCS_4_INDEX;
rate             1606 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if ((tbl->rate.bw == RATE_MCS_CHAN_WIDTH_20) &&
rate             1607 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	    (((tbl->rate.index == IWL_RATE_MCS_5_INDEX) &&
rate             1609 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	     ((tbl->rate.index > IWL_RATE_MCS_5_INDEX) &&
rate             1611 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		tbl->rate.bw = RATE_MCS_CHAN_WIDTH_80;
rate             1612 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		tbl->rate.index = IWL_RATE_MCS_1_INDEX;
rate             1662 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			if (allow_func && !allow_func(mvm, sta, &tbl->rate,
rate             1717 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	struct rs_rate *rate = &search_tbl->rate;
rate             1725 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->sgi = column->sgi;
rate             1726 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->ant = column->ant;
rate             1730 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			rate->type = LQ_LEGACY_A;
rate             1732 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			rate->type = LQ_LEGACY_G;
rate             1734 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->bw = RATE_MCS_CHAN_WIDTH_20;
rate             1735 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->ldpc = false;
rate             1738 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->type = lq_sta->is_vht ? LQ_VHT_SISO : LQ_HT_SISO;
rate             1741 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->type = lq_sta->is_vht ? LQ_VHT_MIMO2 : LQ_HT_MIMO2;
rate             1748 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->bw = rs_bw_from_sta_bw(sta);
rate             1749 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->ldpc = lq_sta->ldpc;
rate             1762 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 					    rate_mask, rate->index);
rate             1774 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->index = rate_idx;
rate             1778 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		       col_id, rate->index);
rate             1783 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->type = LQ_NONE;
rate             1899 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			   struct rs_rate *rate, enum nl80211_band band)
rate             1901 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	int index = rate->index;
rate             1916 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	IWL_DEBUG_RATE(mvm, "check rate, table type: %d\n", rate->type);
rate             1917 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_legacy(rate))
rate             1919 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_ht(rate))
rate             1921 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_vht(rate))
rate             2007 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	struct rs_rate *rate = &tbl->rate;
rate             2032 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (!rs_tpc_allowed(mvm, vif, rate, band)) {
rate             2112 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	struct rs_rate *rate;
rate             2127 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate = &tbl->rate;
rate             2138 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	index = rate->index;
rate             2141 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate_mask = rs_get_supported_rates(lq_sta, rate);
rate             2147 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			rate->type = LQ_NONE;
rate             2176 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			       rs_pretty_rate(rate),
rate             2215 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			rate->type = LQ_NONE;
rate             2222 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			index = tbl->rate.index;
rate             2238 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	high_low = rs_get_adjacent_rate(mvm, index, rate_mask, rate->type);
rate             2255 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		       rs_pretty_rate(rate), current_tpt, sr,
rate             2262 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_mimo(rate) &&
rate             2305 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		tbl->rate.index = index;
rate             2352 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			index = tbl->rate.index;
rate             2354 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			rs_dump_rate(mvm, &tbl->rate,
rate             2367 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rs_set_stay_in_table(mvm, is_legacy(&tbl1->rate), lq_sta);
rate             2449 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	struct rs_rate *rate = &lq_sta->optimal_rate;
rate             2452 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->type = lq_sta->is_vht ? LQ_VHT_MIMO2 : LQ_HT_MIMO2;
rate             2454 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->type = lq_sta->is_vht ? LQ_VHT_SISO : LQ_HT_SISO;
rate             2456 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->type = LQ_LEGACY_A;
rate             2458 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->type = LQ_LEGACY_G;
rate             2460 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->bw = rs_bw_from_sta_bw(sta);
rate             2461 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->sgi = rs_sgi_allow(mvm, sta, rate, NULL);
rate             2465 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_mimo(rate)) {
rate             2467 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	} else if (is_siso(rate)) {
rate             2483 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_vht(rate)) {
rate             2484 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		if (rate->bw == RATE_MCS_CHAN_WIDTH_20) {
rate             2493 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	} else if (is_ht(rate)) {
rate             2503 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	struct rs_rate *rate = &lq_sta->optimal_rate;
rate             2506 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->index = find_first_bit(&lq_sta->optimal_rate_mask,
rate             2514 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			rate->index = rate_idx;
rate             2519 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	return rate;
rate             2529 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				struct rs_rate *rate)
rate             2553 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->ant = first_antenna(valid_tx_ant);
rate             2555 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->ant = best_ant;
rate             2557 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->sgi = false;
rate             2558 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->ldpc = false;
rate             2559 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->bw = RATE_MCS_CHAN_WIDTH_20;
rate             2561 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate->index = find_first_bit(&lq_sta->active_legacy_rate,
rate             2565 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->type = LQ_LEGACY_A;
rate             2569 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->type = LQ_LEGACY_G;
rate             2613 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->type = LQ_VHT_SISO;
rate             2614 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->bw = bw;
rate             2620 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->type = LQ_HT_SISO;
rate             2630 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			rate->index = rate_idx;
rate             2636 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rs_dump_rate(mvm, rate, "INITIAL");
rate             2682 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	struct rs_rate *rate;
rate             2694 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rate = &tbl->rate;
rate             2696 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rs_get_initial_rate(mvm, sta, lq_sta, band, rate);
rate             2699 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	WARN_ONCE(rate->ant != ANT_A && rate->ant != ANT_B,
rate             2701 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		  rate->ant, lq_sta->pers.chains, mvm->fw->valid_tx_ant,
rate             2704 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	tbl->column = rs_get_column_from_rate(rate);
rate             2707 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rs_fill_lq_cmd(mvm, sta, lq_sta, rate);
rate             2896 drivers/net/wireless/intel/iwlwifi/mvm/rs.c void iwl_mvm_update_frame_stats(struct iwl_mvm *mvm, u32 rate, bool agg)
rate             2907 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	switch (rate & RATE_MCS_CHAN_WIDTH_MSK) {
rate             2921 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		WARN_ONCE(1, "bad BW. rate 0x%x", rate);
rate             2924 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (rate & RATE_MCS_HT_MSK) {
rate             2926 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		nss = ((rate & RATE_HT_MCS_NSS_MSK) >> RATE_HT_MCS_NSS_POS) + 1;
rate             2927 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	} else if (rate & RATE_MCS_VHT_MSK) {
rate             2929 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		nss = ((rate & RATE_VHT_MCS_NSS_MSK) >>
rate             2940 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (rate & RATE_MCS_SGI_MSK)
rate             2945 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	mvm->drv_rx_stats.last_rates[mvm->drv_rx_stats.last_frame_idx] = rate;
rate             3189 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (WARN_ON_ONCE(!rs_rate_column_match(&lq_rate, &curr_tbl->rate))) {
rate             3193 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rs_dump_rate(mvm, &tmp_tbl->rate, "ACTIVE");
rate             3195 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rs_dump_rate(mvm, &tmp_tbl->rate, "SEARCH");
rate             3264 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			if (rs_rate_column_match(&lq_rate, &curr_tbl->rate))
rate             3267 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 						      &other_tbl->rate))
rate             3317 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	struct rs_rate rate;
rate             3326 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (rs_rate_from_ucode_rate(ucode_rate, band, &rate)) {
rate             3331 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_mimo(&rate))
rate             3351 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				     struct rs_rate *rate,
rate             3359 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	int prev_rate_idx = rate->index;
rate             3366 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 									 rate));
rate             3369 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				rs_toggle_antenna(valid_tx_ant, rate);
rate             3372 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		prev_rate_idx = rate->index;
rate             3373 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		bottom_reached = rs_get_lower_rate_in_column(lq_sta, rate);
rate             3374 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		if (bottom_reached && !is_legacy(rate))
rate             3378 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (!bottom_reached && !is_legacy(rate))
rate             3379 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate->index = prev_rate_idx;
rate             3409 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	struct rs_rate rate;
rate             3416 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	memcpy(&rate, initial_rate, sizeof(rate));
rate             3423 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate.stbc = true;
rate             3425 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_siso(&rate)) {
rate             3428 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	} else if (is_mimo(&rate)) {
rate             3437 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rs_fill_rates_for_column(mvm, lq_sta, &rate, lq_cmd->rs_table, &index,
rate             3441 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rs_get_lower_rate_down_column(lq_sta, &rate);
rate             3443 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (is_siso(&rate)) {
rate             3447 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	} else if (is_legacy(&rate)) {
rate             3456 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rs_fill_rates_for_column(mvm, lq_sta, &rate, lq_cmd->rs_table, &index,
rate             3460 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rs_get_lower_rate_down_column(lq_sta, &rate);
rate             3465 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	rs_fill_rates_for_column(mvm, lq_sta, &rate, lq_cmd->rs_table, &index,
rate             3687 drivers/net/wireless/intel/iwlwifi/mvm/rs.c int rs_pretty_print_rate(char *buf, int bufsz, const u32 rate)
rate             3692 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	u8 ant = (rate & RATE_MCS_ANT_ABC_MSK) >> RATE_MCS_ANT_POS;
rate             3694 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (!(rate & RATE_MCS_HT_MSK) &&
rate             3695 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	    !(rate & RATE_MCS_VHT_MSK) &&
rate             3696 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	    !(rate & RATE_MCS_HE_MSK)) {
rate             3697 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		int index = iwl_hwrate_to_plcp_idx(rate);
rate             3705 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (rate & RATE_MCS_VHT_MSK) {
rate             3707 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		mcs = rate & RATE_VHT_MCS_RATE_CODE_MSK;
rate             3708 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		nss = ((rate & RATE_VHT_MCS_NSS_MSK)
rate             3710 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	} else if (rate & RATE_MCS_HT_MSK) {
rate             3712 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		mcs = rate & RATE_HT_MCS_INDEX_MSK;
rate             3713 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		nss = ((rate & RATE_HT_MCS_NSS_MSK)
rate             3715 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	} else if (rate & RATE_MCS_HE_MSK) {
rate             3717 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		mcs = rate & RATE_VHT_MCS_RATE_CODE_MSK;
rate             3718 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		nss = ((rate & RATE_VHT_MCS_NSS_MSK)
rate             3724 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	switch (rate & RATE_MCS_CHAN_WIDTH_MSK) {
rate             3744 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			 (rate & RATE_MCS_SGI_MSK) ? "SGI " : "NGI ",
rate             3745 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			 (rate & RATE_MCS_STBC_MSK) ? "STBC " : "",
rate             3746 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			 (rate & RATE_MCS_LDPC_MSK) ? "LDPC " : "",
rate             3747 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			 (rate & RATE_MCS_BF_MSK) ? "BF " : "");
rate             3811 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	struct rs_rate *rate = &tbl->rate;
rate             3832 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			  (is_legacy(rate)) ? "legacy" :
rate             3833 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			  is_vht(rate) ? "VHT" : "HT");
rate             3834 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (!is_legacy(rate)) {
rate             3836 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		   (is_siso(rate)) ? "SISO" : "MIMO2");
rate             3838 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				(is_ht20(rate)) ? "20MHz" :
rate             3839 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				(is_ht40(rate)) ? "40MHz" :
rate             3840 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				(is_ht80(rate)) ? "80MHz" :
rate             3841 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				(is_ht160(rate)) ? "160MHz" : "BAD BW");
rate             3843 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				(rate->sgi) ? "SGI" : "NGI",
rate             3844 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				(rate->ldpc) ? "LDPC" : "BCC",
rate             3910 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	struct rs_rate *rate;
rate             3919 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		rate = &tbl->rate;
rate             3924 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				rate->type,
rate             3925 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				rate->sgi,
rate             3926 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				is_ht20(rate) ? "20MHz" :
rate             3927 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				is_ht40(rate) ? "40MHz" :
rate             3928 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				is_ht80(rate) ? "80MHz" :
rate             3929 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				is_ht160(rate) ? "160MHz" : "ERR",
rate             3930 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				rate->index);
rate             3986 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	int col, rate;
rate             4000 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	for (rate = 0; rate < IWL_RATE_COUNT; rate++)
rate             4001 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		pos += scnprintf(pos, endpos - pos, "%s,", rate_name[rate]);
rate             4008 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		for (rate = 0; rate < IWL_RATE_COUNT; rate++) {
rate             4009 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			stats = &(lq_sta->pers.tx_stats[col][rate]);
rate              195 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_legacy(rate)       is_type_legacy((rate)->type)
rate              196 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_ht_siso(rate)      is_type_ht_siso((rate)->type)
rate              197 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_ht_mimo2(rate)     is_type_ht_mimo2((rate)->type)
rate              198 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_vht_siso(rate)     is_type_vht_siso((rate)->type)
rate              199 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_vht_mimo2(rate)    is_type_vht_mimo2((rate)->type)
rate              200 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_siso(rate)         is_type_siso((rate)->type)
rate              201 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_mimo2(rate)        is_type_mimo2((rate)->type)
rate              202 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_mimo(rate)         is_type_mimo((rate)->type)
rate              203 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_ht(rate)           is_type_ht((rate)->type)
rate              204 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_vht(rate)          is_type_vht((rate)->type)
rate              205 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_he(rate)           is_type_he((rate)->type)
rate              206 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_a_band(rate)       is_type_a_band((rate)->type)
rate              207 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_g_band(rate)       is_type_g_band((rate)->type)
rate              209 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_ht20(rate)         ((rate)->bw == RATE_MCS_CHAN_WIDTH_20)
rate              210 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_ht40(rate)         ((rate)->bw == RATE_MCS_CHAN_WIDTH_40)
rate              211 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_ht80(rate)         ((rate)->bw == RATE_MCS_CHAN_WIDTH_80)
rate              212 drivers/net/wireless/intel/iwlwifi/mvm/rs.h #define is_ht160(rate)        ((rate)->bw == RATE_MCS_CHAN_WIDTH_160)
rate              302 drivers/net/wireless/intel/iwlwifi/mvm/rs.h 	struct rs_rate rate;
rate              321 drivers/net/wireless/intel/iwlwifi/mvm/rx.c 	ewma_rate_add(&mdata->uapsd_nonagg_detect.rate, thr);
rate              537 drivers/net/wireless/intel/iwlwifi/mvm/rx.c 		int rate = iwl_mvm_legacy_rate_to_mac80211_idx(rate_n_flags,
rate              540 drivers/net/wireless/intel/iwlwifi/mvm/rx.c 		if (WARN(rate < 0 || rate > 0xFF,
rate              546 drivers/net/wireless/intel/iwlwifi/mvm/rx.c 		rx_status->rate_idx = rate;
rate              831 drivers/net/wireless/intel/iwlwifi/mvm/rx.c 			ewma_rate_init(&mdata->uapsd_nonagg_detect.rate);
rate              832 drivers/net/wireless/intel/iwlwifi/mvm/rx.c 			ewma_rate_add(&mdata->uapsd_nonagg_detect.rate,
rate             1839 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c 		int rate = iwl_mvm_legacy_rate_to_mac80211_idx(rate_n_flags,
rate             1842 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c 		if (WARN(rate < 0 || rate > 0xFF,
rate             1848 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c 		rx_status->rate_idx = rate;
rate             1882 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c 	u32 rate_n_flags = le32_to_cpu(desc->rate);
rate             2001 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c 		int rate = iwl_mvm_legacy_rate_to_mac80211_idx(rate_n_flags,
rate             2004 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c 		if (WARN(rate < 0 || rate > 0xFF,
rate             2010 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c 		rx_status->rate_idx = rate;
rate             1054 drivers/net/wireless/intel/iwlwifi/mvm/scan.c static int rate_to_scan_rate_flag(unsigned int rate)
rate             1071 drivers/net/wireless/intel/iwlwifi/mvm/scan.c 	return rate_to_scan_rate[rate];
rate             1773 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 			       struct ieee80211_tx_info *ba_info, u32 rate)
rate             1829 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 	ba_info->status.status_driver_data[1] = (void *)(uintptr_t)rate;
rate             1855 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 			iwl_mvm_hwrate_to_tx_status(rate, info);
rate             1876 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 		iwl_mvm_hwrate_to_tx_status(rate, ba_info);
rate              215 drivers/net/wireless/intel/iwlwifi/mvm/utils.c 	int rate = rate_n_flags & RATE_LEGACY_RATE_MSK;
rate              223 drivers/net/wireless/intel/iwlwifi/mvm/utils.c 		if (fw_rate_idx_to_plcp[idx] == rate)
rate             1169 drivers/net/wireless/intel/iwlwifi/mvm/utils.c 	unsigned long rate;
rate             1172 drivers/net/wireless/intel/iwlwifi/mvm/utils.c 	rate = ewma_rate_read(&mvm->tcm.data[mac].uapsd_nonagg_detect.rate);
rate             1174 drivers/net/wireless/intel/iwlwifi/mvm/utils.c 	if (!rate || mvm->tcm.data[mac].opened_rx_ba_sessions ||
rate             1181 drivers/net/wireless/intel/iwlwifi/mvm/utils.c 		rate *= 1000; /* kbps */
rate             1182 drivers/net/wireless/intel/iwlwifi/mvm/utils.c 		if (tpt < 22 * rate / 100)
rate             1195 drivers/net/wireless/intel/iwlwifi/mvm/utils.c 		if (tpt < rate)
rate               73 drivers/net/wireless/intersil/hostap/hostap_80211.h 	u16 rate; /* in 100 kbps */
rate               31 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c 	       name, rx_stats->signal, rx_stats->noise, rx_stats->rate,
rate              150 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c 		LWNG_SETVAL(rate, 8, 0, 4, rx_stats->rate / 5);
rate              164 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c 		hdr->datarate   = htonl(rx_stats->rate);
rate              187 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c 		hdr->rate = rx_stats->rate / 5;
rate             2591 drivers/net/wireless/intersil/hostap/hostap_ap.c 	int rate;
rate             2598 drivers/net/wireless/intersil/hostap/hostap_ap.c 		for (rate = 0; rate < WLAN_RATE_COUNT; rate++) {
rate             2599 drivers/net/wireless/intersil/hostap/hostap_ap.c 			sta->tx_count[rate] = 0;
rate             2600 drivers/net/wireless/intersil/hostap/hostap_ap.c 			sta->rx_count[rate] = 0;
rate             2740 drivers/net/wireless/intersil/hostap/hostap_ap.c 		local->ap->last_tx_rate = meta->rate =
rate             2846 drivers/net/wireless/intersil/hostap/hostap_ap.c 	    sta->tx_rate_idx > 0 && meta->rate <= sta->tx_rate) {
rate             2848 drivers/net/wireless/intersil/hostap/hostap_ap.c 		int old, rate;
rate             2849 drivers/net/wireless/intersil/hostap/hostap_ap.c 		old = rate = sta->tx_rate_idx;
rate             2850 drivers/net/wireless/intersil/hostap/hostap_ap.c 		while (rate > 0) {
rate             2851 drivers/net/wireless/intersil/hostap/hostap_ap.c 			rate--;
rate             2852 drivers/net/wireless/intersil/hostap/hostap_ap.c 			if (ap_tx_rate_ok(rate, sta, local)) {
rate             2853 drivers/net/wireless/intersil/hostap/hostap_ap.c 				sta->tx_rate_idx = rate;
rate             3178 drivers/net/wireless/intersil/hostap/hostap_ap.c 		sta->last_rx_rate = rx_stats->rate;
rate             3180 drivers/net/wireless/intersil/hostap/hostap_ap.c 		if (rx_stats->rate == 10)
rate             3182 drivers/net/wireless/intersil/hostap/hostap_ap.c 		else if (rx_stats->rate == 20)
rate             3184 drivers/net/wireless/intersil/hostap/hostap_ap.c 		else if (rx_stats->rate == 55)
rate             3186 drivers/net/wireless/intersil/hostap/hostap_ap.c 		else if (rx_stats->rate == 110)
rate             1845 drivers/net/wireless/intersil/hostap/hostap_hw.c 	txdesc.tx_rate = meta->rate;
rate             2067 drivers/net/wireless/intersil/hostap/hostap_hw.c 	stats.rate = rxdesc->rate;
rate             1914 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 		sprintf(buf, "resp_rate=%d", le16_to_cpu(scan->rate));
rate             2520 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 		u16 rate;
rate             2525 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 		case 1: rate = HFA384X_RATES_1MBPS; break;
rate             2526 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 		case 2: rate = HFA384X_RATES_2MBPS; break;
rate             2527 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 		case 3: rate = HFA384X_RATES_5MBPS; break;
rate             2528 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 		case 4: rate = HFA384X_RATES_11MBPS; break;
rate             2529 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 		default: rate = HFA384X_RATES_1MBPS; break;
rate             2531 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 		scan_req.txrate = cpu_to_le16(rate);
rate              528 drivers/net/wireless/intersil/hostap/hostap_main.c 	       rx->silence, rx->signal, rx->rate, rx->rxflow, jiffies);
rate              293 drivers/net/wireless/intersil/hostap/hostap_proc.c 		   le16_to_cpu(scanres->rate),
rate               44 drivers/net/wireless/intersil/hostap/hostap_wlan.h 		noise, rate, istx, frmlen;
rate               67 drivers/net/wireless/intersil/hostap/hostap_wlan.h 	u8 rate;
rate               84 drivers/net/wireless/intersil/hostap/hostap_wlan.h 	u8 rate; /* 10, 20, 55, or 110 */
rate              240 drivers/net/wireless/intersil/hostap/hostap_wlan.h 	__le16 rate;
rate              253 drivers/net/wireless/intersil/hostap/hostap_wlan.h 	__le16 rate;
rate              928 drivers/net/wireless/intersil/hostap/hostap_wlan.h 	u8 rate; /* transmit rate */
rate              323 drivers/net/wireless/intersil/orinoco/hermes.h 	u8	rate;
rate              184 drivers/net/wireless/intersil/orinoco/main.c 	u8 rate;
rate               30 drivers/net/wireless/intersil/orinoco/scan.c 	u8 rate;
rate               34 drivers/net/wireless/intersil/orinoco/scan.c 		rate = le16_to_cpu(rates[i]);
rate               36 drivers/net/wireless/intersil/orinoco/scan.c 		if (rate == 0x0)
rate               38 drivers/net/wireless/intersil/orinoco/scan.c 		buf[i + 2] = rate;
rate              398 drivers/net/wireless/intersil/p54/fwio.c 	struct p54_scan_tail_rate *rate;
rate              407 drivers/net/wireless/intersil/p54/fwio.c 			    sizeof(*rate) + 2 * sizeof(*rssi),
rate              499 drivers/net/wireless/intersil/p54/fwio.c 		rate = skb_put(skb, sizeof(*rate));
rate              500 drivers/net/wireless/intersil/p54/fwio.c 		rate->basic_rate_mask = cpu_to_le32(priv->basic_rate_mask);
rate              501 drivers/net/wireless/intersil/p54/fwio.c 		for (i = 0; i < sizeof(rate->rts_rates); i++)
rate              502 drivers/net/wireless/intersil/p54/fwio.c 			rate->rts_rates[i] = i;
rate              517 drivers/net/wireless/intersil/p54/fwio.c 		rate = skb_put(skb, sizeof(*rate));
rate              518 drivers/net/wireless/intersil/p54/fwio.c 		rate->basic_rate_mask = cpu_to_le32(priv->basic_rate_mask);
rate              519 drivers/net/wireless/intersil/p54/fwio.c 		for (i = 0; i < sizeof(rate->rts_rates); i++)
rate              520 drivers/net/wireless/intersil/p54/fwio.c 			rate->rts_rates[i] = i;
rate              172 drivers/net/wireless/intersil/p54/lmac.h 	u8 rate;
rate              335 drivers/net/wireless/intersil/p54/txrx.c 	u8 rate = hdr->rate & 0xf;
rate              355 drivers/net/wireless/intersil/p54/txrx.c 	if (hdr->rate & 0x10)
rate              358 drivers/net/wireless/intersil/p54/txrx.c 		rx_status->rate_idx = (rate < 4) ? 0 : rate - 4;
rate              360 drivers/net/wireless/intersil/p54/txrx.c 		rx_status->rate_idx = rate;
rate              792 drivers/net/wireless/intersil/p54/txrx.c 	u8 rate, queue = 0, crypt_offset = 0;
rate              875 drivers/net/wireless/intersil/p54/txrx.c 		rate = info->control.rates[i].idx;
rate              877 drivers/net/wireless/intersil/p54/txrx.c 			rate += 4;
rate              884 drivers/net/wireless/intersil/p54/txrx.c 			rate |= 0x10;
rate              889 drivers/net/wireless/intersil/p54/txrx.c 			rate |= 0x40;
rate              891 drivers/net/wireless/intersil/p54/txrx.c 			rate |= 0x20;
rate              895 drivers/net/wireless/intersil/p54/txrx.c 			txhdr->rateset[ridx] = rate;
rate              833 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	u32 rate, profile;
rate              850 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rate = (u32) (vwrq->value / 500000);
rate              855 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		if (rate && (data[i] == rate)) {
rate              248 drivers/net/wireless/intersil/prism54/islpci_eth.c 		u8 rate = hdr->rate;
rate              276 drivers/net/wireless/intersil/prism54/islpci_eth.c 		avs->datarate = cpu_to_be32(rate * 5);
rate               18 drivers/net/wireless/intersil/prism54/islpci_eth.h 	u8 rate;
rate             1004 drivers/net/wireless/mac80211_hwsim.c static inline u16 trans_tx_rate_flags_ieee2hwsim(struct ieee80211_tx_rate *rate)
rate             1008 drivers/net/wireless/mac80211_hwsim.c 	if (rate->flags & IEEE80211_TX_RC_USE_RTS_CTS)
rate             1010 drivers/net/wireless/mac80211_hwsim.c 	if (rate->flags & IEEE80211_TX_RC_USE_CTS_PROTECT)
rate             1012 drivers/net/wireless/mac80211_hwsim.c 	if (rate->flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE)
rate             1014 drivers/net/wireless/mac80211_hwsim.c 	if (rate->flags & IEEE80211_TX_RC_MCS)
rate             1016 drivers/net/wireless/mac80211_hwsim.c 	if (rate->flags & IEEE80211_TX_RC_GREEN_FIELD)
rate             1018 drivers/net/wireless/mac80211_hwsim.c 	if (rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH)
rate             1020 drivers/net/wireless/mac80211_hwsim.c 	if (rate->flags & IEEE80211_TX_RC_DUP_DATA)
rate             1022 drivers/net/wireless/mac80211_hwsim.c 	if (rate->flags & IEEE80211_TX_RC_SHORT_GI)
rate             1024 drivers/net/wireless/mac80211_hwsim.c 	if (rate->flags & IEEE80211_TX_RC_VHT_MCS)
rate             1026 drivers/net/wireless/mac80211_hwsim.c 	if (rate->flags & IEEE80211_TX_RC_80_MHZ_WIDTH)
rate             1028 drivers/net/wireless/mac80211_hwsim.c 	if (rate->flags & IEEE80211_TX_RC_160_MHZ_WIDTH)
rate              139 drivers/net/wireless/marvell/libertas/cfg.c 		u8 rate = lbs_rates[i].bitrate / 5;
rate              140 drivers/net/wireless/marvell/libertas/cfg.c 		if (rate == 0x02 || rate == 0x04 ||
rate              141 drivers/net/wireless/marvell/libertas/cfg.c 		    rate == 0x0b || rate == 0x16)
rate              142 drivers/net/wireless/marvell/libertas/cfg.c 			rate |= 0x80;
rate              143 drivers/net/wireless/marvell/libertas/cfg.c 		rates[i] = rate;
rate             1797 drivers/net/wireless/marvell/libertas/cfg.c 					u8 rate = rates_eid[i+2];
rate             1798 drivers/net/wireless/marvell/libertas/cfg.c 					if (rate == 0x02 || rate == 0x04 ||
rate             1799 drivers/net/wireless/marvell/libertas/cfg.c 					    rate == 0x0b || rate == 0x16)
rate             1800 drivers/net/wireless/marvell/libertas/cfg.c 						rate |= 0x80;
rate             1801 drivers/net/wireless/marvell/libertas/cfg.c 					*rates++ = rate;
rate              119 drivers/net/wireless/marvell/libertas/cmd.h int lbs_set_data_rate(struct lbs_private *priv, u8 rate);
rate               72 drivers/net/wireless/marvell/libertas/decl.h u8 lbs_data_rate_to_fw_index(u32 rate);
rate              950 drivers/net/wireless/marvell/libertas/host.h 	u8 rate;
rate               89 drivers/net/wireless/marvell/libertas/main.c u8 lbs_data_rate_to_fw_index(u32 rate)
rate               93 drivers/net/wireless/marvell/libertas/main.c 	if (!rate)
rate               97 drivers/net/wireless/marvell/libertas/main.c 		if (rate == fw_data_rates[i])
rate                6 drivers/net/wireless/marvell/libertas/radiotap.h 	u8 rate;
rate               36 drivers/net/wireless/marvell/libertas/radiotap.h 	u8 rate;
rate              171 drivers/net/wireless/marvell/libertas/rx.c static u8 convert_mv_rate_to_radiotap(u8 rate)
rate              173 drivers/net/wireless/marvell/libertas/rx.c 	switch (rate) {
rate              200 drivers/net/wireless/marvell/libertas/rx.c 	pr_alert("Invalid Marvell WLAN rate %i\n", rate);
rate              245 drivers/net/wireless/marvell/libertas/rx.c 	radiotap_hdr.rate = convert_mv_rate_to_radiotap(prxpd->rx_rate);
rate               26 drivers/net/wireless/marvell/libertas/tx.c static u32 convert_radiotap_rate_to_mv(u8 rate)
rate               28 drivers/net/wireless/marvell/libertas/tx.c 	switch (rate) {
rate              120 drivers/net/wireless/marvell/libertas/tx.c 		txpd->tx_control = cpu_to_le32(convert_radiotap_rate_to_mv(rtap_hdr->rate));
rate             1288 drivers/net/wireless/marvell/mwifiex/cfg80211.c 		     struct rate_info *rate)
rate             1296 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			rate->mcs = rateinfo;
rate             1297 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			rate->flags |= RATE_INFO_FLAGS_MCS;
rate             1301 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			rate->mcs = rateinfo & 0x0F;
rate             1302 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			rate->flags |= RATE_INFO_FLAGS_VHT_MCS;
rate             1309 drivers/net/wireless/marvell/mwifiex/cfg80211.c 				rate->bw = RATE_INFO_BW_20;
rate             1312 drivers/net/wireless/marvell/mwifiex/cfg80211.c 				rate->bw = RATE_INFO_BW_40;
rate             1315 drivers/net/wireless/marvell/mwifiex/cfg80211.c 				rate->bw = RATE_INFO_BW_80;
rate             1318 drivers/net/wireless/marvell/mwifiex/cfg80211.c 				rate->bw = RATE_INFO_BW_160;
rate             1323 drivers/net/wireless/marvell/mwifiex/cfg80211.c 				rate->flags |= RATE_INFO_FLAGS_SHORT_GI;
rate             1326 drivers/net/wireless/marvell/mwifiex/cfg80211.c 				rate->nss = 2;
rate             1328 drivers/net/wireless/marvell/mwifiex/cfg80211.c 				rate->nss = 1;
rate             1336 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			rate->mcs = rateinfo;
rate             1337 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			rate->flags |= RATE_INFO_FLAGS_MCS;
rate             1338 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			rate->bw = RATE_INFO_BW_20;
rate             1340 drivers/net/wireless/marvell/mwifiex/cfg80211.c 				rate->bw = RATE_INFO_BW_40;
rate             1342 drivers/net/wireless/marvell/mwifiex/cfg80211.c 				rate->flags |= RATE_INFO_FLAGS_SHORT_GI;
rate             1365 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			rate->legacy = legacy_rates[rateinfo];
rate             1385 drivers/net/wireless/marvell/mwifiex/cfg80211.c 	u32 rate;
rate             1425 drivers/net/wireless/marvell/mwifiex/cfg80211.c 	if (mwifiex_drv_get_data_rate(priv, &rate)) {
rate             1446 drivers/net/wireless/marvell/mwifiex/cfg80211.c 	sinfo->txrate.legacy = rate * 5;
rate              199 drivers/net/wireless/marvell/mwifiex/cfp.c 	u32 rate = 0;
rate              214 drivers/net/wireless/marvell/mwifiex/cfp.c 			rate = ac_mcs_rate_nss2[2 * (3 - bw) + gi][mcs_index];
rate              216 drivers/net/wireless/marvell/mwifiex/cfp.c 			rate = ac_mcs_rate_nss1[2 * (3 - bw) + gi][mcs_index];
rate              226 drivers/net/wireless/marvell/mwifiex/cfp.c 				rate = 0x0D;    /* MCS 32 SGI rate */
rate              228 drivers/net/wireless/marvell/mwifiex/cfp.c 				rate = 0x0C;    /* MCS 32 LGI rate */
rate              231 drivers/net/wireless/marvell/mwifiex/cfp.c 				rate = mcs_rate[2 * (1 - bw) + gi][index];
rate              233 drivers/net/wireless/marvell/mwifiex/cfp.c 				rate = mwifiex_data_rates[0];
rate              235 drivers/net/wireless/marvell/mwifiex/cfp.c 			rate = mwifiex_data_rates[0];
rate              241 drivers/net/wireless/marvell/mwifiex/cfp.c 		rate = mwifiex_data_rates[index];
rate              244 drivers/net/wireless/marvell/mwifiex/cfp.c 	return rate;
rate              255 drivers/net/wireless/marvell/mwifiex/cfp.c 	u32 rate;
rate              263 drivers/net/wireless/marvell/mwifiex/cfp.c 				rate = 0x0D;	/* MCS 32 SGI rate */
rate              265 drivers/net/wireless/marvell/mwifiex/cfp.c 				rate = 0x0C;	/* MCS 32 LGI rate */
rate              270 drivers/net/wireless/marvell/mwifiex/cfp.c 					rate = mcs_rate[1][index];
rate              273 drivers/net/wireless/marvell/mwifiex/cfp.c 					rate = mcs_rate[0][index];
rate              277 drivers/net/wireless/marvell/mwifiex/cfp.c 					rate = mcs_rate[3][index];
rate              280 drivers/net/wireless/marvell/mwifiex/cfp.c 					rate = mcs_rate[2][index];
rate              283 drivers/net/wireless/marvell/mwifiex/cfp.c 			rate = mwifiex_data_rates[0];
rate              287 drivers/net/wireless/marvell/mwifiex/cfp.c 		rate = mwifiex_data_rates[index];
rate              289 drivers/net/wireless/marvell/mwifiex/cfp.c 	return rate;
rate             1500 drivers/net/wireless/marvell/mwifiex/main.h int mwifiex_drv_get_data_rate(struct mwifiex_private *priv, u32 *rate);
rate             1221 drivers/net/wireless/marvell/mwifiex/scan.c 	u8 *rate;
rate             1354 drivers/net/wireless/marvell/mwifiex/scan.c 				rate = (u8 *) bss_entry->data_rates;
rate             1355 drivers/net/wireless/marvell/mwifiex/scan.c 				rate += rate_size;
rate             1356 drivers/net/wireless/marvell/mwifiex/scan.c 				memcpy(rate, current_ptr + 2, bytes_to_copy);
rate             1358 drivers/net/wireless/marvell/mwifiex/scan.c 				rate = (u8 *) bss_entry->supported_rates;
rate             1359 drivers/net/wireless/marvell/mwifiex/scan.c 				rate += rate_size;
rate             1360 drivers/net/wireless/marvell/mwifiex/scan.c 				memcpy(rate, current_ptr + 2, bytes_to_copy);
rate              642 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c int mwifiex_drv_get_data_rate(struct mwifiex_private *priv, u32 *rate)
rate              651 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c 			*rate = mwifiex_index_to_data_rate(priv, priv->tx_rate,
rate              654 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c 			*rate = priv->data_rate;
rate              943 drivers/net/wireless/marvell/mwl8k.c 	__u8 rate;
rate             1004 drivers/net/wireless/marvell/mwl8k.c 	if (rxd->rate & MWL8K_AP_RATE_INFO_MCS_FORMAT) {
rate             1006 drivers/net/wireless/marvell/mwl8k.c 		if (rxd->rate & MWL8K_AP_RATE_INFO_40MHZ)
rate             1008 drivers/net/wireless/marvell/mwl8k.c 		status->rate_idx = MWL8K_AP_RATE_INFO_RATEID(rxd->rate);
rate             1013 drivers/net/wireless/marvell/mwl8k.c 			if (mwl8k_rates_24[i].hw_value == rxd->rate) {
rate             3569 drivers/net/wireless/marvell/mwl8k.c 		__le32 rate;
rate             3611 drivers/net/wireless/marvell/mwl8k.c 		__le32 rate;
rate             5049 drivers/net/wireless/marvell/mwl8k.c 				int rate;
rate             5059 drivers/net/wireless/marvell/mwl8k.c 					rate = mwl8k_rates_24[idx].hw_value;
rate             5061 drivers/net/wireless/marvell/mwl8k.c 					rate = mwl8k_rates_50[idx].hw_value;
rate             5063 drivers/net/wireless/marvell/mwl8k.c 				mwl8k_cmd_use_fixed_rate_ap(hw, rate, rate);
rate             5121 drivers/net/wireless/marvell/mwl8k.c 		int rate;
rate             5133 drivers/net/wireless/marvell/mwl8k.c 			rate = mwl8k_rates_24[idx].hw_value;
rate             5135 drivers/net/wireless/marvell/mwl8k.c 			rate = mwl8k_rates_50[idx].hw_value;
rate             5137 drivers/net/wireless/marvell/mwl8k.c 		mwl8k_cmd_use_fixed_rate_ap(hw, rate, rate);
rate              551 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		       const struct ieee80211_tx_rate *rate, bool stbc, u8 *bw)
rate              557 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 	if (rate->flags & IEEE80211_TX_RC_MCS) {
rate              558 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		rate_idx = rate->idx;
rate              559 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		nss = 1 + (rate->idx >> 3);
rate              561 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		if (rate->flags & IEEE80211_TX_RC_GREEN_FIELD)
rate              563 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		if (rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH)
rate              571 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		r = &mt76_hw(dev)->wiphy->bands[band]->bitrates[rate->idx];
rate              572 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		if (rate->flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE)
rate              784 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 	struct ieee80211_tx_rate *rate = &info->control.rates[0];
rate              855 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 	if (rate->idx >= 0 && rate->count &&
rate              858 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		u16 rateval = mt7603_mac_tx_rate_val(dev, rate, stbc, &bw);
rate              867 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		if (rate->flags & IEEE80211_TX_RC_SHORT_GI)
rate              870 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		if (!(rate->flags & IEEE80211_TX_RC_MCS))
rate              873 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		tx_count = rate->count;
rate              608 drivers/net/wireless/mediatek/mt76/mt7603/main.c 		msta->rates[i].idx = sta_rates->rate[i].idx;
rate              609 drivers/net/wireless/mediatek/mt76/mt7603/main.c 		msta->rates[i].count = sta_rates->rate[i].count;
rate              610 drivers/net/wireless/mediatek/mt76/mt7603/main.c 		msta->rates[i].flags = sta_rates->rate[i].flags;
rate              251 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		       const struct ieee80211_tx_rate *rate,
rate              259 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 	if (rate->flags & IEEE80211_TX_RC_VHT_MCS) {
rate              260 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		rate_idx = ieee80211_rate_get_vht_mcs(rate);
rate              261 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		nss = ieee80211_rate_get_vht_nss(rate);
rate              263 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		if (rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH)
rate              265 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		else if (rate->flags & IEEE80211_TX_RC_80_MHZ_WIDTH)
rate              267 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		else if (rate->flags & IEEE80211_TX_RC_160_MHZ_WIDTH)
rate              269 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 	} else if (rate->flags & IEEE80211_TX_RC_MCS) {
rate              270 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		rate_idx = rate->idx;
rate              271 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		nss = 1 + (rate->idx >> 3);
rate              273 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		if (rate->flags & IEEE80211_TX_RC_GREEN_FIELD)
rate              275 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		if (rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH)
rate              283 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		r = &mt76_hw(dev)->wiphy->bands[band]->bitrates[rate->idx];
rate              284 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		if (rate->flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE)
rate              311 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 	struct ieee80211_tx_rate *rate = &info->control.rates[0];
rate              387 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 	if (rate->idx >= 0 && rate->count &&
rate              391 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		u16 rateval = mt7615_mac_tx_rate_val(dev, rate, stbc, &bw);
rate              400 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		if (rate->flags & IEEE80211_TX_RC_SHORT_GI)
rate              406 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		if (!(rate->flags & (IEEE80211_TX_RC_MCS |
rate              410 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		tx_count = rate->count;
rate              390 drivers/net/wireless/mediatek/mt76/mt7615/main.c 		msta->rates[i].idx = sta_rates->rate[i].idx;
rate              391 drivers/net/wireless/mediatek/mt76/mt7615/main.c 		msta->rates[i].count = sta_rates->rate[i].count;
rate              392 drivers/net/wireless/mediatek/mt76/mt7615/main.c 		msta->rates[i].flags = sta_rates->rate[i].flags;
rate              159 drivers/net/wireless/mediatek/mt76/mt76x02.h 				const struct ieee80211_tx_rate *rate);
rate              159 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 			const struct ieee80211_tx_rate *rate, u8 *nss_val)
rate              164 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	if (rate->flags & IEEE80211_TX_RC_VHT_MCS) {
rate              165 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		rate_idx = rate->idx;
rate              166 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		nss = 1 + (rate->idx >> 4);
rate              168 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		if (rate->flags & IEEE80211_TX_RC_80_MHZ_WIDTH)
rate              170 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		else if (rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH)
rate              172 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	} else if (rate->flags & IEEE80211_TX_RC_MCS) {
rate              173 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		rate_idx = rate->idx;
rate              174 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		nss = 1 + (rate->idx >> 3);
rate              176 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		if (rate->flags & IEEE80211_TX_RC_GREEN_FIELD)
rate              178 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		if (rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH)
rate              185 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		r = &dev->mt76.hw->wiphy->bands[band]->bitrates[rate->idx];
rate              186 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		if (rate->flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE)
rate              199 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	if (rate->flags & IEEE80211_TX_RC_SHORT_GI)
rate              207 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 			       const struct ieee80211_tx_rate *rate)
rate              209 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	s8 max_txpwr_adj = mt76x02_tx_get_max_txpwr_adj(dev, rate);
rate              214 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	rateval = mt76x02_mac_tx_rate_val(dev, rate, &nss);
rate              246 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	stat->rate = FIELD_GET(MT_TX_STAT_FIFO_RATE, stat1);
rate              257 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c mt76x02_mac_process_tx_rate(struct ieee80211_tx_rate *txrate, u16 rate,
rate              260 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	u8 idx = FIELD_GET(MT_RXWI_RATE_INDEX, rate);
rate              266 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	switch (FIELD_GET(MT_RXWI_RATE_PHY, rate)) {
rate              294 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	switch (FIELD_GET(MT_RXWI_RATE_BW, rate)) {
rate              307 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	if (rate & MT_RXWI_RATE_SGI)
rate              319 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	struct ieee80211_tx_rate *rate = &info->control.rates[0];
rate              357 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	if (wcid && (rate->idx < 0 || !rate->count)) {
rate              359 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		txwi->rate = FIELD_GET(MT_WCID_TX_INFO_RATE, wcid_tx_info);
rate              364 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		txwi->rate = mt76x02_mac_tx_rate_val(dev, rate, &nss);
rate              365 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		max_txpwr_adj = mt76x02_tx_get_max_txpwr_adj(dev, rate);
rate              375 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		 !(txwi->rate & cpu_to_le16(rate_ht_mask)))
rate              379 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		txwi->rate |= cpu_to_le16(MT_RXWI_RATE_LDPC);
rate              381 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		txwi->rate |= cpu_to_le16(MT_RXWI_RATE_STBC);
rate              452 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	struct ieee80211_tx_rate *rate = info->status.rates;
rate              462 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	phy = FIELD_GET(MT_RXWI_RATE_PHY, st->rate);
rate              465 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		first_rate = st->rate & ~MT_RXWI_RATE_INDEX;
rate              468 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		mt76x02_mac_process_tx_rate(&rate[0], first_rate,
rate              470 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	} else if (rate[0].idx < 0) {
rate              474 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		mt76x02_mac_process_tx_rate(&rate[0], msta->wcid.tx_info,
rate              478 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	mt76x02_mac_process_tx_rate(&last_rate, st->rate,
rate              559 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		stat_val = stat->rate;
rate              561 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		stat_cache = msta->status.rate;
rate              595 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 			 u16 rate)
rate              597 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	u8 idx = FIELD_GET(MT_RXWI_RATE_INDEX, rate);
rate              599 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	switch (FIELD_GET(MT_RXWI_RATE_PHY, rate)) {
rate              640 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	if (rate & MT_RXWI_RATE_LDPC)
rate              643 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	if (rate & MT_RXWI_RATE_SGI)
rate              646 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	if (rate & MT_RXWI_RATE_STBC)
rate              649 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	switch (FIELD_GET(MT_RXWI_RATE_BW, rate)) {
rate              715 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	u16 rate = le16_to_cpu(rxwi->rate);
rate              793 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 	return mt76x02_mac_process_rate(dev, status, rate);
rate               20 drivers/net/wireless/mediatek/mt76/mt76x02_mac.h 	u16 rate;
rate               97 drivers/net/wireless/mediatek/mt76/mt76x02_mac.h 	__le16 rate;
rate              131 drivers/net/wireless/mediatek/mt76/mt76x02_mac.h 	__le16 rate;
rate              175 drivers/net/wireless/mediatek/mt76/mt76x02_mac.h 			       const struct ieee80211_tx_rate *rate);
rate               78 drivers/net/wireless/mediatek/mt76/mt76x02_trace.h 		__field(u16, rate)
rate               89 drivers/net/wireless/mediatek/mt76/mt76x02_trace.h 		__entry->rate = stat->rate;
rate               99 drivers/net/wireless/mediatek/mt76/mt76x02_trace.h 		__entry->rate, __entry->retry
rate               58 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c 				const struct ieee80211_tx_rate *rate)
rate               62 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c 	if (rate->flags & IEEE80211_TX_RC_VHT_MCS) {
rate               63 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c 		u8 mcs = ieee80211_rate_get_vht_mcs(rate);
rate               70 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c 			nss = ieee80211_rate_get_vht_nss(rate);
rate               74 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c 	} else if (rate->flags & IEEE80211_TX_RC_MCS) {
rate               75 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c 		max_txpwr = dev->mt76.rate_power.ht[rate->idx & 0xf];
rate               84 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c 			r = &wiphy->bands[band]->bitrates[rate->idx];
rate               90 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c 			max_txpwr = dev->mt76.rate_power.ofdm[rate->idx & 0x7];
rate              161 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c 		      (le16_to_cpu(txwi->rate) & MT_RXWI_RATE_INDEX);
rate               86 drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c 		      (le16_to_cpu(txwi->rate) & MT_RXWI_RATE_INDEX);
rate              581 drivers/net/wireless/mediatek/mt76/mt76x02_util.c 	struct ieee80211_tx_rate rate = {};
rate              586 drivers/net/wireless/mediatek/mt76/mt76x02_util.c 	rate.idx = rates->rate[0].idx;
rate              587 drivers/net/wireless/mediatek/mt76/mt76x02_util.c 	rate.flags = rates->rate[0].flags;
rate              588 drivers/net/wireless/mediatek/mt76/mt76x02_util.c 	mt76x02_mac_wcid_set_rate(dev, &msta->wcid, &rate);
rate              250 drivers/net/wireless/mediatek/mt7601u/eeprom.c mt7601u_set_power_rate(struct power_per_rate *rate, s8 delta, u8 value)
rate              256 drivers/net/wireless/mediatek/mt7601u/eeprom.c 	rate->raw = s6_validate(value);
rate              257 drivers/net/wireless/mediatek/mt7601u/eeprom.c 	rate->bw20 = s6_to_int(value);
rate              259 drivers/net/wireless/mediatek/mt7601u/eeprom.c 	rate->bw40 = rate->bw20 + delta;
rate               28 drivers/net/wireless/mediatek/mt7601u/mac.c mt76_mac_process_tx_rate(struct ieee80211_tx_rate *txrate, u16 rate)
rate               30 drivers/net/wireless/mediatek/mt7601u/mac.c 	u8 idx = FIELD_GET(MT_TXWI_RATE_MCS, rate);
rate               36 drivers/net/wireless/mediatek/mt7601u/mac.c 	switch (FIELD_GET(MT_TXWI_RATE_PHY_MODE, rate)) {
rate               58 drivers/net/wireless/mediatek/mt7601u/mac.c 	if (FIELD_GET(MT_TXWI_RATE_BW, rate) == MT_PHY_BW_40)
rate               61 drivers/net/wireless/mediatek/mt7601u/mac.c 	if (rate & MT_TXWI_RATE_SGI)
rate               69 drivers/net/wireless/mediatek/mt7601u/mac.c 	struct ieee80211_tx_rate *rate = info->status.rates;
rate               74 drivers/net/wireless/mediatek/mt7601u/mac.c 	mt76_mac_process_tx_rate(&rate[last_rate], st->rate);
rate               76 drivers/net/wireless/mediatek/mt7601u/mac.c 		rate[last_rate + 1].idx = -1;
rate               78 drivers/net/wireless/mediatek/mt7601u/mac.c 	cur_idx = rate[last_rate].idx + st->retry;
rate               80 drivers/net/wireless/mediatek/mt7601u/mac.c 		rate[i].flags = rate[last_rate].flags;
rate               81 drivers/net/wireless/mediatek/mt7601u/mac.c 		rate[i].idx = max_t(int, 0, cur_idx - i);
rate               82 drivers/net/wireless/mediatek/mt7601u/mac.c 		rate[i].count = 1;
rate               86 drivers/net/wireless/mediatek/mt7601u/mac.c 		rate[last_rate - 1].count = st->retry + 1 - last_rate;
rate              105 drivers/net/wireless/mediatek/mt7601u/mac.c 			 const struct ieee80211_tx_rate *rate, u8 *nss_val)
rate              112 drivers/net/wireless/mediatek/mt7601u/mac.c 	if (rate->flags & IEEE80211_TX_RC_MCS) {
rate              113 drivers/net/wireless/mediatek/mt7601u/mac.c 		rate_idx = rate->idx;
rate              114 drivers/net/wireless/mediatek/mt7601u/mac.c 		nss = 1 + (rate->idx >> 3);
rate              116 drivers/net/wireless/mediatek/mt7601u/mac.c 		if (rate->flags & IEEE80211_TX_RC_GREEN_FIELD)
rate              118 drivers/net/wireless/mediatek/mt7601u/mac.c 		if (rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH)
rate              125 drivers/net/wireless/mediatek/mt7601u/mac.c 		r = &dev->hw->wiphy->bands[band]->bitrates[rate->idx];
rate              126 drivers/net/wireless/mediatek/mt7601u/mac.c 		if (rate->flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE)
rate              139 drivers/net/wireless/mediatek/mt7601u/mac.c 	if (rate->flags & IEEE80211_TX_RC_SHORT_GI)
rate              147 drivers/net/wireless/mediatek/mt7601u/mac.c 			    const struct ieee80211_tx_rate *rate)
rate              152 drivers/net/wireless/mediatek/mt7601u/mac.c 	wcid->tx_rate = mt76_mac_tx_rate_val(dev, rate, &wcid->tx_rate_nss);
rate              169 drivers/net/wireless/mediatek/mt7601u/mac.c 	stat.rate = FIELD_GET(MT_TX_STAT_FIFO_RATE, val);
rate              397 drivers/net/wireless/mediatek/mt7601u/mac.c mt76_mac_process_rate(struct ieee80211_rx_status *status, u16 rate)
rate              399 drivers/net/wireless/mediatek/mt7601u/mac.c 	u8 idx = FIELD_GET(MT_RXWI_RATE_MCS, rate);
rate              401 drivers/net/wireless/mediatek/mt7601u/mac.c 	switch (FIELD_GET(MT_RXWI_RATE_PHY, rate)) {
rate              432 drivers/net/wireless/mediatek/mt7601u/mac.c 	if (rate & MT_RXWI_RATE_SGI)
rate              435 drivers/net/wireless/mediatek/mt7601u/mac.c 	if (rate & MT_RXWI_RATE_STBC)
rate              438 drivers/net/wireless/mediatek/mt7601u/mac.c 	if (rate & MT_RXWI_RATE_BW)
rate              444 drivers/net/wireless/mediatek/mt7601u/mac.c 			  u16 rate, int rssi)
rate              447 drivers/net/wireless/mediatek/mt7601u/mac.c 	dev->bcn_phy_mode = FIELD_GET(MT_RXWI_RATE_PHY, rate);
rate              466 drivers/net/wireless/mediatek/mt7601u/mac.c 	u16 rate = le16_to_cpu(rxwi->rate);
rate              487 drivers/net/wireless/mediatek/mt7601u/mac.c 	rssi = mt7601u_phy_get_rssi(dev, rxwi, rate);
rate              492 drivers/net/wireless/mediatek/mt7601u/mac.c 	mt76_mac_process_rate(status, rate);
rate              496 drivers/net/wireless/mediatek/mt7601u/mac.c 		mt7601u_rx_monitor_beacon(dev, rxwi, rate, rssi);
rate               19 drivers/net/wireless/mediatek/mt7601u/mac.h 	u16 rate;
rate               32 drivers/net/wireless/mediatek/mt7601u/mac.h 	__le16 rate;
rate              160 drivers/net/wireless/mediatek/mt7601u/mac.h 			    const struct ieee80211_tx_rate *rate);
rate              165 drivers/net/wireless/mediatek/mt7601u/mac.h 			 const struct ieee80211_tx_rate *rate, u8 *nss_val);
rate              392 drivers/net/wireless/mediatek/mt7601u/main.c 	struct ieee80211_tx_rate rate = {};
rate              400 drivers/net/wireless/mediatek/mt7601u/main.c 	rate.idx = rates->rate[0].idx;
rate              401 drivers/net/wireless/mediatek/mt7601u/main.c 	rate.flags = rates->rate[0].flags;
rate              402 drivers/net/wireless/mediatek/mt7601u/main.c 	mt76_mac_wcid_set_rate(dev, &msta->wcid, &rate);
rate              353 drivers/net/wireless/mediatek/mt7601u/mt7601u.h 			 struct mt7601u_rxwi *rxwi, u16 rate);
rate              234 drivers/net/wireless/mediatek/mt7601u/phy.c 			 struct mt7601u_rxwi *rxwi, u16 rate)
rate              246 drivers/net/wireless/mediatek/mt7601u/phy.c 	int bw = FIELD_GET(MT_RXWI_RATE_BW, rate);
rate              267 drivers/net/wireless/mediatek/mt7601u/trace.h 		  le16_to_cpu(__entry->rxwi.rate),
rate               55 drivers/net/wireless/mediatek/mt7601u/tx.c static u8 mt7601u_tx_pktid_enc(struct mt7601u_dev *dev, u8 rate, bool is_probe)
rate               57 drivers/net/wireless/mediatek/mt7601u/tx.c 	u8 encoded = (rate + 1) + is_probe *  8;
rate               64 drivers/net/wireless/mediatek/mt7601u/tx.c 	if (is_probe && rate == 7)
rate               74 drivers/net/wireless/mediatek/mt7601u/tx.c 	u8 eff_rate = stat->rate & 0x7;
rate              135 drivers/net/wireless/mediatek/mt7601u/tx.c 	struct ieee80211_tx_rate *rate = &info->control.rates[0];
rate              151 drivers/net/wireless/mediatek/mt7601u/tx.c 	if (rate->idx < 0 || !rate->count)
rate              154 drivers/net/wireless/mediatek/mt7601u/tx.c 		rate_ctl = mt76_mac_tx_rate_val(dev, rate, &nss);
rate              460 drivers/net/wireless/quantenna/qtnfmac/commands.c 	rate_dst->legacy = get_unaligned_le16(&rate_src->rate) * 10;
rate             1435 drivers/net/wireless/quantenna/qtnfmac/qlink.h 	__le16 rate;
rate              695 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	const struct rt2x00_rate *rate;
rate              712 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 			rate = rt2x00_get_rate(sband->bitrates[i].hw_value);
rate              714 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 			     (rate->plcp == signal)) ||
rate              716 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 			      (rate->bitrate == signal)) ||
rate              718 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 			      (rate->mcs == signal))) {
rate              980 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 			   const u16 index, const struct rt2x00_rate *rate)
rate              983 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	entry->bitrate = rate->bitrate;
rate              987 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	if (rate->flags & DEV_RATE_SHORT_PREAMBLE)
rate              392 drivers/net/wireless/ralink/rt2x00/rt2x00queue.c 	struct ieee80211_rate *rate;
rate              420 drivers/net/wireless/ralink/rt2x00/rt2x00queue.c 			rate =
rate              465 drivers/net/wireless/ralink/rt2x00/rt2x00queue.c 		rate = ieee80211_get_tx_rate(rt2x00dev->hw, tx_info);
rate              466 drivers/net/wireless/ralink/rt2x00/rt2x00queue.c 		hwrate = rt2x00_get_rate(rate->hw_value);
rate              332 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c 	int rate, signal;
rate              380 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c 	rate = (flags >> 20) & 0xF;
rate              382 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c 	rx_status.rate_idx = rate;
rate             1176 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h 			u8 rate:7;
rate             4778 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 	u32 rate;
rate             4784 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 		rate = tx_info->control.rates[0].idx + DESC_RATE_MCS0;
rate             4786 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 		rate = tx_rate->hw_value;
rate             4790 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 			 __func__, rate, cpu_to_le16(tx_desc->pkt_size));
rate             4794 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 	tx_desc->txdw5 = cpu_to_le32(rate);
rate             4807 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 		tx_desc->txdw5 = cpu_to_le32(rate);
rate             4849 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 	u32 rate;
rate             4857 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 		rate = tx_info->control.rates[0].idx + DESC_RATE_MCS0;
rate             4859 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 		rate = tx_rate->hw_value;
rate             4863 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 			 __func__, rate, cpu_to_le16(tx_desc40->pkt_size));
rate             4867 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 	tx_desc40->txdw4 = cpu_to_le32(rate);
rate             4881 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 		tx_desc40->txdw4 = cpu_to_le32(rate);
rate             5187 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 			c2h->ra_report.rate, c2h->ra_report.dummy0_0,
rate              734 drivers/net/wireless/realtek/rtlwifi/pci.c 		.rate = 0,
rate               24 drivers/net/wireless/realtek/rtlwifi/rc.c 	struct ieee80211_tx_rate rate;
rate               70 drivers/net/wireless/realtek/rtlwifi/rc.c 					ieee80211_rate_set_vht(&rate,
rate               75 drivers/net/wireless/realtek/rtlwifi/rc.c 					ieee80211_rate_set_vht(&rate,
rate               92 drivers/net/wireless/realtek/rtlwifi/rc.c 					ieee80211_rate_set_vht(&rate,
rate               97 drivers/net/wireless/realtek/rtlwifi/rc.c 					ieee80211_rate_set_vht(&rate,
rate              108 drivers/net/wireless/realtek/rtlwifi/rc.c 	return rate.idx;
rate              113 drivers/net/wireless/realtek/rtlwifi/rc.c 				    struct ieee80211_tx_rate *rate,
rate              130 drivers/net/wireless/realtek/rtlwifi/rc.c 	rate->count = tries;
rate              131 drivers/net/wireless/realtek/rtlwifi/rc.c 	rate->idx = rix >= 0x00 ? rix : 0x00;
rate              135 drivers/net/wireless/realtek/rtlwifi/rc.c 			rate->flags |= IEEE80211_TX_RC_USE_SHORT_PREAMBLE;
rate              140 drivers/net/wireless/realtek/rtlwifi/rc.c 				rate->flags |= IEEE80211_TX_RC_40_MHZ_WIDTH;
rate              142 drivers/net/wireless/realtek/rtlwifi/rc.c 				rate->flags |= IEEE80211_TX_RC_80_MHZ_WIDTH;
rate              145 drivers/net/wireless/realtek/rtlwifi/rc.c 				rate->flags |= IEEE80211_TX_RC_80_MHZ_WIDTH;
rate              147 drivers/net/wireless/realtek/rtlwifi/rc.c 				rate->flags |= IEEE80211_TX_RC_40_MHZ_WIDTH;
rate              151 drivers/net/wireless/realtek/rtlwifi/rc.c 			rate->flags |= IEEE80211_TX_RC_SHORT_GI;
rate              155 drivers/net/wireless/realtek/rtlwifi/rc.c 			rate->flags |= IEEE80211_TX_RC_MCS;
rate              160 drivers/net/wireless/realtek/rtlwifi/rc.c 			rate->flags |= IEEE80211_TX_RC_VHT_MCS;
rate              201 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c 		if (pstatus->is_ht && pstatus->rate >= DESC92C_RATEMCS8 &&
rate              202 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c 		    pstatus->rate <= DESC92C_RATEMCS15)
rate              391 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c 	status->rate = (u8)get_rx_desc_rxmcs(pdesc);
rate              401 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c 	status->is_cck = RTL8188_RX_HAL_IS_CCK_RATE(status->rate);
rate              455 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c 						   false, status->rate);
rate              218 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c 		if (pstats->is_ht && pstats->rate >= DESC_RATEMCS8 &&
rate              219 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c 		    pstats->rate <= DESC_RATEMCS15)
rate              315 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c 	stats->rate = (u8)get_rx_desc_rxmcs(p_desc);
rate              364 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c 						   false, stats->rate);
rate              300 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c 	stats->rate = (u8)get_rx_desc_rx_mcs(pdesc);
rate              322 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c 						   false, stats->rate);
rate              346 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c 		.rate = 0,
rate              368 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c 	stats.rate = (u8)get_rx_desc_rx_mcs(rxdesc);
rate              389 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c 						   false, stats.rate);
rate              455 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c 	stats->rate = (u8) GET_RX_DESC_RXMCS(pdesc);
rate              477 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c 						   false, stats->rate);
rate             1083 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 				    u8 rate, bool collision_state)
rate             1087 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	if (rate >= DESC92C_RATEMCS8  && rate <= DESC92C_RATEMCS12) {
rate             1089 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			if (rate == DESC92C_RATEMCS12) {
rate             1093 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			} else if (rate == DESC92C_RATEMCS11) {
rate             1097 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			} else if (rate == DESC92C_RATEMCS10) {
rate             1101 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			} else if (rate == DESC92C_RATEMCS9) {
rate             1111 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			if (rate == DESC92C_RATEMCS12) {
rate             1116 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			} else if (rate == DESC92C_RATEMCS11) {
rate             1121 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			} else if (rate == DESC92C_RATEMCS10) {
rate             1126 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			} else if (rate == DESC92C_RATEMCS9) {
rate             1140 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			if (rate == DESC92C_RATEMCS15) {
rate             1145 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			} else if (rate == DESC92C_RATEMCS14) {
rate             1150 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			} else if (rate == DESC92C_RATEMCS13) {
rate             1162 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			if (rate == DESC92C_RATEMCS15) {
rate             1167 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			} else if (rate == DESC92C_RATEMCS14) {
rate             1172 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			} else if (rate == DESC92C_RATEMCS13) {
rate              228 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.h 				    u8 rate, bool collision_state);
rate              862 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c 	u8 rate = cmd_buf[0] & 0x3F;
rate              865 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c 	rtl92ee_dm_dynamic_arfb_select(hw, rate, collision_state);
rate             1102 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 							u8 rate)
rate             1106 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 	switch (rate) {
rate             1165 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 				       enum radio_path rf, u8 rate)
rate             1172 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 	sec = _rtl92ee_phy_get_ratesection_intxpower_byrate(rf, rate);
rate             1176 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 		if ((rate >= DESC92C_RATEMCS8 && rate <= DESC92C_RATEMCS15))
rate             1182 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 	switch (rate) {
rate             1231 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 				     enum radio_path rfpath, u8 rate,
rate             1246 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 	if (IS_CCK_RATE((s8)rate))
rate             1248 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 	else if (DESC92C_RATE6M <= rate)
rate             1252 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 	if (DESC92C_RATE6M <= rate && rate <= DESC92C_RATE54M &&
rate             1253 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 	    !IS_CCK_RATE((s8)rate))
rate             1258 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 		if (DESC92C_RATEMCS0 <= rate && rate <= DESC92C_RATEMCS15)
rate             1260 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 		if (DESC92C_RATEMCS8 <= rate && rate <= DESC92C_RATEMCS15)
rate             1263 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 		if (DESC92C_RATEMCS0 <= rate && rate <= DESC92C_RATEMCS15)
rate             1265 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 		if (DESC92C_RATEMCS8 <= rate && rate <= DESC92C_RATEMCS15)
rate             1271 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 						    rfpath, rate);
rate             1282 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 				       enum radio_path rfpath, u8 rate)
rate             1287 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 		switch (rate) {
rate             1406 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 		switch (rate) {
rate              169 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c 		if (pstatus->rate >= DESC_RATEMCS8 &&
rate              170 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c 		    pstatus->rate <= DESC_RATEMCS15)
rate              351 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c 	status->rate = (u8)get_rx_desc_rxmcs(pdesc);
rate              354 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c 	status->is_cck = RTL92EE_RX_HAL_IS_CCK_RATE(status->rate);
rate              408 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c 						   false, status->rate);
rate              168 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c 		if (pstats->is_ht && pstats->rate >= DESC_RATEMCS8 &&
rate              169 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c 		    pstats->rate <= DESC_RATEMCS15)
rate              250 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c 	stats->rate = (u8)GET_RX_STATUS_DESC_RX_MCS(pdesc);
rate              296 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c 						   false, stats->rate);
rate              184 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c 		if (pstatus->is_ht && pstatus->rate >= DESC92C_RATEMCS8 &&
rate              185 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c 		    pstatus->rate <= DESC92C_RATEMCS15)
rate              278 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c 	status->rate = (u8)get_rx_desc_rxmcs(pdesc);
rate              287 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c 	status->is_cck = RX_HAL_IS_CCK_RATE(status->rate);
rate              328 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c 						   false, status->rate);
rate              806 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 							  u8 rate)
rate              810 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 	switch (rate) {
rate              879 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 					 enum radio_path rfpath, u8 rate)
rate              887 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 								       rate);
rate              891 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 		if (rate >= DESC92C_RATEMCS8 && rate <= DESC92C_RATEMCS15)
rate              897 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 	switch (rate) {
rate              945 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 				       u8 rate, u8 bandwidth, u8 channel)
rate              958 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 	if (RX_HAL_IS_CCK_RATE(rate))
rate              960 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 	else if (DESC92C_RATE6M <= rate)
rate              966 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 	if (DESC92C_RATE6M <= rate && rate <= DESC92C_RATE54M &&
rate              967 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 	    !RX_HAL_IS_CCK_RATE(rate))
rate              971 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 		if (DESC92C_RATEMCS0 <= rate && rate <= DESC92C_RATEMCS15)
rate              973 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 		if (DESC92C_RATEMCS8 <= rate && rate <= DESC92C_RATEMCS15)
rate              976 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 		if (DESC92C_RATEMCS0 <= rate && rate <= DESC92C_RATEMCS15)
rate              978 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 		if (DESC92C_RATEMCS8 <= rate && rate <= DESC92C_RATEMCS15)
rate              985 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 								   path, rate);
rate              996 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 					     u8 power_index, u8 path, u8 rate)
rate             1000 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c 		switch (rate) {
rate              145 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c 		if (pstatus->rate >= DESC92C_RATEMCS8 &&
rate              146 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c 		    pstatus->rate <= DESC92C_RATEMCS15)
rate              316 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c 	status->rate = (u8)get_rx_desc_rxmcs(pdesc);
rate              326 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c 	status->is_cck = RX_HAL_IS_CCK_RATE(status->rate);
rate              384 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c 						   false, status->rate);
rate             1090 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c 	u8 rate = rtldm->tx_rate;
rate             1093 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c 		if (RTL8821AE_RX_HAL_IS_CCK_RATE(rate)) {
rate             1127 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c void rtl8821ae_dm_update_init_rate(struct ieee80211_hw *hw, u8 rate)
rate             1135 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c 		 "Get C2H Command! Rate=0x%x\n", rate);
rate             1137 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c 	rtldm->tx_rate = rate;
rate             1147 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c u8 rtl8821ae_hw_rate_to_mrate(struct ieee80211_hw *hw, u8 rate)
rate             1152 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c 	switch (rate) {
rate             1300 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c 			 rate);
rate             1958 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c 	u8 rate = rtldm->tx_rate;
rate             1961 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c 		if (RTL8821AE_RX_HAL_IS_CCK_RATE(rate)) {
rate              288 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.h void rtl8821ae_dm_update_init_rate(struct ieee80211_hw *hw, u8 rate);
rate              289 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.h u8 rtl8821ae_hw_rate_to_mrate(struct ieee80211_hw *hw, u8 rate);
rate             1896 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c 	u8 rate = cmd_buf[0] & 0x3F;
rate             1898 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c 	rtlhal->current_ra_rate = rtl8821ae_hw_rate_to_mrate(hw, rate);
rate             1900 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c 	rtl8821ae_dm_update_init_rate(hw, rate);
rate             1176 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 						   enum band_type band, u8 rate)
rate             1181 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 		switch (rate) {
rate             1225 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 				rate);
rate             1229 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 		switch (rate) {
rate             1292 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 				rate);
rate             1791 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 		u8 *rate = array[i+3];
rate             1797 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 						   bandwidth, rate, rf_path,
rate             2247 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c static s8 _rtl8821ae_phy_get_ratesection_intxpower_byrate(u8 path, u8 rate)
rate             2250 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 	switch (rate) {
rate             2347 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 					     u8 rate, u8 channel)
rate             2374 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 	switch (rate) {
rate             2437 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			"Wrong rate 0x%x\n", rate);
rate             2443 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			 "Wrong rate 0x%x: No CCK in 5G Band\n", rate);
rate             2513 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 					u8 band, u8 path, u8 rate)
rate             2521 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 	rate_section = _rtl8821ae_phy_get_ratesection_intxpower_byrate(path, rate);
rate             2525 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 		if ((rate >= DESC_RATEMCS8 && rate <= DESC_RATEMCS15) ||
rate             2526 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			(rate >= DESC_RATEVHT2SS_MCS2 && rate <= DESC_RATEVHT2SS_MCS9))
rate             2532 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 	switch (rate) {
rate             2600 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			rtlphy->current_chan_bw, path, rate,
rate             2603 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 		if (rate == DESC_RATEVHT1SS_MCS8 || rate == DESC_RATEVHT1SS_MCS9  ||
rate             2604 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			 rate == DESC_RATEVHT2SS_MCS8 || rate == DESC_RATEVHT2SS_MCS9) {
rate             2624 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 					u8 rate, u8 bandwidth, u8 channel)
rate             2644 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 		if (RTL8821AE_RX_HAL_IS_CCK_RATE(rate))
rate             2646 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 		else if (DESC_RATE6M <= rate)
rate             2651 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 		if (DESC_RATE6M <= rate && rate <= DESC_RATE54M &&
rate             2652 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 		    !RTL8821AE_RX_HAL_IS_CCK_RATE(rate))
rate             2656 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			if ((DESC_RATEMCS0 <= rate && rate <= DESC_RATEMCS15) ||
rate             2657 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 				(DESC_RATEVHT1SS_MCS0 <= rate && rate <= DESC_RATEVHT2SS_MCS9))
rate             2659 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			if ((DESC_RATEMCS8 <= rate && rate <= DESC_RATEMCS15) ||
rate             2660 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 				(DESC_RATEVHT2SS_MCS0 <= rate && rate <= DESC_RATEVHT2SS_MCS9))
rate             2663 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			if ((DESC_RATEMCS0 <= rate && rate <= DESC_RATEMCS15) ||
rate             2664 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 				(DESC_RATEVHT1SS_MCS0 <= rate && rate <= DESC_RATEVHT2SS_MCS9))
rate             2666 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			if ((DESC_RATEMCS8 <= rate && rate <= DESC_RATEMCS15) ||
rate             2667 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 				(DESC_RATEVHT2SS_MCS0 <= rate && rate <= DESC_RATEVHT2SS_MCS9))
rate             2670 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			if ((DESC_RATEMCS0 <= rate && rate <= DESC_RATEMCS15) ||
rate             2671 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			    (DESC_RATEVHT1SS_MCS0 <= rate &&
rate             2672 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			     rate <= DESC_RATEVHT2SS_MCS9))
rate             2674 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			if ((DESC_RATEMCS8 <= rate && rate <= DESC_RATEMCS15) ||
rate             2675 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			    (DESC_RATEVHT2SS_MCS0 <= rate &&
rate             2676 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			     rate <= DESC_RATEVHT2SS_MCS9))
rate             2680 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 		if (DESC_RATE6M <= rate)
rate             2686 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 		if (DESC_RATE6M <= rate && rate <= DESC_RATE54M &&
rate             2687 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 		    !RTL8821AE_RX_HAL_IS_CCK_RATE(rate))
rate             2691 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			if ((DESC_RATEMCS0 <= rate && rate <= DESC_RATEMCS15) ||
rate             2692 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			    (DESC_RATEVHT1SS_MCS0 <= rate &&
rate             2693 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			     rate <= DESC_RATEVHT2SS_MCS9))
rate             2695 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			if ((DESC_RATEMCS8 <= rate && rate <= DESC_RATEMCS15) ||
rate             2696 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			    (DESC_RATEVHT2SS_MCS0 <= rate &&
rate             2697 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			     rate <= DESC_RATEVHT2SS_MCS9))
rate             2700 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			if ((DESC_RATEMCS0 <= rate && rate <= DESC_RATEMCS15) ||
rate             2701 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			    (DESC_RATEVHT1SS_MCS0 <= rate &&
rate             2702 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			     rate <= DESC_RATEVHT2SS_MCS9))
rate             2704 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			if ((DESC_RATEMCS8 <= rate && rate <= DESC_RATEMCS15) ||
rate             2705 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			    (DESC_RATEVHT2SS_MCS0 <= rate &&
rate             2706 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			     rate <= DESC_RATEVHT2SS_MCS9))
rate             2715 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			if ((DESC_RATEMCS0 <= rate && rate <= DESC_RATEMCS15) ||
rate             2716 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			    (DESC_RATEVHT1SS_MCS0 <= rate &&
rate             2717 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			     rate <= DESC_RATEVHT2SS_MCS9))
rate             2720 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			if ((DESC_RATEMCS8 <= rate && rate <= DESC_RATEMCS15) ||
rate             2721 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			    (DESC_RATEVHT2SS_MCS0 <= rate &&
rate             2722 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 			     rate <= DESC_RATEVHT2SS_MCS9))
rate             2731 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 						     path, rate);
rate             2733 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 	if (rate == DESC_RATEVHT1SS_MCS8 || rate == DESC_RATEVHT1SS_MCS9 ||
rate             2734 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 	    rate == DESC_RATEVHT2SS_MCS8 || rate == DESC_RATEVHT2SS_MCS9)
rate             2739 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 	if (rate > DESC_RATE11M)
rate             2751 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 					     u8 power_index, u8 path, u8 rate)
rate             2756 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 		switch (rate) {
rate             2955 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c 		switch (rate) {
rate              229 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c 		if ((pstatus->is_ht && pstatus->rate >= DESC_RATEMCS8 &&
rate              230 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c 		     pstatus->rate <= DESC_RATEMCS15) ||
rate              232 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c 		     pstatus->rate >= DESC_RATEVHT2SS_MCS0 &&
rate              233 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c 		     pstatus->rate <= DESC_RATEVHT2SS_MCS9))
rate              451 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c 	status->rate = (u8)get_rx_desc_rxmcs(pdesc);
rate              462 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c 	status->is_cck = RTL8821AE_RX_HAL_IS_CCK_RATE(status->rate);
rate              535 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c 						   status->rate);
rate              431 drivers/net/wireless/realtek/rtlwifi/usb.c 		.rate = 0,
rate              473 drivers/net/wireless/realtek/rtlwifi/usb.c 		.rate = 0,
rate             2082 drivers/net/wireless/realtek/rtlwifi/wifi.h 	u8 rate;		/* hw desc rate */
rate              464 drivers/net/wireless/realtek/rtw88/debug.c static void rtw_print_cck_rate_txt(struct seq_file *m, u8 rate)
rate              468 drivers/net/wireless/realtek/rtw88/debug.c 	u8 idx = rate - DESC_RATE1M;
rate              473 drivers/net/wireless/realtek/rtw88/debug.c static void rtw_print_ofdm_rate_txt(struct seq_file *m, u8 rate)
rate              477 drivers/net/wireless/realtek/rtw88/debug.c 	u8 idx = rate - DESC_RATE6M;
rate              482 drivers/net/wireless/realtek/rtw88/debug.c static void rtw_print_ht_rate_txt(struct seq_file *m, u8 rate)
rate              484 drivers/net/wireless/realtek/rtw88/debug.c 	u8 mcs_n = rate - DESC_RATEMCS0;
rate              489 drivers/net/wireless/realtek/rtw88/debug.c static void rtw_print_vht_rate_txt(struct seq_file *m, u8 rate)
rate              491 drivers/net/wireless/realtek/rtw88/debug.c 	u8 idx = rate - DESC_RATEVHT1SS_MCS0;
rate              507 drivers/net/wireless/realtek/rtw88/debug.c 	u8 path, rate;
rate              520 drivers/net/wireless/realtek/rtw88/debug.c 			rate = DESC_RATE6M;
rate              522 drivers/net/wireless/realtek/rtw88/debug.c 			rate = DESC_RATE1M;
rate              525 drivers/net/wireless/realtek/rtw88/debug.c 		for (; rate <= DESC_RATEVHT2SS_MCS9; rate++) {
rate              527 drivers/net/wireless/realtek/rtw88/debug.c 			if (rate > DESC_RATEMCS15 &&
rate              528 drivers/net/wireless/realtek/rtw88/debug.c 			    rate < DESC_RATEVHT1SS_MCS0)
rate              531 drivers/net/wireless/realtek/rtw88/debug.c 			switch (rate) {
rate              549 drivers/net/wireless/realtek/rtw88/debug.c 			rtw_get_tx_power_params(rtwdev, path, rate, bw,
rate              554 drivers/net/wireless/realtek/rtw88/debug.c 				print_rate(m, rate);
rate              556 drivers/net/wireless/realtek/rtw88/debug.c 				   hal->tx_pwr_tbl[path][rate],
rate              557 drivers/net/wireless/realtek/rtw88/debug.c 				   hal->tx_pwr_tbl[path][rate],
rate              465 drivers/net/wireless/realtek/rtw88/main.h 	u8 rate;
rate              497 drivers/net/wireless/realtek/rtw88/main.h 	u8 rate;
rate              876 drivers/net/wireless/realtek/rtw88/phy.c 					 u32 addr, u32 mask, u32 val, u8 *rate,
rate              884 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATE6M;
rate              885 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATE9M;
rate              886 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATE12M;
rate              887 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATE18M;
rate              894 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATE24M;
rate              895 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATE36M;
rate              896 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATE48M;
rate              897 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATE54M;
rate              903 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATE1M;
rate              909 drivers/net/wireless/realtek/rtw88/phy.c 			rate[0] = DESC_RATE2M;
rate              910 drivers/net/wireless/realtek/rtw88/phy.c 			rate[1] = DESC_RATE5_5M;
rate              911 drivers/net/wireless/realtek/rtw88/phy.c 			rate[2] = DESC_RATE11M;
rate              917 drivers/net/wireless/realtek/rtw88/phy.c 			rate[0] = DESC_RATE11M;
rate              924 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEMCS0;
rate              925 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEMCS1;
rate              926 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEMCS2;
rate              927 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEMCS3;
rate              934 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEMCS4;
rate              935 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEMCS5;
rate              936 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEMCS6;
rate              937 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEMCS7;
rate              944 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEMCS8;
rate              945 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEMCS9;
rate              946 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEMCS10;
rate              947 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEMCS11;
rate              954 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEMCS12;
rate              955 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEMCS13;
rate              956 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEMCS14;
rate              957 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEMCS15;
rate              963 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATE1M;
rate              964 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATE2M;
rate              965 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATE5_5M;
rate              975 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATE1M;
rate              976 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATE2M;
rate              977 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATE5_5M;
rate              978 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATE11M;
rate              987 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATE6M;
rate              988 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATE9M;
rate              989 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATE12M;
rate              990 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATE18M;
rate              999 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATE24M;
rate             1000 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATE36M;
rate             1001 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATE48M;
rate             1002 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATE54M;
rate             1011 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEMCS0;
rate             1012 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEMCS1;
rate             1013 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEMCS2;
rate             1014 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEMCS3;
rate             1023 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEMCS4;
rate             1024 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEMCS5;
rate             1025 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEMCS6;
rate             1026 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEMCS7;
rate             1035 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEMCS8;
rate             1036 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEMCS9;
rate             1037 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEMCS10;
rate             1038 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEMCS11;
rate             1047 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEMCS12;
rate             1048 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEMCS13;
rate             1049 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEMCS14;
rate             1050 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEMCS15;
rate             1059 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEVHT1SS_MCS0;
rate             1060 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEVHT1SS_MCS1;
rate             1061 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEVHT1SS_MCS2;
rate             1062 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEVHT1SS_MCS3;
rate             1071 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEVHT1SS_MCS4;
rate             1072 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEVHT1SS_MCS5;
rate             1073 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEVHT1SS_MCS6;
rate             1074 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEVHT1SS_MCS7;
rate             1083 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEVHT1SS_MCS8;
rate             1084 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEVHT1SS_MCS9;
rate             1085 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEVHT2SS_MCS0;
rate             1086 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEVHT2SS_MCS1;
rate             1095 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEVHT2SS_MCS2;
rate             1096 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEVHT2SS_MCS3;
rate             1097 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEVHT2SS_MCS4;
rate             1098 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEVHT2SS_MCS5;
rate             1107 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEVHT2SS_MCS6;
rate             1108 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEVHT2SS_MCS7;
rate             1109 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEVHT2SS_MCS8;
rate             1110 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEVHT2SS_MCS9;
rate             1119 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEMCS16;
rate             1120 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEMCS17;
rate             1121 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEMCS18;
rate             1122 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEMCS19;
rate             1131 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEMCS20;
rate             1132 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEMCS21;
rate             1133 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEMCS22;
rate             1134 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEMCS23;
rate             1143 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEVHT3SS_MCS0;
rate             1144 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEVHT3SS_MCS1;
rate             1145 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEVHT3SS_MCS2;
rate             1146 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEVHT3SS_MCS3;
rate             1155 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEVHT3SS_MCS4;
rate             1156 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEVHT3SS_MCS5;
rate             1157 drivers/net/wireless/realtek/rtw88/phy.c 		rate[2] = DESC_RATEVHT3SS_MCS6;
rate             1158 drivers/net/wireless/realtek/rtw88/phy.c 		rate[3] = DESC_RATEVHT3SS_MCS7;
rate             1167 drivers/net/wireless/realtek/rtw88/phy.c 		rate[0] = DESC_RATEVHT3SS_MCS8;
rate             1168 drivers/net/wireless/realtek/rtw88/phy.c 		rate[1] = DESC_RATEVHT3SS_MCS9;
rate             1185 drivers/net/wireless/realtek/rtw88/phy.c 	u8 rate;
rate             1201 drivers/net/wireless/realtek/rtw88/phy.c 		rate = rates[i];
rate             1203 drivers/net/wireless/realtek/rtw88/phy.c 			hal->tx_pwr_by_rate_offset_2g[rfpath][rate] = offset;
rate             1205 drivers/net/wireless/realtek/rtw88/phy.c 			hal->tx_pwr_by_rate_offset_5g[rfpath][rate] = offset;
rate             1543 drivers/net/wireless/realtek/rtw88/phy.c static s8 rtw_phy_get_dis_dpd_by_rate_diff(struct rtw_dev *rtwdev, u16 rate)
rate             1557 drivers/net/wireless/realtek/rtw88/phy.c 	switch (rate) {
rate             1577 drivers/net/wireless/realtek/rtw88/phy.c 					u8 rate, u8 group)
rate             1585 drivers/net/wireless/realtek/rtw88/phy.c 	if (rate <= DESC_RATE11M)
rate             1590 drivers/net/wireless/realtek/rtw88/phy.c 	if (rate >= DESC_RATE6M && rate <= DESC_RATE54M)
rate             1593 drivers/net/wireless/realtek/rtw88/phy.c 	mcs_rate = (rate >= DESC_RATEMCS0 && rate <= DESC_RATEMCS15) ||
rate             1594 drivers/net/wireless/realtek/rtw88/phy.c 		   (rate >= DESC_RATEVHT1SS_MCS0 &&
rate             1595 drivers/net/wireless/realtek/rtw88/phy.c 		    rate <= DESC_RATEVHT2SS_MCS9);
rate             1596 drivers/net/wireless/realtek/rtw88/phy.c 	above_2ss = (rate >= DESC_RATEMCS8 && rate <= DESC_RATEMCS15) ||
rate             1597 drivers/net/wireless/realtek/rtw88/phy.c 		    (rate >= DESC_RATEVHT2SS_MCS0);
rate             1624 drivers/net/wireless/realtek/rtw88/phy.c 					u8 rate, u8 group)
rate             1635 drivers/net/wireless/realtek/rtw88/phy.c 	mcs_rate = (rate >= DESC_RATEMCS0 && rate <= DESC_RATEMCS15) ||
rate             1636 drivers/net/wireless/realtek/rtw88/phy.c 		   (rate >= DESC_RATEVHT1SS_MCS0 &&
rate             1637 drivers/net/wireless/realtek/rtw88/phy.c 		    rate <= DESC_RATEVHT2SS_MCS9);
rate             1638 drivers/net/wireless/realtek/rtw88/phy.c 	above_2ss = (rate >= DESC_RATEMCS8 && rate <= DESC_RATEMCS15) ||
rate             1639 drivers/net/wireless/realtek/rtw88/phy.c 		    (rate >= DESC_RATEVHT2SS_MCS0);
rate             1677 drivers/net/wireless/realtek/rtw88/phy.c 				     u8 rate, u8 channel, u8 regd)
rate             1690 drivers/net/wireless/realtek/rtw88/phy.c 	if (rate >= DESC_RATE1M && rate <= DESC_RATE11M)
rate             1692 drivers/net/wireless/realtek/rtw88/phy.c 	else if (rate >= DESC_RATE6M && rate <= DESC_RATE54M)
rate             1694 drivers/net/wireless/realtek/rtw88/phy.c 	else if (rate >= DESC_RATEMCS0 && rate <= DESC_RATEMCS7)
rate             1696 drivers/net/wireless/realtek/rtw88/phy.c 	else if (rate >= DESC_RATEMCS8 && rate <= DESC_RATEMCS15)
rate             1698 drivers/net/wireless/realtek/rtw88/phy.c 	else if (rate >= DESC_RATEVHT1SS_MCS0 && rate <= DESC_RATEVHT1SS_MCS9)
rate             1700 drivers/net/wireless/realtek/rtw88/phy.c 	else if (rate >= DESC_RATEVHT2SS_MCS0 && rate <= DESC_RATEVHT2SS_MCS9)
rate             1732 drivers/net/wireless/realtek/rtw88/phy.c 	     band, bw, rf_path, rate, channel);
rate             1736 drivers/net/wireless/realtek/rtw88/phy.c void rtw_get_tx_power_params(struct rtw_dev *rtwdev, u8 path, u8 rate, u8 bw,
rate             1754 drivers/net/wireless/realtek/rtw88/phy.c 						      bw, rate, group);
rate             1755 drivers/net/wireless/realtek/rtw88/phy.c 		*offset = hal->tx_pwr_by_rate_offset_2g[path][rate];
rate             1760 drivers/net/wireless/realtek/rtw88/phy.c 						      bw, rate, group);
rate             1761 drivers/net/wireless/realtek/rtw88/phy.c 		*offset = hal->tx_pwr_by_rate_offset_5g[path][rate];
rate             1765 drivers/net/wireless/realtek/rtw88/phy.c 					    rate, ch, regd);
rate             1769 drivers/net/wireless/realtek/rtw88/phy.c rtw_phy_get_tx_power_index(struct rtw_dev *rtwdev, u8 rf_path, u8 rate,
rate             1776 drivers/net/wireless/realtek/rtw88/phy.c 	rtw_get_tx_power_params(rtwdev, rf_path, rate, bandwidth,
rate             1783 drivers/net/wireless/realtek/rtw88/phy.c 		offset += rtw_phy_get_dis_dpd_by_rate_diff(rtwdev, rate);
rate             1800 drivers/net/wireless/realtek/rtw88/phy.c 	u8 rate;
rate             1812 drivers/net/wireless/realtek/rtw88/phy.c 		rate = rates[i];
rate             1813 drivers/net/wireless/realtek/rtw88/phy.c 		pwr_idx = rtw_phy_get_tx_power_index(rtwdev, path, rate,
rate             1815 drivers/net/wireless/realtek/rtw88/phy.c 		hal->tx_pwr_tbl[path][rate] = pwr_idx;
rate             1859 drivers/net/wireless/realtek/rtw88/phy.c 	u8 rate;
rate             1871 drivers/net/wireless/realtek/rtw88/phy.c 	for (rate = 0; rate < size; rate++) {
rate             1872 drivers/net/wireless/realtek/rtw88/phy.c 		rate_idx = rates[rate];
rate             1953 drivers/net/wireless/realtek/rtw88/phy.c 	u8 regd, path, rate, rs, bw;
rate             1957 drivers/net/wireless/realtek/rtw88/phy.c 		for (rate = 0; rate < DESC_RATE_MAX; rate++) {
rate             1958 drivers/net/wireless/realtek/rtw88/phy.c 			hal->tx_pwr_by_rate_offset_2g[path][rate] = 0;
rate             1959 drivers/net/wireless/realtek/rtw88/phy.c 			hal->tx_pwr_by_rate_offset_5g[path][rate] = 0;
rate              125 drivers/net/wireless/realtek/rtw88/phy.h 			u8 rate, u8 bw, u8 ch, u8 regd,
rate              783 drivers/net/wireless/realtek/rtw88/rtw8822b.c 	if (pkt_stat->rate > DESC_RATE11M && pkt_stat->rate < DESC_RATEMCS0)
rate              844 drivers/net/wireless/realtek/rtw88/rtw8822b.c 	pkt_stat->rate = GET_RX_DESC_RX_RATE(rx_desc);
rate              872 drivers/net/wireless/realtek/rtw88/rtw8822b.c 	u8 rate, rate_idx, pwr_index, shift;
rate              876 drivers/net/wireless/realtek/rtw88/rtw8822b.c 		rate = rtw_rate_section[rs][j];
rate              877 drivers/net/wireless/realtek/rtw88/rtw8822b.c 		pwr_index = hal->tx_pwr_tbl[path][rate];
rate              878 drivers/net/wireless/realtek/rtw88/rtw8822b.c 		shift = rate & 0x3;
rate              881 drivers/net/wireless/realtek/rtw88/rtw8822b.c 			rate_idx = rate & 0xfc;
rate             1653 drivers/net/wireless/realtek/rtw88/rtw8822c.c 	if (pkt_stat->rate > DESC_RATE11M && pkt_stat->rate < DESC_RATEMCS0)
rate             1712 drivers/net/wireless/realtek/rtw88/rtw8822c.c 	pkt_stat->rate = GET_RX_DESC_RX_RATE(rx_desc);
rate             1755 drivers/net/wireless/realtek/rtw88/rtw8822c.c static void rtw8822c_set_tx_power_diff(struct rtw_dev *rtwdev, u8 rate,
rate             1759 drivers/net/wireless/realtek/rtw88/rtw8822c.c 	u8 rate_idx = rate & 0xfc;
rate             1780 drivers/net/wireless/realtek/rtw88/rtw8822c.c 	u8 rs, rate, j;
rate             1792 drivers/net/wireless/realtek/rtw88/rtw8822c.c 			rate = rtw_rate_section[rs][j];
rate             1793 drivers/net/wireless/realtek/rtw88/rtw8822c.c 			pwr_a = hal->tx_pwr_tbl[RF_PATH_A][rate];
rate             1794 drivers/net/wireless/realtek/rtw88/rtw8822c.c 			pwr_b = hal->tx_pwr_tbl[RF_PATH_B][rate];
rate             1802 drivers/net/wireless/realtek/rtw88/rtw8822c.c 			diff_idx[rate % 4] = min(diff_a, diff_b);
rate             1803 drivers/net/wireless/realtek/rtw88/rtw8822c.c 			if (rate % 4 == 3)
rate             1804 drivers/net/wireless/realtek/rtw88/rtw8822c.c 				rtw8822c_set_tx_power_diff(rtwdev, rate - 3,
rate              103 drivers/net/wireless/realtek/rtw88/rx.c 	if (pkt_stat->rate >= DESC_RATEVHT1SS_MCS0)
rate              105 drivers/net/wireless/realtek/rtw88/rx.c 	else if (pkt_stat->rate >= DESC_RATEMCS0)
rate              108 drivers/net/wireless/realtek/rtw88/rx.c 	if (pkt_stat->rate >= DESC_RATEVHT1SS_MCS0 &&
rate              109 drivers/net/wireless/realtek/rtw88/rx.c 	    pkt_stat->rate <= DESC_RATEVHT1SS_MCS9) {
rate              111 drivers/net/wireless/realtek/rtw88/rx.c 		rx_status->rate_idx = pkt_stat->rate - DESC_RATEVHT1SS_MCS0;
rate              112 drivers/net/wireless/realtek/rtw88/rx.c 	} else if (pkt_stat->rate >= DESC_RATEVHT2SS_MCS0 &&
rate              113 drivers/net/wireless/realtek/rtw88/rx.c 		   pkt_stat->rate <= DESC_RATEVHT2SS_MCS9) {
rate              115 drivers/net/wireless/realtek/rtw88/rx.c 		rx_status->rate_idx = pkt_stat->rate - DESC_RATEVHT2SS_MCS0;
rate              116 drivers/net/wireless/realtek/rtw88/rx.c 	} else if (pkt_stat->rate >= DESC_RATEVHT3SS_MCS0 &&
rate              117 drivers/net/wireless/realtek/rtw88/rx.c 		   pkt_stat->rate <= DESC_RATEVHT3SS_MCS9) {
rate              119 drivers/net/wireless/realtek/rtw88/rx.c 		rx_status->rate_idx = pkt_stat->rate - DESC_RATEVHT3SS_MCS0;
rate              120 drivers/net/wireless/realtek/rtw88/rx.c 	} else if (pkt_stat->rate >= DESC_RATEVHT4SS_MCS0 &&
rate              121 drivers/net/wireless/realtek/rtw88/rx.c 		   pkt_stat->rate <= DESC_RATEVHT4SS_MCS9) {
rate              123 drivers/net/wireless/realtek/rtw88/rx.c 		rx_status->rate_idx = pkt_stat->rate - DESC_RATEVHT4SS_MCS0;
rate              124 drivers/net/wireless/realtek/rtw88/rx.c 	} else if (pkt_stat->rate >= DESC_RATEMCS0 &&
rate              125 drivers/net/wireless/realtek/rtw88/rx.c 		   pkt_stat->rate <= DESC_RATEMCS15) {
rate              126 drivers/net/wireless/realtek/rtw88/rx.c 		rx_status->rate_idx = pkt_stat->rate - DESC_RATEMCS0;
rate              128 drivers/net/wireless/realtek/rtw88/rx.c 		   pkt_stat->rate >= DESC_RATE6M &&
rate              129 drivers/net/wireless/realtek/rtw88/rx.c 		   pkt_stat->rate <= DESC_RATE54M) {
rate              130 drivers/net/wireless/realtek/rtw88/rx.c 		rx_status->rate_idx = pkt_stat->rate - DESC_RATE6M;
rate              132 drivers/net/wireless/realtek/rtw88/rx.c 		   pkt_stat->rate >= DESC_RATE1M &&
rate              133 drivers/net/wireless/realtek/rtw88/rx.c 		   pkt_stat->rate <= DESC_RATE54M) {
rate              134 drivers/net/wireless/realtek/rtw88/rx.c 		rx_status->rate_idx = pkt_stat->rate - DESC_RATE1M;
rate               46 drivers/net/wireless/realtek/rtw88/tx.c 	SET_TX_DESC_DATARATE(txdesc, pkt_info->rate);
rate               83 drivers/net/wireless/realtek/rtw88/tx.c 	u8 rate;
rate               86 drivers/net/wireless/realtek/rtw88/tx.c 		rate = DESC_RATEMCS15;
rate               88 drivers/net/wireless/realtek/rtw88/tx.c 		rate = DESC_RATEMCS7;
rate               90 drivers/net/wireless/realtek/rtw88/tx.c 	return rate;
rate               97 drivers/net/wireless/realtek/rtw88/tx.c 	u8 rate;
rate              104 drivers/net/wireless/realtek/rtw88/tx.c 			rate = DESC_RATEVHT1SS_MCS7;
rate              107 drivers/net/wireless/realtek/rtw88/tx.c 			rate = DESC_RATEVHT1SS_MCS8;
rate              111 drivers/net/wireless/realtek/rtw88/tx.c 			rate = DESC_RATEVHT1SS_MCS9;
rate              117 drivers/net/wireless/realtek/rtw88/tx.c 			rate = DESC_RATEVHT2SS_MCS7;
rate              120 drivers/net/wireless/realtek/rtw88/tx.c 			rate = DESC_RATEVHT2SS_MCS8;
rate              124 drivers/net/wireless/realtek/rtw88/tx.c 			rate = DESC_RATEVHT2SS_MCS9;
rate              128 drivers/net/wireless/realtek/rtw88/tx.c 		rate = DESC_RATEVHT1SS_MCS9;
rate              131 drivers/net/wireless/realtek/rtw88/tx.c 	return rate;
rate              245 drivers/net/wireless/realtek/rtw88/tx.c 	u8 rate = DESC_RATE6M;
rate              264 drivers/net/wireless/realtek/rtw88/tx.c 		rate = get_highest_vht_tx_rate(rtwdev, sta);
rate              266 drivers/net/wireless/realtek/rtw88/tx.c 		rate = get_highest_ht_tx_rate(rtwdev, sta);
rate              268 drivers/net/wireless/realtek/rtw88/tx.c 		rate = DESC_RATE11M;
rate              270 drivers/net/wireless/realtek/rtw88/tx.c 		rate = DESC_RATE54M;
rate              284 drivers/net/wireless/realtek/rtw88/tx.c 	pkt_info->rate = rate;
rate               98 drivers/net/wireless/rsi/rsi_91x_core.c 	struct ieee80211_rate rate;
rate              102 drivers/net/wireless/rsi/rsi_91x_core.c 	rate.bitrate = RSI_RATE_MCS0 * 5 * 10; /* Convert to Kbps */
rate              117 drivers/net/wireless/rsi/rsi_91x_core.c 							  skb->len, &rate);
rate             1269 drivers/net/wireless/rsi/rsi_91x_mgmt.c static bool rsi_map_rates(u16 rate, int *offset)
rate             1273 drivers/net/wireless/rsi/rsi_91x_mgmt.c 		if (rate == mcs[kk]) {
rate             1280 drivers/net/wireless/rsi/rsi_91x_mgmt.c 		if (rate == rsi_rates[kk].bitrate / 5) {
rate             2203 drivers/net/wireless/st/cw1200/sta.c 		frame.rate = WSM_TRANSMIT_RATE_6;
rate             2242 drivers/net/wireless/st/cw1200/sta.c 		.rate = 0xFF,
rate             2262 drivers/net/wireless/st/cw1200/sta.c 		.rate = 0xFF,
rate               25 drivers/net/wireless/st/cw1200/txrx.c 		   const struct ieee80211_tx_rate *rate);
rate              404 drivers/net/wireless/st/cw1200/txrx.c 	const struct ieee80211_rate *rate;
rate              426 drivers/net/wireless/st/cw1200/txrx.c 		   const struct ieee80211_tx_rate *rate)
rate              428 drivers/net/wireless/st/cw1200/txrx.c 	if (rate->idx < 0)
rate              430 drivers/net/wireless/st/cw1200/txrx.c 	if (rate->flags & IEEE80211_TX_RC_MCS)
rate              431 drivers/net/wireless/st/cw1200/txrx.c 		return &priv->mcs_rates[rate->idx];
rate              433 drivers/net/wireless/st/cw1200/txrx.c 		bitrates[rate->idx];
rate              652 drivers/net/wireless/st/cw1200/txrx.c 	t->rate = cw1200_get_tx_rate(priv,
rate              654 drivers/net/wireless/st/cw1200/txrx.c 	wsm->max_tx_rate = t->rate->hw_value;
rate              655 drivers/net/wireless/st/cw1200/txrx.c 	if (t->rate->flags & IEEE80211_TX_RC_MCS) {
rate             1461 drivers/net/wireless/st/cw1200/wsm.h 	u8 rate;
rate             1471 drivers/net/wireless/st/cw1200/wsm.h 	p[1] = arg->rate;
rate               85 drivers/net/wireless/ti/wl1251/rx.c 	switch (desc->rate) {
rate              120 drivers/net/wireless/ti/wl1251/rx.c 	if (desc->rate == RATE_1MBPS) {
rate               90 drivers/net/wireless/ti/wl1251/rx.h 	u8 rate;
rate              138 drivers/net/wireless/ti/wl1251/tx.c 	struct ieee80211_rate *rate;
rate              153 drivers/net/wireless/ti/wl1251/tx.c 	rate = ieee80211_get_tx_rate(wl->hw, control);
rate              154 drivers/net/wireless/ti/wl1251/tx.c 	tx_hdr->rate = cpu_to_le16(rate->hw_value);
rate              244 drivers/net/wireless/ti/wl1251/tx.c 		     tx_hdr->rate, tx_hdr->xmit_queue);
rate              433 drivers/net/wireless/ti/wl1251/tx.c 		     result->id, skb, result->ack_failures, result->rate,
rate              120 drivers/net/wireless/ti/wl1251/tx.h 	__le16 rate;
rate              186 drivers/net/wireless/ti/wl1251/tx.h 	u16 rate;
rate              330 drivers/net/wireless/ti/wl12xx/main.c 	.rate = {
rate              208 drivers/net/wireless/ti/wl12xx/scan.c 	u32 rate, mask;
rate              222 drivers/net/wireless/ti/wl12xx/scan.c 		rate = wl1271_tx_min_rate_get(wl, mask);
rate              223 drivers/net/wireless/ti/wl12xx/scan.c 		ret = wl1271_scan_send(wl, wlvif, band, false, rate);
rate              239 drivers/net/wireless/ti/wl12xx/scan.c 		rate = wl1271_tx_min_rate_get(wl, mask);
rate              240 drivers/net/wireless/ti/wl12xx/scan.c 		ret = wl1271_scan_send(wl, wlvif, band, true, rate);
rate              253 drivers/net/wireless/ti/wl12xx/scan.c 		rate = wl1271_tx_min_rate_get(wl, wlvif->bitrate_masks[band]);
rate              254 drivers/net/wireless/ti/wl12xx/scan.c 		ret = wl1271_scan_send(wl, wlvif, band, false, rate);
rate              264 drivers/net/wireless/ti/wl12xx/scan.c 		rate = wl1271_tx_min_rate_get(wl, wlvif->bitrate_masks[band]);
rate              265 drivers/net/wireless/ti/wl12xx/scan.c 		ret = wl1271_scan_send(wl, wlvif, band, true, rate);
rate              468 drivers/net/wireless/ti/wl18xx/main.c 	.rate = {
rate               88 drivers/net/wireless/ti/wl18xx/scan.c 		cmd->rate = WL18XX_SCAN_RATE_6;
rate               81 drivers/net/wireless/ti/wl18xx/scan.h 	u8 rate;
rate               19 drivers/net/wireless/ti/wl18xx/tx.c 			     u8 band, struct ieee80211_tx_rate *rate, u8 hlid)
rate               25 drivers/net/wireless/ti/wl18xx/tx.c 		rate->idx = 0;
rate               26 drivers/net/wireless/ti/wl18xx/tx.c 		rate->flags = 0;
rate               31 drivers/net/wireless/ti/wl18xx/tx.c 		rate->idx = fw_rate;
rate               33 drivers/net/wireless/ti/wl18xx/tx.c 			rate->idx -= CONF_HW_RATE_INDEX_6MBPS;
rate               34 drivers/net/wireless/ti/wl18xx/tx.c 		rate->flags = 0;
rate               36 drivers/net/wireless/ti/wl18xx/tx.c 		rate->flags = IEEE80211_TX_RC_MCS;
rate               37 drivers/net/wireless/ti/wl18xx/tx.c 		rate->idx = fw_rate - CONF_HW_RATE_INDEX_MCS0;
rate               41 drivers/net/wireless/ti/wl18xx/tx.c 			(rate->idx)--;
rate               43 drivers/net/wireless/ti/wl18xx/tx.c 			(rate->idx)--;
rate               48 drivers/net/wireless/ti/wl18xx/tx.c 			rate->flags |= IEEE80211_TX_RC_SHORT_GI;
rate               55 drivers/net/wireless/ti/wl18xx/tx.c 				rate->idx -= 8;
rate               56 drivers/net/wireless/ti/wl18xx/tx.c 				rate->flags |= IEEE80211_TX_RC_40_MHZ_WIDTH;
rate             1651 drivers/net/wireless/ti/wlcore/acx.c 	struct conf_rate_policy_settings *conf = &wl->conf.rate;
rate             1143 drivers/net/wireless/ti/wlcore/cmd.c 	u32 rate;
rate             1166 drivers/net/wireless/ti/wlcore/cmd.c 	rate = wl1271_tx_min_rate_get(wl, wlvif->bitrate_masks[band]);
rate             1170 drivers/net/wireless/ti/wlcore/cmd.c 					      skb->data, skb->len, 0, rate);
rate             1174 drivers/net/wireless/ti/wlcore/cmd.c 					      skb->data, skb->len, 0, rate);
rate             1188 drivers/net/wireless/ti/wlcore/cmd.c 	u32 rate;
rate             1197 drivers/net/wireless/ti/wlcore/cmd.c 	rate = wl1271_tx_min_rate_get(wl, wlvif->bitrate_masks[wlvif->band]);
rate             1201 drivers/net/wireless/ti/wlcore/cmd.c 					      skb->data, skb->len, 0, rate);
rate             1205 drivers/net/wireless/ti/wlcore/cmd.c 					      skb->data, skb->len, 0, rate);
rate             1145 drivers/net/wireless/ti/wlcore/conf.h 	struct conf_rate_policy_settings rate;
rate              149 drivers/net/wireless/ti/wlcore/init.c 	u32 rate;
rate              160 drivers/net/wireless/ti/wlcore/init.c 	rate = wl1271_tx_min_rate_get(wl, wlvif->basic_rate_set);
rate              163 drivers/net/wireless/ti/wlcore/init.c 				      tmpl, sizeof(*tmpl), 0, rate);
rate              176 drivers/net/wireless/ti/wlcore/init.c 	u32 rate;
rate              193 drivers/net/wireless/ti/wlcore/init.c 	rate = wl1271_tx_min_rate_get(wl, wlvif->basic_rate_set);
rate              196 drivers/net/wireless/ti/wlcore/init.c 				      sizeof(*nullfunc), 0, rate);
rate              209 drivers/net/wireless/ti/wlcore/init.c 	u32 rate;
rate              226 drivers/net/wireless/ti/wlcore/init.c 	rate = wl1271_tx_min_rate_get(wl, wlvif->basic_rate_set);
rate              229 drivers/net/wireless/ti/wlcore/init.c 				      sizeof(*qosnull), 0, rate);
rate             4176 drivers/net/wireless/ti/wlcore/main.c 		u32 rate = wl1271_tx_min_rate_get(wl, wlvif->basic_rate_set);
rate             4178 drivers/net/wireless/ti/wlcore/main.c 		wl1271_ap_set_probe_resp_tmpl(wl, rate, vif);
rate             6044 drivers/net/wireless/ti/wlcore/main.c u8 wlcore_rate_to_idx(struct wl1271 *wl, u8 rate, enum nl80211_band band)
rate             6050 drivers/net/wireless/ti/wlcore/main.c 	if (unlikely(rate >= wl->hw_tx_rate_tbl_size)) {
rate             6051 drivers/net/wireless/ti/wlcore/main.c 		wl1271_error("Illegal RX rate from HW: %d", rate);
rate             6055 drivers/net/wireless/ti/wlcore/main.c 	idx = wl->band_rate_to_idx[band][rate];
rate             6057 drivers/net/wireless/ti/wlcore/main.c 		wl1271_error("Unsupported RX rate from HW: %d", rate);
rate               57 drivers/net/wireless/ti/wlcore/rx.c 	status->rate_idx = wlcore_rate_to_idx(wl, desc->rate, status->band);
rate               60 drivers/net/wireless/ti/wlcore/rx.c 	if (desc->rate <= wl->hw_min_ht_rate)
rate              123 drivers/net/wireless/ti/wlcore/rx.h 	u8  rate;
rate              135 drivers/net/wireless/ti/wlcore/rx.h u8 wl1271_rate_to_idx(int rate, enum nl80211_band band);
rate              905 drivers/net/wireless/ti/wlcore/tx.c 	int rate = -1;
rate              931 drivers/net/wireless/ti/wlcore/tx.c 		rate = wlcore_rate_to_idx(wl, result->rate_class_index,
rate              940 drivers/net/wireless/ti/wlcore/tx.c 	info->status.rates[0].idx = rate;
rate              235 drivers/net/wireless/ti/wlcore/tx.h u8 wlcore_rate_to_idx(struct wl1271 *wl, u8 rate, enum nl80211_band band);
rate             1240 drivers/net/wireless/zydas/zd1201.c 	short rate;
rate             1245 drivers/net/wireless/zydas/zd1201.c 			rate = ZD1201_RATEB1;
rate             1248 drivers/net/wireless/zydas/zd1201.c 			rate = ZD1201_RATEB2;
rate             1251 drivers/net/wireless/zydas/zd1201.c 			rate = ZD1201_RATEB5;
rate             1255 drivers/net/wireless/zydas/zd1201.c 			rate = ZD1201_RATEB11;
rate             1259 drivers/net/wireless/zydas/zd1201.c 		rate |= rate-1;
rate             1262 drivers/net/wireless/zydas/zd1201.c 	err = zd1201_setconfig16(zd, ZD1201_RID_TXRATECNTL, rate);
rate             1273 drivers/net/wireless/zydas/zd1201.c 	short rate;
rate             1276 drivers/net/wireless/zydas/zd1201.c 	err = zd1201_getconfig16(zd, ZD1201_RID_CURRENTTXRATE, &rate);
rate             1280 drivers/net/wireless/zydas/zd1201.c 	switch(rate) {
rate              460 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	info->status.rates[0].idx = retries->rate[0];
rate              464 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		info->status.rates[i].idx = retries->rate[i];
rate              468 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		info->status.rates[i].idx = retries->rate[retry - 1];
rate              533 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		final_idx = retries->rate[retry - 1];
rate              536 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		if (final_rate != tx_status->rate) {
rate             1026 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	u8 rate;
rate             1060 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	rate = zd_rx_rate(buffer, status);
rate             1064 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		if (rate == mac->band.bitrates[i].hw_value)
rate              132 drivers/net/wireless/zydas/zd1211rw/zd_mac.h 	int rate[10];	/* retry rates, described by an index in zd_rates[] */
rate              138 drivers/net/wireless/zydas/zd1211rw/zd_mac.h 	u8 rate;
rate              126 drivers/opp/core.c 	return opp->rate;
rate              388 drivers/opp/core.c 				temp_opp->rate == freq) {
rate              460 drivers/opp/core.c 		if (temp_opp->available && temp_opp->rate >= *freq) {
rate              462 drivers/opp/core.c 			*freq = opp->rate;
rate              554 drivers/opp/core.c 			if (temp_opp->rate > *freq)
rate              568 drivers/opp/core.c 		*freq = opp->rate;
rate              731 drivers/opp/core.c 	data->old_opp.rate = old_freq;
rate              738 drivers/opp/core.c 	data->new_opp.rate = freq;
rate             1182 drivers/opp/core.c 		if (opp->rate == freq) {
rate             1300 drivers/opp/core.c 		if (new_opp->rate > opp->rate) {
rate             1305 drivers/opp/core.c 		if (new_opp->rate < opp->rate)
rate             1310 drivers/opp/core.c 			 __func__, opp->rate, opp->supplies[0].u_volt,
rate             1311 drivers/opp/core.c 			 opp->available, new_opp->rate,
rate             1360 drivers/opp/core.c 			 __func__, new_opp->rate);
rate             1400 drivers/opp/core.c 	new_opp->rate = freq;
rate             2067 drivers/opp/core.c 		if (tmp_opp->rate == freq) {
rate               49 drivers/opp/cpu.c 	unsigned long rate;
rate               59 drivers/opp/cpu.c 	for (i = 0, rate = 0; i < max_opps; i++, rate++) {
rate               61 drivers/opp/cpu.c 		opp = dev_pm_opp_find_freq_ceil(dev, &rate);
rate               67 drivers/opp/cpu.c 		freq_table[i].frequency = rate / 1000;
rate               77 drivers/opp/debugfs.c 	if (likely(opp->rate))
rate               78 drivers/opp/debugfs.c 		id = opp->rate;
rate               92 drivers/opp/debugfs.c 	debugfs_create_ulong("rate_hz", S_IRUGO, d, &opp->rate);
rate              552 drivers/opp/of.c 	u64 rate = 0;
rate              561 drivers/opp/of.c 	ret = of_property_read_u64(np, "opp-hz", &rate);
rate              576 drivers/opp/of.c 		new_opp->rate = (unsigned long)rate;
rate              583 drivers/opp/of.c 		dev_dbg(dev, "OPP not supported by hardware: %llu\n", rate);
rate              619 drivers/opp/of.c 			if (new_opp->rate > opp_table->suspend_opp->rate) {
rate              634 drivers/opp/of.c 		 __func__, new_opp->turbo, new_opp->rate,
rate               80 drivers/opp/opp.h 	unsigned long rate;
rate              283 drivers/opp/ti-opp-supply.c 	unsigned long old_freq = data->old_opp.rate, freq = data->new_opp.rate;
rate              214 drivers/pci/controller/dwc/pci-meson.c 						 const char *id, u64 rate)
rate              223 drivers/pci/controller/dwc/pci-meson.c 	if (rate) {
rate              224 drivers/pci/controller/dwc/pci-meson.c 		ret = clk_set_rate(clk, rate);
rate              542 drivers/pci/controller/pci-ftpci100.c 		unsigned long rate;
rate              547 drivers/pci/controller/pci-ftpci100.c 		rate = clk_get_rate(p->bus_clk);
rate              549 drivers/pci/controller/pci-ftpci100.c 		if ((rate == 33000000) && (val & PCI_STATUS_66MHZ_CAPABLE)) {
rate              561 drivers/pci/controller/pci-ftpci100.c 		rate = clk_get_rate(p->bus_clk);
rate              562 drivers/pci/controller/pci-ftpci100.c 		if (rate == 33000000)
rate              564 drivers/pci/controller/pci-ftpci100.c 		if (rate == 66000000)
rate              515 drivers/pci/controller/pcie-rcar.c 			  unsigned int rate, u32 addr,
rate              521 drivers/pci/controller/pcie-rcar.c 		((rate & 1) << RATE_POS) |
rate               55 drivers/phy/phy-pistachio-usb.c 	unsigned long timeout, rate;
rate               70 drivers/phy/phy-pistachio-usb.c 	rate = clk_get_rate(p_phy->phy_clk);
rate               71 drivers/phy/phy-pistachio-usb.c 	if (p_phy->refclk == REFCLK_XO_CRYSTAL && rate != 12000000) {
rate               73 drivers/phy/phy-pistachio-usb.c 			rate);
rate               79 drivers/phy/phy-pistachio-usb.c 		if (rate == fsel_rate_map[i])
rate               83 drivers/phy/phy-pistachio-usb.c 		dev_err(p_phy->dev, "Unsupported clock rate: %lu\n", rate);
rate               91 drivers/phy/rockchip/phy-rockchip-emmc.c 	unsigned long rate;
rate              113 drivers/phy/rockchip/phy-rockchip-emmc.c 	rate = clk_get_rate(rk_phy->emmcclk);
rate              115 drivers/phy/rockchip/phy-rockchip-emmc.c 	if (rate != 0) {
rate              119 drivers/phy/rockchip/phy-rockchip-emmc.c 		switch (rate) {
rate              137 drivers/phy/rockchip/phy-rockchip-emmc.c 		diff = (rate > ideal_rate) ?
rate              138 drivers/phy/rockchip/phy-rockchip-emmc.c 			rate - ideal_rate : ideal_rate - rate;
rate              146 drivers/phy/rockchip/phy-rockchip-emmc.c 		if ((rate > 50000000 && diff > 15000000) || (rate > 200000000))
rate              147 drivers/phy/rockchip/phy-rockchip-emmc.c 			dev_warn(&phy->dev, "Unsupported rate: %lu\n", rate);
rate              200 drivers/phy/rockchip/phy-rockchip-emmc.c 	if (rate == 0)
rate              407 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 					       unsigned long rate)
rate              418 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 		return (u64)rate * bus_width / 8;
rate              420 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 		return rate;
rate              525 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 						     unsigned long rate)
rate              528 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 	unsigned long tmdsclock = inno_hdmi_phy_get_tmdsclk(inno, rate);
rate              531 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 		if (cfg->pixclock == rate && cfg->tmdsclock == tmdsclock)
rate              601 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 						unsigned long rate,
rate              606 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 	rate = (rate / 1000) * 1000;
rate              609 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 		if (cfg->pixclock == rate && !cfg->fracdiv)
rate              619 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 					     unsigned long rate,
rate              624 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 	unsigned long tmdsclock = inno_hdmi_phy_get_tmdsclk(inno, rate);
rate              629 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 		__func__, rate, tmdsclock);
rate              631 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 	cfg = inno_hdmi_phy_get_pre_pll_cfg(inno, rate);
rate              672 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 	inno->pixclock = rate;
rate              755 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 						unsigned long rate,
rate              760 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 	rate = (rate / 1000) * 1000;
rate              763 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 		if (cfg->pixclock == rate)
rate              773 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 					     unsigned long rate,
rate              778 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 	unsigned long tmdsclock = inno_hdmi_phy_get_tmdsclk(inno, rate);
rate              783 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 		__func__, rate, tmdsclock);
rate              785 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 	cfg = inno_hdmi_phy_get_pre_pll_cfg(inno, rate);
rate              823 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 	inno->pixclock = rate;
rate              105 drivers/phy/samsung/phy-exynos4210-usb2.c static int exynos4210_rate_to_clk(unsigned long rate, u32 *reg)
rate              107 drivers/phy/samsung/phy-exynos4210-usb2.c 	switch (rate) {
rate              132 drivers/phy/samsung/phy-exynos4x12-usb2.c static int exynos4x12_rate_to_clk(unsigned long rate, u32 *reg)
rate              136 drivers/phy/samsung/phy-exynos4x12-usb2.c 	switch (rate) {
rate              224 drivers/phy/samsung/phy-exynos5-usbdrd.c static unsigned int exynos5_rate_to_clk(unsigned long rate, u32 *reg)
rate              228 drivers/phy/samsung/phy-exynos5-usbdrd.c 	switch (rate) {
rate              142 drivers/phy/samsung/phy-exynos5250-usb2.c static int exynos5250_rate_to_clk(unsigned long rate, u32 *reg)
rate              146 drivers/phy/samsung/phy-exynos5250-usb2.c 	switch (rate) {
rate               70 drivers/phy/samsung/phy-s5pv210-usb2.c static int s5pv210_rate_to_clk(unsigned long rate, u32 *reg)
rate               72 drivers/phy/samsung/phy-s5pv210-usb2.c 	switch (rate) {
rate               61 drivers/phy/ti/phy-omap-control.c 	unsigned long rate;
rate               90 drivers/phy/ti/phy-omap-control.c 		rate = clk_get_rate(control_phy->sys_clk);
rate               91 drivers/phy/ti/phy-omap-control.c 		rate = rate/1000000;
rate               98 drivers/phy/ti/phy-omap-control.c 			val |= rate <<
rate              138 drivers/phy/ti/phy-ti-pipe3.c 	unsigned long rate;
rate              301 drivers/phy/ti/phy-ti-pipe3.c 	unsigned long rate;
rate              304 drivers/phy/ti/phy-ti-pipe3.c 	rate = clk_get_rate(phy->sys_clk);
rate              306 drivers/phy/ti/phy-ti-pipe3.c 	for (; dpll_map->rate; dpll_map++) {
rate              307 drivers/phy/ti/phy-ti-pipe3.c 		if (rate == dpll_map->rate)
rate              311 drivers/phy/ti/phy-ti-pipe3.c 	dev_err(phy->dev, "No DPLL configuration for %lu Hz SYS CLK\n", rate);
rate              341 drivers/phy/ti/phy-ti-pipe3.c 	unsigned long rate;
rate              350 drivers/phy/ti/phy-ti-pipe3.c 	rate = clk_get_rate(phy->sys_clk);
rate              351 drivers/phy/ti/phy-ti-pipe3.c 	if (!rate) {
rate              355 drivers/phy/ti/phy-ti-pipe3.c 	rate = rate / 1000000;
rate              357 drivers/phy/ti/phy-ti-pipe3.c 	val = rate << OMAP_CTRL_PIPE3_PHY_PWRCTL_CLK_FREQ_SHIFT;
rate              296 drivers/pwm/pwm-atmel-tcb.c 	unsigned rate = clk_get_rate(tc->clk[group]);
rate              309 drivers/pwm/pwm-atmel-tcb.c 		min = div_u64((u64)NSEC_PER_SEC * atmel_tc_divisors[i], rate);
rate              321 drivers/pwm/pwm-atmel-tcb.c 		rate = clk_get_rate(tc->slow_clk);
rate              322 drivers/pwm/pwm-atmel-tcb.c 		min = div_u64(NSEC_PER_SEC, rate);
rate               85 drivers/pwm/pwm-bcm-iproc.c 	u64 tmp, multi, rate;
rate               88 drivers/pwm/pwm-bcm-iproc.c 	rate = clk_get_rate(ip->clk);
rate              110 drivers/pwm/pwm-bcm-iproc.c 	state->period = div64_u64(tmp, rate);
rate              114 drivers/pwm/pwm-bcm-iproc.c 	state->duty_cycle = div64_u64(tmp, rate);
rate              123 drivers/pwm/pwm-bcm-iproc.c 	u64 rate;
rate              125 drivers/pwm/pwm-bcm-iproc.c 	rate = clk_get_rate(ip->clk);
rate              141 drivers/pwm/pwm-bcm-iproc.c 		value = rate * state->period;
rate              143 drivers/pwm/pwm-bcm-iproc.c 		value = rate * state->duty_cycle;
rate              115 drivers/pwm/pwm-bcm-kona.c 	u64 val, div, rate;
rate              130 drivers/pwm/pwm-bcm-kona.c 	rate = clk_get_rate(kp->clk);
rate              135 drivers/pwm/pwm-bcm-kona.c 		val = rate * period_ns;
rate              137 drivers/pwm/pwm-bcm-kona.c 		val = rate * duty_ns;
rate               65 drivers/pwm/pwm-bcm2835.c 	unsigned long rate = clk_get_rate(pc->clk);
rate               69 drivers/pwm/pwm-bcm2835.c 	if (!rate) {
rate               74 drivers/pwm/pwm-bcm2835.c 	scaler = DIV_ROUND_CLOSEST(NSEC_PER_SEC, rate);
rate              117 drivers/pwm/pwm-brcmstb.c 		u64 rate, tmp;
rate              123 drivers/pwm/pwm-brcmstb.c 		rate = (u64)clk_get_rate(p->clk) * (u64)cword;
rate              124 drivers/pwm/pwm-brcmstb.c 		do_div(rate, 1 << CWORD_BIT_SIZE);
rate              126 drivers/pwm/pwm-brcmstb.c 		tmp = period_ns * rate;
rate              130 drivers/pwm/pwm-brcmstb.c 		tmp = (duty_ns + 1) * rate;
rate              122 drivers/pwm/pwm-fsl-ftm.c 	unsigned long rate;
rate              125 drivers/pwm/pwm-fsl-ftm.c 	rate = clk_get_rate(fpc->clk[fpc->period.clk_select]);
rate              128 drivers/pwm/pwm-fsl-ftm.c 	do_div(exval, rate >> fpc->period.clk_ps);
rate               95 drivers/pwm/pwm-imx-tpm.c 	u32 rate, prescale, period_count, clock_unit;
rate               98 drivers/pwm/pwm-imx-tpm.c 	rate = clk_get_rate(tpm->clk);
rate               99 drivers/pwm/pwm-imx-tpm.c 	tmp = (u64)state->period * rate;
rate              116 drivers/pwm/pwm-imx-tpm.c 	real_state->period = DIV_ROUND_CLOSEST_ULL(tmp, rate);
rate              142 drivers/pwm/pwm-imx-tpm.c 	u32 rate, val, prescale;
rate              149 drivers/pwm/pwm-imx-tpm.c 	rate = clk_get_rate(tpm->clk);
rate              154 drivers/pwm/pwm-imx-tpm.c 	state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, rate);
rate               74 drivers/pwm/pwm-mtk-disp.c 	u64 div, rate;
rate               87 drivers/pwm/pwm-mtk-disp.c 	rate = clk_get_rate(mdp->clk_main);
rate               88 drivers/pwm/pwm-mtk-disp.c 	clk_div = div_u64(rate * period_ns, NSEC_PER_SEC) >>
rate               94 drivers/pwm/pwm-mtk-disp.c 	period = div64_u64(rate * period_ns, div);
rate               98 drivers/pwm/pwm-mtk-disp.c 	high_width = div64_u64(rate * duty_ns, div);
rate               50 drivers/pwm/pwm-mxs.c 	unsigned long rate;
rate               53 drivers/pwm/pwm-mxs.c 	rate = clk_get_rate(mxs->clk);
rate               55 drivers/pwm/pwm-mxs.c 		c = rate / cdiv[div];
rate              155 drivers/pwm/pwm-samsung.c 	unsigned long rate;
rate              158 drivers/pwm/pwm-samsung.c 	rate = clk_get_rate(chip->base_clk);
rate              165 drivers/pwm/pwm-samsung.c 	return rate / (reg + 1);
rate              172 drivers/pwm/pwm-samsung.c 	unsigned long rate;
rate              179 drivers/pwm/pwm-samsung.c 			rate = clk_get_rate(clk);
rate              180 drivers/pwm/pwm-samsung.c 			if (rate)
rate              181 drivers/pwm/pwm-samsung.c 				return rate;
rate              188 drivers/pwm/pwm-samsung.c 	rate = pwm_samsung_get_tin_rate(chip, chan);
rate              189 drivers/pwm/pwm-samsung.c 	dev_dbg(chip->chip.dev, "tin parent at %lu\n", rate);
rate              199 drivers/pwm/pwm-samsung.c 			if ((rate >> (variant->bits + div)) < freq)
rate              211 drivers/pwm/pwm-samsung.c 	return rate >> div;
rate               82 drivers/pwm/pwm-sifive.c 				    unsigned long rate)
rate               95 drivers/pwm/pwm-sifive.c 	scale_pow = div64_ul(ddata->approx_period * (u64)rate, NSEC_PER_SEC);
rate              104 drivers/pwm/pwm-sifive.c 	ddata->real_period = div64_ul(num, rate);
rate              165 drivers/pwm/pwm-stm32-lp.c 	unsigned long rate = clk_get_rate(priv->clk);
rate              182 drivers/pwm/pwm-stm32-lp.c 	state->period = DIV_ROUND_CLOSEST_ULL(tmp, rate);
rate              187 drivers/pwm/pwm-stm32-lp.c 	state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, rate);
rate              171 drivers/pwm/pwm-stm32.c 	unsigned long rate;
rate              189 drivers/pwm/pwm-stm32.c 	rate = clk_get_rate(priv->clk);
rate              190 drivers/pwm/pwm-stm32.c 	if (!rate) {
rate              196 drivers/pwm/pwm-stm32.c 	div = (unsigned long long)rate * (unsigned long long)tmo_ms;
rate              248 drivers/pwm/pwm-stm32.c 	do_div(prd, rate);
rate              304 drivers/pwm/pwm-stm32.c 	result->period = DIV_ROUND_UP_ULL(prd, rate << icpsc);
rate              306 drivers/pwm/pwm-stm32.c 	result->duty_cycle = DIV_ROUND_UP_ULL(dty, rate);
rate               71 drivers/pwm/pwm-tegra.c 	unsigned long rate;
rate               89 drivers/pwm/pwm-tegra.c 	rate = pc->clk_rate >> PWM_DUTY_WIDTH;
rate               93 drivers/pwm/pwm-tegra.c 	rate = DIV_ROUND_CLOSEST_ULL(100ULL * rate, hz);
rate              100 drivers/pwm/pwm-tegra.c 	if (rate > 0)
rate              101 drivers/pwm/pwm-tegra.c 		rate--;
rate              107 drivers/pwm/pwm-tegra.c 	if (rate >> PWM_SCALE_WIDTH)
rate              110 drivers/pwm/pwm-tegra.c 	val |= rate << PWM_SCALE_SHIFT;
rate               68 drivers/pwm/pwm-zx.c 	unsigned long rate;
rate               86 drivers/pwm/pwm-zx.c 	rate = clk_get_rate(zpc->wclk);
rate               90 drivers/pwm/pwm-zx.c 	state->period = DIV_ROUND_CLOSEST_ULL(tmp, rate);
rate               94 drivers/pwm/pwm-zx.c 	state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, rate);
rate              104 drivers/pwm/pwm-zx.c 	unsigned long rate;
rate              107 drivers/pwm/pwm-zx.c 	rate = clk_get_rate(zpc->wclk);
rate              110 drivers/pwm/pwm-zx.c 		c = rate / div;
rate               62 drivers/regulator/max8649.c 	int voltage, rate, ret;
rate               77 drivers/regulator/max8649.c 	rate = (32 * 1000) >> ret;	/* uV/uS */
rate               79 drivers/regulator/max8649.c 	return DIV_ROUND_UP(voltage, rate);
rate              143 drivers/rtc/rtc-ac100.c static long ac100_clkout_round_rate(struct clk_hw *hw, unsigned long rate,
rate              150 drivers/rtc/rtc-ac100.c 		return divider_round_rate(hw, rate, &prate, NULL,
rate              156 drivers/rtc/rtc-ac100.c 		tmp_rate = divider_round_rate(hw, rate, &tmp_prate, NULL,
rate              160 drivers/rtc/rtc-ac100.c 		if (tmp_rate > rate)
rate              162 drivers/rtc/rtc-ac100.c 		if (rate - tmp_rate < best_rate - tmp_rate)
rate              202 drivers/rtc/rtc-ac100.c 		tmp = ac100_clkout_round_rate(hw, req->rate, prate);
rate              204 drivers/rtc/rtc-ac100.c 		if (tmp > req->rate)
rate              206 drivers/rtc/rtc-ac100.c 		if (req->rate - tmp < req->rate - best) {
rate              217 drivers/rtc/rtc-ac100.c 	req->rate = best;
rate              222 drivers/rtc/rtc-ac100.c static int ac100_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
rate              229 drivers/rtc/rtc-ac100.c 		div = divider_get_val(rate * ac100_clkout_prediv[pre_div].div,
rate               33 drivers/rtc/rtc-brcmstb-waketimer.c 	u32 rate;
rate               56 drivers/rtc/rtc-brcmstb-waketimer.c 	writel_relaxed(timer->rate, timer->base + BRCMSTB_WKTMR_PRESCALER);
rate               83 drivers/rtc/rtc-brcmstb-waketimer.c 	} while (tmp >= timer->rate);
rate               85 drivers/rtc/rtc-brcmstb-waketimer.c 	t->pre = timer->rate - tmp;
rate              238 drivers/rtc/rtc-brcmstb-waketimer.c 		timer->rate = clk_get_rate(timer->clk);
rate              239 drivers/rtc/rtc-brcmstb-waketimer.c 		if (!timer->rate)
rate              240 drivers/rtc/rtc-brcmstb-waketimer.c 			timer->rate = BRCMSTB_WKTMR_DEFAULT_FREQ;
rate              242 drivers/rtc/rtc-brcmstb-waketimer.c 		timer->rate = BRCMSTB_WKTMR_DEFAULT_FREQ;
rate             1366 drivers/rtc/rtc-ds1307.c static long ds3231_clk_sqw_round_rate(struct clk_hw *hw, unsigned long rate,
rate             1372 drivers/rtc/rtc-ds1307.c 		if (ds3231_clk_sqw_rates[i] <= rate)
rate             1379 drivers/rtc/rtc-ds1307.c static int ds3231_clk_sqw_set_rate(struct clk_hw *hw, unsigned long rate,
rate             1388 drivers/rtc/rtc-ds1307.c 		if (ds3231_clk_sqw_rates[rate_sel] == rate)
rate              310 drivers/rtc/rtc-hym8563.c static long hym8563_clkout_round_rate(struct clk_hw *hw, unsigned long rate,
rate              316 drivers/rtc/rtc-hym8563.c 		if (clkout_rates[i] <= rate)
rate              322 drivers/rtc/rtc-hym8563.c static int hym8563_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
rate              334 drivers/rtc/rtc-hym8563.c 		if (clkout_rates[i] == rate) {
rate              460 drivers/rtc/rtc-m41t80.c static long m41t80_sqw_round_rate(struct clk_hw *hw, unsigned long rate,
rate              463 drivers/rtc/rtc-m41t80.c 	if (rate >= M41T80_SQW_MAX_FREQ)
rate              465 drivers/rtc/rtc-m41t80.c 	if (rate >= M41T80_SQW_MAX_FREQ / 4)
rate              467 drivers/rtc/rtc-m41t80.c 	if (!rate)
rate              469 drivers/rtc/rtc-m41t80.c 	return 1 << ilog2(rate);
rate              472 drivers/rtc/rtc-m41t80.c static int m41t80_sqw_set_rate(struct clk_hw *hw, unsigned long rate,
rate              481 drivers/rtc/rtc-m41t80.c 	if (rate >= M41T80_SQW_MAX_FREQ)
rate              483 drivers/rtc/rtc-m41t80.c 	else if (rate >= M41T80_SQW_MAX_FREQ / 4)
rate              485 drivers/rtc/rtc-m41t80.c 	else if (rate)
rate              486 drivers/rtc/rtc-m41t80.c 		val = 15 - ilog2(rate);
rate              315 drivers/rtc/rtc-mxc.c 	unsigned long rate;
rate              378 drivers/rtc/rtc-mxc.c 	rate = clk_get_rate(pdata->clk_ref);
rate              380 drivers/rtc/rtc-mxc.c 	if (rate == 32768)
rate              382 drivers/rtc/rtc-mxc.c 	else if (rate == 32000)
rate              384 drivers/rtc/rtc-mxc.c 	else if (rate == 38400)
rate              387 drivers/rtc/rtc-mxc.c 		dev_err(&pdev->dev, "rtc clock is not valid (%lu)\n", rate);
rate              415 drivers/rtc/rtc-pcf8563.c static long pcf8563_clkout_round_rate(struct clk_hw *hw, unsigned long rate,
rate              421 drivers/rtc/rtc-pcf8563.c 		if (clkout_rates[i] <= rate)
rate              427 drivers/rtc/rtc-pcf8563.c static int pcf8563_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
rate              440 drivers/rtc/rtc-pcf8563.c 		if (clkout_rates[i] == rate) {
rate              635 drivers/rtc/rtc-stm32.c 	unsigned int rate;
rate              638 drivers/rtc/rtc-stm32.c 	rate = clk_get_rate(rtc->rtc_ck);
rate              645 drivers/rtc/rtc-stm32.c 		pred_s = (rate / (pred_a + 1)) - 1;
rate              647 drivers/rtc/rtc-stm32.c 		if (((pred_s + 1) * (pred_a + 1)) == rate)
rate              657 drivers/rtc/rtc-stm32.c 		pred_s = (rate / (pred_a + 1)) - 1;
rate              660 drivers/rtc/rtc-stm32.c 			 (rate < ((pred_a + 1) * (pred_s + 1))) ?
rate              736 drivers/scsi/aic7xxx/aic7xxx.h 	const char *rate;
rate             2287 drivers/scsi/aic7xxx/aic7xxx_core.c 	     syncrate->rate != NULL;
rate             2324 drivers/scsi/aic7xxx/aic7xxx_core.c 	 || (syncrate->rate == NULL)
rate             2361 drivers/scsi/aic7xxx/aic7xxx_core.c 	while (syncrate->rate != NULL) {
rate             2586 drivers/scsi/aic7xxx/aic7xxx_core.c 				       devinfo->target, syncrate->rate,
rate             2964 drivers/scsi/aic7xxx/aic7xxx_core.c 	const struct ahc_syncrate *rate;
rate             2986 drivers/scsi/aic7xxx/aic7xxx_core.c 	rate = ahc_devlimited_syncrate(ahc, tinfo, &period,
rate             3033 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc_validate_offset(ahc, tinfo, rate, &offset,
rate              579 drivers/scsi/esas2r/atioctl.h 	u8 rate;
rate              127 drivers/scsi/hisi_sas/hisi_sas_main.c 	u8 rate = 0;
rate              132 drivers/scsi/hisi_sas/hisi_sas_main.c 		rate |= 1 << (i * 2);
rate              133 drivers/scsi/hisi_sas/hisi_sas_main.c 	return rate;
rate             2176 drivers/scsi/megaraid/megaraid_sas.h 		u32 rate;
rate              164 drivers/scsi/mvsas/mv_94xx.c static void set_phy_rate(struct mvs_info *mvi, int phy_id, u8 rate)
rate              175 drivers/scsi/mvsas/mv_94xx.c 	switch (rate) {
rate             1983 drivers/scsi/myrb.c 		unsigned char *rate;
rate             1992 drivers/scsi/myrb.c 		rate = dma_alloc_coherent(&pdev->dev, sizeof(char),
rate             1994 drivers/scsi/myrb.c 		if (rate == NULL) {
rate             2008 drivers/scsi/myrb.c 		dma_free_coherent(&pdev->dev, sizeof(char), rate, rate_addr);
rate             2091 drivers/scsi/myrb.c 		unsigned char *rate;
rate             2099 drivers/scsi/myrb.c 		rate = dma_alloc_coherent(&pdev->dev, sizeof(char),
rate             2101 drivers/scsi/myrb.c 		if (rate == NULL) {
rate             2115 drivers/scsi/myrb.c 		dma_free_coherent(&pdev->dev, sizeof(char), rate, rate_addr);
rate              338 drivers/scsi/ufs/ufs-qcom.c 			       u32 hs, u32 rate, bool update_link_startup_timer)
rate              411 drivers/scsi/ufs/ufs-qcom.c 		if (rate == PA_HS_MODE_A) {
rate              420 drivers/scsi/ufs/ufs-qcom.c 		} else if (rate == PA_HS_MODE_B) {
rate              431 drivers/scsi/ufs/ufs-qcom.c 				__func__, rate);
rate               64 drivers/sh/clk/core.c 			freq = clk->parent->rate * mult / div;
rate               78 drivers/sh/clk/core.c 	unsigned long rate;
rate              107 drivers/sh/clk/core.c 		rate_error = abs(freq - rounder->rate);
rate              117 drivers/sh/clk/core.c 	if (rounder->rate >= highest)
rate              119 drivers/sh/clk/core.c 	if (rounder->rate <= lowest)
rate              139 drivers/sh/clk/core.c 			  unsigned long rate)
rate              146 drivers/sh/clk/core.c 		.rate	= rate,
rate              162 drivers/sh/clk/core.c 			      unsigned int div_max, unsigned long rate)
rate              169 drivers/sh/clk/core.c 		.rate	= rate,
rate              182 drivers/sh/clk/core.c 			       unsigned int mult_max, unsigned long rate)
rate              189 drivers/sh/clk/core.c 		.rate	= rate,
rate              197 drivers/sh/clk/core.c 			unsigned long rate)
rate              203 drivers/sh/clk/core.c 		if (pos->frequency == rate)
rate              212 drivers/sh/clk/core.c 	return clk->parent ? clk->parent->rate : 0;
rate              232 drivers/sh/clk/core.c 			clkp->rate = clkp->ops->recalc(clkp);
rate              323 drivers/sh/clk/core.c 			clkp->rate = clkp->ops->recalc(clkp);
rate              476 drivers/sh/clk/core.c 	return clk->rate;
rate              480 drivers/sh/clk/core.c int clk_set_rate(struct clk *clk, unsigned long rate)
rate              491 drivers/sh/clk/core.c 		ret = clk->ops->set_rate(clk, rate);
rate              495 drivers/sh/clk/core.c 		clk->rate = rate;
rate              500 drivers/sh/clk/core.c 		clk->rate = clk->ops->recalc(clk);
rate              530 drivers/sh/clk/core.c 				clk->rate = clk->ops->recalc(clk);
rate              532 drivers/sh/clk/core.c 				 clk, clk->parent, clk->rate);
rate              552 drivers/sh/clk/core.c long clk_round_rate(struct clk *clk, unsigned long rate)
rate              561 drivers/sh/clk/core.c 		rounded = clk->ops->round_rate(clk, rate);
rate              578 drivers/sh/clk/core.c 			unsigned long rate = clkp->rate;
rate              584 drivers/sh/clk/core.c 				clkp->ops->set_rate(clkp, rate);
rate              586 drivers/sh/clk/core.c 				clkp->rate = clkp->ops->recalc(clkp);
rate              125 drivers/sh/clk/cpg.c static long sh_clk_div_round_rate(struct clk *clk, unsigned long rate)
rate              127 drivers/sh/clk/cpg.c 	return clk_rate_table_round(clk, clk->freq_table, rate);
rate              143 drivers/sh/clk/cpg.c static int sh_clk_div_set_rate(struct clk *clk, unsigned long rate)
rate              149 drivers/sh/clk/cpg.c 	idx = clk_rate_table_find(clk, clk->freq_table, rate);
rate              168 drivers/sh/clk/cpg.c 		int ret = sh_clk_div_set_rate(clk, clk->rate);
rate              418 drivers/sh/clk/cpg.c 		return clk->parent->rate;
rate              420 drivers/sh/clk/cpg.c 	return clk->parent->rate / value;
rate              423 drivers/sh/clk/cpg.c static long fsidiv_round_rate(struct clk *clk, unsigned long rate)
rate              425 drivers/sh/clk/cpg.c 	return clk_rate_div_range_round(clk, 1, 0xffff, rate);
rate              446 drivers/sh/clk/cpg.c static int fsidiv_set_rate(struct clk *clk, unsigned long rate)
rate              450 drivers/sh/clk/cpg.c 	idx = (clk->parent->rate / rate) & 0xffff;
rate              338 drivers/slimbus/slimbus.h 	unsigned int rate;
rate              180 drivers/slimbus/stream.c static int slim_get_prate_code(int rate)
rate              185 drivers/slimbus/stream.c 		if (rate == slim_presence_rate_table[i])
rate              220 drivers/slimbus/stream.c 	rt->rate = cfg->rate;
rate              224 drivers/slimbus/stream.c 	if (cfg->rate % ctrl->a_framer->superfreq) {
rate              237 drivers/slimbus/stream.c 	rt->ratem = cfg->rate/ctrl->a_framer->superfreq;
rate              244 drivers/slimbus/stream.c 		port->ch.prrate = slim_get_prate_code(cfg->rate);
rate              208 drivers/soc/fsl/qe/qe.c int qe_setbrg(enum qe_clock brg, unsigned int rate, unsigned int multiplier)
rate              216 drivers/soc/fsl/qe/qe.c 	divisor = qe_get_brg_clk() / (rate * multiplier);
rate               19 drivers/soc/fsl/qe/usb.c int qe_usb_clock_set(enum qe_clock clk, int rate)
rate               42 drivers/soc/fsl/qe/usb.c 		qe_setbrg(clk, rate, 1);
rate              325 drivers/soc/tegra/pmc.c 	unsigned long rate;
rate             1187 drivers/soc/tegra/pmc.c 	unsigned long rate, value;
rate             1195 drivers/soc/tegra/pmc.c 		rate = clk_get_rate(pmc->clk);
rate             1196 drivers/soc/tegra/pmc.c 		if (!rate) {
rate             1204 drivers/soc/tegra/pmc.c 		value = DIV_ROUND_UP(1000000000, rate);
rate             1435 drivers/soc/tegra/pmc.c 	unsigned long long rate = 0;
rate             1440 drivers/soc/tegra/pmc.c 		rate = 32768;
rate             1444 drivers/soc/tegra/pmc.c 		rate = clk_get_rate(pmc->clk);
rate             1451 drivers/soc/tegra/pmc.c 	if (WARN_ON_ONCE(rate == 0))
rate             1452 drivers/soc/tegra/pmc.c 		rate = 100000000;
rate             1454 drivers/soc/tegra/pmc.c 	if (rate != pmc->rate) {
rate             1457 drivers/soc/tegra/pmc.c 		ticks = pmc->cpu_good_time * rate + USEC_PER_SEC - 1;
rate             1461 drivers/soc/tegra/pmc.c 		ticks = pmc->cpu_off_time * rate + USEC_PER_SEC - 1;
rate             1467 drivers/soc/tegra/pmc.c 		pmc->rate = rate;
rate             1137 drivers/soundwire/stream.c 	if (stream->params.rate &&
rate             1138 drivers/soundwire/stream.c 	    stream->params.rate != stream_config->frame_rate) {
rate             1150 drivers/soundwire/stream.c 	stream->params.rate = stream_config->frame_rate;
rate             1478 drivers/soundwire/stream.c 		if ((prop->max_clk_freq % stream->params.rate) != 0) {
rate             1485 drivers/soundwire/stream.c 		bus->params.bandwidth += m_rt->stream->params.rate *
rate             1726 drivers/soundwire/stream.c 		bus->params.bandwidth -= m_rt->stream->params.rate *
rate              142 drivers/spi/spi-ath79.c 	unsigned long rate;
rate              187 drivers/spi/spi-ath79.c 	rate = DIV_ROUND_UP(clk_get_rate(sp->clk), MHZ);
rate              188 drivers/spi/spi-ath79.c 	if (!rate) {
rate              193 drivers/spi/spi-ath79.c 	sp->rrw_delay = ATH79_SPI_RRW_DELAY_FACTOR / rate;
rate              337 drivers/spi/spi-bcm63xx-hsspi.c 	u32 reg, rate, num_cs = HSSPI_SPI_MAX_CS;
rate              356 drivers/spi/spi-bcm63xx-hsspi.c 	rate = clk_get_rate(clk);
rate              357 drivers/spi/spi-bcm63xx-hsspi.c 	if (!rate) {
rate              369 drivers/spi/spi-bcm63xx-hsspi.c 		rate = clk_get_rate(pll_clk);
rate              370 drivers/spi/spi-bcm63xx-hsspi.c 		if (!rate) {
rate              387 drivers/spi/spi-bcm63xx-hsspi.c 	bs->speed_hz = rate;
rate              112 drivers/spi/spi-ep93xx.c 				    u32 rate, u8 *div_cpsr, u8 *div_scr)
rate              122 drivers/spi/spi-ep93xx.c 	rate = clamp(rate, master->min_speed_hz, master->max_speed_hz);
rate              134 drivers/spi/spi-ep93xx.c 			if ((spi_clk_rate / (cpsr * (scr + 1))) <= rate) {
rate              516 drivers/spi/spi-fsl-qspi.c 	unsigned long rate = spi->max_speed_hz;
rate              523 drivers/spi/spi-fsl-qspi.c 		rate *= 4;
rate              527 drivers/spi/spi-fsl-qspi.c 	ret = clk_set_rate(q->clk, rate);
rate              506 drivers/spi/spi-meson-spicc.c 	int ret, irq, rate;
rate              549 drivers/spi/spi-meson-spicc.c 	rate = clk_get_rate(spicc->core);
rate              561 drivers/spi/spi-meson-spicc.c 	master->min_speed_hz = rate >> 9;
rate              569 drivers/spi/spi-meson-spicc.c 	if ((rate >> 2) > SPICC_MAX_FREQ)
rate              572 drivers/spi/spi-meson-spicc.c 		master->max_speed_hz = rate >> 2;
rate              290 drivers/spi/spi-meson-spifc.c 	unsigned int rate;
rate              328 drivers/spi/spi-meson-spifc.c 	rate = clk_get_rate(spifc->clk);
rate              335 drivers/spi/spi-meson-spifc.c 	master->min_speed_hz = rate >> 6;
rate              336 drivers/spi/spi-meson-spifc.c 	master->max_speed_hz = rate >> 1;
rate              104 drivers/spi/spi-mt7621.c 	u32 rate;
rate              109 drivers/spi/spi-mt7621.c 	rate = DIV_ROUND_UP(rs->sys_freq, speed);
rate              110 drivers/spi/spi-mt7621.c 	dev_dbg(&spi->dev, "rate-1:%u\n", rate);
rate              112 drivers/spi/spi-mt7621.c 	if (rate > 4097)
rate              115 drivers/spi/spi-mt7621.c 	if (rate < 2)
rate              116 drivers/spi/spi-mt7621.c 		rate = 2;
rate              120 drivers/spi/spi-mt7621.c 	reg |= (rate - 2) << MASTER_RS_CLK_SEL_SHIFT;
rate              606 drivers/spi/spi-nxp-fspi.c 	unsigned long rate = spi->max_speed_hz;
rate              633 drivers/spi/spi-nxp-fspi.c 	ret = clk_set_rate(f->clk, rate);
rate              315 drivers/spi/spi-omap-uwire.c 	unsigned long		rate;
rate              345 drivers/spi/spi-omap-uwire.c 	rate = clk_get_rate(uwire->ck);
rate              375 drivers/spi/spi-omap-uwire.c 		div2 = (rate / div1 + hz - 1) / hz;
rate              381 drivers/spi/spi-omap-uwire.c 			dev_name(&spi->dev), rate / 10 / 8, hz);
rate              392 drivers/spi/spi-omap-uwire.c 	rate /= div1;
rate              399 drivers/spi/spi-omap-uwire.c 		rate /= 2;
rate              404 drivers/spi/spi-omap-uwire.c 		rate /= 4;
rate              411 drivers/spi/spi-omap-uwire.c 		rate /= 8;
rate              418 drivers/spi/spi-omap-uwire.c 			rate / 1000);
rate              136 drivers/spi/spi-orion.c 	u32 rate;
rate              209 drivers/spi/spi-orion.c 		rate = DIV_ROUND_UP(tclk_hz, speed);
rate              210 drivers/spi/spi-orion.c 		rate = roundup(rate, 2);
rate              213 drivers/spi/spi-orion.c 		if (rate > 30)
rate              216 drivers/spi/spi-orion.c 		if (rate < 4)
rate              217 drivers/spi/spi-orion.c 			rate = 4;
rate              220 drivers/spi/spi-orion.c 		prescale = 0x10 + rate/2;
rate             1734 drivers/spi/spi-pl022.c static inline u32 spi_rate(u32 rate, u16 cpsdvsr, u16 scr)
rate             1736 drivers/spi/spi-pl022.c 	return rate / (cpsdvsr * (1 + scr));
rate             1744 drivers/spi/spi-pl022.c 	u32 rate, max_tclk, min_tclk, best_freq = 0, best_cpsdvsr = 0,
rate             1747 drivers/spi/spi-pl022.c 	rate = clk_get_rate(pl022->clk);
rate             1749 drivers/spi/spi-pl022.c 	max_tclk = spi_rate(rate, CPSDVR_MIN, SCR_MIN);
rate             1751 drivers/spi/spi-pl022.c 	min_tclk = spi_rate(rate, CPSDVR_MAX, SCR_MAX);
rate             1771 drivers/spi/spi-pl022.c 			tmp = spi_rate(rate, cpsdvsr, scr);
rate              805 drivers/spi/spi-pxa2xx.c static unsigned int quark_x1000_get_clk_div(int rate, u32 *dds)
rate              824 drivers/spi/spi-pxa2xx.c 	q1 = DIV_ROUND_UP(fref1, rate);
rate              845 drivers/spi/spi-pxa2xx.c 	r1 = abs(fref1 / (1 << (24 - fls_long(mul))) / q1 - rate);
rate              849 drivers/spi/spi-pxa2xx.c 	q2 = DIV_ROUND_UP(fref2, rate);
rate              850 drivers/spi/spi-pxa2xx.c 	r2 = abs(fref2 / q2 - rate);
rate              869 drivers/spi/spi-pxa2xx.c 	if (fref / rate >= 80) {
rate              874 drivers/spi/spi-pxa2xx.c 		q1 = DIV_ROUND_UP(fref, rate);
rate              880 drivers/spi/spi-pxa2xx.c 		r1 = abs(fssp - rate);
rate              894 drivers/spi/spi-pxa2xx.c static unsigned int ssp_get_clk_div(struct driver_data *drv_data, int rate)
rate              899 drivers/spi/spi-pxa2xx.c 	rate = min_t(int, ssp_clk, rate);
rate              906 drivers/spi/spi-pxa2xx.c 		return (DIV_ROUND_UP(ssp_clk, 2 * rate) - 1) & 0xff;
rate              908 drivers/spi/spi-pxa2xx.c 		return (DIV_ROUND_UP(ssp_clk, rate) - 1)  & 0xfff;
rate              912 drivers/spi/spi-pxa2xx.c 					   int rate)
rate              920 drivers/spi/spi-pxa2xx.c 		clk_div = quark_x1000_get_clk_div(rate, &chip->dds_rate);
rate              923 drivers/spi/spi-pxa2xx.c 		clk_div = ssp_get_clk_div(drv_data, rate);
rate              102 drivers/spi/spi-sh-hspi.c 	u32 rate, best_rate, min, tmp;
rate              111 drivers/spi/spi-sh-hspi.c 		rate = clk_get_rate(hspi->clk);
rate              115 drivers/spi/spi-sh-hspi.c 			rate /= 128;
rate              117 drivers/spi/spi-sh-hspi.c 			rate /= 16;
rate              120 drivers/spi/spi-sh-hspi.c 		rate /= (((idiv_clk & 0x1F) + 1) * 2);
rate              123 drivers/spi/spi-sh-hspi.c 		tmp = abs(t->speed_hz - rate);
rate              127 drivers/spi/spi-sh-hspi.c 			best_rate = rate;
rate              234 drivers/spi/spi-synquacer.c 	u32 rate, val, div;
rate              266 drivers/spi/spi-synquacer.c 	rate = master->max_speed_hz;
rate              268 drivers/spi/spi-synquacer.c 	div = DIV_ROUND_UP(rate, speed);
rate              268 drivers/ssb/driver_mipscore.c 	u32 pll_type, n, m, rate = 0;
rate              281 drivers/ssb/driver_mipscore.c 		rate = 200000000;
rate              283 drivers/ssb/driver_mipscore.c 		rate = ssb_calc_clock_rate(pll_type, n, m);
rate              287 drivers/ssb/driver_mipscore.c 		rate *= 2;
rate              290 drivers/ssb/driver_mipscore.c 	return rate;
rate              939 drivers/ssb/main.c 	u32 rate;
rate              956 drivers/ssb/main.c 		rate = 100000000;
rate              958 drivers/ssb/main.c 		rate = ssb_calc_clock_rate(plltype, clkctl_n, clkctl_m);
rate              960 drivers/ssb/main.c 			rate /= 2;
rate              963 drivers/ssb/main.c 	return rate;
rate              135 drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c 	unsigned long rate;
rate              178 drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c 	rate = clk_get_rate(clk_wzrd->axi_clk);
rate              179 drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c 	if (rate > WZRD_ACLK_MAX_FREQ) {
rate              181 drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c 			rate);
rate              261 drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h 	__le32 rate;
rate              280 drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h 	__le32 rate;
rate              385 drivers/staging/fsl-dpaa2/ethsw/dpsw.c 	cmd_params->rate = cpu_to_le32(cfg->rate);
rate              427 drivers/staging/fsl-dpaa2/ethsw/dpsw.c 	state->rate = le32_to_cpu(rsp_params->rate);
rate              211 drivers/staging/fsl-dpaa2/ethsw/dpsw.h 	u32 rate;
rate              227 drivers/staging/fsl-dpaa2/ethsw/dpsw.h 	u32 rate;
rate               80 drivers/staging/fsl-dpaa2/ethsw/ethsw-ethtool.c 	link_ksettings->base.speed = state.rate;
rate              108 drivers/staging/fsl-dpaa2/ethsw/ethsw-ethtool.c 	cfg.rate = link_ksettings->base.speed;
rate               13 drivers/staging/greybus/audio_apbridgea.c 				  __u16 i2s_port, __u32 format, __u32 rate,
rate               21 drivers/staging/greybus/audio_apbridgea.c 	req.rate = cpu_to_le32(rate);
rate               74 drivers/staging/greybus/audio_apbridgea.h 	__le32				rate;	/* AUDIO_APBRIDGEA_PCM_RATE_* */
rate               50 drivers/staging/greybus/audio_codec.c 	u32 format, rate;
rate               89 drivers/staging/greybus/audio_codec.c 		rate = params->rate;
rate               93 drivers/staging/greybus/audio_codec.c 					  format, rate, channels, sig_bits);
rate              185 drivers/staging/greybus/audio_codec.c 	u32 format, rate;
rate              224 drivers/staging/greybus/audio_codec.c 		rate = params->rate;
rate              228 drivers/staging/greybus/audio_codec.c 					  format, rate, channels, sig_bits);
rate              415 drivers/staging/greybus/audio_codec.c 	u32 format, rate;
rate              448 drivers/staging/greybus/audio_codec.c 	rate = GB_AUDIO_PCM_RATE_48000;
rate              505 drivers/staging/greybus/audio_codec.c 	params->rate = rate;
rate               57 drivers/staging/greybus/audio_codec.h 	u32 format, rate;
rate              188 drivers/staging/greybus/audio_codec.h 			u32 *rate, u8 *channels,
rate              192 drivers/staging/greybus/audio_codec.h 			u32 rate, u8 channels,
rate              208 drivers/staging/greybus/audio_codec.h 				  __u32 rate, __u32 mclk_freq);
rate              108 drivers/staging/greybus/audio_gb.c 			u32 *format, u32 *rate, u8 *channels,
rate              123 drivers/staging/greybus/audio_gb.c 	*rate = le32_to_cpu(resp.rate);
rate              132 drivers/staging/greybus/audio_gb.c 			u32 format, u32 rate, u8 channels,
rate              139 drivers/staging/greybus/audio_gb.c 	req.rate = cpu_to_le32(rate);
rate               44 drivers/staging/greybus/uart.c 	__le32	rate;
rate              501 drivers/staging/greybus/uart.c 	newline.rate = cpu_to_le32(tty_get_baud_rate(tty));
rate              528 drivers/staging/greybus/uart.c 		newline.rate = gb_tty->line_coding.rate;
rate              898 drivers/staging/greybus/uart.c 	gb_tty->line_coding.rate = cpu_to_le32(9600);
rate              211 drivers/staging/isdn/gigaset/usb-gigaset.c 	u32 rate;
rate              216 drivers/staging/isdn/gigaset/usb-gigaset.c 	case    B300: rate =     300; break;
rate              217 drivers/staging/isdn/gigaset/usb-gigaset.c 	case    B600: rate =     600; break;
rate              218 drivers/staging/isdn/gigaset/usb-gigaset.c 	case   B1200: rate =    1200; break;
rate              219 drivers/staging/isdn/gigaset/usb-gigaset.c 	case   B2400: rate =    2400; break;
rate              220 drivers/staging/isdn/gigaset/usb-gigaset.c 	case   B4800: rate =    4800; break;
rate              221 drivers/staging/isdn/gigaset/usb-gigaset.c 	case   B9600: rate =    9600; break;
rate              222 drivers/staging/isdn/gigaset/usb-gigaset.c 	case  B19200: rate =   19200; break;
rate              223 drivers/staging/isdn/gigaset/usb-gigaset.c 	case  B38400: rate =   38400; break;
rate              224 drivers/staging/isdn/gigaset/usb-gigaset.c 	case  B57600: rate =   57600; break;
rate              225 drivers/staging/isdn/gigaset/usb-gigaset.c 	case B115200: rate =  115200; break;
rate              227 drivers/staging/isdn/gigaset/usb-gigaset.c 		rate =  9600;
rate              232 drivers/staging/isdn/gigaset/usb-gigaset.c 	val = 0x383fff / rate + 1;
rate              516 drivers/staging/ks7010/ks_hostif.h static inline bool is_11b_rate(u8 rate)
rate              518 drivers/staging/ks7010/ks_hostif.h 	return (((rate & RATE_MASK) == TX_RATE_1M) ||
rate              519 drivers/staging/ks7010/ks_hostif.h 		((rate & RATE_MASK) == TX_RATE_2M) ||
rate              520 drivers/staging/ks7010/ks_hostif.h 		((rate & RATE_MASK) == TX_RATE_5M) ||
rate              521 drivers/staging/ks7010/ks_hostif.h 		((rate & RATE_MASK) == TX_RATE_11M));
rate              524 drivers/staging/ks7010/ks_hostif.h static inline bool is_ofdm_rate(u8 rate)
rate              526 drivers/staging/ks7010/ks_hostif.h 	return (((rate & RATE_MASK) == TX_RATE_6M)  ||
rate              527 drivers/staging/ks7010/ks_hostif.h 		((rate & RATE_MASK) == TX_RATE_12M) ||
rate              528 drivers/staging/ks7010/ks_hostif.h 		((rate & RATE_MASK) == TX_RATE_24M) ||
rate              529 drivers/staging/ks7010/ks_hostif.h 		((rate & RATE_MASK) == TX_RATE_9M)  ||
rate              530 drivers/staging/ks7010/ks_hostif.h 		((rate & RATE_MASK) == TX_RATE_18M) ||
rate              531 drivers/staging/ks7010/ks_hostif.h 		((rate & RATE_MASK) == TX_RATE_36M) ||
rate              532 drivers/staging/ks7010/ks_hostif.h 		((rate & RATE_MASK) == TX_RATE_48M) ||
rate              533 drivers/staging/ks7010/ks_hostif.h 		((rate & RATE_MASK) == TX_RATE_54M));
rate              536 drivers/staging/ks7010/ks_hostif.h static inline bool is_11bg_rate(u8 rate)
rate              538 drivers/staging/ks7010/ks_hostif.h 	return (is_11b_rate(rate) || is_ofdm_rate(rate));
rate              541 drivers/staging/ks7010/ks_hostif.h static inline bool is_ofdm_ext_rate(u8 rate)
rate              543 drivers/staging/ks7010/ks_hostif.h 	return (((rate & RATE_MASK) == TX_RATE_9M)  ||
rate              544 drivers/staging/ks7010/ks_hostif.h 		((rate & RATE_MASK) == TX_RATE_18M) ||
rate              545 drivers/staging/ks7010/ks_hostif.h 		((rate & RATE_MASK) == TX_RATE_36M) ||
rate              546 drivers/staging/ks7010/ks_hostif.h 		((rate & RATE_MASK) == TX_RATE_48M) ||
rate              547 drivers/staging/ks7010/ks_hostif.h 		((rate & RATE_MASK) == TX_RATE_54M));
rate               75 drivers/staging/rtl8188eu/core/rtw_ieee80211.c bool rtw_is_cckrates_included(u8 *rate)
rate               77 drivers/staging/rtl8188eu/core/rtw_ieee80211.c 	while (*rate) {
rate               78 drivers/staging/rtl8188eu/core/rtw_ieee80211.c 		u8 r = *rate & 0x7f;
rate               82 drivers/staging/rtl8188eu/core/rtw_ieee80211.c 		rate++;
rate               88 drivers/staging/rtl8188eu/core/rtw_ieee80211.c bool rtw_is_cckratesonly_included(u8 *rate)
rate               90 drivers/staging/rtl8188eu/core/rtw_ieee80211.c 	while (*rate) {
rate               91 drivers/staging/rtl8188eu/core/rtw_ieee80211.c 		u8 r = *rate & 0x7f;
rate               95 drivers/staging/rtl8188eu/core/rtw_ieee80211.c 		rate++;
rate              101 drivers/staging/rtl8188eu/core/rtw_ieee80211.c int rtw_check_network_type(unsigned char *rate, int ratelen, int channel)
rate              104 drivers/staging/rtl8188eu/core/rtw_ieee80211.c 	if (rtw_is_cckratesonly_included(rate))
rate              106 drivers/staging/rtl8188eu/core/rtw_ieee80211.c 	else if (rtw_is_cckrates_included(rate))
rate              538 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 	u16 rate = 0, max_rate = 0;
rate              572 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 			rate = pcur_bss->SupportedRates[i] & 0x7F;
rate              573 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 			if (rate > max_rate)
rate              574 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 				max_rate = rate;
rate              181 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c void update_mgnt_tx_rate(struct adapter *padapter, u8 rate)
rate              185 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 	pmlmeext->tx_rate = rate;
rate              186 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 	DBG_88E("%s(): rate = %x\n", __func__, rate);
rate               56 drivers/staging/rtl8188eu/core/rtw_wlan_util.c bool cckrates_included(unsigned char *rate, int ratelen)
rate               61 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 		u8 r = rate[i] & 0x7f;
rate               69 drivers/staging/rtl8188eu/core/rtw_wlan_util.c bool cckratesonly_included(unsigned char *rate, int ratelen)
rate               74 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 		u8 r = rate[i] & 0x7f;
rate              105 drivers/staging/rtl8188eu/core/rtw_wlan_util.c u8 judge_network_type(struct adapter *padapter, unsigned char *rate, int ratelen)
rate              114 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 	if (cckratesonly_included(rate, ratelen))
rate              116 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 	else if (cckrates_included(rate, ratelen))
rate              124 drivers/staging/rtl8188eu/core/rtw_wlan_util.c static unsigned char ratetbl_val_2wifirate(unsigned char rate)
rate              126 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 	switch (rate & 0x7f) {
rate              156 drivers/staging/rtl8188eu/core/rtw_wlan_util.c static bool is_basicrate(struct adapter *padapter, unsigned char rate)
rate              166 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 			if (rate == ratetbl_val_2wifirate(val))
rate              176 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 	unsigned char rate;
rate              181 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 		rate = pmlmeext->datarate[i];
rate              183 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 		switch (rate) {
rate              189 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 			rate = ratetbl_val_2wifirate(rate);
rate              191 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 			if (is_basicrate(padapter, rate))
rate              192 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 				rate |= IEEE80211_BASIC_RATE_MASK;
rate              194 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 			rateset[len] = rate;
rate              214 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 	u8 rate;
rate              218 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 		rate = mbrate[i] & 0x7f;
rate              219 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 		switch (rate) {
rate              236 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 	u8 rate;
rate              239 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 		rate = bssrateset[i] & 0x7f;
rate              240 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 		switch (rate) {
rate             1072 drivers/staging/rtl8188eu/core/rtw_wlan_util.c static int wifirate2_ratetbl_inx(unsigned char rate)
rate             1074 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 	rate = rate & 0x7f;
rate             1076 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 	switch (rate) {
rate             1359 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 	unsigned char *rate = cur_network->SupportedRates;
rate             1369 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 	if (cckratesonly_included(rate, ratelen))
rate             1371 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 	else if (cckrates_included(rate, ratelen))
rate               73 drivers/staging/rtl8188eu/hal/hal_com.c u8 MRateToHwRate(u8 rate)
rate               77 drivers/staging/rtl8188eu/hal/hal_com.c 	switch (rate) {
rate              145 drivers/staging/rtl8188eu/include/hal_com.h u8 MRateToHwRate(u8 rate);
rate              764 drivers/staging/rtl8188eu/include/ieee80211.h bool rtw_is_cckrates_included(u8 *rate);
rate              766 drivers/staging/rtl8188eu/include/ieee80211.h bool rtw_is_cckratesonly_included(u8 *rate);
rate              768 drivers/staging/rtl8188eu/include/ieee80211.h int rtw_check_network_type(unsigned char *rate, int ratelen, int channel);
rate              453 drivers/staging/rtl8188eu/include/rtw_mlme_ext.h u8 judge_network_type(struct adapter *padapter, unsigned char *rate, int len);
rate              541 drivers/staging/rtl8188eu/include/rtw_mlme_ext.h void update_mgnt_tx_rate(struct adapter *padapter, u8 rate);
rate              573 drivers/staging/rtl8188eu/include/rtw_mlme_ext.h bool cckrates_included(unsigned char *rate, int ratelen);
rate              574 drivers/staging/rtl8188eu/include/rtw_mlme_ext.h bool cckratesonly_included(unsigned char *rate, int ratelen);
rate              142 drivers/staging/rtl8188eu/include/rtw_xmit.h 	u8	rate;
rate              103 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c 	u16 max_rate = 0, rate, ht_cap = false;
rate              205 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c 		rate = pnetwork->network.SupportedRates[i]&0x7F;
rate              206 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c 		if (rate > max_rate)
rate              207 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c 			max_rate = rate;
rate              209 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c 			      "%d%s ", rate >> 1, (rate & 1) ? ".5" : "");
rate             1017 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c static u8 _rtl92e_rate_mgn_to_hw(u8 rate)
rate             1021 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	switch (rate) {
rate             1312 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c static u8 _rtl92e_rate_hw_to_mgn(bool bIsHT, u8 rate)
rate             1317 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 		switch (rate) {
rate             1358 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 				 rate, bIsHT);
rate             1363 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 		switch (rate) {
rate             1419 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 				 rate, bIsHT);
rate             1910 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	switch (pstats->rate) {
rate             2038 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	stats->rate = _rtl92e_rate_hw_to_mgn((bool)pDrvInfo->RxHT,
rate               79 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 				   int rate);
rate              918 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	priv->rtllib->rate = 110;
rate             1598 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 				   int rate)
rate             2013 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		.rate = 0,
rate              572 drivers/staging/rtl8192e/rtllib.h 	u16 rate; /* in 100 kbps */
rate             1565 drivers/staging/rtl8192e/rtllib.h 	int rate;       /* current rate */
rate             1717 drivers/staging/rtl8192e/rtllib.h 			       struct net_device *dev, int rate);
rate             1901 drivers/staging/rtl8192e/rtllib.h static inline int rtllib_is_ofdm_rate(u8 rate)
rate             1903 drivers/staging/rtl8192e/rtllib.h 	switch (rate & ~RTLLIB_BASIC_RATE_MASK) {
rate             1917 drivers/staging/rtl8192e/rtllib.h static inline int rtllib_is_cck_rate(u8 rate)
rate             1919 drivers/staging/rtl8192e/rtllib.h 	switch (rate & ~RTLLIB_BASIC_RATE_MASK) {
rate              181 drivers/staging/rtl8192e/rtllib_softmac.c 	u8 rate;
rate              184 drivers/staging/rtl8192e/rtllib_softmac.c 		rate = 0x0c;
rate              186 drivers/staging/rtl8192e/rtllib_softmac.c 		rate = ieee->basic_rate & 0x7f;
rate              188 drivers/staging/rtl8192e/rtllib_softmac.c 	if (rate == 0) {
rate              192 drivers/staging/rtl8192e/rtllib_softmac.c 			rate = 0x0c;
rate              194 drivers/staging/rtl8192e/rtllib_softmac.c 			rate = 0x02;
rate              197 drivers/staging/rtl8192e/rtllib_softmac.c 	return rate;
rate             1523 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->rate = 108;
rate             1524 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev, "Using G rates:%d\n", ieee->rate);
rate             1526 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->rate = 22;
rate             1528 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev, "Using B rates:%d\n", ieee->rate);
rate             1727 drivers/staging/rtl8192e/rtllib_softmac.c 					ieee->rate = 108;
rate             1733 drivers/staging/rtl8192e/rtllib_softmac.c 					ieee->rate = 22;
rate             2488 drivers/staging/rtl8192e/rtllib_softmac.c 					ieee->dev, ieee->rate);
rate             2657 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->rate = 108;
rate             2660 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->rate = 22;
rate             2984 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->rate = 22;
rate              234 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	ieee->rate = target_rate/100000;
rate              540 drivers/staging/rtl8192e/rtllib_tx.c 		return ieee->rate;
rate              545 drivers/staging/rtl8192e/rtllib_tx.c 		return ieee->rate & 0x7F;
rate               45 drivers/staging/rtl8192e/rtllib_wx.c 	u16 max_rate, rate;
rate              122 drivers/staging/rtl8192e/rtllib_wx.c 			rate = network->rates_ex[j++] & 0x7F;
rate              124 drivers/staging/rtl8192e/rtllib_wx.c 			rate = network->rates[i++] & 0x7F;
rate              125 drivers/staging/rtl8192e/rtllib_wx.c 		if (rate > max_rate)
rate              126 drivers/staging/rtl8192e/rtllib_wx.c 			max_rate = rate;
rate              128 drivers/staging/rtl8192e/rtllib_wx.c 			      "%d%s ", rate >> 1, (rate & 1) ? ".5" : "");
rate              131 drivers/staging/rtl8192e/rtllib_wx.c 		rate = network->rates_ex[j] & 0x7F;
rate              133 drivers/staging/rtl8192e/rtllib_wx.c 			      "%d%s ", rate >> 1, (rate & 1) ? ".5" : "");
rate              134 drivers/staging/rtl8192e/rtllib_wx.c 		if (rate > max_rate)
rate              135 drivers/staging/rtl8192e/rtllib_wx.c 			max_rate = rate;
rate              156 drivers/staging/rtl8192e/rtllib_wx.c 		rate = MCS_DATA_RATE[is40M][isShortGI][max_mcs & 0x7f];
rate              157 drivers/staging/rtl8192e/rtllib_wx.c 		if (rate > max_rate)
rate              158 drivers/staging/rtl8192e/rtllib_wx.c 			max_rate = rate;
rate              692 drivers/staging/rtl8192u/ieee80211/ieee80211.h 	u16 rate; /* in 100 kbps */
rate             1771 drivers/staging/rtl8192u/ieee80211/ieee80211.h 	int rate;       /* current rate */
rate             1935 drivers/staging/rtl8192u/ieee80211/ieee80211.h 			       struct net_device *dev, int rate);
rate             2141 drivers/staging/rtl8192u/ieee80211/ieee80211.h static inline int ieee80211_is_ofdm_rate(u8 rate)
rate             2143 drivers/staging/rtl8192u/ieee80211/ieee80211.h 	switch (rate & ~IEEE80211_BASIC_RATE_MASK) {
rate             2157 drivers/staging/rtl8192u/ieee80211/ieee80211.h static inline int ieee80211_is_cck_rate(u8 rate)
rate             2159 drivers/staging/rtl8192u/ieee80211/ieee80211.h 	switch (rate & ~IEEE80211_BASIC_RATE_MASK) {
rate              180 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	u8 rate;
rate              184 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		rate = 0x0c;
rate              186 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		rate = ieee->basic_rate & 0x7f;
rate              188 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (rate == 0) {
rate              193 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			rate = 0x0c;
rate              195 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			rate = 0x02;
rate              207 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	return rate;
rate             1276 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->rate = 108;
rate             1277 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		printk(KERN_INFO"Using G rates:%d\n", ieee->rate);
rate             1279 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->rate = 22;
rate             1280 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		printk(KERN_INFO"Using B rates:%d\n", ieee->rate);
rate             1422 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 					ieee->rate = 108;
rate             1426 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 					ieee->rate = 22;
rate             2065 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 							   ieee->dev, ieee->rate);
rate             2088 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 							   ieee->dev, ieee->rate);
rate             2277 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->rate = 108;
rate             2280 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->rate = 22;
rate             2559 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->rate = 22;
rate              223 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	ieee->rate = target_rate / 100000;
rate              812 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			tcb_desc->data_rate = CURRENT_RATE(ieee->mode, ieee->rate, ieee->HTCurrentOperaRate);
rate               50 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	u16 max_rate, rate;
rate              117 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			rate = network->rates_ex[j++] & 0x7F;
rate              119 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			rate = network->rates[i++] & 0x7F;
rate              120 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		if (rate > max_rate)
rate              121 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			max_rate = rate;
rate              123 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			      "%d%s ", rate >> 1, (rate & 1) ? ".5" : "");
rate              126 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		rate = network->rates_ex[j] & 0x7F;
rate              128 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			      "%d%s ", rate >> 1, (rate & 1) ? ".5" : "");
rate              129 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		if (rate > max_rate)
rate              130 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			max_rate = rate;
rate              147 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		rate = MCS_DATA_RATE[is40M][isShortGI][max_mcs & 0x7f];
rate              148 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		if (rate > max_rate)
rate              149 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			max_rate = rate;
rate              266 drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h #define		IS_11N_MCS_RATE(rate)		(rate & 0x80)
rate              920 drivers/staging/rtl8192u/r8192U_core.c 				   int rate)
rate             1291 drivers/staging/rtl8192u/r8192U_core.c static u8 MRateToHwRate8190Pci(u8 rate)
rate             1295 drivers/staging/rtl8192u/r8192U_core.c 	switch (rate) {
rate             2111 drivers/staging/rtl8192u/r8192U_core.c 	priv->ieee80211->rate = 110; /* 11 mbps */
rate             3630 drivers/staging/rtl8192u/r8192U_core.c static u8 HwRateToMRate90(bool bIsHT, u8 rate)
rate             3635 drivers/staging/rtl8192u/r8192U_core.c 		switch (rate) {
rate             3677 drivers/staging/rtl8192u/r8192U_core.c 				 __func__, rate, bIsHT);
rate             3682 drivers/staging/rtl8192u/r8192U_core.c 		switch (rate) {
rate             3739 drivers/staging/rtl8192u/r8192U_core.c 				 __func__, rate, bIsHT);
rate             4404 drivers/staging/rtl8192u/r8192U_core.c 	switch (stats->rate) {
rate             4556 drivers/staging/rtl8192u/r8192U_core.c 				stats->rate = MGN_1M;
rate             4558 drivers/staging/rtl8192u/r8192U_core.c 				stats->rate = ret_rate;
rate             4561 drivers/staging/rtl8192u/r8192U_core.c 			stats->rate = 0x02;
rate             4604 drivers/staging/rtl8192u/r8192U_core.c 		.rate = 0,
rate             4710 drivers/staging/rtl8192u/r8192U_core.c 		.rate = 0,
rate              351 drivers/staging/rtl8192u/r819xU_cmdpkt.c 	priv->stats.last_packet_rate	= pstx_status->rate;
rate              126 drivers/staging/rtl8192u/r819xU_cmdpkt.h 	u8	rate;
rate               61 drivers/staging/rtl8712/ieee80211.c uint r8712_is_cckrates_included(u8 *rate)
rate               65 drivers/staging/rtl8712/ieee80211.c 	while (rate[i] != 0) {
rate               66 drivers/staging/rtl8712/ieee80211.c 		if ((((rate[i]) & 0x7f) == 2) || (((rate[i]) & 0x7f) == 4) ||
rate               67 drivers/staging/rtl8712/ieee80211.c 		    (((rate[i]) & 0x7f) == 11) || (((rate[i]) & 0x7f) == 22))
rate               74 drivers/staging/rtl8712/ieee80211.c uint r8712_is_cckratesonly_included(u8 *rate)
rate               78 drivers/staging/rtl8712/ieee80211.c 	while (rate[i] != 0) {
rate               79 drivers/staging/rtl8712/ieee80211.c 		if ((((rate[i]) & 0x7f) != 2) && (((rate[i]) & 0x7f) != 4) &&
rate               80 drivers/staging/rtl8712/ieee80211.c 		    (((rate[i]) & 0x7f) != 11)  && (((rate[i]) & 0x7f) != 22))
rate              391 drivers/staging/rtl8712/ieee80211.h 	u16 rate; /* in 100 kbps */
rate              743 drivers/staging/rtl8712/ieee80211.h uint r8712_is_cckrates_included(u8 *rate);
rate              744 drivers/staging/rtl8712/ieee80211.h uint r8712_is_cckratesonly_included(u8 *rate);
rate             1402 drivers/staging/rtl8712/rtl871x_ioctl_linux.c 	u16 rate, max_rate = 0, ht_cap = false;
rate             1424 drivers/staging/rtl8712/rtl871x_ioctl_linux.c 		rate = pcur_bss->rates[i] & 0x7F;
rate             1425 drivers/staging/rtl8712/rtl871x_ioctl_linux.c 		if (rate > max_rate)
rate             1426 drivers/staging/rtl8712/rtl871x_ioctl_linux.c 			max_rate = rate;
rate             1428 drivers/staging/rtl8712/rtl871x_ioctl_linux.c 		wrqu->bitrate.value = rate * 500000;
rate               69 drivers/staging/rtl8723bs/core/rtw_ieee80211.c bool rtw_is_cckrates_included(u8 *rate)
rate               71 drivers/staging/rtl8723bs/core/rtw_ieee80211.c 	while (*rate) {
rate               72 drivers/staging/rtl8723bs/core/rtw_ieee80211.c 		u8 r = *rate & 0x7f;
rate               76 drivers/staging/rtl8723bs/core/rtw_ieee80211.c 		rate++;
rate               82 drivers/staging/rtl8723bs/core/rtw_ieee80211.c bool rtw_is_cckratesonly_included(u8 *rate)
rate               84 drivers/staging/rtl8723bs/core/rtw_ieee80211.c 	while (*rate) {
rate               85 drivers/staging/rtl8723bs/core/rtw_ieee80211.c 		u8 r = *rate & 0x7f;
rate               89 drivers/staging/rtl8723bs/core/rtw_ieee80211.c 		rate++;
rate               95 drivers/staging/rtl8723bs/core/rtw_ieee80211.c int rtw_check_network_type(unsigned char *rate, int ratelen, int channel)
rate               98 drivers/staging/rtl8723bs/core/rtw_ieee80211.c 		if (rtw_is_cckrates_included(rate))
rate              103 drivers/staging/rtl8723bs/core/rtw_ieee80211.c 		if (rtw_is_cckratesonly_included(rate))
rate              105 drivers/staging/rtl8723bs/core/rtw_ieee80211.c 		else if (rtw_is_cckrates_included(rate))
rate              640 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 	u16 rate = 0, max_rate = 0;
rate              668 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 			rate = pcur_bss->SupportedRates[i]&0x7F;
rate              669 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 			if (rate > max_rate)
rate              670 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 				max_rate = rate;
rate             2272 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c void update_mgnt_tx_rate(struct adapter *padapter, u8 rate)
rate             2276 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	pmlmeext->tx_rate = rate;
rate             2300 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	pattrib->rate = pmlmeext->tx_rate;
rate               57 drivers/staging/rtl8723bs/core/rtw_wlan_util.c int cckrates_included(unsigned char *rate, int ratelen)
rate               62 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 		if  ((((rate[i]) & 0x7f) == 2)	|| (((rate[i]) & 0x7f) == 4) ||
rate               63 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 		     (((rate[i]) & 0x7f) == 11)  || (((rate[i]) & 0x7f) == 22))
rate               70 drivers/staging/rtl8723bs/core/rtw_wlan_util.c int cckratesonly_included(unsigned char *rate, int ratelen)
rate               75 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 		if  ((((rate[i]) & 0x7f) != 2) && (((rate[i]) & 0x7f) != 4) &&
rate               76 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 		     (((rate[i]) & 0x7f) != 11)  && (((rate[i]) & 0x7f) != 22))
rate              140 drivers/staging/rtl8723bs/core/rtw_wlan_util.c unsigned char ratetbl_val_2wifirate(unsigned char rate);
rate              141 drivers/staging/rtl8723bs/core/rtw_wlan_util.c unsigned char ratetbl_val_2wifirate(unsigned char rate)
rate              143 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 	switch (rate & 0x7f) {
rate              173 drivers/staging/rtl8723bs/core/rtw_wlan_util.c int is_basicrate(struct adapter *padapter, unsigned char rate);
rate              174 drivers/staging/rtl8723bs/core/rtw_wlan_util.c int is_basicrate(struct adapter *padapter, unsigned char rate)
rate              184 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 			if (rate == ratetbl_val_2wifirate(val))
rate              195 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 	unsigned char rate;
rate              200 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 		rate = pmlmeext->datarate[i];
rate              202 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 		switch (rate) {
rate              210 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 			rate = ratetbl_val_2wifirate(rate);
rate              212 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 			if (is_basicrate(padapter, rate) == true)
rate              213 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 				rate |= IEEE80211_BASIC_RATE_MASK;
rate              215 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 			rateset[len] = rate;
rate              248 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 	u8 rate;
rate              252 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 		rate = mBratesOS[i] & 0x7f;
rate              253 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 		switch (rate) {
rate              270 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 	u8 rate;
rate              273 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 		rate = bssrateset[i] & 0x7f;
rate              274 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 		switch (rate) {
rate             1782 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 	unsigned char 		*rate = cur_network->SupportedRates;
rate             1802 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 		if ((cckratesonly_included(rate, ratelen)) == true)
rate             1804 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 		else if ((cckrates_included(rate, ratelen)) == true)
rate              774 drivers/staging/rtl8723bs/hal/HalHWImg8723B_RF.c 		u8 *rate = Array[i+3];
rate              784 drivers/staging/rtl8723bs/hal/HalHWImg8723B_RF.c 			rate,
rate              199 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c 		u16 rate = *(pDM_Odm->pForcedDataRate);
rate              201 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c 		if (!rate) { /* auto rate */
rate              205 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c 			TxRate = (u8)rate;
rate              369 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c 	u16 rate = *(pDM_Odm->pForcedDataRate);
rate              373 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c 		if (IS_CCK_RATE(rate)) {
rate              168 drivers/staging/rtl8723bs/hal/hal_com.c u8 MRateToHwRate(u8 rate)
rate              172 drivers/staging/rtl8723bs/hal/hal_com.c 	switch (rate) {
rate              432 drivers/staging/rtl8723bs/hal/hal_com.c u8 HwRateToMRate(u8 rate)
rate              436 drivers/staging/rtl8723bs/hal/hal_com.c 	switch (rate) {
rate              691 drivers/staging/rtl8723bs/hal/hal_com.c 		DBG_871X("HwRateToMRate(): Non supported Rate [%x]!!!\n", rate);
rate              778 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c 	u8 band, rfPath, TxNum, rate;
rate              783 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c 					for (rate = 0; rate < TX_PWR_BY_RATE_NUM_RATE; ++rate)
rate              784 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c 						pHalData->TxPwrByRateOffset[band][rfPath][TxNum][rate] = 0;
rate             1631 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c static s16 get_rate_sctn_idx(const u8 rate)
rate             1633 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c 	switch (rate) {
rate             1672 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c 		DBG_871X("Wrong rate 0x%x\n", rate);
rate             2942 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c 				char chnl[5] = "", rate[10] = "";
rate             2955 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c 				if (!ParseQualifiedString(szLine, &i, rate, '[', ']')) {
rate             2967 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c 				initDeltaSwingIndexTables(Adapter, band, path, sign, chnl, rate, data);
rate             1430 drivers/staging/rtl8723bs/hal/odm.h void ODM_DynamicARFBSelect(PDM_ODM_T pDM_Odm, u8 rate, bool Collision_State);
rate              113 drivers/staging/rtl8723bs/include/hal_com.h #define HDATA_RATE(rate)\
rate              114 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATE1M)?"CCK_1M":\
rate              115 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATE2M)?"CCK_2M":\
rate              116 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATE5_5M)?"CCK5_5M":\
rate              117 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATE11M)?"CCK_11M":\
rate              118 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATE6M)?"OFDM_6M":\
rate              119 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATE9M)?"OFDM_9M":\
rate              120 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATE12M)?"OFDM_12M":\
rate              121 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATE18M)?"OFDM_18M":\
rate              122 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATE24M)?"OFDM_24M":\
rate              123 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATE36M)?"OFDM_36M":\
rate              124 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATE48M)?"OFDM_48M":\
rate              125 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATE54M)?"OFDM_54M":\
rate              126 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS0)?"MCS0":\
rate              127 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS1)?"MCS1":\
rate              128 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS2)?"MCS2":\
rate              129 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS3)?"MCS3":\
rate              130 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS4)?"MCS4":\
rate              131 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS5)?"MCS5":\
rate              132 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS6)?"MCS6":\
rate              133 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS7)?"MCS7":\
rate              134 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS8)?"MCS8":\
rate              135 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS9)?"MCS9":\
rate              136 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS10)?"MCS10":\
rate              137 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS11)?"MCS11":\
rate              138 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS12)?"MCS12":\
rate              139 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS13)?"MCS13":\
rate              140 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS14)?"MCS14":\
rate              141 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEMCS15)?"MCS15":\
rate              142 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS1MCS0)?"VHTSS1MCS0":\
rate              143 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS1MCS1)?"VHTSS1MCS1":\
rate              144 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS1MCS2)?"VHTSS1MCS2":\
rate              145 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS1MCS3)?"VHTSS1MCS3":\
rate              146 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS1MCS4)?"VHTSS1MCS4":\
rate              147 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS1MCS5)?"VHTSS1MCS5":\
rate              148 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS1MCS6)?"VHTSS1MCS6":\
rate              149 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS1MCS7)?"VHTSS1MCS7":\
rate              150 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS1MCS8)?"VHTSS1MCS8":\
rate              151 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS1MCS9)?"VHTSS1MCS9":\
rate              152 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS2MCS0)?"VHTSS2MCS0":\
rate              153 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS2MCS1)?"VHTSS2MCS1":\
rate              154 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS2MCS2)?"VHTSS2MCS2":\
rate              155 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS2MCS3)?"VHTSS2MCS3":\
rate              156 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS2MCS4)?"VHTSS2MCS4":\
rate              157 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS2MCS5)?"VHTSS2MCS5":\
rate              158 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS2MCS6)?"VHTSS2MCS6":\
rate              159 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS2MCS7)?"VHTSS2MCS7":\
rate              160 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS2MCS8)?"VHTSS2MCS8":\
rate              161 drivers/staging/rtl8723bs/include/hal_com.h (rate ==DESC_RATEVHTSS2MCS9)?"VHTSS2MCS9":"UNKNOW"
rate              213 drivers/staging/rtl8723bs/include/hal_com.h u8 MRateToHwRate(u8 rate);
rate              215 drivers/staging/rtl8723bs/include/hal_com.h u8 HwRateToMRate(u8 rate);
rate              545 drivers/staging/rtl8723bs/include/ieee80211.h 	u16 rate; /* in 100 kbps */
rate             1165 drivers/staging/rtl8723bs/include/ieee80211.h bool rtw_is_cckrates_included(u8 *rate);
rate             1167 drivers/staging/rtl8723bs/include/ieee80211.h bool rtw_is_cckratesonly_included(u8 *rate);
rate             1169 drivers/staging/rtl8723bs/include/ieee80211.h int rtw_check_network_type(unsigned char *rate, int ratelen, int channel);
rate              292 drivers/staging/rtl8723bs/include/rtl8723b_hal.h u8 MRateToHwRate8723B(u8 rate);
rate              293 drivers/staging/rtl8723bs/include/rtl8723b_hal.h u8 HwRateToMRate8723B(u8 rate);
rate              656 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h void update_mgnt_tx_rate(struct adapter *padapter, u8 rate);
rate              735 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h extern int cckrates_included(unsigned char *rate, int ratelen);
rate              736 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h extern int cckratesonly_included(unsigned char *rate, int ratelen);
rate              181 drivers/staging/rtl8723bs/include/rtw_xmit.h 	u8 rate;
rate               89 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c 	u16 max_rate = 0, rate, ht_cap =false, vht_cap = false;
rate              202 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c 		rate = pnetwork->network.SupportedRates[i]&0x7F;
rate              203 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c 		if (rate > max_rate)
rate              204 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c 			max_rate = rate;
rate              206 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c 			      "%d%s ", rate >> 1, (rate & 1) ? ".5" : "");
rate               58 drivers/staging/speakup/speakup_acntpc.c 	__ATTR(rate, 0644, spk_var_show, spk_var_store);
rate               43 drivers/staging/speakup/speakup_acntsa.c 	__ATTR(rate, 0644, spk_var_show, spk_var_store);
rate               51 drivers/staging/speakup/speakup_apollo.c 	__ATTR(rate, 0644, spk_var_show, spk_var_store);
rate               46 drivers/staging/speakup/speakup_audptr.c 	__ATTR(rate, 0644, spk_var_show, spk_var_store);
rate               40 drivers/staging/speakup/speakup_bns.c 	__ATTR(rate, 0644, spk_var_show, spk_var_store);
rate               65 drivers/staging/speakup/speakup_decext.c 	__ATTR(rate, 0644, spk_var_show, spk_var_store);
rate              161 drivers/staging/speakup/speakup_decpc.c 	__ATTR(rate, 0644, spk_var_show, spk_var_store);
rate               67 drivers/staging/speakup/speakup_dectlk.c 	__ATTR(rate, 0644, spk_var_show, spk_var_store);
rate               68 drivers/staging/speakup/speakup_dtlk.c 	__ATTR(rate, 0644, spk_var_show, spk_var_store);
rate               43 drivers/staging/speakup/speakup_dummy.c 	__ATTR(rate, 0644, spk_var_show, spk_var_store);
rate               55 drivers/staging/speakup/speakup_keypc.c 	__ATTR(rate, 0644, spk_var_show, spk_var_store);
rate               49 drivers/staging/speakup/speakup_ltlk.c 	__ATTR(rate, 0644, spk_var_show, spk_var_store);
rate               65 drivers/staging/speakup/speakup_soft.c 	__ATTR(rate, 0644, spk_var_show, spk_var_store);
rate               44 drivers/staging/speakup/speakup_spkout.c 	__ATTR(rate, 0644, spk_var_show, spk_var_store);
rate               39 drivers/staging/speakup/speakup_txprt.c 	__ATTR(rate, 0644, spk_var_show, spk_var_store);
rate              225 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 				       runtime->rate,
rate              304 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 			div_u64((interval * runtime->rate), 1000000000);
rate              838 drivers/staging/vt6655/device_main.c 	struct ieee80211_rate *rate;
rate              860 drivers/staging/vt6655/device_main.c 		rate = ieee80211_get_tx_rate(priv->hw, info);
rate              861 drivers/staging/vt6655/device_main.c 		tx_rate = rate->hw_value - RATE_18M;
rate               40 drivers/staging/vt6655/dpc.c 	u8 rate[MAX_RATE] = {2, 4, 11, 22, 12, 18, 24, 36, 48, 72, 96, 108};
rate               57 drivers/staging/vt6655/dpc.c 		if (*rx_rate == rate[r])
rate              758 drivers/staging/vt6655/rf.c bool RFbSetPower(struct vnt_private *priv, unsigned int rate, u16 uCH)
rate              770 drivers/staging/vt6655/rf.c 	switch (rate) {
rate              806 drivers/staging/vt6655/rf.c 	ret = RFbRawSetPower(priv, byPwr, rate);
rate              828 drivers/staging/vt6655/rf.c 		    unsigned int rate)
rate              839 drivers/staging/vt6655/rf.c 		if (rate <= RATE_11M)
rate              848 drivers/staging/vt6655/rf.c 		if (rate <= RATE_11M) {
rate               68 drivers/staging/vt6655/rf.h bool RFbSetPower(struct vnt_private *priv, unsigned int rate, u16 uCH);
rate               72 drivers/staging/vt6655/rf.h 	unsigned int rate
rate              145 drivers/staging/vt6655/rxtx.c static __le16 vnt_time_stamp_off(struct vnt_private *priv, u16 rate)
rate              148 drivers/staging/vt6655/rxtx.c 							[rate % MAX_RATE]);
rate              181 drivers/staging/vt6655/rxtx.c 				    u32 frame_length, u16 rate, bool need_ack)
rate              184 drivers/staging/vt6655/rxtx.c 						frame_length, rate, need_ack));
rate             1275 drivers/staging/vt6655/rxtx.c 	struct ieee80211_rate *rate;
rate             1288 drivers/staging/vt6655/rxtx.c 	rate = ieee80211_get_tx_rate(priv->hw, info);
rate             1290 drivers/staging/vt6655/rxtx.c 	current_rate = rate->hw_value;
rate              136 drivers/staging/vt6656/baseband.c 	unsigned int rate = 0;
rate              141 drivers/staging/vt6656/baseband.c 	rate = (unsigned int)vnt_frame_time[tx_rate];
rate              149 drivers/staging/vt6656/baseband.c 		frame_time = (frame_length * 80) / rate;
rate              150 drivers/staging/vt6656/baseband.c 		tmp = (frame_time * rate) / 80;
rate              157 drivers/staging/vt6656/baseband.c 	frame_time = (frame_length * 8 + 22) / rate;
rate              158 drivers/staging/vt6656/baseband.c 	tmp = ((frame_time * rate) - 22) / 8;
rate              157 drivers/staging/vt6656/card.c static void vnt_calculate_ofdm_rate(u16 rate, u8 bb_type,
rate              160 drivers/staging/vt6656/card.c 	switch (rate) {
rate               45 drivers/staging/vt6656/dpc.c 	u8 rate[MAX_RATE] = {2, 4, 11, 22, 12, 18, 24, 36, 48, 72, 96, 108};
rate               89 drivers/staging/vt6656/dpc.c 		if (*rx_rate == rate[r])
rate               62 drivers/staging/vt6656/int.c 	struct ieee80211_rate *rate;
rate               81 drivers/staging/vt6656/int.c 		rate = ieee80211_get_tx_rate(priv->hw, info);
rate               82 drivers/staging/vt6656/int.c 		tx_rate = rate->hw_value - RATE_18M;
rate              610 drivers/staging/vt6656/rf.c int vnt_rf_setpower(struct vnt_private *priv, u32 rate, u32 channel)
rate              617 drivers/staging/vt6656/rf.c 	switch (rate) {
rate              642 drivers/staging/vt6656/rf.c 	return vnt_rf_set_txpower(priv, power, rate);
rate              672 drivers/staging/vt6656/rf.c int vnt_rf_set_txpower(struct vnt_private *priv, u8 power, u32 rate)
rate              693 drivers/staging/vt6656/rf.c 		if (rate <= RATE_11M)
rate              704 drivers/staging/vt6656/rf.c 		if (rate <= RATE_11M) {
rate              714 drivers/staging/vt6656/rf.c 		if (rate <= RATE_11M)
rate              744 drivers/staging/vt6656/rf.c 		if (rate <= RATE_11M) {
rate               44 drivers/staging/vt6656/rf.h int vnt_rf_setpower(struct vnt_private *priv, u32 rate, u32 channel);
rate               45 drivers/staging/vt6656/rf.h int vnt_rf_set_txpower(struct vnt_private *priv, u8 power, u32 rate);
rate              100 drivers/staging/vt6656/rxtx.c static __le16 vnt_time_stamp_off(struct vnt_private *priv, u16 rate)
rate              103 drivers/staging/vt6656/rxtx.c 							[rate % MAX_RATE]);
rate              107 drivers/staging/vt6656/rxtx.c 			   u32 frame_length, u16 rate, int need_ack)
rate              112 drivers/staging/vt6656/rxtx.c 				       frame_length, rate);
rate              128 drivers/staging/vt6656/rxtx.c 				    u32 frame_length, u16 rate, int need_ack)
rate              131 drivers/staging/vt6656/rxtx.c 		frame_length, rate, need_ack));
rate              209 drivers/staging/vt6656/rxtx.c 					 u8 dur_type, u8 pkt_type, u16 rate)
rate              225 drivers/staging/vt6656/rxtx.c 					frame_length, rate, need_ack);
rate              235 drivers/staging/vt6656/rxtx.c 					frame_length, rate, need_ack);
rate              242 drivers/staging/vt6656/rxtx.c 				pkt_type, frame_length, rate, need_ack);
rate              272 drivers/staging/vt6656/rxtx.c 	u16 rate = tx_context->tx_rate;
rate              276 drivers/staging/vt6656/rxtx.c 	vnt_get_phy_field(priv, frame_len, rate, tx_context->pkt_type, &buf->a);
rate              291 drivers/staging/vt6656/rxtx.c 	buf->time_stamp_off_a = vnt_time_stamp_off(priv, rate);
rate              305 drivers/staging/vt6656/rxtx.c 	u16 rate = tx_context->tx_rate;
rate              309 drivers/staging/vt6656/rxtx.c 	vnt_get_phy_field(priv, frame_len, rate, tx_context->pkt_type, &buf->a);
rate              324 drivers/staging/vt6656/rxtx.c 	buf->time_stamp_off_a = vnt_time_stamp_off(priv, rate);
rate              337 drivers/staging/vt6656/rxtx.c 	u16 rate = tx_context->tx_rate;
rate              343 drivers/staging/vt6656/rxtx.c 	vnt_get_phy_field(priv, frame_len, rate, pkt_type, &buf->a);
rate              350 drivers/staging/vt6656/rxtx.c 	buf->time_stamp_off = vnt_time_stamp_off(priv, rate);
rate              364 drivers/staging/vt6656/rxtx.c 	u16 rate = tx_context->tx_rate;
rate              368 drivers/staging/vt6656/rxtx.c 	vnt_get_phy_field(priv, frame_len, rate,
rate              379 drivers/staging/vt6656/rxtx.c 	buf->time_stamp_off = vnt_time_stamp_off(priv, rate);
rate              786 drivers/staging/vt6656/rxtx.c 	struct ieee80211_rate *rate;
rate              801 drivers/staging/vt6656/rxtx.c 	rate = ieee80211_get_tx_rate(priv->hw, info);
rate              803 drivers/staging/vt6656/rxtx.c 	current_rate = rate->hw_value;
rate               11 drivers/staging/wilc1000/wilc_mon.c 	u8 rate;
rate               16 drivers/staging/wilc1000/wilc_mon.c 	u8 rate;
rate               63 drivers/staging/wilc1000/wilc_mon.c 		cb_hdr->rate = 5;
rate               85 drivers/staging/wilc1000/wilc_mon.c 		hdr->rate = 5;
rate              178 drivers/staging/wilc1000/wilc_mon.c 		cb_hdr->rate = 5;
rate              538 drivers/staging/wlan-ng/hfa384x.h 	u8 rate;
rate             3303 drivers/staging/wlan-ng/hfa384x_usb.c 		rxmeta->rxrate = usbin->rxfrm.desc.rate;
rate             3399 drivers/staging/wlan-ng/hfa384x_usb.c 		caphdr->datarate = htonl(rxdesc->rate);
rate               88 drivers/staging/wlan-ng/prism2mgmt.c static inline u16 p80211rate_to_p2bit(u32 rate)
rate               90 drivers/staging/wlan-ng/prism2mgmt.c 	switch (rate & ~BIT(7)) {
rate              172 drivers/thermal/broadcom/bcm2835_thermal.c 	unsigned long rate;
rate              203 drivers/thermal/broadcom/bcm2835_thermal.c 	rate = clk_get_rate(data->clk);
rate              204 drivers/thermal/broadcom/bcm2835_thermal.c 	if ((rate < 1920000) || (rate > 5000000))
rate              207 drivers/thermal/broadcom/bcm2835_thermal.c 			 data->clk, rate);
rate              280 drivers/tty/serial/8250/8250_dw.c 	long rate;
rate              287 drivers/tty/serial/8250/8250_dw.c 	rate = clk_round_rate(d->clk, baud * 16);
rate              288 drivers/tty/serial/8250/8250_dw.c 	if (rate < 0)
rate              289 drivers/tty/serial/8250/8250_dw.c 		ret = rate;
rate              290 drivers/tty/serial/8250/8250_dw.c 	else if (rate == 0)
rate              293 drivers/tty/serial/8250/8250_dw.c 		ret = clk_set_rate(d->clk, rate);
rate              297 drivers/tty/serial/8250/8250_dw.c 		p->uartclk = rate;
rate               28 drivers/tty/serial/jsm/jsm_cls.c 	unsigned int rate;
rate              716 drivers/tty/serial/jsm/jsm_cls.c 			baud = baud_rates[i].rate;
rate              954 drivers/tty/serial/jsm/jsm_neo.c 			unsigned int rate;
rate              982 drivers/tty/serial/jsm/jsm_neo.c 				baud = baud_rates[i].rate;
rate              213 drivers/tty/serial/lpc32xx_hs.c 					   unsigned long rate)
rate              219 drivers/tty/serial/lpc32xx_hs.c 	div = uartclk / rate;
rate              230 drivers/tty/serial/lpc32xx_hs.c 		if (abs(comprate - rate) < rate_diff) {
rate              232 drivers/tty/serial/lpc32xx_hs.c 			rate_diff = abs(comprate - rate);
rate             1033 drivers/tty/serial/msm_serial.c 		   unsigned long *rate)
rate             1096 drivers/tty/serial/msm_serial.c 	*rate = best_rate;
rate             1106 drivers/tty/serial/msm_serial.c 	unsigned long flags, rate;
rate             1111 drivers/tty/serial/msm_serial.c 	entry = msm_find_best_baud(port, baud, &rate);
rate             1112 drivers/tty/serial/msm_serial.c 	clk_set_rate(msm_port->clk, rate);
rate             1113 drivers/tty/serial/msm_serial.c 	baud = rate / 16 / entry->divisor;
rate             1117 drivers/tty/serial/msm_serial.c 	port->uartclk = rate;
rate             1189 drivers/tty/serial/samsung.c 	unsigned long rate;
rate             1205 drivers/tty/serial/samsung.c 		rate = clk_get_rate(clk);
rate             1206 drivers/tty/serial/samsung.c 		if (!rate)
rate             1210 drivers/tty/serial/samsung.c 			unsigned long div = rate / req_baud;
rate             1221 drivers/tty/serial/samsung.c 			baud = rate / div;
rate             1223 drivers/tty/serial/samsung.c 			quot = (rate + (8 * req_baud)) / (16 * req_baud);
rate             1224 drivers/tty/serial/samsung.c 			baud = rate / (quot * 16);
rate             2138 drivers/tty/serial/samsung.c 	unsigned long rate;
rate             2188 drivers/tty/serial/samsung.c 			rate = clk_get_rate(clk);
rate             2190 drivers/tty/serial/samsung.c 			rate = 1;
rate             2192 drivers/tty/serial/samsung.c 		*baud = rate / (16 * (ubrdiv + 1));
rate              345 drivers/tty/serial/serial-tegra.c 				     unsigned int baud, long rate)
rate              352 drivers/tty/serial/serial-tegra.c 			return (rate + (rate *
rate              356 drivers/tty/serial/serial-tegra.c 	return rate;
rate              377 drivers/tty/serial/serial-tegra.c 	unsigned long rate;
rate              387 drivers/tty/serial/serial-tegra.c 		rate = baud * 16;
rate              388 drivers/tty/serial/serial-tegra.c 		tup->required_rate = rate;
rate              391 drivers/tty/serial/serial-tegra.c 			rate = tegra_get_tolerance_rate(tup, baud, rate);
rate              393 drivers/tty/serial/serial-tegra.c 		ret = clk_set_rate(tup->uart_clk, rate);
rate              396 drivers/tty/serial/serial-tegra.c 				"clk_set_rate() failed for rate %lu\n", rate);
rate              405 drivers/tty/serial/serial-tegra.c 		rate = clk_get_rate(tup->uart_clk);
rate              406 drivers/tty/serial/serial-tegra.c 		divisor = DIV_ROUND_CLOSEST(rate, baud * 16);
rate              483 drivers/tty/serial/sifive.c 				   unsigned int rate)
rate              485 drivers/tty/serial/sifive.c 	if (ssp->baud_rate == rate)
rate              488 drivers/tty/serial/sifive.c 	ssp->baud_rate = rate;
rate              647 drivers/tty/serial/sifive.c 	int rate;
rate              662 drivers/tty/serial/sifive.c 	rate = uart_get_baud_rate(port, termios, old, 0, ssp->clkin_rate / 16);
rate              663 drivers/tty/serial/sifive.c 	__ssp_update_baud_rate(ssp, rate);
rate              668 drivers/tty/serial/sifive.c 	uart_update_timeout(port, termios->c_cflag, rate);
rate             3919 drivers/tty/synclink_gt.c static void set_rate(struct slgt_info *info, u32 rate)
rate             3930 drivers/tty/synclink_gt.c 	if (rate) {
rate             3931 drivers/tty/synclink_gt.c 		div = osc/rate;
rate             3932 drivers/tty/synclink_gt.c 		if (!(osc % rate) && div)
rate              518 drivers/usb/gadget/function/f_uac1.c 	int				rate;
rate              551 drivers/usb/gadget/function/f_uac1.c 	rate = audio_opts->c_srate;
rate              553 drivers/usb/gadget/function/f_uac1.c 	memcpy(sam_freq, &rate, 3);
rate              554 drivers/usb/gadget/function/f_uac1.c 	rate = audio_opts->p_srate;
rate              556 drivers/usb/gadget/function/f_uac1.c 	memcpy(sam_freq, &rate, 3);
rate              680 drivers/usb/gadget/function/f_uac1_legacy.c 	int rate;
rate              687 drivers/usb/gadget/function/f_uac1_legacy.c 	rate = u_audio_get_playback_rate(card);
rate              689 drivers/usb/gadget/function/f_uac1_legacy.c 	memcpy(sam_freq, &rate, 3);
rate              425 drivers/usb/gadget/function/u_audio.c 	unsigned int factor, rate;
rate              444 drivers/usb/gadget/function/u_audio.c 	rate = params->p_srate * uac->p_framesize;
rate              446 drivers/usb/gadget/function/u_audio.c 	uac->p_pktsize = min_t(unsigned int, rate / uac->p_interval,
rate              450 drivers/usb/gadget/function/u_audio.c 		uac->p_pktsize_residue = rate % uac->p_interval;
rate              107 drivers/usb/gadget/function/u_uac1_legacy.c 	snd->rate = 48000;
rate              121 drivers/usb/gadget/function/u_uac1_legacy.c 			snd->rate, 0);
rate              138 drivers/usb/gadget/function/u_uac1_legacy.c 	snd->rate = params_rate(params);
rate              144 drivers/usb/gadget/function/u_uac1_legacy.c 		snd->access, snd->format, snd->channels, snd->rate);
rate              189 drivers/usb/gadget/function/u_uac1_legacy.c 	return card->playback.rate;
rate               41 drivers/usb/gadget/function/u_uac1_legacy.h 	int				rate;
rate              260 drivers/usb/host/xhci-tegra.c 				 unsigned long rate)
rate              267 drivers/usb/host/xhci-tegra.c 	if (clk_get_rate(clk) == rate)
rate              270 drivers/usb/host/xhci-tegra.c 	switch (rate) {
rate              278 drivers/usb/host/xhci-tegra.c 		div = new_parent_rate / rate;
rate              292 drivers/usb/host/xhci-tegra.c 		err = clk_set_rate(clk, rate);
rate              304 drivers/usb/host/xhci-tegra.c 		err = clk_set_rate(clk, rate);
rate              311 drivers/usb/host/xhci-tegra.c 		dev_err(tegra->dev, "Invalid SS rate: %lu Hz\n", rate);
rate              315 drivers/usb/host/xhci-tegra.c 	if (clk_get_rate(clk) != rate) {
rate              175 drivers/usb/misc/usb3503.c 		u32 rate = 0;
rate              178 drivers/usb/misc/usb3503.c 		if (!of_property_read_u32(np, "refclk-frequency", &rate)) {
rate              179 drivers/usb/misc/usb3503.c 			switch (rate) {
rate              195 drivers/usb/misc/usb3503.c 					(int) rate);
rate              207 drivers/usb/misc/usb3503.c 		if (rate != 0) {
rate              208 drivers/usb/misc/usb3503.c 			err = clk_set_rate(hub->clk, rate);
rate              212 drivers/usb/misc/usb3503.c 					(int)rate);
rate             1028 drivers/usb/serial/cp210x.c 	speed_t rate;
rate             1076 drivers/usb/serial/cp210x.c 	return cp210x_an205_table1[i].rate;
rate              674 drivers/video/fbdev/omap/lcdc.c 	int rate;
rate              702 drivers/video/fbdev/omap/lcdc.c 	rate = clk_get_rate(tc_ck);
rate              706 drivers/video/fbdev/omap/lcdc.c 		rate /= 4;
rate              708 drivers/video/fbdev/omap/lcdc.c 		rate /= 3;
rate              709 drivers/video/fbdev/omap/lcdc.c 	r = clk_set_rate(lcdc.lcd_ck, rate);
rate              554 drivers/video/fbdev/omap2/omapfb/dss/dss.c int dss_set_fck_rate(unsigned long rate)
rate              558 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	DSSDBG("set fck to %lu\n", rate);
rate              560 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	r = clk_set_rate(dss.dss_clk, rate);
rate              566 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	WARN_ONCE(dss.dss_clk_rate != rate,
rate              568 drivers/video/fbdev/omap2/omapfb/dss/dss.c 			rate);
rate              304 drivers/video/fbdev/omap2/omapfb/dss/dss.h int dss_set_fck_rate(unsigned long rate);
rate               77 drivers/video/fbdev/sis/sis_main.c static u8	sisfb_search_refresh_rate(struct sis_video_info *ivideo, unsigned int rate,
rate              184 drivers/video/fbdev/sis/sis_main.c 	unsigned int j = 0, xres = 0, yres = 0, depth = 0, rate = 0;
rate              214 drivers/video/fbdev/sis/sis_main.c 		if(sscanf(strbuf1, "%u %u %u %u", &xres, &yres, &depth, &rate) == 4) {
rate              215 drivers/video/fbdev/sis/sis_main.c 			if((rate <= 32) || (depth > 32)) {
rate              216 drivers/video/fbdev/sis/sis_main.c 				j = rate; rate = depth; depth = j;
rate              220 drivers/video/fbdev/sis/sis_main.c 			sisfb_parm_rate = rate;
rate              594 drivers/video/fbdev/sis/sis_main.c 		int mode_idx, int rate_idx, int rate)
rate              624 drivers/video/fbdev/sis/sis_main.c 	if(rate < (monitor->vmin - 1))
rate              626 drivers/video/fbdev/sis/sis_main.c 	if(rate > (monitor->vmax + 1))
rate              632 drivers/video/fbdev/sis/sis_main.c 		dclock = (htotal * vtotal * rate) / 1000;
rate              717 drivers/video/fbdev/sis/sis_main.c sisfb_search_refresh_rate(struct sis_video_info *ivideo, unsigned int rate, int mode_idx)
rate              726 drivers/video/fbdev/sis/sis_main.c 			if(sisfb_vrate[i].refresh == rate) {
rate              729 drivers/video/fbdev/sis/sis_main.c 			} else if(sisfb_vrate[i].refresh > rate) {
rate              730 drivers/video/fbdev/sis/sis_main.c 				if((sisfb_vrate[i].refresh - rate) <= 3) {
rate              732 drivers/video/fbdev/sis/sis_main.c 						rate, sisfb_vrate[i].refresh);
rate              736 drivers/video/fbdev/sis/sis_main.c 						((rate - sisfb_vrate[i-1].refresh) <= 2)) {
rate              738 drivers/video/fbdev/sis/sis_main.c 						rate, sisfb_vrate[i-1].refresh);
rate              743 drivers/video/fbdev/sis/sis_main.c 			} else if((rate - sisfb_vrate[i].refresh) <= 2) {
rate              745 drivers/video/fbdev/sis/sis_main.c 						rate, sisfb_vrate[i].refresh);
rate              756 drivers/video/fbdev/sis/sis_main.c 				rate, xres, yres);
rate             6600 drivers/video/fbdev/sis/sis_main.c static unsigned int	rate = 0;
rate             6627 drivers/video/fbdev/sis/sis_main.c 	if(rate)
rate             6628 drivers/video/fbdev/sis/sis_main.c 		sisfb_parm_rate = rate;
rate             6725 drivers/video/fbdev/sis/sis_main.c module_param(rate, int, 0);
rate             6775 drivers/video/fbdev/sis/sis_main.c MODULE_PARM_DESC(rate,
rate               31 drivers/watchdog/bcm7038_wdt.c 	u32			rate;
rate               42 drivers/watchdog/bcm7038_wdt.c 	timeout = wdt->rate * wdog->timeout;
rate               93 drivers/watchdog/bcm7038_wdt.c 	return time_left / wdt->rate;
rate              142 drivers/watchdog/bcm7038_wdt.c 		wdt->rate = clk_get_rate(wdt->clk);
rate              144 drivers/watchdog/bcm7038_wdt.c 		if (!wdt->rate)
rate              145 drivers/watchdog/bcm7038_wdt.c 			wdt->rate = WDT_DEFAULT_RATE;
rate              147 drivers/watchdog/bcm7038_wdt.c 		wdt->rate = WDT_DEFAULT_RATE;
rate              155 drivers/watchdog/bcm7038_wdt.c 	wdt->wdd.max_timeout	= 0xffffffff / wdt->rate;
rate               51 drivers/watchdog/dw_wdt.c 	unsigned long		rate;
rate               73 drivers/watchdog/dw_wdt.c 	return (1U << (16 + top)) / dw_wdt->rate;
rate              181 drivers/watchdog/dw_wdt.c 		dw_wdt->rate;
rate              255 drivers/watchdog/dw_wdt.c 	dw_wdt->rate = clk_get_rate(dw_wdt->clk);
rate              256 drivers/watchdog/dw_wdt.c 	if (dw_wdt->rate == 0) {
rate               99 drivers/watchdog/pic32-dmt.c 	unsigned long rate;
rate              101 drivers/watchdog/pic32-dmt.c 	rate = clk_get_rate(dmt->clk);
rate              102 drivers/watchdog/pic32-dmt.c 	if (rate)
rate              103 drivers/watchdog/pic32-dmt.c 		return readl(dmt->regs + DMTPSCNT_REG) / rate;
rate               75 drivers/watchdog/pic32-wdt.c 	unsigned long rate;
rate               78 drivers/watchdog/pic32-wdt.c 	rate = clk_get_rate(wdt->clk);
rate               81 drivers/watchdog/pic32-wdt.c 		pic32_wdt_get_clk_id(wdt), rate);
rate               84 drivers/watchdog/pic32-wdt.c 	rate >>= 5;
rate               85 drivers/watchdog/pic32-wdt.c 	if (!rate)
rate               93 drivers/watchdog/pic32-wdt.c 	period = terminal / rate;
rate               96 drivers/watchdog/pic32-wdt.c 		rate, terminal, period);
rate               45 drivers/watchdog/qcom-wdt.c 	unsigned long		rate;
rate               87 drivers/watchdog/qcom-wdt.c 	writel(bark * wdt->rate, wdt_addr(wdt, WDT_BARK_TIME));
rate               88 drivers/watchdog/qcom-wdt.c 	writel(wdd->timeout * wdt->rate, wdt_addr(wdt, WDT_BITE_TIME));
rate              133 drivers/watchdog/qcom-wdt.c 	timeout = 128 * wdt->rate / 1000;
rate              241 drivers/watchdog/qcom-wdt.c 	wdt->rate = clk_get_rate(clk);
rate              242 drivers/watchdog/qcom-wdt.c 	if (wdt->rate == 0 ||
rate              243 drivers/watchdog/qcom-wdt.c 	    wdt->rate > 0x10000000U) {
rate              268 drivers/watchdog/qcom-wdt.c 	wdt->wdd.max_timeout = 0x10000000U / wdt->rate;
rate               52 drivers/watchdog/rza_wdt.c 	unsigned long rate = clk_get_rate(priv->clk);
rate               56 drivers/watchdog/rza_wdt.c 		ticks = DIV_ROUND_UP(timeout * rate, DIVIDER_4BIT);
rate              171 drivers/watchdog/rza_wdt.c 	unsigned long rate;
rate              186 drivers/watchdog/rza_wdt.c 	rate = clk_get_rate(priv->clk);
rate              187 drivers/watchdog/rza_wdt.c 	if (rate < 16384) {
rate              188 drivers/watchdog/rza_wdt.c 		dev_err(dev, "invalid clock rate (%ld)\n", rate);
rate              199 drivers/watchdog/rza_wdt.c 		priv->wdev.max_timeout = (DIVIDER_4BIT * U8_MAX) / rate;
rate              203 drivers/watchdog/rza_wdt.c 		rate /= DIVIDER_3BIT;
rate              210 drivers/watchdog/rza_wdt.c 		priv->wdev.max_hw_heartbeat_ms = (1000 * U8_MAX) / rate;
rate               71 drivers/watchdog/sp805_wdt.c 	u64				rate;
rate               94 drivers/watchdog/sp805_wdt.c 	u64 load, rate;
rate               96 drivers/watchdog/sp805_wdt.c 	rate = wdt->rate;
rate              104 drivers/watchdog/sp805_wdt.c 	load = div_u64(rate, 2) * timeout - 1;
rate              112 drivers/watchdog/sp805_wdt.c 	wdd->timeout = div_u64((load + 1) * 2 + (rate / 2), rate);
rate              132 drivers/watchdog/sp805_wdt.c 	return div_u64(load, wdt->rate);
rate              252 drivers/watchdog/sp805_wdt.c 		wdt->rate = clk_get_rate(wdt->clk);
rate              260 drivers/watchdog/sp805_wdt.c 					 &wdt->rate);
rate              261 drivers/watchdog/sp805_wdt.c 		if (!wdt->rate) {
rate               74 drivers/watchdog/stm32_iwdg.c 	unsigned int		rate;
rate               98 drivers/watchdog/stm32_iwdg.c 	presc = DIV_ROUND_UP(tout * wdt->rate, RLR_MAX + 1);
rate              103 drivers/watchdog/stm32_iwdg.c 	iwdg_rlr = ((tout * wdt->rate) / presc) - 1;
rate              200 drivers/watchdog/stm32_iwdg.c 	wdt->rate = clk_get_rate(wdt->clk_lsi);
rate              257 drivers/watchdog/stm32_iwdg.c 	wdd->min_timeout = DIV_ROUND_UP((RLR_MIN + 1) * PR_MIN, wdt->rate);
rate              259 drivers/watchdog/stm32_iwdg.c 				    1000) / wdt->rate;
rate             3744 fs/f2fs/f2fs.h extern void f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned int rate,
rate             3747 fs/f2fs/f2fs.h #define f2fs_build_fault_attr(sbi, rate, type)		do { } while (0)
rate               60 fs/f2fs/super.c void f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned int rate,
rate               65 fs/f2fs/super.c 	if (rate) {
rate               67 fs/f2fs/super.c 		ffi->inject_rate = rate;
rate               73 fs/f2fs/super.c 	if (!rate && !type)
rate              108 include/clocksource/timer-ti-dm.h 	unsigned long rate;
rate              344 include/clocksource/timer-ti-dm.h 					int posted, unsigned long rate)
rate              359 include/clocksource/timer-ti-dm.h 		udelay(3500000 / rate + 1);
rate              157 include/drm/bridge/dw_hdmi.h void dw_hdmi_set_sample_rate(struct dw_hdmi *hdmi, unsigned int rate);
rate               47 include/drm/drm_audio_component.h 	int (*sync_audio_rate)(struct device *, int port, int pipe, int rate);
rate             1363 include/drm/drm_dp_helper.h 	unsigned int rate;
rate               56 include/linux/clk-provider.h 	unsigned long rate;
rate              227 include/linux/clk-provider.h 	long		(*round_rate)(struct clk_hw *hw, unsigned long rate,
rate              233 include/linux/clk-provider.h 	int		(*set_rate)(struct clk_hw *hw, unsigned long rate,
rate              236 include/linux/clk-provider.h 				    unsigned long rate,
rate              475 include/linux/clk-provider.h 			       unsigned long rate, unsigned long *prate,
rate              479 include/linux/clk-provider.h 				  unsigned long rate, unsigned long *prate,
rate              482 include/linux/clk-provider.h int divider_get_val(unsigned long rate, unsigned long parent_rate,
rate              652 include/linux/clk-provider.h 				unsigned long rate, unsigned long *parent_rate,
rate              852 include/linux/clk-provider.h static inline long divider_round_rate(struct clk_hw *hw, unsigned long rate,
rate              858 include/linux/clk-provider.h 					 rate, prate, table, width, flags);
rate              861 include/linux/clk-provider.h static inline long divider_ro_round_rate(struct clk_hw *hw, unsigned long rate,
rate              868 include/linux/clk-provider.h 					    rate, prate, table, width, flags,
rate              875 include/linux/clk-provider.h unsigned long clk_hw_round_rate(struct clk_hw *hw, unsigned long rate);
rate              623 include/linux/clk.h long clk_round_rate(struct clk *clk, unsigned long rate);
rate              632 include/linux/clk.h int clk_set_rate(struct clk *clk, unsigned long rate);
rate              649 include/linux/clk.h int clk_set_rate_exclusive(struct clk *clk, unsigned long rate);
rate              680 include/linux/clk.h int clk_set_min_rate(struct clk *clk, unsigned long rate);
rate              689 include/linux/clk.h int clk_set_max_rate(struct clk *clk, unsigned long rate);
rate              842 include/linux/clk.h static inline int clk_set_rate(struct clk *clk, unsigned long rate)
rate              847 include/linux/clk.h static inline int clk_set_rate_exclusive(struct clk *clk, unsigned long rate)
rate              852 include/linux/clk.h static inline long clk_round_rate(struct clk *clk, unsigned long rate)
rate              868 include/linux/clk.h static inline int clk_set_min_rate(struct clk *clk, unsigned long rate)
rate              873 include/linux/clk.h static inline int clk_set_max_rate(struct clk *clk, unsigned long rate)
rate              253 include/linux/clk/ti.h int omap2_reprogram_dpllcore(struct clk_hw *clk, unsigned long rate,
rate               17 include/linux/fd.h 	unsigned char	rate;
rate              278 include/linux/firmware/xlnx-zynqmp.h 	int (*clock_setrate)(u32 clock_id, u64 rate);
rate              279 include/linux/firmware/xlnx-zynqmp.h 	int (*clock_getrate)(u32 clock_id, u64 *rate);
rate             1324 include/linux/greybus/greybus_protocols.h 	__le32	rate;
rate             2102 include/linux/greybus/greybus_protocols.h 	__le32	rate;
rate             2110 include/linux/greybus/greybus_protocols.h 	__le32	rate;
rate             1570 include/linux/ide.h static inline int ide_set_xfer_rate(ide_drive_t *drive, u8 rate) { return -1; }
rate              268 include/linux/mfd/dbx500-prcmu.h long prcmu_round_clock_rate(u8 clock, unsigned long rate);
rate              269 include/linux/mfd/dbx500-prcmu.h int prcmu_set_clock_rate(u8 clock, unsigned long rate);
rate              447 include/linux/mfd/dbx500-prcmu.h static inline long prcmu_round_clock_rate(u8 clock, unsigned long rate)
rate              452 include/linux/mfd/dbx500-prcmu.h static inline int prcmu_set_clock_rate(u8 clock, unsigned long rate)
rate               56 include/linux/mfd/wm8994/pdata.h         unsigned int rate;
rate              122 include/linux/mfd/wm8994/pdata.h 	int rate;
rate              508 include/linux/mlx5/driver.h 	u32			rate;
rate             1009 include/linux/mlx5/driver.h bool mlx5_rl_is_in_range(struct mlx5_core_dev *dev, u32 rate);
rate               96 include/linux/platform_data/ad5755.h 			enum ad5755_slew_rate rate;
rate               68 include/linux/platform_data/i2c-pxa.h 	unsigned long		rate;
rate              100 include/linux/platform_data/si5351.h 	unsigned long rate;
rate               51 include/linux/pm_opp.h 	unsigned long rate;
rate               12 include/linux/sched_clock.h 				 unsigned long rate);
rate               17 include/linux/sched_clock.h 					unsigned long rate)
rate               72 include/linux/scmi_protocol.h 			u64 *rate);
rate               74 include/linux/scmi_protocol.h 			u64 rate);
rate              112 include/linux/scmi_protocol.h 			unsigned long rate, bool poll);
rate              114 include/linux/scmi_protocol.h 			unsigned long *rate, bool poll);
rate              116 include/linux/scmi_protocol.h 			     unsigned long *rate, unsigned long *power);
rate               29 include/linux/sh_clk.h 	int (*set_rate)(struct clk *clk, unsigned long rate);
rate               31 include/linux/sh_clk.h 	long (*round_rate)(struct clk *clk, unsigned long rate);
rate               52 include/linux/sh_clk.h 	unsigned long		rate;
rate              105 include/linux/sh_clk.h 			  unsigned long rate);
rate              109 include/linux/sh_clk.h 			unsigned long rate);
rate              112 include/linux/sh_clk.h 			      unsigned int div_max, unsigned long rate);
rate              115 include/linux/sh_clk.h 			       unsigned int mult_max, unsigned long rate);
rate              135 include/linux/slimbus.h 	unsigned int rate;
rate              829 include/linux/soundwire/sdw.h 	unsigned int rate;
rate              133 include/linux/spi/mxs-spi.h void mxs_ssp_set_clk_rate(struct mxs_ssp *ssp, unsigned int rate);
rate               51 include/media/v4l2-clk.h int v4l2_clk_set_rate(struct v4l2_clk *clk, unsigned long rate);
rate               56 include/media/v4l2-clk.h 			unsigned long rate, struct module *owner);
rate               60 include/media/v4l2-clk.h 							unsigned long rate)
rate               62 include/media/v4l2-clk.h 	return __v4l2_clk_register_fixed(dev_id, rate, THIS_MODULE);
rate             3756 include/net/cfg80211.h 				  int rate[NUM_NL80211_BANDS]);
rate             3821 include/net/cfg80211.h 				      u32 rate, u32 pkts, u32 intvl);
rate             6846 include/net/cfg80211.h 			     u32 num_packets, u32 rate, u32 intvl, gfp_t gfp);
rate             7082 include/net/cfg80211.h u32 cfg80211_calculate_bitrate(struct rate_info *rate);
rate              188 include/net/flow_offload.h 			u32			rate;
rate              938 include/net/mac80211.h static inline void ieee80211_rate_set_vht(struct ieee80211_tx_rate *rate,
rate              943 include/net/mac80211.h 	rate->idx = ((nss - 1) << 4) | mcs;
rate              947 include/net/mac80211.h ieee80211_rate_get_vht_mcs(const struct ieee80211_tx_rate *rate)
rate              949 include/net/mac80211.h 	return rate->idx & 0xF;
rate              953 include/net/mac80211.h ieee80211_rate_get_vht_nss(const struct ieee80211_tx_rate *rate)
rate              955 include/net/mac80211.h 	return (rate->idx >> 4) + 1;
rate             1073 include/net/mac80211.h 	struct rate_info *rate;
rate             1905 include/net/mac80211.h 	} rate[IEEE80211_TX_RATE_TABLE_SIZE];
rate             4941 include/net/mac80211.h 					struct ieee80211_rate *rate);
rate               30 include/net/sch_generic.h 	struct tc_ratespec rate;
rate             1205 include/net/sch_generic.h 	int slot = pktlen + rtab->rate.cell_align + rtab->rate.overhead;
rate             1208 include/net/sch_generic.h 	slot >>= rtab->rate.cell_log;
rate             1246 include/net/sch_generic.h 	res->rate = min_t(u64, r->rate_bytes_ps, ~0U);
rate               13 include/net/tc_act/tc_police.h 	struct psched_ratecfg	rate;
rate               39 include/net/tc_act/tc_police.h 	struct tc_ratespec	rate;
rate               58 include/net/tc_act/tc_police.h 	return params->rate.rate_bytes_ps;
rate               11 include/net/tc_act/tc_sample.h 	u32 rate;
rate               31 include/net/tc_act/tc_sample.h 	return to_sample(a)->rate;
rate              206 include/rdma/ib_sa.h 	u8           rate;
rate              344 include/rdma/ib_sa.h 	u8 	     rate;
rate              816 include/rdma/ib_verbs.h __attribute_const__ int ib_rate_to_mult(enum ib_rate rate);
rate              823 include/rdma/ib_verbs.h __attribute_const__ int ib_rate_to_mbps(enum ib_rate rate);
rate              207 include/soc/fsl/qe/qe.h int qe_setbrg(enum qe_clock brg, unsigned int rate, unsigned int multiplier);
rate              320 include/soc/fsl/qe/qe.h int qe_usb_clock_set(enum qe_clock clk, int rate);
rate              892 include/soc/tegra/bpmp-abi.h 	int64_t rate;
rate              897 include/soc/tegra/bpmp-abi.h 	int64_t rate;
rate              901 include/soc/tegra/bpmp-abi.h 	int64_t rate;
rate              906 include/soc/tegra/bpmp-abi.h 	int64_t rate;
rate              910 include/soc/tegra/bpmp-abi.h 	int64_t rate;
rate              987 include/soc/tegra/bpmp-abi.h 	int64_t rate;
rate             2252 include/soc/tegra/bpmp-abi.h 	int64_t rate;
rate             2276 include/soc/tegra/bpmp-abi.h 	int64_t rate;
rate               12 include/soc/tegra/emc.h 				    unsigned long rate);
rate               14 include/soc/tegra/emc.h 				      unsigned long rate);
rate               23 include/soc/tegra/mc.h 	unsigned long rate;
rate              184 include/soc/tegra/mc.h void tegra_mc_write_emem_configuration(struct tegra_mc *mc, unsigned long rate);
rate              367 include/sound/ac97_codec.h int snd_ac97_set_rate(struct snd_ac97 *ac97, int reg, unsigned int rate);
rate              403 include/sound/ac97_codec.h int snd_ac97_pcm_open(struct ac97_pcm *pcm, unsigned int rate,
rate               23 include/sound/ak4xxx-adda.h 	void (*set_rate_val)(struct snd_akm4xxx *ak, unsigned int rate);
rate              185 include/sound/cs8427.h int snd_cs8427_iec958_pcm(struct snd_i2c_device *cs8427, unsigned int rate);
rate             1847 include/sound/emu10k1.h unsigned int snd_emu10k1_rate_to_pitch(unsigned int rate);
rate               18 include/sound/hda_component.h 			     int dev_id, int rate);
rate               38 include/sound/hda_component.h 					   hda_nid_t nid, int dev_id, int rate)
rate              139 include/sound/hdaudio.h unsigned int snd_hdac_calc_stream_format(unsigned int rate,
rate               14 include/sound/max98088.h        unsigned int rate;
rate               14 include/sound/max98095.h 	unsigned int rate;
rate               25 include/sound/max98095.h 	unsigned int rate;
rate              360 include/sound/pcm.h 	unsigned int rate;		/* rate in Hz */
rate             1121 include/sound/pcm.h unsigned int snd_pcm_rate_to_rate_bit(unsigned int rate);
rate               29 include/sound/pcm_oss.h 	int rate;				/* requested rate */
rate              342 include/sound/soc-dai.h 	unsigned int rate;
rate               80 include/sound/sof/stream.h 	uint32_t rate;
rate              143 include/sound/wm8904.h 	unsigned int rate;
rate               16 include/sound/wm8993.h 	unsigned int rate;
rate               27 include/sound/wm8996.h 	int rate;
rate               13 include/sound/wm9081.h 	unsigned int rate;
rate               90 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core, unsigned long rate),
rate               92 include/trace/events/clk.h 	TP_ARGS(core, rate),
rate               96 include/trace/events/clk.h 		__field(unsigned long,           rate                      )
rate              101 include/trace/events/clk.h 		__entry->rate = rate;
rate              104 include/trace/events/clk.h 	TP_printk("%s %lu", __get_str(name), (unsigned long)__entry->rate)
rate              109 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core, unsigned long rate),
rate              111 include/trace/events/clk.h 	TP_ARGS(core, rate)
rate              116 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core, unsigned long rate),
rate              118 include/trace/events/clk.h 	TP_ARGS(core, rate)
rate               32 include/uapi/linux/fd.h 			rate,		/* data rate. |= 0x40 for perpendicular */
rate               35 include/uapi/linux/fd.h #define FD_SIZECODE(floppy) (((((floppy)->rate&FD_SIZECODEMASK)>> 3)+ 2) %8)
rate               36 include/uapi/linux/fd.h #define FD_SECTSIZE(floppy) ( (floppy)->rate & FD_2M ? \
rate              359 include/uapi/linux/fd.h 	unsigned char rate;
rate              737 include/uapi/linux/if_link.h 	__u32 rate; /* Max TX bandwidth in Mbps, 0 disables throttling */
rate              128 include/uapi/linux/pkt_cls.h 	struct tc_ratespec	rate;
rate               97 include/uapi/linux/pkt_sched.h 	__u32		rate;
rate              184 include/uapi/linux/pkt_sched.h 	struct tc_ratespec rate;
rate              391 include/uapi/linux/pkt_sched.h 	struct tc_ratespec 	rate;
rate              617 include/uapi/linux/pkt_sched.h 	__u32	rate;	/* byte/s */
rate               71 include/uapi/rdma/ib_user_sa.h 	__u8	rate;
rate              321 include/uapi/sound/asoc.h 	__le32 rate;		/* SNDRV_PCM_RATE_* */
rate               66 kernel/time/sched_clock.c 	unsigned long		rate;
rate              168 kernel/time/sched_clock.c sched_clock_register(u64 (*read)(void), int bits, unsigned long rate)
rate              176 kernel/time/sched_clock.c 	if (cd.rate > rate)
rate              182 kernel/time/sched_clock.c 	clocks_calc_mult_shift(&new_mult, &new_shift, rate, NSEC_PER_SEC, 3600);
rate              185 kernel/time/sched_clock.c 	cd.rate = rate;
rate              214 kernel/time/sched_clock.c 	r = rate;
rate              234 kernel/time/sched_clock.c 	if (irqtime > 0 || (irqtime == -1 && rate >= 1000000))
rate              103 net/can/proc.c 	unsigned long rate;
rate              115 net/can/proc.c 	rate = (count * HZ) / (newjif - oldjif);
rate              117 net/can/proc.c 	return rate;
rate               80 net/core/gen_estimator.c 	u64 rate, brate;
rate               86 net/core/gen_estimator.c 	rate = (u64)(b.packets - est->last_packets) << (10 - est->ewma_log - est->intvl_log);
rate               87 net/core/gen_estimator.c 	rate -= (est->avpps >> est->ewma_log);
rate               91 net/core/gen_estimator.c 	est->avpps += rate;
rate             1095 net/core/net-sysfs.c 	u32 rate = 0;
rate             1100 net/core/net-sysfs.c 	err = kstrtou32(buf, 10, &rate);
rate             1109 net/core/net-sysfs.c 		err = dev->netdev_ops->ndo_set_tx_maxrate(dev, index, rate);
rate             1113 net/core/net-sysfs.c 		queue->tx_maxrate = rate;
rate             1246 net/core/rtnetlink.c 	vf_tx_rate.rate = ivi.max_tx_rate;
rate             2269 net/core/rtnetlink.c 						   ivt->rate);
rate              392 net/ipv4/tcp.c 	u32 rate = READ_ONCE(tp->rate_delivered);
rate              396 net/ipv4/tcp.c 	if (rate && intv) {
rate              397 net/ipv4/tcp.c 		rate64 = (u64)rate * tp->mss_cache * USEC_PER_SEC;
rate             3215 net/ipv4/tcp.c 	unsigned long rate;
rate             3227 net/ipv4/tcp.c 	rate = READ_ONCE(sk->sk_pacing_rate);
rate             3228 net/ipv4/tcp.c 	rate64 = (rate != ~0UL) ? rate : ~0ULL;
rate             3231 net/ipv4/tcp.c 	rate = READ_ONCE(sk->sk_max_pacing_rate);
rate             3232 net/ipv4/tcp.c 	rate64 = (rate != ~0UL) ? rate : ~0ULL;
rate             3361 net/ipv4/tcp.c 	unsigned long rate;
rate             3380 net/ipv4/tcp.c 	rate = READ_ONCE(sk->sk_pacing_rate);
rate             3381 net/ipv4/tcp.c 	rate64 = (rate != ~0UL) ? rate : ~0ULL;
rate              242 net/ipv4/tcp_bbr.c static u64 bbr_rate_bytes_per_sec(struct sock *sk, u64 rate, int gain)
rate              246 net/ipv4/tcp_bbr.c 	rate *= mss;
rate              247 net/ipv4/tcp_bbr.c 	rate *= gain;
rate              248 net/ipv4/tcp_bbr.c 	rate >>= BBR_SCALE;
rate              249 net/ipv4/tcp_bbr.c 	rate *= USEC_PER_SEC / 100 * (100 - bbr_pacing_margin_percent);
rate              250 net/ipv4/tcp_bbr.c 	return rate >> BW_SCALE;
rate              256 net/ipv4/tcp_bbr.c 	u64 rate = bw;
rate              258 net/ipv4/tcp_bbr.c 	rate = bbr_rate_bytes_per_sec(sk, rate, gain);
rate              259 net/ipv4/tcp_bbr.c 	rate = min_t(u64, rate, sk->sk_max_pacing_rate);
rate              260 net/ipv4/tcp_bbr.c 	return rate;
rate              287 net/ipv4/tcp_bbr.c 	unsigned long rate = bbr_bw_to_pacing_rate(sk, bw, gain);
rate              291 net/ipv4/tcp_bbr.c 	if (bbr_full_bw_reached(sk) || rate > sk->sk_pacing_rate)
rate              292 net/ipv4/tcp_bbr.c 		sk->sk_pacing_rate = rate;
rate              802 net/ipv4/tcp_input.c 	u64 rate;
rate              805 net/ipv4/tcp_input.c 	rate = (u64)tp->mss_cache * ((USEC_PER_SEC / 100) << 3);
rate              816 net/ipv4/tcp_input.c 		rate *= sock_net(sk)->ipv4.sysctl_tcp_pacing_ss_ratio;
rate              818 net/ipv4/tcp_input.c 		rate *= sock_net(sk)->ipv4.sysctl_tcp_pacing_ca_ratio;
rate              820 net/ipv4/tcp_input.c 	rate *= max(tp->snd_cwnd, tp->packets_out);
rate              823 net/ipv4/tcp_input.c 		do_div(rate, tp->srtt_us);
rate              829 net/ipv4/tcp_input.c 	WRITE_ONCE(sk->sk_pacing_rate, min_t(u64, rate,
rate             1136 net/ipv4/tcp_input.c 	struct rate_sample *rate;
rate             1303 net/ipv4/tcp_input.c 	tcp_rate_skb_delivered(sk, skb, state->rate);
rate             1592 net/ipv4/tcp_input.c 			tcp_rate_skb_delivered(sk, skb, state->rate);
rate             3143 net/ipv4/tcp_input.c 		tcp_rate_skb_delivered(sk, skb, sack->rate);
rate             3186 net/ipv4/tcp_input.c 		    sack->rate->prior_delivered + 1 == tp->delivered &&
rate             3200 net/ipv4/tcp_input.c 					ca_rtt_us, sack->rate);
rate             3242 net/ipv4/tcp_input.c 					     .rtt_us = sack->rate->rtt_us,
rate             3603 net/ipv4/tcp_input.c 	sack_state.rate = &rs;
rate             3722 net/ipv4/tcp_input.c 	tcp_rate_gen(sk, delivered, lost, is_sack_reneg, sack_state.rate);
rate             3723 net/ipv4/tcp_input.c 	tcp_cong_control(sk, ack, delivered, flag, sack_state.rate);
rate              247 net/ipv4/tcp_nv.c 	u32 rate, max_win, cwnd_by_slope;
rate              290 net/ipv4/tcp_nv.c 	rate = (u32)rate64;
rate              296 net/ipv4/tcp_nv.c 	if (ca->nv_rtt_max_rate < rate)
rate              297 net/ipv4/tcp_nv.c 		ca->nv_rtt_max_rate = rate;
rate              988 net/ipv4/tcp_output.c 		unsigned long rate = sk->sk_pacing_rate;
rate              994 net/ipv4/tcp_output.c 		if (rate != ~0UL && rate && tp->data_segs_out >= 10) {
rate              995 net/ipv4/tcp_output.c 			u64 len_ns = div64_ul((u64)skb->len * NSEC_PER_SEC, rate);
rate              684 net/mac80211/cfg.c 			  const struct ieee80211_tx_rate *rate,
rate              688 net/mac80211/cfg.c 	if (rate->flags & IEEE80211_TX_RC_MCS) {
rate              690 net/mac80211/cfg.c 		rinfo->mcs = rate->idx;
rate              691 net/mac80211/cfg.c 	} else if (rate->flags & IEEE80211_TX_RC_VHT_MCS) {
rate              693 net/mac80211/cfg.c 		rinfo->mcs = ieee80211_rate_get_vht_mcs(rate);
rate              694 net/mac80211/cfg.c 		rinfo->nss = ieee80211_rate_get_vht_nss(rate);
rate              702 net/mac80211/cfg.c 			brate = sband->bitrates[rate->idx].bitrate;
rate              706 net/mac80211/cfg.c 	if (rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH)
rate              708 net/mac80211/cfg.c 	else if (rate->flags & IEEE80211_TX_RC_80_MHZ_WIDTH)
rate              710 net/mac80211/cfg.c 	else if (rate->flags & IEEE80211_TX_RC_160_MHZ_WIDTH)
rate              714 net/mac80211/cfg.c 	if (rate->flags & IEEE80211_TX_RC_SHORT_GI)
rate             2411 net/mac80211/cfg.c 				    int rate[NUM_NL80211_BANDS])
rate             2415 net/mac80211/cfg.c 	memcpy(sdata->vif.bss_conf.mcast_rate, rate,
rate              114 net/mac80211/ibss.c 		int rate = DIV_ROUND_UP(sband->bitrates[ri].bitrate,
rate              122 net/mac80211/ibss.c 		*pos++ = basic | (u8) rate;
rate              158 net/mac80211/ibss.c 			int rate = DIV_ROUND_UP(sband->bitrates[ri].bitrate,
rate              166 net/mac80211/ibss.c 			*pos++ = basic | (u8) rate;
rate              451 net/mac80211/ibss.c 		int rate = bss->supp_rates[i] & 0x7f;
rate              462 net/mac80211/ibss.c 			if (brate == rate) {
rate              176 net/mac80211/ieee80211_i.h 	struct ieee80211_tx_rate rate;
rate             1932 net/mac80211/ieee80211_i.h 			     int rate, int erp, int short_preamble,
rate              325 net/mac80211/mesh_hwmp.c 	int rate, err;
rate              339 net/mac80211/mesh_hwmp.c 	rate = DIV_ROUND_UP(sta_get_expected_throughput(sta), 100);
rate              341 net/mac80211/mesh_hwmp.c 	if (rate) {
rate              347 net/mac80211/mesh_hwmp.c 		rate = ewma_mesh_tx_rate_avg_read(&sta->mesh->tx_rate_avg);
rate              348 net/mac80211/mesh_hwmp.c 		if (WARN_ON(!rate))
rate              357 net/mac80211/mesh_hwmp.c 	tx_time = (device_constant + 10 * test_frame_len / rate);
rate              770 net/mac80211/mlme.c 			int rate = DIV_ROUND_UP(sband->bitrates[i].bitrate,
rate              772 net/mac80211/mlme.c 			*pos++ = (u8) rate;
rate              785 net/mac80211/mlme.c 				int rate;
rate              786 net/mac80211/mlme.c 				rate = DIV_ROUND_UP(sband->bitrates[i].bitrate,
rate              788 net/mac80211/mlme.c 				*pos++ = (u8) rate;
rate             3118 net/mac80211/mlme.c 		int rate = supp_rates[i] & 0x7f;
rate             3121 net/mac80211/mlme.c 		if ((rate * 5 * (1 << shift)) > 110)
rate             3143 net/mac80211/mlme.c 			if (brate == rate) {
rate             3147 net/mac80211/mlme.c 				if ((rate * 5) < *min_rate) {
rate             3148 net/mac80211/mlme.c 					*min_rate = rate * 5;
rate              590 net/mac80211/rate.c 	struct ieee80211_rate *rate;
rate              607 net/mac80211/rate.c 		rate = &sband->bitrates[rates[0].idx];
rate              614 net/mac80211/rate.c 			if (sband->bitrates[i].bitrate > rate->bitrate)
rate              671 net/mac80211/rate.c 		rate = &sband->bitrates[rates[i].idx];
rate              675 net/mac80211/rate.c 		    rate->flags & IEEE80211_RATE_SHORT_PREAMBLE)
rate              681 net/mac80211/rate.c 		    rate->flags & IEEE80211_RATE_ERP_G)
rate              707 net/mac80211/rate.c 			rates[i].idx = ratetbl->rate[i].idx;
rate              708 net/mac80211/rate.c 			rates[i].flags = ratetbl->rate[i].flags;
rate              710 net/mac80211/rate.c 				rates[i].count = ratetbl->rate[i].count_rts;
rate              712 net/mac80211/rate.c 				rates[i].count = ratetbl->rate[i].count_cts;
rate              714 net/mac80211/rate.c 				rates[i].count = ratetbl->rate[i].count;
rate              792 net/mac80211/rate.c 		if (rates->rate[i].idx < 0)
rate              795 net/mac80211/rate.c 		rate_idx_match_mask(&rates->rate[i].idx, &rates->rate[i].flags,
rate              118 net/mac80211/rc80211_minstrel.c 	ratetbl->rate[offset].idx = r->rix;
rate              119 net/mac80211/rc80211_minstrel.c 	ratetbl->rate[offset].count = r->adjusted_retry_count;
rate              120 net/mac80211/rc80211_minstrel.c 	ratetbl->rate[offset].count_cts = r->retry_count_cts;
rate              121 net/mac80211/rc80211_minstrel.c 	ratetbl->rate[offset].count_rts = r->stats.retry_count_rtscts;
rate              148 net/mac80211/rc80211_minstrel.c 	ratetbl->rate[i].idx = mi->lowest_rix;
rate              149 net/mac80211/rc80211_minstrel.c 	ratetbl->rate[i].count = mp->max_retry;
rate              150 net/mac80211/rc80211_minstrel.c 	ratetbl->rate[i].count_cts = mp->max_retry;
rate              151 net/mac80211/rc80211_minstrel.c 	ratetbl->rate[i].count_rts = mp->max_retry;
rate              335 net/mac80211/rc80211_minstrel.c 	struct ieee80211_tx_rate *rate = &info->control.rates[0];
rate              410 net/mac80211/rc80211_minstrel.c 		rate++;
rate              430 net/mac80211/rc80211_minstrel.c 	rate->idx = mi->r[ndx].rix;
rate              431 net/mac80211/rc80211_minstrel.c 	rate->count = minstrel_get_retry_count(&mi->r[ndx], info);
rate              438 net/mac80211/rc80211_minstrel.c 		    struct ieee80211_rate *rate,
rate              441 net/mac80211/rc80211_minstrel.c 	int erp = !!(rate->flags & IEEE80211_RATE_ERP_G);
rate              445 net/mac80211/rc80211_minstrel.c 			DIV_ROUND_UP(rate->bitrate, 1 << shift), erp, 1,
rate              448 net/mac80211/rc80211_minstrel.c 			DIV_ROUND_UP(rate->bitrate, 1 << shift), erp, 1,
rate              285 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_get_group_idx(struct ieee80211_tx_rate *rate)
rate              287 net/mac80211/rc80211_minstrel_ht.c 	return GROUP_IDX((rate->idx / 8) + 1,
rate              288 net/mac80211/rc80211_minstrel_ht.c 			 !!(rate->flags & IEEE80211_TX_RC_SHORT_GI),
rate              289 net/mac80211/rc80211_minstrel_ht.c 			 !!(rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH));
rate              293 net/mac80211/rc80211_minstrel_ht.c minstrel_vht_get_group_idx(struct ieee80211_tx_rate *rate)
rate              295 net/mac80211/rc80211_minstrel_ht.c 	return VHT_GROUP_IDX(ieee80211_rate_get_vht_nss(rate),
rate              296 net/mac80211/rc80211_minstrel_ht.c 			     !!(rate->flags & IEEE80211_TX_RC_SHORT_GI),
rate              297 net/mac80211/rc80211_minstrel_ht.c 			     !!(rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH) +
rate              298 net/mac80211/rc80211_minstrel_ht.c 			     2*!!(rate->flags & IEEE80211_TX_RC_80_MHZ_WIDTH));
rate              303 net/mac80211/rc80211_minstrel_ht.c 		      struct ieee80211_tx_rate *rate)
rate              307 net/mac80211/rc80211_minstrel_ht.c 	if (rate->flags & IEEE80211_TX_RC_MCS) {
rate              308 net/mac80211/rc80211_minstrel_ht.c 		group = minstrel_ht_get_group_idx(rate);
rate              309 net/mac80211/rc80211_minstrel_ht.c 		idx = rate->idx % 8;
rate              310 net/mac80211/rc80211_minstrel_ht.c 	} else if (rate->flags & IEEE80211_TX_RC_VHT_MCS) {
rate              311 net/mac80211/rc80211_minstrel_ht.c 		group = minstrel_vht_get_group_idx(rate);
rate              312 net/mac80211/rc80211_minstrel_ht.c 		idx = ieee80211_rate_get_vht_mcs(rate);
rate              317 net/mac80211/rc80211_minstrel_ht.c 			if (rate->idx == mp->cck_rates[idx])
rate              322 net/mac80211/rc80211_minstrel_ht.c 		    (rate->flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE))
rate              348 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_get_tp_avg(struct minstrel_ht_sta *mi, int group, int rate,
rate              360 net/mac80211/rc80211_minstrel_ht.c 	nsecs += minstrel_mcs_groups[group].duration[rate] <<
rate              795 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_txstat_valid(struct minstrel_priv *mp, struct ieee80211_tx_rate *rate)
rate              797 net/mac80211/rc80211_minstrel_ht.c 	if (rate->idx < 0)
rate              800 net/mac80211/rc80211_minstrel_ht.c 	if (!rate->count)
rate              803 net/mac80211/rc80211_minstrel_ht.c 	if (rate->flags & IEEE80211_TX_RC_MCS ||
rate              804 net/mac80211/rc80211_minstrel_ht.c 	    rate->flags & IEEE80211_TX_RC_VHT_MCS)
rate              807 net/mac80211/rc80211_minstrel_ht.c 	return rate->idx == mp->cck_rates[0] ||
rate              808 net/mac80211/rc80211_minstrel_ht.c 	       rate->idx == mp->cck_rates[1] ||
rate              809 net/mac80211/rc80211_minstrel_ht.c 	       rate->idx == mp->cck_rates[2] ||
rate              810 net/mac80211/rc80211_minstrel_ht.c 	       rate->idx == mp->cck_rates[3];
rate              890 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_rate_stats *rate, *rate2, *rate_sample = NULL;
rate              934 net/mac80211/rc80211_minstrel_ht.c 		rate = minstrel_ht_get_stats(mp, mi, &ar[i]);
rate              935 net/mac80211/rc80211_minstrel_ht.c 		if (rate == rate_sample)
rate              939 net/mac80211/rc80211_minstrel_ht.c 			rate->success += info->status.ampdu_ack_len;
rate              941 net/mac80211/rc80211_minstrel_ht.c 		rate->attempts += ar[i].count * info->status.ampdu_len;
rate              971 net/mac80211/rc80211_minstrel_ht.c 		rate = minstrel_get_ratestats(mi, mi->max_tp_rate[0]);
rate              972 net/mac80211/rc80211_minstrel_ht.c 		if (rate->attempts > 30 &&
rate              973 net/mac80211/rc80211_minstrel_ht.c 		    MINSTREL_FRAC(rate->success, rate->attempts) <
rate             1069 net/mac80211/rc80211_minstrel_ht.c 		ratetbl->rate[offset].count = 2;
rate             1070 net/mac80211/rc80211_minstrel_ht.c 		ratetbl->rate[offset].count_rts = 2;
rate             1071 net/mac80211/rc80211_minstrel_ht.c 		ratetbl->rate[offset].count_cts = 2;
rate             1073 net/mac80211/rc80211_minstrel_ht.c 		ratetbl->rate[offset].count = mrs->retry_count;
rate             1074 net/mac80211/rc80211_minstrel_ht.c 		ratetbl->rate[offset].count_cts = mrs->retry_count;
rate             1075 net/mac80211/rc80211_minstrel_ht.c 		ratetbl->rate[offset].count_rts = mrs->retry_count_rtscts;
rate             1093 net/mac80211/rc80211_minstrel_ht.c 		ratetbl->rate[offset].count = ratetbl->rate[offset].count_rts;
rate             1097 net/mac80211/rc80211_minstrel_ht.c 	ratetbl->rate[offset].idx = idx;
rate             1098 net/mac80211/rc80211_minstrel_ht.c 	ratetbl->rate[offset].flags = flags;
rate             1102 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_get_prob_ewma(struct minstrel_ht_sta *mi, int rate)
rate             1104 net/mac80211/rc80211_minstrel_ht.c 	int group = rate / MCS_GROUP_RATES;
rate             1105 net/mac80211/rc80211_minstrel_ht.c 	rate %= MCS_GROUP_RATES;
rate             1106 net/mac80211/rc80211_minstrel_ht.c 	return mi->groups[group].rates[rate].prob_ewma;
rate             1114 net/mac80211/rc80211_minstrel_ht.c 	int rate = mi->max_prob_rate % MCS_GROUP_RATES;
rate             1118 net/mac80211/rc80211_minstrel_ht.c 	if (mi->groups[group].rates[rate].prob_ewma < MINSTREL_FRAC(50, 100))
rate             1121 net/mac80211/rc80211_minstrel_ht.c 	duration = g->duration[rate];
rate             1185 net/mac80211/rc80211_minstrel_ht.c 	rates->rate[i].idx = -1;
rate             1293 net/mac80211/rc80211_minstrel_ht.c 	struct ieee80211_tx_rate *rate = &info->status.rates[0];
rate             1339 net/mac80211/rc80211_minstrel_ht.c 	rate->count = 1;
rate             1343 net/mac80211/rc80211_minstrel_ht.c 		rate->idx = mp->cck_rates[idx];
rate             1345 net/mac80211/rc80211_minstrel_ht.c 		ieee80211_rate_set_vht(rate, sample_idx % MCS_GROUP_RATES,
rate             1348 net/mac80211/rc80211_minstrel_ht.c 		rate->idx = sample_idx + (sample_group->streams - 1) * 8;
rate             1351 net/mac80211/rc80211_minstrel_ht.c 	rate->flags = sample_group->flags;
rate             1615 net/mac80211/rc80211_minstrel_ht.c 		struct ieee80211_rate *rate = &sband->bitrates[i];
rate             1617 net/mac80211/rc80211_minstrel_ht.c 		if (rate->flags & IEEE80211_RATE_ERP_G)
rate             1624 net/mac80211/rc80211_minstrel_ht.c 			if (rate->bitrate != bitrates[j])
rate              121 net/mac80211/rc80211_minstrel_ht.h int minstrel_ht_get_tp_avg(struct minstrel_ht_sta *mi, int group, int rate,
rate              292 net/mac80211/rx.c 				 struct ieee80211_rate *rate,
rate              395 net/mac80211/rx.c 	if (!rate || status->encoding != RX_ENC_LEGACY) {
rate              410 net/mac80211/rx.c 		*pos = DIV_ROUND_UP(rate->bitrate, 5 * (1 << shift));
rate              426 net/mac80211/rx.c 	else if (rate && rate->flags & IEEE80211_RATE_ERP_G)
rate              428 net/mac80211/rx.c 	else if (rate)
rate              704 net/mac80211/rx.c 			   struct ieee80211_rate *rate,
rate              744 net/mac80211/rx.c 	ieee80211_add_rx_radiotap_header(local, skb, rate, rt_hdrlen, true);
rate              761 net/mac80211/rx.c 		     struct ieee80211_rate *rate)
rate              841 net/mac80211/rx.c 							    rate, rtap_space,
rate             3509 net/mac80211/rx.c 					struct ieee80211_rate *rate)
rate             3540 net/mac80211/rx.c 	ieee80211_add_rx_radiotap_header(local, skb, rate, needed_headroom,
rate             3588 net/mac80211/rx.c 		struct ieee80211_rate *rate = NULL;
rate             3596 net/mac80211/rx.c 			rate = &sband->bitrates[status->rate_idx];
rate             3598 net/mac80211/rx.c 		ieee80211_rx_cooked_monitor(rx, rate);
rate             4523 net/mac80211/rx.c 	struct ieee80211_rate *rate = NULL;
rate             4605 net/mac80211/rx.c 			rate = &sband->bitrates[status->rate_idx];
rate             4624 net/mac80211/rx.c 	skb = ieee80211_rx_monitor(local, skb, rate);
rate              436 net/mac80211/sta_info.c 			struct ieee80211_rate *rate;
rate              438 net/mac80211/sta_info.c 			rate = &hw->wiphy->bands[i]->bitrates[r];
rate              440 net/mac80211/sta_info.c 			if (!(rate->flags & mandatory))
rate             2059 net/mac80211/sta_info.c static void sta_stats_decode_rate(struct ieee80211_local *local, u32 rate,
rate             2062 net/mac80211/sta_info.c 	rinfo->bw = STA_STATS_GET(BW, rate);
rate             2064 net/mac80211/sta_info.c 	switch (STA_STATS_GET(TYPE, rate)) {
rate             2067 net/mac80211/sta_info.c 		rinfo->mcs = STA_STATS_GET(VHT_MCS, rate);
rate             2068 net/mac80211/sta_info.c 		rinfo->nss = STA_STATS_GET(VHT_NSS, rate);
rate             2069 net/mac80211/sta_info.c 		if (STA_STATS_GET(SGI, rate))
rate             2074 net/mac80211/sta_info.c 		rinfo->mcs = STA_STATS_GET(HT_MCS, rate);
rate             2075 net/mac80211/sta_info.c 		if (STA_STATS_GET(SGI, rate))
rate             2082 net/mac80211/sta_info.c 		int band = STA_STATS_GET(LEGACY_BAND, rate);
rate             2083 net/mac80211/sta_info.c 		int rate_idx = STA_STATS_GET(LEGACY_IDX, rate);
rate             2098 net/mac80211/sta_info.c 		rinfo->mcs = STA_STATS_GET(HE_MCS, rate);
rate             2099 net/mac80211/sta_info.c 		rinfo->nss = STA_STATS_GET(HE_NSS, rate);
rate             2100 net/mac80211/sta_info.c 		rinfo->he_gi = STA_STATS_GET(HE_GI, rate);
rate             2101 net/mac80211/sta_info.c 		rinfo->he_ru_alloc = STA_STATS_GET(HE_RU, rate);
rate             2102 net/mac80211/sta_info.c 		rinfo->he_dcm = STA_STATS_GET(HE_DCM, rate);
rate             2109 net/mac80211/sta_info.c 	u16 rate = READ_ONCE(sta_get_last_rx_stats(sta)->last_rate);
rate             2111 net/mac80211/sta_info.c 	if (rate == STA_STATS_RATE_INVALID)
rate             2114 net/mac80211/sta_info.c 	sta_stats_decode_rate(sta->local, rate, rinfo);
rate              785 net/mac80211/sta_info.h 			  const struct ieee80211_tx_rate *rate,
rate              263 net/mac80211/status.c 	if (status && status->rate && !(status->rate->flags &
rate              283 net/mac80211/status.c 	if (status && status->rate) {
rate              284 net/mac80211/status.c 		if (status->rate->flags & RATE_INFO_FLAGS_MCS)
rate              286 net/mac80211/status.c 		else if (status->rate->flags & RATE_INFO_FLAGS_VHT_MCS)
rate              288 net/mac80211/status.c 		else if (status->rate->flags & RATE_INFO_FLAGS_HE_MCS)
rate              331 net/mac80211/status.c 	if (status && status->rate) {
rate              332 net/mac80211/status.c 		if (!(status->rate->flags & (RATE_INFO_FLAGS_MCS |
rate              337 net/mac80211/status.c 			legacy_rate = status->rate->legacy;
rate              370 net/mac80211/status.c 	if (status && status->rate &&
rate              371 net/mac80211/status.c 	    (status->rate->flags & RATE_INFO_FLAGS_MCS)) {
rate              376 net/mac80211/status.c 		if (status->rate->flags & RATE_INFO_FLAGS_SHORT_GI)
rate              378 net/mac80211/status.c 		if (status->rate->bw == RATE_INFO_BW_40)
rate              380 net/mac80211/status.c 		pos[2] = status->rate->mcs;
rate              382 net/mac80211/status.c 	} else if (status && status->rate &&
rate              383 net/mac80211/status.c 		   (status->rate->flags & RATE_INFO_FLAGS_VHT_MCS)) {
rate              398 net/mac80211/status.c 		if (status->rate->flags & RATE_INFO_FLAGS_SHORT_GI)
rate              403 net/mac80211/status.c 		switch (status->rate->bw) {
rate              420 net/mac80211/status.c 		*pos = (status->rate->mcs << 4) | status->rate->nss;
rate              429 net/mac80211/status.c 	} else if (status && status->rate &&
rate              430 net/mac80211/status.c 		   (status->rate->flags & RATE_INFO_FLAGS_HE_MCS)) {
rate              448 net/mac80211/status.c 		he->data6 |= HE_PREP(DATA6_NSTS, status->rate->nss);
rate              458 net/mac80211/status.c 		he->data3 |= HE_PREP(DATA3_DATA_MCS, status->rate->mcs);
rate              459 net/mac80211/status.c 		he->data3 |= HE_PREP(DATA3_DATA_DCM, status->rate->he_dcm);
rate              461 net/mac80211/status.c 		he->data5 |= HE_PREP(DATA5_GI, status->rate->he_gi);
rate              463 net/mac80211/status.c 		switch (status->rate->bw) {
rate              494 net/mac80211/status.c 					     status->rate->he_ru_alloc + 4);
rate              497 net/mac80211/status.c 			WARN_ONCE(1, "Invalid SU BW %d\n", status->rate->bw);
rate              503 net/mac80211/status.c 	if ((status && status->rate) || info->status.rates[0].idx < 0)
rate               55 net/mac80211/tx.c 	int rate, mrate, erp, dur, i, shift = 0;
rate               65 net/mac80211/tx.c 	if (tx->rate.flags & (IEEE80211_TX_RC_MCS | IEEE80211_TX_RC_VHT_MCS))
rate               77 net/mac80211/tx.c 	if (WARN_ON_ONCE(tx->rate.idx < 0))
rate               81 net/mac80211/tx.c 	txrate = &sband->bitrates[tx->rate.idx];
rate              138 net/mac80211/tx.c 	rate = -1;
rate              151 net/mac80211/tx.c 			rate = DIV_ROUND_UP(r->bitrate, 1 << shift);
rate              176 net/mac80211/tx.c 	if (rate == -1) {
rate              179 net/mac80211/tx.c 		rate = DIV_ROUND_UP(mrate, 1 << shift);
rate              190 net/mac80211/tx.c 		dur = ieee80211_frame_duration(sband->band, 10, rate, erp,
rate              755 net/mac80211/tx.c 			struct ieee80211_tx_rate rate = {
rate              756 net/mac80211/tx.c 				.idx = ratetbl->rate[0].idx,
rate              757 net/mac80211/tx.c 				.flags = ratetbl->rate[0].flags,
rate              758 net/mac80211/tx.c 				.count = ratetbl->rate[0].count
rate              761 net/mac80211/tx.c 			if (ratetbl->rate[0].idx < 0)
rate              764 net/mac80211/tx.c 			tx->rate = rate;
rate              769 net/mac80211/tx.c 		tx->rate = info->control.rates[0];
rate              773 net/mac80211/tx.c 		txrc.reported_rate = tx->rate;
rate             2037 net/mac80211/tx.c 	u16 rate = 0;
rate             2096 net/mac80211/tx.c 			rate = *iterator.this_arg;
rate             2112 net/mac80211/tx.c 			rate = iterator.this_arg[2];
rate             2175 net/mac80211/tx.c 			info->control.rates[0].idx = rate;
rate             2181 net/mac80211/tx.c 				if (rate * 5 != sband->bitrates[i].bitrate)
rate               61 net/mac80211/util.c 			     int rate, int erp, int short_preamble,
rate              106 net/mac80211/util.c 					4 * rate); /* T_SYM x N_SYM */
rate              121 net/mac80211/util.c 		dur += DIV_ROUND_UP(8 * (len + 4) * 10, rate);
rate              132 net/mac80211/util.c 					struct ieee80211_rate *rate)
rate              144 net/mac80211/util.c 			erp = rate->flags & IEEE80211_RATE_ERP_G;
rate              148 net/mac80211/util.c 	dur = ieee80211_frame_duration(band, frame_len, rate->bitrate, erp,
rate              160 net/mac80211/util.c 	struct ieee80211_rate *rate;
rate              171 net/mac80211/util.c 	rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx];
rate              178 net/mac80211/util.c 			erp = rate->flags & IEEE80211_RATE_ERP_G;
rate              182 net/mac80211/util.c 	bitrate = DIV_ROUND_UP(rate->bitrate, 1 << shift);
rate              204 net/mac80211/util.c 	struct ieee80211_rate *rate;
rate              215 net/mac80211/util.c 	rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx];
rate              221 net/mac80211/util.c 			erp = rate->flags & IEEE80211_RATE_ERP_G;
rate              225 net/mac80211/util.c 	bitrate = DIV_ROUND_UP(rate->bitrate, 1 << shift);
rate             1946 net/mac80211/util.c 		u8 rate = 0;
rate             1950 net/mac80211/util.c 			rate = elems->supp_rates[i];
rate             1952 net/mac80211/util.c 			rate = elems->ext_supp_rates
rate             1954 net/mac80211/util.c 		own_rate = 5 * (rate & 0x7f);
rate             1955 net/mac80211/util.c 		is_basic = !!(rate & 0x80);
rate             1957 net/mac80211/util.c 		if (is_basic && (rate & 0x7f) == BSS_MEMBERSHIP_SELECTOR_HT_PHY)
rate             3077 net/mac80211/util.c 	int brate, rate, i, j, count = 0;
rate             3082 net/mac80211/util.c 		rate = srates[i] & 0x7f;
rate             3090 net/mac80211/util.c 			if (brate == rate) {
rate             3106 net/mac80211/util.c 	int rate, shift;
rate             3136 net/mac80211/util.c 		rate = DIV_ROUND_UP(sband->bitrates[i].bitrate,
rate             3138 net/mac80211/util.c 		*pos++ = basic | (u8) rate;
rate             3150 net/mac80211/util.c 	int rate, shift;
rate             3185 net/mac80211/util.c 			rate = DIV_ROUND_UP(sband->bitrates[i].bitrate,
rate             3187 net/mac80211/util.c 			*pos++ = basic | (u8) rate;
rate             3240 net/mac80211/util.c 	u16 rate;
rate             3300 net/mac80211/util.c 	rate = cfg80211_calculate_bitrate(&ri);
rate             3301 net/mac80211/util.c 	if (WARN_ONCE(!rate,
rate             3309 net/mac80211/util.c 		ts -= mpdu_len * 8 * 10 / rate;
rate             3311 net/mac80211/util.c 	ts += mpdu_offset * 8 * 10 / rate;
rate              100 net/netfilter/ipvs/ip_vs_est.c 	u64 rate;
rate              111 net/netfilter/ipvs/ip_vs_est.c 		rate = (s->kstats.conns - e->last_conns) << 9;
rate              113 net/netfilter/ipvs/ip_vs_est.c 		e->cps += ((s64)rate - (s64)e->cps) >> 2;
rate              115 net/netfilter/ipvs/ip_vs_est.c 		rate = (s->kstats.inpkts - e->last_inpkts) << 9;
rate              117 net/netfilter/ipvs/ip_vs_est.c 		e->inpps += ((s64)rate - (s64)e->inpps) >> 2;
rate              119 net/netfilter/ipvs/ip_vs_est.c 		rate = (s->kstats.outpkts - e->last_outpkts) << 9;
rate              121 net/netfilter/ipvs/ip_vs_est.c 		e->outpps += ((s64)rate - (s64)e->outpps) >> 2;
rate              124 net/netfilter/ipvs/ip_vs_est.c 		rate = (s->kstats.inbytes - e->last_inbytes) << 4;
rate              126 net/netfilter/ipvs/ip_vs_est.c 		e->inbps += ((s64)rate - (s64)e->inbps) >> 2;
rate              128 net/netfilter/ipvs/ip_vs_est.c 		rate = (s->kstats.outbytes - e->last_outbytes) << 4;
rate              130 net/netfilter/ipvs/ip_vs_est.c 		e->outbps += ((s64)rate - (s64)e->outbps) >> 2;
rate               22 net/netfilter/nft_limit.c 	u64		rate;
rate               63 net/netfilter/nft_limit.c 	limit->rate = be64_to_cpu(nla_get_be64(tb[NFTA_LIMIT_RATE]));
rate               66 net/netfilter/nft_limit.c 	if (limit->rate == 0 || limit->nsecs < unit)
rate               75 net/netfilter/nft_limit.c 	if (limit->rate + limit->burst < limit->rate)
rate               79 net/netfilter/nft_limit.c 		tokens = div_u64(limit->nsecs, limit->rate) * limit->burst;
rate               85 net/netfilter/nft_limit.c 		tokens = div_u64(limit->nsecs * (limit->rate + limit->burst),
rate               86 net/netfilter/nft_limit.c 				 limit->rate);
rate              110 net/netfilter/nft_limit.c 	if (nla_put_be64(skb, NFTA_LIMIT_RATE, cpu_to_be64(limit->rate),
rate              158 net/netfilter/nft_limit.c 	priv->cost = div64_u64(priv->limit.nsecs, priv->limit.rate);
rate              183 net/netfilter/nft_limit.c 	u64 cost = div64_u64(priv->nsecs * pkt->skb->len, priv->rate);
rate              260 net/netfilter/nft_limit.c 	priv->cost = div64_u64(priv->limit.nsecs, priv->limit.rate);
rate              287 net/netfilter/nft_limit.c 	u64 cost = div64_u64(priv->nsecs * pkt->skb->len, priv->rate);
rate              108 net/netfilter/xt_hashlimit.c 				u_int64_t rate;
rate              547 net/netfilter/xt_hashlimit.c 			 (delta * dh->rateinfo.rate));
rate              581 net/netfilter/xt_hashlimit.c 			dh->rateinfo.rate =
rate              585 net/netfilter/xt_hashlimit.c 					hinfo->cfg.burst * dh->rateinfo.rate;
rate              587 net/netfilter/xt_hashlimit.c 				dh->rateinfo.burst = dh->rateinfo.rate;
rate              589 net/netfilter/xt_hashlimit.c 			dh->rateinfo.rate = user2rate(hinfo->cfg.avg);
rate              591 net/netfilter/xt_hashlimit.c 				hinfo->cfg.burst + dh->rateinfo.rate;
rate              241 net/openvswitch/meter.c 		band->rate = nla_get_u32(attr[OVS_BAND_ATTR_RATE]);
rate              242 net/openvswitch/meter.c 		if (band->rate == 0) {
rate              254 net/openvswitch/meter.c 		band->bucket = (band->burst_size + band->rate) * 1000;
rate              255 net/openvswitch/meter.c 		band_max_delta_t = band->bucket / band->rate;
rate              493 net/openvswitch/meter.c 		max_bucket_size = (band->burst_size + band->rate) * 1000LL;
rate              495 net/openvswitch/meter.c 		band->bucket += delta_ms * band->rate;
rate              501 net/openvswitch/meter.c 		} else if (band->rate > band_exceeded_rate) {
rate              502 net/openvswitch/meter.c 			band_exceeded_rate = band->rate;
rate               24 net/openvswitch/meter.h 	u32 rate;
rate              106 net/sched/act_police.c 	if (parm->rate.rate) {
rate              108 net/sched/act_police.c 		R_tab = qdisc_get_rtab(&parm->rate, tb[TCA_POLICE_RATE], NULL);
rate              112 net/sched/act_police.c 		if (parm->peakrate.rate) {
rate              157 net/sched/act_police.c 			new->tcfp_mtu = 255 << R_tab->rate.cell_log;
rate              163 net/sched/act_police.c 		psched_ratecfg_precompute(&new->rate, &R_tab->rate, rate64);
rate              172 net/sched/act_police.c 		psched_ratecfg_precompute(&new->peak, &P_tab->rate, prate64);
rate              259 net/sched/act_police.c 		toks -= (s64)psched_l2t_ns(&p->rate, qdisc_pkt_len(skb));
rate              324 net/sched/act_police.c 		psched_ratecfg_getrate(&opt.rate, &p->rate);
rate              325 net/sched/act_police.c 		if ((police->params->rate.rate_bytes_ps >= (1ULL << 32)) &&
rate              327 net/sched/act_police.c 				      police->params->rate.rate_bytes_ps,
rate               44 net/sched/act_sample.c 	u32 psample_group_num, rate, index;
rate               86 net/sched/act_sample.c 	rate = nla_get_u32(tb[TCA_SAMPLE_RATE]);
rate               87 net/sched/act_sample.c 	if (!rate) {
rate              103 net/sched/act_sample.c 	s->rate = rate;
rate              175 net/sched/act_sample.c 	if (psample_group && (prandom_u32() % s->rate == 0)) {
rate              190 net/sched/act_sample.c 				      s->rate);
rate              220 net/sched/act_sample.c 	if (nla_put_u32(skb, TCA_SAMPLE_RATE, s->rate))
rate             3530 net/sched/cls_api.c 			entry->sample.rate = tcf_sample_rate(act);
rate              390 net/sched/sch_api.c 	if ((r->rate > (100000000/8)) || (rtab[0] == 0)) {
rate              412 net/sched/sch_api.c 	if (tab == NULL || r->rate == 0 || r->cell_log == 0 ||
rate              419 net/sched/sch_api.c 		if (!memcmp(&rtab->rate, r, sizeof(struct tc_ratespec)) &&
rate              428 net/sched/sch_api.c 		rtab->rate = *r;
rate             2191 net/sched/sch_cake.c static void cake_set_rate(struct cake_tin_data *b, u64 rate, u32 mtu,
rate             2204 net/sched/sch_cake.c 	if (rate) {
rate             2205 net/sched/sch_cake.c 		b->flow_quantum = max(min(rate >> 12, 1514ULL), 300ULL);
rate             2208 net/sched/sch_cake.c 		rate_ns = div64_u64(rate_ns, max(MIN_RATE, rate));
rate             2215 net/sched/sch_cake.c 	b->tin_rate_bps  = rate;
rate             2235 net/sched/sch_cake.c 	u64 rate = q->rate_bps;
rate             2242 net/sched/sch_cake.c 	cake_set_rate(b, rate, mtu,
rate             2255 net/sched/sch_cake.c 	u64 rate = q->rate_bps;
rate             2267 net/sched/sch_cake.c 		cake_set_rate(b, rate, mtu, us_to_ns(q->target),
rate             2274 net/sched/sch_cake.c 		rate  *= 7;
rate             2275 net/sched/sch_cake.c 		rate >>= 3;
rate             2349 net/sched/sch_cake.c 	u64 rate = q->rate_bps;
rate             2364 net/sched/sch_cake.c 		cake_set_rate(b, rate, mtu, us_to_ns(q->target),
rate             2371 net/sched/sch_cake.c 		rate  *= 7;
rate             2372 net/sched/sch_cake.c 		rate >>= 3;
rate             2398 net/sched/sch_cake.c 	u64 rate = q->rate_bps;
rate             2408 net/sched/sch_cake.c 	cake_set_rate(&q->tins[0], rate, mtu,
rate             2410 net/sched/sch_cake.c 	cake_set_rate(&q->tins[1], rate >> 4, mtu,
rate             2412 net/sched/sch_cake.c 	cake_set_rate(&q->tins[2], rate >> 1, mtu,
rate             2414 net/sched/sch_cake.c 	cake_set_rate(&q->tins[3], rate >> 2, mtu,
rate             2441 net/sched/sch_cake.c 	u64 rate = q->rate_bps;
rate             2451 net/sched/sch_cake.c 	cake_set_rate(&q->tins[0], rate, mtu,
rate             2453 net/sched/sch_cake.c 	cake_set_rate(&q->tins[1], rate >> 4, mtu,
rate             2455 net/sched/sch_cake.c 	cake_set_rate(&q->tins[2], rate >> 2, mtu,
rate             1207 net/sched/sch_cbq.c 	q->link.weight = q->link.R_tab->rate.rate;
rate             1236 net/sched/sch_cbq.c 	if (nla_put(skb, TCA_CBQ_RATE, sizeof(cl->R_tab->rate), &cl->R_tab->rate))
rate             1647 net/sched/sch_cbq.c 	cl->weight = cl->R_tab->rate.rate;
rate              488 net/sched/sch_fq.c 	unsigned long rate;
rate              558 net/sched/sch_fq.c 	rate = q->flow_max_rate;
rate              566 net/sched/sch_fq.c 			rate = min(skb->sk->sk_pacing_rate, rate);
rate              568 net/sched/sch_fq.c 		if (rate <= q->low_rate_threshold) {
rate              576 net/sched/sch_fq.c 	if (rate != ~0UL) {
rate              579 net/sched/sch_fq.c 		if (likely(rate))
rate              580 net/sched/sch_fq.c 			len = div64_ul(len, rate);
rate              807 net/sched/sch_fq.c 		u32 rate = nla_get_u32(tb[TCA_FQ_FLOW_MAX_RATE]);
rate              809 net/sched/sch_fq.c 		q->flow_max_rate = (rate == ~0U) ? ~0UL : rate;
rate             1323 net/sched/sch_generic.c 	r->rate_bytes_ps = max_t(u64, conf->rate, rate64);
rate               96 net/sched/sch_htb.c 	struct psched_ratecfg	rate;
rate              624 net/sched/sch_htb.c 	toks -= (s64) psched_l2t_ns(&cl->rate, bytes);
rate             1095 net/sched/sch_htb.c 	psched_ratecfg_getrate(&opt.rate, &cl->rate);
rate             1104 net/sched/sch_htb.c 	if ((cl->rate.rate_bytes_ps >= (1ULL << 32)) &&
rate             1105 net/sched/sch_htb.c 	    nla_put_u64_64bit(skb, TCA_HTB_RATE64, cl->rate.rate_bytes_ps,
rate             1326 net/sched/sch_htb.c 	if (!hopt->rate.rate || !hopt->ceil.rate)
rate             1330 net/sched/sch_htb.c 	if (hopt->rate.linklayer == TC_LINKLAYER_UNAWARE)
rate             1331 net/sched/sch_htb.c 		qdisc_put_rtab(qdisc_get_rtab(&hopt->rate, tb[TCA_HTB_RTAB],
rate             1454 net/sched/sch_htb.c 	psched_ratecfg_precompute(&cl->rate, &hopt->rate, rate64);
rate             1461 net/sched/sch_htb.c 		u64 quantum = cl->rate.rate_bytes_ps;
rate               96 net/sched/sch_netem.c 	u64 rate;
rate              357 net/sched/sch_netem.c 	return div64_u64(len * NSEC_PER_SEC, q->rate);
rate              470 net/sched/sch_netem.c 	if (q->latency || q->jitter || q->rate)
rate              541 net/sched/sch_netem.c 		if (q->rate) {
rate              853 net/sched/sch_netem.c 	q->rate = r->rate;
rate             1025 net/sched/sch_netem.c 		q->rate = max_t(u64, q->rate,
rate             1139 net/sched/sch_netem.c 	struct tc_netem_rate rate;
rate             1175 net/sched/sch_netem.c 	if (q->rate >= (1ULL << 32)) {
rate             1176 net/sched/sch_netem.c 		if (nla_put_u64_64bit(skb, TCA_NETEM_RATE64, q->rate,
rate             1179 net/sched/sch_netem.c 		rate.rate = ~0U;
rate             1181 net/sched/sch_netem.c 		rate.rate = q->rate;
rate             1183 net/sched/sch_netem.c 	rate.packet_overhead = q->packet_overhead;
rate             1184 net/sched/sch_netem.c 	rate.cell_size = q->cell_size;
rate             1185 net/sched/sch_netem.c 	rate.cell_overhead = q->cell_overhead;
rate             1186 net/sched/sch_netem.c 	if (nla_put(skb, TCA_NETEM_RATE, sizeof(rate), &rate))
rate              102 net/sched/sch_tbf.c 	struct psched_ratecfg rate;
rate              234 net/sched/sch_tbf.c 		toks -= (s64) psched_l2t_ns(&q->rate, len);
rate              300 net/sched/sch_tbf.c 	struct psched_ratecfg rate;
rate              316 net/sched/sch_tbf.c 	if (qopt->rate.linklayer == TC_LINKLAYER_UNAWARE)
rate              317 net/sched/sch_tbf.c 		qdisc_put_rtab(qdisc_get_rtab(&qopt->rate,
rate              331 net/sched/sch_tbf.c 	psched_ratecfg_precompute(&rate, &qopt->rate, rate64);
rate              335 net/sched/sch_tbf.c 		buffer = psched_l2t_ns(&rate, max_size);
rate              337 net/sched/sch_tbf.c 		max_size = min_t(u64, psched_ns_t2l(&rate, buffer), ~0U);
rate              340 net/sched/sch_tbf.c 	if (qopt->peakrate.rate) {
rate              344 net/sched/sch_tbf.c 		if (peak.rate_bytes_ps <= rate.rate_bytes_ps) {
rate              346 net/sched/sch_tbf.c 					peak.rate_bytes_ps, rate.rate_bytes_ps);
rate              407 net/sched/sch_tbf.c 	memcpy(&q->rate, &rate, sizeof(struct psched_ratecfg));
rate              452 net/sched/sch_tbf.c 	psched_ratecfg_getrate(&opt.rate, &q->rate);
rate              461 net/sched/sch_tbf.c 	if (q->rate.rate_bytes_ps >= (1ULL << 32) &&
rate              462 net/sched/sch_tbf.c 	    nla_put_u64_64bit(skb, TCA_TBF_RATE64, q->rate.rate_bytes_ps,
rate             1569 net/wireless/nl80211.c 	struct ieee80211_rate *rate;
rate             1640 net/wireless/nl80211.c 		rate = &sband->bitrates[i];
rate             1642 net/wireless/nl80211.c 				rate->bitrate))
rate             1644 net/wireless/nl80211.c 		if ((rate->flags & IEEE80211_RATE_SHORT_PREAMBLE) &&
rate             4118 net/wireless/nl80211.c 		int rate = (rates[i] & 0x7f) * 5;
rate             4124 net/wireless/nl80211.c 			if (rate == srate->bitrate) {
rate             4351 net/wireless/nl80211.c 	u32 rate = beacon_rate->control[band].legacy;
rate             4354 net/wireless/nl80211.c 	if (hweight32(rate) > 1)
rate             4366 net/wireless/nl80211.c 		if (count_ht && rate)
rate             4379 net/wireless/nl80211.c 		if (count_vht && rate)
rate             4383 net/wireless/nl80211.c 	if ((count_ht && count_vht) || (!rate && !count_ht && !count_vht))
rate             4386 net/wireless/nl80211.c 	if (rate &&
rate             4954 net/wireless/nl80211.c 	struct nlattr *rate;
rate             4959 net/wireless/nl80211.c 	rate = nla_nest_start_noflag(msg, attr);
rate             4960 net/wireless/nl80211.c 	if (!rate)
rate             5033 net/wireless/nl80211.c 	nla_nest_end(msg, rate);
rate             10792 net/wireless/nl80211.c 			       u32 rate, u32 pkts, u32 intvl)
rate             10798 net/wireless/nl80211.c 	if (rate > 100 || intvl > NL80211_CQM_TXE_MAX_INTVL)
rate             10808 net/wireless/nl80211.c 	return rdev_set_cqm_txe_config(rdev, dev, rate, pkts, intvl);
rate             10975 net/wireless/nl80211.c 		u32 rate = nla_get_u32(attrs[NL80211_ATTR_CQM_TXE_RATE]);
rate             10979 net/wireless/nl80211.c 		return nl80211_set_cqm_txe(info, rate, pkts, intvl);
rate             16066 net/wireless/nl80211.c 			     u32 rate, u32 intvl, gfp_t gfp)
rate             16077 net/wireless/nl80211.c 	if (nla_put_u32(msg, NL80211_ATTR_CQM_TXE_RATE, rate))
rate              798 net/wireless/rdev-ops.h 			struct net_device *dev, u32 rate, u32 pkts, u32 intvl)
rate              801 net/wireless/rdev-ops.h 	trace_rdev_set_cqm_txe_config(&rdev->wiphy, dev, rate, pkts, intvl);
rate              802 net/wireless/rdev-ops.h 	ret = rdev->ops->set_cqm_txe_config(&rdev->wiphy, dev, rate, pkts,
rate             1388 net/wireless/trace.h 	TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 rate,
rate             1390 net/wireless/trace.h 	TP_ARGS(wiphy, netdev, rate, pkts, intvl),
rate             1394 net/wireless/trace.h 		__field(u32, rate)
rate             1401 net/wireless/trace.h 		__entry->rate = rate;
rate             1406 net/wireless/trace.h 		  WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->rate, __entry->pkts,
rate             1023 net/wireless/util.c static u32 cfg80211_calculate_bitrate_ht(struct rate_info *rate)
rate             1028 net/wireless/util.c 	if (WARN_ON_ONCE(rate->mcs >= 32))
rate             1031 net/wireless/util.c 	modulation = rate->mcs & 7;
rate             1032 net/wireless/util.c 	streams = (rate->mcs >> 3) + 1;
rate             1034 net/wireless/util.c 	bitrate = (rate->bw == RATE_INFO_BW_40) ? 13500000 : 6500000;
rate             1045 net/wireless/util.c 	if (rate->flags & RATE_INFO_FLAGS_SHORT_GI)
rate             1052 net/wireless/util.c static u32 cfg80211_calculate_bitrate_dmg(struct rate_info *rate)
rate             1093 net/wireless/util.c 	if (WARN_ON_ONCE(rate->mcs >= ARRAY_SIZE(__mcs2bitrate)))
rate             1096 net/wireless/util.c 	return __mcs2bitrate[rate->mcs];
rate             1099 net/wireless/util.c static u32 cfg80211_calculate_bitrate_edmg(struct rate_info *rate)
rate             1127 net/wireless/util.c 	if (WARN_ON_ONCE(rate->mcs >= ARRAY_SIZE(__mcs2bitrate)))
rate             1130 net/wireless/util.c 	return __mcs2bitrate[rate->mcs] * rate->n_bonded_ch;
rate             1133 net/wireless/util.c static u32 cfg80211_calculate_bitrate_vht(struct rate_info *rate)
rate             1185 net/wireless/util.c 	if (rate->mcs > 9)
rate             1188 net/wireless/util.c 	switch (rate->bw) {
rate             1206 net/wireless/util.c 	bitrate = base[idx][rate->mcs];
rate             1207 net/wireless/util.c 	bitrate *= rate->nss;
rate             1209 net/wireless/util.c 	if (rate->flags & RATE_INFO_FLAGS_SHORT_GI)
rate             1216 net/wireless/util.c 		  rate->bw, rate->mcs, rate->nss);
rate             1220 net/wireless/util.c static u32 cfg80211_calculate_bitrate_he(struct rate_info *rate)
rate             1247 net/wireless/util.c 	if (WARN_ON_ONCE(rate->mcs > 11))
rate             1250 net/wireless/util.c 	if (WARN_ON_ONCE(rate->he_gi > NL80211_RATE_INFO_HE_GI_3_2))
rate             1252 net/wireless/util.c 	if (WARN_ON_ONCE(rate->he_ru_alloc >
rate             1255 net/wireless/util.c 	if (WARN_ON_ONCE(rate->nss < 1 || rate->nss > 8))
rate             1258 net/wireless/util.c 	if (rate->bw == RATE_INFO_BW_160)
rate             1259 net/wireless/util.c 		result = rates_160M[rate->he_gi];
rate             1260 net/wireless/util.c 	else if (rate->bw == RATE_INFO_BW_80 ||
rate             1261 net/wireless/util.c 		 (rate->bw == RATE_INFO_BW_HE_RU &&
rate             1262 net/wireless/util.c 		  rate->he_ru_alloc == NL80211_RATE_INFO_HE_RU_ALLOC_996))
rate             1263 net/wireless/util.c 		result = rates_969[rate->he_gi];
rate             1264 net/wireless/util.c 	else if (rate->bw == RATE_INFO_BW_40 ||
rate             1265 net/wireless/util.c 		 (rate->bw == RATE_INFO_BW_HE_RU &&
rate             1266 net/wireless/util.c 		  rate->he_ru_alloc == NL80211_RATE_INFO_HE_RU_ALLOC_484))
rate             1267 net/wireless/util.c 		result = rates_484[rate->he_gi];
rate             1268 net/wireless/util.c 	else if (rate->bw == RATE_INFO_BW_20 ||
rate             1269 net/wireless/util.c 		 (rate->bw == RATE_INFO_BW_HE_RU &&
rate             1270 net/wireless/util.c 		  rate->he_ru_alloc == NL80211_RATE_INFO_HE_RU_ALLOC_242))
rate             1271 net/wireless/util.c 		result = rates_242[rate->he_gi];
rate             1272 net/wireless/util.c 	else if (rate->bw == RATE_INFO_BW_HE_RU &&
rate             1273 net/wireless/util.c 		 rate->he_ru_alloc == NL80211_RATE_INFO_HE_RU_ALLOC_106)
rate             1274 net/wireless/util.c 		result = rates_106[rate->he_gi];
rate             1275 net/wireless/util.c 	else if (rate->bw == RATE_INFO_BW_HE_RU &&
rate             1276 net/wireless/util.c 		 rate->he_ru_alloc == NL80211_RATE_INFO_HE_RU_ALLOC_52)
rate             1277 net/wireless/util.c 		result = rates_52[rate->he_gi];
rate             1278 net/wireless/util.c 	else if (rate->bw == RATE_INFO_BW_HE_RU &&
rate             1279 net/wireless/util.c 		 rate->he_ru_alloc == NL80211_RATE_INFO_HE_RU_ALLOC_26)
rate             1280 net/wireless/util.c 		result = rates_26[rate->he_gi];
rate             1283 net/wireless/util.c 		     rate->bw, rate->he_ru_alloc);
rate             1290 net/wireless/util.c 	do_div(tmp, mcs_divisors[rate->mcs]);
rate             1294 net/wireless/util.c 	result = (result * rate->nss) / 8;
rate             1295 net/wireless/util.c 	if (rate->he_dcm)
rate             1301 net/wireless/util.c u32 cfg80211_calculate_bitrate(struct rate_info *rate)
rate             1303 net/wireless/util.c 	if (rate->flags & RATE_INFO_FLAGS_MCS)
rate             1304 net/wireless/util.c 		return cfg80211_calculate_bitrate_ht(rate);
rate             1305 net/wireless/util.c 	if (rate->flags & RATE_INFO_FLAGS_DMG)
rate             1306 net/wireless/util.c 		return cfg80211_calculate_bitrate_dmg(rate);
rate             1307 net/wireless/util.c 	if (rate->flags & RATE_INFO_FLAGS_EDMG)
rate             1308 net/wireless/util.c 		return cfg80211_calculate_bitrate_edmg(rate);
rate             1309 net/wireless/util.c 	if (rate->flags & RATE_INFO_FLAGS_VHT_MCS)
rate             1310 net/wireless/util.c 		return cfg80211_calculate_bitrate_vht(rate);
rate             1311 net/wireless/util.c 	if (rate->flags & RATE_INFO_FLAGS_HE_MCS)
rate             1312 net/wireless/util.c 		return cfg80211_calculate_bitrate_he(rate);
rate             1314 net/wireless/util.c 	return rate->legacy;
rate             1865 net/wireless/util.c 		int rate = (rates[i] & 0x7f) * 5;
rate             1869 net/wireless/util.c 			if (sband->bitrates[j].bitrate == rate) {
rate             1200 net/wireless/wext-compat.c 				 struct iw_param *rate, char *extra)
rate             1217 net/wireless/wext-compat.c 	if (rate->value < 0) {
rate             1219 net/wireless/wext-compat.c 	} else if (rate->fixed) {
rate             1220 net/wireless/wext-compat.c 		fixed = rate->value / 100000;
rate             1222 net/wireless/wext-compat.c 		maxrate = rate->value / 100000;
rate             1251 net/wireless/wext-compat.c 				 struct iw_param *rate, char *extra)
rate             1284 net/wireless/wext-compat.c 	rate->value = 100000 * cfg80211_calculate_bitrate(&sinfo.txrate);
rate               58 samples/bpf/hbm.c int rate = 1000;		/* can grow if rate conserving is enabled */
rate              189 samples/bpf/hbm.c 	qstats.rate = rate;
rate              252 samples/bpf/hbm.c 			       rate/1000.0);
rate              268 samples/bpf/hbm.c 				rate_diff100 = (((long long)rate)*1000000 -
rate              270 samples/bpf/hbm.c 					(((long long) rate) * 1000000);
rate              273 samples/bpf/hbm.c 					rate += (rate >> 4);
rate              274 samples/bpf/hbm.c 					if (rate > RATE_THRESHOLD / 1000000)
rate              275 samples/bpf/hbm.c 						rate = RATE_THRESHOLD / 1000000;
rate              276 samples/bpf/hbm.c 					qstats.rate = rate;
rate              287 samples/bpf/hbm.c 				rate -= (rate >> 3);
rate              288 samples/bpf/hbm.c 				if (rate < minRate)
rate              289 samples/bpf/hbm.c 					rate = minRate;
rate              290 samples/bpf/hbm.c 				qstats.rate = rate;
rate              469 samples/bpf/hbm.c 			rate = minRate;
rate               16 samples/bpf/hbm.h 	unsigned int rate;		/* In bytes per NS << 20 */
rate               20 samples/bpf/hbm.h 	unsigned long rate;		/* in Mbps*/
rate              101 samples/bpf/hbm_edt_kern.c 	delta_send = BYTES_TO_NS(len, qdp->rate);
rate              110 samples/bpf/hbm_edt_kern.c 	if (qsp != NULL && (qsp->rate * 128) != qdp->rate)
rate              111 samples/bpf/hbm_edt_kern.c 		qdp->rate = qsp->rate * 128;
rate               58 samples/bpf/hbm_kern.h #define CREDIT_PER_NS(delta, rate) ((((u64)(delta)) * (rate)) >> 20)
rate               59 samples/bpf/hbm_kern.h #define BYTES_PER_NS(delta, rate) ((((u64)(delta)) * (rate)) >> 20)
rate               60 samples/bpf/hbm_kern.h #define BYTES_TO_NS(bytes, rate) div64_u64(((u64)(bytes)) << 20, (u64)(rate))
rate              140 samples/bpf/hbm_kern.h static __always_inline void hbm_init_vqueue(struct hbm_vqueue *qdp, int rate)
rate              142 samples/bpf/hbm_kern.h 	bpf_printk("Initializing queue_state, rate:%d\n", rate * 128);
rate              145 samples/bpf/hbm_kern.h 	qdp->rate = rate * 128;
rate              149 samples/bpf/hbm_kern.h 						int rate)
rate              154 samples/bpf/hbm_kern.h 	bpf_printk("Initializing queue_state, rate:%d\n", rate * 128);
rate              157 samples/bpf/hbm_kern.h 	qdp->rate = rate * 128;
rate              103 samples/bpf/hbm_out_kern.c 		new_credit = credit + CREDIT_PER_NS(delta, qdp->rate);
rate              115 samples/bpf/hbm_out_kern.c 	if (qsp != NULL && (qsp->rate * 128) != qdp->rate) {
rate              116 samples/bpf/hbm_out_kern.c 		qdp->rate = qsp->rate * 128;
rate              118 samples/bpf/hbm_out_kern.c 			   (int)qdp->rate,
rate              119 samples/bpf/hbm_out_kern.c 			   CREDIT_PER_NS(1000000000, qdp->rate) * 8);
rate              715 sound/aoa/codecs/onyx.c 	switch (substream->runtime->rate) {
rate               72 sound/aoa/soundbus/i2sbus/i2sbus.h 	unsigned int rate;
rate               34 sound/aoa/soundbus/i2sbus/pcm.c static int clock_and_divisors(int mclk, int sclk, int rate, int *out)
rate               43 sound/aoa/soundbus/i2sbus/pcm.c 	if (I2S_CLOCK_SPEED_18MHz % (rate * mclk) == 0) {
rate               44 sound/aoa/soundbus/i2sbus/pcm.c 		if (!i2s_sf_mclkdiv(I2S_CLOCK_SPEED_18MHz / (rate * mclk), out)) {
rate               49 sound/aoa/soundbus/i2sbus/pcm.c 	if (I2S_CLOCK_SPEED_45MHz % (rate * mclk) == 0) {
rate               50 sound/aoa/soundbus/i2sbus/pcm.c 		if (!i2s_sf_mclkdiv(I2S_CLOCK_SPEED_45MHz / (rate * mclk), out)) {
rate               55 sound/aoa/soundbus/i2sbus/pcm.c 	if (I2S_CLOCK_SPEED_49MHz % (rate * mclk) == 0) {
rate               56 sound/aoa/soundbus/i2sbus/pcm.c 		if (!i2s_sf_mclkdiv(I2S_CLOCK_SPEED_49MHz / (rate * mclk), out)) {
rate               64 sound/aoa/soundbus/i2sbus/pcm.c #define CHECK_RATE(rate)						\
rate               65 sound/aoa/soundbus/i2sbus/pcm.c 	do { if (rates & SNDRV_PCM_RATE_ ##rate) {			\
rate               68 sound/aoa/soundbus/i2sbus/pcm.c 				       bus_factor, rate, &dummy))	\
rate               69 sound/aoa/soundbus/i2sbus/pcm.c 			rates &= ~SNDRV_PCM_RATE_ ##rate;		\
rate              183 sound/aoa/soundbus/i2sbus/pcm.c 		hw->rate_min = i2sdev->rate;
rate              184 sound/aoa/soundbus/i2sbus/pcm.c 		hw->rate_max = i2sdev->rate;
rate              364 sound/aoa/soundbus/i2sbus/pcm.c 	     || (i2sdev->rate != runtime->rate))) {
rate              370 sound/aoa/soundbus/i2sbus/pcm.c 	i2sdev->rate = runtime->rate;
rate              448 sound/aoa/soundbus/i2sbus/pcm.c 			       runtime->rate,
rate              506 sound/arm/aaci.c 	unsigned int rate = params_rate(params);
rate              507 sound/arm/aaci.c 	int dbl = rate > 48000;
rate              525 sound/arm/aaci.c 		err = snd_ac97_pcm_open(aacirun->pcm, rate, channels,
rate              729 sound/arm/aaci.c 	aaci_ac97_write(aaci->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate);
rate              730 sound/arm/aaci.c 	aaci_ac97_write(aaci->ac97, AC97_PCM_MIC_ADC_RATE, runtime->rate);
rate              114 sound/arm/pxa2xx-ac97.c 	return snd_ac97_set_rate(pxa2xx_ac97_ac97, reg, runtime->rate);
rate              255 sound/atmel/ac97c.c 	if (runtime->rate != 48000) {
rate              266 sound/atmel/ac97c.c 			runtime->rate);
rate              269 sound/atmel/ac97c.c 				runtime->rate);
rate              337 sound/atmel/ac97c.c 	if (runtime->rate != 48000) {
rate              348 sound/atmel/ac97c.c 			runtime->rate);
rate              351 sound/atmel/ac97c.c 				runtime->rate);
rate               76 sound/core/oss/copy.c 	if (snd_BUG_ON(src_format->rate != dst_format->rate))
rate              122 sound/core/oss/io.c 	format.rate = params_rate(params);
rate              162 sound/core/oss/linear.c 	if (snd_BUG_ON(src_format->rate != dst_format->rate))
rate              315 sound/core/oss/mulaw.c 	if (snd_BUG_ON(src_format->rate != dst_format->rate))
rate              776 sound/core/oss/pcm_oss.c 	unsigned int rate, prev;
rate              785 sound/core/oss/pcm_oss.c 	rate = best_rate;
rate              787 sound/core/oss/pcm_oss.c 		if (it->max < rate || (it->max == rate && it->openmax))
rate              789 sound/core/oss/pcm_oss.c 		if (it->min < rate || (it->min == rate && !it->openmin)) {
rate              793 sound/core/oss/pcm_oss.c 						   rate, 0);
rate              794 sound/core/oss/pcm_oss.c 			if (ret == (int)rate) {
rate              796 sound/core/oss/pcm_oss.c 				return rate;
rate              800 sound/core/oss/pcm_oss.c 		prev = rate;
rate              801 sound/core/oss/pcm_oss.c 		rate += best_rate;
rate              802 sound/core/oss/pcm_oss.c 		if (rate <= prev)
rate              875 sound/core/oss/pcm_oss.c 	choose_rate(substream, sparams, runtime->oss.rate);
rate              916 sound/core/oss/pcm_oss.c 				      runtime->oss.rate, 0);
rate             1049 sound/core/oss/pcm_oss.c 	runtime->oss.rate = params_rate(params);
rate             1721 sound/core/oss/pcm_oss.c static int snd_pcm_oss_set_rate(struct snd_pcm_oss_file *pcm_oss_file, int rate)
rate             1733 sound/core/oss/pcm_oss.c 		if (rate < 1000)
rate             1734 sound/core/oss/pcm_oss.c 			rate = 1000;
rate             1735 sound/core/oss/pcm_oss.c 		else if (rate > 192000)
rate             1736 sound/core/oss/pcm_oss.c 			rate = 192000;
rate             1740 sound/core/oss/pcm_oss.c 		if (runtime->oss.rate != rate) {
rate             1742 sound/core/oss/pcm_oss.c 			runtime->oss.rate = rate;
rate             1756 sound/core/oss/pcm_oss.c 	return substream->runtime->oss.rate;
rate             2340 sound/core/oss/pcm_oss.c 	runtime->oss.rate = 8000;
rate              408 sound/core/oss/pcm_plugin.c 		dstformat.rate = params_rate(slave_params);
rate              411 sound/core/oss/pcm_plugin.c 		srcformat.rate = params_rate(params);
rate              419 sound/core/oss/pcm_plugin.c 		dstformat.rate = params_rate(params);
rate              422 sound/core/oss/pcm_plugin.c 		srcformat.rate = params_rate(slave_params);
rate              436 sound/core/oss/pcm_plugin.c 		 srcformat.rate,
rate              440 sound/core/oss/pcm_plugin.c 		 dstformat.rate,
rate              444 sound/core/oss/pcm_plugin.c 	if (! rate_match(srcformat.rate, dstformat.rate) &&
rate              480 sound/core/oss/pcm_plugin.c 	if (!rate_match(srcformat.rate, dstformat.rate)) {
rate              497 sound/core/oss/pcm_plugin.c 		tmpformat.rate = dstformat.rate;
rate              501 sound/core/oss/pcm_plugin.c 		pdprintf("rate down resampling: src=%i, dst=%i returns %i\n", srcformat.rate, tmpformat.rate, err);
rate               35 sound/core/oss/pcm_plugin.h 	unsigned int rate;
rate              193 sound/core/oss/rate.c 	if (plugin->src_format.rate < plugin->dst_format.rate) {
rate              226 sound/core/oss/rate.c 	if (plugin->src_format.rate < plugin->dst_format.rate) {
rate              321 sound/core/oss/rate.c 	if (snd_BUG_ON(src_format->rate == dst_format->rate))
rate              332 sound/core/oss/rate.c 	if (src_format->rate < dst_format->rate) {
rate              333 sound/core/oss/rate.c 		data->pitch = ((src_format->rate << SHIFT) + (dst_format->rate >> 1)) / dst_format->rate;
rate              336 sound/core/oss/rate.c 		data->pitch = ((dst_format->rate << SHIFT) + (src_format->rate >> 1)) / src_format->rate;
rate               98 sound/core/oss/route.c 	if (snd_BUG_ON(src_format->rate != dst_format->rate))
rate              396 sound/core/pcm.c 	snd_iprintf(buffer, "rate: %u (%u/%u)\n", runtime->rate, runtime->rate_num, runtime->rate_den);	
rate              403 sound/core/pcm.c 		snd_iprintf(buffer, "OSS rate: %u\n", runtime->oss.rate);
rate               12 sound/core/pcm_iec958.c static int create_iec958_consumer(uint rate, uint sample_width,
rate               20 sound/core/pcm_iec958.c 	switch (rate) {
rate               98 sound/core/pcm_iec958.c 	return create_iec958_consumer(runtime->rate,
rate              231 sound/core/pcm_lib.c 				runtime->rate);
rate              346 sound/core/pcm_lib.c 		hdelta = jdelta - delta * HZ / runtime->rate;
rate              385 sound/core/pcm_lib.c 	if (((hdelta * HZ) / runtime->rate) > jdelta + HZ/100) {
rate              387 sound/core/pcm_lib.c 			(((runtime->period_size * HZ) / runtime->rate)
rate              407 sound/core/pcm_lib.c 			     ((hdelta * HZ) / runtime->rate), hw_base,
rate             1478 sound/core/pcm_lib.c 	struct snd_interval *rate;
rate             1480 sound/core/pcm_lib.c 	rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
rate             1481 sound/core/pcm_lib.c 	return snd_interval_list(rate, 1, &base_rate, 0);
rate             1838 sound/core/pcm_lib.c 			if (runtime->rate) {
rate             1840 sound/core/pcm_lib.c 					 runtime->rate;
rate              510 sound/core/pcm_misc.c unsigned int snd_pcm_rate_to_rate_bit(unsigned int rate)
rate              515 sound/core/pcm_misc.c 		if (snd_pcm_known_rates.list[i] == rate)
rate              540 sound/core/pcm_native.c 	if (! runtime->rate)
rate              544 sound/core/pcm_native.c 	usecs = (750000 / runtime->rate) * runtime->period_size;
rate              545 sound/core/pcm_native.c 	usecs += ((750000 % runtime->rate) * runtime->period_size) /
rate              546 sound/core/pcm_native.c 		runtime->rate;
rate              684 sound/core/pcm_native.c 	runtime->rate = params_rate(params);
rate             1243 sound/core/pcm_native.c 							    runtime->rate;
rate             1897 sound/core/pcm_native.c 			if (runtime->rate) {
rate             1898 sound/core/pcm_native.c 				long t = runtime->period_size * 2 / runtime->rate;
rate               21 sound/core/pcm_timer.c 	unsigned long rate, mult, fsize, l, post;
rate               25 sound/core/pcm_timer.c 	rate = runtime->rate;
rate               26 sound/core/pcm_timer.c 	if (snd_BUG_ON(!rate))
rate               28 sound/core/pcm_timer.c 	l = gcd(mult, rate);
rate               30 sound/core/pcm_timer.c 	rate /= l;
rate               34 sound/core/pcm_timer.c 	l = gcd(rate, fsize);
rate               35 sound/core/pcm_timer.c 	rate /= l;
rate               42 sound/core/pcm_timer.c 	if (rate == 0) {
rate               45 sound/core/pcm_timer.c 			runtime->rate, runtime->period_size);
rate               49 sound/core/pcm_timer.c 	runtime->timer_resolution = (mult * fsize / rate) * post;
rate               74 sound/drivers/aloop.c 	unsigned int rate;
rate              207 sound/drivers/aloop.c 		runtime->rate != cruntime->rate ||
rate              226 sound/drivers/aloop.c 		if (setup->rate != runtime->rate) {
rate              229 sound/drivers/aloop.c 			setup->rate = runtime->rate;
rate              311 sound/drivers/aloop.c 	cable->hw.rate_min = runtime->rate;
rate              312 sound/drivers/aloop.c 	cable->hw.rate_max = runtime->rate;
rate              328 sound/drivers/aloop.c 	bps = salign * runtime->rate;
rate              932 sound/drivers/aloop.c 			       [kcontrol->id.device].rate;
rate             1028 sound/drivers/aloop.c 			setup->rate = 48000;
rate              231 sound/drivers/dummy.c 	unsigned int rate;
rate              239 sound/drivers/dummy.c 		(dpcm->frac_period_rest + dpcm->rate - 1) / dpcm->rate);
rate              250 sound/drivers/dummy.c 	delta *= dpcm->rate;
rate              286 sound/drivers/dummy.c 	dpcm->rate = runtime->rate;
rate              421 sound/drivers/dummy.c 	delta = div_u64(delta * runtime->rate + 999999, 1000000);
rate              430 sound/drivers/dummy.c 	unsigned int period, rate;
rate              436 sound/drivers/dummy.c 	rate = runtime->rate;
rate              437 sound/drivers/dummy.c 	sec = period / rate;
rate              438 sound/drivers/dummy.c 	period %= rate;
rate              439 sound/drivers/dummy.c 	nsecs = div_u64((u64)period * 1000000000UL + rate - 1, rate);
rate              621 sound/drivers/ml403-ac97cr.c 			  runtime->rate);
rate              622 sound/drivers/ml403-ac97cr.c 	PDEBUG(WORK_INFO, "prepare(): rate=%d\n", runtime->rate);
rate              655 sound/drivers/ml403-ac97cr.c 			  runtime->rate);
rate              656 sound/drivers/ml403-ac97cr.c 	PDEBUG(WORK_INFO, "prepare(capture): rate=%d\n", runtime->rate);
rate               46 sound/drivers/pcm-indirect2.c 		 rec->bytes2hw, rec->bytes2hw / 2 / 2 / runtime->rate);
rate               54 sound/drivers/pcm-indirect2.c 		   runtime->rate,
rate              160 sound/drivers/vx/vx_pcm.c 	if (runtime->rate < 32000 && runtime->rate > 11025)
rate              162 sound/drivers/vx/vx_pcm.c 	else if (runtime->rate <= 11025)
rate              826 sound/drivers/vx/vx_pcm.c 	if (chip->pcm_running && chip->freq != runtime->rate) {
rate              828 sound/drivers/vx/vx_pcm.c 			   "from the current %d\n", runtime->rate, chip->freq);
rate              831 sound/drivers/vx/vx_pcm.c 	vx_set_clock(chip, runtime->rate);
rate               55 sound/firewire/amdtp-am824.c int amdtp_am824_set_parameters(struct amdtp_stream *s, unsigned int rate,
rate               80 sound/firewire/amdtp-am824.c 	err = amdtp_stream_set_parameters(s, rate,
rate              111 sound/firewire/amdtp-am824.c 	p->midi_fifo_limit = rate - MIDI_BYTES_PER_SECOND * s->syt_interval + 1;
rate               30 sound/firewire/amdtp-am824.h int amdtp_am824_set_parameters(struct amdtp_stream *s, unsigned int rate,
rate              255 sound/firewire/amdtp-stream.c int amdtp_stream_set_parameters(struct amdtp_stream *s, unsigned int rate,
rate              261 sound/firewire/amdtp-stream.c 		if (amdtp_rate_table[sfc] == rate)
rate              280 sound/firewire/amdtp-stream.c 				TICKS_PER_SECOND * s->syt_interval / rate;
rate              187 sound/firewire/amdtp-stream.h int amdtp_stream_set_parameters(struct amdtp_stream *s, unsigned int rate,
rate              369 sound/firewire/bebob/bebob.c 	.rate	= &normal_rate_spec,
rate               64 sound/firewire/bebob/bebob.h 	int (*get)(struct snd_bebob *bebob, unsigned int *rate);
rate               65 sound/firewire/bebob/bebob.h 	int (*set)(struct snd_bebob *bebob, unsigned int rate);
rate               74 sound/firewire/bebob/bebob.h 	const struct snd_bebob_rate_spec *rate;
rate              214 sound/firewire/bebob/bebob.h int snd_bebob_stream_get_rate(struct snd_bebob *bebob, unsigned int *rate);
rate              215 sound/firewire/bebob/bebob.h int snd_bebob_stream_set_rate(struct snd_bebob *bebob, unsigned int rate);
rate              220 sound/firewire/bebob/bebob.h int snd_bebob_stream_reserve_duplex(struct snd_bebob *bebob, unsigned int rate);
rate              142 sound/firewire/bebob/bebob_focusrite.c saffirepro_both_clk_freq_get(struct snd_bebob *bebob, unsigned int *rate)
rate              153 sound/firewire/bebob/bebob_focusrite.c 		*rate = rates[id];
rate              158 sound/firewire/bebob/bebob_focusrite.c saffirepro_both_clk_freq_set(struct snd_bebob *bebob, unsigned int rate)
rate              163 sound/firewire/bebob/bebob_focusrite.c 		if (rates[id] == rate)
rate              277 sound/firewire/bebob/bebob_focusrite.c 	.rate	= &saffirepro_both_rate_spec,
rate              288 sound/firewire/bebob/bebob_focusrite.c 	.rate	= &saffirepro_both_rate_spec,
rate              309 sound/firewire/bebob/bebob_focusrite.c 	.rate	= &saffire_both_rate_spec,
rate              320 sound/firewire/bebob/bebob_focusrite.c 	.rate	= &saffire_both_rate_spec,
rate              302 sound/firewire/bebob/bebob_maudio.c static int special_get_rate(struct snd_bebob *bebob, unsigned int *rate)
rate              308 sound/firewire/bebob/bebob_maudio.c 		err = avc_general_get_sig_fmt(bebob->unit, rate,
rate              314 sound/firewire/bebob/bebob_maudio.c static int special_set_rate(struct snd_bebob *bebob, unsigned int rate)
rate              319 sound/firewire/bebob/bebob_maudio.c 	err = avc_general_set_sig_fmt(bebob->unit, rate,
rate              330 sound/firewire/bebob/bebob_maudio.c 	err = avc_general_set_sig_fmt(bebob->unit, rate,
rate              731 sound/firewire/bebob/bebob_maudio.c 	.rate	= &special_rate_spec,
rate              747 sound/firewire/bebob/bebob_maudio.c 	.rate	= &usual_rate_spec,
rate              759 sound/firewire/bebob/bebob_maudio.c 	.rate	= &usual_rate_spec,
rate              771 sound/firewire/bebob/bebob_maudio.c 	.rate	= &usual_rate_spec,
rate              783 sound/firewire/bebob/bebob_maudio.c 	.rate	= &usual_rate_spec,
rate              795 sound/firewire/bebob/bebob_maudio.c 	.rate	= &usual_rate_spec,
rate              136 sound/firewire/bebob/bebob_pcm.c 	const struct snd_bebob_rate_spec *spec = bebob->spec->rate;
rate              199 sound/firewire/bebob/bebob_pcm.c 		unsigned int rate = params_rate(hw_params);
rate              202 sound/firewire/bebob/bebob_pcm.c 		err = snd_bebob_stream_reserve_duplex(bebob, rate);
rate              140 sound/firewire/bebob/bebob_proc.c 	const struct snd_bebob_rate_spec *rate_spec = bebob->spec->rate;
rate              143 sound/firewire/bebob/bebob_proc.c 	unsigned int rate;
rate              145 sound/firewire/bebob/bebob_proc.c 	if (rate_spec->get(bebob, &rate) >= 0)
rate              146 sound/firewire/bebob/bebob_proc.c 		snd_iprintf(buffer, "Sampling rate: %d\n", rate);
rate               50 sound/firewire/bebob/bebob_stream.c get_formation_index(unsigned int rate, unsigned int *index)
rate               55 sound/firewire/bebob/bebob_stream.c 		if (snd_bebob_rate_table[i] == rate) {
rate               97 sound/firewire/bebob/bebob_stream.c snd_bebob_stream_set_rate(struct snd_bebob *bebob, unsigned int rate)
rate              101 sound/firewire/bebob/bebob_stream.c 	err = avc_general_set_sig_fmt(bebob->unit, rate,
rate              106 sound/firewire/bebob/bebob_stream.c 	err = avc_general_set_sig_fmt(bebob->unit, rate,
rate              535 sound/firewire/bebob/bebob_stream.c 			  unsigned int rate, unsigned int index)
rate              549 sound/firewire/bebob/bebob_stream.c 	err = amdtp_am824_set_parameters(stream, rate, formation->pcm,
rate              557 sound/firewire/bebob/bebob_stream.c int snd_bebob_stream_reserve_duplex(struct snd_bebob *bebob, unsigned int rate)
rate              568 sound/firewire/bebob/bebob_stream.c 	err = bebob->spec->rate->get(bebob, &curr_rate);
rate              571 sound/firewire/bebob/bebob_stream.c 	if (rate == 0)
rate              572 sound/firewire/bebob/bebob_stream.c 		rate = curr_rate;
rate              573 sound/firewire/bebob/bebob_stream.c 	if (curr_rate != rate) {
rate              581 sound/firewire/bebob/bebob_stream.c 	if (bebob->substreams_counter == 0 || curr_rate != rate) {
rate              589 sound/firewire/bebob/bebob_stream.c 		err = bebob->spec->rate->set(bebob, rate);
rate              597 sound/firewire/bebob/bebob_stream.c 		err = get_formation_index(rate, &index);
rate              601 sound/firewire/bebob/bebob_stream.c 		err = keep_resources(bebob, &bebob->tx_stream, rate, index);
rate              605 sound/firewire/bebob/bebob_stream.c 		err = keep_resources(bebob, &bebob->rx_stream, rate, index);
rate              634 sound/firewire/bebob/bebob_stream.c 			err = bebob->spec->rate->get(bebob, &curr_rate);
rate              659 sound/firewire/bebob/bebob_stream.c 			err = bebob->spec->rate->set(bebob, curr_rate);
rate               51 sound/firewire/bebob/bebob_terratec.c 	.rate	= &phase_series_rate_spec,
rate               62 sound/firewire/bebob/bebob_yamaha_terratec.c 	.rate	= &rate_spec,
rate               27 sound/firewire/dice/dice-pcm.c 	unsigned int i, rate;
rate               35 sound/firewire/dice/dice-pcm.c 		rate = snd_dice_rates[i];
rate               36 sound/firewire/dice/dice-pcm.c 		if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0)
rate               42 sound/firewire/dice/dice-pcm.c 		rates.min = min(rates.min, rate);
rate               43 sound/firewire/dice/dice-pcm.c 		rates.max = max(rates.max, rate);
rate               65 sound/firewire/dice/dice-pcm.c 	unsigned int i, rate;
rate               73 sound/firewire/dice/dice-pcm.c 		rate = snd_dice_rates[i];
rate               74 sound/firewire/dice/dice-pcm.c 		if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0)
rate               77 sound/firewire/dice/dice-pcm.c 		if (!snd_interval_test(r, rate))
rate              106 sound/firewire/dice/dice-pcm.c 		unsigned int rate, channels;
rate              108 sound/firewire/dice/dice-pcm.c 		rate = snd_dice_rates[i];
rate              109 sound/firewire/dice/dice-pcm.c 		if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0)
rate              111 sound/firewire/dice/dice-pcm.c 		hw->rates |= snd_pcm_rate_to_rate_bit(rate);
rate              207 sound/firewire/dice/dice-pcm.c 		unsigned int rate;
rate              209 sound/firewire/dice/dice-pcm.c 		err = snd_dice_transaction_get_rate(dice, &rate);
rate              212 sound/firewire/dice/dice-pcm.c 		substream->runtime->hw.rate_min = rate;
rate              213 sound/firewire/dice/dice-pcm.c 		substream->runtime->hw.rate_max = rate;
rate              245 sound/firewire/dice/dice-pcm.c 		unsigned int rate = params_rate(hw_params);
rate              248 sound/firewire/dice/dice-pcm.c 		err = snd_dice_stream_reserve_duplex(dice, rate);
rate              111 sound/firewire/dice/dice-proc.c 			u32 rate;
rate              235 sound/firewire/dice/dice-proc.c 					   buf.ext_sync.rate));
rate               32 sound/firewire/dice/dice-stream.c int snd_dice_stream_get_rate_mode(struct snd_dice *dice, unsigned int rate,
rate               50 sound/firewire/dice/dice-stream.c 		if (snd_dice_rates[i] != rate)
rate               64 sound/firewire/dice/dice-stream.c static int ensure_phase_lock(struct snd_dice *dice, unsigned int rate)
rate               80 sound/firewire/dice/dice-stream.c 		if (snd_dice_rates[i] == rate)
rate              169 sound/firewire/dice/dice-stream.c 			  struct fw_iso_resources *resources, unsigned int rate,
rate              184 sound/firewire/dice/dice-stream.c 	double_pcm_frames = rate > 96000;
rate              186 sound/firewire/dice/dice-stream.c 		rate /= 2;
rate              190 sound/firewire/dice/dice-stream.c 	err = amdtp_am824_set_parameters(stream, rate, pcm_chs, midi_ports,
rate              210 sound/firewire/dice/dice-stream.c static int keep_dual_resources(struct snd_dice *dice, unsigned int rate,
rate              218 sound/firewire/dice/dice-stream.c 	err = snd_dice_stream_get_rate_mode(dice, rate, &mode);
rate              263 sound/firewire/dice/dice-stream.c 		err = keep_resources(dice, stream, resources, rate, pcm_chs,
rate              281 sound/firewire/dice/dice-stream.c int snd_dice_stream_reserve_duplex(struct snd_dice *dice, unsigned int rate)
rate              290 sound/firewire/dice/dice-stream.c 	if (rate == 0)
rate              291 sound/firewire/dice/dice-stream.c 		rate = curr_rate;
rate              293 sound/firewire/dice/dice-stream.c 	if (dice->substreams_counter == 0 || curr_rate != rate) {
rate              308 sound/firewire/dice/dice-stream.c 		err = ensure_phase_lock(dice, rate);
rate              318 sound/firewire/dice/dice-stream.c 		err = keep_dual_resources(dice, rate, AMDTP_IN_STREAM,
rate              323 sound/firewire/dice/dice-stream.c 		err = keep_dual_resources(dice, rate, AMDTP_OUT_STREAM,
rate              336 sound/firewire/dice/dice-stream.c 			 unsigned int rate, struct reg_params *params)
rate              396 sound/firewire/dice/dice-stream.c 	unsigned int rate;
rate              427 sound/firewire/dice/dice-stream.c 	err = snd_dice_transaction_get_rate(dice, &rate);
rate              430 sound/firewire/dice/dice-stream.c 	err = snd_dice_stream_get_rate_mode(dice, rate, &mode);
rate              443 sound/firewire/dice/dice-stream.c 		err = start_streams(dice, AMDTP_IN_STREAM, rate, &tx_params);
rate              447 sound/firewire/dice/dice-stream.c 		err = start_streams(dice, AMDTP_OUT_STREAM, rate, &rx_params);
rate              624 sound/firewire/dice/dice-stream.c 	unsigned int rate;
rate              640 sound/firewire/dice/dice-stream.c 	err = snd_dice_transaction_get_rate(dice, &rate);
rate              644 sound/firewire/dice/dice-stream.c 	err = snd_dice_stream_get_rate_mode(dice, rate, &mode);
rate              653 sound/firewire/dice/dice-stream.c 	err = ensure_phase_lock(dice, rate);
rate               75 sound/firewire/dice/dice-transaction.c int snd_dice_transaction_get_rate(struct snd_dice *dice, unsigned int *rate)
rate               91 sound/firewire/dice/dice-transaction.c 	*rate = snd_dice_rates[index];
rate              197 sound/firewire/dice/dice.h int snd_dice_transaction_get_rate(struct snd_dice *dice, unsigned int *rate);
rate              207 sound/firewire/dice/dice.h int snd_dice_stream_get_rate_mode(struct snd_dice *dice, unsigned int rate,
rate              213 sound/firewire/dice/dice.h int snd_dice_stream_reserve_duplex(struct snd_dice *dice, unsigned int rate);
rate              113 sound/firewire/digi00x/amdtp-dot.c int amdtp_dot_set_parameters(struct amdtp_stream *s, unsigned int rate,
rate              126 sound/firewire/digi00x/amdtp-dot.c 	err = amdtp_stream_set_parameters(s, rate, pcm_channels + 1);
rate              140 sound/firewire/digi00x/amdtp-dot.c 	p->midi_fifo_limit = rate - MIDI_BYTES_PER_SECOND * s->syt_interval + 1;
rate              105 sound/firewire/digi00x/digi00x-pcm.c 	unsigned int rate;
rate              133 sound/firewire/digi00x/digi00x-pcm.c 		err = snd_dg00x_stream_get_external_rate(dg00x, &rate);
rate              136 sound/firewire/digi00x/digi00x-pcm.c 		substream->runtime->hw.rate_min = rate;
rate              137 sound/firewire/digi00x/digi00x-pcm.c 		substream->runtime->hw.rate_max = rate;
rate              169 sound/firewire/digi00x/digi00x-pcm.c 		unsigned int rate = params_rate(hw_params);
rate              172 sound/firewire/digi00x/digi00x-pcm.c 		err = snd_dg00x_stream_reserve_duplex(dg00x, rate);
rate               40 sound/firewire/digi00x/digi00x-proc.c 	unsigned int rate;
rate               46 sound/firewire/digi00x/digi00x-proc.c 	if (snd_dg00x_stream_get_local_rate(dg00x, &rate) < 0)
rate               52 sound/firewire/digi00x/digi00x-proc.c 	snd_iprintf(buf, "Sampling Rate: %d\n", rate);
rate               64 sound/firewire/digi00x/digi00x-proc.c 	if (snd_dg00x_stream_get_external_rate(dg00x, &rate) >= 0)
rate               65 sound/firewire/digi00x/digi00x-proc.c 		snd_iprintf(buf, "External sampling rate: %d\n", rate);
rate               30 sound/firewire/digi00x/digi00x-stream.c int snd_dg00x_stream_get_local_rate(struct snd_dg00x *dg00x, unsigned int *rate)
rate               44 sound/firewire/digi00x/digi00x-stream.c 		*rate = snd_dg00x_stream_rates[data];
rate               51 sound/firewire/digi00x/digi00x-stream.c int snd_dg00x_stream_set_local_rate(struct snd_dg00x *dg00x, unsigned int rate)
rate               57 sound/firewire/digi00x/digi00x-stream.c 		if (rate == snd_dg00x_stream_rates[i])
rate              103 sound/firewire/digi00x/digi00x-stream.c 				       unsigned int *rate)
rate              117 sound/firewire/digi00x/digi00x-stream.c 		*rate = snd_dg00x_stream_rates[data];
rate              189 sound/firewire/digi00x/digi00x-stream.c 			  unsigned int rate)
rate              197 sound/firewire/digi00x/digi00x-stream.c 		if (snd_dg00x_stream_rates[i] == rate)
rate              208 sound/firewire/digi00x/digi00x-stream.c 	err = amdtp_dot_set_parameters(stream, rate,
rate              286 sound/firewire/digi00x/digi00x-stream.c int snd_dg00x_stream_reserve_duplex(struct snd_dg00x *dg00x, unsigned int rate)
rate              294 sound/firewire/digi00x/digi00x-stream.c 	if (rate == 0)
rate              295 sound/firewire/digi00x/digi00x-stream.c 		rate = curr_rate;
rate              297 sound/firewire/digi00x/digi00x-stream.c 	if (dg00x->substreams_counter == 0 || curr_rate != rate) {
rate              305 sound/firewire/digi00x/digi00x-stream.c 		err = snd_dg00x_stream_set_local_rate(dg00x, rate);
rate              309 sound/firewire/digi00x/digi00x-stream.c 		err = keep_resources(dg00x, &dg00x->rx_stream, rate);
rate              313 sound/firewire/digi00x/digi00x-stream.c 		err = keep_resources(dg00x, &dg00x->tx_stream, rate);
rate              120 sound/firewire/digi00x/digi00x.h int amdtp_dot_set_parameters(struct amdtp_stream *s, unsigned int rate,
rate              135 sound/firewire/digi00x/digi00x.h 				       unsigned int *rate);
rate              137 sound/firewire/digi00x/digi00x.h 				    unsigned int *rate);
rate              138 sound/firewire/digi00x/digi00x.h int snd_dg00x_stream_set_local_rate(struct snd_dg00x *dg00x, unsigned int rate);
rate              144 sound/firewire/digi00x/digi00x.h int snd_dg00x_stream_reserve_duplex(struct snd_dg00x *dg00x, unsigned int rate);
rate               28 sound/firewire/fcp.c int avc_general_set_sig_fmt(struct fw_unit *unit, unsigned int rate,
rate               39 sound/firewire/fcp.c 		if (amdtp_rate_table[sfc] == rate) {
rate               84 sound/firewire/fcp.c int avc_general_get_sig_fmt(struct fw_unit *unit, unsigned int *rate,
rate              131 sound/firewire/fcp.c 	*rate = amdtp_rate_table[sfc];
rate               18 sound/firewire/fcp.h int avc_general_set_sig_fmt(struct fw_unit *unit, unsigned int rate,
rate               21 sound/firewire/fcp.h int avc_general_get_sig_fmt(struct fw_unit *unit, unsigned int *rate,
rate               15 sound/firewire/fireface/amdtp-ff.c int amdtp_ff_set_parameters(struct amdtp_stream *s, unsigned int rate,
rate               27 sound/firewire/fireface/amdtp-ff.c 	return amdtp_stream_set_parameters(s, rate, data_channels);
rate               75 sound/firewire/fireface/ff-pcm.c 	unsigned int rate, channels;
rate               97 sound/firewire/fireface/ff-pcm.c 		rate = amdtp_rate_table[i];
rate               98 sound/firewire/fireface/ff-pcm.c 		hw->rates |= snd_pcm_rate_to_rate_bit(rate);
rate               99 sound/firewire/fireface/ff-pcm.c 		hw->rate_min = min(hw->rate_min, rate);
rate              100 sound/firewire/fireface/ff-pcm.c 		hw->rate_max = max(hw->rate_max, rate);
rate              142 sound/firewire/fireface/ff-pcm.c 	unsigned int rate;
rate              154 sound/firewire/fireface/ff-pcm.c 	err = ff->spec->protocol->get_clock(ff, &rate, &src);
rate              160 sound/firewire/fireface/ff-pcm.c 			if (amdtp_rate_table[i] == rate)
rate              172 sound/firewire/fireface/ff-pcm.c 		substream->runtime->hw.rate_min = rate;
rate              173 sound/firewire/fireface/ff-pcm.c 		substream->runtime->hw.rate_max = rate;
rate              177 sound/firewire/fireface/ff-pcm.c 			rate = amdtp_rate_table[ff->rx_stream.sfc];
rate              178 sound/firewire/fireface/ff-pcm.c 			substream->runtime->hw.rate_min = rate;
rate              179 sound/firewire/fireface/ff-pcm.c 			substream->runtime->hw.rate_max = rate;
rate              213 sound/firewire/fireface/ff-pcm.c 		unsigned int rate = params_rate(hw_params);
rate              216 sound/firewire/fireface/ff-pcm.c 		err = snd_ff_stream_reserve_duplex(ff, rate);
rate              249 sound/firewire/fireface/ff-pcm.c 	err = snd_ff_stream_start_duplex(ff, runtime->rate);
rate              266 sound/firewire/fireface/ff-pcm.c 	err = snd_ff_stream_start_duplex(ff, runtime->rate);
rate               17 sound/firewire/fireface/ff-protocol-former.c static int parse_clock_bits(u32 data, unsigned int *rate,
rate               21 sound/firewire/fireface/ff-protocol-former.c 		unsigned int rate;
rate               49 sound/firewire/fireface/ff-protocol-former.c 			*rate = rate_entry->rate;
rate               73 sound/firewire/fireface/ff-protocol-former.c static int former_get_clock(struct snd_ff *ff, unsigned int *rate,
rate               86 sound/firewire/fireface/ff-protocol-former.c 	return parse_clock_bits(data, rate, src);
rate              127 sound/firewire/fireface/ff-protocol-former.c 	unsigned int rate;
rate              151 sound/firewire/fireface/ff-protocol-former.c 	err = parse_clock_bits(data, &rate, &src);
rate              158 sound/firewire/fireface/ff-protocol-former.c 	snd_iprintf(buffer, "Clock configuration: %d %s\n", rate, label);
rate              184 sound/firewire/fireface/ff-protocol-former.c 		unsigned int rate;
rate              232 sound/firewire/fireface/ff-protocol-former.c 		unsigned int rate;
rate              248 sound/firewire/fireface/ff-protocol-former.c 				rate = rate_entry->rate;
rate              253 sound/firewire/fireface/ff-protocol-former.c 			rate = 0;
rate              255 sound/firewire/fireface/ff-protocol-former.c 		snd_iprintf(buffer, "%s %d\n", label, rate);
rate              337 sound/firewire/fireface/ff-protocol-former.c static int ff800_allocate_resources(struct snd_ff *ff, unsigned int rate)
rate              343 sound/firewire/fireface/ff-protocol-former.c 	reg = cpu_to_le32(rate);
rate              375 sound/firewire/fireface/ff-protocol-former.c static int ff800_begin_session(struct snd_ff *ff, unsigned int rate)
rate              441 sound/firewire/fireface/ff-protocol-former.c static int ff400_allocate_resources(struct snd_ff *ff, unsigned int rate)
rate              450 sound/firewire/fireface/ff-protocol-former.c 		if (amdtp_rate_table[i] == rate)
rate              457 sound/firewire/fireface/ff-protocol-former.c 	reg = cpu_to_le32(rate);
rate              488 sound/firewire/fireface/ff-protocol-former.c static int ff400_begin_session(struct snd_ff *ff, unsigned int rate)
rate               18 sound/firewire/fireface/ff-protocol-latter.c static int parse_clock_bits(u32 data, unsigned int *rate,
rate               22 sound/firewire/fireface/ff-protocol-latter.c 		unsigned int rate;
rate               49 sound/firewire/fireface/ff-protocol-latter.c 			*rate = rate_entry->rate;
rate               69 sound/firewire/fireface/ff-protocol-latter.c static int latter_get_clock(struct snd_ff *ff, unsigned int *rate,
rate               82 sound/firewire/fireface/ff-protocol-latter.c 	return parse_clock_bits(data, rate, src);
rate              100 sound/firewire/fireface/ff-protocol-latter.c static int latter_allocate_resources(struct snd_ff *ff, unsigned int rate)
rate              110 sound/firewire/fireface/ff-protocol-latter.c 	if (rate % 48000 == 0)
rate              112 sound/firewire/fireface/ff-protocol-latter.c 	else if (rate % 44100 == 0)
rate              114 sound/firewire/fireface/ff-protocol-latter.c 	else if (rate % 32000 == 0)
rate              119 sound/firewire/fireface/ff-protocol-latter.c 	if (rate >= 64000 && rate < 128000)
rate              121 sound/firewire/fireface/ff-protocol-latter.c 	else if (rate >= 128000)
rate              140 sound/firewire/fireface/ff-protocol-latter.c 		if (curr_rate == rate)
rate              147 sound/firewire/fireface/ff-protocol-latter.c 		if (rate == amdtp_rate_table[i])
rate              176 sound/firewire/fireface/ff-protocol-latter.c static int latter_begin_session(struct snd_ff *ff, unsigned int rate)
rate              184 sound/firewire/fireface/ff-protocol-latter.c 	if (rate >= 32000 && rate <= 48000)
rate              186 sound/firewire/fireface/ff-protocol-latter.c 	else if (rate >= 64000 && rate <= 96000)
rate              188 sound/firewire/fireface/ff-protocol-latter.c 	else if (rate >= 128000 && rate <= 192000)
rate              239 sound/firewire/fireface/ff-protocol-latter.c 	unsigned int rate;
rate              266 sound/firewire/fireface/ff-protocol-latter.c 	err = parse_clock_bits(data, &rate, &src);
rate              273 sound/firewire/fireface/ff-protocol-latter.c 	snd_iprintf(buffer, "Referred clock: %s %d\n", label, rate);
rate              109 sound/firewire/fireface/ff-stream.c int snd_ff_stream_reserve_duplex(struct snd_ff *ff, unsigned int rate)
rate              119 sound/firewire/fireface/ff-stream.c 	if (ff->substreams_counter == 0 || curr_rate != rate) {
rate              130 sound/firewire/fireface/ff-stream.c 			if (amdtp_rate_table[i] == rate)
rate              140 sound/firewire/fireface/ff-stream.c 		err = amdtp_ff_set_parameters(&ff->tx_stream, rate,
rate              145 sound/firewire/fireface/ff-stream.c 		err = amdtp_ff_set_parameters(&ff->rx_stream, rate,
rate              150 sound/firewire/fireface/ff-stream.c 		err = ff->spec->protocol->allocate_resources(ff, rate);
rate              158 sound/firewire/fireface/ff-stream.c int snd_ff_stream_start_duplex(struct snd_ff *ff, unsigned int rate)
rate              178 sound/firewire/fireface/ff-stream.c 		err = ff->spec->protocol->begin_session(ff, rate);
rate              114 sound/firewire/fireface/ff.h 	int (*get_clock)(struct snd_ff *ff, unsigned int *rate,
rate              117 sound/firewire/fireface/ff.h 	int (*allocate_resources)(struct snd_ff *ff, unsigned int rate);
rate              118 sound/firewire/fireface/ff.h 	int (*begin_session)(struct snd_ff *ff, unsigned int rate);
rate              131 sound/firewire/fireface/ff.h int amdtp_ff_set_parameters(struct amdtp_stream *s, unsigned int rate,
rate              142 sound/firewire/fireface/ff.h int snd_ff_stream_reserve_duplex(struct snd_ff *ff, unsigned int rate);
rate              143 sound/firewire/fireface/ff.h int snd_ff_stream_start_duplex(struct snd_ff *ff, unsigned int rate);
rate              206 sound/firewire/fireworks/fireworks.h int snd_efw_command_get_sampling_rate(struct snd_efw *efw, unsigned int *rate);
rate              207 sound/firewire/fireworks/fireworks.h int snd_efw_command_set_sampling_rate(struct snd_efw *efw, unsigned int rate);
rate              210 sound/firewire/fireworks/fireworks.h int snd_efw_stream_reserve_duplex(struct snd_efw *efw, unsigned int rate);
rate              294 sound/firewire/fireworks/fireworks_command.c 		  unsigned int source, unsigned int rate)
rate              300 sound/firewire/fireworks/fireworks_command.c 	if ((source == UINT_MAX) && (rate == UINT_MAX)) {
rate              311 sound/firewire/fireworks/fireworks_command.c 	if ((clock.source == source) && (clock.sampling_rate == rate))
rate              317 sound/firewire/fireworks/fireworks_command.c 	if ((rate != UINT_MAX) && (clock.sampling_rate != rate))
rate              318 sound/firewire/fireworks/fireworks_command.c 		clock.sampling_rate = rate;
rate              355 sound/firewire/fireworks/fireworks_command.c int snd_efw_command_get_sampling_rate(struct snd_efw *efw, unsigned int *rate)
rate              362 sound/firewire/fireworks/fireworks_command.c 		*rate = clock.sampling_rate;
rate              367 sound/firewire/fireworks/fireworks_command.c int snd_efw_command_set_sampling_rate(struct snd_efw *efw, unsigned int rate)
rate              369 sound/firewire/fireworks/fireworks_command.c 	return command_set_clock(efw, UINT_MAX, rate);
rate              233 sound/firewire/fireworks/fireworks_pcm.c 		unsigned int rate = params_rate(hw_params);
rate              236 sound/firewire/fireworks/fireworks_pcm.c 		err = snd_efw_stream_reserve_duplex(efw, rate);
rate               65 sound/firewire/fireworks/fireworks_stream.c 			unsigned int rate)
rate              159 sound/firewire/fireworks/fireworks_stream.c 			  unsigned int rate, unsigned int mode)
rate              176 sound/firewire/fireworks/fireworks_stream.c 	err = amdtp_am824_set_parameters(stream, rate, pcm_channels,
rate              184 sound/firewire/fireworks/fireworks_stream.c int snd_efw_stream_reserve_duplex(struct snd_efw *efw, unsigned int rate)
rate              199 sound/firewire/fireworks/fireworks_stream.c 	if (rate == 0)
rate              200 sound/firewire/fireworks/fireworks_stream.c 		rate = curr_rate;
rate              201 sound/firewire/fireworks/fireworks_stream.c 	if (rate != curr_rate) {
rate              211 sound/firewire/fireworks/fireworks_stream.c 	if (efw->substreams_counter == 0 || rate != curr_rate) {
rate              214 sound/firewire/fireworks/fireworks_stream.c 		err = snd_efw_command_set_sampling_rate(efw, rate);
rate              218 sound/firewire/fireworks/fireworks_stream.c 		err = snd_efw_get_multiplier_mode(rate, &mode);
rate              222 sound/firewire/fireworks/fireworks_stream.c 		err = keep_resources(efw, &efw->tx_stream, rate, mode);
rate              226 sound/firewire/fireworks/fireworks_stream.c 		err = keep_resources(efw, &efw->rx_stream, rate, mode);
rate              238 sound/firewire/fireworks/fireworks_stream.c 	unsigned int rate;
rate              252 sound/firewire/fireworks/fireworks_stream.c 	err = snd_efw_command_get_sampling_rate(efw, &rate);
rate              257 sound/firewire/fireworks/fireworks_stream.c 		err = start_stream(efw, &efw->rx_stream, rate);
rate              261 sound/firewire/fireworks/fireworks_stream.c 		err = start_stream(efw, &efw->tx_stream, rate);
rate               46 sound/firewire/motu/amdtp-motu.c int amdtp_motu_set_parameters(struct amdtp_stream *s, unsigned int rate,
rate               71 sound/firewire/motu/amdtp-motu.c 		if (snd_motu_clock_rates[i] == rate) {
rate               90 sound/firewire/motu/amdtp-motu.c 	err = amdtp_stream_set_parameters(s, rate, data_block_quadlets);
rate              102 sound/firewire/motu/amdtp-motu.c 	p->midi_db_interval = rate / MIDI_BYTES_PER_SECOND;
rate              108 sound/firewire/motu/amdtp-motu.c 	delay += 8000 * 3072 * s->syt_interval / rate;
rate               23 sound/firewire/motu/motu-pcm.c 	unsigned int i, pcm_channels, rate, mode;
rate               26 sound/firewire/motu/motu-pcm.c 		rate = snd_motu_clock_rates[i];
rate               34 sound/firewire/motu/motu-pcm.c 		rates.min = min(rates.min, rate);
rate               35 sound/firewire/motu/motu-pcm.c 		rates.max = max(rates.max, rate);
rate               53 sound/firewire/motu/motu-pcm.c 	unsigned int i, pcm_channels, rate, mode;
rate               56 sound/firewire/motu/motu-pcm.c 		rate = snd_motu_clock_rates[i];
rate               59 sound/firewire/motu/motu-pcm.c 		if (!snd_interval_test(r, rate))
rate               76 sound/firewire/motu/motu-pcm.c 	unsigned int i, pcm_channels, rate, mode;
rate               82 sound/firewire/motu/motu-pcm.c 		rate = snd_motu_clock_rates[i];
rate               90 sound/firewire/motu/motu-pcm.c 		hw->rates |= snd_pcm_rate_to_rate_bit(rate);
rate              138 sound/firewire/motu/motu-pcm.c 	unsigned int rate;
rate              165 sound/firewire/motu/motu-pcm.c 		err = protocol->get_clock_rate(motu, &rate);
rate              168 sound/firewire/motu/motu-pcm.c 		substream->runtime->hw.rate_min = rate;
rate              169 sound/firewire/motu/motu-pcm.c 		substream->runtime->hw.rate_max = rate;
rate              204 sound/firewire/motu/motu-pcm.c 		unsigned int rate = params_rate(hw_params);
rate              207 sound/firewire/motu/motu-pcm.c 		err = snd_motu_stream_reserve_duplex(motu, rate);
rate               30 sound/firewire/motu/motu-proc.c 	unsigned int rate;
rate               33 sound/firewire/motu/motu-proc.c 	if (protocol->get_clock_rate(motu, &rate) < 0)
rate               38 sound/firewire/motu/motu-proc.c 	snd_iprintf(buffer, "Rate:\t%d\n", rate);
rate               29 sound/firewire/motu/motu-protocol-v2.c static int v2_get_clock_rate(struct snd_motu *motu, unsigned int *rate)
rate               44 sound/firewire/motu/motu-protocol-v2.c 	*rate = snd_motu_clock_rates[index];
rate               49 sound/firewire/motu/motu-protocol-v2.c static int v2_set_clock_rate(struct snd_motu *motu, unsigned int rate)
rate               57 sound/firewire/motu/motu-protocol-v2.c 		if (snd_motu_clock_rates[i] == rate)
rate               27 sound/firewire/motu/motu-protocol-v3.c static int v3_get_clock_rate(struct snd_motu *motu, unsigned int *rate)
rate               43 sound/firewire/motu/motu-protocol-v3.c 	*rate = snd_motu_clock_rates[data];
rate               48 sound/firewire/motu/motu-protocol-v3.c static int v3_set_clock_rate(struct snd_motu *motu, unsigned int rate)
rate               56 sound/firewire/motu/motu-protocol-v3.c 		if (snd_motu_clock_rates[i] == rate)
rate               28 sound/firewire/motu/motu-stream.c static int keep_resources(struct snd_motu *motu, unsigned int rate,
rate               52 sound/firewire/motu/motu-stream.c 	err = amdtp_motu_set_parameters(stream, rate, midi_ports,
rate              136 sound/firewire/motu/motu-stream.c int snd_motu_stream_reserve_duplex(struct snd_motu *motu, unsigned int rate)
rate              144 sound/firewire/motu/motu-stream.c 	if (rate == 0)
rate              145 sound/firewire/motu/motu-stream.c 		rate = curr_rate;
rate              147 sound/firewire/motu/motu-stream.c 	if (motu->substreams_counter == 0 || curr_rate != rate) {
rate              154 sound/firewire/motu/motu-stream.c 		err = motu->spec->protocol->set_clock_rate(motu, rate);
rate              165 sound/firewire/motu/motu-stream.c 		err = keep_resources(motu, rate, &motu->tx_stream);
rate              169 sound/firewire/motu/motu-stream.c 		err = keep_resources(motu, rate, &motu->rx_stream);
rate              111 sound/firewire/motu/motu.h 	int (*get_clock_rate)(struct snd_motu *motu, unsigned int *rate);
rate              112 sound/firewire/motu/motu.h 	int (*set_clock_rate)(struct snd_motu *motu, unsigned int rate);
rate              138 sound/firewire/motu/motu.h int amdtp_motu_set_parameters(struct amdtp_stream *s, unsigned int rate,
rate              157 sound/firewire/motu/motu.h int snd_motu_stream_reserve_duplex(struct snd_motu *motu, unsigned int rate);
rate              111 sound/firewire/oxfw/oxfw-command.c int avc_general_inquiry_sig_fmt(struct fw_unit *unit, unsigned int rate,
rate              120 sound/firewire/oxfw/oxfw-command.c 		if (amdtp_rate_table[sfc] == rate)
rate               34 sound/firewire/oxfw/oxfw-pcm.c 		t.min = min(t.min, formation.rate);
rate               35 sound/firewire/oxfw/oxfw-pcm.c 		t.max = max(t.max, formation.rate);
rate               61 sound/firewire/oxfw/oxfw-pcm.c 		if (!snd_interval_test(r, formation.rate))
rate              103 sound/firewire/oxfw/oxfw-pcm.c 		hw->rate_min = min(hw->rate_min, formation.rate);
rate              104 sound/firewire/oxfw/oxfw-pcm.c 		hw->rate_max = max(hw->rate_max, formation.rate);
rate              105 sound/firewire/oxfw/oxfw-pcm.c 		hw->rates |= snd_pcm_rate_to_rate_bit(formation.rate);
rate              164 sound/firewire/oxfw/oxfw-pcm.c 	substream->runtime->hw.rate_min = formation.rate;
rate              165 sound/firewire/oxfw/oxfw-pcm.c 	substream->runtime->hw.rate_max = formation.rate;
rate              222 sound/firewire/oxfw/oxfw-pcm.c 		unsigned int rate = params_rate(hw_params);
rate              227 sound/firewire/oxfw/oxfw-pcm.c 						     rate, channels);
rate              247 sound/firewire/oxfw/oxfw-pcm.c 		unsigned int rate = params_rate(hw_params);
rate              252 sound/firewire/oxfw/oxfw-pcm.c 						     rate, channels);
rate               43 sound/firewire/oxfw/oxfw-proc.c 			    formation.rate, formation.pcm, formation.midi);
rate               73 sound/firewire/oxfw/oxfw-proc.c 			    formation.rate, formation.pcm, formation.midi);
rate               41 sound/firewire/oxfw/oxfw-stream.c static int set_rate(struct snd_oxfw *oxfw, unsigned int rate)
rate               45 sound/firewire/oxfw/oxfw-stream.c 	err = avc_general_set_sig_fmt(oxfw->unit, rate,
rate               51 sound/firewire/oxfw/oxfw-stream.c 		err = avc_general_set_sig_fmt(oxfw->unit, rate,
rate               58 sound/firewire/oxfw/oxfw-stream.c 			     unsigned int rate, unsigned int pcm_channels)
rate               80 sound/firewire/oxfw/oxfw-stream.c 		if ((formation.rate == rate) && (formation.pcm == pcm_channels))
rate               88 sound/firewire/oxfw/oxfw-stream.c 		return set_rate(oxfw, rate);
rate              226 sound/firewire/oxfw/oxfw-stream.c 		if (fmt.rate == formation.rate && fmt.pcm == formation.pcm &&
rate              237 sound/firewire/oxfw/oxfw-stream.c 	err = amdtp_am824_set_parameters(stream, formation.rate, formation.pcm,
rate              247 sound/firewire/oxfw/oxfw-stream.c 				   unsigned int rate, unsigned int pcm_channels)
rate              272 sound/firewire/oxfw/oxfw-stream.c 	if (rate == 0) {
rate              273 sound/firewire/oxfw/oxfw-stream.c 		rate = formation.rate;
rate              276 sound/firewire/oxfw/oxfw-stream.c 	if (formation.rate != rate || formation.pcm != pcm_channels) {
rate              289 sound/firewire/oxfw/oxfw-stream.c 	    formation.rate != rate || formation.pcm != pcm_channels) {
rate              290 sound/firewire/oxfw/oxfw-stream.c 		err = set_stream_format(oxfw, stream, rate, pcm_channels);
rate              515 sound/firewire/oxfw/oxfw-stream.c 	formation->rate = oxfw_rate_table[i];
rate              602 sound/firewire/oxfw/oxfw-stream.c 		if (formation.rate == oxfw_rate_table[i])
rate               99 sound/firewire/oxfw/oxfw.h int avc_general_inquiry_sig_fmt(struct fw_unit *unit, unsigned int rate,
rate              106 sound/firewire/oxfw/oxfw.h 				   unsigned int rate, unsigned int pcm_channels);
rate              113 sound/firewire/oxfw/oxfw.h 	unsigned int rate;
rate               18 sound/firewire/tascam/amdtp-tascam.c int amdtp_tscm_set_parameters(struct amdtp_stream *s, unsigned int rate)
rate               32 sound/firewire/tascam/amdtp-tascam.c 	return amdtp_stream_set_parameters(s, rate, data_channels);
rate               47 sound/firewire/tascam/tascam-pcm.c 	unsigned int rate;
rate               65 sound/firewire/tascam/tascam-pcm.c 		err = snd_tscm_stream_get_rate(tscm, &rate);
rate               68 sound/firewire/tascam/tascam-pcm.c 		substream->runtime->hw.rate_min = rate;
rate               69 sound/firewire/tascam/tascam-pcm.c 		substream->runtime->hw.rate_max = rate;
rate              101 sound/firewire/tascam/tascam-pcm.c 		unsigned int rate = params_rate(hw_params);
rate              104 sound/firewire/tascam/tascam-pcm.c 		err = snd_tscm_stream_reserve_duplex(tscm, rate);
rate              137 sound/firewire/tascam/tascam-pcm.c 	err = snd_tscm_stream_start_duplex(tscm, runtime->rate);
rate              154 sound/firewire/tascam/tascam-pcm.c 	err = snd_tscm_stream_start_duplex(tscm, runtime->rate);
rate               44 sound/firewire/tascam/tascam-stream.c static int set_clock(struct snd_tscm *tscm, unsigned int rate,
rate               56 sound/firewire/tascam/tascam-stream.c 	if (rate > 0) {
rate               59 sound/firewire/tascam/tascam-stream.c 		if ((rate % 44100) == 0) {
rate               62 sound/firewire/tascam/tascam-stream.c 			if (rate / 44100 == 2)
rate               64 sound/firewire/tascam/tascam-stream.c 		} else if ((rate % 48000) == 0) {
rate               67 sound/firewire/tascam/tascam-stream.c 			if (rate / 48000 == 2)
rate               97 sound/firewire/tascam/tascam-stream.c int snd_tscm_stream_get_rate(struct snd_tscm *tscm, unsigned int *rate)
rate              110 sound/firewire/tascam/tascam-stream.c 		*rate = 44100;
rate              112 sound/firewire/tascam/tascam-stream.c 		*rate = 48000;
rate              118 sound/firewire/tascam/tascam-stream.c 		*rate *= 2;
rate              177 sound/firewire/tascam/tascam-stream.c static int set_stream_formats(struct snd_tscm *tscm, unsigned int rate)
rate              281 sound/firewire/tascam/tascam-stream.c static int keep_resources(struct snd_tscm *tscm, unsigned int rate,
rate              292 sound/firewire/tascam/tascam-stream.c 	err = amdtp_tscm_set_parameters(stream, rate);
rate              386 sound/firewire/tascam/tascam-stream.c int snd_tscm_stream_reserve_duplex(struct snd_tscm *tscm, unsigned int rate)
rate              395 sound/firewire/tascam/tascam-stream.c 	if (tscm->substreams_counter == 0 || rate != curr_rate) {
rate              403 sound/firewire/tascam/tascam-stream.c 		err = set_clock(tscm, rate, INT_MAX);
rate              407 sound/firewire/tascam/tascam-stream.c 		err = keep_resources(tscm, rate, &tscm->tx_stream);
rate              411 sound/firewire/tascam/tascam-stream.c 		err = keep_resources(tscm, rate, &tscm->rx_stream);
rate              421 sound/firewire/tascam/tascam-stream.c int snd_tscm_stream_start_duplex(struct snd_tscm *tscm, unsigned int rate)
rate              448 sound/firewire/tascam/tascam-stream.c 		err = set_stream_formats(tscm, rate);
rate              161 sound/firewire/tascam/tascam.h int amdtp_tscm_set_parameters(struct amdtp_stream *s, unsigned int rate);
rate              165 sound/firewire/tascam/tascam.h int snd_tscm_stream_get_rate(struct snd_tscm *tscm, unsigned int *rate);
rate              171 sound/firewire/tascam/tascam.h int snd_tscm_stream_reserve_duplex(struct snd_tscm *tscm, unsigned int rate);
rate              172 sound/firewire/tascam/tascam.h int snd_tscm_stream_start_duplex(struct snd_tscm *tscm, unsigned int rate);
rate              122 sound/hda/hdac_component.c 			     int dev_id, int rate)
rate              137 sound/hda/hdac_component.c 	return acomp->ops->sync_audio_rate(acomp->dev, port, pipe, rate);
rate              732 sound/hda/hdac_device.c unsigned int snd_hdac_calc_stream_format(unsigned int rate,
rate              742 sound/hda/hdac_device.c 		if (rate_bits[i].hz == rate) {
rate              928 sound/hda/hdac_device.c 	unsigned int val = 0, rate, stream;
rate              934 sound/hda/hdac_device.c 	rate = format & 0xff00;
rate              936 sound/hda/hdac_device.c 		if (rate_bits[i].hda_fmt == rate) {
rate               26 sound/hda/hdac_stream.c 		     rate = runtime->rate,
rate               35 sound/hda/hdac_stream.c 		if (rate > 48000)
rate               37 sound/hda/hdac_stream.c 					(rate / 48000)) / sdo_line;
rate              250 sound/hda/hdac_stream.c 				    runtime->rate) * 1000);
rate              431 sound/hda/hdac_stream.c 		pos_adj = (pos_adj * runtime->rate + 47999) / 48000;
rate               39 sound/i2c/cs8427.c 	unsigned int rate;
rate              568 sound/i2c/cs8427.c int snd_cs8427_iec958_pcm(struct snd_i2c_device *cs8427, unsigned int rate)
rate              581 sound/i2c/cs8427.c 		switch (rate) {
rate              589 sound/i2c/cs8427.c 		switch (rate) {
rate              600 sound/i2c/cs8427.c 	reset = chip->rate != rate;
rate              601 sound/i2c/cs8427.c 	chip->rate = rate;
rate              599 sound/i2c/other/ak4113.c 			(runtime->rate != res)) {
rate              588 sound/i2c/other/ak4114.c 	if (!(flags & AK4114_CHECK_NO_RATE) && runtime && runtime->rate != res) {
rate              504 sound/i2c/other/ak4117.c 	if (!(flags & AK4117_CHECK_NO_RATE) && runtime && runtime->rate != res) {
rate              225 sound/isa/ad1816a/ad1816a_lib.c 	unsigned int size, rate;
rate              236 sound/isa/ad1816a/ad1816a_lib.c 	rate = runtime->rate;
rate              238 sound/isa/ad1816a/ad1816a_lib.c 		rate = (rate * 33000) / chip->clock_freq;
rate              239 sound/isa/ad1816a/ad1816a_lib.c 	snd_ad1816a_write(chip, AD1816A_PLAYBACK_SAMPLE_RATE, rate);
rate              257 sound/isa/ad1816a/ad1816a_lib.c 	unsigned int size, rate;
rate              268 sound/isa/ad1816a/ad1816a_lib.c 	rate = runtime->rate;
rate              270 sound/isa/ad1816a/ad1816a_lib.c 		rate = (rate * 33000) / chip->clock_freq;
rate              271 sound/isa/ad1816a/ad1816a_lib.c 	snd_ad1816a_write(chip, AD1816A_CAPTURE_SAMPLE_RATE, rate);
rate              173 sound/isa/cs423x/cs4236_lib.c 	unsigned char rate = divisor_to_rate_register(params->rate_den);
rate              182 sound/isa/cs423x/cs4236_lib.c 	snd_cs4236_ext_out(chip, CS4236_DAC_RATE, rate);
rate              191 sound/isa/cs423x/cs4236_lib.c 	unsigned char rate = divisor_to_rate_register(params->rate_den);
rate              200 sound/isa/cs423x/cs4236_lib.c 	snd_cs4236_ext_out(chip, CS4236_ADC_RATE, rate);
rate              306 sound/isa/es1688/es1688_lib.c 	divider = 256 - 7160000*20/(8*82*runtime->rate);
rate              417 sound/isa/es18xx.c 	div0 = 256 - 7160000*20/(8*82*runtime->rate);
rate               98 sound/isa/gus/gus_pcm.c 	unsigned short rate;
rate              112 sound/isa/gus/gus_pcm.c 	rate = snd_gf1_translate_freq(gus, runtime->rate << 4);
rate              136 sound/isa/gus/gus_pcm.c 		snd_gf1_write16(gus, SNDRV_GF1_VW_FREQUENCY, rate);
rate              178 sound/isa/gus/gus_volume.c 				    unsigned int rate,
rate              188 sound/isa/gus/gus_volume.c 	fc = (freq << 10) / rate;
rate              609 sound/isa/sb/emu8000_pcm.c 	rec->pitch = 0xe000 + calc_rate_offset(subs->runtime->rate);
rate              213 sound/isa/sb/sb16_main.c 				unsigned short rate,
rate              224 sound/isa/sb/sb16_main.c 		chip->locked_rate = rate;
rate              226 sound/isa/sb/sb16_main.c 		snd_sbdsp_command(chip, rate >> 8);
rate              227 sound/isa/sb/sb16_main.c 		snd_sbdsp_command(chip, rate & 0xff);
rate              229 sound/isa/sb/sb16_main.c 		snd_sbdsp_command(chip, rate >> 8);
rate              230 sound/isa/sb/sb16_main.c 		snd_sbdsp_command(chip, rate & 0xff);
rate              262 sound/isa/sb/sb16_main.c 	snd_sb16_setup_rate(chip, runtime->rate, SNDRV_PCM_STREAM_PLAYBACK);
rate              331 sound/isa/sb/sb16_main.c 	snd_sb16_setup_rate(chip, runtime->rate, SNDRV_PCM_STREAM_CAPTURE);
rate               95 sound/isa/sb/sb8_main.c 	unsigned int mixreg, rate, size, count;
rate              100 sound/isa/sb/sb8_main.c 	rate = runtime->rate;
rate              113 sound/isa/sb/sb8_main.c 			if (snd_BUG_ON(rate != SB8_RATE(11025) &&
rate              114 sound/isa/sb/sb8_main.c 				       rate != SB8_RATE(22050)))
rate              121 sound/isa/sb/sb8_main.c 		if (rate > 23000) {
rate              245 sound/isa/sb/sb8_main.c 	unsigned int mixreg, rate, size, count;
rate              250 sound/isa/sb/sb8_main.c 	rate = runtime->rate;
rate              263 sound/isa/sb/sb8_main.c 			if (snd_BUG_ON(rate != SB8_RATE(11025) &&
rate              264 sound/isa/sb/sb8_main.c 				       rate != SB8_RATE(22050)))
rate              269 sound/isa/sb/sb8_main.c 		chip->capture_format = (rate > 23000) ? SB_DSP_HI_INPUT_AUTO : SB_DSP_LO_INPUT_AUTO;
rate              272 sound/isa/sb/sb8_main.c 		if (rate > 13000) {
rate              518 sound/isa/wss/wss_lib.c static unsigned char snd_wss_get_rate(unsigned int rate)
rate              523 sound/isa/wss/wss_lib.c 		if (rate == rates[i])
rate              635 sound/isa/wss/wss_lib.c 		unsigned rate = params_rate(params);
rate              648 sound/isa/wss/wss_lib.c 		snd_wss_out(chip, AD1845_UPR_FREQ_SEL, (rate >> 8) & 0xff);
rate              649 sound/isa/wss/wss_lib.c 		snd_wss_out(chip, AD1845_LWR_FREQ_SEL, rate & 0xff);
rate              695 sound/isa/wss/wss_lib.c 		unsigned rate = params_rate(params);
rate              708 sound/isa/wss/wss_lib.c 		snd_wss_out(chip, AD1845_UPR_FREQ_SEL, (rate >> 8) & 0xff);
rate              709 sound/isa/wss/wss_lib.c 		snd_wss_out(chip, AD1845_LWR_FREQ_SEL, rate & 0xff);
rate              314 sound/mips/hal2.c static int hal2_compute_rate(struct hal2_codec *codec, unsigned int rate)
rate              318 sound/mips/hal2.c 	if (44100 % rate < 48000 % rate) {
rate              319 sound/mips/hal2.c 		mod = 4 * 44100 / rate;
rate              322 sound/mips/hal2.c 		mod = 4 * 48000 / rate;
rate              328 sound/mips/hal2.c 	rate = 4 * codec->master / mod;
rate              330 sound/mips/hal2.c 	return rate;
rate              554 sound/mips/hal2.c 	dac->sample_rate = hal2_compute_rate(dac, runtime->rate);
rate              643 sound/mips/hal2.c 	adc->sample_rate = hal2_compute_rate(adc, runtime->rate);
rate              617 sound/mips/sgio2audio.c 				 runtime->rate,
rate              623 sound/mips/sgio2audio.c 				 runtime->rate,
rate              173 sound/parisc/harmony.c 		(h->st.rate));
rate              239 sound/parisc/harmony.c snd_harmony_rate_bits(int rate)
rate              244 sound/parisc/harmony.c 		if (snd_harmony_rates[i] == rate)
rate              409 sound/parisc/harmony.c 	h->st.rate = snd_harmony_rate_bits(rt->rate);
rate              439 sound/parisc/harmony.c         h->st.rate = snd_harmony_rate_bits(rt->rate);
rate               27 sound/parisc/harmony.h                 u32 rate;
rate             1679 sound/pci/ac97/ac97_codec.c static int snd_ac97_test_rate(struct snd_ac97 *ac97, int reg, int shadow_reg, int rate)
rate             1684 sound/pci/ac97/ac97_codec.c 	tmp = ((unsigned int)rate * ac97->bus->clock) / 48000;
rate              159 sound/pci/ac97/ac97_pcm.c static int set_spdif_rate(struct snd_ac97 *ac97, unsigned short rate)
rate              169 sound/pci/ac97/ac97_pcm.c 		switch (rate) {
rate              179 sound/pci/ac97/ac97_pcm.c 		if (ac97->id == AC97_ID_CM9739 && rate != 48000) {
rate              183 sound/pci/ac97/ac97_pcm.c 		switch (rate) {
rate              204 sound/pci/ac97/ac97_pcm.c 			switch (rate) {
rate              211 sound/pci/ac97/ac97_pcm.c 			switch (rate) {
rate              243 sound/pci/ac97/ac97_pcm.c int snd_ac97_set_rate(struct snd_ac97 *ac97, int reg, unsigned int rate)
rate              248 sound/pci/ac97/ac97_pcm.c 	dbl = rate > 48000;
rate              260 sound/pci/ac97/ac97_pcm.c 			if (rate != 48000)
rate              266 sound/pci/ac97/ac97_pcm.c 			if (rate != 48000 && rate != 96000)
rate              279 sound/pci/ac97/ac97_pcm.c 		return set_spdif_rate(ac97, rate);
rate              284 sound/pci/ac97/ac97_pcm.c 		rate /= 2;
rate              285 sound/pci/ac97/ac97_pcm.c 	tmp = (rate * ac97->bus->clock) / 48000;
rate              555 sound/pci/ac97/ac97_pcm.c int snd_ac97_pcm_open(struct ac97_pcm *pcm, unsigned int rate,
rate              564 sound/pci/ac97/ac97_pcm.c 	r = rate > 48000;
rate              569 sound/pci/ac97/ac97_pcm.c 				err = set_spdif_rate(bus->codec[cidx], rate);
rate              616 sound/pci/ac97/ac97_pcm.c 					reg, rate);
rate              617 sound/pci/ac97/ac97_pcm.c 				err = snd_ac97_set_rate(pcm->r[r].codec[cidx], reg, rate);
rate              621 sound/pci/ac97/ac97_pcm.c 						cidx, reg, rate, err);
rate              692 sound/pci/ac97/ac97_pcm.c 		struct snd_interval *rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
rate              693 sound/pci/ac97/ac97_pcm.c 		return snd_interval_refine(rate, &single_rates);
rate              701 sound/pci/ac97/ac97_pcm.c 	struct snd_interval *rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
rate              702 sound/pci/ac97/ac97_pcm.c 	if (rate->min > 48000) {
rate              380 sound/pci/ad1889.c 	ad1889_writew(chip, AD_DS_WAS, rt->rate);
rate              394 sound/pci/ad1889.c 		chip->wave.addr, count, size, reg, rt->rate);
rate              441 sound/pci/ad1889.c 		chip->ramc.addr, count, size, reg, rt->rate);
rate              738 sound/pci/ali5451/ali5451.c static void snd_ali_set_spdif_out_rate(struct snd_ali *codec, unsigned int rate)
rate              743 sound/pci/ali5451/ali5451.c 	switch (rate) {
rate              758 sound/pci/ali5451/ali5451.c 	outw(rate | 0x10, ALI_REG(codec, ALI_SPDIF_CS + 2));
rate             1013 sound/pci/ali5451/ali5451.c static unsigned int snd_ali_convert_rate(unsigned int rate, int rec)
rate             1017 sound/pci/ali5451/ali5451.c 	if (rate < 4000)
rate             1018 sound/pci/ali5451/ali5451.c 		rate = 4000;
rate             1019 sound/pci/ali5451/ali5451.c 	if (rate > 48000)
rate             1020 sound/pci/ali5451/ali5451.c 		rate = 48000;
rate             1023 sound/pci/ali5451/ali5451.c 		if (rate == 44100)
rate             1025 sound/pci/ali5451/ali5451.c 		else if (rate == 8000)
rate             1027 sound/pci/ali5451/ali5451.c 		else if (rate == 48000)
rate             1030 sound/pci/ali5451/ali5451.c 			delta = ((48000 << 12) / rate) & 0x0000ffff;
rate             1032 sound/pci/ali5451/ali5451.c 		if (rate == 44100)
rate             1034 sound/pci/ali5451/ali5451.c 		else if (rate == 8000)
rate             1036 sound/pci/ali5451/ali5451.c 		else if (rate == 48000)
rate             1039 sound/pci/ali5451/ali5451.c 			delta = (((rate << 12) + rate) / 48000) & 0x0000ffff;
rate             1219 sound/pci/ali5451/ali5451.c 	Delta = snd_ali_convert_rate(runtime->rate, 0);
rate             1228 sound/pci/ali5451/ali5451.c 		snd_ali_set_spdif_out_rate(codec, runtime->rate);
rate             1256 sound/pci/ali5451/ali5451.c 		       pvoice->number,runtime->rate,Delta,GVSEL,PAN,CTRL);
rate             1314 sound/pci/ali5451/ali5451.c 		0x1000 : snd_ali_convert_rate(runtime->rate, pvoice->mode);
rate             1319 sound/pci/ali5451/ali5451.c 		unsigned int rate;
rate             1325 sound/pci/ali5451/ali5451.c 		rate = snd_ali_get_spdif_in_rate(codec);
rate             1326 sound/pci/ali5451/ali5451.c 		if (rate == 0) {
rate             1329 sound/pci/ali5451/ali5451.c 			rate = 48000;
rate             1339 sound/pci/ali5451/ali5451.c 		if (rate != 48000)
rate             1340 sound/pci/ali5451/ali5451.c 			Delta = ((rate << 12) / runtime->rate) & 0x00ffff;
rate              274 sound/pci/als4000.c static void snd_als4000_set_rate(struct snd_sb *chip, unsigned int rate)
rate              278 sound/pci/als4000.c 		snd_sbdsp_command(chip, rate>>8);
rate              279 sound/pci/als4000.c 		snd_sbdsp_command(chip, rate);
rate              386 sound/pci/als4000.c 	snd_als4000_set_rate(chip, runtime->rate);
rate              419 sound/pci/als4000.c 	snd_als4000_set_rate(chip, runtime->rate);
rate             2459 sound/pci/asihpi/asihpi.c 	u32 rate;
rate             2462 sound/pci/asihpi/asihpi.c 	e = hpi_sample_clock_get_local_rate(h_control, &rate);
rate             2464 sound/pci/asihpi/asihpi.c 		ucontrol->value.integer.value[0] = rate;
rate             2501 sound/pci/asihpi/asihpi.c 	u32 rate;
rate             2504 sound/pci/asihpi/asihpi.c 	e = hpi_sample_clock_get_sample_rate(h_control, &rate);
rate             2506 sound/pci/asihpi/asihpi.c 		ucontrol->value.integer.value[0] = rate;
rate             2725 sound/pci/asihpi/asihpi.c 	u32 rate = 0;
rate             2758 sound/pci/asihpi/asihpi.c 		err = hpi_sample_clock_get_sample_rate(h_control, &rate);
rate             2763 sound/pci/asihpi/asihpi.c 			rate, sampleclock_sources[source]);
rate             2347 sound/pci/au88x0/au88x0_core.c vortex_adb_setsrc(vortex_t * vortex, int adbdma, unsigned int rate, int dir)
rate             2354 sound/pci/au88x0/au88x0_core.c 		cvrt = SRC_RATIO(rate, 48000);
rate             2356 sound/pci/au88x0/au88x0_core.c 		cvrt = SRC_RATIO(48000, rate);
rate              330 sound/pci/au88x0/au88x0_pcm.c 			vortex_adb_setsrc(chip, dma, runtime->rate, dir);
rate             1455 sound/pci/azt3328.c 		runtime->rate,
rate             1488 sound/pci/azt3328.c 			runtime->rate,
rate               92 sound/pci/azt3328.h #define AZF_FREQ(rate) AZF_FREQ_##rate = rate
rate              483 sound/pci/bt87x.c 	decimation = (ANALOG_CLOCK + runtime->rate / 4) / runtime->rate;
rate              764 sound/pci/ca0106/ca0106_main.c 		   channel, runtime->rate, runtime->format,
rate              778 sound/pci/ca0106/ca0106_main.c 	switch (runtime->rate) {
rate              871 sound/pci/ca0106/ca0106_main.c 		   channel, runtime->rate, runtime->format,
rate              883 sound/pci/ca0106/ca0106_main.c 	switch (runtime->rate) {
rate              591 sound/pci/cmipci.c static unsigned int snd_cmipci_rate_freq(unsigned int rate)
rate              596 sound/pci/cmipci.c 		if (rates[i] == rate)
rate              609 sound/pci/cmipci.c static int snd_cmipci_pll_rmn(unsigned int rate, unsigned int adcmult, int *r, int *m, int *n)
rate              614 sound/pci/cmipci.c 	for (*r = 0; rate < CM_MAXIMUM_RATE/adcmult; *r += (1<<5))
rate              615 sound/pci/cmipci.c 		rate <<= 1;
rate              619 sound/pci/cmipci.c 	tolerance = rate*CM_TOLERANCE_RATE;
rate              625 sound/pci/cmipci.c 			if (xr < rate)
rate              626 sound/pci/cmipci.c 				delta = rate - xr;
rate              628 sound/pci/cmipci.c 				delta = xr - rate;
rate              651 sound/pci/cmipci.c static void snd_cmipci_set_pll(struct cmipci *cm, unsigned int rate, unsigned int slot)
rate              662 sound/pci/cmipci.c 	snd_cmipci_write_b(cm, reg, rate>>8);
rate              663 sound/pci/cmipci.c 	snd_cmipci_write_b(cm, reg, rate&0xff);
rate              822 sound/pci/cmipci.c 	if (runtime->rate > 48000)
rate              823 sound/pci/cmipci.c 		switch (runtime->rate) {
rate              830 sound/pci/cmipci.c 		freq = snd_cmipci_rate_freq(runtime->rate);
rate              859 sound/pci/cmipci.c 		if (runtime->rate > 44100)
rate             1190 sound/pci/cmipci.c static void setup_ac3(struct cmipci *cm, struct snd_pcm_substream *subs, int do_ac3, int rate)
rate             1208 sound/pci/cmipci.c 				if (rate >= 48000) {
rate             1239 sound/pci/cmipci.c 	int rate, err;
rate             1241 sound/pci/cmipci.c 	rate = subs->runtime->rate;
rate             1255 sound/pci/cmipci.c 		setup_ac3(cm, subs, do_ac3, rate);
rate             1257 sound/pci/cmipci.c 		if (rate == 48000 || rate == 96000)
rate             1261 sound/pci/cmipci.c 		if (rate > 48000)
rate             1286 sound/pci/cmipci.c 	int rate = substream->runtime->rate;
rate             1289 sound/pci/cmipci.c 	do_spdif = (rate >= 44100 && rate <= 96000 &&
rate             1399 sound/pci/cmipci.c 		if (substream->runtime->rate > 48000)
rate              695 sound/pci/cs4281.c static unsigned int snd_cs4281_rate(unsigned int rate, unsigned int *real_rate)
rate              700 sound/pci/cs4281.c 		*real_rate = rate;
rate              702 sound/pci/cs4281.c 	switch (rate) {
rate              712 sound/pci/cs4281.c 	val = 1536000 / rate;
rate              755 sound/pci/cs4281.c 			unsigned int val = snd_cs4281_rate(runtime->rate, NULL);
rate              761 sound/pci/cs4281.c 			unsigned int val = snd_cs4281_rate(runtime->rate, NULL);
rate              708 sound/pci/cs46xx/cs46xx_lib.c static void snd_cs46xx_set_play_sample_rate(struct snd_cs46xx *chip, unsigned int rate)
rate              732 sound/pci/cs46xx/cs46xx_lib.c 	tmp1 = rate << 16;
rate              754 sound/pci/cs46xx/cs46xx_lib.c static void snd_cs46xx_set_capture_sample_rate(struct snd_cs46xx *chip, unsigned int rate)
rate              765 sound/pci/cs46xx/cs46xx_lib.c 	if ((rate * 9) < 48000)
rate              766 sound/pci/cs46xx/cs46xx_lib.c 		rate = 48000 / 9;
rate              772 sound/pci/cs46xx/cs46xx_lib.c 	if (rate > 48000)
rate              773 sound/pci/cs46xx/cs46xx_lib.c 		rate = 48000;
rate              797 sound/pci/cs46xx/cs46xx_lib.c 	tmp1 = rate << 16;
rate              806 sound/pci/cs46xx/cs46xx_lib.c 	phiIncr = tmp1 / rate;
rate              807 sound/pci/cs46xx/cs46xx_lib.c 	tmp1 -= phiIncr * rate;
rate              810 sound/pci/cs46xx/cs46xx_lib.c 	tmp2 = tmp1 / rate;
rate              812 sound/pci/cs46xx/cs46xx_lib.c 	tmp1 -= tmp2 * rate;
rate              816 sound/pci/cs46xx/cs46xx_lib.c 	initialDelay = ((48000 * 24) + rate - 1) / rate;
rate              837 sound/pci/cs46xx/cs46xx_lib.c 		if (((rate / cnt) * cnt) != rate)
rate              840 sound/pci/cs46xx/cs46xx_lib.c 	if (((rate / 3) * 3) != rate) {
rate              844 sound/pci/cs46xx/cs46xx_lib.c 		if (((rate / cnt) * cnt) != rate) 
rate              855 sound/pci/cs46xx/cs46xx_lib.c 	snd_cs46xx_poke(chip, BA1_CSPB, ((65536 * rate) / 24000));
rate             1269 sound/pci/cs46xx/cs46xx_lib.c 	snd_cs46xx_set_play_sample_rate(chip, runtime->rate);
rate             1330 sound/pci/cs46xx/cs46xx_lib.c 	snd_cs46xx_set_capture_sample_rate(chip, runtime->rate);
rate              586 sound/pci/cs46xx/dsp_spos_scb_lib.c 			       int rate,
rate              601 sound/pci/cs46xx/dsp_spos_scb_lib.c 		scb_name, rate);
rate              620 sound/pci/cs46xx/dsp_spos_scb_lib.c 	tmp1 = rate << 16;
rate              672 sound/pci/cs46xx/dsp_spos_scb_lib.c 			snd_BUG_ON(rate != 48000);
rate              277 sound/pci/cs5535audio/cs5535audio_pcm.c 				 substream->runtime->rate);
rate              367 sound/pci/cs5535audio/cs5535audio_pcm.c 				 substream->runtime->rate);
rate              264 sound/pci/ctxfi/ctatc.c 	pitch = atc_get_pitch(apcm->substream->runtime->rate,
rate              466 sound/pci/ctxfi/ctatc.c 				apcm->substream->runtime->rate);
rate              483 sound/pci/ctxfi/ctatc.c 					apcm->substream->runtime->rate);
rate              527 sound/pci/ctxfi/ctatc.c 				apcm->substream->runtime->rate);
rate              603 sound/pci/ctxfi/ctatc.c 				apcm->substream->runtime->rate);
rate              690 sound/pci/ctxfi/ctatc.c 				apcm->substream->runtime->rate);
rate              800 sound/pci/ctxfi/ctatc.c 	while (apcm->substream->runtime->rate > (rsr * desc.msr))
rate              808 sound/pci/ctxfi/ctatc.c 	pitch = atc_get_pitch(apcm->substream->runtime->rate, (rsr * desc.msr));
rate              846 sound/pci/ctxfi/ctatc.c static int atc_pll_init(struct ct_atc *atc, int rate)
rate              850 sound/pci/ctxfi/ctatc.c 	err = hw->pll_init(hw, rate);
rate              851 sound/pci/ctxfi/ctatc.c 	atc->pll_rate = err ? 0 : rate;
rate              859 sound/pci/ctxfi/ctatc.c 	unsigned int rate = apcm->substream->runtime->rate;
rate              864 sound/pci/ctxfi/ctatc.c 	switch (rate) {
rate              886 sound/pci/ctxfi/ctatc.c 	if ((rate != atc->pll_rate) && (32000 != rate))
rate              887 sound/pci/ctxfi/ctatc.c 		err = atc_pll_init(atc, rate);
rate               84 sound/pci/ctxfi/cttimer.c 		   * HZ + (runtime->rate - 1)) / runtime->rate + HZ * 5 / 1000;
rate              105 sound/pci/ctxfi/cttimer.c 			     (runtime->rate - 1)) / runtime->rate);
rate              200 sound/pci/ctxfi/cttimer.c 			unsigned int period_size, rate;
rate              203 sound/pci/ctxfi/cttimer.c 			rate = ti->substream->runtime->rate;
rate              213 sound/pci/ctxfi/cttimer.c 						 rate - 1, rate);
rate               88 sound/pci/echoaudio/darla20_dsp.c static int set_sample_rate(struct echoaudio *chip, u32 rate)
rate               95 sound/pci/echoaudio/darla20_dsp.c 	switch (rate) {
rate              115 sound/pci/echoaudio/darla20_dsp.c 	chip->comm_page->sample_rate = cpu_to_le32(rate);
rate              125 sound/pci/echoaudio/darla20_dsp.c 	chip->sample_rate = rate;
rate               97 sound/pci/echoaudio/darla24_dsp.c static int set_sample_rate(struct echoaudio *chip, u32 rate)
rate              101 sound/pci/echoaudio/darla24_dsp.c 	switch (rate) {
rate              132 sound/pci/echoaudio/darla24_dsp.c 			rate);
rate              140 sound/pci/echoaudio/darla24_dsp.c 		"set_sample_rate: %d clock %d\n", rate, clock);
rate              141 sound/pci/echoaudio/darla24_dsp.c 	chip->sample_rate = rate;
rate              147 sound/pci/echoaudio/darla24_dsp.c 	chip->comm_page->sample_rate = cpu_to_le32(rate);	/* ignored by the DSP ? */
rate               35 sound/pci/echoaudio/echo3g_dsp.c static int set_sample_rate(struct echoaudio *chip, u32 rate);
rate              244 sound/pci/echoaudio/echoaudio.c 	struct snd_interval *rate = hw_param_interval(params,
rate              252 sound/pci/echoaudio/echoaudio.c 		return snd_interval_refine(rate, &fixed);
rate              688 sound/pci/echoaudio/echoaudio.c 		runtime->rate, runtime->format, runtime->channels);
rate              145 sound/pci/echoaudio/echoaudio_3g.c static u32 set_spdif_bits(struct echoaudio *chip, u32 control_reg, u32 rate)
rate              149 sound/pci/echoaudio/echoaudio_3g.c 	switch (rate) {
rate              258 sound/pci/echoaudio/echoaudio_3g.c static int set_sample_rate(struct echoaudio *chip, u32 rate)
rate              267 sound/pci/echoaudio/echoaudio_3g.c 		chip->comm_page->sample_rate = cpu_to_le32(rate);
rate              268 sound/pci/echoaudio/echoaudio_3g.c 		chip->sample_rate = rate;
rate              273 sound/pci/echoaudio/echoaudio_3g.c 	if (snd_BUG_ON(rate >= 50000 &&
rate              281 sound/pci/echoaudio/echoaudio_3g.c 	switch (rate) {
rate              299 sound/pci/echoaudio/echoaudio_3g.c 		if (rate > 50000)
rate              305 sound/pci/echoaudio/echoaudio_3g.c 	control_reg = set_spdif_bits(chip, control_reg, rate);
rate              307 sound/pci/echoaudio/echoaudio_3g.c 	base_rate = rate;
rate              317 sound/pci/echoaudio/echoaudio_3g.c 	chip->comm_page->sample_rate = cpu_to_le32(rate);	/* ignored by the DSP */
rate              318 sound/pci/echoaudio/echoaudio_3g.c 	chip->sample_rate = rate;
rate              320 sound/pci/echoaudio/echoaudio_3g.c 		"SetSampleRate: %d clock %x\n", rate, control_reg);
rate              104 sound/pci/echoaudio/gina20_dsp.c static int set_sample_rate(struct echoaudio *chip, u32 rate)
rate              111 sound/pci/echoaudio/gina20_dsp.c 	switch (rate) {
rate              131 sound/pci/echoaudio/gina20_dsp.c 	chip->comm_page->sample_rate = cpu_to_le32(rate);
rate              141 sound/pci/echoaudio/gina20_dsp.c 	chip->sample_rate = rate;
rate              162 sound/pci/echoaudio/gina24_dsp.c static int set_sample_rate(struct echoaudio *chip, u32 rate)
rate              166 sound/pci/echoaudio/gina24_dsp.c 	if (snd_BUG_ON(rate >= 50000 &&
rate              175 sound/pci/echoaudio/gina24_dsp.c 		chip->comm_page->sample_rate = cpu_to_le32(rate);
rate              176 sound/pci/echoaudio/gina24_dsp.c 		chip->sample_rate = rate;
rate              185 sound/pci/echoaudio/gina24_dsp.c 	switch (rate) {
rate              219 sound/pci/echoaudio/gina24_dsp.c 			"set_sample_rate: %d invalid!\n", rate);
rate              225 sound/pci/echoaudio/gina24_dsp.c 	chip->comm_page->sample_rate = cpu_to_le32(rate);	/* ignored by the DSP */
rate              226 sound/pci/echoaudio/gina24_dsp.c 	chip->sample_rate = rate;
rate              227 sound/pci/echoaudio/gina24_dsp.c 	dev_dbg(chip->card->dev, "set_sample_rate: %d clock %d\n", rate, clock);
rate               90 sound/pci/echoaudio/indigo_dsp.c static int set_sample_rate(struct echoaudio *chip, u32 rate)
rate               94 sound/pci/echoaudio/indigo_dsp.c 	switch (rate) {
rate              112 sound/pci/echoaudio/indigo_dsp.c 			"set_sample_rate: %d invalid!\n", rate);
rate              121 sound/pci/echoaudio/indigo_dsp.c 		chip->comm_page->sample_rate = cpu_to_le32(rate);	/* ignored by the DSP */
rate              123 sound/pci/echoaudio/indigo_dsp.c 		chip->sample_rate = rate;
rate               29 sound/pci/echoaudio/indigo_express_dsp.c static int set_sample_rate(struct echoaudio *chip, u32 rate)
rate               39 sound/pci/echoaudio/indigo_express_dsp.c 	switch (rate) {
rate               65 sound/pci/echoaudio/indigo_express_dsp.c 			"set_sample_rate: %d clock %d\n", rate, clock);
rate               67 sound/pci/echoaudio/indigo_express_dsp.c 		chip->sample_rate = rate;
rate               90 sound/pci/echoaudio/indigodj_dsp.c static int set_sample_rate(struct echoaudio *chip, u32 rate)
rate               94 sound/pci/echoaudio/indigodj_dsp.c 	switch (rate) {
rate              112 sound/pci/echoaudio/indigodj_dsp.c 			"set_sample_rate: %d invalid!\n", rate);
rate              121 sound/pci/echoaudio/indigodj_dsp.c 		chip->comm_page->sample_rate = cpu_to_le32(rate);	/* ignored by the DSP */
rate              123 sound/pci/echoaudio/indigodj_dsp.c 		chip->sample_rate = rate;
rate               90 sound/pci/echoaudio/indigoio_dsp.c static int set_sample_rate(struct echoaudio *chip, u32 rate)
rate               95 sound/pci/echoaudio/indigoio_dsp.c 	chip->sample_rate = rate;
rate               96 sound/pci/echoaudio/indigoio_dsp.c 	chip->comm_page->sample_rate = cpu_to_le32(rate);
rate              159 sound/pci/echoaudio/layla20_dsp.c static int set_sample_rate(struct echoaudio *chip, u32 rate)
rate              161 sound/pci/echoaudio/layla20_dsp.c 	if (snd_BUG_ON(rate < 8000 || rate > 50000))
rate              169 sound/pci/echoaudio/layla20_dsp.c 		chip->comm_page->sample_rate = cpu_to_le32(rate);
rate              170 sound/pci/echoaudio/layla20_dsp.c 		chip->sample_rate = rate;
rate              177 sound/pci/echoaudio/layla20_dsp.c 	dev_dbg(chip->card->dev, "set_sample_rate(%d)\n", rate);
rate              178 sound/pci/echoaudio/layla20_dsp.c 	chip->sample_rate = rate;
rate              179 sound/pci/echoaudio/layla20_dsp.c 	chip->comm_page->sample_rate = cpu_to_le32(rate);
rate              189 sound/pci/echoaudio/layla20_dsp.c 	u32 rate;
rate              191 sound/pci/echoaudio/layla20_dsp.c 	rate = 0;
rate              194 sound/pci/echoaudio/layla20_dsp.c 		rate = chip->sample_rate;
rate              218 sound/pci/echoaudio/layla20_dsp.c 	if (rate)
rate              219 sound/pci/echoaudio/layla20_dsp.c 		set_sample_rate(chip, rate);
rate              157 sound/pci/echoaudio/layla24_dsp.c static int set_sample_rate(struct echoaudio *chip, u32 rate)
rate              161 sound/pci/echoaudio/layla24_dsp.c 	if (snd_BUG_ON(rate >= 50000 &&
rate              170 sound/pci/echoaudio/layla24_dsp.c 		chip->comm_page->sample_rate = cpu_to_le32(rate);
rate              171 sound/pci/echoaudio/layla24_dsp.c 		chip->sample_rate = rate;
rate              181 sound/pci/echoaudio/layla24_dsp.c 	switch (rate) {
rate              217 sound/pci/echoaudio/layla24_dsp.c 		if (rate > 50000) {
rate              218 sound/pci/echoaudio/layla24_dsp.c 			base_rate = rate >> 1;
rate              221 sound/pci/echoaudio/layla24_dsp.c 			base_rate = rate;
rate              239 sound/pci/echoaudio/layla24_dsp.c 	chip->comm_page->sample_rate = cpu_to_le32(rate);	/* ignored by the DSP ? */
rate              240 sound/pci/echoaudio/layla24_dsp.c 	chip->sample_rate = rate;
rate              242 sound/pci/echoaudio/layla24_dsp.c 		"set_sample_rate: %d clock %d\n", rate, control_reg);
rate              107 sound/pci/echoaudio/mia_dsp.c static int set_sample_rate(struct echoaudio *chip, u32 rate)
rate              111 sound/pci/echoaudio/mia_dsp.c 	switch (rate) {
rate              129 sound/pci/echoaudio/mia_dsp.c 			"set_sample_rate: %d invalid!\n", rate);
rate              142 sound/pci/echoaudio/mia_dsp.c 		chip->comm_page->sample_rate = cpu_to_le32(rate);	/* ignored by the DSP */
rate              144 sound/pci/echoaudio/mia_dsp.c 		chip->sample_rate = rate;
rate              196 sound/pci/echoaudio/mona_dsp.c static int set_sample_rate(struct echoaudio *chip, u32 rate)
rate              207 sound/pci/echoaudio/mona_dsp.c 		chip->comm_page->sample_rate = cpu_to_le32(rate);
rate              208 sound/pci/echoaudio/mona_dsp.c 		chip->sample_rate = rate;
rate              213 sound/pci/echoaudio/mona_dsp.c 	if (rate >= 88200) {
rate              248 sound/pci/echoaudio/mona_dsp.c 	switch (rate) {
rate              282 sound/pci/echoaudio/mona_dsp.c 			"set_sample_rate: %d invalid!\n", rate);
rate              288 sound/pci/echoaudio/mona_dsp.c 	chip->comm_page->sample_rate = cpu_to_le32(rate);	/* ignored by the DSP */
rate              289 sound/pci/echoaudio/mona_dsp.c 	chip->sample_rate = rate;
rate              291 sound/pci/echoaudio/mona_dsp.c 		"set_sample_rate: %d clock %d\n", rate, clock);
rate              180 sound/pci/emu10k1/emupcm.c static unsigned int snd_emu10k1_capture_rate_reg(unsigned int rate)
rate              182 sound/pci/emu10k1/emupcm.c 	switch (rate) {
rate              197 sound/pci/emu10k1/emupcm.c static unsigned int snd_emu10k1_audigy_capture_rate_reg(unsigned int rate)
rate              199 sound/pci/emu10k1/emupcm.c 	switch (rate) {
rate              215 sound/pci/emu10k1/emupcm.c static unsigned int emu10k1_calc_pitch_target(unsigned int rate)
rate              219 sound/pci/emu10k1/emupcm.c 	pitch_target = (rate << 8) / 375;
rate              355 sound/pci/emu10k1/emupcm.c 		pitch_target = emu10k1_calc_pitch_target(runtime->rate);
rate              624 sound/pci/emu10k1/emupcm.c 			snd_emu10k1_audigy_capture_rate_reg(runtime->rate) :
rate              625 sound/pci/emu10k1/emupcm.c 			snd_emu10k1_capture_rate_reg(runtime->rate);
rate              702 sound/pci/emu10k1/emupcm.c 	pitch = snd_emu10k1_rate_to_pitch(runtime->rate) >> 8;
rate              706 sound/pci/emu10k1/emupcm.c 		pitch_target = emu10k1_calc_pitch_target(runtime->rate);
rate               33 sound/pci/emu10k1/emuproc.c 	unsigned int status, rate = 0;
rate               53 sound/pci/emu10k1/emuproc.c 			rate = snd_emu10k1_ptr_read(emu, rate_reg, 0);
rate               54 sound/pci/emu10k1/emuproc.c 			snd_iprintf(buffer, "S/PDIF Valid          : %s\n", rate & SRCS_SPDIFVALID ? "on" : "off");
rate               55 sound/pci/emu10k1/emuproc.c 			snd_iprintf(buffer, "S/PDIF Locked         : %s\n", rate & SRCS_SPDIFLOCKED ? "on" : "off");
rate               56 sound/pci/emu10k1/emuproc.c 			snd_iprintf(buffer, "Rate Locked           : %s\n", rate & SRCS_RATELOCKED ? "on" : "off");
rate               58 sound/pci/emu10k1/emuproc.c 			snd_iprintf(buffer, "Estimated Sample Rate : %d\n", ((rate & 0xFFFFF ) * 375) >> 11); 
rate              229 sound/pci/emu10k1/emuproc.c 	u32 rate;
rate              236 sound/pci/emu10k1/emuproc.c 			rate = 0x1770000 / (((value << 5) | value2)+1);	
rate              237 sound/pci/emu10k1/emuproc.c 			snd_iprintf(buffer, "ADAT Locked : %u\n", rate);
rate              245 sound/pci/emu10k1/emuproc.c 			rate = 0x1770000 / (((value << 5) | value2)+1);	
rate              246 sound/pci/emu10k1/emuproc.c 			snd_iprintf(buffer, "SPDIF Locked : %d\n", rate);
rate              511 sound/pci/emu10k1/io.c unsigned int snd_emu10k1_rate_to_pitch(unsigned int rate)
rate              551 sound/pci/emu10k1/io.c 	if (rate == 0)
rate              553 sound/pci/emu10k1/io.c 	rate *= 11185;		/* Scale 48000 to 0x20002380 */
rate              555 sound/pci/emu10k1/io.c 		if (rate & 0x80000000) {	/* Detect leading "1" */
rate              557 sound/pci/emu10k1/io.c 			       logMagTable[0x7f & (rate >> 24)] +
rate              558 sound/pci/emu10k1/io.c 					(0x7f & (rate >> 17)) *
rate              559 sound/pci/emu10k1/io.c 					logSlopeTable[0x7f & (rate >> 24)]);
rate              561 sound/pci/emu10k1/io.c 		rate <<= 1;
rate              331 sound/pci/emu10k1/p16v.c 		   channel, runtime->rate, runtime->format, runtime->channels,
rate              343 sound/pci/emu10k1/p16v.c         switch (runtime->rate) {
rate              394 sound/pci/emu10k1/p16v.c         switch (runtime->rate) {
rate              719 sound/pci/ens1370.c static void snd_es1371_adc_rate(struct ensoniq * ensoniq, unsigned int rate)
rate              724 sound/pci/ens1370.c 	n = rate / 3000;
rate              728 sound/pci/ens1370.c 	freq = ((48000UL << 15) / rate) * n;
rate              729 sound/pci/ens1370.c 	if (rate >= 24000) {
rate              750 sound/pci/ens1370.c static void snd_es1371_dac1_rate(struct ensoniq * ensoniq, unsigned int rate)
rate              755 sound/pci/ens1370.c 	freq = ((rate << 15) + 1500) / 3000;
rate              771 sound/pci/ens1370.c static void snd_es1371_dac2_rate(struct ensoniq * ensoniq, unsigned int rate)
rate              776 sound/pci/ens1370.c 	freq = ((rate << 15) + 1500) / 3000;
rate              886 sound/pci/ens1370.c 	if (runtime->rate == 48000)
rate              902 sound/pci/ens1370.c 	switch (runtime->rate) {
rate              913 sound/pci/ens1370.c 	snd_es1371_dac1_rate(ensoniq, runtime->rate);
rate              946 sound/pci/ens1370.c 		ensoniq->ctrl |= ES_1370_PCLKDIVO(ES_1370_SRTODIV(runtime->rate));
rate              953 sound/pci/ens1370.c 	snd_es1371_dac2_rate(ensoniq, runtime->rate);
rate              984 sound/pci/ens1370.c 		ensoniq->ctrl |= ES_1370_PCLKDIVO(ES_1370_SRTODIV(runtime->rate));
rate              991 sound/pci/ens1370.c 	snd_es1371_adc_rate(ensoniq, runtime->rate);
rate              457 sound/pci/es1938.c 	div0 = 256 - 7160000*20/(8*82*runtime->rate);
rate              877 sound/pci/es1968.c 	int freq = runtime->rate * 4;
rate              897 sound/pci/es1968.c 	u32 rate = (freq << 16) / chip->clock;
rate              899 sound/pci/es1968.c 	if (rate > 0x10000)
rate              900 sound/pci/es1968.c 		rate = 0x10000;
rate              902 sound/pci/es1968.c 	return rate;
rate             1073 sound/pci/es1968.c 	freq = runtime->rate;
rate             1176 sound/pci/es1968.c 	freq = runtime->rate;
rate              353 sound/pci/fm801.c static unsigned short snd_fm801_rate_bits(unsigned int rate)
rate              358 sound/pci/fm801.c 		if (rates[idx] == rate)
rate              469 sound/pci/fm801.c 	chip->ply_ctrl |= snd_fm801_rate_bits(runtime->rate) << FM801_RATE_SHIFT;
rate              496 sound/pci/fm801.c 	chip->cap_ctrl |= snd_fm801_rate_bits(runtime->rate) << FM801_RATE_SHIFT;
rate               74 sound/pci/hda/hda_controller.c 			      substream->runtime->rate);
rate              171 sound/pci/hda/hda_controller.c 	format_val = snd_hdac_calc_stream_format(runtime->rate,
rate              179 sound/pci/hda/hda_controller.c 			runtime->rate, runtime->channels, runtime->format);
rate              459 sound/pci/hda/hda_controller.c 				NSEC_PER_SEC, runtime->rate));
rate              461 sound/pci/hda/hda_controller.c 			       ((HDA_MAX_CYCLE_VALUE + 1) * runtime->rate));
rate             1551 sound/pci/hda/patch_ca0132.c 				int connid, enum ca0132_sample_rate rate)
rate             1556 sound/pci/hda/patch_ca0132.c 			CONTROL_PARAM_CONN_POINT_SAMPLE_RATE, rate);
rate             1563 sound/pci/hda/patch_ca0132.c 				int connid, enum ca0132_sample_rate rate)
rate             1567 sound/pci/hda/patch_ca0132.c 				 rate);
rate             3551 sound/pci/hda/patch_ca0132.c 	return (latency * runtime->rate) / 1000;
rate             3634 sound/pci/hda/patch_ca0132.c 	return (latency * runtime->rate) / 1000;
rate             1927 sound/pci/hda/patch_hdmi.c 					 runtime->rate);
rate              143 sound/pci/hda/patch_si3054.c 	SET_REG(codec, SI3054_LINE_RATE, substream->runtime->rate);
rate              302 sound/pci/ice1712/delta.c static void delta_1010_set_rate_val(struct snd_ice1712 *ice, unsigned int rate)
rate              306 sound/pci/ice1712/delta.c 	if (rate == 0)	/* no hint - S/PDIF input is master, simply return */
rate              312 sound/pci/ice1712/delta.c 	if (rate > 48000)
rate              322 sound/pci/ice1712/delta.c static void delta_ak4524_set_rate_val(struct snd_akm4xxx *ak, unsigned int rate)
rate              327 sound/pci/ice1712/delta.c 	if (rate == 0)	/* no hint - S/PDIF input is master, simply return */
rate              335 sound/pci/ice1712/delta.c 	if (rate > 48000)
rate              344 sound/pci/ice1712/delta.c 	if (rate > 48000)
rate              354 sound/pci/ice1712/delta.c static void vx442_ak4524_set_rate_val(struct snd_akm4xxx *ak, unsigned int rate)
rate              358 sound/pci/ice1712/delta.c 	val = (rate > 48000) ? 0x65 : 0x60;
rate              380 sound/pci/ice1712/delta.c static void delta_setup_spdif(struct snd_ice1712 *ice, int rate)
rate              390 sound/pci/ice1712/delta.c 	switch (rate) {
rate              306 sound/pci/ice1712/ews.c static void ews88_setup_spdif(struct snd_ice1712 *ice, int rate)
rate              316 sound/pci/ice1712/ews.c 	switch (rate) {
rate              368 sound/pci/ice1712/ice1712.c static void setup_cs8427(struct snd_ice1712 *ice, int rate)
rate              370 sound/pci/ice1712/ice1712.c 	snd_cs8427_iec958_pcm(ice->cs8427, rate);
rate              576 sound/pci/ice1712/ice1712.c 	u32 period_size, buf_size, rate, tmp;
rate              585 sound/pci/ice1712/ice1712.c 	rate = (runtime->rate * 8192) / 375;
rate              586 sound/pci/ice1712/ice1712.c 	if (rate > 0x000fffff)
rate              587 sound/pci/ice1712/ice1712.c 		rate = 0x000fffff;
rate              593 sound/pci/ice1712/ice1712.c 	snd_ice1712_write(ice, ICE1712_IREG_PBK_RATE_LO, rate & 0xff);
rate              594 sound/pci/ice1712/ice1712.c 	snd_ice1712_write(ice, ICE1712_IREG_PBK_RATE_MID, (rate >> 8) & 0xff);
rate              595 sound/pci/ice1712/ice1712.c 	snd_ice1712_write(ice, ICE1712_IREG_PBK_RATE_HI, (rate >> 16) & 0xff);
rate              609 sound/pci/ice1712/ice1712.c 	u32 period_size, rate, tmp, chn;
rate              617 sound/pci/ice1712/ice1712.c 	rate = (runtime->rate * 8192) / 375;
rate              618 sound/pci/ice1712/ice1712.c 	if (rate > 0x000fffff)
rate              619 sound/pci/ice1712/ice1712.c 		rate = 0x000fffff;
rate              628 sound/pci/ice1712/ice1712.c 	snd_ice1712_ds_write(ice, chn, ICE1712_DSC_RATE, rate);
rate              632 sound/pci/ice1712/ice1712.c 		snd_ice1712_ds_write(ice, chn + 1, ICE1712_DSC_RATE, rate);
rate              660 sound/pci/ice1712/ice1712.c 	snd_ac97_set_rate(ice->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate);
rate              988 sound/pci/ice1712/ice1712.c static void snd_ice1712_set_pro_rate(struct snd_ice1712 *ice, unsigned int rate, int force)
rate              994 sound/pci/ice1712/ice1712.c 	switch (rate) {
rate             1011 sound/pci/ice1712/ice1712.c 		rate = 48000;
rate             1030 sound/pci/ice1712/ice1712.c 	ice->cur_rate = rate;
rate             1035 sound/pci/ice1712/ice1712.c 		ice->gpio.set_pro_rate(ice, rate);
rate             1038 sound/pci/ice1712/ice1712.c 			ice->akm[i].ops.set_rate_val(&ice->akm[i], rate);
rate             1041 sound/pci/ice1712/ice1712.c 		ice->spdif.ops.setup_rate(ice, rate);
rate             2796 sound/pci/ice1712/ice1712.c 	int rate;
rate             2802 sound/pci/ice1712/ice1712.c 		rate = ice->cur_rate;
rate             2804 sound/pci/ice1712/ice1712.c 		rate = PRO_RATE_DEFAULT;
rate             2811 sound/pci/ice1712/ice1712.c 	ice->cur_rate = rate;
rate             2825 sound/pci/ice1712/ice1712.c 		snd_ice1712_set_pro_rate(ice, rate, 1);
rate              262 sound/pci/ice1712/ice1712.h 		void (*set_rate_val)(struct snd_akm4xxx *ak, unsigned int rate);
rate              273 sound/pci/ice1712/ice1712.h 		void (*setup_rate)(struct snd_ice1712 *, int rate);
rate              361 sound/pci/ice1712/ice1712.h 		void (*set_pro_rate)(struct snd_ice1712 *ice, unsigned int rate);
rate              373 sound/pci/ice1712/ice1712.h 	void (*set_rate)(struct snd_ice1712 *ice, unsigned int rate);
rate              374 sound/pci/ice1712/ice1712.h 	unsigned char (*set_mclk)(struct snd_ice1712 *ice, unsigned int rate);
rate              612 sound/pci/ice1712/ice1724.c static void stdclock_set_rate(struct snd_ice1712 *ice, unsigned int rate)
rate              616 sound/pci/ice1712/ice1724.c 		if (stdclock_rate_list[i] == rate) {
rate              624 sound/pci/ice1712/ice1724.c 				       unsigned int rate)
rate              630 sound/pci/ice1712/ice1724.c 		if (rate > 96000)
rate              644 sound/pci/ice1712/ice1724.c static int snd_vt1724_set_pro_rate(struct snd_ice1712 *ice, unsigned int rate,
rate              652 sound/pci/ice1712/ice1724.c 	if (rate > ice->hw_rates->list[ice->hw_rates->count - 1])
rate              660 sound/pci/ice1712/ice1724.c 		return ((rate == ice->cur_rate) && !force) ? 0 : -EBUSY;
rate              666 sound/pci/ice1712/ice1724.c 		return (rate == ice->cur_rate) ? 0 : -EBUSY;
rate              673 sound/pci/ice1712/ice1724.c 		if (force || (old_rate != rate))
rate              675 sound/pci/ice1712/ice1724.c 		else if (rate == ice->cur_rate) {
rate              681 sound/pci/ice1712/ice1724.c 	ice->cur_rate = rate;
rate              685 sound/pci/ice1712/ice1724.c 		ice->set_rate(ice, rate);
rate              688 sound/pci/ice1712/ice1724.c 	mclk_change = ice->set_mclk(ice, rate);
rate              693 sound/pci/ice1712/ice1724.c 		ice->gpio.set_pro_rate(ice, rate);
rate              698 sound/pci/ice1712/ice1724.c 			ice->akm[i].ops.set_rate_val(&ice->akm[i], rate);
rate              701 sound/pci/ice1712/ice1724.c 		ice->spdif.ops.setup_rate(ice, rate);
rate             1010 sound/pci/ice1712/ice1724.c 	unsigned int rate;
rate             1012 sound/pci/ice1712/ice1724.c 		rate = ice->get_rate(ice);
rate             1013 sound/pci/ice1712/ice1724.c 		if (rate >= runtime->hw.rate_min
rate             1014 sound/pci/ice1712/ice1724.c 		    && rate <= runtime->hw.rate_max) {
rate             1015 sound/pci/ice1712/ice1724.c 			runtime->hw.rate_min = rate;
rate             1016 sound/pci/ice1712/ice1724.c 			runtime->hw.rate_max = rate;
rate             1178 sound/pci/ice1712/ice1724.c static void update_spdif_rate(struct snd_ice1712 *ice, unsigned int rate)
rate             1186 sound/pci/ice1712/ice1724.c 	switch (rate) {
rate             1204 sound/pci/ice1712/ice1724.c 		update_spdif_rate(ice, substream->runtime->rate);
rate             1868 sound/pci/ice1712/ice1724.c 	unsigned int i, rate;
rate             1875 sound/pci/ice1712/ice1724.c 		rate = ice->get_rate(ice);
rate             1878 sound/pci/ice1712/ice1724.c 			if (ice->hw_rates->list[i] == rate) {
rate             2830 sound/pci/ice1712/ice1724.c 		int rate;
rate             2832 sound/pci/ice1712/ice1724.c 			rate = ice->cur_rate;
rate             2834 sound/pci/ice1712/ice1724.c 			rate = ice->pro_rate_default;
rate             2835 sound/pci/ice1712/ice1724.c 		snd_vt1724_set_pro_rate(ice, rate, 1);
rate              140 sound/pci/ice1712/juli.c static int get_gpio_val(int rate)
rate              144 sound/pci/ice1712/juli.c 		if (juli_rates[i] == rate)
rate              171 sound/pci/ice1712/juli.c 	int rate;
rate              176 sound/pci/ice1712/juli.c 	rate = snd_ak4114_external_rate(spec->ak4114);
rate              177 sound/pci/ice1712/juli.c 	if (rate >= runtime->hw.rate_min && rate <= runtime->hw.rate_max) {
rate              178 sound/pci/ice1712/juli.c 		runtime->hw.rate_min = rate;
rate              179 sound/pci/ice1712/juli.c 		runtime->hw.rate_max = rate;
rate              208 sound/pci/ice1712/juli.c static void juli_akm_set_rate_val(struct snd_akm4xxx *ak, unsigned int rate)
rate              215 sound/pci/ice1712/juli.c 	if (rate == 0)  /* no hint - S/PDIF input is master or the new spdif
rate              220 sound/pci/ice1712/juli.c 	if (rate > 96000)  {
rate              223 sound/pci/ice1712/juli.c 	} else if (rate > 48000) {
rate              516 sound/pci/ice1712/juli.c static void juli_set_rate(struct snd_ice1712 *ice, unsigned int rate)
rate              522 sound/pci/ice1712/juli.c 	new =  (old & ~GPIO_RATE_MASK) | get_gpio_val(rate);
rate              534 sound/pci/ice1712/juli.c 					  unsigned int rate)
rate              556 sound/pci/ice1712/juli.c 	int rate;
rate              559 sound/pci/ice1712/juli.c 		rate = snd_ak4114_external_rate(ak4114);
rate              562 sound/pci/ice1712/juli.c 		juli_akm_set_rate_val(ice->akm, rate);
rate              587 sound/pci/ice1712/maya44.c static void set_rate(struct snd_ice1712 *ice, unsigned int rate)
rate              593 sound/pci/ice1712/maya44.c 	switch (rate) {
rate              304 sound/pci/ice1712/prodigy192.c static void stac9460_set_rate_val(struct snd_ice1712 *ice, unsigned int rate)
rate              311 sound/pci/ice1712/prodigy192.c 	if (rate == 0)  /* no hint - S/PDIF input is master, simply return */
rate              313 sound/pci/ice1712/prodigy192.c 	else if (rate <= 48000)
rate              315 sound/pci/ice1712/prodigy192.c 	else if (rate <= 96000)
rate              361 sound/pci/ice1712/psc724.c static void psc724_set_pro_rate(struct snd_ice1712 *ice, unsigned int rate)
rate              337 sound/pci/ice1712/quartet.c static void qtet_akm_set_rate_val(struct snd_akm4xxx *ak, unsigned int rate)
rate              341 sound/pci/ice1712/quartet.c 	if (rate == 0)  /* no hint - S/PDIF input is master or the new spdif
rate              346 sound/pci/ice1712/quartet.c 	if (rate > 108000)
rate              348 sound/pci/ice1712/quartet.c 	else if (rate > 54000)
rate              836 sound/pci/ice1712/quartet.c static int get_cks_val(int rate)
rate              840 sound/pci/ice1712/quartet.c 		if (qtet_rates[i] == rate)
rate              846 sound/pci/ice1712/quartet.c static void qtet_set_rate(struct snd_ice1712 *ice, unsigned int rate)
rate              854 sound/pci/ice1712/quartet.c 	new =  (get_cpld(ice) & ~CPLD_CKS_MASK) | get_cks_val(rate);
rate              863 sound/pci/ice1712/quartet.c 		unsigned int rate)
rate              932 sound/pci/ice1712/quartet.c 	int rate;
rate              936 sound/pci/ice1712/quartet.c 		rate = snd_ak4113_external_rate(ak4113);
rate              939 sound/pci/ice1712/quartet.c 		qtet_akm_set_rate_val(ice->akm, rate);
rate              952 sound/pci/ice1712/quartet.c 	int rate;
rate              958 sound/pci/ice1712/quartet.c 	rate = snd_ak4113_external_rate(spec->ak4113);
rate              959 sound/pci/ice1712/quartet.c 	if (rate >= runtime->hw.rate_min && rate <= runtime->hw.rate_max) {
rate              960 sound/pci/ice1712/quartet.c 		runtime->hw.rate_min = rate;
rate              961 sound/pci/ice1712/quartet.c 		runtime->hw.rate_max = rate;
rate               39 sound/pci/ice1712/revo.c static void revo_set_rate_val(struct snd_akm4xxx *ak, unsigned int rate)
rate               44 sound/pci/ice1712/revo.c 	if (rate == 0)	/* no hint - S/PDIF input is master, simply return */
rate               48 sound/pci/ice1712/revo.c 	if (rate > 96000)
rate               50 sound/pci/ice1712/revo.c 	else if (rate > 48000)
rate              309 sound/pci/ice1712/revo.c static void ap192_set_rate_val(struct snd_akm4xxx *ak, unsigned int rate)
rate              314 sound/pci/ice1712/revo.c 	revo_set_rate_val(ak, rate);
rate              317 sound/pci/ice1712/revo.c 	snd_ice1712_gpio_write_bits(ice, 1 << 8, rate > 96000 ? 1 << 8 : 0);
rate              319 sound/pci/ice1712/revo.c 	if (rate > 96000)
rate              321 sound/pci/ice1712/revo.c 	else if (rate > 48000)
rate              109 sound/pci/ice1712/se.c 						unsigned int rate)
rate              204 sound/pci/ice1712/se.c 					unsigned int rate)
rate              206 sound/pci/ice1712/se.c 	if (rate > 96000)
rate              322 sound/pci/ice1712/se.c 						unsigned int rate)
rate              332 sound/pci/ice1712/se.c static void se200pci_set_pro_rate(struct snd_ice1712 *ice, unsigned int rate)
rate              334 sound/pci/ice1712/se.c 	se200pci_WM8740_set_pro_rate(ice, rate);
rate              335 sound/pci/ice1712/se.c 	se200pci_WM8766_set_pro_rate(ice, rate);
rate              336 sound/pci/ice1712/se.c 	se200pci_WM8776_set_pro_rate(ice, rate);
rate              438 sound/pci/ice1712/wtm.c static void stac9460_set_rate_val(struct snd_ice1712 *ice, unsigned int rate)
rate              444 sound/pci/ice1712/wtm.c 	if (rate == 0)  /* no hint - S/PDIF input is master, simply return */
rate              446 sound/pci/ice1712/wtm.c 	else if (rate <= 48000)
rate              448 sound/pci/ice1712/wtm.c 	else if (rate <= 96000)
rate              939 sound/pci/intel8x0.c 	int dbl = runtime->rate > 48000;
rate              593 sound/pci/intel8x0m.c 	snd_ac97_write(ichdev->ac97, AC97_LINE1_RATE, runtime->rate);
rate              814 sound/pci/korg1212/korg1212.c static int snd_korg1212_SetRate(struct snd_korg1212 *korg1212, int rate)
rate              831 sound/pci/korg1212/korg1212.c 	switch (rate) {
rate              845 sound/pci/korg1212/korg1212.c         korg1212->clkRate = rate;
rate              493 sound/pci/lola/lola.h int lola_set_sample_rate(struct lola *chip, int rate);
rate              294 sound/pci/lola/lola_clock.c int lola_set_sample_rate(struct lola *chip, int rate)
rate              298 sound/pci/lola/lola_clock.c 	if (chip->clock.cur_freq == rate && chip->clock.cur_valid)
rate              303 sound/pci/lola/lola_clock.c 		    chip->clock.sample_clock[i].freq == rate)
rate              486 sound/pci/lola/lola_pcm.c 	err = lola_set_sample_rate(chip, runtime->rate);
rate              489 sound/pci/lola/lola_pcm.c 	chip->sample_rate = runtime->rate;	/* sample rate gets locked */
rate              331 sound/pci/lx6464es/lx6464es.c 	if (chip->board_sample_rate != substream->runtime->rate) {
rate              333 sound/pci/lx6464es/lx6464es.c 			chip->board_sample_rate = substream->runtime->rate;
rate             1248 sound/pci/maestro3.c 	freq = ((runtime->rate << 15) + 24000 ) / 48000;
rate             1307 sound/pci/maestro3.c 			  subs->runtime->rate > 45000 ? 0xff : 0);
rate             1422 sound/pci/maestro3.c 	if (runtime->rate > 48000 ||
rate             1423 sound/pci/maestro3.c 	    runtime->rate < 8000)
rate              159 sound/pci/mixart/mixart.c 			    struct mixart_pipe *pipe, unsigned int rate)
rate              170 sound/pci/mixart/mixart.c 		if(rate != 0)
rate              174 sound/pci/mixart/mixart.c 		if(rate == 0)
rate              179 sound/pci/mixart/mixart.c 				rate);
rate              185 sound/pci/mixart/mixart.c 	clock_properties.clock_generic_type = (rate != 0) ? CGT_INTERNAL_CLOCK : CGT_NO_CLOCK;
rate              187 sound/pci/mixart/mixart.c 	clock_properties.frequency = rate;
rate              191 sound/pci/mixart/mixart.c 	dev_dbg(&mgr->pci->dev, "mixart_set_clock to %d kHz\n", rate);
rate              206 sound/pci/mixart/mixart.c 	if(rate)  pipe->status = PIPE_CLOCK_SET;
rate              492 sound/pci/mixart/mixart.c 		chip->mgr->sample_rate = subs->runtime->rate;
rate              496 sound/pci/mixart/mixart.c 		if( mixart_set_clock(chip->mgr, stream->pipe, subs->runtime->rate) )
rate              400 sound/pci/nm256/nm256.c snd_nm256_fixed_rate(unsigned int rate)
rate              404 sound/pci/nm256/nm256.c 		if (rate == samplerates[i])
rate              419 sound/pci/nm256/nm256.c 	int rate_index = snd_nm256_fixed_rate(runtime->rate);
rate              432 sound/pci/nm256/nm256.c 	runtime->rate = samplerates[rate_index];
rate              672 sound/pci/oxygen/xonar_pcm179x.c static void update_cs2000_rate(struct oxygen *chip, unsigned int rate)
rate              677 sound/pci/oxygen/xonar_pcm179x.c 	switch (rate) {
rate              695 sound/pci/oxygen/xonar_pcm179x.c 	if (rate <= 96000 && (rate > 48000 || data->h6)) {
rate              235 sound/pci/pcxhr/pcxhr.c static int pcxhr_get_clock_reg(struct pcxhr_mgr *mgr, unsigned int rate,
rate              242 sound/pci/pcxhr/pcxhr.c 	realfreq = rate;
rate              245 sound/pci/pcxhr/pcxhr.c 		switch (rate) {
rate              264 sound/pci/pcxhr/pcxhr.c 			err = pcxhr_pll_freq_register(rate, &pllreg, &realfreq);
rate              309 sound/pci/pcxhr/pcxhr.c 			       unsigned int rate,
rate              316 sound/pci/pcxhr/pcxhr.c 	err = pcxhr_get_clock_reg(mgr, rate, &val, &realfreq);
rate              321 sound/pci/pcxhr/pcxhr.c 	if (rate < 55000)
rate              323 sound/pci/pcxhr/pcxhr.c 	else if (rate < 100000)
rate              371 sound/pci/pcxhr/pcxhr.c 		    rate, realfreq);
rate              380 sound/pci/pcxhr/pcxhr.c int pcxhr_set_clock(struct pcxhr_mgr *mgr, unsigned int rate)
rate              385 sound/pci/pcxhr/pcxhr.c 	if (rate == 0)
rate              389 sound/pci/pcxhr/pcxhr.c 		err = hr222_sub_set_clock(mgr, rate, &changed);
rate              391 sound/pci/pcxhr/pcxhr.c 		err = pcxhr_sub_set_clock(mgr, rate, &changed);
rate              399 sound/pci/pcxhr/pcxhr.c 		if (rate < PCXHR_IRQ_TIMER_FREQ)
rate              403 sound/pci/pcxhr/pcxhr.c 		rmh.cmd[2] = rate;
rate              419 sound/pci/pcxhr/pcxhr.c 	int err, rate;
rate              459 sound/pci/pcxhr/pcxhr.c 	case REG_STATUS_SYNC_32000 :	rate = 32000; break;
rate              460 sound/pci/pcxhr/pcxhr.c 	case REG_STATUS_SYNC_44100 :	rate = 44100; break;
rate              461 sound/pci/pcxhr/pcxhr.c 	case REG_STATUS_SYNC_48000 :	rate = 48000; break;
rate              462 sound/pci/pcxhr/pcxhr.c 	case REG_STATUS_SYNC_64000 :	rate = 64000; break;
rate              463 sound/pci/pcxhr/pcxhr.c 	case REG_STATUS_SYNC_88200 :	rate = 88200; break;
rate              464 sound/pci/pcxhr/pcxhr.c 	case REG_STATUS_SYNC_96000 :	rate = 96000; break;
rate              465 sound/pci/pcxhr/pcxhr.c 	case REG_STATUS_SYNC_128000 :	rate = 128000; break;
rate              466 sound/pci/pcxhr/pcxhr.c 	case REG_STATUS_SYNC_176400 :	rate = 176400; break;
rate              467 sound/pci/pcxhr/pcxhr.c 	case REG_STATUS_SYNC_192000 :	rate = 192000; break;
rate              468 sound/pci/pcxhr/pcxhr.c 	default: rate = 0;
rate              470 sound/pci/pcxhr/pcxhr.c 	dev_dbg(&mgr->pci->dev, "External clock is at %d Hz\n", rate);
rate              471 sound/pci/pcxhr/pcxhr.c 	*sample_rate = rate;
rate              917 sound/pci/pcxhr/pcxhr.c 		if (mgr->sample_rate != subs->runtime->rate) {
rate              918 sound/pci/pcxhr/pcxhr.c 			err = pcxhr_set_clock(mgr, subs->runtime->rate);
rate              924 sound/pci/pcxhr/pcxhr.c 			mgr->sample_rate = subs->runtime->rate;
rate              194 sound/pci/pcxhr/pcxhr.h int pcxhr_set_clock(struct pcxhr_mgr *mgr, unsigned int rate);
rate              339 sound/pci/pcxhr/pcxhr_mix22.c 			unsigned int rate,
rate              344 sound/pci/pcxhr/pcxhr_mix22.c 	unsigned realfreq = rate;
rate              348 sound/pci/pcxhr/pcxhr_mix22.c 		err = hr222_pll_freq_register(rate, &pllreg, &realfreq);
rate              380 sound/pci/pcxhr/pcxhr_mix22.c 	speed = rate < 55000 ? 0 : 1;
rate              398 sound/pci/pcxhr/pcxhr_mix22.c 		    rate, realfreq, pllreg);
rate              406 sound/pci/pcxhr/pcxhr_mix22.c 	int rate, calc_rate = 0;
rate              457 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 192000;
rate              459 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 176400;
rate              461 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 128000;
rate              463 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 96000;
rate              465 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 88200;
rate              467 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 64000;
rate              469 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 48000;
rate              471 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 44100;
rate              473 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 32000;
rate              475 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 24000;
rate              477 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 22050;
rate              479 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 16000;
rate              481 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 12000;
rate              483 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 11025;
rate              485 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 8000;
rate              487 sound/pci/pcxhr/pcxhr_mix22.c 		rate = 0;
rate              490 sound/pci/pcxhr/pcxhr_mix22.c 		    rate, calc_rate);
rate              491 sound/pci/pcxhr/pcxhr_mix22.c 	*sample_rate = rate;
rate               16 sound/pci/pcxhr/pcxhr_mix22.h int hr222_sub_set_clock(struct pcxhr_mgr *mgr, unsigned int rate,
rate              754 sound/pci/pcxhr/pcxhr_mixer.c 	int rate, ret = 0;
rate              767 sound/pci/pcxhr/pcxhr_mixer.c 		rate = 0;
rate              770 sound/pci/pcxhr/pcxhr_mixer.c 						 &rate);
rate              772 sound/pci/pcxhr/pcxhr_mixer.c 			rate = mgr->sample_rate;
rate              773 sound/pci/pcxhr/pcxhr_mixer.c 			if (!rate)
rate              774 sound/pci/pcxhr/pcxhr_mixer.c 				rate = 48000;
rate              776 sound/pci/pcxhr/pcxhr_mixer.c 		if (rate) {
rate              777 sound/pci/pcxhr/pcxhr_mixer.c 			pcxhr_set_clock(mgr, rate);
rate              779 sound/pci/pcxhr/pcxhr_mixer.c 				mgr->sample_rate = rate;
rate              815 sound/pci/pcxhr/pcxhr_mixer.c 	int i, err, rate;
rate              820 sound/pci/pcxhr/pcxhr_mixer.c 			rate = mgr->sample_rate_real;
rate              822 sound/pci/pcxhr/pcxhr_mixer.c 			err = pcxhr_get_external_clock(mgr, i, &rate);
rate              826 sound/pci/pcxhr/pcxhr_mixer.c 		ucontrol->value.integer.value[i] = rate;
rate              473 sound/pci/riptide/riptide.c 	unsigned int rate;
rate              973 sound/pci/riptide/riptide.c getsamplerate(struct cmdif *cif, unsigned char *intdec, unsigned int *rate)
rate              996 sound/pci/riptide/riptide.c 		*rate = (unsigned int)p[0];
rate              998 sound/pci/riptide/riptide.c 		*rate = (unsigned int)p[1];
rate              999 sound/pci/riptide/riptide.c 	snd_printdd("getsampleformat %d %d %d\n", intdec[0], intdec[1], *rate);
rate             1027 sound/pci/riptide/riptide.c setsamplerate(struct cmdif *cif, unsigned char *intdec, unsigned int rate)
rate             1034 sound/pci/riptide/riptide.c 		    intdec[1], rate);
rate             1036 sound/pci/riptide/riptide.c 	M = ((rate == 48000) ? 47999 : rate) * 65536;
rate             1050 sound/pci/riptide/riptide.c 					    *intdec, rate);
rate             1445 sound/pci/riptide/riptide.c 	unsigned int rate, channels;
rate             1453 sound/pci/riptide/riptide.c 		    runtime->channels, runtime->format, runtime->rate);
rate             1458 sound/pci/riptide/riptide.c 	rate = runtime->rate;
rate             1461 sound/pci/riptide/riptide.c 		if (rate == 48000 && format == SNDRV_PCM_FORMAT_S16_LE)
rate             1467 sound/pci/riptide/riptide.c 		if (rate == 48000 && format == SNDRV_PCM_FORMAT_S16_LE)
rate             1522 sound/pci/riptide/riptide.c 		data->rate = 0;
rate             1524 sound/pci/riptide/riptide.c 	if (data->rate != rate || data->format != format ||
rate             1526 sound/pci/riptide/riptide.c 		data->rate = rate;
rate             1531 sound/pci/riptide/riptide.c 		    || setsamplerate(cif, data->intdec, rate))
rate             1899 sound/pci/riptide/riptide.c 	unsigned int rate;
rate             1937 sound/pci/riptide/riptide.c 			if (!(getsamplerate(cif, data->intdec, &rate)))
rate             1938 sound/pci/riptide/riptide.c 				snd_iprintf(buffer, "rate: %d\n", rate);
rate             1948 sound/pci/riptide/riptide.c 		if (!(getsamplerate(cif, data->intdec, &rate)))
rate             1949 sound/pci/riptide/riptide.c 			snd_iprintf(buffer, "rate: %d\n", rate);
rate              415 sound/pci/rme32.c 	int rate;
rate              417 sound/pci/rme32.c 	rate = ((rme32->wcreg >> RME32_WCR_BITPOS_FREQ_0) & 1) +
rate              419 sound/pci/rme32.c 	switch (rate) {
rate              421 sound/pci/rme32.c 		rate = 32000;
rate              424 sound/pci/rme32.c 		rate = 44100;
rate              427 sound/pci/rme32.c 		rate = 48000;
rate              432 sound/pci/rme32.c 	return (rme32->wcreg & RME32_WCR_DS_BM) ? rate << 1 : rate;
rate              497 sound/pci/rme32.c static int snd_rme32_playback_setrate(struct rme32 * rme32, int rate)
rate              502 sound/pci/rme32.c 	switch (rate) {
rate              661 sound/pci/rme32.c 	int err, rate, dummy;
rate              678 sound/pci/rme32.c 	    (rate = snd_rme32_capture_getrate(rme32, &dummy)) > 0) {
rate              680 sound/pci/rme32.c 		if ((int)params_rate(params) != rate) {
rate              716 sound/pci/rme32.c 	int err, isadat, rate;
rate              744 sound/pci/rme32.c 	if ((rate = snd_rme32_capture_getrate(rme32, &isadat)) > 0) {
rate              745 sound/pci/rme32.c                 if ((int)params_rate(params) != rate) {
rate              851 sound/pci/rme32.c 	int rate, dummy;
rate              876 sound/pci/rme32.c 	    (rate = snd_rme32_capture_getrate(rme32, &dummy)) > 0) {
rate              878 sound/pci/rme32.c 		runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate);
rate              879 sound/pci/rme32.c 		runtime->hw.rate_min = rate;
rate              880 sound/pci/rme32.c 		runtime->hw.rate_max = rate;
rate              894 sound/pci/rme32.c 	int isadat, rate;
rate              916 sound/pci/rme32.c 	if ((rate = snd_rme32_capture_getrate(rme32, &isadat)) > 0) {
rate              920 sound/pci/rme32.c 		runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate);
rate              921 sound/pci/rme32.c 		runtime->hw.rate_min = rate;
rate              922 sound/pci/rme32.c 		runtime->hw.rate_max = rate;
rate              933 sound/pci/rme32.c 	int rate, dummy;
rate              954 sound/pci/rme32.c 	    (rate = snd_rme32_capture_getrate(rme32, &dummy)) > 0) {
rate              956 sound/pci/rme32.c                 runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate);
rate              957 sound/pci/rme32.c                 runtime->hw.rate_min = rate;
rate              958 sound/pci/rme32.c                 runtime->hw.rate_max = rate;
rate              968 sound/pci/rme32.c 	int isadat, rate;
rate              976 sound/pci/rme32.c 	if ((rate = snd_rme32_capture_getrate(rme32, &isadat)) > 0) {
rate              980 sound/pci/rme32.c                 runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate);
rate              981 sound/pci/rme32.c                 runtime->hw.rate_min = rate;
rate              982 sound/pci/rme32.c                 runtime->hw.rate_max = rate;
rate              609 sound/pci/rme96.c 	int n, rate;
rate              618 sound/pci/rme96.c 			rate = 32000;
rate              621 sound/pci/rme96.c 			rate = 44100;
rate              624 sound/pci/rme96.c 			rate = 48000;
rate              629 sound/pci/rme96.c 		return (rme96->areg & RME96_AR_BITPOS_F2) ? rate << 1 : rate;
rate              671 sound/pci/rme96.c 	int rate, dummy;
rate              675 sound/pci/rme96.c 	    (rate = snd_rme96_capture_getrate(rme96, &dummy)) > 0)
rate              678 sound/pci/rme96.c 	        return rate;
rate              680 sound/pci/rme96.c 	rate = ((rme96->wcreg >> RME96_WCR_BITPOS_FREQ_0) & 1) +
rate              682 sound/pci/rme96.c 	switch (rate) {
rate              684 sound/pci/rme96.c 		rate = 32000;
rate              687 sound/pci/rme96.c 		rate = 44100;
rate              690 sound/pci/rme96.c 		rate = 48000;
rate              695 sound/pci/rme96.c 	return (rme96->wcreg & RME96_WCR_DS) ? rate << 1 : rate;
rate              700 sound/pci/rme96.c 			   int rate)
rate              705 sound/pci/rme96.c 	switch (rate) {
rate              753 sound/pci/rme96.c 				 int rate)
rate              755 sound/pci/rme96.c 	switch (rate) {
rate              983 sound/pci/rme96.c 	int err, rate, dummy;
rate              994 sound/pci/rme96.c 	    (rate = snd_rme96_capture_getrate(rme96, &dummy)) > 0)
rate              997 sound/pci/rme96.c                 if ((int)params_rate(params) != rate) {
rate             1046 sound/pci/rme96.c 	int err, isadat, rate;
rate             1065 sound/pci/rme96.c 	} else if ((rate = snd_rme96_capture_getrate(rme96, &isadat)) > 0) {
rate             1066 sound/pci/rme96.c                 if ((int)params_rate(params) != rate) {
rate             1182 sound/pci/rme96.c         int rate, dummy;
rate             1200 sound/pci/rme96.c 	    (rate = snd_rme96_capture_getrate(rme96, &dummy)) > 0)
rate             1203 sound/pci/rme96.c                 runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate);
rate             1204 sound/pci/rme96.c                 runtime->hw.rate_min = rate;
rate             1205 sound/pci/rme96.c                 runtime->hw.rate_max = rate;
rate             1219 sound/pci/rme96.c         int isadat, rate;
rate             1226 sound/pci/rme96.c             (rate = snd_rme96_capture_getrate(rme96, &isadat)) > 0)
rate             1231 sound/pci/rme96.c                 runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate);
rate             1232 sound/pci/rme96.c                 runtime->hw.rate_min = rate;
rate             1233 sound/pci/rme96.c                 runtime->hw.rate_max = rate;
rate             1251 sound/pci/rme96.c         int rate, dummy;
rate             1269 sound/pci/rme96.c 	    (rate = snd_rme96_capture_getrate(rme96, &dummy)) > 0)
rate             1272 sound/pci/rme96.c                 runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate);
rate             1273 sound/pci/rme96.c                 runtime->hw.rate_min = rate;
rate             1274 sound/pci/rme96.c                 runtime->hw.rate_max = rate;
rate             1283 sound/pci/rme96.c         int isadat, rate;
rate             1294 sound/pci/rme96.c         if ((rate = snd_rme96_capture_getrate(rme96, &isadat)) > 0) {
rate             1298 sound/pci/rme96.c                 runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate);
rate             1299 sound/pci/rme96.c                 runtime->hw.rate_min = rate;
rate             1300 sound/pci/rme96.c                 runtime->hw.rate_max = rate;
rate             1097 sound/pci/rme9652/hdsp.c static void hdsp_set_dds_value(struct hdsp *hdsp, int rate)
rate             1101 sound/pci/rme9652/hdsp.c 	if (rate >= 112000)
rate             1102 sound/pci/rme9652/hdsp.c 		rate /= 4;
rate             1103 sound/pci/rme9652/hdsp.c 	else if (rate >= 56000)
rate             1104 sound/pci/rme9652/hdsp.c 		rate /= 2;
rate             1107 sound/pci/rme9652/hdsp.c 	n = div_u64(n, rate);
rate             1116 sound/pci/rme9652/hdsp.c static int hdsp_set_rate(struct hdsp *hdsp, int rate, int called_internally)
rate             1144 sound/pci/rme9652/hdsp.c 			else if (rate != external_freq) {
rate             1164 sound/pci/rme9652/hdsp.c 	if (rate > 96000 && hdsp->io_type != H9632)
rate             1167 sound/pci/rme9652/hdsp.c 	switch (rate) {
rate             1231 sound/pci/rme9652/hdsp.c 		hdsp_set_dds_value(hdsp, rate);
rate             1233 sound/pci/rme9652/hdsp.c 	if (rate >= 128000) {
rate             1235 sound/pci/rme9652/hdsp.c 	} else if (rate > 48000) {
rate             1259 sound/pci/rme9652/hdsp.c 	hdsp->system_sample_rate = rate;
rate             1970 sound/pci/rme9652/hdsp.c 	int rate;
rate             1982 sound/pci/rme9652/hdsp.c 		rate = 32000;
rate             1985 sound/pci/rme9652/hdsp.c 		rate = 44100;
rate             1988 sound/pci/rme9652/hdsp.c 		rate = 48000;
rate             1991 sound/pci/rme9652/hdsp.c 		rate = 64000;
rate             1994 sound/pci/rme9652/hdsp.c 		rate = 88200;
rate             1997 sound/pci/rme9652/hdsp.c 		rate = 96000;
rate             2000 sound/pci/rme9652/hdsp.c 		rate = 128000;
rate             2003 sound/pci/rme9652/hdsp.c 		rate = 176400;
rate             2006 sound/pci/rme9652/hdsp.c 		rate = 192000;
rate             2009 sound/pci/rme9652/hdsp.c 		rate = 48000;
rate             2013 sound/pci/rme9652/hdsp.c 	hdsp_set_rate(hdsp, rate, 1);
rate             2847 sound/pci/rme9652/hdsp.c 	int rate = hdsp->system_sample_rate + offset_hz;
rate             2848 sound/pci/rme9652/hdsp.c 	hdsp_set_dds_value(hdsp, rate);
rate             1217 sound/pci/rme9652/hdspm.c static int hdspm_round_frequency(int rate)
rate             1219 sound/pci/rme9652/hdspm.c 	if (rate < 38050)
rate             1221 sound/pci/rme9652/hdspm.c 	if (rate < 46008)
rate             1235 sound/pci/rme9652/hdspm.c static int hdspm_rate_multiplier(struct hdspm *hdspm, int rate)
rate             1237 sound/pci/rme9652/hdspm.c 	if (rate <= 48000) {
rate             1239 sound/pci/rme9652/hdspm.c 			return rate * 4;
rate             1242 sound/pci/rme9652/hdspm.c 			return rate * 2;
rate             1244 sound/pci/rme9652/hdspm.c 	return rate;
rate             1251 sound/pci/rme9652/hdspm.c 	int syncref, rate = 0, rate_bits;
rate             1295 sound/pci/rme9652/hdspm.c 			rate = 0;  /* no lock */
rate             1299 sound/pci/rme9652/hdspm.c 				rate = 32000; break;
rate             1301 sound/pci/rme9652/hdspm.c 				rate = 44100; break;
rate             1303 sound/pci/rme9652/hdspm.c 				rate = 48000; break;
rate             1305 sound/pci/rme9652/hdspm.c 				rate = 64000; break;
rate             1307 sound/pci/rme9652/hdspm.c 				rate = 88200; break;
rate             1309 sound/pci/rme9652/hdspm.c 				rate = 96000; break;
rate             1311 sound/pci/rme9652/hdspm.c 				rate = 128000; break;
rate             1313 sound/pci/rme9652/hdspm.c 				rate = 176400; break;
rate             1315 sound/pci/rme9652/hdspm.c 				rate = 192000; break;
rate             1317 sound/pci/rme9652/hdspm.c 				rate = 0; break;
rate             1328 sound/pci/rme9652/hdspm.c 		rate = 0;
rate             1339 sound/pci/rme9652/hdspm.c 				rate = 32000;
rate             1342 sound/pci/rme9652/hdspm.c 				rate = 44100;
rate             1345 sound/pci/rme9652/hdspm.c 				rate = 48000;
rate             1348 sound/pci/rme9652/hdspm.c 				rate = 64000;
rate             1351 sound/pci/rme9652/hdspm.c 				rate = 88200;
rate             1354 sound/pci/rme9652/hdspm.c 				rate = 96000;
rate             1357 sound/pci/rme9652/hdspm.c 				rate = 128000;
rate             1360 sound/pci/rme9652/hdspm.c 				rate = 176400;
rate             1363 sound/pci/rme9652/hdspm.c 				rate = 192000;
rate             1366 sound/pci/rme9652/hdspm.c 				rate = 0;
rate             1374 sound/pci/rme9652/hdspm.c 		if (rate != 0 &&
rate             1376 sound/pci/rme9652/hdspm.c 			return hdspm_rate_multiplier(hdspm, rate);
rate             1384 sound/pci/rme9652/hdspm.c 				rate = 32000;
rate             1387 sound/pci/rme9652/hdspm.c 				rate = 44100;
rate             1390 sound/pci/rme9652/hdspm.c 				rate = 48000;
rate             1393 sound/pci/rme9652/hdspm.c 				rate = 64000;
rate             1396 sound/pci/rme9652/hdspm.c 				rate = 88200;
rate             1399 sound/pci/rme9652/hdspm.c 				rate = 96000;
rate             1402 sound/pci/rme9652/hdspm.c 				rate = 128000;
rate             1405 sound/pci/rme9652/hdspm.c 				rate = 176400;
rate             1408 sound/pci/rme9652/hdspm.c 				rate = 192000;
rate             1411 sound/pci/rme9652/hdspm.c 				rate = 0;
rate             1434 sound/pci/rme9652/hdspm.c 				rate = hdspm_round_frequency(
rate             1439 sound/pci/rme9652/hdspm.c 		rate = hdspm_rate_multiplier(hdspm, rate);
rate             1444 sound/pci/rme9652/hdspm.c 	return rate;
rate             1590 sound/pci/rme9652/hdspm.c static void hdspm_set_dds_value(struct hdspm *hdspm, int rate)
rate             1594 sound/pci/rme9652/hdspm.c 	if (snd_BUG_ON(rate <= 0))
rate             1597 sound/pci/rme9652/hdspm.c 	if (rate >= 112000)
rate             1598 sound/pci/rme9652/hdspm.c 		rate /= 4;
rate             1599 sound/pci/rme9652/hdspm.c 	else if (rate >= 56000)
rate             1600 sound/pci/rme9652/hdspm.c 		rate /= 2;
rate             1619 sound/pci/rme9652/hdspm.c 	n = div_u64(n, rate);
rate             1626 sound/pci/rme9652/hdspm.c static int hdspm_set_rate(struct hdspm * hdspm, int rate, int called_internally)
rate             1662 sound/pci/rme9652/hdspm.c 			} else if (rate != external_freq) {
rate             1690 sound/pci/rme9652/hdspm.c 	if (rate <= 48000)
rate             1692 sound/pci/rme9652/hdspm.c 	else if (rate <= 96000)
rate             1697 sound/pci/rme9652/hdspm.c 	switch (rate) {
rate             1745 sound/pci/rme9652/hdspm.c 	hdspm_set_dds_value(hdspm, rate);
rate             1747 sound/pci/rme9652/hdspm.c 	if (AES32 == hdspm->io_type && rate != current_rate)
rate             1750 sound/pci/rme9652/hdspm.c 	hdspm->system_sample_rate = rate;
rate             1752 sound/pci/rme9652/hdspm.c 	if (rate <= 48000) {
rate             1759 sound/pci/rme9652/hdspm.c 	} else if (rate <= 96000) {
rate             2191 sound/pci/rme9652/hdspm.c 	unsigned int period, rate;
rate             2194 sound/pci/rme9652/hdspm.c 	rate = hdspm_calc_dds_value(hdspm, period);
rate             2196 sound/pci/rme9652/hdspm.c 	return rate;
rate             2205 sound/pci/rme9652/hdspm.c 	unsigned int rate;
rate             2207 sound/pci/rme9652/hdspm.c 	rate = hdspm_get_pll_freq(hdspm);
rate             2209 sound/pci/rme9652/hdspm.c 	if (rate > 207000) {
rate             2213 sound/pci/rme9652/hdspm.c 			rate = hdspm->system_sample_rate;
rate             2216 sound/pci/rme9652/hdspm.c 			rate = hdspm_external_sample_rate(hdspm);
rate             2217 sound/pci/rme9652/hdspm.c 			if (!rate)
rate             2218 sound/pci/rme9652/hdspm.c 				rate = hdspm->system_sample_rate;
rate             2222 sound/pci/rme9652/hdspm.c 	return rate;
rate             2264 sound/pci/rme9652/hdspm.c 	int rate = ucontrol->value.integer.value[0];
rate             2266 sound/pci/rme9652/hdspm.c 	if (rate < 27000 || rate > 207000)
rate             2384 sound/pci/rme9652/hdspm.c 	int rate = hdspm_external_sample_rate(hdspm);
rate             2387 sound/pci/rme9652/hdspm.c 		if (HDSPM_bit2freq(i) == rate) {
rate             2617 sound/pci/rme9652/hdspm.c 	int rate;
rate             2620 sound/pci/rme9652/hdspm.c 		rate = 32000; break;
rate             2622 sound/pci/rme9652/hdspm.c 		rate = 44100; break;
rate             2624 sound/pci/rme9652/hdspm.c 		rate = 48000; break;
rate             2626 sound/pci/rme9652/hdspm.c 		rate = 64000; break;
rate             2628 sound/pci/rme9652/hdspm.c 		rate = 88200; break;
rate             2630 sound/pci/rme9652/hdspm.c 		rate = 96000; break;
rate             2632 sound/pci/rme9652/hdspm.c 		rate = 128000; break;
rate             2634 sound/pci/rme9652/hdspm.c 		rate = 176400; break;
rate             2636 sound/pci/rme9652/hdspm.c 		rate = 192000; break;
rate             2638 sound/pci/rme9652/hdspm.c 		rate = 48000;
rate             2640 sound/pci/rme9652/hdspm.c 	hdspm_set_rate(hdspm, rate, 1);
rate             4756 sound/pci/rme9652/hdspm.c 	u32 rate;
rate             4823 sound/pci/rme9652/hdspm.c 		rate = div_u64(freq_const, period);
rate             4826 sound/pci/rme9652/hdspm.c 			rate *= 4;
rate             4828 sound/pci/rme9652/hdspm.c 			rate *= 2;
rate             4832 sound/pci/rme9652/hdspm.c 				(unsigned int) rate);
rate              469 sound/pci/rme9652/rme9652.c static int rme9652_set_rate(struct snd_rme9652 *rme9652, int rate)
rate              493 sound/pci/rme9652/rme9652.c 	switch (rate) {
rate              498 sound/pci/rme9652/rme9652.c 		rate = 0;
rate              504 sound/pci/rme9652/rme9652.c 		rate = RME9652_freq;
rate              510 sound/pci/rme9652/rme9652.c 		rate = RME9652_DS;
rate              516 sound/pci/rme9652/rme9652.c 		rate = RME9652_DS | RME9652_freq;
rate              532 sound/pci/rme9652/rme9652.c 	rme9652->control_register |= rate;
rate              539 sound/pci/rme9652/rme9652.c 	if (rate & RME9652_DS) {
rate              347 sound/pci/sis7019.c static u32 sis_rate_to_delta(unsigned int rate)
rate              359 sound/pci/sis7019.c 	if (rate == 44100)
rate              361 sound/pci/sis7019.c 	else if (rate == 8000)
rate              363 sound/pci/sis7019.c 	else if (rate == 48000)
rate              366 sound/pci/sis7019.c 		delta = (((rate << 12) + 24000) / 48000) & 0x0000ffff;
rate              555 sound/pci/sis7019.c 	delta = sis_rate_to_delta(runtime->rate);
rate              798 sound/pci/sis7019.c 	delta = sis_rate_to_delta(runtime->rate);
rate              468 sound/pci/sonicvibes.c static void snd_sonicvibes_pll(unsigned int rate,
rate              476 sound/pci/sonicvibes.c 	if (rate < 625000 / SV_ADCMULT)
rate              477 sound/pci/sonicvibes.c 		rate = 625000 / SV_ADCMULT;
rate              478 sound/pci/sonicvibes.c 	if (rate > 150000000 / SV_ADCMULT)
rate              479 sound/pci/sonicvibes.c 		rate = 150000000 / SV_ADCMULT;
rate              481 sound/pci/sonicvibes.c 	for (r = 0; rate < 75000000 / SV_ADCMULT; r += 0x20, rate <<= 1);
rate              485 sound/pci/sonicvibes.c 			if (xr >= rate)
rate              486 sound/pci/sonicvibes.c 				xd = xr - rate;
rate              488 sound/pci/sonicvibes.c 				xd = rate - xr;
rate              508 sound/pci/sonicvibes.c                                   unsigned int rate)
rate              513 sound/pci/sonicvibes.c 	snd_sonicvibes_pll(rate, &r, &m, &n);
rate              522 sound/pci/sonicvibes.c static void snd_sonicvibes_set_adc_rate(struct sonicvibes * sonic, unsigned int rate)
rate              528 sound/pci/sonicvibes.c 	div = 48000 / rate;
rate              531 sound/pci/sonicvibes.c 	if ((48000 / div) == rate) {	/* use the alternate clock */
rate              535 sound/pci/sonicvibes.c 		snd_sonicvibes_setpll(sonic, SV_IREG_ADC_PLL, rate);
rate              546 sound/pci/sonicvibes.c 	unsigned int rate, div, r, m, n;
rate              550 sound/pci/sonicvibes.c 		rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE)->min;
rate              551 sound/pci/sonicvibes.c 		div = 48000 / rate;
rate              554 sound/pci/sonicvibes.c 		if ((48000 / div) == rate) {
rate              555 sound/pci/sonicvibes.c 			params->rate_num = rate;
rate              558 sound/pci/sonicvibes.c 			snd_sonicvibes_pll(rate, &r, &m, &n);
rate              568 sound/pci/sonicvibes.c static void snd_sonicvibes_set_dac_rate(struct sonicvibes * sonic, unsigned int rate)
rate              573 sound/pci/sonicvibes.c 	div = (rate * 65536 + SV_FULLRATE / 2) / SV_FULLRATE;
rate              710 sound/pci/sonicvibes.c 	snd_sonicvibes_set_dac_rate(sonic, runtime->rate);
rate              735 sound/pci/sonicvibes.c 	snd_sonicvibes_set_adc_rate(sonic, runtime->rate);
rate              666 sound/pci/trident/trident_main.c static unsigned int snd_trident_convert_rate(unsigned int rate)
rate              674 sound/pci/trident/trident_main.c 	if (rate == 44100)
rate              676 sound/pci/trident/trident_main.c 	else if (rate == 8000)
rate              678 sound/pci/trident/trident_main.c 	else if (rate == 48000)
rate              681 sound/pci/trident/trident_main.c 		delta = (((rate << 12) + 24000) / 48000) & 0x0000ffff;
rate              696 sound/pci/trident/trident_main.c static unsigned int snd_trident_convert_adc_rate(unsigned int rate)
rate              704 sound/pci/trident/trident_main.c 	if (rate == 44100)
rate              706 sound/pci/trident/trident_main.c 	else if (rate == 8000)
rate              708 sound/pci/trident/trident_main.c 	else if (rate == 48000)
rate              711 sound/pci/trident/trident_main.c 		delta = ((48000 << 12) / rate) & 0x0000ffff;
rate              726 sound/pci/trident/trident_main.c static unsigned int snd_trident_spurious_threshold(unsigned int rate,
rate              729 sound/pci/trident/trident_main.c 	unsigned int res = (rate * period_size) / 48000;
rate              944 sound/pci/trident/trident_main.c 	voice->Delta = snd_trident_convert_rate(runtime->rate);
rate              945 sound/pci/trident/trident_main.c 	voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
rate             1064 sound/pci/trident/trident_main.c 	val = (((unsigned int) 48000L << 12) + (runtime->rate/2)) / runtime->rate;
rate             1089 sound/pci/trident/trident_main.c 	voice->Delta = snd_trident_convert_rate(runtime->rate);
rate             1090 sound/pci/trident/trident_main.c 	voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
rate             1186 sound/pci/trident/trident_main.c 	voice->Delta = snd_trident_convert_adc_rate(runtime->rate);
rate             1187 sound/pci/trident/trident_main.c 	voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
rate             1211 sound/pci/trident/trident_main.c 		evoice->Delta = snd_trident_convert_rate(runtime->rate);
rate             1405 sound/pci/trident/trident_main.c 		voice->Delta = snd_trident_convert_rate(runtime->rate);
rate             1406 sound/pci/trident/trident_main.c 		voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
rate              337 sound/pci/via82xx.c 	int rate;
rate              985 sound/pci/via82xx.c 	snd_ac97_set_rate(chip->ac97, AC97_PCM_FRONT_DAC_RATE, runtime->rate);
rate              986 sound/pci/via82xx.c 	snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate);
rate              997 sound/pci/via82xx.c 	snd_ac97_set_rate(chip->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate);
rate             1005 sound/pci/via82xx.c static int via_lock_rate(struct via_rate_lock *rec, int rate)
rate             1010 sound/pci/via82xx.c 	if (rec->rate != rate) {
rate             1011 sound/pci/via82xx.c 		if (rec->rate && rec->used > 1) /* already set */
rate             1014 sound/pci/via82xx.c 			rec->rate = rate;
rate             1030 sound/pci/via82xx.c 	int ac97_rate = chip->dxs_src ? 48000 : runtime->rate;
rate             1038 sound/pci/via82xx.c 				  chip->no_vra ? 48000 : runtime->rate);
rate             1040 sound/pci/via82xx.c 		snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate);
rate             1042 sound/pci/via82xx.c 	if (runtime->rate == 48000)
rate             1045 sound/pci/via82xx.c 		rbits = (0x100000 / 48000) * runtime->rate +
rate             1046 sound/pci/via82xx.c 			((0x100000 % 48000) * runtime->rate) / 48000;
rate             1075 sound/pci/via82xx.c 	if (via_lock_rate(&chip->rates[0], runtime->rate) < 0)
rate             1077 sound/pci/via82xx.c 	snd_ac97_set_rate(chip->ac97, AC97_PCM_FRONT_DAC_RATE, runtime->rate);
rate             1078 sound/pci/via82xx.c 	snd_ac97_set_rate(chip->ac97, AC97_PCM_SURR_DAC_RATE, runtime->rate);
rate             1079 sound/pci/via82xx.c 	snd_ac97_set_rate(chip->ac97, AC97_PCM_LFE_DAC_RATE, runtime->rate);
rate             1080 sound/pci/via82xx.c 	snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate);
rate             1122 sound/pci/via82xx.c 	if (via_lock_rate(&chip->rates[1], runtime->rate) < 0)
rate             1124 sound/pci/via82xx.c 	snd_ac97_set_rate(chip->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate);
rate             1195 sound/pci/via82xx.c 	} else if (! ratep->rate) {
rate             1202 sound/pci/via82xx.c 		runtime->hw.rate_max = runtime->hw.rate_min = ratep->rate;
rate             1321 sound/pci/via82xx.c 		ratep->rate = 0;
rate             1323 sound/pci/via82xx.c 	if (! ratep->rate) {
rate              112 sound/pci/ymfpci/ymfpci_main.c static u32 snd_ymfpci_calc_delta(u32 rate)
rate              114 sound/pci/ymfpci/ymfpci_main.c 	switch (rate) {
rate              121 sound/pci/ymfpci/ymfpci_main.c 	default:	return ((rate << 16) / 375) << 5;
rate              129 sound/pci/ymfpci/ymfpci_main.c static u32 snd_ymfpci_calc_lpfK(u32 rate)
rate              137 sound/pci/ymfpci/ymfpci_main.c 	if (rate == 44100)
rate              140 sound/pci/ymfpci/ymfpci_main.c 		if (rate <= def_rate[i])
rate              145 sound/pci/ymfpci/ymfpci_main.c static u32 snd_ymfpci_calc_lpfQ(u32 rate)
rate              153 sound/pci/ymfpci/ymfpci_main.c 	if (rate == 44100)
rate              156 sound/pci/ymfpci/ymfpci_main.c 		if (rate <= def_rate[i])
rate              489 sound/pci/ymfpci/ymfpci_main.c 	u32 delta = snd_ymfpci_calc_delta(runtime->rate);
rate              490 sound/pci/ymfpci/ymfpci_main.c 	u32 lpfQ = snd_ymfpci_calc_lpfQ(runtime->rate);
rate              491 sound/pci/ymfpci/ymfpci_main.c 	u32 lpfK = snd_ymfpci_calc_lpfK(runtime->rate);
rate              521 sound/pci/ymfpci/ymfpci_main.c 		 runtime->rate == 44100 && runtime->channels == 2 &&
rate              708 sound/pci/ymfpci/ymfpci_main.c 	u32 rate, format;
rate              715 sound/pci/ymfpci/ymfpci_main.c 	rate = ((48000 * 4096) / runtime->rate) - 1;
rate              728 sound/pci/ymfpci/ymfpci_main.c 		snd_ymfpci_writel(chip, YDSXGR_RECSLOTSR, rate);
rate              732 sound/pci/ymfpci/ymfpci_main.c 		snd_ymfpci_writel(chip, YDSXGR_ADCSLOTSR, rate);
rate               38 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c 	int inc, ret = 0, rate;
rate               54 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c 		rate = snd_ak4117_check_rate_and_errors(chip->ak4117, AK4117_CHECK_NO_STAT|AK4117_CHECK_NO_RATE);
rate               62 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c 		rate = 0;
rate               71 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c 		if ((chip->ak4117->rcs0 & AK4117_UNLCK) || runtime->rate != rate) {
rate               84 sound/ppc/pmac.c unsigned int snd_pmac_rate_index(struct snd_pmac *chip, struct pmac_stream *rec, unsigned int rate)
rate               89 sound/ppc/pmac.c 	if (rate > chip->freq_table[0])
rate               95 sound/ppc/pmac.c 		if (rate >= chip->freq_table[i])
rate              210 sound/ppc/pmac.c 	rate_index = snd_pmac_rate_index(chip, rec, runtime->rate);
rate              162 sound/ppc/pmac.h unsigned int snd_pmac_rate_index(struct snd_pmac *chip, struct pmac_stream *rec, unsigned int rate);
rate              447 sound/ppc/snd_ps3.c 		 substream->runtime->rate,
rate              454 sound/ppc/snd_ps3.c 	switch (substream->runtime->rate) {
rate              469 sound/ppc/snd_ps3.c 			substream->runtime->rate);
rate              558 sound/ppc/snd_ps3.c 	int rate ;
rate              560 sound/ppc/snd_ps3.c 	rate = substream->runtime->rate;
rate              562 sound/ppc/snd_ps3.c 				  rate * delay_ms / 1000)
rate              568 sound/ppc/snd_ps3.c 		 rate,
rate              569 sound/ppc/snd_ps3.c 		 snd_pcm_format_size(substream->runtime->format, rate),
rate              570 sound/ppc/snd_ps3.c 		 rate * delay_ms / 1000,
rate              389 sound/sh/aica.c 	dreamcastcard->channel->freq = substream->runtime->rate;
rate               45 sound/sh/sh_dac_audio.c 	int rate;
rate               75 sound/sh/sh_dac_audio.c 	chip->wakeups_per_second = 1000000000 / chip->rate;
rate              358 sound/sh/sh_dac_audio.c 	chip->rate = 8000;
rate               79 sound/soc/adi/axi-spdif.c 	unsigned int rate = params_rate(params);
rate               98 sound/soc/adi/axi-spdif.c 			rate * 64 * 2) - 1;
rate              352 sound/soc/atmel/atmel-classd.c 	int rate;
rate              390 sound/soc/atmel/atmel-classd.c 	best_val = abs(fs - sample_rates[0].rate);
rate              393 sound/soc/atmel/atmel-classd.c 		cur_val = abs(fs - sample_rates[i].rate);
rate              402 sound/soc/atmel/atmel-classd.c 		sample_rates[best].rate, sample_rates[best].gclk_rate);
rate              372 sound/soc/atmel/mchp-i2s-mcc.c 					  unsigned long rate,
rate              380 sound/soc/atmel/mchp-i2s-mcc.c 	round_rate = clk_round_rate(clk, rate);
rate              384 sound/soc/atmel/mchp-i2s-mcc.c 	diff_rate = abs(rate - round_rate);
rate              388 sound/soc/atmel/mchp-i2s-mcc.c 		*best_rate = rate;
rate              489 sound/soc/atmel/mchp-i2s-mcc.c 	unsigned long rate = 0;
rate              631 sound/soc/atmel/mchp-i2s-mcc.c 					       &rate);
rate              657 sound/soc/atmel/mchp-i2s-mcc.c 		ret = clk_set_rate(dev->gclk, rate);
rate              661 sound/soc/atmel/mchp-i2s-mcc.c 				rate, ret);
rate              224 sound/soc/au1x/psc-ac97.c 		    (pscdata->rate != params_rate(params)))
rate              281 sound/soc/au1x/psc-ac97.c 		pscdata->rate = params_rate(params);
rate              125 sound/soc/au1x/psc-i2s.c 		    (params_rate(params) != pscdata->rate))
rate              132 sound/soc/au1x/psc-i2s.c 		pscdata->rate = params_rate(params);
rate               16 sound/soc/au1x/psc.h 	unsigned long rate;
rate              625 sound/soc/bcm/cygnus-ssp.c 	int rate, bitres;
rate              636 sound/soc/bcm/cygnus-ssp.c 	rate = params_rate(params);
rate              640 sound/soc/bcm/cygnus-ssp.c 		if ((rate == 192000) && (params_channels(params) > 4)) {
rate              642 sound/soc/bcm/cygnus-ssp.c 				params_channels(params), rate);
rate              704 sound/soc/bcm/cygnus-ssp.c 	aio->lrclk = rate;
rate               30 sound/soc/cirrus/edb93xx.c 	unsigned int rate = params_rate(params);
rate               36 sound/soc/cirrus/edb93xx.c 	if (rate < 50000)
rate               37 sound/soc/cirrus/edb93xx.c 		mclk_rate = rate * 64 * 4;
rate               39 sound/soc/cirrus/edb93xx.c 		mclk_rate = rate * 64 * 2;
rate               40 sound/soc/codecs/ac97.c 	return snd_ac97_set_rate(ac97, reg, substream->runtime->rate);
rate              301 sound/soc/codecs/adau1701.c 	unsigned int rate)
rate              348 sound/soc/codecs/adau1701.c 		ret = sigmadsp_setup(adau1701->sigmadsp, rate);
rate               70 sound/soc/codecs/adau17x1.c 	unsigned int rate);
rate              859 sound/soc/codecs/adau17x1.c 	unsigned int rate)
rate              872 sound/soc/codecs/adau17x1.c 	if (adau->sigmadsp->current_samplerate == rate)
rate              889 sound/soc/codecs/adau17x1.c 	ret = sigmadsp_setup(adau->sigmadsp, rate);
rate              248 sound/soc/codecs/adau1977.c static int adau1977_lookup_fs(unsigned int rate)
rate              250 sound/soc/codecs/adau1977.c 	if (rate >= 8000 && rate <= 12000)
rate              252 sound/soc/codecs/adau1977.c 	else if (rate >= 16000 && rate <= 24000)
rate              254 sound/soc/codecs/adau1977.c 	else if (rate >= 32000 && rate <= 48000)
rate              256 sound/soc/codecs/adau1977.c 	else if (rate >= 64000 && rate <= 96000)
rate              258 sound/soc/codecs/adau1977.c 	else if (rate >= 128000 && rate <= 192000)
rate              264 sound/soc/codecs/adau1977.c static int adau1977_lookup_mcs(struct adau1977 *adau1977, unsigned int rate,
rate              275 sound/soc/codecs/adau1977.c 	rate *= 512 >> fs;
rate              277 sound/soc/codecs/adau1977.c 	if (adau1977->sysclk % rate != 0)
rate              280 sound/soc/codecs/adau1977.c 	mcs = adau1977->sysclk / rate;
rate              298 sound/soc/codecs/adau1977.c 	unsigned int rate = params_rate(params);
rate              305 sound/soc/codecs/adau1977.c 	fs = adau1977_lookup_fs(rate);
rate              310 sound/soc/codecs/adau1977.c 		mcs = adau1977_lookup_mcs(adau1977, rate, fs);
rate              149 sound/soc/codecs/adav80x.c 	unsigned int rate;
rate              289 sound/soc/codecs/adav80x.c 		switch (adav80x->rate) {
rate              518 sound/soc/codecs/adav80x.c 	unsigned int rate = params_rate(params);
rate              520 sound/soc/codecs/adav80x.c 	if (rate * 256 != adav80x->sysclk)
rate              525 sound/soc/codecs/adav80x.c 		adav80x_set_dac_clock(component, rate);
rate              528 sound/soc/codecs/adav80x.c 		adav80x_set_adc_clock(component, rate);
rate              530 sound/soc/codecs/adav80x.c 	adav80x->rate = rate;
rate              728 sound/soc/codecs/adav80x.c 	if (!snd_soc_component_is_active(component) || !adav80x->rate)
rate              732 sound/soc/codecs/adav80x.c 			SNDRV_PCM_HW_PARAM_RATE, adav80x->rate);
rate              742 sound/soc/codecs/adav80x.c 		adav80x->rate = 0;
rate              265 sound/soc/codecs/ak4535.c 	int rate = params_rate(params), fs = 256;
rate              267 sound/soc/codecs/ak4535.c 	if (rate)
rate              268 sound/soc/codecs/ak4535.c 		fs = ak4535->sysclk / rate;
rate               97 sound/soc/codecs/ak4613.c 	unsigned int rate;
rate              371 sound/soc/codecs/ak4613.c 	unsigned int rate;
rate              376 sound/soc/codecs/ak4613.c 	rate = params_rate(params);
rate              377 sound/soc/codecs/ak4613.c 	switch (rate) {
rate              395 sound/soc/codecs/ak4613.c 	priv->rate = rate;
rate              491 sound/soc/codecs/ak4613.c 	udelay(5000000 / priv->rate);
rate              320 sound/soc/codecs/ak4641.c 	int rate = params_rate(params), fs = 256;
rate              323 sound/soc/codecs/ak4641.c 	if (rate)
rate              324 sound/soc/codecs/ak4641.c 		fs = ak4641->sysclk / rate;
rate              348 sound/soc/codecs/ak4641.c 		ak4641->playback_fs = rate;
rate              473 sound/soc/codecs/ak4642.c 	u32 rate = clk_get_rate(priv->mcko);
rate              475 sound/soc/codecs/ak4642.c 	if (!rate)
rate              476 sound/soc/codecs/ak4642.c 		rate = params_rate(params) * 256;
rate              478 sound/soc/codecs/ak4642.c 	return ak4642_set_mcko(component, rate);
rate              612 sound/soc/codecs/ak4642.c 	u32 rate;
rate              614 sound/soc/codecs/ak4642.c 	if (of_property_read_u32(np, "clock-frequency", &rate))
rate              622 sound/soc/codecs/ak4642.c 	clk = clk_register_fixed_rate(dev, clk_name, parent_clk_name, 0, rate);
rate              602 sound/soc/codecs/alc5623.c static int get_coeff(struct snd_soc_component *component, int rate)
rate              608 sound/soc/codecs/alc5623.c 		if (coeff_div[i].fs * rate == alc5623->sysclk)
rate              701 sound/soc/codecs/alc5623.c 	int coeff, rate;
rate              727 sound/soc/codecs/alc5623.c 	rate = params_rate(params);
rate              728 sound/soc/codecs/alc5623.c 	coeff = get_coeff(component, rate);
rate              734 sound/soc/codecs/alc5623.c 		__func__, alc5623->sysclk, rate, coeff);
rate              775 sound/soc/codecs/alc5632.c static int get_coeff(struct snd_soc_component *component, int rate)
rate              781 sound/soc/codecs/alc5632.c 		if (coeff_div[i].fs * rate == alc5632->sysclk)
rate              871 sound/soc/codecs/alc5632.c 	int coeff, rate;
rate              894 sound/soc/codecs/alc5632.c 	rate = params_rate(params);
rate              895 sound/soc/codecs/alc5632.c 	coeff = get_coeff(component, rate);
rate             1650 sound/soc/codecs/arizona.c 					unsigned int rate)
rate             1664 sound/soc/codecs/arizona.c 	if (rate >= 176400)
rate             1120 sound/soc/codecs/cpcap.c 	int rate = params_rate(params);
rate             1122 sound/soc/codecs/cpcap.c 	dev_dbg(component->dev, "HiFi setup HW params: rate=%d", rate);
rate             1123 sound/soc/codecs/cpcap.c 	return cpcap_set_samprate(cpcap, CPCAP_DAI_HIFI, rate);
rate             1251 sound/soc/codecs/cpcap.c 	int rate = params_rate(params);
rate             1258 sound/soc/codecs/cpcap.c 		rate, direction, channels);
rate             1260 sound/soc/codecs/cpcap.c 	err = cpcap_set_samprate(cpcap, CPCAP_DAI_VOICE, rate);
rate              180 sound/soc/codecs/cros_ec_codec.c 	unsigned int rate, bclk;
rate              183 sound/soc/codecs/cros_ec_codec.c 	rate = params_rate(params);
rate              184 sound/soc/codecs/cros_ec_codec.c 	if (rate != 48000)
rate              842 sound/soc/codecs/cs35l36.c 	int rate;
rate              873 sound/soc/codecs/cs35l36.c 		if (global_fs == cs35l36_fs_rates[i].rate)
rate              237 sound/soc/codecs/cs4265.c 	u32 rate;
rate              307 sound/soc/codecs/cs4265.c static int cs4265_get_clk_index(int mclk, int rate)
rate              312 sound/soc/codecs/cs4265.c 		if (clk_map_table[i].rate == rate &&
rate              333 sound/soc/codecs/cs4270.c 	unsigned int rate;
rate              339 sound/soc/codecs/cs4270.c 	rate = params_rate(params);	/* Sampling rate, in Hz */
rate              340 sound/soc/codecs/cs4270.c 	ratio = cs4270->mclk / rate;	/* MCLK/LRCK ratio */
rate              162 sound/soc/codecs/cs4271.c 	int				rate;
rate              267 sound/soc/codecs/cs4271.c 			if (abs(cs4271_deemph[i] - cs4271->rate) <
rate              268 sound/soc/codecs/cs4271.c 			    abs(cs4271_deemph[val] - cs4271->rate))
rate              375 sound/soc/codecs/cs4271.c 	cs4271->rate = params_rate(params);
rate              378 sound/soc/codecs/cs4271.c 	if (cs4271->rate < 50000)
rate              380 sound/soc/codecs/cs4271.c 	else if (cs4271->rate < 100000)
rate              385 sound/soc/codecs/cs4271.c 	ratio = cs4271->mclk / cs4271->rate;
rate              371 sound/soc/codecs/cs42l51.c 	unsigned int rate;
rate              393 sound/soc/codecs/cs42l51.c 	rate = params_rate(params);     /* Sampling rate, in Hz */
rate              394 sound/soc/codecs/cs42l51.c 	ratio = cs42l51->mclk / rate;    /* MCLK/LRCK ratio */
rate              419 sound/soc/codecs/cs42l51.c 		if (rate > 50000)
rate              635 sound/soc/codecs/cs42l52.c 	u32 rate;
rate              695 sound/soc/codecs/cs42l52.c static int cs42l52_get_clk(int mclk, int rate)
rate              701 sound/soc/codecs/cs42l52.c 		if (clk_map_table[i].rate == rate) {
rate              702 sound/soc/codecs/cs42l56.c static int cs42l56_get_mclk_ratio(int mclk, int rate)
rate              708 sound/soc/codecs/cs42l56.c 		    clk_ratio_table[i].srate == rate)
rate             1012 sound/soc/codecs/cs42l73.c static unsigned int cs42l73_get_xspfs_coeff(u32 rate)
rate             1016 sound/soc/codecs/cs42l73.c 		if (cs42l73_asrc_rates[i] == rate)
rate               50 sound/soc/codecs/cs42xx8.c 	u32 rate[2];
rate              268 sound/soc/codecs/cs42xx8.c 	u32 rate[2];
rate              276 sound/soc/codecs/cs42xx8.c 	rate[tx]  = params_rate(params);
rate              277 sound/soc/codecs/cs42xx8.c 	rate[!tx] = cs42xx8->rate[!tx];
rate              279 sound/soc/codecs/cs42xx8.c 	ratio[tx] = rate[tx] > 0 ? cs42xx8->sysclk / rate[tx] : 0;
rate              280 sound/soc/codecs/cs42xx8.c 	ratio[!tx] = rate[!tx] > 0 ? cs42xx8->sysclk / rate[!tx] : 0;
rate              287 sound/soc/codecs/cs42xx8.c 			if (rate[i] < 50000) {
rate              289 sound/soc/codecs/cs42xx8.c 			} else if (rate[i] > 50000 && rate[i] < 100000) {
rate              291 sound/soc/codecs/cs42xx8.c 			} else if (rate[i] > 100000 && rate[i] < 200000) {
rate              337 sound/soc/codecs/cs42xx8.c 	cs42xx8->rate[tx] = params_rate(params);
rate              357 sound/soc/codecs/cs42xx8.c 	cs42xx8->rate[tx] = 0;
rate               48 sound/soc/codecs/cs4349.c 	int				rate;
rate              101 sound/soc/codecs/cs4349.c 	cs4349->rate = params_rate(params);
rate             1503 sound/soc/codecs/da7219.c 			 unsigned long rate)
rate             1507 sound/soc/codecs/da7219.c 	switch (rate) {
rate             1975 sound/soc/codecs/da7219.c static long da7219_wclk_round_rate(struct clk_hw *hw, unsigned long rate,
rate             1985 sound/soc/codecs/da7219.c 	if (rate < 11025)
rate             1987 sound/soc/codecs/da7219.c 	else if (rate < 12000)
rate             1989 sound/soc/codecs/da7219.c 	else if (rate < 16000)
rate             1991 sound/soc/codecs/da7219.c 	else if (rate < 22050)
rate             1993 sound/soc/codecs/da7219.c 	else if (rate < 24000)
rate             1995 sound/soc/codecs/da7219.c 	else if (rate < 32000)
rate             1997 sound/soc/codecs/da7219.c 	else if (rate < 44100)
rate             1999 sound/soc/codecs/da7219.c 	else if (rate < 48000)
rate             2001 sound/soc/codecs/da7219.c 	else if (rate < 88200)
rate             2003 sound/soc/codecs/da7219.c 	else if (rate < 96000)
rate             2009 sound/soc/codecs/da7219.c static int da7219_wclk_set_rate(struct clk_hw *hw, unsigned long rate,
rate             2020 sound/soc/codecs/da7219.c 	return da7219_set_sr(component, rate);
rate             2047 sound/soc/codecs/da7219.c static unsigned long da7219_bclk_get_factor(unsigned long rate,
rate             2052 sound/soc/codecs/da7219.c 	factor = rate / parent_rate;
rate             2063 sound/soc/codecs/da7219.c static long da7219_bclk_round_rate(struct clk_hw *hw, unsigned long rate,
rate             2081 sound/soc/codecs/da7219.c 	factor = da7219_bclk_get_factor(rate, *parent_rate);
rate             2086 sound/soc/codecs/da7219.c static int da7219_bclk_set_rate(struct clk_hw *hw, unsigned long rate,
rate             2098 sound/soc/codecs/da7219.c 	factor = da7219_bclk_get_factor(rate, parent_rate);
rate               39 sound/soc/codecs/es7134.c 			     unsigned int rate)
rate               41 sound/soc/codecs/es7134.c 	unsigned int mfs = priv->mclk / rate;
rate               47 sound/soc/codecs/es7134.c 		if (rate < mode->rate_min || rate > mode->rate_max)
rate               56 sound/soc/codecs/es7134.c 			mfs, rate);
rate               61 sound/soc/codecs/es7134.c 	dev_err(dai->dev, "unsupported rate: %u\n", rate);
rate               91 sound/soc/codecs/es7241.c 	unsigned int rate = params_rate(params);
rate               92 sound/soc/codecs/es7241.c 	unsigned int mfs = priv->mclk / rate;
rate               98 sound/soc/codecs/es7241.c 		if (rate < mode->rate_min || rate >= mode->rate_max)
rate              108 sound/soc/codecs/es7241.c 	dev_err(dai->dev, "unsupported rate: %u\n", rate);
rate              106 sound/soc/codecs/es8328.c 	int rate;
rate              127 sound/soc/codecs/es8328.c 			if (abs(deemph_settings[i].rate - es8328->playback_fs) <
rate              128 sound/soc/codecs/es8328.c 			    abs(deemph_settings[best].rate - es8328->playback_fs))
rate              379 sound/soc/codecs/jz4725b.c 	unsigned int rate, bit_width;
rate              398 sound/soc/codecs/jz4725b.c 	for (rate = 0; rate < ARRAY_SIZE(jz4725b_codec_sample_rates); rate++) {
rate              399 sound/soc/codecs/jz4725b.c 		if (jz4725b_codec_sample_rates[rate] == params_rate(params))
rate              403 sound/soc/codecs/jz4725b.c 	if (rate == ARRAY_SIZE(jz4725b_codec_sample_rates))
rate              415 sound/soc/codecs/jz4725b.c 				   rate << REG_CCR2_DFREQ_OFFSET);
rate              425 sound/soc/codecs/jz4725b.c 				   rate << REG_CCR2_AFREQ_OFFSET);
rate             2586 sound/soc/codecs/madera.c 	int div, div_inc, rate;
rate             2608 sound/soc/codecs/madera.c 		rate = 5644800;
rate             2610 sound/soc/codecs/madera.c 		rate = 6144000;
rate             2615 sound/soc/codecs/madera.c 		if (freq / div == rate && !(freq % div)) {
rate             2616 sound/soc/codecs/madera.c 			dev_dbg(component->dev, "Configured %dHz OUTCLK\n", rate);
rate             2631 sound/soc/codecs/madera.c 		rate, freq);
rate             3076 sound/soc/codecs/madera.c 	unsigned int rate = params_rate(params);
rate             3085 sound/soc/codecs/madera.c 	if (rate % 4000) {
rate             3098 sound/soc/codecs/madera.c 		bclk_target = tdm_slots * tdm_width * rate;
rate             3124 sound/soc/codecs/madera.c 		if (rates[i] >= bclk_target && rates[i] % rate == 0) {
rate             3131 sound/soc/codecs/madera.c 		madera_aif_err(dai, "Unsupported sample rate %dHz\n", rate);
rate             3135 sound/soc/codecs/madera.c 	lrclk = rates[bclk] / rate;
rate               34 sound/soc/codecs/max98088.c        unsigned int rate;
rate              932 sound/soc/codecs/max98088.c        u32 rate;
rate              947 sound/soc/codecs/max98088.c static inline int rate_value(int rate, u8 *value)
rate              952 sound/soc/codecs/max98088.c                if (rate_table[i].rate >= rate) {
rate              969 sound/soc/codecs/max98088.c        unsigned int rate;
rate              974 sound/soc/codecs/max98088.c        rate = params_rate(params);
rate              991 sound/soc/codecs/max98088.c        if (rate_value(rate, &regval))
rate              996 sound/soc/codecs/max98088.c        cdata->rate = rate;
rate             1005 sound/soc/codecs/max98088.c                ni = 65536ULL * (rate < 50000 ? 96ULL : 48ULL)
rate             1006 sound/soc/codecs/max98088.c                                * (unsigned long long int)rate;
rate             1015 sound/soc/codecs/max98088.c        if (rate < 50000)
rate             1036 sound/soc/codecs/max98088.c        unsigned int rate;
rate             1041 sound/soc/codecs/max98088.c        rate = params_rate(params);
rate             1058 sound/soc/codecs/max98088.c        if (rate_value(rate, &regval))
rate             1063 sound/soc/codecs/max98088.c        cdata->rate = rate;
rate             1072 sound/soc/codecs/max98088.c                ni = 65536ULL * (rate < 50000 ? 96ULL : 48ULL)
rate             1073 sound/soc/codecs/max98088.c                                * (unsigned long long int)rate;
rate             1082 sound/soc/codecs/max98088.c        if (rate < 50000)
rate             1425 sound/soc/codecs/max98088.c        fs = cdata->rate;
rate             1432 sound/soc/codecs/max98088.c                    abs(pdata->eq_cfg[i].rate - fs) < best_val) {
rate             1434 sound/soc/codecs/max98088.c                        best_val = abs(pdata->eq_cfg[i].rate - fs);
rate             1440 sound/soc/codecs/max98088.c                pdata->eq_cfg[best].rate, fs);
rate             1472 sound/soc/codecs/max98088.c        fs = cdata->rate;
rate             1479 sound/soc/codecs/max98088.c                    abs(pdata->eq_cfg[i].rate - fs) < best_val) {
rate             1481 sound/soc/codecs/max98088.c                        best_val = abs(pdata->eq_cfg[i].rate - fs);
rate             1487 sound/soc/codecs/max98088.c                pdata->eq_cfg[best].rate, fs);
rate             1660 sound/soc/codecs/max98088.c        cdata->rate = (unsigned)-1;
rate             1665 sound/soc/codecs/max98088.c        cdata->rate = (unsigned)-1;
rate             1951 sound/soc/codecs/max98090.c 	cdata->rate = max98090->lrclk;
rate             2386 sound/soc/codecs/max98090.c 	cdata->rate = (unsigned)-1;
rate             1513 sound/soc/codecs/max98090.h 	unsigned int rate;
rate               34 sound/soc/codecs/max98095.c 	unsigned int rate;
rate              909 sound/soc/codecs/max98095.c 	u32 rate;
rate              924 sound/soc/codecs/max98095.c static int rate_value(int rate, u8 *value)
rate              929 sound/soc/codecs/max98095.c 		if (rate_table[i].rate >= rate) {
rate              946 sound/soc/codecs/max98095.c 	unsigned int rate;
rate              951 sound/soc/codecs/max98095.c 	rate = params_rate(params);
rate              966 sound/soc/codecs/max98095.c 	if (rate_value(rate, &regval))
rate              971 sound/soc/codecs/max98095.c 	cdata->rate = rate;
rate              979 sound/soc/codecs/max98095.c 		ni = 65536ULL * (rate < 50000 ? 96ULL : 48ULL)
rate              980 sound/soc/codecs/max98095.c 				* (unsigned long long int)rate;
rate              989 sound/soc/codecs/max98095.c 	if (rate < 50000)
rate             1007 sound/soc/codecs/max98095.c 	unsigned int rate;
rate             1012 sound/soc/codecs/max98095.c 	rate = params_rate(params);
rate             1027 sound/soc/codecs/max98095.c 	if (rate_value(rate, &regval))
rate             1032 sound/soc/codecs/max98095.c 	cdata->rate = rate;
rate             1040 sound/soc/codecs/max98095.c 		ni = 65536ULL * (rate < 50000 ? 96ULL : 48ULL)
rate             1041 sound/soc/codecs/max98095.c 				* (unsigned long long int)rate;
rate             1050 sound/soc/codecs/max98095.c 	if (rate < 50000)
rate             1068 sound/soc/codecs/max98095.c 	unsigned int rate;
rate             1073 sound/soc/codecs/max98095.c 	rate = params_rate(params);
rate             1088 sound/soc/codecs/max98095.c 	if (rate_value(rate, &regval))
rate             1093 sound/soc/codecs/max98095.c 	cdata->rate = rate;
rate             1101 sound/soc/codecs/max98095.c 		ni = 65536ULL * (rate < 50000 ? 96ULL : 48ULL)
rate             1102 sound/soc/codecs/max98095.c 				* (unsigned long long int)rate;
rate             1111 sound/soc/codecs/max98095.c 	if (rate < 50000)
rate             1515 sound/soc/codecs/max98095.c 	fs = cdata->rate;
rate             1522 sound/soc/codecs/max98095.c 			abs(pdata->eq_cfg[i].rate - fs) < best_val) {
rate             1524 sound/soc/codecs/max98095.c 			best_val = abs(pdata->eq_cfg[i].rate - fs);
rate             1530 sound/soc/codecs/max98095.c 		pdata->eq_cfg[best].rate, fs);
rate             1666 sound/soc/codecs/max98095.c 	fs = cdata->rate;
rate             1673 sound/soc/codecs/max98095.c 			abs(pdata->bq_cfg[i].rate - fs) < best_val) {
rate             1675 sound/soc/codecs/max98095.c 			best_val = abs(pdata->bq_cfg[i].rate - fs);
rate             1681 sound/soc/codecs/max98095.c 		pdata->bq_cfg[best].rate, fs);
rate             2008 sound/soc/codecs/max98095.c 	cdata->rate = (unsigned)-1;
rate             2014 sound/soc/codecs/max98095.c 	cdata->rate = (unsigned)-1;
rate             2020 sound/soc/codecs/max98095.c 	cdata->rate = (unsigned)-1;
rate              221 sound/soc/codecs/max98371.c 	int rate = params_rate(params);
rate              270 sound/soc/codecs/max98371.c 	switch (rate) {
rate              186 sound/soc/codecs/max9867.c 	unsigned long int rate, ratio;
rate              201 sound/soc/codecs/max9867.c 			rate = params_rate(params) * 2 * params_width(params);
rate              202 sound/soc/codecs/max9867.c 			ratio = max9867->pclk / rate;
rate              206 sound/soc/codecs/max98925.c 	int rate;
rate              211 sound/soc/codecs/max98925.c 		.rate = 8000,
rate              216 sound/soc/codecs/max98925.c 		.rate = 11025,
rate              221 sound/soc/codecs/max98925.c 		.rate = 12000,
rate              226 sound/soc/codecs/max98925.c 		.rate = 16000,
rate              231 sound/soc/codecs/max98925.c 		.rate = 22050,
rate              236 sound/soc/codecs/max98925.c 		.rate = 24000,
rate              241 sound/soc/codecs/max98925.c 		.rate = 32000,
rate              246 sound/soc/codecs/max98925.c 		.rate = 44100,
rate              251 sound/soc/codecs/max98925.c 		.rate = 48000,
rate              258 sound/soc/codecs/max98925.c 		int rate, int clock, int *value, int *n, int *m)
rate              264 sound/soc/codecs/max98925.c 		if (rate_table[i].rate >= rate) {
rate              354 sound/soc/codecs/max98925.c 	int rate = params_rate(params);
rate              401 sound/soc/codecs/max98925.c 	if (max98925_rate_value(component, rate, clock, &dai_sr, &n, &m))
rate              248 sound/soc/codecs/max98926.c 	int rate;
rate              252 sound/soc/codecs/max98926.c 		.rate = 8000,
rate              256 sound/soc/codecs/max98926.c 		.rate = 11025,
rate              260 sound/soc/codecs/max98926.c 		.rate = 12000,
rate              264 sound/soc/codecs/max98926.c 		.rate = 16000,
rate              268 sound/soc/codecs/max98926.c 		.rate = 22050,
rate              272 sound/soc/codecs/max98926.c 		.rate = 24000,
rate              276 sound/soc/codecs/max98926.c 		.rate = 32000,
rate              280 sound/soc/codecs/max98926.c 		.rate = 44100,
rate              284 sound/soc/codecs/max98926.c 		.rate = 48000,
rate              372 sound/soc/codecs/max98926.c 	int rate = params_rate(params), i;
rate              433 sound/soc/codecs/max98926.c 		if (rate_table[i].rate >= rate) {
rate              264 sound/soc/codecs/max98927.h 	unsigned int rate;
rate               98 sound/soc/codecs/mc13783.c 	unsigned int rate = params_rate(params);
rate              102 sound/soc/codecs/mc13783.c 		if (rate == mc13783_rates[i]) {
rate              117 sound/soc/codecs/mc13783.c 	unsigned int rate = params_rate(params);
rate              120 sound/soc/codecs/mc13783.c 	switch (rate) {
rate               36 sound/soc/codecs/ml26124.c 	u32 rate;
rate               44 sound/soc/codecs/ml26124.c 	u32 rate;
rate              293 sound/soc/codecs/ml26124.c static inline int get_srate(int rate)
rate              297 sound/soc/codecs/ml26124.c 	switch (rate) {
rate              313 sound/soc/codecs/ml26124.c static inline int get_coeff(int mclk, int rate)
rate              318 sound/soc/codecs/ml26124.c 		if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk)
rate              336 sound/soc/codecs/ml26124.c 	priv->rate = params_rate(hw_params);
rate              209 sound/soc/codecs/mt6351.c 				    unsigned int rate)
rate              211 sound/soc/codecs/mt6351.c 	switch (rate) {
rate              226 sound/soc/codecs/mt6351.c 			 __func__, rate);
rate              232 sound/soc/codecs/mt6351.c 				     unsigned int rate)
rate              234 sound/soc/codecs/mt6351.c 	switch (rate) {
rate              257 sound/soc/codecs/mt6351.c 			 __func__, rate);
rate              268 sound/soc/codecs/mt6351.c 	unsigned int rate = params_rate(params);
rate              271 sound/soc/codecs/mt6351.c 		__func__, substream->stream, rate);
rate              274 sound/soc/codecs/mt6351.c 		priv->dl_rate = rate;
rate              276 sound/soc/codecs/mt6351.c 		priv->ul_rate = rate;
rate             2209 sound/soc/codecs/mt6358.c 	unsigned int rate = params_rate(params);
rate             2214 sound/soc/codecs/mt6358.c 		 rate,
rate             2218 sound/soc/codecs/mt6358.c 		priv->dl_rate = rate;
rate             2220 sound/soc/codecs/mt6358.c 		priv->ul_rate = rate;
rate              360 sound/soc/codecs/nau8540.c static int nau8540_clock_check(struct nau8540 *nau8540, int rate, int osr)
rate              365 sound/soc/codecs/nau8540.c 	if (rate * osr > CLK_ADC_MAX) {
rate              630 sound/soc/codecs/nau8810.c static int nau8810_mclk_clkdiv(struct nau8810 *nau8810, int rate)
rate              632 sound/soc/codecs/nau8810.c 	int i, sclk, imclk = rate * 256, div = 0;
rate              651 sound/soc/codecs/nau8810.c 		"master clock prescaler %x for fs %d\n", div, rate);
rate              666 sound/soc/codecs/nau8822.c static int nau8822_config_clkdiv(struct snd_soc_dai *dai, int div, int rate)
rate              680 sound/soc/codecs/nau8822.c 		imclk = rate * 256;
rate              688 sound/soc/codecs/nau8822.c 			div, rate);
rate             1040 sound/soc/codecs/nau8824.c 	int stream, int rate, int osr)
rate             1054 sound/soc/codecs/nau8824.c 	if (!osrate || rate * osr > CLK_DA_AD_MAX) {
rate             1219 sound/soc/codecs/nau8825.c 	int stream, int rate, int osr)
rate             1233 sound/soc/codecs/nau8825.c 	if (!osrate || rate * osr > CLK_DA_AD_MAX) {
rate               79 sound/soc/codecs/pcm1681.c 	unsigned int rate;
rate               91 sound/soc/codecs/pcm1681.c 			if (pcm1681_deemph[i] == priv->rate) {
rate              172 sound/soc/codecs/pcm1681.c 	priv->rate = params_rate(params);
rate               29 sound/soc/codecs/pcm1789.c 	unsigned int rate;
rate               81 sound/soc/codecs/pcm1789.c 	priv->rate = params_rate(params);
rate               65 sound/soc/codecs/pcm179x.c 	unsigned int rate;
rate              101 sound/soc/codecs/pcm179x.c 	priv->rate = params_rate(params);
rate              267 sound/soc/codecs/pcm186x.c 	unsigned int rate = params_rate(params);
rate              277 sound/soc/codecs/pcm186x.c 		__func__, rate, format, width, channels);
rate              345 sound/soc/codecs/pcm186x.c 		div_bck = priv->sysclk / (div_lrck * rate);
rate              114 sound/soc/codecs/pcm3060.c 	unsigned int rate;
rate              124 sound/soc/codecs/pcm3060.c 	rate = params_rate(params);
rate              125 sound/soc/codecs/pcm3060.c 	if (!rate) {
rate              130 sound/soc/codecs/pcm3060.c 	ratio = priv->dai[dai->id].sclk_freq / rate;
rate              424 sound/soc/codecs/pcm3168a.c 	unsigned int rate, fmt, ratio, max_ratio;
rate              428 sound/soc/codecs/pcm3168a.c 	rate = params_rate(params);
rate              430 sound/soc/codecs/pcm3168a.c 	ratio = pcm3168a->sysclk / rate;
rate              507 sound/soc/codecs/pcm512x.c 				     unsigned long rate)
rate              509 sound/soc/codecs/pcm512x.c 	return rate + rate * pcm512x->overclock_dac / 100;
rate               70 sound/soc/codecs/rl6231.c int rl6231_calc_dmic_clk(int rate)
rate               75 sound/soc/codecs/rl6231.c 	if (rate < 1000000 * div[0]) {
rate               76 sound/soc/codecs/rl6231.c 		pr_warn("Base clock rate %d is too low\n", rate);
rate               84 sound/soc/codecs/rl6231.c 		if (3072000 * div[i] >= rate)
rate               88 sound/soc/codecs/rl6231.c 	pr_warn("Base clock rate %d is too high\n", rate);
rate              222 sound/soc/codecs/rl6231.c int rl6231_get_clk_info(int sclk, int rate)
rate              227 sound/soc/codecs/rl6231.c 	if (sclk <= 0 || rate <= 0)
rate              230 sound/soc/codecs/rl6231.c 	rate = rate << 8;
rate              232 sound/soc/codecs/rl6231.c 		if (sclk == rate * pd[i])
rate               26 sound/soc/codecs/rl6231.h int rl6231_calc_dmic_clk(int rate);
rate               29 sound/soc/codecs/rl6231.h int rl6231_get_clk_info(int sclk, int rate);
rate             1520 sound/soc/codecs/rt1011.c static int rt1011_get_clk_info(int sclk, int rate)
rate             1525 sound/soc/codecs/rt1011.c 	if (sclk <= 0 || rate <= 0)
rate             1528 sound/soc/codecs/rt1011.c 	rate = rate << 8;
rate             1530 sound/soc/codecs/rt1011.c 		if (sclk == rate * pd[i])
rate              609 sound/soc/codecs/rt1305.c static int rt1305_get_clk_info(int sclk, int rate)
rate              614 sound/soc/codecs/rt1305.c 	if (sclk <= 0 || rate <= 0)
rate              617 sound/soc/codecs/rt1305.c 	rate = rate << 8;
rate              619 sound/soc/codecs/rt1305.c 		if (sclk == rate * pd[i])
rate              437 sound/soc/codecs/rt1308.c static int rt1308_get_clk_info(int sclk, int rate)
rate              442 sound/soc/codecs/rt1308.c 	if (sclk <= 0 || rate <= 0)
rate              445 sound/soc/codecs/rt1308.c 	rate = rate << 8;
rate              447 sound/soc/codecs/rt1308.c 		if (sclk == rate * pd[i])
rate              495 sound/soc/codecs/rt5514.c static int rt5514_calc_dmic_clk(struct snd_soc_component *component, int rate)
rate              500 sound/soc/codecs/rt5514.c 	if (rate < 1000000 * div[0]) {
rate              501 sound/soc/codecs/rt5514.c 		pr_warn("Base clock rate %d is too low\n", rate);
rate              507 sound/soc/codecs/rt5514.c 		if (3072000 * div[i] >= rate)
rate              511 sound/soc/codecs/rt5514.c 	dev_warn(component->dev, "Base clock rate %d is too high\n", rate);
rate             1208 sound/soc/codecs/rt5631.c 	u32 rate;
rate             1336 sound/soc/codecs/rt5631.c static int get_coeff(int mclk, int rate, int timesofbclk)
rate             1341 sound/soc/codecs/rt5631.c 		if (coeff_div[i].mclk == mclk && coeff_div[i].rate == rate &&
rate             1342 sound/soc/codecs/rt5631.c 			(coeff_div[i].bclk / coeff_div[i].rate) == timesofbclk)
rate              464 sound/soc/codecs/rt5640.c 	int idx, rate;
rate              466 sound/soc/codecs/rt5640.c 	rate = rt5640->sysclk / rl6231_get_pre_div(rt5640->regmap,
rate              468 sound/soc/codecs/rt5640.c 	idx = rl6231_calc_dmic_clk(rate);
rate              850 sound/soc/codecs/rt5645.c 	int idx, rate;
rate              852 sound/soc/codecs/rt5645.c 	rate = rt5645->sysclk / rl6231_get_pre_div(rt5645->regmap,
rate              854 sound/soc/codecs/rt5645.c 	idx = rl6231_calc_dmic_clk(rate);
rate              381 sound/soc/codecs/rt5651.c 	int idx, rate;
rate              383 sound/soc/codecs/rt5651.c 	rate = rt5651->sysclk / rl6231_get_pre_div(rt5651->regmap,
rate              385 sound/soc/codecs/rt5651.c 	idx = rl6231_calc_dmic_clk(rate);
rate              356 sound/soc/codecs/rt5660.c 	int idx, rate;
rate              358 sound/soc/codecs/rt5660.c 	rate = rt5660->sysclk / rl6231_get_pre_div(rt5660->regmap,
rate              360 sound/soc/codecs/rt5660.c 	idx = rl6231_calc_dmic_clk(rate);
rate              701 sound/soc/codecs/rt5670.c 	int idx, rate;
rate              703 sound/soc/codecs/rt5670.c 	rate = rt5670->sysclk / rl6231_get_pre_div(rt5670->regmap,
rate              705 sound/soc/codecs/rt5670.c 	idx = rl6231_calc_dmic_clk(rate);
rate              919 sound/soc/codecs/rt5677.c 	int idx, rate;
rate              921 sound/soc/codecs/rt5677.c 	rate = rt5677->sysclk / rl6231_get_pre_div(rt5677->regmap,
rate              923 sound/soc/codecs/rt5677.c 	idx = rl6231_calc_dmic_clk(rate);
rate              153 sound/soc/codecs/si476x.c 	int rate, width, err;
rate              155 sound/soc/codecs/si476x.c 	rate = params_rate(params);
rate              156 sound/soc/codecs/si476x.c 	if (rate < 32000 || rate > 48000) {
rate              157 sound/soc/codecs/si476x.c 		dev_err(dai->component->dev, "Rate: %d is not supported\n", rate);
rate              181 sound/soc/codecs/si476x.c 			    rate);
rate              588 sound/soc/codecs/sigmadsp.c static int sigmadsp_rate_to_index(struct sigmadsp *sigmadsp, unsigned int rate)
rate              593 sound/soc/codecs/sigmadsp.c 		if (sigmadsp->rate_constraints.list[i] == rate)
rate               62 sound/soc/codecs/sigmadsp.h int sigmadsp_setup(struct sigmadsp *sigmadsp, unsigned int rate);
rate              243 sound/soc/codecs/ssm2518.c 	unsigned int rate;
rate              312 sound/soc/codecs/ssm2518.c 	unsigned int rate)
rate              318 sound/soc/codecs/ssm2518.c 		if (ssm2518_mcs_lut[i].rate == rate) {
rate              340 sound/soc/codecs/ssm2518.c 	unsigned int rate = params_rate(params);
rate              345 sound/soc/codecs/ssm2518.c 	mcs = ssm2518_lookup_mcs(ssm2518, rate);
rate              351 sound/soc/codecs/ssm2518.c 	if (rate >= 8000 && rate <= 12000)
rate              353 sound/soc/codecs/ssm2518.c 	else if (rate >= 16000 && rate <= 24000)
rate              355 sound/soc/codecs/ssm2518.c 	else if (rate >= 32000 && rate <= 48000)
rate              357 sound/soc/codecs/ssm2518.c 	else if (rate >= 64000 && rate <= 96000)
rate              222 sound/soc/codecs/ssm2602.c 	u32 rate;
rate              278 sound/soc/codecs/ssm2602.c static inline int ssm2602_get_coeff(int mclk, int rate)
rate              283 sound/soc/codecs/ssm2602.c 		if (ssm2602_coeff_table[i].rate == rate &&
rate              203 sound/soc/codecs/ssm4567.c 	unsigned int rate = params_rate(params);
rate              206 sound/soc/codecs/ssm4567.c 	if (rate >= 8000 && rate <= 12000)
rate              208 sound/soc/codecs/ssm4567.c 	else if (rate >= 16000 && rate <= 24000)
rate              210 sound/soc/codecs/ssm4567.c 	else if (rate >= 32000 && rate <= 48000)
rate              212 sound/soc/codecs/ssm4567.c 	else if (rate >= 64000 && rate <= 96000)
rate              214 sound/soc/codecs/ssm4567.c 	else if (rate >= 128000 && rate <= 192000)
rate              656 sound/soc/codecs/sta32x.c 	unsigned int rate, ratio;
rate              665 sound/soc/codecs/sta32x.c 	rate = params_rate(params);
rate              666 sound/soc/codecs/sta32x.c 	ratio = sta32x->mclk / rate;
rate              667 sound/soc/codecs/sta32x.c 	dev_dbg(component->dev, "rate: %u, ratio: %u\n", rate, ratio);
rate              670 sound/soc/codecs/sta32x.c 		if (interpolation_ratios[i].fs == rate) {
rate              677 sound/soc/codecs/sta32x.c 		dev_err(component->dev, "Unsupported samplerate: %u\n", rate);
rate              685 sound/soc/codecs/sta350.c 	unsigned int rate, ratio;
rate              694 sound/soc/codecs/sta350.c 	rate = params_rate(params);
rate              695 sound/soc/codecs/sta350.c 	ratio = sta350->mclk / rate;
rate              696 sound/soc/codecs/sta350.c 	dev_dbg(component->dev, "rate: %u, ratio: %u\n", rate, ratio);
rate              699 sound/soc/codecs/sta350.c 		if (interpolation_ratios[i].fs == rate) {
rate              706 sound/soc/codecs/sta350.c 		dev_err(component->dev, "Unsupported samplerate: %u\n", rate);
rate              179 sound/soc/codecs/stac9766.c 	return snd_soc_component_write(component, reg, runtime->rate);
rate              196 sound/soc/codecs/stac9766.c 	return snd_soc_component_write(component, reg, runtime->rate);
rate              294 sound/soc/codecs/sti-sas.c 		if ((drvdata->spdif.mclk / runtime->rate) != 128) {
rate              300 sound/soc/codecs/sti-sas.c 		if ((drvdata->dac.mclk / runtime->rate) != 256) {
rate              247 sound/soc/codecs/tas5086.c 	int		rate;
rate              262 sound/soc/codecs/tas5086.c 			if (tas5086_deemph[i] == priv->rate) {
rate              360 sound/soc/codecs/tas5086.c 	priv->rate = params_rate(params);
rate              364 sound/soc/codecs/tas5086.c 			     ARRAY_SIZE(tas5086_sample_rates), priv->rate);
rate              379 sound/soc/codecs/tas5086.c 			     priv->mclk / priv->rate);
rate              394 sound/soc/codecs/tas5086.c 				 (priv->sclk == 48 * priv->rate) ? 
rate               58 sound/soc/codecs/tas5720.c 	unsigned int rate = params_rate(params);
rate               62 sound/soc/codecs/tas5720.c 	switch (rate) {
rate               72 sound/soc/codecs/tas5720.c 		dev_err(component->dev, "unsupported sample rate: %u\n", rate);
rate              115 sound/soc/codecs/tas6424.c 	unsigned int rate = params_rate(params);
rate              119 sound/soc/codecs/tas6424.c 	dev_dbg(component->dev, "%s() rate=%u width=%u\n", __func__, rate, width);
rate              121 sound/soc/codecs/tas6424.c 	switch (rate) {
rate              132 sound/soc/codecs/tas6424.c 		dev_err(component->dev, "unsupported sample rate: %u\n", rate);
rate              178 sound/soc/codecs/tlv320aic31xx.c 	u32 rate;
rate              816 sound/soc/codecs/tlv320aic31xx.c 		if (aic31xx_divs[i].rate == params_rate(params) &&
rate             1167 sound/soc/codecs/tlv320aic31xx.c 		aic31xx_divs[aic31xx->rate_div_line].rate);
rate              143 sound/soc/codecs/tlv320aic32x4-clk.c 	u64 rate;
rate              148 sound/soc/codecs/tlv320aic32x4-clk.c 	rate = (u64) parent_rate * settings->r *
rate              151 sound/soc/codecs/tlv320aic32x4-clk.c 	return (unsigned long) DIV_ROUND_UP_ULL(rate, settings->p * 10000);
rate              155 sound/soc/codecs/tlv320aic32x4-clk.c 			unsigned long rate, unsigned long parent_rate)
rate              168 sound/soc/codecs/tlv320aic32x4-clk.c 	multiplier = (u64) rate * settings->p * 10000;
rate              208 sound/soc/codecs/tlv320aic32x4-clk.c 			unsigned long rate,
rate              214 sound/soc/codecs/tlv320aic32x4-clk.c 	ret = clk_aic32x4_pll_calc_muldiv(&settings, rate, *parent_rate);
rate              222 sound/soc/codecs/tlv320aic32x4-clk.c 			unsigned long rate,
rate              229 sound/soc/codecs/tlv320aic32x4-clk.c 	ret = clk_aic32x4_pll_calc_muldiv(&settings, rate, parent_rate);
rate              308 sound/soc/codecs/tlv320aic32x4-clk.c static int clk_aic32x4_div_set_rate(struct clk_hw *hw, unsigned long rate,
rate              314 sound/soc/codecs/tlv320aic32x4-clk.c 	divisor = DIV_ROUND_UP(parent_rate, rate);
rate              322 sound/soc/codecs/tlv320aic32x4-clk.c static long clk_aic32x4_div_round_rate(struct clk_hw *hw, unsigned long rate,
rate              327 sound/soc/codecs/tlv320aic32x4-clk.c 	divisor = DIV_ROUND_UP(*parent_rate, rate);
rate               42 sound/soc/codecs/tlv320dac33.c #define SAMPLES_TO_US(rate, samples) \
rate               43 sound/soc/codecs/tlv320dac33.c 	(1000000000 / (((rate) * 1000) / (samples)))
rate               45 sound/soc/codecs/tlv320dac33.c #define US_TO_SAMPLES(rate, us) \
rate               46 sound/soc/codecs/tlv320dac33.c 	((rate) / (1000000 / ((us) < 1000000 ? (us) : 1000000)))
rate              840 sound/soc/codecs/tlv320dac33.c #define CALC_OSCSET(rate, refclk) ( \
rate              841 sound/soc/codecs/tlv320dac33.c 	((((rate * 10000) / refclk) * 4096) + 7000) / 10000)
rate              842 sound/soc/codecs/tlv320dac33.c #define CALC_RATIOSET(rate, refclk) ( \
rate              843 sound/soc/codecs/tlv320dac33.c 	((((refclk  * 100000) / rate) * 16384) + 50000) / 100000)
rate              857 sound/soc/codecs/tlv320dac33.c 	switch (substream->runtime->rate) {
rate              860 sound/soc/codecs/tlv320dac33.c 		oscset = CALC_OSCSET(substream->runtime->rate, dac33->refclk);
rate              861 sound/soc/codecs/tlv320dac33.c 		ratioset = CALC_RATIOSET(substream->runtime->rate,
rate              866 sound/soc/codecs/tlv320dac33.c 			substream->runtime->rate);
rate             1053 sound/soc/codecs/tlv320dac33.c 	unsigned int rate = substream->runtime->rate;
rate             1063 sound/soc/codecs/tlv320dac33.c 		dac33->alarm_threshold = US_TO_SAMPLES(rate,
rate             1087 sound/soc/codecs/tlv320dac33.c 		dac33->uthr = UTHR_FROM_PERIOD_SIZE(period_size, rate,
rate             1095 sound/soc/codecs/tlv320dac33.c 				SAMPLES_TO_US(substream->runtime->rate,
rate             1169 sound/soc/codecs/tlv320dac33.c 						substream->runtime->rate,
rate             1183 sound/soc/codecs/tlv320dac33.c 						substream->runtime->rate,
rate             1205 sound/soc/codecs/tlv320dac33.c 						substream->runtime->rate,
rate             1246 sound/soc/codecs/tlv320dac33.c 					substream->runtime->rate,
rate             1261 sound/soc/codecs/tlv320dac33.c 					substream->runtime->rate,
rate              849 sound/soc/codecs/tscs42xx.c 		unsigned int rate)
rate              855 sound/soc/codecs/tscs42xx.c 	switch (rate) {
rate              897 sound/soc/codecs/tscs42xx.c 		dev_err(component->dev, "Unsupported sample rate %d\n", rate);
rate              933 sound/soc/codecs/tscs42xx.c 	tscs42xx->samplerate = rate;
rate             3042 sound/soc/codecs/tscs454.c 		unsigned int rate)
rate             3049 sound/soc/codecs/tscs454.c 	switch (rate) {
rate               48 sound/soc/codecs/twl4030.c 	unsigned int rate;
rate             1604 sound/soc/codecs/twl4030.c 				twl4030->rate);
rate             1793 sound/soc/codecs/twl4030.c 	twl4030->rate = params_rate(params);
rate              878 sound/soc/codecs/twl6040.c 	int rate;
rate              880 sound/soc/codecs/twl6040.c 	rate = params_rate(params);
rate              881 sound/soc/codecs/twl6040.c 	switch (rate) {
rate              889 sound/soc/codecs/twl6040.c 				rate);
rate              902 sound/soc/codecs/twl6040.c 		dev_err(component->dev, "unsupported rate %d\n", rate);
rate              148 sound/soc/codecs/uda134x.c 			 master_runtime->rate);
rate              152 sound/soc/codecs/uda134x.c 					     master_runtime->rate);
rate              539 sound/soc/codecs/uda1380.c 		int rate = params_rate(params);
rate              542 sound/soc/codecs/uda1380.c 		switch (rate) {
rate              405 sound/soc/codecs/wcd9335.c 	int rate;
rate             1611 sound/soc/codecs/wcd9335.c 					     u32 rate)
rate             1637 sound/soc/codecs/wcd9335.c 					      u32 rate)
rate             1668 sound/soc/codecs/wcd9335.c 				if ((j == 0) && (rate == 44100))
rate             1683 sound/soc/codecs/wcd9335.c static int wcd9335_set_interpolator_rate(struct snd_soc_dai *dai, u32 rate)
rate             1689 sound/soc/codecs/wcd9335.c 		if (rate == int_mix_rate_val[i].rate) {
rate             1691 sound/soc/codecs/wcd9335.c 					int_mix_rate_val[i].rate_val, rate);
rate             1698 sound/soc/codecs/wcd9335.c 		if (rate == int_prim_rate_val[i].rate) {
rate             1700 sound/soc/codecs/wcd9335.c 					int_prim_rate_val[i].rate_val, rate);
rate             1788 sound/soc/codecs/wcd9335.c 				      u8 rate_val, u32 rate)
rate             1946 sound/soc/codecs/wcd9335.c 	wcd->dai[dai->id].sconfig.rate = params_rate(params);
rate               30 sound/soc/codecs/wl1273.c 				      int rate, int width)
rate               36 sound/soc/codecs/wl1273.c 	dev_dbg(dev, "rate: %d\n", rate);
rate               43 sound/soc/codecs/wl1273.c 	switch (rate) {
rate               69 sound/soc/codecs/wl1273.c 		dev_err(dev, "Sampling rate: %d not supported\n", rate);
rate              326 sound/soc/codecs/wl1273.c 	unsigned int rate, width, r;
rate              334 sound/soc/codecs/wl1273.c 	rate = params_rate(params);
rate              338 sound/soc/codecs/wl1273.c 		if (rate != 8000) {
rate              369 sound/soc/codecs/wl1273.c 	r = snd_wl1273_fm_set_i2s_mode(core, rate, width);
rate              122 sound/soc/codecs/wm2000.c 	unsigned long rate;
rate              137 sound/soc/codecs/wm2000.c 	rate = clk_get_rate(wm2000->mclk);
rate              138 sound/soc/codecs/wm2000.c 	if (rate <= 13500000) {
rate              118 sound/soc/codecs/wm5100.c static int wm5100_alloc_sr(struct snd_soc_component *component, int rate)
rate              124 sound/soc/codecs/wm5100.c 		if (wm5100_sr_code[i] == rate)
rate              127 sound/soc/codecs/wm5100.c 		dev_err(component->dev, "Unsupported sample rate: %dHz\n", rate);
rate              132 sound/soc/codecs/wm5100.c 	if ((wm5100->sysclk % rate) == 0) {
rate              148 sound/soc/codecs/wm5100.c 				rate, i, wm5100->sr_ref[i]);
rate              158 sound/soc/codecs/wm5100.c 			sr_free, rate);
rate              169 sound/soc/codecs/wm5100.c 			rate, wm5100->sysclk, wm5100->asyncclk);
rate              174 sound/soc/codecs/wm5100.c static void wm5100_free_sr(struct snd_soc_component *component, int rate)
rate              180 sound/soc/codecs/wm5100.c 		if (wm5100_sr_code[i] == rate)
rate              183 sound/soc/codecs/wm5100.c 		dev_err(component->dev, "Unsupported sample rate: %dHz\n", rate);
rate              199 sound/soc/codecs/wm5100.c 			rate, wm5100->sr_ref[i]);
rate              202 sound/soc/codecs/wm5100.c 			 rate);
rate              102 sound/soc/codecs/wm8711.c 	u32 rate;
rate              144 sound/soc/codecs/wm8711.c static inline int get_coeff(int mclk, int rate)
rate              149 sound/soc/codecs/wm8711.c 		if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk)
rate              250 sound/soc/codecs/wm8731.c 	u32 rate;
rate              322 sound/soc/codecs/wm8731.c static inline int get_coeff(int mclk, int rate)
rate              327 sound/soc/codecs/wm8731.c 		if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk)
rate              279 sound/soc/codecs/wm8737.c 	u32 rate;
rate              335 sound/soc/codecs/wm8737.c 		if (coeff_div[i].rate != params_rate(params))
rate              429 sound/soc/codecs/wm8750.c 	u32 rate;
rate              485 sound/soc/codecs/wm8750.c static inline int get_coeff(int mclk, int rate)
rate              490 sound/soc/codecs/wm8750.c 		if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk)
rate              495 sound/soc/codecs/wm8750.c 		mclk, rate);
rate              792 sound/soc/codecs/wm8753.c 	u32 rate;
rate              847 sound/soc/codecs/wm8753.c static int get_coeff(int mclk, int rate)
rate              852 sound/soc/codecs/wm8753.c 		if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk)
rate             1332 sound/soc/codecs/wm8903.c 	int rate;
rate             1421 sound/soc/codecs/wm8903.c 	int rate;
rate             1469 sound/soc/codecs/wm8903.c 	best_val = abs(sample_rates[dsp_config].rate - fs);
rate             1471 sound/soc/codecs/wm8903.c 		cur_val = abs(sample_rates[i].rate - fs);
rate             1478 sound/soc/codecs/wm8903.c 	dev_dbg(component->dev, "DSP fs = %dHz\n", sample_rates[dsp_config].rate);
rate             1536 sound/soc/codecs/wm8903.c 	clock1 |= clk_sys_ratios[clk_config].rate << WM8903_CLK_SYS_RATE_SHIFT;
rate             1540 sound/soc/codecs/wm8903.c 		clk_sys_ratios[clk_config].rate,
rate              317 sound/soc/codecs/wm8904.c 	unsigned int clock0, clock2, rate;
rate              330 sound/soc/codecs/wm8904.c 		rate = wm8904->mclk_rate;
rate              342 sound/soc/codecs/wm8904.c 		rate = wm8904->fll_fout;
rate              351 sound/soc/codecs/wm8904.c 	if (rate > 13500000) {
rate              353 sound/soc/codecs/wm8904.c 		wm8904->sysclk_rate = rate / 2;
rate              356 sound/soc/codecs/wm8904.c 		wm8904->sysclk_rate = rate;
rate              434 sound/soc/codecs/wm8904.c 		    abs(pdata->retune_mobile_cfgs[i].rate
rate              437 sound/soc/codecs/wm8904.c 			best_val = abs(pdata->retune_mobile_cfgs[i].rate
rate              444 sound/soc/codecs/wm8904.c 		pdata->retune_mobile_cfgs[best].rate,
rate             1245 sound/soc/codecs/wm8904.c 	int rate;
rate             1353 sound/soc/codecs/wm8904.c 	best_val = abs(wm8904->fs - sample_rates[0].rate);
rate             1356 sound/soc/codecs/wm8904.c 		cur_val = abs(wm8904->fs - sample_rates[i].rate);
rate             1363 sound/soc/codecs/wm8904.c 		sample_rates[best].rate);
rate              578 sound/soc/codecs/wm8960.c 	int rate;
rate              852 sound/soc/codecs/wm8960.c 			if (alc_rates[i].rate == params_rate(params))
rate              487 sound/soc/codecs/wm8961.c 	int rate;
rate              520 sound/soc/codecs/wm8961.c 		if (abs(wm8961_srate[i].rate - fs) <
rate              521 sound/soc/codecs/wm8961.c 		    abs(wm8961_srate[best].rate - fs))
rate              529 sound/soc/codecs/wm8961.c 		wm8961_srate[best].rate, fs);
rate             2535 sound/soc/codecs/wm8962.c 	int rate;
rate             2568 sound/soc/codecs/wm8962.c 		if (sr_vals[i].rate == wm8962->lrclk) {
rate              362 sound/soc/codecs/wm8971.c 	u32 rate;
rate              418 sound/soc/codecs/wm8971.c static int get_coeff(int mclk, int rate)
rate              423 sound/soc/codecs/wm8971.c 		if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk)
rate              451 sound/soc/codecs/wm8988.c 	u32 rate;
rate              507 sound/soc/codecs/wm8988.c static inline int get_coeff(int mclk, int rate)
rate              512 sound/soc/codecs/wm8988.c 		if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk)
rate              167 sound/soc/codecs/wm8993.c 	int rate;
rate             1259 sound/soc/codecs/wm8993.c 	best_val = abs(wm8993->fs - sample_rates[0].rate);
rate             1262 sound/soc/codecs/wm8993.c 		cur_val = abs(wm8993->fs - sample_rates[i].rate);
rate             1269 sound/soc/codecs/wm8993.c 		sample_rates[best].rate);
rate             1306 sound/soc/codecs/wm8993.c 		best_val = abs(wm8993->pdata.retune_configs[0].rate
rate             1309 sound/soc/codecs/wm8993.c 			cur_val = abs(wm8993->pdata.retune_configs[i].rate
rate             1319 sound/soc/codecs/wm8993.c 			s->name, s->rate);
rate              145 sound/soc/codecs/wm8994.c 		| rates[best].rate << WM8958_MICD_RATE_SHIFT;
rate              148 sound/soc/codecs/wm8994.c 		rates[best].start, rates[best].rate, sysclk,
rate              159 sound/soc/codecs/wm8994.c 	int rate;
rate              170 sound/soc/codecs/wm8994.c 		rate = wm8994->mclk[0];
rate              175 sound/soc/codecs/wm8994.c 		rate = wm8994->mclk[1];
rate              180 sound/soc/codecs/wm8994.c 		rate = wm8994->fll[0].out;
rate              185 sound/soc/codecs/wm8994.c 		rate = wm8994->fll[1].out;
rate              192 sound/soc/codecs/wm8994.c 	if (rate >= 13500000) {
rate              193 sound/soc/codecs/wm8994.c 		rate /= 2;
rate              197 sound/soc/codecs/wm8994.c 			aif + 1, rate);
rate              200 sound/soc/codecs/wm8994.c 	wm8994->aifclk[aif] = rate;
rate              421 sound/soc/codecs/wm8994.c 		    abs(pdata->retune_mobile_cfgs[i].rate
rate              424 sound/soc/codecs/wm8994.c 			best_val = abs(pdata->retune_mobile_cfgs[i].rate
rate              432 sound/soc/codecs/wm8994.c 		pdata->retune_mobile_cfgs[best].rate,
rate             2746 sound/soc/codecs/wm8994.c 	int val, rate;
rate             2864 sound/soc/codecs/wm8994.c 		if (srs[i].rate == params_rate(params))
rate             2870 sound/soc/codecs/wm8994.c 	dev_dbg(dai->dev, "Sample rate is %dHz\n", srs[i].rate);
rate              672 sound/soc/codecs/wm8995.c 	int rate;
rate              685 sound/soc/codecs/wm8995.c 		rate = wm8995->mclk[0];
rate              689 sound/soc/codecs/wm8995.c 		rate = wm8995->mclk[1];
rate              693 sound/soc/codecs/wm8995.c 		rate = wm8995->fll[0].out;
rate              697 sound/soc/codecs/wm8995.c 		rate = wm8995->fll[1].out;
rate              703 sound/soc/codecs/wm8995.c 	if (rate >= 13500000) {
rate              704 sound/soc/codecs/wm8995.c 		rate /= 2;
rate              708 sound/soc/codecs/wm8995.c 			aif + 1, rate);
rate              711 sound/soc/codecs/wm8995.c 	wm8995->aifclk[aif] = rate;
rate              372 sound/soc/codecs/wm8996.c 		    abs(pdata->retune_mobile_cfgs[i].rate
rate              375 sound/soc/codecs/wm8996.c 			best_val = abs(pdata->retune_mobile_cfgs[i].rate
rate              383 sound/soc/codecs/wm8996.c 		pdata->retune_mobile_cfgs[best].rate,
rate              102 sound/soc/codecs/wm9081.c 	int rate;
rate             1072 sound/soc/codecs/wm9081.c 	best_val = abs(wm9081->fs - sample_rates[0].rate);
rate             1075 sound/soc/codecs/wm9081.c 		cur_val = abs(wm9081->fs - sample_rates[i].rate);
rate             1082 sound/soc/codecs/wm9081.c 		sample_rates[best].rate);
rate             1115 sound/soc/codecs/wm9081.c 		best_val = abs(pdata->retune_configs[0].rate - wm9081->fs);
rate             1117 sound/soc/codecs/wm9081.c 			cur_val = abs(pdata->retune_configs[i].rate -
rate             1127 sound/soc/codecs/wm9081.c 			s->name, s->rate);
rate              244 sound/soc/codecs/wm9705.c 	return snd_soc_component_write(component, reg, substream->runtime->rate);
rate              537 sound/soc/codecs/wm9712.c 	return snd_soc_component_write(component, reg, runtime->rate);
rate              552 sound/soc/codecs/wm9712.c 	return snd_soc_component_write(component, AC97_PCM_SURR_DAC_RATE, runtime->rate);
rate             1040 sound/soc/codecs/wm9713.c 	return snd_soc_component_write(component, reg, runtime->rate);
rate             1055 sound/soc/codecs/wm9713.c 	return snd_soc_component_write(component, AC97_PCM_SURR_DAC_RATE, runtime->rate);
rate              190 sound/soc/fsl/fsl-asoc-card.c 	struct snd_interval *rate;
rate              193 sound/soc/fsl/fsl-asoc-card.c 	rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
rate              194 sound/soc/fsl/fsl-asoc-card.c 	rate->max = rate->min = priv->asrc_rate;
rate              504 sound/soc/fsl/fsl_asrc.c 	unsigned int rate = params_rate(params);
rate              534 sound/soc/fsl/fsl_asrc.c 		config.input_sample_rate  = rate;
rate              540 sound/soc/fsl/fsl_asrc.c 		config.output_sample_rate = rate;
rate              111 sound/soc/fsl/fsl_micfil.c 			      unsigned int rate)
rate              126 sound/soc/fsl/fsl_micfil.c 		bclk = rate * 8 * osr / 2; /* kfactor = 0.5 */
rate              130 sound/soc/fsl/fsl_micfil.c 		bclk = rate * 4 * osr * 1; /* kfactor = 1 */
rate              134 sound/soc/fsl/fsl_micfil.c 		bclk = rate * 2 * osr * 2; /* kfactor = 2 */
rate              137 sound/soc/fsl/fsl_micfil.c 		bclk = rate * osr * 4; /* kfactor = 4 */
rate              150 sound/soc/fsl/fsl_micfil.c 			      unsigned int rate)
rate              160 sound/soc/fsl/fsl_micfil.c 	clk_div = mclk_rate / (get_pdm_clk(micfil, rate) * 2);
rate              295 sound/soc/fsl/fsl_micfil.c static int fsl_set_clock_params(struct device *dev, unsigned int rate)
rate              301 sound/soc/fsl/fsl_micfil.c 	ret = fsl_micfil_set_mclk_rate(micfil, rate);
rate              304 sound/soc/fsl/fsl_micfil.c 			clk_get_rate(micfil->mclk), rate);
rate              315 sound/soc/fsl/fsl_micfil.c 	clk_div = get_clk_div(micfil, rate);
rate              334 sound/soc/fsl/fsl_micfil.c 	unsigned int rate = params_rate(params);
rate              355 sound/soc/fsl/fsl_micfil.c 	ret = fsl_set_clock_params(dev, rate);
rate              378 sound/soc/fsl/fsl_spdif.c 	u32 stc, mask, rate;
rate              385 sound/soc/fsl/fsl_spdif.c 		rate = SPDIF_TXRATE_32000;
rate              389 sound/soc/fsl/fsl_spdif.c 		rate = SPDIF_TXRATE_44100;
rate              393 sound/soc/fsl/fsl_spdif.c 		rate = SPDIF_TXRATE_48000;
rate              397 sound/soc/fsl/fsl_spdif.c 		rate = SPDIF_TXRATE_96000;
rate              401 sound/soc/fsl/fsl_spdif.c 		rate = SPDIF_TXRATE_192000;
rate              409 sound/soc/fsl/fsl_spdif.c 	clk = spdif_priv->txclk_src[rate];
rate              415 sound/soc/fsl/fsl_spdif.c 	txclk_df = spdif_priv->txclk_df[rate];
rate              421 sound/soc/fsl/fsl_spdif.c 	sysclk_df = spdif_priv->sysclk_df[rate];
rate              428 sound/soc/fsl/fsl_spdif.c 	ret = clk_set_rate(spdif_priv->txclk[rate],
rate              439 sound/soc/fsl/fsl_spdif.c 			clk_get_rate(spdif_priv->txclk[rate]));
rate              452 sound/soc/fsl/fsl_spdif.c 			spdif_priv->txrate[rate], sample_rate);
rate              856 sound/soc/fsl/fsl_spdif.c 	int rate = 0;
rate              859 sound/soc/fsl/fsl_spdif.c 		rate = spdif_get_rxclk_rate(spdif_priv, SPDIF_DEFAULT_GAINSEL);
rate              861 sound/soc/fsl/fsl_spdif.c 	ucontrol->value.integer.value[0] = rate;
rate             1110 sound/soc/fsl/fsl_spdif.c 	static const u32 rate[] = { 32000, 44100, 48000, 96000, 192000 };
rate             1123 sound/soc/fsl/fsl_spdif.c 			rate_ideal = rate[index] * txclk_df * 64ULL;
rate             1132 sound/soc/fsl/fsl_spdif.c 			if (arate == rate[index]) {
rate             1139 sound/soc/fsl/fsl_spdif.c 			} else if (arate / rate[index] == 1) {
rate             1141 sound/soc/fsl/fsl_spdif.c 				sub = (u64)(arate - rate[index]) * 100000;
rate             1142 sound/soc/fsl/fsl_spdif.c 				do_div(sub, rate[index]);
rate             1149 sound/soc/fsl/fsl_spdif.c 			} else if (rate[index] / arate == 1) {
rate             1151 sound/soc/fsl/fsl_spdif.c 				sub = (u64)(rate[index] - arate) * 100000;
rate             1152 sound/soc/fsl/fsl_spdif.c 				do_div(sub, rate[index]);
rate             1170 sound/soc/fsl/fsl_spdif.c 	static const u32 rate[] = { 32000, 44100, 48000, 96000, 192000 };
rate             1203 sound/soc/fsl/fsl_spdif.c 			spdif_priv->txclk_src[index], rate[index]);
rate             1205 sound/soc/fsl/fsl_spdif.c 			spdif_priv->txclk_df[index], rate[index]);
rate             1208 sound/soc/fsl/fsl_spdif.c 				spdif_priv->sysclk_df[index], rate[index]);
rate             1210 sound/soc/fsl/fsl_spdif.c 			rate[index], spdif_priv->txrate[index]);
rate               31 sound/soc/fsl/wm1133-ev1.c 	unsigned int rate;
rate               83 sound/soc/fsl/wm1133-ev1.c 	unsigned int rate = params_rate(params);
rate               88 sound/soc/fsl/wm1133-ev1.c 		if (rate == wm8350_audio[i].rate &&
rate               20 sound/soc/generic/simple-card-utils.c 	struct snd_interval *rate = hw_param_interval(params,
rate               26 sound/soc/generic/simple-card-utils.c 		rate->min =
rate               27 sound/soc/generic/simple-card-utils.c 		rate->max = data->convert_rate;
rate              234 sound/soc/generic/simple-card-utils.c 				    unsigned long rate)
rate              242 sound/soc/generic/simple-card-utils.c 	if (clk_get_rate(simple_dai->clk) == rate)
rate              245 sound/soc/generic/simple-card-utils.c 	return clk_set_rate(simple_dai->clk, rate);
rate               46 sound/soc/hisilicon/hi6210-i2s.c 	int rate;
rate              257 sound/soc/hisilicon/hi6210-i2s.c 	u32 bits = 0, rate = 0, signed_data = 0, fmt = 0;
rate              282 sound/soc/hisilicon/hi6210-i2s.c 		rate = HII2S_FS_RATE_8KHZ;
rate              285 sound/soc/hisilicon/hi6210-i2s.c 		rate = HII2S_FS_RATE_16KHZ;
rate              288 sound/soc/hisilicon/hi6210-i2s.c 		rate = HII2S_FS_RATE_32KHZ;
rate              291 sound/soc/hisilicon/hi6210-i2s.c 		rate = HII2S_FS_RATE_48KHZ;
rate              294 sound/soc/hisilicon/hi6210-i2s.c 		rate = HII2S_FS_RATE_96KHZ;
rate              297 sound/soc/hisilicon/hi6210-i2s.c 		rate = HII2S_FS_RATE_192KHZ;
rate              321 sound/soc/hisilicon/hi6210-i2s.c 	i2s->rate = params_rate(params);
rate              464 sound/soc/hisilicon/hi6210-i2s.c 	val |= (rate << HII2S_FS_CFG__FS_S2_SHIFT);
rate              465 sound/soc/hisilicon/hi6210-i2s.c 	val |= (rate << HII2S_FS_CFG__FS_DACLR_SHIFT);
rate              466 sound/soc/hisilicon/hi6210-i2s.c 	val |= (rate << HII2S_FS_CFG__FS_ST_DL_R_SHIFT);
rate              467 sound/soc/hisilicon/hi6210-i2s.c 	val |= (rate << HII2S_FS_CFG__FS_ST_DL_L_SHIFT);
rate              218 sound/soc/img/img-i2s-in.c 	unsigned int rate, channels, i2s_channels, frame_size;
rate              225 sound/soc/img/img-i2s-in.c 	rate = params_rate(params);
rate              258 sound/soc/img/img-i2s-in.c 	ret = img_i2s_in_check_rate(i2s, rate, frame_size,
rate              218 sound/soc/img/img-i2s-out.c 	long pre_div_a, pre_div_b, diff_a, diff_b, rate, clk_rate;
rate              223 sound/soc/img/img-i2s-out.c 	rate = params_rate(params);
rate              236 sound/soc/img/img-i2s-out.c 	pre_div_a = clk_round_rate(i2s->clk_ref, rate * 256);
rate              239 sound/soc/img/img-i2s-out.c 	pre_div_b = clk_round_rate(i2s->clk_ref, rate * 384);
rate              243 sound/soc/img/img-i2s-out.c 	diff_a = abs((pre_div_a / 256) - rate);
rate              244 sound/soc/img/img-i2s-out.c 	diff_b = abs((pre_div_b / 384) - rate);
rate              259 sound/soc/img/img-i2s-out.c 	diff_a = abs((clk_rate / 256) - rate);
rate              260 sound/soc/img/img-i2s-out.c 	diff_b = abs((clk_rate / 384) - rate);
rate              121 sound/soc/img/img-parallel-out.c 	unsigned int rate, channels;
rate              124 sound/soc/img/img-parallel-out.c 	rate = params_rate(params);
rate              140 sound/soc/img/img-parallel-out.c 	clk_set_rate(prl->clk_ref, rate * 256);
rate              149 sound/soc/img/img-spdif-in.c static int img_spdif_in_do_clkgen_calc(unsigned int rate, unsigned int *pnom,
rate              159 sound/soc/img/img-spdif-in.c 	if (!rate)
rate              162 sound/soc/img/img-spdif-in.c 	ori = clk_rate / (rate * 64);
rate              179 sound/soc/img/img-spdif-in.c 		unsigned int rate)
rate              186 sound/soc/img/img-spdif-in.c 	ret = img_spdif_in_check_max_rate(spdif, rate, &clk_rate);
rate              190 sound/soc/img/img-spdif-in.c 	ret = img_spdif_in_do_clkgen_calc(rate, &nom, &hld, clk_rate);
rate              208 sound/soc/img/img-spdif-in.c 	spdif->single_freq = rate;
rate              218 sound/soc/img/img-spdif-in.c 	unsigned int nom, hld, rate, max_rate = 0;
rate              232 sound/soc/img/img-spdif-in.c 		rate = multi_freqs[i];
rate              234 sound/soc/img/img-spdif-in.c 		ret = img_spdif_in_do_clkgen_calc(rate, &nom, &hld, clk_rate);
rate              669 sound/soc/img/img-spdif-in.c 	unsigned int rate, channels;
rate              672 sound/soc/img/img-spdif-in.c 	rate = params_rate(params);
rate              682 sound/soc/img/img-spdif-in.c 	return img_spdif_in_do_clkgen_single(spdif, rate);
rate              237 sound/soc/img/img-spdif-out.c 	long pre_div_a, pre_div_b, diff_a, diff_b, rate, clk_rate;
rate              241 sound/soc/img/img-spdif-out.c 	rate = params_rate(params);
rate              246 sound/soc/img/img-spdif-out.c 			rate, channels, format);
rate              254 sound/soc/img/img-spdif-out.c 	pre_div_a = clk_round_rate(spdif->clk_ref, rate * 256);
rate              257 sound/soc/img/img-spdif-out.c 	pre_div_b = clk_round_rate(spdif->clk_ref, rate * 384);
rate              261 sound/soc/img/img-spdif-out.c 	diff_a = abs((pre_div_a / 256) - rate);
rate              262 sound/soc/img/img-spdif-out.c 	diff_b = abs((pre_div_b / 384) - rate);
rate              277 sound/soc/img/img-spdif-out.c 	diff_a = abs((clk_rate / 256) - rate);
rate              278 sound/soc/img/img-spdif-out.c 	diff_b = abs((clk_rate / 384) - rate);
rate             1037 sound/soc/intel/atom/sst-atom-controls.c 	cmd.param.part.cfg.rate = 2; /* 48khz */
rate              384 sound/soc/intel/atom/sst-atom-controls.h 		u8 rate:3;
rate              147 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	param->uc.pcm_params.sfreq = substream->runtime->rate;
rate              285 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	stream->stream_info.sfreq = substream->runtime->rate;
rate              376 sound/soc/intel/baytrail/sst-baytrail-ipc.c 			    unsigned int rate)
rate              378 sound/soc/intel/baytrail/sst-baytrail-ipc.c 	stream->request.pcm_params.sfreq = rate;
rate               39 sound/soc/intel/baytrail/sst-baytrail-ipc.h 			    unsigned int rate);
rate               69 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	u32 rate, bits;
rate               82 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	rate = params_rate(params);
rate               83 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	ret = sst_byt_stream_set_rate(byt, pcm_data->stream, rate);
rate               85 sound/soc/intel/baytrail/sst-baytrail-pcm.c 		dev_err(rtd->dev, "could not set rate %d\n", rate);
rate              137 sound/soc/intel/boards/bdw-rt5677.c 	struct snd_interval *rate = hw_param_interval(params,
rate              143 sound/soc/intel/boards/bdw-rt5677.c 	rate->min = rate->max = 48000;
rate               89 sound/soc/intel/boards/broadwell.c 	struct snd_interval *rate = hw_param_interval(params,
rate               95 sound/soc/intel/boards/broadwell.c 	rate->min = rate->max = 48000;
rate              160 sound/soc/intel/boards/bxt_da7219_max98357a.c 	struct snd_interval *rate = hw_param_interval(params,
rate              167 sound/soc/intel/boards/bxt_da7219_max98357a.c 	rate->min = rate->max = 48000;
rate              205 sound/soc/intel/boards/bxt_rt298.c 	struct snd_interval *rate = hw_param_interval(params,
rate              212 sound/soc/intel/boards/bxt_rt298.c 	rate->min = rate->max = 48000;
rate              108 sound/soc/intel/boards/bytcht_cx2072x.c 	struct snd_interval *rate =
rate              115 sound/soc/intel/boards/bytcht_cx2072x.c 	rate->min = rate->max = 48000;
rate               64 sound/soc/intel/boards/bytcht_da7213.c 	struct snd_interval *rate = hw_param_interval(params,
rate               70 sound/soc/intel/boards/bytcht_da7213.c 	rate->min = rate->max = 48000;
rate              248 sound/soc/intel/boards/bytcht_es8316.c 	struct snd_interval *rate = hw_param_interval(params,
rate              255 sound/soc/intel/boards/bytcht_es8316.c 	rate->min = rate->max = 48000;
rate               43 sound/soc/intel/boards/bytcht_nocodec.c 	struct snd_interval *rate = hw_param_interval(params,
rate               50 sound/soc/intel/boards/bytcht_nocodec.c 	rate->min = rate->max = 48000;
rate              172 sound/soc/intel/boards/bytcr_rt5640.c 					      int rate)
rate              184 sound/soc/intel/boards/bytcr_rt5640.c 						  rate * 32, rate * 512);
rate              189 sound/soc/intel/boards/bytcr_rt5640.c 						  rate * 50, rate * 512);
rate              195 sound/soc/intel/boards/bytcr_rt5640.c 						  25000000, rate * 512);
rate              199 sound/soc/intel/boards/bytcr_rt5640.c 						  19200000, rate * 512);
rate              209 sound/soc/intel/boards/bytcr_rt5640.c 				     rate * 512, SND_SOC_CLOCK_IN);
rate              958 sound/soc/intel/boards/bytcr_rt5640.c 	struct snd_interval *rate = hw_param_interval(params,
rate              965 sound/soc/intel/boards/bytcr_rt5640.c 	rate->min = rate->max = 48000;
rate              140 sound/soc/intel/boards/bytcr_rt5651.c 					      int rate, int bclk_ratio)
rate              147 sound/soc/intel/boards/bytcr_rt5651.c 		clk_freq = rate * bclk_ratio;
rate              155 sound/soc/intel/boards/bytcr_rt5651.c 	ret = snd_soc_dai_set_pll(codec_dai, 0, clk_id, clk_freq, rate * 512);
rate              162 sound/soc/intel/boards/bytcr_rt5651.c 				     rate * 512, SND_SOC_CLOCK_IN);
rate              353 sound/soc/intel/boards/bytcr_rt5651.c 	int rate = params_rate(params);
rate              361 sound/soc/intel/boards/bytcr_rt5651.c 	return byt_rt5651_prepare_and_enable_pll1(codec_dai, rate, bclk_ratio);
rate              670 sound/soc/intel/boards/bytcr_rt5651.c 	struct snd_interval *rate = hw_param_interval(params,
rate              677 sound/soc/intel/boards/bytcr_rt5651.c 	rate->min = rate->max = 48000;
rate              253 sound/soc/intel/boards/cht_bsw_max98090_ti.c 	struct snd_interval *rate = hw_param_interval(params,
rate              276 sound/soc/intel/boards/cht_bsw_max98090_ti.c 	rate->min = rate->max = 48000;
rate              138 sound/soc/intel/boards/cht_bsw_nau8824.c 	struct snd_interval *rate = hw_param_interval(params,
rate              146 sound/soc/intel/boards/cht_bsw_nau8824.c 	rate->min = rate->max = 48000;
rate              342 sound/soc/intel/boards/cht_bsw_rt5645.c 	struct snd_interval *rate = hw_param_interval(params,
rate              348 sound/soc/intel/boards/cht_bsw_rt5645.c 	rate->min = rate->max = 48000;
rate              242 sound/soc/intel/boards/cht_bsw_rt5672.c 	struct snd_interval *rate = hw_param_interval(params,
rate              249 sound/soc/intel/boards/cht_bsw_rt5672.c 	rate->min = rate->max = 48000;
rate              117 sound/soc/intel/boards/glk_rt5682_max98357a.c 	struct snd_interval *rate = hw_param_interval(params,
rate              124 sound/soc/intel/boards/glk_rt5682_max98357a.c 	rate->min = rate->max = 48000;
rate               41 sound/soc/intel/boards/haswell.c 	struct snd_interval *rate = hw_param_interval(params,
rate               47 sound/soc/intel/boards/haswell.c 	rate->min = rate->max = 48000;
rate              142 sound/soc/intel/boards/kbl_da7219_max98357a.c 	struct snd_interval *rate = hw_param_interval(params,
rate              149 sound/soc/intel/boards/kbl_da7219_max98357a.c 	rate->min = rate->max = 48000;
rate              280 sound/soc/intel/boards/kbl_da7219_max98927.c 	struct snd_interval *rate = hw_param_interval(params,
rate              300 sound/soc/intel/boards/kbl_da7219_max98927.c 		rate->min = rate->max = 48000;
rate              315 sound/soc/intel/boards/kbl_da7219_max98927.c 		rate->min = rate->max = 48000;
rate              139 sound/soc/intel/boards/kbl_rt5660.c 	struct snd_interval *rate = hw_param_interval(params,
rate              146 sound/soc/intel/boards/kbl_rt5660.c 	rate->min = rate->max = 48000;
rate              399 sound/soc/intel/boards/kbl_rt5663_max98927.c 	struct snd_interval *rate = hw_param_interval(params,
rate              415 sound/soc/intel/boards/kbl_rt5663_max98927.c 		rate->min = rate->max = 48000;
rate              269 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c 	struct snd_interval *rate = hw_param_interval(params,
rate              285 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c 		rate->min = rate->max = 48000;
rate              140 sound/soc/intel/boards/skl_nau88l25_max98357a.c 	struct snd_interval *rate = hw_param_interval(params,
rate              147 sound/soc/intel/boards/skl_nau88l25_max98357a.c 	rate->min = rate->max = 48000;
rate              318 sound/soc/intel/boards/skl_nau88l25_ssm4567.c 	struct snd_interval *rate = hw_param_interval(params,
rate              325 sound/soc/intel/boards/skl_nau88l25_ssm4567.c 	rate->min = rate->max = 48000;
rate              212 sound/soc/intel/boards/skl_rt286.c 	struct snd_interval *rate = hw_param_interval(params,
rate              219 sound/soc/intel/boards/skl_rt286.c 	rate->min = rate->max = 48000;
rate             1056 sound/soc/intel/haswell/sst-haswell-ipc.c 	struct sst_hsw_stream *stream, int rate)
rate             1063 sound/soc/intel/haswell/sst-haswell-ipc.c 	stream->request.format.frequency = rate;
rate              437 sound/soc/intel/haswell/sst-haswell-ipc.h 	int rate);
rate              475 sound/soc/intel/haswell/sst-haswell-pcm.c 	u32 rate, bits, map, pages, module_id;
rate              547 sound/soc/intel/haswell/sst-haswell-pcm.c 	rate = params_rate(params);
rate              548 sound/soc/intel/haswell/sst-haswell-pcm.c 	ret = sst_hsw_stream_set_rate(hsw, pcm_data->stream, rate);
rate              550 sound/soc/intel/haswell/sst-haswell-pcm.c 		dev_err(rtd->dev, "error: could not set rate %d\n", rate);
rate               18 sound/soc/intel/skylake/skl-nhlt.c 		u8 no_ch, u32 rate, u16 bps, u8 linktype)
rate               40 sound/soc/intel/skylake/skl-nhlt.c 			if (wfmt->samples_per_sec == rate)
rate              202 sound/soc/intel/skylake/skl-nhlt.c 	unsigned long rate = 0;
rate              244 sound/soc/intel/skylake/skl-nhlt.c 		rate = channels * bps * fs;
rate              248 sound/soc/intel/skylake/skl-nhlt.c 			    (sclk[id].rate_cfg[j].rate != 0); j++) {
rate              249 sound/soc/intel/skylake/skl-nhlt.c 			if (sclk[id].rate_cfg[j].rate == rate) {
rate              279 sound/soc/intel/skylake/skl-nhlt.c 			sclk[id].rate_cfg[rate_index].rate = rate;
rate              281 sound/soc/intel/skylake/skl-nhlt.c 			sclkfs[id].rate_cfg[rate_index].rate = rate;
rate              330 sound/soc/intel/skylake/skl-nhlt.c 	mclk[id].rate_cfg[0].rate = parent->rate/div_ratio;
rate              323 sound/soc/intel/skylake/skl-pcm.c 			runtime->rate, runtime->channels, runtime->format);
rate             1240 sound/soc/intel/skylake/skl-pcm.c 			      substream->runtime->rate);
rate               29 sound/soc/intel/skylake/skl-ssp-clk.c 	unsigned long rate;
rate              165 sound/soc/intel/skylake/skl-ssp-clk.c 				unsigned long rate)
rate              169 sound/soc/intel/skylake/skl-ssp-clk.c 	for (i = 0; (i < SKL_MAX_CLK_RATES) && rcfg[i].rate; i++) {
rate              170 sound/soc/intel/skylake/skl-ssp-clk.c 		if (rcfg[i].rate == rate)
rate              192 sound/soc/intel/skylake/skl-ssp-clk.c 						clkdev->rate);
rate              214 sound/soc/intel/skylake/skl-ssp-clk.c static int skl_clk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              221 sound/soc/intel/skylake/skl-ssp-clk.c 	if (!rate)
rate              225 sound/soc/intel/skylake/skl-ssp-clk.c 							rate);
rate              234 sound/soc/intel/skylake/skl-ssp-clk.c 	clkdev->rate = rate;
rate              244 sound/soc/intel/skylake/skl-ssp-clk.c 	if (clkdev->rate)
rate              245 sound/soc/intel/skylake/skl-ssp-clk.c 		return clkdev->rate;
rate              251 sound/soc/intel/skylake/skl-ssp-clk.c static long skl_clk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              254 sound/soc/intel/skylake/skl-ssp-clk.c 	return rate;
rate              294 sound/soc/intel/skylake/skl-ssp-clk.c 				pclk[i].parent_name, 0, pclk[i].rate);
rate              380 sound/soc/intel/skylake/skl-ssp-clk.c 		if (clks[i].rate_cfg[0].rate == 0)
rate               44 sound/soc/intel/skylake/skl-ssp-clk.h 	unsigned long rate;
rate               86 sound/soc/intel/skylake/skl-ssp-clk.h 	unsigned long rate;
rate              603 sound/soc/intel/skylake/skl.c 	{ .clk_id = SKL_CARDINAL, .name = "cardinal", .rate = 24576000 },
rate              604 sound/soc/intel/skylake/skl.c 	{ .clk_id = SKL_PLL, .name = "pll", .rate = 96000000 },
rate              624 sound/soc/intel/skylake/skl.c 		skl_clk_src[0].rate = 24000000;
rate              628 sound/soc/intel/skylake/skl.c 		skl_clk_src[0].rate = 19200000;
rate               72 sound/soc/kirkwood/kirkwood-i2s.c static inline void kirkwood_set_dco(void __iomem *io, unsigned long rate)
rate               77 sound/soc/kirkwood/kirkwood-i2s.c 	switch (rate) {
rate              100 sound/soc/kirkwood/kirkwood-i2s.c 	struct kirkwood_dma_data *priv, unsigned long rate)
rate              108 sound/soc/kirkwood/kirkwood-i2s.c 			__func__, rate);
rate              109 sound/soc/kirkwood/kirkwood-i2s.c 		kirkwood_set_dco(priv->io, rate);
rate              116 sound/soc/kirkwood/kirkwood-i2s.c 			__func__, rate, 256 * rate);
rate              117 sound/soc/kirkwood/kirkwood-i2s.c 		clk_set_rate(priv->extclk, 256 * rate);
rate              206 sound/soc/mediatek/common/mtk-afe-fe-dai.c 		fs = afe->irq_fs(substream, runtime->rate);
rate               84 sound/soc/mediatek/common/mtk-base-afe.h 			unsigned int rate);
rate               86 sound/soc/mediatek/common/mtk-base-afe.h 		      unsigned int rate);
rate               38 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	unsigned int rate;
rate               43 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 8000, .regvalue = 0 },
rate               44 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 12000, .regvalue = 1 },
rate               45 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 16000, .regvalue = 2 },
rate               46 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 24000, .regvalue = 3 },
rate               47 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 32000, .regvalue = 4 },
rate               48 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 48000, .regvalue = 5 },
rate               49 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 96000, .regvalue = 6 },
rate               50 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 192000, .regvalue = 7 },
rate               51 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 384000, .regvalue = 8 },
rate               52 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 7350, .regvalue = 16 },
rate               53 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 11025, .regvalue = 17 },
rate               54 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 14700, .regvalue = 18 },
rate               55 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 22050, .regvalue = 19 },
rate               56 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 29400, .regvalue = 20 },
rate               57 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 44100, .regvalue = 21 },
rate               58 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 88200, .regvalue = 22 },
rate               59 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 176400, .regvalue = 23 },
rate               60 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	{ .rate = 352800, .regvalue = 24 },
rate              102 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 		if (mt2701_afe_i2s_rates[i].rate == sample_rate)
rate              175 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 				  int stream_dir, int rate)
rate              186 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	fs = mt2701_afe_i2s_fs(rate);
rate              257 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 				       substream->runtime->rate);
rate              260 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 			       substream->runtime->rate);
rate              495 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 			   unsigned int rate)
rate              501 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 		fs = mt2701_afe_i2s_fs(rate);
rate              503 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 		fs = (rate == 16000 ? 1 : 0);
rate              508 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c static int mt2701_irq_fs(struct snd_pcm_substream *substream, unsigned int rate)
rate              510 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	return mt2701_afe_i2s_fs(rate);
rate              134 sound/soc/mediatek/mt2701/mt2701-cs42448.c 	unsigned int rate = params_rate(params);
rate              135 sound/soc/mediatek/mt2701/mt2701-cs42448.c 	unsigned int div_mclk_over_bck = rate > 192000 ? 2 : 4;
rate              138 sound/soc/mediatek/mt2701/mt2701-cs42448.c 	mclk_rate = rate * div_bck_over_lrck * div_mclk_over_bck;
rate               31 sound/soc/mediatek/mt2701/mt2701-wm8960.c 	unsigned int rate = params_rate(params);
rate               32 sound/soc/mediatek/mt2701/mt2701-wm8960.c 	unsigned int div_mclk_over_bck = rate > 192000 ? 2 : 4;
rate               35 sound/soc/mediatek/mt2701/mt2701-wm8960.c 	mclk_rate = rate * div_bck_over_lrck * div_mclk_over_bck;
rate               51 sound/soc/mediatek/mt6797/mt6797-afe-common.h 					   unsigned int rate);
rate               53 sound/soc/mediatek/mt6797/mt6797-afe-common.h 				   unsigned int rate, int aud_blk);
rate               55 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 					   unsigned int rate)
rate               57 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 	switch (rate) {
rate               90 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 			 __func__, rate, MTK_AFE_RATE_48K);
rate               96 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 					     unsigned int rate)
rate               98 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 	switch (rate) {
rate              107 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 			 __func__, rate, MTK_AFE_DAI_MEMIF_RATE_16K);
rate              113 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 				   unsigned int rate, int aud_blk)
rate              118 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 		return dai_memif_rate_transform(dev, rate);
rate              120 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 		return mt6797_general_rate_transform(dev, rate);
rate              140 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 			   unsigned int rate)
rate              148 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 	return mt6797_rate_transform(afe->dev, rate, id);
rate              151 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c static int mt6797_irq_fs(struct snd_pcm_substream *substream, unsigned int rate)
rate              158 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 	return mt6797_general_rate_transform(afe->dev, rate);
rate               39 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 					   unsigned int rate)
rate               41 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 	switch (rate) {
rate               66 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 			 __func__, rate);
rate               72 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 					   unsigned int rate)
rate               74 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 	switch (rate) {
rate               89 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 			 __func__, rate);
rate              235 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 	unsigned int rate = params_rate(params);
rate              238 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 		__func__, dai->id, substream->stream, rate);
rate              249 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 		dl_src2_con0 = adda_dl_rate_transform(afe, rate) << 28;
rate              252 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 		switch (rate) {
rate              270 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 		if (rate == 8000 || rate == 16000)
rate              273 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 		if (rate < 96000) {
rate              299 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 		voice_mode = adda_ul_rate_transform(afe, rate);
rate              306 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 		if (rate >= 96000) {	/* hires */
rate              186 sound/soc/mediatek/mt6797/mt6797-dai-pcm.c 	unsigned int rate = params_rate(params);
rate              187 sound/soc/mediatek/mt6797/mt6797-dai-pcm.c 	unsigned int rate_reg = mt6797_rate_transform(afe->dev, rate, dai->id);
rate              194 sound/soc/mediatek/mt6797/mt6797-dai-pcm.c 		rate,
rate              165 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	unsigned int rate;
rate              170 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	{ .rate = 8000, .regvalue = 0 },
rate              171 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	{ .rate = 11025, .regvalue = 1 },
rate              172 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	{ .rate = 12000, .regvalue = 2 },
rate              173 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	{ .rate = 16000, .regvalue = 4 },
rate              174 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	{ .rate = 22050, .regvalue = 5 },
rate              175 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	{ .rate = 24000, .regvalue = 6 },
rate              176 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	{ .rate = 32000, .regvalue = 8 },
rate              177 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	{ .rate = 44100, .regvalue = 9 },
rate              178 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	{ .rate = 48000, .regvalue = 10 },
rate              179 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	{ .rate = 88000, .regvalue = 11 },
rate              180 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	{ .rate = 96000, .regvalue = 12 },
rate              181 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	{ .rate = 174000, .regvalue = 13 },
rate              182 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	{ .rate = 192000, .regvalue = 14 },
rate              190 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 		if (mt8173_afe_i2s_rates[i].rate == sample_rate)
rate              196 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c static int mt8173_afe_set_i2s(struct mtk_base_afe *afe, unsigned int rate)
rate              199 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	int fs = mt8173_afe_i2s_fs(rate);
rate              331 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 				 runtime->rate * 256, NULL, 0);
rate              333 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 				 runtime->rate * 256, NULL, 0);
rate              335 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	ret = mt8173_afe_set_i2s(afe, substream->runtime->rate);
rate              381 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 				 runtime->rate * 128,
rate              383 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 				 runtime->rate * runtime->channels * 32);
rate              483 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 			   unsigned int rate)
rate              493 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 		switch (rate) {
rate              507 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 		fs = mt8173_afe_i2s_fs(rate);
rate              512 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c static int mt8173_irq_fs(struct snd_pcm_substream *substream, unsigned int rate)
rate              514 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	return mt8173_afe_i2s_fs(rate);
rate              492 sound/soc/mediatek/mt8183/mt8183-afe-clk.c int mt8183_get_apll_by_rate(struct mtk_base_afe *afe, int rate)
rate              494 sound/soc/mediatek/mt8183/mt8183-afe-clk.c 	return ((rate % 8000) == 0) ? MT8183_APLL2 : MT8183_APLL1;
rate              542 sound/soc/mediatek/mt8183/mt8183-afe-clk.c int mt8183_mck_enable(struct mtk_base_afe *afe, int mck_id, int rate)
rate              545 sound/soc/mediatek/mt8183/mt8183-afe-clk.c 	int apll = mt8183_get_apll_by_rate(afe, rate);
rate              581 sound/soc/mediatek/mt8183/mt8183-afe-clk.c 	ret = clk_set_rate(afe_priv->clk[div_clk_id], rate);
rate              585 sound/soc/mediatek/mt8183/mt8183-afe-clk.c 			rate, ret);
rate               33 sound/soc/mediatek/mt8183/mt8183-afe-clk.h int mt8183_get_apll_by_rate(struct mtk_base_afe *afe, int rate);
rate               36 sound/soc/mediatek/mt8183/mt8183-afe-clk.h int mt8183_mck_enable(struct mtk_base_afe *afe, int mck_id, int rate);
rate               98 sound/soc/mediatek/mt8183/mt8183-afe-common.h 					   unsigned int rate);
rate              100 sound/soc/mediatek/mt8183/mt8183-afe-common.h 				   unsigned int rate, int aud_blk);
rate               56 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 					   unsigned int rate)
rate               58 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 	switch (rate) {
rate               91 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 			 __func__, rate, MTK_AFE_RATE_48K);
rate               97 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 					     unsigned int rate)
rate               99 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 	switch (rate) {
rate              110 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 			 __func__, rate, MTK_AFE_DAI_MEMIF_RATE_16K);
rate              116 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 				   unsigned int rate, int aud_blk)
rate              120 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 		return dai_memif_rate_transform(dev, rate);
rate              122 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 		return mt8183_general_rate_transform(dev, rate);
rate              142 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 			   unsigned int rate)
rate              150 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 	return mt8183_rate_transform(afe->dev, rate, id);
rate              153 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c static int mt8183_irq_fs(struct snd_pcm_substream *substream, unsigned int rate)
rate              160 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 	return mt8183_general_rate_transform(afe->dev, rate);
rate               25 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c 	unsigned int rate = params_rate(params);
rate               27 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c 	unsigned int mclk_fs = rate * mclk_fs_ratio;
rate               41 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c 	unsigned int rate = params_rate(params);
rate               43 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c 	unsigned int mclk_fs = rate * mclk_fs_ratio;
rate               63 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c 			if ((rate % 8000) == 0)
rate               51 sound/soc/mediatek/mt8183/mt8183-dai-adda.c 					   unsigned int rate)
rate               53 sound/soc/mediatek/mt8183/mt8183-dai-adda.c 	switch (rate) {
rate               78 sound/soc/mediatek/mt8183/mt8183-dai-adda.c 			 __func__, rate);
rate               84 sound/soc/mediatek/mt8183/mt8183-dai-adda.c 					   unsigned int rate)
rate               86 sound/soc/mediatek/mt8183/mt8183-dai-adda.c 	switch (rate) {
rate              101 sound/soc/mediatek/mt8183/mt8183-dai-adda.c 			 __func__, rate);
rate              357 sound/soc/mediatek/mt8183/mt8183-dai-adda.c 	unsigned int rate = params_rate(params);
rate              360 sound/soc/mediatek/mt8183/mt8183-dai-adda.c 		__func__, dai->id, substream->stream, rate);
rate              371 sound/soc/mediatek/mt8183/mt8183-dai-adda.c 		dl_src2_con0 = adda_dl_rate_transform(afe, rate) << 28;
rate              374 sound/soc/mediatek/mt8183/mt8183-dai-adda.c 		switch (rate) {
rate              392 sound/soc/mediatek/mt8183/mt8183-dai-adda.c 		if (rate == 8000 || rate == 16000)
rate              422 sound/soc/mediatek/mt8183/mt8183-dai-adda.c 		voice_mode = adda_ul_rate_transform(afe, rate);
rate               43 sound/soc/mediatek/mt8183/mt8183-dai-i2s.c 	int rate; /* for determine which apll to use */
rate              493 sound/soc/mediatek/mt8183/mt8183-dai-i2s.c 	i2s_need_apll = mt8183_get_apll_by_rate(afe, i2s_priv->rate);
rate              710 sound/soc/mediatek/mt8183/mt8183-dai-i2s.c 	unsigned int rate = params_rate(params);
rate              712 sound/soc/mediatek/mt8183/mt8183-dai-i2s.c 						      rate, i2s_id);
rate              720 sound/soc/mediatek/mt8183/mt8183-dai-i2s.c 		 rate, format);
rate              723 sound/soc/mediatek/mt8183/mt8183-dai-i2s.c 		i2s_priv->rate = rate;
rate              186 sound/soc/mediatek/mt8183/mt8183-dai-pcm.c 	unsigned int rate = params_rate(params);
rate              187 sound/soc/mediatek/mt8183/mt8183-dai-pcm.c 	unsigned int rate_reg = mt8183_rate_transform(afe->dev, rate, dai->id);
rate              194 sound/soc/mediatek/mt8183/mt8183-dai-pcm.c 		rate,
rate              473 sound/soc/mediatek/mt8183/mt8183-dai-tdm.c 	unsigned int rate = params_rate(params);
rate              482 sound/soc/mediatek/mt8183/mt8183-dai-tdm.c 		tdm_priv->mclk_rate = rate * tdm_priv->mclk_multiple;
rate              489 sound/soc/mediatek/mt8183/mt8183-dai-tdm.c 	tdm_priv->bck_rate = rate *
rate              501 sound/soc/mediatek/mt8183/mt8183-dai-tdm.c 		 tdm_id, rate, channels, format,
rate               39 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c 	unsigned int rate = params_rate(params);
rate               41 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c 	unsigned int mclk_fs = rate * mclk_fs_ratio;
rate              166 sound/soc/meson/axg-pdm.c 			      unsigned int rate)
rate              168 sound/soc/meson/axg-pdm.c 	unsigned int sys_rate = os * 2 * rate * PDM_CHAN_CTRL_POINTER_MAX;
rate              229 sound/soc/meson/axg-pdm.c 	unsigned int rate = params_rate(params);
rate              247 sound/soc/meson/axg-pdm.c 	ret = axg_pdm_set_sysclk(priv, os, rate);
rate              253 sound/soc/meson/axg-pdm.c 	ret = clk_set_rate(priv->dclk, rate * os);
rate               78 sound/soc/meson/axg-spdifin.c 	unsigned int stat, mode, rate = 0;
rate               90 sound/soc/meson/axg-spdifin.c 		rate = priv->conf->mode_rates[mode];
rate               92 sound/soc/meson/axg-spdifin.c 	return rate;
rate              177 sound/soc/meson/axg-spdifin.c 					   unsigned int rate)
rate              183 sound/soc/meson/axg-spdifin.c 	return rate / (128 * priv->conf->mode_rates[mode]);
rate              189 sound/soc/meson/axg-spdifin.c 	unsigned int rate, t_next;
rate              203 sound/soc/meson/axg-spdifin.c 	rate = clk_get_rate(priv->refclk);
rate              208 sound/soc/meson/axg-spdifin.c 			   FIELD_PREP(SPDIFIN_CTRL1_BASE_TIMER, rate / 1000));
rate              215 sound/soc/meson/axg-spdifin.c 	t_next = axg_spdifin_mode_timer(priv, i, rate);
rate              224 sound/soc/meson/axg-spdifin.c 		t = axg_spdifin_mode_timer(priv, i, rate);
rate              220 sound/soc/meson/axg-spdifout.c 	unsigned int rate = params_rate(params);
rate              224 sound/soc/meson/axg-spdifout.c 	ret = clk_set_rate(priv->mclk, rate * 128);
rate              155 sound/soc/meson/axg-tdm-interface.c 						   iface->rate);
rate              176 sound/soc/meson/axg-tdm-interface.c 	iface->rate = params_rate(params);
rate               38 sound/soc/meson/axg-tdm.h 	int rate;
rate               79 sound/soc/mxs/mxs-saif.c 				  unsigned int rate)
rate               85 sound/soc/mxs/mxs-saif.c 	dev_dbg(saif->dev, "mclk %d rate %d\n", mclk, rate);
rate               95 sound/soc/mxs/mxs-saif.c 	if (master_saif->ongoing && rate != master_saif->cur_rate) {
rate              121 sound/soc/mxs/mxs-saif.c 		switch (mclk / rate) {
rate              128 sound/soc/mxs/mxs-saif.c 			ret = clk_set_rate(master_saif->clk, 512 * rate);
rate              135 sound/soc/mxs/mxs-saif.c 			ret = clk_set_rate(master_saif->clk, 384 * rate);
rate              143 sound/soc/mxs/mxs-saif.c 		ret = clk_set_rate(master_saif->clk, 512 * rate);
rate              152 sound/soc/mxs/mxs-saif.c 	master_saif->cur_rate = rate;
rate              165 sound/soc/mxs/mxs-saif.c 	switch (mclk / rate) {
rate              239 sound/soc/mxs/mxs-saif.c 					unsigned int rate)
rate              270 sound/soc/mxs/mxs-saif.c 	ret = mxs_saif_set_clk(saif, mclk, rate);
rate              122 sound/soc/mxs/mxs-saif.h 					unsigned int rate);
rate               25 sound/soc/mxs/mxs-sgtl5000.c 	unsigned int rate = params_rate(params);
rate               30 sound/soc/mxs/mxs-sgtl5000.c 	switch (rate) {
rate               32 sound/soc/mxs/mxs-sgtl5000.c 		mclk = 256 * rate;
rate               35 sound/soc/mxs/mxs-sgtl5000.c 		mclk = 512 * rate;
rate              528 sound/soc/pxa/pxa-ssp.c 	int rate;
rate              535 sound/soc/pxa/pxa-ssp.c 	{ .rate =  8000, .pll = 32842000, .acds = SSACD_ACDS_32, .scdb = SSACD_SCDB_4X },
rate              536 sound/soc/pxa/pxa-ssp.c 	{ .rate = 11025, .pll =  5622000, .acds = SSACD_ACDS_4,  .scdb = SSACD_SCDB_4X },
rate              537 sound/soc/pxa/pxa-ssp.c 	{ .rate = 16000, .pll = 32842000, .acds = SSACD_ACDS_16, .scdb = SSACD_SCDB_4X },
rate              538 sound/soc/pxa/pxa-ssp.c 	{ .rate = 22050, .pll =  5622000, .acds = SSACD_ACDS_2,  .scdb = SSACD_SCDB_4X },
rate              539 sound/soc/pxa/pxa-ssp.c 	{ .rate = 44100, .pll = 11345000, .acds = SSACD_ACDS_2,  .scdb = SSACD_SCDB_4X },
rate              540 sound/soc/pxa/pxa-ssp.c 	{ .rate = 48000, .pll = 12235000, .acds = SSACD_ACDS_2,  .scdb = SSACD_SCDB_4X },
rate              541 sound/soc/pxa/pxa-ssp.c 	{ .rate = 96000, .pll = 12235000, .acds = SSACD_ACDS_4,  .scdb = SSACD_SCDB_1X },
rate              560 sound/soc/pxa/pxa-ssp.c 	int rate = params_rate(params);
rate              561 sound/soc/pxa/pxa-ssp.c 	int bclk = rate * chn * (width / 8);
rate              614 sound/soc/pxa/pxa-ssp.c 			for (m = pxa_ssp_clock_modes; m->rate; m++) {
rate              615 sound/soc/pxa/pxa-ssp.c 				if (m->rate == rate)
rate              619 sound/soc/pxa/pxa-ssp.c 			if (!m->rate)
rate              644 sound/soc/pxa/pxa-ssp.c 		pxa_ssp_set_scr(ssp, bclk / rate);
rate               83 sound/soc/pxa/zylonite.c 	int rate = params_rate(params);
rate               90 sound/soc/pxa/zylonite.c 	switch (rate) {
rate               19 sound/soc/qcom/apq8096.c 	struct snd_interval *rate = hw_param_interval(params,
rate               24 sound/soc/qcom/apq8096.c 	rate->min = rate->max = 48000;
rate               74 sound/soc/qcom/lpass-cpu.c 	unsigned int rate = params_rate(params);
rate              167 sound/soc/qcom/lpass-cpu.c 			   rate * bitwidth * 2);
rate              170 sound/soc/qcom/lpass-cpu.c 			rate * bitwidth * 2, ret);
rate               43 sound/soc/qcom/qdsp6/q6adm.c 	int rate;
rate              298 sound/soc/qcom/qdsp6/q6adm.c 					       int mode, int rate,
rate              310 sound/soc/qcom/qdsp6/q6adm.c 		    (mode == c->mode) && (rate == c->rate) &&
rate              323 sound/soc/qcom/qdsp6/q6adm.c 			     int channel_mode, int bit_width, int rate)
rate              352 sound/soc/qcom/qdsp6/q6adm.c 	open->sample_rate = rate;
rate              383 sound/soc/qcom/qdsp6/q6adm.c struct q6copp *q6adm_open(struct device *dev, int port_id, int path, int rate,
rate              398 sound/soc/qcom/qdsp6/q6adm.c 				      rate, channel_mode, bit_width, app_type);
rate              417 sound/soc/qcom/qdsp6/q6adm.c 	copp->rate = rate;
rate              424 sound/soc/qcom/qdsp6/q6adm.c 				channel_mode, bit_width, rate);
rate               19 sound/soc/qcom/qdsp6/q6adm.h struct q6copp *q6adm_open(struct device *dev, int port_id, int path, int rate,
rate              276 sound/soc/qcom/qdsp6/q6asm-dai.c 				prtd->audio_client, runtime->rate,
rate              281 sound/soc/qcom/qdsp6/q6asm-dai.c 					runtime->rate, runtime->channels,
rate              977 sound/soc/qcom/qdsp6/q6asm.c 					  uint32_t rate, uint32_t channels,
rate             1001 sound/soc/qcom/qdsp6/q6asm.c 	fmt->sample_rate = rate;
rate             1035 sound/soc/qcom/qdsp6/q6asm.c 		uint32_t rate, uint32_t channels, uint16_t bits_per_sample)
rate             1062 sound/soc/qcom/qdsp6/q6asm.c 	enc_cfg->sample_rate = rate;
rate               50 sound/soc/qcom/qdsp6/q6asm.h 		uint32_t rate, uint32_t channels, uint16_t bits_per_sample);
rate               54 sound/soc/qcom/qdsp6/q6asm.h 					  uint32_t rate, uint32_t channels,
rate              357 sound/soc/qcom/sdm845.c 	struct snd_interval *rate = hw_param_interval(params,
rate              363 sound/soc/qcom/sdm845.c 	rate->min = rate->max = DEFAULT_SAMPLE_RATE_48K;
rate               25 sound/soc/qcom/storm.c 	unsigned int rate = params_rate(params);
rate               40 sound/soc/qcom/storm.c 	sysclk_freq = rate * bitwidth * 2 * STORM_SYSCLK_MULT;
rate               79 sound/soc/rockchip/rockchip_pdm.c 	unsigned int i, count, clk, div, rate;
rate               92 sound/soc/rockchip/rockchip_pdm.c 			rate = clk_round_rate(pdm->clk, clkref[i].clk);
rate               93 sound/soc/rockchip/rockchip_pdm.c 			if (rate != clkref[i].clk)
rate               74 sound/soc/samsung/h1940_uda1380.c 	unsigned int rate = params_rate(params);
rate               76 sound/soc/samsung/h1940_uda1380.c 	switch (rate) {
rate               80 sound/soc/samsung/h1940_uda1380.c 		div = s3c24xx_i2s_get_clockrate() / (384 * rate);
rate               81 sound/soc/samsung/h1940_uda1380.c 		if (s3c24xx_i2s_get_clockrate() % (384 * rate) > (192 * rate))
rate               86 sound/soc/samsung/h1940_uda1380.c 			__func__, rate);
rate               91 sound/soc/samsung/h1940_uda1380.c 	ret = snd_soc_dai_set_sysclk(cpu_dai, S3C24XX_CLKSRC_PCLK, rate,
rate              155 sound/soc/samsung/rx1950_uda1380.c 	unsigned int rate = params_rate(params);
rate              158 sound/soc/samsung/rx1950_uda1380.c 	switch (rate) {
rate              163 sound/soc/samsung/rx1950_uda1380.c 		div = s3c24xx_i2s_get_clockrate() / (256 * rate);
rate              164 sound/soc/samsung/rx1950_uda1380.c 		if (s3c24xx_i2s_get_clockrate() % (256 * rate) > (128 * rate))
rate              175 sound/soc/samsung/rx1950_uda1380.c 			__func__, rate);
rate              180 sound/soc/samsung/rx1950_uda1380.c 	ret = snd_soc_dai_set_sysclk(cpu_dai, clk_source, rate,
rate              558 sound/soc/samsung/s3c-i2s-v2.c 			    unsigned int rate, struct clk *clk)
rate              581 sound/soc/samsung/s3c-i2s-v2.c 		div = fsclk / rate;
rate              583 sound/soc/samsung/s3c-i2s-v2.c 		if ((fsclk % rate) > (rate / 2))
rate              590 sound/soc/samsung/s3c-i2s-v2.c 		deviation = actual - rate;
rate               77 sound/soc/samsung/s3c-i2s-v2.h 				   unsigned int rate, struct clk *clk);
rate              127 sound/soc/samsung/s3c24xx_uda134x.c 	unsigned long rate = params_rate(params);
rate              135 sound/soc/samsung/s3c24xx_uda134x.c 		cerr = rates[i] - rate;
rate              155 sound/soc/samsung/s3c24xx_uda134x.c 	dev_dbg(rtd->dev, "%s desired rate %lu, %d\n", __func__, rate, bi);
rate              157 sound/soc/samsung/s3c24xx_uda134x.c 	clk = (fs_mode == S3C2410_IISMOD_384FS ? 384 : 256) * rate;
rate              164 sound/soc/samsung/s3c24xx_uda134x.c 	if ((err * 100 / rate) > 5) {
rate              166 sound/soc/samsung/s3c24xx_uda134x.c 				  "from desired (%ld%%)\n", err * 100 / rate);
rate              243 sound/soc/sh/fsi.c 	unsigned long rate;
rate              741 sound/soc/sh/fsi.c 	clock->rate	= 0;
rate              792 sound/soc/sh/fsi.c static void fsi_clk_valid(struct fsi_priv *fsi, unsigned long rate)
rate              794 sound/soc/sh/fsi.c 	fsi->clock.rate = rate;
rate              800 sound/soc/sh/fsi.c 		fsi->clock.rate;
rate              918 sound/soc/sh/fsi.c 	unsigned long rate = fsi->clock.rate;
rate              925 sound/soc/sh/fsi.c 	if (xrate % rate) {
rate              934 sound/soc/sh/fsi.c 	ackmd = xrate / rate;
rate              936 sound/soc/sh/fsi.c 	dev_dbg(dev, "external/rate = %ld/%ld\n", xrate, rate);
rate              950 sound/soc/sh/fsi.c 	unsigned long rate = fsi->clock.rate;
rate              959 sound/soc/sh/fsi.c 	if (!(12288000 % rate))
rate              961 sound/soc/sh/fsi.c 	if (!(11289600 % rate))
rate              969 sound/soc/sh/fsi.c 	ackmd = target / rate;
rate               40 sound/soc/sh/migor.c 	.rate		= 0, /* initialised at run-time */
rate               51 sound/soc/sh/migor.c 	unsigned int rate = params_rate(params);
rate               58 sound/soc/sh/migor.c 	ret = snd_soc_dai_set_clkdiv(codec_dai, WM8978_OPCLKRATE, rate * 512);
rate               62 sound/soc/sh/migor.c 	codec_freq = rate * 512;
rate              187 sound/soc/sh/rcar/adg.c 	if (runtime->rate != in_rate) {
rate              190 sound/soc/sh/rcar/adg.c 	} else if (runtime->rate != out_rate) {
rate              289 sound/soc/sh/rcar/adg.c int rsnd_adg_clk_query(struct rsnd_priv *priv, unsigned int rate)
rate              306 sound/soc/sh/rcar/adg.c 		if (rate == adg->clk_rate[i])
rate              313 sound/soc/sh/rcar/adg.c 	if (rate == adg->rbga_rate_for_441khz)
rate              316 sound/soc/sh/rcar/adg.c 	if (rate == adg->rbgb_rate_for_48khz)
rate              329 sound/soc/sh/rcar/adg.c int rsnd_adg_ssi_clk_try_start(struct rsnd_mod *ssi_mod, unsigned int rate)
rate              338 sound/soc/sh/rcar/adg.c 	data = rsnd_adg_clk_query(priv, rate);
rate              348 sound/soc/sh/rcar/adg.c 		if (0 == (rate % 8000))
rate              412 sound/soc/sh/rcar/adg.c 	u32 rate, div;
rate              479 sound/soc/sh/rcar/adg.c 		rate = clk_get_rate(clk);
rate              481 sound/soc/sh/rcar/adg.c 		if (0 == rate) /* not used */
rate              485 sound/soc/sh/rcar/adg.c 		if (!adg->rbga_rate_for_441khz && (0 == rate % 44100)) {
rate              488 sound/soc/sh/rcar/adg.c 				div = rate / req_441kHz_rate;
rate              492 sound/soc/sh/rcar/adg.c 				adg->rbga_rate_for_441khz = rate / div;
rate              501 sound/soc/sh/rcar/adg.c 		if (!adg->rbgb_rate_for_48khz && (0 == rate % 48000)) {
rate              504 sound/soc/sh/rcar/adg.c 				div = rate / req_48kHz_rate;
rate              508 sound/soc/sh/rcar/adg.c 				adg->rbgb_rate_for_48khz = rate / div;
rate              885 sound/soc/sh/rcar/core.c 	unsigned int rate;
rate              897 sound/soc/sh/rcar/core.c 		rate = rsnd_ssi_clk_query(rdai,
rate              899 sound/soc/sh/rcar/core.c 		if (rate > 0) {
rate              904 sound/soc/sh/rcar/core.c 		rate = rsnd_ssi_clk_query(rdai,
rate              906 sound/soc/sh/rcar/core.c 		if (rate > 0) {
rate              590 sound/soc/sh/rcar/rsnd.h int rsnd_adg_clk_query(struct rsnd_priv *priv, unsigned int rate);
rate              592 sound/soc/sh/rcar/rsnd.h int rsnd_adg_ssi_clk_try_start(struct rsnd_mod *mod, unsigned int rate);
rate               99 sound/soc/sh/rcar/src.c 		convert_rate = runtime->rate;
rate              110 sound/soc/sh/rcar/src.c 	unsigned int rate = 0;
rate              122 sound/soc/sh/rcar/src.c 		return runtime->rate;
rate              129 sound/soc/sh/rcar/src.c 		rate = rsnd_src_convert_rate(io, src_mod);
rate              131 sound/soc/sh/rcar/src.c 	if (!rate)
rate              132 sound/soc/sh/rcar/src.c 		rate = runtime->rate;
rate              134 sound/soc/sh/rcar/src.c 	return rate;
rate               89 sound/soc/sh/rcar/ssi.c 	int rate;
rate              276 sound/soc/sh/rcar/ssi.c 	unsigned int rate = rsnd_io_is_play(io) ?
rate              295 sound/soc/sh/rcar/ssi.c 		if (ssi->rate != rate) {
rate              308 sound/soc/sh/rcar/ssi.c 	main_rate = rsnd_ssi_clk_query(rdai, rate, chan, &idx);
rate              331 sound/soc/sh/rcar/ssi.c 	ssi->rate = rate;
rate              335 sound/soc/sh/rcar/ssi.c 		rsnd_mod_name(mod), chan, rate);
rate              356 sound/soc/sh/rcar/ssi.c 	ssi->rate	= 0;
rate              264 sound/soc/soc-compress.c 		cpu_dai->rate = 0;
rate              267 sound/soc/soc-compress.c 		codec_dai->rate = 0;
rate             3908 sound/soc/soc-dapm.c 	runtime->rate = params_rate(params);
rate              184 sound/soc/soc-pcm.c 	if (soc_dai->rate && (soc_dai->driver->symmetric_rates ||
rate              187 sound/soc/soc-pcm.c 				soc_dai->rate);
rate              191 sound/soc/soc-pcm.c 						soc_dai->rate);
rate              241 sound/soc/soc-pcm.c 	unsigned int rate, channels, sample_bits, symmetry, i;
rate              243 sound/soc/soc-pcm.c 	rate = params_rate(params);
rate              254 sound/soc/soc-pcm.c 	if (symmetry && cpu_dai->rate && cpu_dai->rate != rate) {
rate              256 sound/soc/soc-pcm.c 				cpu_dai->rate, rate);
rate              703 sound/soc/soc-pcm.c 		cpu_dai->rate = 0;
rate              707 sound/soc/soc-pcm.c 			codec_dai->rate = 0;
rate              933 sound/soc/soc-pcm.c 		codec_dai->rate = params_rate(&codec_params);
rate              946 sound/soc/soc-pcm.c 	cpu_dai->rate = params_rate(params);
rate              974 sound/soc/soc-pcm.c 	cpu_dai->rate = 0;
rate              985 sound/soc/soc-pcm.c 		codec_dai->rate = 0;
rate             1010 sound/soc/soc-pcm.c 		cpu_dai->rate = 0;
rate             1017 sound/soc/soc-pcm.c 			codec_dai->rate = 0;
rate               29 sound/soc/sof/intel/hda-pcm.c static inline u32 get_mult_div(struct snd_sof_dev *sdev, int rate)
rate               31 sound/soc/sof/intel/hda-pcm.c 	switch (rate) {
rate               58 sound/soc/sof/intel/hda-pcm.c 			 rate);
rate               93 sound/soc/sof/intel/hda-pcm.c 	u32 size, rate, bits;
rate               96 sound/soc/sof/intel/hda-pcm.c 	rate = get_mult_div(sdev, params_rate(params));
rate              103 sound/soc/sof/intel/hda-pcm.c 	hstream->format_val = rate | bits | (params_channels(params) - 1);
rate              158 sound/soc/sof/pcm.c 	pcm.params.rate = params_rate(params);
rate              617 sound/soc/sof/pcm.c 	struct snd_interval *rate = hw_param_interval(params,
rate              634 sound/soc/sof/pcm.c 		rate->min = 48000;
rate              635 sound/soc/sof/pcm.c 		rate->max = 48000;
rate              667 sound/soc/sof/pcm.c 		rate->min = dai->dai_config->ssp.fsync_rate;
rate              668 sound/soc/sof/pcm.c 		rate->max = dai->dai_config->ssp.fsync_rate;
rate              673 sound/soc/sof/pcm.c 			"rate_min: %d rate_max: %d\n", rate->min, rate->max);
rate               82 sound/soc/sof/topology.c 	pcm.params.rate = params_rate(params);
rate               29 sound/soc/spear/spdif_out.c 	u32 rate;
rate               92 sound/soc/spear/spdif_out.c 		u32 rate)
rate               97 sound/soc/spear/spdif_out.c 	divider = DIV_ROUND_CLOSEST(clk_get_rate(host->clk), (rate * 128));
rate              110 sound/soc/spear/spdif_out.c 	u32 rate, core_freq;
rate              115 sound/soc/spear/spdif_out.c 	rate = params_rate(params);
rate              117 sound/soc/spear/spdif_out.c 	switch (rate) {
rate              144 sound/soc/spear/spdif_out.c 	spdif_out_clock(host, core_freq, rate);
rate              146 sound/soc/spear/spdif_out.c 	host->saved_params.rate = rate;
rate              336 sound/soc/spear/spdif_out.c 				host->saved_params.rate);
rate              299 sound/soc/sprd/sprd-pcm-compress.c 	compr_params.rate = params->codec.bit_rate;
rate               27 sound/soc/sprd/sprd-pcm-dma.h 	u32 rate;
rate              154 sound/soc/sti/uniperif_player.c static int uni_player_clk_set_rate(struct uniperif *player, unsigned long rate)
rate              182 sound/soc/sti/uniperif_player.c 	delta *= (int)div64_u64((uint64_t)rate *
rate              184 sound/soc/sti/uniperif_player.c 	rate_adjusted = rate + delta;
rate              203 sound/soc/sti/uniperif_player.c 	delta = rate_achieved - rate;
rate              212 sound/soc/sti/uniperif_player.c 	adjustment *= (int)div64_u64((uint64_t)delta * 1000000 + rate / 2,
rate              213 sound/soc/sti/uniperif_player.c 				     rate);
rate              230 sound/soc/sti/uniperif_player.c 		switch (runtime->rate) {
rate              318 sound/soc/sti/uniperif_player.c 	clk_div = player->mclk / runtime->rate;
rate              430 sound/soc/sti/uniperif_player.c 	clk_div = player->mclk / runtime->rate;
rate              548 sound/soc/sti/uniperif_player.c 	freq = runtime->rate * tdm_frame_size * 8;
rate               89 sound/soc/stm/stm32_adfsdm.c 					  substream->runtime->rate, 0,
rate               93 sound/soc/stm/stm32_adfsdm.c 			__func__, substream->runtime->rate);
rate              428 sound/soc/stm/stm32_i2s.c 	unsigned int rate = params_rate(params);
rate              433 sound/soc/stm/stm32_i2s.c 	if (!(rate % 11025))
rate              465 sound/soc/stm/stm32_i2s.c 		tmp = DIV_ROUND_CLOSEST(i2s_clock_rate, (nb_bits * rate));
rate              479 sound/soc/stm/stm32_i2s.c 		i2s_clock_rate, rate);
rate              356 sound/soc/stm/stm32_sai_sub.c 				      unsigned int rate)
rate              362 sound/soc/stm/stm32_sai_sub.c 	if (!(rate % SAI_RATE_11K))
rate              374 sound/soc/stm/stm32_sai_sub.c static long stm32_sai_mclk_round_rate(struct clk_hw *hw, unsigned long rate,
rate              381 sound/soc/stm/stm32_sai_sub.c 	div = stm32_sai_get_clk_div(sai, *prate, rate);
rate              398 sound/soc/stm/stm32_sai_sub.c static int stm32_sai_mclk_set_rate(struct clk_hw *hw, unsigned long rate,
rate              405 sound/soc/stm/stm32_sai_sub.c 	div = stm32_sai_get_clk_div(sai, parent_rate, rate);
rate              413 sound/soc/stm/stm32_sai_sub.c 	mclk->freq = rate;
rate              952 sound/soc/stm/stm32_sai_sub.c 	switch (runtime->rate) {
rate              993 sound/soc/stm/stm32_sai_sub.c 	unsigned int rate = params_rate(params);
rate              997 sound/soc/stm/stm32_sai_sub.c 		ret = stm32_sai_set_parent_clock(sai, rate);
rate             1032 sound/soc/stm/stm32_sai_sub.c 						    rate * 128);
rate             1037 sound/soc/stm/stm32_sai_sub.c 				mclk_ratio = sai->mclk_rate / rate;
rate             1080 sound/soc/stm/stm32_sai_sub.c 		substream->runtime->rate = params_rate(params);
rate              377 sound/soc/sunxi/sun4i-codec.c 	if (substream->runtime->rate > 32000)
rate              407 sound/soc/sunxi/sun4i-codec.c 	unsigned int rate = params_rate(params);
rate              409 sound/soc/sunxi/sun4i-codec.c 	switch (rate) {
rate              437 sound/soc/sunxi/sun4i-codec.c 	unsigned int rate = params_rate(params);
rate              439 sound/soc/sunxi/sun4i-codec.c 	switch (rate) {
rate              290 sound/soc/sunxi/sun4i-i2s.c 				  unsigned int rate,
rate              299 sound/soc/sunxi/sun4i-i2s.c 	switch (rate) {
rate              322 sound/soc/sunxi/sun4i-i2s.c 		dev_err(dai->dev, "Unsupported sample rate: %u\n", rate);
rate              330 sound/soc/sunxi/sun4i-i2s.c 	oversample_rate = i2s->mclk_freq / rate;
rate              339 sound/soc/sunxi/sun4i-i2s.c 					  rate, slots, slot_width);
rate              263 sound/soc/sunxi/sun4i-spdif.c 	unsigned long rate = params_rate(params);
rate              297 sound/soc/sunxi/sun4i-spdif.c 	switch (rate) {
rate              325 sound/soc/sunxi/sun4i-spdif.c 	switch (rate) {
rate              146 sound/soc/sunxi/sun8i-codec.c 	unsigned int rate = params_rate(params);
rate              148 sound/soc/sunxi/sun8i-codec.c 	switch (rate) {
rate              274 sound/soc/sunxi/sun8i-codec.c 				   unsigned int rate,
rate              278 sound/soc/sunxi/sun8i-codec.c 	unsigned int div = clk_rate / rate / word_size / 2;
rate             1007 sound/soc/ti/davinci-mcasp.c 			      unsigned int rate)
rate             1037 sound/soc/ti/davinci-mcasp.c 	switch (rate) {
rate             1066 sound/soc/ti/davinci-mcasp.c 		printk(KERN_WARNING "unsupported sampling rate: %d\n", rate);
rate             1213 sound/soc/ti/davinci-mcasp.c 		int rate = params_rate(params);
rate             1220 sound/soc/ti/davinci-mcasp.c 					   rate * sbits * slots, true);
rate             1380 sound/soc/ti/davinci-mcasp.c 	int rate = params_rate(params);
rate             1393 sound/soc/ti/davinci-mcasp.c 				sysclk_freq =  rate *
rate             1402 sound/soc/ti/davinci-mcasp.c 							 sbits * slots * rate,
rate             1412 sound/soc/ti/davinci-mcasp.c 		count, rate, slots);
rate              330 sound/soc/uniphier/aio-core.c static int aio_port_set_rate(struct uniphier_aio_sub *sub, int rate)
rate              337 sound/soc/uniphier/aio-core.c 		switch (rate) {
rate              378 sound/soc/uniphier/aio-core.c 			dev_err(dev, "Rate not supported(%d)\n", rate);
rate              385 sound/soc/uniphier/aio-core.c 		switch (rate) {
rate              426 sound/soc/uniphier/aio-core.c 			dev_err(dev, "Rate not supported(%d)\n", rate);
rate              617 sound/soc/uniphier/aio-core.c 	unsigned int rate;
rate              624 sound/soc/uniphier/aio-core.c 			rate = 48000;
rate              626 sound/soc/uniphier/aio-core.c 			rate = params_rate(params);
rate              633 sound/soc/uniphier/aio-core.c 		ret = aio_port_set_rate(sub, rate);
rate               63 sound/soc/ux500/ux500_msp_dai.c static int setup_frameper(struct snd_soc_dai *dai, unsigned int rate,
rate               70 sound/soc/ux500/ux500_msp_dai.c 		switch (rate) {
rate               94 sound/soc/ux500/ux500_msp_dai.c 				__func__, rate);
rate              127 sound/soc/ux500/ux500_msp_dai.c static int setup_pcm_framing(struct snd_soc_dai *dai, unsigned int rate,
rate              169 sound/soc/ux500/ux500_msp_dai.c 	return setup_frameper(dai, rate, prot_desc);
rate              321 sound/soc/ux500/ux500_msp_dai.c 	msp_config->frame_freq = runtime->rate;
rate              329 sound/soc/ux500/ux500_msp_dai.c 		runtime->rate, runtime->channels);
rate              368 sound/soc/ux500/ux500_msp_dai.c 		ret = setup_pcm_framing(dai, runtime->rate, prot_desc);
rate              468 sound/soc/ux500/ux500_msp_dai.c 		dai->id, snd_pcm_stream_str(substream), runtime->rate);
rate               93 sound/soc/zte/zx-spdif.c static int zx_spdif_chanstats(void __iomem *base, unsigned int rate)
rate               97 sound/soc/zte/zx-spdif.c 	switch (rate) {
rate              143 sound/soc/zte/zx-spdif.c 	u32 val, ch_num, rate;
rate              186 sound/soc/zte/zx-spdif.c 	rate = params_rate(params);
rate              187 sound/soc/zte/zx-spdif.c 	ret = zx_spdif_chanstats(zx_spdif->reg_base, rate);
rate              190 sound/soc/zte/zx-spdif.c 	return clk_set_rate(spdif->dai_clk, rate * ch_num * ZX_SPDIF_CLK_RAT);
rate              523 sound/sparc/cs4231.c static unsigned char snd_cs4231_get_rate(unsigned int rate)
rate              528 sound/sparc/cs4231.c 		if (rate == rates[i])
rate             1586 sound/sparc/dbri.c static int cs4215_prepare(struct snd_dbri *dbri, unsigned int rate,
rate             1594 sound/sparc/dbri.c 		if (CS4215_FREQ[freq_idx].freq == rate)
rate             1597 sound/sparc/dbri.c 	if (CS4215_FREQ[freq_idx].freq != rate) {
rate             1598 sound/sparc/dbri.c 		printk(KERN_WARNING "DBRI: Unsupported rate %d Hz\n", rate);
rate              841 sound/synth/emux/soundfont.c calc_gus_envelope_time(int rate, int start, int end)
rate              844 sound/synth/emux/soundfont.c 	r = (3 - ((rate >> 6) & 3)) * 3;
rate              845 sound/synth/emux/soundfont.c 	p = rate & 0x3f;
rate             1083 sound/synth/emux/soundfont.c 		int rate = (patch.tremolo_rate * 1000 / 38) / 42;
rate             1084 sound/synth/emux/soundfont.c 		zone->v.parm.tremfrq = ((patch.tremolo_depth / 2) << 8) | rate;
rate             1088 sound/synth/emux/soundfont.c 		int rate = (patch.vibrato_rate * 1000 / 38) / 42;
rate             1089 sound/synth/emux/soundfont.c 		zone->v.parm.fm2frq2 = ((patch.vibrato_depth / 6) << 8) | rate;
rate              114 sound/usb/6fire/control.c static int usb6fire_control_set_rate(struct control_runtime *rt, int rate)
rate              120 sound/usb/6fire/control.c 	if (rate < 0 || rate >= CONTROL_N_RATES)
rate              123 sound/usb/6fire/control.c 	ret = usb_set_interface(device, 1, rates_altsetting[rate]);
rate              128 sound/usb/6fire/control.c 	ret = comm_rt->write16(comm_rt, 0x02, 0x01, rates_6fire_vl[rate],
rate              129 sound/usb/6fire/control.c 			rates_6fire_vh[rate]);
rate               31 sound/usb/6fire/control.h 	int (*set_rate)(struct control_runtime *rt, int rate);
rate               80 sound/usb/6fire/pcm.c 			rates[rt->rate]);
rate               84 sound/usb/6fire/pcm.c 	ret = ctrl_rt->set_rate(ctrl_rt, rt->rate);
rate               88 sound/usb/6fire/pcm.c 			rates[rt->rate]);
rate               97 sound/usb/6fire/pcm.c 			rates[rt->rate]);
rate              106 sound/usb/6fire/pcm.c 			rates[rt->rate]);
rate              112 sound/usb/6fire/pcm.c 	rt->in_packet_size = rates_in_packet_size[rt->rate];
rate              113 sound/usb/6fire/pcm.c 	rt->out_packet_size = rates_out_packet_size[rt->rate];
rate              399 sound/usb/6fire/pcm.c 		if (rt->rate < ARRAY_SIZE(rates))
rate              400 sound/usb/6fire/pcm.c 			alsa_rt->hw.rates = rates_alsaid[rt->rate];
rate              404 sound/usb/6fire/pcm.c 		if (rt->rate < ARRAY_SIZE(rates))
rate              405 sound/usb/6fire/pcm.c 			alsa_rt->hw.rates = rates_alsaid[rt->rate];
rate              442 sound/usb/6fire/pcm.c 			rt->rate = ARRAY_SIZE(rates);
rate              478 sound/usb/6fire/pcm.c 		for (rt->rate = 0; rt->rate < ARRAY_SIZE(rates); rt->rate++)
rate              479 sound/usb/6fire/pcm.c 			if (alsa_rt->rate == rates[rt->rate])
rate              481 sound/usb/6fire/pcm.c 		if (rt->rate == ARRAY_SIZE(rates)) {
rate              485 sound/usb/6fire/pcm.c 				alsa_rt->rate);
rate              633 sound/usb/6fire/pcm.c 	rt->rate = ARRAY_SIZE(rates);
rate               63 sound/usb/6fire/pcm.h 	u8 rate; /* one of PCM_RATE_XXX */
rate              244 sound/usb/caiaq/audio.c 		if (runtime->rate == rates[i])
rate              253 sound/usb/caiaq/audio.c 	bpp = ((runtime->rate / 8000) + CLOCK_DRIFT_TOLERANCE)
rate              259 sound/usb/caiaq/audio.c 	ret = snd_usb_caiaq_set_audio_params(cdev, runtime->rate,
rate              252 sound/usb/caiaq/device.c 		   		    int rate, int depth, int bpp)
rate              258 sound/usb/caiaq/device.c 	switch (rate) {
rate              278 sound/usb/caiaq/device.c 		rate, depth, bpp);
rate              126 sound/usb/caiaq/device.h int snd_usb_caiaq_set_audio_params (struct snd_usb_caiaqdev *cdev, int rate, int depth, int bbp);
rate              449 sound/usb/clock.c 			      struct audioformat *fmt, int rate)
rate              464 sound/usb/clock.c 	data[0] = rate;
rate              465 sound/usb/clock.c 	data[1] = rate >> 8;
rate              466 sound/usb/clock.c 	data[2] = rate >> 16;
rate              473 sound/usb/clock.c 			iface, fmt->altsetting, rate, ep);
rate              497 sound/usb/clock.c 	if (crate != rate) {
rate              498 sound/usb/clock.c 		dev_warn(&dev->dev, "current rate %d is different from the runtime rate %d\n", crate, rate);
rate              528 sound/usb/clock.c 			      struct audioformat *fmt, int rate)
rate              555 sound/usb/clock.c 	if (prev_rate == rate)
rate              573 sound/usb/clock.c 		data = cpu_to_le32(rate);
rate              582 sound/usb/clock.c 				iface, fmt->altsetting, rate, err);
rate              592 sound/usb/clock.c 	if (cur_rate != rate) {
rate              596 sound/usb/clock.c 				 iface, fmt->altsetting, rate, cur_rate);
rate              601 sound/usb/clock.c 			cur_rate, rate);
rate              606 sound/usb/clock.c 	if (rate != prev_rate) {
rate              622 sound/usb/clock.c 			     struct audioformat *fmt, int rate)
rate              627 sound/usb/clock.c 		return set_sample_rate_v1(chip, iface, alts, fmt, rate);
rate              631 sound/usb/clock.c 			if (rate != UAC3_BADD_SAMPLING_RATE)
rate              638 sound/usb/clock.c 		return set_sample_rate_v2v3(chip, iface, alts, fmt, rate);
rate                7 sound/usb/clock.h 			     struct audioformat *fmt, int rate);
rate               57 sound/usb/endpoint.c static inline unsigned get_usb_full_speed_rate(unsigned int rate)
rate               59 sound/usb/endpoint.c 	return ((rate << 13) + 62) / 125;
rate               66 sound/usb/endpoint.c static inline unsigned get_usb_high_speed_rate(unsigned int rate)
rate               68 sound/usb/endpoint.c 	return ((rate << 10) + 62) / 125;
rate              857 sound/usb/endpoint.c 				unsigned int rate,
rate              878 sound/usb/endpoint.c 		ep->freqn = get_usb_full_speed_rate(rate);
rate              880 sound/usb/endpoint.c 		ep->freqn = get_usb_high_speed_rate(rate);
rate               18 sound/usb/endpoint.h 				unsigned int rate,
rate              191 sound/usb/format.c 			unsigned int rate = combine_triple(&fmt[idx]);
rate              192 sound/usb/format.c 			if (!rate)
rate              196 sound/usb/format.c 			if (rate == 48000 && nr_rates == 1 &&
rate              201 sound/usb/format.c 				rate = 96000;
rate              203 sound/usb/format.c 			if (rate == 16000 &&
rate              206 sound/usb/format.c 				rate = 8000;
rate              208 sound/usb/format.c 			fp->rate_table[fp->nr_rates] = rate;
rate              209 sound/usb/format.c 			if (!fp->rate_min || rate < fp->rate_min)
rate              210 sound/usb/format.c 				fp->rate_min = rate;
rate              211 sound/usb/format.c 			if (!fp->rate_max || rate > fp->rate_max)
rate              212 sound/usb/format.c 				fp->rate_max = rate;
rate              213 sound/usb/format.c 			fp->rates |= snd_pcm_rate_to_rate_bit(rate);
rate              236 sound/usb/format.c 					unsigned int rate)
rate              269 sound/usb/format.c 		return rate <= max_rate;
rate              293 sound/usb/format.c 		unsigned int rate;
rate              310 sound/usb/format.c 		for (rate = min; rate <= max; rate += res) {
rate              313 sound/usb/format.c 			    !focusrite_valid_sample_rate(chip, fp, rate))
rate              317 sound/usb/format.c 				fp->rate_table[nr_rates] = rate;
rate              318 sound/usb/format.c 			if (!fp->rate_min || rate < fp->rate_min)
rate              319 sound/usb/format.c 				fp->rate_min = rate;
rate              320 sound/usb/format.c 			if (!fp->rate_max || rate > fp->rate_max)
rate              321 sound/usb/format.c 				fp->rate_max = rate;
rate              322 sound/usb/format.c 			fp->rates |= snd_pcm_rate_to_rate_bit(rate);
rate              112 sound/usb/hiface/pcm.c static int hiface_pcm_set_rate(struct pcm_runtime *rt, unsigned int rate)
rate              121 sound/usb/hiface/pcm.c 	switch (rate) {
rate              147 sound/usb/hiface/pcm.c 		dev_err(&device->dev, "Unsupported rate %d\n", rate);
rate              164 sound/usb/hiface/pcm.c 		dev_err(&device->dev, "Error setting samplerate %d.\n", rate);
rate              451 sound/usb/hiface/pcm.c 		ret = hiface_pcm_set_rate(rt, alsa_rt->rate);
rate               87 sound/usb/misc/ua101.c 	unsigned int rate;
rate              629 sound/usb/misc/ua101.c 	substream->runtime->hw.rates = snd_pcm_rate_to_rate_bit(ua->rate);
rate              630 sound/usb/misc/ua101.c 	substream->runtime->hw.rate_min = ua->rate;
rate              631 sound/usb/misc/ua101.c 	substream->runtime->hw.rate_max = ua->rate;
rate              659 sound/usb/misc/ua101.c 		DIV_ROUND_CLOSEST(ua->rate, ua->packets_per_second);
rate              680 sound/usb/misc/ua101.c 		DIV_ROUND_CLOSEST(ua->rate * ua->playback.queue_length,
rate              994 sound/usb/misc/ua101.c 	ua->rate = combine_triple(fmt_capture->tSamFreq[0]);
rate              996 sound/usb/misc/ua101.c 	if (ua->rate != rate2) {
rate              999 sound/usb/misc/ua101.c 			rate2, ua->rate);
rate             1275 sound/usb/misc/ua101.c 		 ua->dev->serial ? ua->dev->serial : "?", ua->rate, usb_path,
rate             1499 sound/usb/mixer_quirks.c 	int rate;
rate             1533 sound/usb/mixer_quirks.c 	rate = data[0] | (data[1] << 8) | (data[2] << 16);
rate             1534 sound/usb/mixer_quirks.c 	ucontrol->value.iec958.status[3] = (rate == 48000) ?
rate             1908 sound/usb/mixer_quirks.c 	u32 rate = 0;
rate             1919 sound/usb/mixer_quirks.c 			rate = snd_rme_rate_table[idx];
rate             1924 sound/usb/mixer_quirks.c 			rate = snd_rme_rate_table[idx];
rate             1929 sound/usb/mixer_quirks.c 			rate = snd_rme_rate_table[idx];
rate             1934 sound/usb/mixer_quirks.c 	ucontrol->value.integer.value[0] = rate;
rate              841 sound/usb/mixer_scarlett_gen2.c 	int rate, port_dir_rate;
rate              861 sound/usb/mixer_scarlett_gen2.c 	for (rate = 0, port_dir_rate = SCARLETT2_PORT_OUT_44;
rate              863 sound/usb/mixer_scarlett_gen2.c 	     rate++, port_dir_rate++) {
rate              866 sound/usb/mixer_scarlett_gen2.c 		req.num = cpu_to_le16(rate);
rate               33 sound/usb/pcm.c 				    unsigned int rate)
rate               52 sound/usb/pcm.c 	est_delay =  frame_diff * rate / 1000;
rate               76 sound/usb/pcm.c 						substream->runtime->rate);
rate              589 sound/usb/pcm.c 				       struct audioformat *match, int rate,
rate              609 sound/usb/pcm.c 		if (fp->rate_table[i] == rate) {
rate              617 sound/usb/pcm.c 			fp, rate);
rate             1691 sound/usb/pcm.c 	est_delay = snd_usb_pcm_delay(subs, runtime->rate);
rate             1704 sound/usb/pcm.c 	if (abs(est_delay - subs->last_delay) * 1000 > runtime->rate * 2)
rate                6 sound/usb/pcm.h 				    unsigned int rate);
rate              299 sound/usb/usx2y/us122l.c static int us122l_set_sample_rate(struct usb_device *dev, int rate)
rate              305 sound/usb/usx2y/us122l.c 	data[0] = rate;
rate              306 sound/usb/usx2y/us122l.c 	data[1] = rate >> 8;
rate              307 sound/usb/usx2y/us122l.c 	data[2] = rate >> 16;
rate              313 sound/usb/usx2y/us122l.c 			   dev->devnum, rate, ep);
rate              318 sound/usb/usx2y/us122l.c 			 unsigned rate, unsigned period_frames)
rate              330 sound/usb/usx2y/us122l.c 		switch (rate) {
rate              343 sound/usb/usx2y/us122l.c 			    rate, use_packsize, period_frames, 6))
rate              346 sound/usb/usx2y/us122l.c 	err = us122l_set_sample_rate(us122l->dev, rate);
rate              115 sound/usb/usx2y/usb_stream.c static inline unsigned get_usb_full_speed_rate(unsigned rate)
rate              117 sound/usb/usx2y/usb_stream.c 	return ((rate << 13) + 62) / 125;
rate              124 sound/usb/usx2y/usb_stream.c static inline unsigned get_usb_high_speed_rate(unsigned rate)
rate              126 sound/usb/usx2y/usb_stream.c 	return ((rate << 10) + 62) / 125;
rate               37 sound/usb/usx2y/usbusx2y.h 	unsigned int		rate,
rate              640 sound/usb/usx2y/usbusx2yaudio.c static int usX2Y_rate_set(struct usX2Ydev *usX2Y, int rate)
rate              645 sound/usb/usx2y/usbusx2yaudio.c 	struct s_c2		*ra = rate == 48000 ? SetRate48000 : SetRate44100;
rate              647 sound/usb/usx2y/usbusx2yaudio.c 	if (usX2Y->rate != rate) {
rate              697 sound/usb/usx2y/usbusx2yaudio.c 				usX2Y->rate = rate;
rate              730 sound/usb/usx2y/usbusx2yaudio.c 	usX2Y->rate = 0;
rate              739 sound/usb/usx2y/usbusx2yaudio.c 	unsigned int		rate = params_rate(hw_params);
rate              762 sound/usb/usx2y/usbusx2yaudio.c 		    (test_substream->runtime->rate &&
rate              763 sound/usb/usx2y/usbusx2yaudio.c 		     test_substream->runtime->rate != rate)) {
rate              835 sound/usb/usx2y/usbusx2yaudio.c 		if (usX2Y->rate != runtime->rate)
rate              836 sound/usb/usx2y/usbusx2yaudio.c 			if ((err = usX2Y_rate_set(usX2Y, runtime->rate)) < 0)
rate               85 sound/usb/usx2y/usx2yhwdeppcm.c 	return (runtime->buffer_size * 1000) / usX2Y->rate + 1;	//FIXME: so far only correct period_size == 2^x ?
rate              494 sound/usb/usx2y/usx2yhwdeppcm.c 		if (usX2Y->rate != runtime->rate)
rate              495 sound/usb/usx2y/usx2yhwdeppcm.c 			if ((err = usX2Y_rate_set(usX2Y, runtime->rate)) < 0)
rate              292 sound/x86/intel_hdmi_audio.c 	switch (substream->runtime->rate) {
rate             1213 sound/x86/intel_hdmi_audio.c 	dev_dbg(intelhaddata->dev, "rate=%d\n", runtime->rate);
rate             1221 sound/x86/intel_hdmi_audio.c 	retval = had_prog_n(substream->runtime->rate, &n_param, intelhaddata);
rate             1231 sound/x86/intel_hdmi_audio.c 	had_prog_cts(substream->runtime->rate, disp_samp_freq, link_rate,
rate             1319 sound/x86/intel_hdmi_audio.c 	retval = had_prog_n(substream->runtime->rate, &n_param, intelhaddata);
rate             1329 sound/x86/intel_hdmi_audio.c 	had_prog_cts(substream->runtime->rate, disp_samp_freq, link_rate,
rate               87 sound/xen/xen_snd_front.c 				 unsigned int rate, u32 buffer_sz,
rate               99 sound/xen/xen_snd_front.c 	req->op.open.pcm_rate = rate;
rate               40 sound/xen/xen_snd_front.h 				 unsigned int rate, u32 buffer_sz,
rate              534 sound/xen/xen_snd_front_alsa.c 						   runtime->rate,
rate              737 tools/include/uapi/linux/if_link.h 	__u32 rate; /* Max TX bandwidth in Mbps, 0 disables throttling */
rate               88 tools/include/uapi/linux/pkt_cls.h 	struct tc_ratespec	rate;
rate               96 tools/include/uapi/linux/pkt_sched.h 	__u32		rate;
rate              183 tools/include/uapi/linux/pkt_sched.h 	struct tc_ratespec rate;
rate              390 tools/include/uapi/linux/pkt_sched.h 	struct tc_ratespec 	rate;
rate              616 tools/include/uapi/linux/pkt_sched.h 	__u32	rate;	/* byte/s */
rate              193 tools/perf/util/record.c static int get_max_rate(unsigned int *rate)
rate              195 tools/perf/util/record.c 	return sysctl__read_int("kernel/perf_event_max_sample_rate", (int *)rate);
rate               36 tools/testing/selftests/bpf/progs/test_spin_lock.c 	unsigned int rate;
rate               46 tools/testing/selftests/bpf/progs/test_spin_lock.c #define CREDIT_PER_NS(delta, rate) (((delta) * rate) >> 20)
rate               84 tools/testing/selftests/bpf/progs/test_spin_lock.c 	q->credit += CREDIT_PER_NS(curtime - q->lasttime, q->rate);
rate              322 tools/testing/selftests/bpf/test_sockmap.c 	int rate;
rate              610 tools/testing/selftests/bpf/test_sockmap.c 	int cnt = opt->rate;
rate              710 tools/testing/selftests/bpf/test_sockmap.c static int forever_ping_pong(int rate, struct sockmap_options *opt)
rate              772 tools/testing/selftests/bpf/test_sockmap.c 		if (rate)
rate              773 tools/testing/selftests/bpf/test_sockmap.c 			sleep(rate);
rate             1050 tools/testing/selftests/bpf/test_sockmap.c 		err = forever_ping_pong(options->rate, options);
rate             1173 tools/testing/selftests/bpf/test_sockmap.c 		test_cnt, opt->rate, opt->iov_count, opt->iov_length,
rate             1209 tools/testing/selftests/bpf/test_sockmap.c 	opt.rate = 0;
rate             1214 tools/testing/selftests/bpf/test_sockmap.c 			opt.rate = r;
rate             1273 tools/testing/selftests/bpf/test_sockmap.c 	opt->rate = 1;
rate             1280 tools/testing/selftests/bpf/test_sockmap.c 	opt->rate = 1;
rate             1287 tools/testing/selftests/bpf/test_sockmap.c 	opt->rate = 1;
rate             1294 tools/testing/selftests/bpf/test_sockmap.c 	opt->rate = 512;
rate             1301 tools/testing/selftests/bpf/test_sockmap.c 	opt->rate = 2;
rate             1306 tools/testing/selftests/bpf/test_sockmap.c 	opt->rate = 100;
rate             1464 tools/testing/selftests/bpf/test_sockmap.c 	opt.rate = 16;
rate             1736 tools/testing/selftests/bpf/test_sockmap.c 	int iov_count = 1, length = 1024, rate = 1;
rate             1782 tools/testing/selftests/bpf/test_sockmap.c 			rate = atoi(optarg);
rate             1843 tools/testing/selftests/bpf/test_sockmap.c 	options.rate = rate;