Lines Matching defs:divisor
311 static int calc_baud_rate_divisor(struct device *dev, int baud_rate, int *divisor);
2306 int divisor;
2319 status = calc_baud_rate_divisor(dev, baudRate, &divisor);
2332 /* Enable access to divisor latch */
2335 /* Write the divisor itself */
2336 MAKE_CMD_WRITE_REG(&currCmd, &cmdLen, number, DLL, LOW8(divisor));
2337 MAKE_CMD_WRITE_REG(&currCmd, &cmdLen, number, DLM, HIGH8(divisor));
2339 /* Restore original value to disable access to divisor latch */
2355 * this function calculates the proper baud rate divisor for the specified
2358 static int calc_baud_rate_divisor(struct device *dev, int baudrate, int *divisor)
2365 *divisor = divisor_table[i].Divisor;
2371 * lets try to calculate the divisor for this baud rate
2374 /* get divisor */
2377 *divisor = custom;
2592 /* Determine divisor based on baud rate */