Lines Matching defs:mask
129 unsigned long *mask);
643 DECLARE_BITMAP(mask, HW_CNTRS_MAX);
645 bitmap_zero(mask, HW_CNTRS_MAX);
656 __set_bit(i, mask);
661 pmu_write_counters(cci_pmu, mask);
750 * saving the changed counters in the mask, so that we can restore
751 * it later using pmu_restore_counters. The mask is private to the
758 * @mask should be initialised to empty by the caller.
761 pmu_save_counters(struct cci_pmu *cci_pmu, unsigned long *mask)
767 set_bit(i, mask);
775 * For each counter set in the mask, enable the counter back.
778 pmu_restore_counters(struct cci_pmu *cci_pmu, unsigned long *mask)
782 for_each_set_bit(i, mask, cci_pmu->num_cntrs)
805 /* Generic code to find an unused idx from the mask */
893 static void __pmu_write_counters(struct cci_pmu *cci_pmu, unsigned long *mask)
898 for_each_set_bit(i, mask, cci_pmu->num_cntrs) {
907 static void pmu_write_counters(struct cci_pmu *cci_pmu, unsigned long *mask)
910 cci_pmu->model->write_counters(cci_pmu, mask);
912 __pmu_write_counters(cci_pmu, mask);
946 static void cci5xx_pmu_write_counters(struct cci_pmu *cci_pmu, unsigned long *mask)
960 for_each_set_bit(i, mask, cci_pmu->num_cntrs) {
1253 unsigned long mask[BITS_TO_LONGS(HW_CNTRS_MAX)];
1259 .used_mask = mask,
1261 bitmap_zero(mask, cci_pmu->num_cntrs);