Lines Matching full:sensors
236 struct occ_sensors *sensors = &occ->sensors; in occ_show_temp_1() local
243 temp = ((struct temp_sensor_1 *)sensors->temp.data) + sattr->index; in occ_show_temp_1()
272 struct occ_sensors *sensors = &occ->sensors; in occ_show_temp_2() local
279 temp = ((struct temp_sensor_2 *)sensors->temp.data) + sattr->index; in occ_show_temp_2()
323 struct occ_sensors *sensors = &occ->sensors; in occ_show_temp_10() local
330 temp = ((struct temp_sensor_10 *)sensors->temp.data) + sattr->index; in occ_show_temp_10()
370 struct occ_sensors *sensors = &occ->sensors; in occ_show_freq_1() local
377 freq = ((struct freq_sensor_1 *)sensors->freq.data) + sattr->index; in occ_show_freq_1()
400 struct occ_sensors *sensors = &occ->sensors; in occ_show_freq_2() local
407 freq = ((struct freq_sensor_2 *)sensors->freq.data) + sattr->index; in occ_show_freq_2()
430 struct occ_sensors *sensors = &occ->sensors; in occ_show_power_1() local
437 power = ((struct power_sensor_1 *)sensors->power.data) + sattr->index; in occ_show_power_1()
477 struct occ_sensors *sensors = &occ->sensors; in occ_show_power_2() local
484 power = ((struct power_sensor_2 *)sensors->power.data) + sattr->index; in occ_show_power_2()
516 struct occ_sensors *sensors = &occ->sensors; in occ_show_power_a0() local
523 power = ((struct power_sensor_a0 *)sensors->power.data) + sattr->index; in occ_show_power_a0()
596 struct occ_sensors *sensors = &occ->sensors; in occ_show_caps_1_2() local
603 caps = ((struct caps_sensor_2 *)sensors->caps.data) + sattr->index; in occ_show_caps_1_2()
627 if (occ->sensors.caps.version == 1) in occ_show_caps_1_2()
646 struct occ_sensors *sensors = &occ->sensors; in occ_show_caps_3() local
653 caps = ((struct caps_sensor_3 *)sensors->caps.data) + sattr->index; in occ_show_caps_3()
717 struct occ_sensors *sensors = &occ->sensors; in occ_show_extended() local
724 extn = ((struct extended_sensor *)sensors->extended.data) + in occ_show_extended()
781 struct occ_sensors *sensors = &occ->sensors; in occ_setup_sensor_attrs() local
793 switch (sensors->temp.version) { in occ_setup_sensor_attrs()
795 num_attrs += (sensors->temp.num_sensors * 2); in occ_setup_sensor_attrs()
798 num_attrs += (sensors->temp.num_sensors * 4); in occ_setup_sensor_attrs()
802 num_attrs += (sensors->temp.num_sensors * 5); in occ_setup_sensor_attrs()
806 sensors->temp.num_sensors = 0; in occ_setup_sensor_attrs()
809 switch (sensors->freq.version) { in occ_setup_sensor_attrs()
814 num_attrs += (sensors->freq.num_sensors * 2); in occ_setup_sensor_attrs()
817 sensors->freq.num_sensors = 0; in occ_setup_sensor_attrs()
820 switch (sensors->power.version) { in occ_setup_sensor_attrs()
825 num_attrs += (sensors->power.num_sensors * 4); in occ_setup_sensor_attrs()
828 num_attrs += (sensors->power.num_sensors * 16); in occ_setup_sensor_attrs()
832 sensors->power.num_sensors = 0; in occ_setup_sensor_attrs()
835 switch (sensors->caps.version) { in occ_setup_sensor_attrs()
837 num_attrs += (sensors->caps.num_sensors * 7); in occ_setup_sensor_attrs()
840 num_attrs += (sensors->caps.num_sensors * 8); in occ_setup_sensor_attrs()
844 num_attrs += (sensors->caps.num_sensors * 9); in occ_setup_sensor_attrs()
847 sensors->caps.num_sensors = 0; in occ_setup_sensor_attrs()
850 switch (sensors->extended.version) { in occ_setup_sensor_attrs()
852 num_attrs += (sensors->extended.num_sensors * 3); in occ_setup_sensor_attrs()
855 sensors->extended.num_sensors = 0; in occ_setup_sensor_attrs()
871 for (i = 0; i < sensors->temp.num_sensors; ++i) { in occ_setup_sensor_attrs()
873 temp = ((struct temp_sensor_2 *)sensors->temp.data) + i; in occ_setup_sensor_attrs()
880 if (sensors->temp.version == 2 && in occ_setup_sensor_attrs()
893 if (sensors->temp.version > 1) { in occ_setup_sensor_attrs()
906 if (sensors->temp.version == 0x10) { in occ_setup_sensor_attrs()
917 for (i = 0; i < sensors->freq.num_sensors; ++i) { in occ_setup_sensor_attrs()
931 if (sensors->power.version == 0xA0) { in occ_setup_sensor_attrs()
934 * a sensor number per power type, emulating several sensors. in occ_setup_sensor_attrs()
936 for (i = 0; i < sensors->power.num_sensors; ++i) { in occ_setup_sensor_attrs()
975 s = (sensors->power.num_sensors * 4) + 1; in occ_setup_sensor_attrs()
977 for (i = 0; i < sensors->power.num_sensors; ++i) { in occ_setup_sensor_attrs()
1005 s = sensors->power.num_sensors + 1; in occ_setup_sensor_attrs()
1008 if (sensors->caps.num_sensors >= 1) { in occ_setup_sensor_attrs()
1046 if (sensors->caps.version > 1) { in occ_setup_sensor_attrs()
1053 if (sensors->caps.version > 2) { in occ_setup_sensor_attrs()
1064 for (i = 0; i < sensors->extended.num_sensors; ++i) { in occ_setup_sensor_attrs()
1083 /* put the sensors in the group */ in occ_setup_sensor_attrs()
1092 /* only need to do this once at startup, as OCC won't change sensors on us */
1097 struct occ_sensors *sensors = &occ->sensors; in occ_parse_poll_response() local
1120 dev_dbg(occ->bus_dev, " %04x..%04x: %.4s (%d sensors)\n", in occ_parse_poll_response()
1126 sensor = &sensors->temp; in occ_parse_poll_response()
1128 sensor = &sensors->freq; in occ_parse_poll_response()
1130 sensor = &sensors->power; in occ_parse_poll_response()
1132 sensor = &sensors->caps; in occ_parse_poll_response()
1134 sensor = &sensors->extended; in occ_parse_poll_response()