Lines Matching defs:buf

170    uint8_t buf[I915_PERF_OA_SAMPLE_SIZE * 10];
464 struct oa_sample_buf *buf;
467 buf = exec_node_data(struct oa_sample_buf, node, link);
469 buf = ralloc_size(perf_ctx->perf, sizeof(*buf));
471 exec_node_init(&buf->link);
472 buf->refcount = 0;
474 buf->len = 0;
476 return buf;
492 foreach_list_typed_safe(struct oa_sample_buf, buf, link,
495 if (buf->refcount == 0 && buf != tail_buf) {
496 exec_node_remove(&buf->link);
497 exec_list_push_head(&perf_ctx->free_sample_buffers, &buf->link);
506 foreach_list_typed_safe(struct oa_sample_buf, buf, link,
508 ralloc_free(buf);
616 struct oa_sample_buf *buf = get_free_sample_buf(perf_ctx);
617 exec_list_push_head(&perf_ctx->sample_buffers, &buf->link);
877 struct oa_sample_buf *buf =
884 buf->refcount++;
985 void* buf,
988 return read(perf_ctx->oa_stream_fd, buf, nbytes);
1010 struct oa_sample_buf *buf = get_free_sample_buf(perf_ctx);
1014 while ((len = read(perf_ctx->oa_stream_fd, buf->buf,
1015 sizeof(buf->buf))) < 0 && errno == EINTR)
1019 exec_list_push_tail(&perf_ctx->free_sample_buffers, &buf->link);
1041 buf->len = len;
1042 exec_list_push_tail(&perf_ctx->sample_buffers, &buf->link);
1046 while (offset < buf->len) {
1048 (const struct drm_i915_perf_record_header *) &buf->buf[offset];
1057 buf->last_timestamp = last_timestamp;
1207 struct oa_sample_buf *buf =
1210 assert(buf->refcount > 0);
1211 buf->refcount--;
1310 foreach_list_typed_from(struct oa_sample_buf, buf, link,
1316 while (offset < buf->len) {
1318 (const struct drm_i915_perf_record_header *)(buf->buf + offset);
1321 assert(header->size <= buf->len);