Lines Matching defs:tep
13 * @tep: a handle to the tep_handle
17 * If @tep is NULL, or @index is not in the range 0 .. nr_events, NULL is returned.
19 struct tep_event *tep_get_event(struct tep_handle *tep, int index)
21 if (tep && tep->events && index < tep->nr_events)
22 return tep->events[index];
29 * @tep: a handle to the tep_handle
32 * If @tep is NULL, NULL is returned.
34 struct tep_event *tep_get_first_event(struct tep_handle *tep)
36 return tep_get_event(tep, 0);
41 * @tep: a handle to the tep_handle
44 * If @tep is NULL, 0 is returned.
46 int tep_get_events_count(struct tep_handle *tep)
48 if (tep)
49 return tep->nr_events;
55 * @tep: a handle to the tep_handle
61 void tep_set_flag(struct tep_handle *tep, int flag)
63 if (tep)
64 tep->flags |= flag;
69 * @tep: a handle to the tep_handle
72 * This clears a tep flag
74 void tep_clear_flag(struct tep_handle *tep, enum tep_flag flag)
76 if (tep)
77 tep->flags &= ~flag;
82 * @tep: a handle to the tep_handle
85 * This returns the state of the requested tep flag.
88 bool tep_test_flag(struct tep_handle *tep, enum tep_flag flag)
90 if (tep)
91 return tep->flags & flag;
95 __hidden unsigned short data2host2(struct tep_handle *tep, unsigned short data)
99 if (!tep || tep->host_bigendian == tep->file_bigendian)
108 __hidden unsigned int data2host4(struct tep_handle *tep, unsigned int data)
112 if (!tep || tep->host_bigendian == tep->file_bigendian)
124 data2host8(struct tep_handle *tep, unsigned long long data)
128 if (!tep || tep->host_bigendian == tep->file_bigendian)
145 * @tep: a handle to the tep_handle
148 * If @tep is NULL, 0 is returned.
150 int tep_get_header_page_size(struct tep_handle *tep)
152 if (tep)
153 return tep->header_page_size_size;
159 * @tep: a handle to the tep_handle
162 * If @tep is NULL, 0 is returned.
164 int tep_get_header_timestamp_size(struct tep_handle *tep)
166 if (tep)
167 return tep->header_page_ts_size;
173 * @tep: a handle to the tep_handle
176 * If @tep is NULL, 0 is returned.
178 int tep_get_cpus(struct tep_handle *tep)
180 if (tep)
181 return tep->cpus;
187 * @tep: a handle to the tep_handle
191 void tep_set_cpus(struct tep_handle *tep, int cpus)
193 if (tep)
194 tep->cpus = cpus;
199 * @tep: a handle to the tep_handle
202 * If @tep is NULL, 0 is returned.
204 int tep_get_long_size(struct tep_handle *tep)
206 if (tep)
207 return tep->long_size;
213 * @tep: a handle to the tep_handle
218 void tep_set_long_size(struct tep_handle *tep, int long_size)
220 if (tep)
221 tep->long_size = long_size;
226 * @tep: a handle to the tep_handle
229 * If @tep is NULL, 0 is returned.
231 int tep_get_page_size(struct tep_handle *tep)
233 if (tep)
234 return tep->page_size;
240 * @tep: a handle to the tep_handle
245 void tep_set_page_size(struct tep_handle *tep, int _page_size)
247 if (tep)
248 tep->page_size = _page_size;
253 * @tep: a handle to the tep_handle
256 * If @tep is NULL, false is returned.
258 bool tep_is_file_bigendian(struct tep_handle *tep)
260 if (tep)
261 return (tep->file_bigendian == TEP_BIG_ENDIAN);
267 * @tep: a handle to the tep_handle
272 void tep_set_file_bigendian(struct tep_handle *tep, enum tep_endian endian)
274 if (tep)
275 tep->file_bigendian = endian;
280 * @tep: a handle to the tep_handle
282 * This returns true if the saved local machine in @tep is big endian.
283 * If @tep is NULL, false is returned.
285 bool tep_is_local_bigendian(struct tep_handle *tep)
287 if (tep)
288 return (tep->host_bigendian == TEP_BIG_ENDIAN);
294 * @tep: a handle to the tep_handle
299 void tep_set_local_bigendian(struct tep_handle *tep, enum tep_endian endian)
301 if (tep)
302 tep->host_bigendian = endian;
307 * @tep: a handle to the tep_handle
311 * If @tep is NULL, false is returned.
313 bool tep_is_old_format(struct tep_handle *tep)
315 if (tep)
316 return tep->old_format;
322 * @tep: a handle to the tep_handle
329 void tep_set_test_filters(struct tep_handle *tep, int test_filters)
331 if (tep)
332 tep->test_filters = test_filters;