Lines Matching refs:fan_id
271 u8 fan_id; in npcm7xx_fan_start_capture() local
276 fan_id = NPCM7XX_FAN_INPUT(fan, cmp); in npcm7xx_fan_start_capture()
279 if (data->fan_dev[fan_id].fan_st_flg != FAN_DISABLE) { in npcm7xx_fan_start_capture()
283 data->fan_dev[fan_id].fan_st_flg = FAN_INIT; in npcm7xx_fan_start_capture()
368 u8 fan, u8 cmp, u8 fan_id, u8 flag_int, in npcm7xx_fan_compute() argument
383 if (data->fan_dev[fan_id].fan_st_flg == FAN_INIT) { in npcm7xx_fan_compute()
385 data->fan_dev[fan_id].fan_st_flg = in npcm7xx_fan_compute()
389 data->fan_dev[fan_id].fan_cnt_tmp = 0; in npcm7xx_fan_compute()
390 } else if (data->fan_dev[fan_id].fan_st_flg < FAN_ENOUGH_SAMPLE) { in npcm7xx_fan_compute()
395 data->fan_dev[fan_id].fan_cnt_tmp += in npcm7xx_fan_compute()
398 data->fan_dev[fan_id].fan_st_flg++; in npcm7xx_fan_compute()
401 if (data->fan_dev[fan_id].fan_st_flg == FAN_ENOUGH_SAMPLE) { in npcm7xx_fan_compute()
402 data->fan_dev[fan_id].fan_cnt_tmp += in npcm7xx_fan_compute()
406 data->fan_dev[fan_id].fan_cnt = in npcm7xx_fan_compute()
407 data->fan_dev[fan_id].fan_cnt_tmp / in npcm7xx_fan_compute()
410 data->fan_dev[fan_id].fan_st_flg = FAN_INIT; in npcm7xx_fan_compute()
436 u8 fan_id; in npcm7xx_check_cmp() local
438 fan_id = NPCM7XX_FAN_INPUT(fan, cmp); in npcm7xx_check_cmp()
476 data->fan_dev[fan_id].fan_cnt = 0; in npcm7xx_check_cmp()
480 npcm7xx_fan_compute(data, fan, cmp, fan_id, flag_int, in npcm7xx_check_cmp()