Lines Matching refs:tep
19 struct tep_event *tep_get_event(struct tep_handle *tep, int index) in tep_get_event() argument
21 if (tep && tep->events && index < tep->nr_events) in tep_get_event()
22 return tep->events[index]; in tep_get_event()
34 struct tep_event *tep_get_first_event(struct tep_handle *tep) in tep_get_first_event() argument
36 return tep_get_event(tep, 0); in tep_get_first_event()
46 int tep_get_events_count(struct tep_handle *tep) in tep_get_events_count() argument
48 if (tep) in tep_get_events_count()
49 return tep->nr_events; in tep_get_events_count()
61 void tep_set_flag(struct tep_handle *tep, int flag) in tep_set_flag() argument
63 if (tep) in tep_set_flag()
64 tep->flags |= flag; in tep_set_flag()
74 void tep_clear_flag(struct tep_handle *tep, enum tep_flag flag) in tep_clear_flag() argument
76 if (tep) in tep_clear_flag()
77 tep->flags &= ~flag; in tep_clear_flag()
88 bool tep_test_flag(struct tep_handle *tep, enum tep_flag flag) in tep_test_flag() argument
90 if (tep) in tep_test_flag()
91 return tep->flags & flag; in tep_test_flag()
95 __hidden unsigned short data2host2(struct tep_handle *tep, unsigned short data) in data2host2() argument
99 if (!tep || tep->host_bigendian == tep->file_bigendian) in data2host2()
108 __hidden unsigned int data2host4(struct tep_handle *tep, unsigned int data) in data2host4() argument
112 if (!tep || tep->host_bigendian == tep->file_bigendian) in data2host4()
124 data2host8(struct tep_handle *tep, unsigned long long data) in data2host8() argument
128 if (!tep || tep->host_bigendian == tep->file_bigendian) in data2host8()
150 int tep_get_header_page_size(struct tep_handle *tep) in tep_get_header_page_size() argument
152 if (tep) in tep_get_header_page_size()
153 return tep->header_page_size_size; in tep_get_header_page_size()
164 int tep_get_header_timestamp_size(struct tep_handle *tep) in tep_get_header_timestamp_size() argument
166 if (tep) in tep_get_header_timestamp_size()
167 return tep->header_page_ts_size; in tep_get_header_timestamp_size()
178 int tep_get_cpus(struct tep_handle *tep) in tep_get_cpus() argument
180 if (tep) in tep_get_cpus()
181 return tep->cpus; in tep_get_cpus()
191 void tep_set_cpus(struct tep_handle *tep, int cpus) in tep_set_cpus() argument
193 if (tep) in tep_set_cpus()
194 tep->cpus = cpus; in tep_set_cpus()
204 int tep_get_long_size(struct tep_handle *tep) in tep_get_long_size() argument
206 if (tep) in tep_get_long_size()
207 return tep->long_size; in tep_get_long_size()
218 void tep_set_long_size(struct tep_handle *tep, int long_size) in tep_set_long_size() argument
220 if (tep) in tep_set_long_size()
221 tep->long_size = long_size; in tep_set_long_size()
231 int tep_get_page_size(struct tep_handle *tep) in tep_get_page_size() argument
233 if (tep) in tep_get_page_size()
234 return tep->page_size; in tep_get_page_size()
245 void tep_set_page_size(struct tep_handle *tep, int _page_size) in tep_set_page_size() argument
247 if (tep) in tep_set_page_size()
248 tep->page_size = _page_size; in tep_set_page_size()
258 bool tep_is_file_bigendian(struct tep_handle *tep) in tep_is_file_bigendian() argument
260 if (tep) in tep_is_file_bigendian()
261 return (tep->file_bigendian == TEP_BIG_ENDIAN); in tep_is_file_bigendian()
272 void tep_set_file_bigendian(struct tep_handle *tep, enum tep_endian endian) in tep_set_file_bigendian() argument
274 if (tep) in tep_set_file_bigendian()
275 tep->file_bigendian = endian; in tep_set_file_bigendian()
285 bool tep_is_local_bigendian(struct tep_handle *tep) in tep_is_local_bigendian() argument
287 if (tep) in tep_is_local_bigendian()
288 return (tep->host_bigendian == TEP_BIG_ENDIAN); in tep_is_local_bigendian()
299 void tep_set_local_bigendian(struct tep_handle *tep, enum tep_endian endian) in tep_set_local_bigendian() argument
301 if (tep) in tep_set_local_bigendian()
302 tep->host_bigendian = endian; in tep_set_local_bigendian()
313 bool tep_is_old_format(struct tep_handle *tep) in tep_is_old_format() argument
315 if (tep) in tep_is_old_format()
316 return tep->old_format; in tep_is_old_format()
329 void tep_set_test_filters(struct tep_handle *tep, int test_filters) in tep_set_test_filters() argument
331 if (tep) in tep_set_test_filters()
332 tep->test_filters = test_filters; in tep_set_test_filters()