Lines Matching defs:rate
129 long rate;
133 * Limit the clock to a maximum rate that still gives us a period value
149 rate = clk_round_rate(clk, tmp);
150 if (rate < 0) {
151 dev_err(chip->dev, "Unable to round rate: %ld", rate);
152 return rate;
156 tmp = (unsigned long long)rate * state->period;
161 tmp = (unsigned long long)rate * state->duty_cycle;
170 err = clk_set_rate(clk, rate);
172 dev_err(chip->dev, "Unable to set rate: %d", err);