Lines Matching refs:num_attrs
726 unsigned int i, s, num_attrs = 0; in occ_setup_sensor_attrs() local
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()
757 num_attrs += (sensors->freq.num_sensors * 2); 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()
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()
794 num_attrs += (sensors->extended.num_sensors * 3); in occ_setup_sensor_attrs()
800 occ->attrs = devm_kzalloc(dev, sizeof(*occ->attrs) * num_attrs, in occ_setup_sensor_attrs()
807 num_attrs + 1, GFP_KERNEL); in occ_setup_sensor_attrs()
1008 for (i = 0; i < num_attrs; ++i) { in occ_setup_sensor_attrs()