Lines Matching full:sensors

230 	struct occ_sensors *sensors = &occ->sensors;  in occ_show_temp_1()  local
237 temp = ((struct temp_sensor_1 *)sensors->temp.data) + sattr->index; in occ_show_temp_1()
266 struct occ_sensors *sensors = &occ->sensors; in occ_show_temp_2() local
273 temp = ((struct temp_sensor_2 *)sensors->temp.data) + sattr->index; in occ_show_temp_2()
317 struct occ_sensors *sensors = &occ->sensors; in occ_show_freq_1() local
324 freq = ((struct freq_sensor_1 *)sensors->freq.data) + sattr->index; in occ_show_freq_1()
347 struct occ_sensors *sensors = &occ->sensors; in occ_show_freq_2() local
354 freq = ((struct freq_sensor_2 *)sensors->freq.data) + sattr->index; in occ_show_freq_2()
377 struct occ_sensors *sensors = &occ->sensors; in occ_show_power_1() local
384 power = ((struct power_sensor_1 *)sensors->power.data) + sattr->index; in occ_show_power_1()
424 struct occ_sensors *sensors = &occ->sensors; in occ_show_power_2() local
431 power = ((struct power_sensor_2 *)sensors->power.data) + sattr->index; in occ_show_power_2()
463 struct occ_sensors *sensors = &occ->sensors; in occ_show_power_a0() local
470 power = ((struct power_sensor_a0 *)sensors->power.data) + sattr->index; in occ_show_power_a0()
543 struct occ_sensors *sensors = &occ->sensors; in occ_show_caps_1_2() local
550 caps = ((struct caps_sensor_2 *)sensors->caps.data) + sattr->index; in occ_show_caps_1_2()
574 if (occ->sensors.caps.version == 1) in occ_show_caps_1_2()
593 struct occ_sensors *sensors = &occ->sensors; in occ_show_caps_3() local
600 caps = ((struct caps_sensor_3 *)sensors->caps.data) + sattr->index; in occ_show_caps_3()
661 struct occ_sensors *sensors = &occ->sensors; in occ_show_extended() local
668 extn = ((struct extended_sensor *)sensors->extended.data) + in occ_show_extended()
728 struct occ_sensors *sensors = &occ->sensors; in occ_setup_sensor_attrs() local
740 switch (sensors->temp.version) { in occ_setup_sensor_attrs()
742 num_attrs += (sensors->temp.num_sensors * 2); in occ_setup_sensor_attrs()
745 num_attrs += (sensors->temp.num_sensors * 4); in occ_setup_sensor_attrs()
749 sensors->temp.num_sensors = 0; in occ_setup_sensor_attrs()
752 switch (sensors->freq.version) { in occ_setup_sensor_attrs()
757 num_attrs += (sensors->freq.num_sensors * 2); in occ_setup_sensor_attrs()
760 sensors->freq.num_sensors = 0; in occ_setup_sensor_attrs()
763 switch (sensors->power.version) { in occ_setup_sensor_attrs()
768 num_attrs += (sensors->power.num_sensors * 4); in occ_setup_sensor_attrs()
771 num_attrs += (sensors->power.num_sensors * 16); in occ_setup_sensor_attrs()
775 sensors->power.num_sensors = 0; in occ_setup_sensor_attrs()
778 switch (sensors->caps.version) { in occ_setup_sensor_attrs()
780 num_attrs += (sensors->caps.num_sensors * 7); in occ_setup_sensor_attrs()
786 num_attrs += (sensors->caps.num_sensors * 8); in occ_setup_sensor_attrs()
789 sensors->caps.num_sensors = 0; in occ_setup_sensor_attrs()
792 switch (sensors->extended.version) { in occ_setup_sensor_attrs()
794 num_attrs += (sensors->extended.num_sensors * 3); in occ_setup_sensor_attrs()
797 sensors->extended.num_sensors = 0; in occ_setup_sensor_attrs()
813 for (i = 0; i < sensors->temp.num_sensors; ++i) { in occ_setup_sensor_attrs()
815 temp = ((struct temp_sensor_2 *)sensors->temp.data) + i; in occ_setup_sensor_attrs()
822 if (sensors->temp.version > 1 && in occ_setup_sensor_attrs()
835 if (sensors->temp.version > 1) { in occ_setup_sensor_attrs()
850 for (i = 0; i < sensors->freq.num_sensors; ++i) { in occ_setup_sensor_attrs()
864 if (sensors->power.version == 0xA0) { in occ_setup_sensor_attrs()
867 * a sensor number per power type, emulating several sensors. in occ_setup_sensor_attrs()
869 for (i = 0; i < sensors->power.num_sensors; ++i) { in occ_setup_sensor_attrs()
908 s = (sensors->power.num_sensors * 4) + 1; in occ_setup_sensor_attrs()
910 for (i = 0; i < sensors->power.num_sensors; ++i) { in occ_setup_sensor_attrs()
938 s = sensors->power.num_sensors + 1; in occ_setup_sensor_attrs()
941 if (sensors->caps.num_sensors >= 1) { in occ_setup_sensor_attrs()
979 if (sensors->caps.version > 1) { in occ_setup_sensor_attrs()
988 for (i = 0; i < sensors->extended.num_sensors; ++i) { in occ_setup_sensor_attrs()
1007 /* put the sensors in the group */ in occ_setup_sensor_attrs()
1016 /* only need to do this once at startup, as OCC won't change sensors on us */
1021 struct occ_sensors *sensors = &occ->sensors; in occ_parse_poll_response() local
1044 dev_dbg(occ->bus_dev, " %04x..%04x: %.4s (%d sensors)\n", in occ_parse_poll_response()
1050 sensor = &sensors->temp; in occ_parse_poll_response()
1052 sensor = &sensors->freq; in occ_parse_poll_response()
1054 sensor = &sensors->power; in occ_parse_poll_response()
1056 sensor = &sensors->caps; in occ_parse_poll_response()
1058 sensor = &sensors->extended; in occ_parse_poll_response()