Lines Matching refs:sample

1048 static int sample_format_is_valid(struct hws_combined_entry *sample,  in sample_format_is_valid()  argument
1055 if (sample->basic.def != 0x0001) in sample_format_is_valid()
1062 if (sample->diag.def < 0x8001) in sample_format_is_valid()
1067 static int sample_is_consistent(struct hws_combined_entry *sample, in sample_is_consistent() argument
1082 if (sample->basic.I || sample->basic.W) in sample_is_consistent()
1087 static void reset_sample_slot(struct hws_combined_entry *sample, in reset_sample_slot() argument
1091 sample->basic.def = 0; in reset_sample_slot()
1093 sample->diag.def = 0; in reset_sample_slot()
1097 struct hws_combined_entry *sample) in sfr_store_sample() argument
1100 sfr->basic = sample->basic; in sfr_store_sample()
1102 memcpy(&sfr->diag, &sample->diag, sfr->dsdes); in sfr_store_sample()
1105 static void debug_sample_entry(struct hws_combined_entry *sample, in debug_sample_entry() argument
1112 sample->basic.def, &sample->basic, in debug_sample_entry()
1114 ? sample->diag.def : 0xFFFF, in debug_sample_entry()
1116 ? &sample->diag : NULL); in debug_sample_entry()
1143 struct hws_combined_entry *sample; in hw_collect_samples() local
1154 sample = (struct hws_combined_entry *) *sdbt; in hw_collect_samples()
1155 while ((unsigned long *) sample < (unsigned long *) te) { in hw_collect_samples()
1157 if (!sample->basic.def) in hw_collect_samples()
1164 if (sample_format_is_valid(sample, flags)) { in hw_collect_samples()
1170 if (sample_is_consistent(sample, flags)) { in hw_collect_samples()
1172 sfr_store_sample(sfr, sample); in hw_collect_samples()
1179 debug_sample_entry(sample, te, flags); in hw_collect_samples()
1195 reset_sample_slot(sample, flags); in hw_collect_samples()
1196 sample += sample_size; in hw_collect_samples()