Lines Matching refs:bps
474 zs_cn_check_speed(int bps)
478 tc = BPS_TO_TCONST(PCLK / 16, bps);
482 if (ZS_TOLERANCE > abs(((rate - bps)*1000)/bps))
501 zs_set_speed(struct zs_chanstate *cs, int bps)
507 if (bps == 0)
525 tc1 = BPS_TO_TCONST(xcs->cs_clocks[i].clk >> 4, bps);
528 err = abs(((rate1 - bps)*1000)/bps);
544 int b0 = xcs->cs_clocks[i].clk, e0 = abs(b0-bps);
545 int b1 = b0 >> 4, e1 = abs(b1-bps);
546 int b2 = b1 >> 1, e2 = abs(b2-bps);
547 int b3 = b2 >> 1, e3 = abs(b3-bps);
567 err = (err * 1000)/bps;
578 printf("Checking for rate %d. Found source #%d.\n", bps, src);
601 bps = rate0;
628 bps, tc, src, sf);