Lines Matching refs:fan_div
200 u8 fan_div[2]; /* Register encoding, shifted right */ member
377 DIV_FROM_REG(data->fan_div[nr]))); in show_fan()
387 DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min()
404 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
416 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div()
442 DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
447 data->fan_div[nr] = 0; in set_fan_div()
450 data->fan_div[nr] = 1; in set_fan_div()
453 data->fan_div[nr] = 2; in set_fan_div()
456 data->fan_div[nr] = 3; in set_fan_div()
468 reg = (reg & 0xcf) | (data->fan_div[nr] << 4); in set_fan_div()
471 reg = (reg & 0x3f) | (data->fan_div[nr] << 6); in set_fan_div()
476 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
741 data->fan_div[0] = (i >> 4) & 0x03; in sis5595_update_device()
742 data->fan_div[1] = i >> 6; in sis5595_update_device()