/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/ |
D | gstglquery.c | 116 GstGLQuery *query = user_data; in _log_time() local 119 result = gst_gl_query_result (query); in _log_time() 133 gst_gl_query_init (GstGLQuery * query, GstGLContext * context, in gst_gl_query_init() argument 139 g_return_if_fail (query != NULL); in gst_gl_query_init() 145 memset (query, 0, sizeof (*query)); in gst_gl_query_init() 149 query->query_type = gl_query_type; in gst_gl_query_init() 150 query->context = gst_object_ref (context); in gst_gl_query_init() 151 query->supported = _context_supports_query_type (context, query->query_type); in gst_gl_query_init() 153 if (query->supported) in gst_gl_query_init() 154 gl->GenQueries (1, &query->query_id); in gst_gl_query_init() [all …]
|
D | gstglquery.h | 62 void gst_gl_query_init (GstGLQuery * query, 66 void gst_gl_query_unset (GstGLQuery * query); 71 void gst_gl_query_free (GstGLQuery * query); 74 void gst_gl_query_start (GstGLQuery * query); 76 void gst_gl_query_end (GstGLQuery * query); 78 void gst_gl_query_counter (GstGLQuery * query); 80 guint64 gst_gl_query_result (GstGLQuery * query); 82 #define gst_gl_query_start_log_valist(query,cat,level,object,format,varargs) \ argument 84 GST_GL_ASYNC_CAT_LEVEL_LOG_valist (&(query)->debug, cat, level, object, format, varargs); \ 85 gst_gl_async_debug_freeze (&(query)->debug); \ [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | gas_query.c | 78 struct gas_query_pending *query); 135 static void gas_query_free(struct gas_query_pending *query, int del_list) in gas_query_free() argument 137 struct gas_query *gas = query->gas; in gas_query_free() 140 dl_list_del(&query->list); in gas_query_free() 142 if (gas->work && gas->work->ctx == query) { in gas_query_free() 147 wpabuf_free(query->req); in gas_query_free() 148 wpabuf_free(query->adv_proto); in gas_query_free() 149 wpabuf_free(query->resp); in gas_query_free() 150 os_free(query); in gas_query_free() 155 struct gas_query_pending *query, in gas_query_done() argument [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | gas_query_ap.c | 73 struct gas_query_pending *query); 130 static void gas_query_free(struct gas_query_pending *query, int del_list) in gas_query_free() argument 133 dl_list_del(&query->list); in gas_query_free() 135 wpabuf_free(query->req); in gas_query_free() 136 wpabuf_free(query->adv_proto); in gas_query_free() 137 wpabuf_free(query->resp); in gas_query_free() 138 os_free(query); in gas_query_free() 143 struct gas_query_pending *query, in gas_query_done() argument 148 MAC2STR(query->addr), query->dialog_token, query->freq, in gas_query_done() 149 query->status_code, gas_result_txt(result)); in gas_query_done() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
D | gas_query_ap.c | 73 struct gas_query_pending *query); 130 static void gas_query_free(struct gas_query_pending *query, int del_list) in gas_query_free() argument 133 dl_list_del(&query->list); in gas_query_free() 135 wpabuf_free(query->req); in gas_query_free() 136 wpabuf_free(query->adv_proto); in gas_query_free() 137 wpabuf_free(query->resp); in gas_query_free() 138 os_free(query); in gas_query_free() 143 struct gas_query_pending *query, in gas_query_done() argument 148 MAC2STR(query->addr), query->dialog_token, query->freq, in gas_query_done() 149 query->status_code, gas_result_txt(result)); in gas_query_done() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | gas_query.c | 79 struct gas_query_pending *query); 136 static void gas_query_free(struct gas_query_pending *query, int del_list) in gas_query_free() argument 138 struct gas_query *gas = query->gas; in gas_query_free() 141 dl_list_del(&query->list); in gas_query_free() 143 if (gas->work && gas->work->ctx == query) { in gas_query_free() 148 wpabuf_free(query->req); in gas_query_free() 149 wpabuf_free(query->adv_proto); in gas_query_free() 150 wpabuf_free(query->resp); in gas_query_free() 151 os_free(query); in gas_query_free() 156 struct gas_query_pending *query, in gas_query_done() argument [all …]
|
/third_party/node/deps/cares/src/lib/ |
D | ares_send.c | 32 struct query *query; in ares_send() local 44 query = ares_malloc(sizeof(struct query)); in ares_send() 45 if (!query) in ares_send() 50 query->tcpbuf = ares_malloc(qlen + 2); in ares_send() 51 if (!query->tcpbuf) in ares_send() 53 ares_free(query); in ares_send() 59 ares_free(query); in ares_send() 63 query->server_info = ares_malloc(channel->nservers * in ares_send() 64 sizeof(query->server_info[0])); in ares_send() 65 if (!query->server_info) in ares_send() [all …]
|
/third_party/mesa3d/src/intel/perf/ |
D | intel_perf_mdapi.c | 37 const struct intel_perf_query_info *query, in intel_perf_query_result_write_mdapi() argument 57 mdapi_data->PerfCounter1 = result->accumulator[query->perfcnt_offset + 0]; in intel_perf_query_result_write_mdapi() 58 mdapi_data->PerfCounter2 = result->accumulator[query->perfcnt_offset + 1]; in intel_perf_query_result_write_mdapi() 81 mdapi_data->PerfCounter1 = result->accumulator[query->perfcnt_offset + 0]; in intel_perf_query_result_write_mdapi() 82 mdapi_data->PerfCounter2 = result->accumulator[query->perfcnt_offset + 1]; in intel_perf_query_result_write_mdapi() 115 mdapi_data->PerfCounter1 = result->accumulator[query->perfcnt_offset + 0]; in intel_perf_query_result_write_mdapi() 116 mdapi_data->PerfCounter2 = result->accumulator[query->perfcnt_offset + 1]; in intel_perf_query_result_write_mdapi() 146 struct intel_perf_query_info *query = in intel_perf_register_mdapi_statistic_query() local 149 query->kind = INTEL_PERF_QUERY_TYPE_PIPELINE; in intel_perf_register_mdapi_statistic_query() 150 query->name = "Intel_Raw_Pipeline_Statistics_Query"; in intel_perf_register_mdapi_statistic_query() [all …]
|
D | intel_perf_query.c | 353 const struct intel_perf_query_info *query) in intel_perf_close() argument 359 if (query && query->kind == INTEL_PERF_QUERY_TYPE_RAW) { in intel_perf_close() 361 (struct intel_perf_query_info *) query; in intel_perf_close() 432 const struct intel_perf_query_info *query) in get_metric_id() argument 437 if (query->kind == INTEL_PERF_QUERY_TYPE_OA) in get_metric_id() 438 return query->oa_metrics_set_id; in get_metric_id() 440 assert(query->kind == INTEL_PERF_QUERY_TYPE_RAW); in get_metric_id() 447 if (query->oa_metrics_set_id != 0) { in get_metric_id() 449 query->name, query->guid, query->oa_metrics_set_id); in get_metric_id() 450 return query->oa_metrics_set_id; in get_metric_id() [all …]
|
/third_party/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_queryobj.c | 126 struct brw_query_object *query) in brw_queryobj_get_results() argument 136 if (query->bo == NULL) in brw_queryobj_get_results() 143 if (brw_batch_references(&brw->batch, query->bo)) in brw_queryobj_get_results() 147 if (brw_bo_busy(query->bo)) { in brw_queryobj_get_results() 152 results = brw_bo_map(brw, query->bo, MAP_READ); in brw_queryobj_get_results() 153 switch (query->Base.Target) { in brw_queryobj_get_results() 158 query->Base.Result = brw_raw_timestamp_delta(brw, results[0], results[1]); in brw_queryobj_get_results() 159 query->Base.Result = intel_device_info_timebase_scale(devinfo, query->Base.Result); in brw_queryobj_get_results() 164 query->Base.Result = intel_device_info_timebase_scale(devinfo, results[0]); in brw_queryobj_get_results() 169 query->Base.Result &= (1ull << ctx->Const.QueryCounterBits.Timestamp) - 1; in brw_queryobj_get_results() [all …]
|
D | gfx6_queryobj.c | 42 set_query_availability(struct brw_context *brw, struct brw_query_object *query, in set_query_availability() argument 61 brw_is_query_pipelined(query)) { in set_query_availability() 73 query->bo, 2 * sizeof(uint64_t), in set_query_availability() 223 struct brw_query_object *query) in gfx6_queryobj_get_results() argument 228 if (query->bo == NULL) in gfx6_queryobj_get_results() 231 uint64_t *results = brw_bo_map(brw, query->bo, MAP_READ); in gfx6_queryobj_get_results() 232 switch (query->Base.Target) { in gfx6_queryobj_get_results() 237 query->Base.Result = brw_raw_timestamp_delta(brw, results[0], results[1]); in gfx6_queryobj_get_results() 238 query->Base.Result = intel_device_info_timebase_scale(devinfo, query->Base.Result); in gfx6_queryobj_get_results() 243 query->Base.Result = intel_device_info_timebase_scale(devinfo, results[0]); in gfx6_queryobj_get_results() [all …]
|
/third_party/gstreamer/gstreamer/gst/ |
D | gstquery.c | 73 GstQuery query; member 188 _gst_query_free (GstQuery * query) in _gst_query_free() argument 192 g_return_if_fail (query != NULL); in _gst_query_free() 194 s = GST_QUERY_STRUCTURE (query); in _gst_query_free() 200 memset (query, 0xff, sizeof (GstQueryImpl)); in _gst_query_free() 203 g_slice_free1 (sizeof (GstQueryImpl), query); in _gst_query_free() 207 _gst_query_copy (GstQuery * query) in _gst_query_copy() argument 212 s = GST_QUERY_STRUCTURE (query); in _gst_query_copy() 216 copy = gst_query_new_custom (query->type, s); in _gst_query_copy() 236 GstQuery *query; in gst_query_new_position() local [all …]
|
D | gstquery.h | 145 #define GST_QUERY_TYPE(query) (((GstQuery*)(query))->type) argument 153 #define GST_QUERY_TYPE_NAME(query) (gst_query_type_get_name(GST_QUERY_TYPE(query))) argument 318 gst_query_get_structure (GstQuery *query); 321 GstStructure * gst_query_writable_structure (GstQuery *query); 329 void gst_query_set_position (GstQuery *query, GstFormat format, gint64 cur); 332 void gst_query_parse_position (GstQuery *query, GstFormat *format, gint64 *cur); 340 void gst_query_set_duration (GstQuery *query, GstFormat format, gint64 duration… 343 void gst_query_parse_duration (GstQuery *query, GstFormat *format, gint64 *durati… 351 void gst_query_set_latency (GstQuery *query, gboolean live, GstClockTime min_l… 355 void gst_query_parse_latency (GstQuery *query, gboolean *live, GstClockTime *min… [all …]
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_query.c | 158 needs_stats_list(struct zink_query *query) in needs_stats_list() argument 160 return query->type == PIPE_QUERY_PRIMITIVES_GENERATED || in needs_stats_list() 161 query->type == PIPE_QUERY_SO_OVERFLOW_ANY_PREDICATE || in needs_stats_list() 162 query->type == PIPE_QUERY_SO_OVERFLOW_PREDICATE; in needs_stats_list() 166 is_time_query(struct zink_query *query) in is_time_query() argument 168 return query->type == PIPE_QUERY_TIMESTAMP || query->type == PIPE_QUERY_TIME_ELAPSED; in is_time_query() 172 is_so_overflow_query(struct zink_query *query) in is_so_overflow_query() argument 174 …return query->type == PIPE_QUERY_SO_OVERFLOW_ANY_PREDICATE || query->type == PIPE_QUERY_SO_OVERFLO… in is_so_overflow_query() 178 is_bool_query(struct zink_query *query) in is_bool_query() argument 180 return is_so_overflow_query(query) || in is_bool_query() [all …]
|
/third_party/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_queryobj.c | 38 struct radeon_query_object *query = (struct radeon_query_object *)q; in radeonQueryGetResult() local 44 __func__, query->Base.Id, (int) query->Base.Result); in radeonQueryGetResult() 46 radeon_bo_map(query->bo, GL_FALSE); in radeonQueryGetResult() 47 result = query->bo->ptr; in radeonQueryGetResult() 49 query->Base.Result = 0; in radeonQueryGetResult() 50 for (i = 0; i < query->curr_offset/sizeof(uint32_t); ++i) { in radeonQueryGetResult() 51 query->Base.Result += LE32_TO_CPU(result[i]); in radeonQueryGetResult() 55 radeon_bo_unmap(query->bo); in radeonQueryGetResult() 60 struct radeon_query_object *query; in radeonNewQueryObject() local 62 query = calloc(1, sizeof(struct radeon_query_object)); in radeonNewQueryObject() [all …]
|
/third_party/mesa3d/src/mesa/drivers/dri/r200/ |
D | radeon_queryobj.c | 38 struct radeon_query_object *query = (struct radeon_query_object *)q; in radeonQueryGetResult() local 44 __func__, query->Base.Id, (int) query->Base.Result); in radeonQueryGetResult() 46 radeon_bo_map(query->bo, GL_FALSE); in radeonQueryGetResult() 47 result = query->bo->ptr; in radeonQueryGetResult() 49 query->Base.Result = 0; in radeonQueryGetResult() 50 for (i = 0; i < query->curr_offset/sizeof(uint32_t); ++i) { in radeonQueryGetResult() 51 query->Base.Result += LE32_TO_CPU(result[i]); in radeonQueryGetResult() 55 radeon_bo_unmap(query->bo); in radeonQueryGetResult() 60 struct radeon_query_object *query; in radeonNewQueryObject() local 62 query = calloc(1, sizeof(struct radeon_query_object)); in radeonNewQueryObject() [all …]
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | r600_query.c | 60 struct r600_query_sw *query = (struct r600_query_sw *)rquery; in r600_query_sw_destroy() local 62 rscreen->b.fence_reference(&rscreen->b, &query->fence, NULL); in r600_query_sw_destroy() 63 FREE(query); in r600_query_sw_destroy() 95 struct r600_query_sw *query = (struct r600_query_sw *)rquery; in r600_query_sw_begin() local 98 switch(query->b.type) { in r600_query_sw_begin() 103 query->begin_result = rctx->num_draw_calls; in r600_query_sw_begin() 106 query->begin_result = rctx->num_decompress_calls; in r600_query_sw_begin() 109 query->begin_result = rctx->num_mrt_draw_calls; in r600_query_sw_begin() 112 query->begin_result = rctx->num_prim_restart_calls; in r600_query_sw_begin() 115 query->begin_result = rctx->num_spill_draw_calls; in r600_query_sw_begin() [all …]
|
/third_party/gstreamer/gstreamer/tests/check/gst/ |
D | gstquery.c | 26 GstQuery *query; in GST_START_TEST() local 33 query = gst_query_new_position (GST_FORMAT_TIME); in GST_START_TEST() 34 fail_if (query == NULL); in GST_START_TEST() 35 fail_unless (GST_QUERY_TYPE (query) == GST_QUERY_POSITION); in GST_START_TEST() 37 gst_query_parse_position (query, &format, NULL); in GST_START_TEST() 40 gst_query_set_position (query, GST_FORMAT_TIME, 0xdeadbeaf); in GST_START_TEST() 42 gst_query_parse_position (query, &format, &position); in GST_START_TEST() 46 gst_query_unref (query); in GST_START_TEST() 53 query = gst_query_new_duration (GST_FORMAT_TIME); in GST_START_TEST() 54 fail_if (query == NULL); in GST_START_TEST() [all …]
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_query.c | 63 struct si_query_sw *query = (struct si_query_sw *)squery; in si_query_sw_destroy() local 65 sctx->b.screen->fence_reference(sctx->b.screen, &query->fence, NULL); in si_query_sw_destroy() 66 FREE(query); in si_query_sw_destroy() 121 struct si_query_sw *query = (struct si_query_sw *)squery; in si_query_sw_begin() local 124 switch (query->b.type) { in si_query_sw_begin() 129 query->begin_result = sctx->num_draw_calls; in si_query_sw_begin() 132 query->begin_result = sctx->num_decompress_calls; in si_query_sw_begin() 135 query->begin_result = sctx->num_prim_restart_calls; in si_query_sw_begin() 138 query->begin_result = sctx->num_compute_calls; in si_query_sw_begin() 141 query->begin_result = sctx->num_cp_dma_calls; in si_query_sw_begin() [all …]
|
D | gfx10_query.c | 140 struct gfx10_sh_query *query = (struct gfx10_sh_query *)rquery; in gfx10_sh_query_destroy() local 141 gfx10_release_query_buffers(sctx, query->first, query->last); in gfx10_sh_query_destroy() 142 FREE(query); in gfx10_sh_query_destroy() 147 struct gfx10_sh_query *query = (struct gfx10_sh_query *)rquery; in gfx10_sh_query_begin() local 149 gfx10_release_query_buffers(sctx, query->first, query->last); in gfx10_sh_query_begin() 150 query->first = query->last = NULL; in gfx10_sh_query_begin() 155 query->first = list_last_entry(&sctx->shader_query_buffers, struct gfx10_sh_query_buffer, list); in gfx10_sh_query_begin() 156 query->first_begin = query->first->head; in gfx10_sh_query_begin() 159 query->first->refcount++; in gfx10_sh_query_begin() 166 struct gfx10_sh_query *query = (struct gfx10_sh_query *)rquery; in gfx10_sh_query_end() local [all …]
|
/third_party/mesa3d/src/gallium/drivers/virgl/ |
D | virgl_query.c | 88 struct virgl_query *query = virgl_query(q); in virgl_render_condition() local 91 handle = query->handle; in virgl_render_condition() 99 struct virgl_query *query; in virgl_create_query() local 101 query = CALLOC_STRUCT(virgl_query); in virgl_create_query() 102 if (!query) in virgl_create_query() 105 query->buf = (struct virgl_resource *) in virgl_create_query() 108 if (!query->buf) { in virgl_create_query() 109 FREE(query); in virgl_create_query() 113 query->handle = virgl_object_assign_handle(); in virgl_create_query() 114 query->result_size = (query_type == PIPE_QUERY_TIMESTAMP || in virgl_create_query() [all …]
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_query.c | 121 struct vc4_query *query = calloc(1, sizeof(*query)); in vc4_create_batch_query() local 125 if (!query) in vc4_create_batch_query() 138 return (struct pipe_query *)query; in vc4_create_batch_query() 148 query->hwperfmon = hwperfmon; in vc4_create_batch_query() 149 query->num_queries = num_queries; in vc4_create_batch_query() 152 return (struct pipe_query *)query; in vc4_create_batch_query() 155 free(query); in vc4_create_batch_query() 170 struct vc4_query *query = (struct vc4_query *)pquery; in vc4_destroy_query() local 172 if (query->hwperfmon && query->hwperfmon->id) { in vc4_destroy_query() 173 if (query->hwperfmon->id) { in vc4_destroy_query() [all …]
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_query.cpp | 109 struct d3d12_query *query = CALLOC_STRUCT(d3d12_query); in d3d12_create_query() local 112 if (!query) in d3d12_create_query() 115 query->type = (pipe_query_type)query_type; in d3d12_create_query() 116 query->d3d12qtype = d3d12_query_type(query_type); in d3d12_create_query() 117 query->num_queries = 16; in d3d12_create_query() 121 if (unlikely(query->d3d12qtype == D3D12_QUERY_TYPE_TIMESTAMP)) in d3d12_create_query() 122 query->num_queries = 64; in d3d12_create_query() 124 query->curr_query = 0; in d3d12_create_query() 126 switch (query->d3d12qtype) { in d3d12_create_query() 128 query->query_size = sizeof(D3D12_QUERY_DATA_PIPELINE_STATISTICS); in d3d12_create_query() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/hud/ |
D | hud_driver_query.c | 50 struct pipe_query *query[NUM_QUERIES]; member 62 if (bq->query[bq->head]) in hud_batch_query_update() 63 pipe->end_query(pipe, bq->query[bq->head]); in hud_batch_query_update() 69 struct pipe_query *query = bq->query[idx]; in hud_batch_query_update() local 80 if (!pipe->get_query_result(pipe, query, FALSE, bq->result[idx])) in hud_batch_query_update() 94 assert(bq->query[bq->head]); in hud_batch_query_update() 96 pipe->destroy_query(pipe, bq->query[bq->head]); in hud_batch_query_update() 97 bq->query[bq->head] = NULL; in hud_batch_query_update() 102 if (!bq->query[bq->head]) { in hud_batch_query_update() 103 bq->query[bq->head] = pipe->create_batch_query(pipe, in hud_batch_query_update() [all …]
|
/third_party/mesa3d/src/gallium/winsys/svga/drm/ |
D | vmw_query.c | 43 struct svga_winsys_gb_query *query; in vmw_svga_winsys_query_create() local 45 query = CALLOC_STRUCT(svga_winsys_gb_query); in vmw_svga_winsys_query_create() 46 if (!query) in vmw_svga_winsys_query_create() 52 query->buf = vmw_svga_winsys_buffer_wrap(pb_buf); in vmw_svga_winsys_query_create() 54 if (!query->buf) { in vmw_svga_winsys_query_create() 56 FREE(query); in vmw_svga_winsys_query_create() 57 query = NULL; in vmw_svga_winsys_query_create() 60 return query; in vmw_svga_winsys_query_create() 67 struct svga_winsys_gb_query *query) in vmw_svga_winsys_query_destroy() argument 69 vmw_svga_winsys_buffer_destroy(sws, query->buf); in vmw_svga_winsys_query_destroy() [all …]
|