Lines Matching defs:the_fan
216 int the_fan;
466 the_fan = strtoi(argv[2], NULL, 0, 1, emcfan_chip_infos[iindex].num_fans, &error);
471 the_fan--;
490 start_reg = emcfan_chip_infos[iindex].fan_drive_registers[the_fan];
493 start_reg = emcfan_chip_infos[iindex].fan_divider_registers[the_fan];
500 fprintf(stderr,"fan subcommand minexpected_rpm / edges: the_fan=%d\n",the_fan);
502 the_fan = strtoi(argv[2], NULL, 0, 1, emcfan_chip_infos[iindex].num_tachs, &error);
507 the_fan--;
508 switch(the_fan) {
520 switch(the_fan) {
560 if (the_fan <= 2)
584 error = output_emcfan_fan_status(fd, product_id, product_family, start_reg, end_reg, the_fan, jsonify, debug);
710 error = output_emcfan_polarity(fd, product_id, product_family, start_reg, the_fan, jsonify, debug);
722 tvalue = find_translated_bits_by_str_instance(fan_polarity, __arraycount(fan_polarity), argv[4], the_fan);
751 fprintf(stderr,"%s: the_fan=%d\n",__func__,the_fan);
753 error = output_emcfan_pwm_basefreq(fd, product_id, product_family, start_reg, the_fan, jsonify, debug);
755 if (the_fan <= 2)
756 error = output_emcfan_pwm_basefreq(fd, product_id, product_family, start_reg, the_fan, jsonify, debug);
759 the_fan + 23050, jsonify, debug);
773 tvalue = find_translated_bits_by_hint_instance(fan_pwm_basefreq, __arraycount(fan_pwm_basefreq), value, the_fan);
775 if (the_fan <= 2)
776 tvalue = find_translated_bits_by_hint_instance(fan_pwm_basefreq, __arraycount(fan_pwm_basefreq), value, the_fan);
779 value, the_fan + 23050);
806 error = output_emcfan_pwm_output_type(fd, product_id, product_family, start_reg, the_fan, jsonify, debug);
814 tvalue = find_translated_bits_by_str_instance(fan_pwm_output_type, __arraycount(fan_pwm_output_type), argv[4], the_fan);