Lines Matching refs:fan_cnt
177 u16 fan_cnt; member
402 data->fan_dev[fan_id].fan_cnt = in npcm7xx_fan_compute()
472 data->fan_dev[fan_id].fan_cnt = 0; in npcm7xx_check_cmp()
564 if (data->fan_dev[channel].fan_cnt <= 0) in npcm7xx_read_fan()
565 return data->fan_dev[channel].fan_cnt; in npcm7xx_read_fan()
568 if (data->fan_dev[channel].fan_cnt > 0 && in npcm7xx_read_fan()
571 (data->fan_dev[channel].fan_cnt * in npcm7xx_read_fan()
767 data->fan_dev[ch].fan_cnt = 0; in npcm7xx_fan_init()
868 int ret, fan_cnt; in npcm7xx_en_pwm_fan() local
887 fan_cnt = of_property_count_u8_elems(child, "fan-tach-ch"); in npcm7xx_en_pwm_fan()
888 if (fan_cnt < 1) in npcm7xx_en_pwm_fan()
891 fan_ch = devm_kcalloc(dev, fan_cnt, sizeof(*fan_ch), GFP_KERNEL); in npcm7xx_en_pwm_fan()
895 ret = of_property_read_u8_array(child, "fan-tach-ch", fan_ch, fan_cnt); in npcm7xx_en_pwm_fan()
899 for (ch = 0; ch < fan_cnt; ch++) { in npcm7xx_en_pwm_fan()