Lines Matching refs:sample
1049 static int sample_format_is_valid(struct hws_combined_entry *sample, in sample_format_is_valid() argument
1056 if (sample->basic.def != 0x0001) in sample_format_is_valid()
1063 if (sample->diag.def < 0x8001) in sample_format_is_valid()
1068 static int sample_is_consistent(struct hws_combined_entry *sample, in sample_is_consistent() argument
1083 if (sample->basic.I || sample->basic.W) in sample_is_consistent()
1088 static void reset_sample_slot(struct hws_combined_entry *sample, in reset_sample_slot() argument
1092 sample->basic.def = 0; in reset_sample_slot()
1094 sample->diag.def = 0; in reset_sample_slot()
1098 struct hws_combined_entry *sample) in sfr_store_sample() argument
1101 sfr->basic = sample->basic; in sfr_store_sample()
1103 memcpy(&sfr->diag, &sample->diag, sfr->dsdes); in sfr_store_sample()
1106 static void debug_sample_entry(struct hws_combined_entry *sample, in debug_sample_entry() argument
1113 sample->basic.def, &sample->basic, in debug_sample_entry()
1115 ? sample->diag.def : 0xFFFF, in debug_sample_entry()
1117 ? &sample->diag : NULL); in debug_sample_entry()
1144 struct hws_combined_entry *sample; in hw_collect_samples() local
1155 sample = (struct hws_combined_entry *) *sdbt; in hw_collect_samples()
1156 while ((unsigned long *) sample < (unsigned long *) te) { in hw_collect_samples()
1158 if (!sample->basic.def) in hw_collect_samples()
1165 if (sample_format_is_valid(sample, flags)) { in hw_collect_samples()
1171 if (sample_is_consistent(sample, flags)) { in hw_collect_samples()
1173 sfr_store_sample(sfr, sample); in hw_collect_samples()
1180 debug_sample_entry(sample, te, flags); in hw_collect_samples()
1196 reset_sample_slot(sample, flags); in hw_collect_samples()
1197 sample += sample_size; in hw_collect_samples()