Lines Matching refs:DIV_TO_REG
209 #define DIV_TO_REG(val) ((val) >= 8 ? 3 : (val) >= 4 ? 2 : (val) >= 2 ? 1 : 0)
918 new_div = DIV_TO_REG(val);
926 (DIV_TO_REG(data->fan_div[0]) << 0) |
927 (DIV_TO_REG(data->fan_div[1]) << 2) |
928 (DIV_TO_REG(data->fan_div[2]) << 4) |
929 (DIV_TO_REG(data->fan_div[3]) << 6));
932 (DIV_TO_REG(data->fan_div[4]) << 0) |
933 (DIV_TO_REG(data->fan_div[5]) << 2) |
934 (DIV_TO_REG(data->fan_div[6]) << 4) |
935 (DIV_TO_REG(data->fan_div[7]) << 6));