Lines Matching defs:divisor
281 static int calc_baud_rate_divisor(struct device *dev, int baud_rate, int *divisor);
2190 int divisor;
2203 status = calc_baud_rate_divisor(dev, baudRate, &divisor);
2216 /* Enable access to divisor latch */
2219 /* Write the divisor itself */
2220 MAKE_CMD_WRITE_REG(&currCmd, &cmdLen, number, DLL, LOW8(divisor));
2221 MAKE_CMD_WRITE_REG(&currCmd, &cmdLen, number, DLM, HIGH8(divisor));
2223 /* Restore original value to disable access to divisor latch */
2239 * this function calculates the proper baud rate divisor for the specified
2242 static int calc_baud_rate_divisor(struct device *dev, int baudrate, int *divisor)
2249 *divisor = divisor_table[i].Divisor;
2255 * lets try to calculate the divisor for this baud rate
2258 /* get divisor */
2261 *divisor = custom;
2476 /* Determine divisor based on baud rate */