Lines Matching refs:num_attrs
778 unsigned int i, s, num_attrs = 0; in occ_setup_sensor_attrs() local
794 num_attrs += (sensors->temp.num_sensors * 2); in occ_setup_sensor_attrs()
797 num_attrs += (sensors->temp.num_sensors * 4); in occ_setup_sensor_attrs()
801 num_attrs += (sensors->temp.num_sensors * 5); in occ_setup_sensor_attrs()
813 num_attrs += (sensors->freq.num_sensors * 2); in occ_setup_sensor_attrs()
824 num_attrs += (sensors->power.num_sensors * 4); in occ_setup_sensor_attrs()
827 num_attrs += (sensors->power.num_sensors * 16); in occ_setup_sensor_attrs()
836 num_attrs += (sensors->caps.num_sensors * 7); in occ_setup_sensor_attrs()
842 num_attrs += (sensors->caps.num_sensors * 8); in occ_setup_sensor_attrs()
850 num_attrs += (sensors->extended.num_sensors * 3); in occ_setup_sensor_attrs()
856 occ->attrs = devm_kzalloc(dev, sizeof(*occ->attrs) * num_attrs, in occ_setup_sensor_attrs()
863 num_attrs + 1, GFP_KERNEL); in occ_setup_sensor_attrs()
1073 for (i = 0; i < num_attrs; ++i) { in occ_setup_sensor_attrs()