Home
last modified time | relevance | path

Searched refs:cmdbuf (Results 1 – 25 of 65) sorted by relevance

123

/external/mesa3d/src/gallium/frontends/nine/
Dnine_queue.c85 struct nine_cmdbuf *cmdbuf = &ctx->pool[ctx->tail]; in nine_queue_wait_flush() local
89 while (!cmdbuf->full) in nine_queue_wait_flush()
94 DBG("got cmdbuf=%p\n", cmdbuf); in nine_queue_wait_flush()
97 cmdbuf->offset = 0; in nine_queue_wait_flush()
107 struct nine_cmdbuf *cmdbuf = &ctx->pool[ctx->tail]; in nine_queue_get() local
112 if (ctx->cur_instr == cmdbuf->num_instr) { in nine_queue_get()
115 DBG("freeing cmdbuf=%p\n", cmdbuf); in nine_queue_get()
116 cmdbuf->full = 0; in nine_queue_get()
126 offset = cmdbuf->offset; in nine_queue_get()
127 cmdbuf->offset += cmdbuf->instr_size[ctx->cur_instr]; in nine_queue_get()
[all …]
/external/mesa3d/src/freedreno/vulkan/
Dtu_query.c409 copy_query_value_gpu(struct tu_cmd_buffer *cmdbuf, in copy_query_value_gpu() argument
428 emit_copy_query_pool_results(struct tu_cmd_buffer *cmdbuf, in emit_copy_query_pool_results() argument
484 copy_query_value_gpu(cmdbuf, cs, result_iova, buffer_iova, in emit_copy_query_pool_results()
502 copy_query_value_gpu(cmdbuf, cs, result_iova, buffer_iova, in emit_copy_query_pool_results()
509 copy_query_value_gpu(cmdbuf, cs, available_iova, buffer_iova, in emit_copy_query_pool_results()
525 TU_FROM_HANDLE(tu_cmd_buffer, cmdbuf, commandBuffer); in tu_CmdCopyQueryPoolResults()
528 struct tu_cs *cs = &cmdbuf->cs; in tu_CmdCopyQueryPoolResults()
536 return emit_copy_query_pool_results(cmdbuf, cs, pool, firstQuery, in tu_CmdCopyQueryPoolResults()
544 emit_reset_query_pool(struct tu_cmd_buffer *cmdbuf, in emit_reset_query_pool() argument
549 struct tu_cs *cs = &cmdbuf->cs; in emit_reset_query_pool()
[all …]
/external/wpa_supplicant_8/src/utils/
Dedit.c18 static char cmdbuf[CMD_BUF_LEN]; variable
90 while (cmdbuf_pos > 0 && cmdbuf[cmdbuf_pos - 1] == ' ') in move_word_left()
92 while (cmdbuf_pos > 0 && cmdbuf[cmdbuf_pos - 1] != ' ') in move_word_left()
100 while (cmdbuf_pos < cmdbuf_len && cmdbuf[cmdbuf_pos] == ' ') in move_word_right()
102 while (cmdbuf_pos < cmdbuf_len && cmdbuf[cmdbuf_pos] != ' ') in move_word_right()
114 os_memmove(cmdbuf + cmdbuf_pos - 1, cmdbuf + cmdbuf_pos, in delete_left()
128 os_memmove(cmdbuf + cmdbuf_pos, cmdbuf + cmdbuf_pos + 1, in delete_current()
141 while (pos > 0 && cmdbuf[pos - 1] == ' ') in delete_word()
143 while (pos > 0 && cmdbuf[pos - 1] != ' ') in delete_word()
145 os_memmove(cmdbuf + pos, cmdbuf + cmdbuf_pos, cmdbuf_len - cmdbuf_pos); in delete_word()
[all …]
Dedit_simple.c17 static char cmdbuf[CMD_BUF_LEN]; variable
42 cmdbuf[cmdbuf_pos] = '\0'; in edit_read_char()
44 edit_cmd_cb(edit_cb_ctx, cmdbuf); in edit_read_char()
57 if (cmdbuf_pos < (int) sizeof(cmdbuf) - 1) { in edit_read_char()
58 cmdbuf[cmdbuf_pos++] = c; in edit_read_char()
96 cmdbuf[cmdbuf_pos] = '\0'; in edit_redraw()
97 printf("\r> %s", cmdbuf); in edit_redraw()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_sanity.c525 drm_radeon_cmd_buffer_t *cmdbuf ) in radeon_emit_packets() argument
529 int *data = (int *)cmdbuf->buf; in radeon_emit_packets()
532 if (sz * sizeof(int) > cmdbuf->bufsz) { in radeon_emit_packets()
553 cmdbuf->buf += sz * sizeof(int); in radeon_emit_packets()
554 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_packets()
561 drm_radeon_cmd_buffer_t *cmdbuf ) in radeon_emit_scalars() argument
564 int *data = (int *)cmdbuf->buf; in radeon_emit_scalars()
581 cmdbuf->buf += sz * sizeof(int); in radeon_emit_scalars()
582 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_scalars()
589 drm_radeon_cmd_buffer_t *cmdbuf ) in radeon_emit_scalars2() argument
[all …]
Dradeon_common.c427 if (radeon->cmdbuf.cs->cdw && !radeon->hw.all_dirty) { in radeonCountStateEmitSize()
505 if (radeon->cmdbuf.cs->cdw && !radeon->hw.is_dirty && !radeon->hw.all_dirty) in radeonEmitState()
508 if (!radeon->cmdbuf.cs->cdw) { in radeonEmitState()
530 fprintf(stderr, "%s %d\n", __func__, radeon->cmdbuf.cs->cdw); in radeonFlush()
537 if (!radeon->dma.flush && !radeon->cmdbuf.cs->cdw && is_empty_list(&radeon->dma.reserved)) in radeonFlush()
543 if (radeon->cmdbuf.cs->cdw) in radeonFlush()
596 if (rmesa->cmdbuf.flushing) { in rcommonFlushCmdBufLocked()
600 rmesa->cmdbuf.flushing = 1; in rcommonFlushCmdBufLocked()
608 if (rmesa->cmdbuf.cs->cdw) { in rcommonFlushCmdBufLocked()
609 ret = radeon_cs_emit(rmesa->cmdbuf.cs); in rcommonFlushCmdBufLocked()
[all …]
Dradeon_cmdbuf.h41 radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, data);\
54 radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, __offset); \
55 radeon_cs_write_reloc(b_l_rmesa->cmdbuf.cs, \
65 radeon_cs_write_table(b_l_rmesa->cmdbuf.cs, (ptr), (n));\
75 radeon_cs_end(b_l_rmesa->cmdbuf.cs, __FILE__, __func__, __LINE__);\
103 if (radeon->cmdbuf.cs->cdw || radeon->dma.flush ) in radeon_firevertices()
Dradeon_ioctl.c145 radeon_cs_write_reloc(rmesa->radeon.cmdbuf.cs, in radeonEmitVbufPrim()
171 uint32_t *cmd = (uint32_t *)(rmesa->radeon.cmdbuf.cs->packets + rmesa->tcl.elt_cmd_start); in radeonFlushElts()
172 int dwords = (rmesa->radeon.cmdbuf.cs->section_ndw - rmesa->radeon.cmdbuf.cs->section_cdw); in radeonFlushElts()
194 rmesa->radeon.cmdbuf.cs->cdw += dwords; in radeonFlushElts()
195 rmesa->radeon.cmdbuf.cs->section_cdw += dwords; in radeonFlushElts()
198 radeon_cs_write_reloc(rmesa->radeon.cmdbuf.cs, in radeonFlushElts()
230 rmesa->tcl.elt_cmd_start = rmesa->radeon.cmdbuf.cs->cdw; in radeonAllocEltsOpenEnded()
257 rmesa->tcl.elt_cmd_offset = rmesa->radeon.cmdbuf.cs->cdw; in radeonAllocEltsOpenEnded()
260 retval = (GLushort *)(rmesa->radeon.cmdbuf.cs->packets + rmesa->tcl.elt_cmd_offset); in radeonAllocEltsOpenEnded()
348 radeon_cs_write_reloc(rmesa->radeon.cmdbuf.cs, in radeonEmitAOS()
[all …]
Dradeon_queryobj.c93 if (radeon_bo_is_referenced_by_cs(query->bo, radeon->cmdbuf.cs)) in radeonWaitQuery()
140 radeon_cs_space_check_with_bo(radeon->cmdbuf.cs, in radeonEmitQueryEnd()
171 if (radeon_bo_is_referenced_by_cs(query->bo, radeon->cmdbuf.cs)) { in radeonCheckQuery()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dr200_sanity.c803 drm_radeon_cmd_buffer_t *cmdbuf ) in radeon_emit_packets() argument
807 int *data = (int *)cmdbuf->buf; in radeon_emit_packets()
810 if (sz * sizeof(int) > cmdbuf->bufsz) { in radeon_emit_packets()
831 cmdbuf->buf += sz * sizeof(int); in radeon_emit_packets()
832 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_packets()
839 drm_radeon_cmd_buffer_t *cmdbuf ) in radeon_emit_scalars() argument
842 int *data = (int *)cmdbuf->buf; in radeon_emit_scalars()
859 cmdbuf->buf += sz * sizeof(int); in radeon_emit_scalars()
860 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_scalars()
867 drm_radeon_cmd_buffer_t *cmdbuf ) in radeon_emit_scalars2() argument
[all …]
Dradeon_common.c427 if (radeon->cmdbuf.cs->cdw && !radeon->hw.all_dirty) { in radeonCountStateEmitSize()
505 if (radeon->cmdbuf.cs->cdw && !radeon->hw.is_dirty && !radeon->hw.all_dirty) in radeonEmitState()
508 if (!radeon->cmdbuf.cs->cdw) { in radeonEmitState()
530 fprintf(stderr, "%s %d\n", __func__, radeon->cmdbuf.cs->cdw); in radeonFlush()
537 if (!radeon->dma.flush && !radeon->cmdbuf.cs->cdw && is_empty_list(&radeon->dma.reserved)) in radeonFlush()
543 if (radeon->cmdbuf.cs->cdw) in radeonFlush()
596 if (rmesa->cmdbuf.flushing) { in rcommonFlushCmdBufLocked()
600 rmesa->cmdbuf.flushing = 1; in rcommonFlushCmdBufLocked()
608 if (rmesa->cmdbuf.cs->cdw) { in rcommonFlushCmdBufLocked()
609 ret = radeon_cs_emit(rmesa->cmdbuf.cs); in rcommonFlushCmdBufLocked()
[all …]
Dradeon_cmdbuf.h41 radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, data);\
54 radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, __offset); \
55 radeon_cs_write_reloc(b_l_rmesa->cmdbuf.cs, \
65 radeon_cs_write_table(b_l_rmesa->cmdbuf.cs, (ptr), (n));\
75 radeon_cs_end(b_l_rmesa->cmdbuf.cs, __FILE__, __func__, __LINE__);\
103 if (radeon->cmdbuf.cs->cdw || radeon->dma.flush ) in radeon_firevertices()
Dradeon_queryobj.c93 if (radeon_bo_is_referenced_by_cs(query->bo, radeon->cmdbuf.cs)) in radeonWaitQuery()
140 radeon_cs_space_check_with_bo(radeon->cmdbuf.cs, in radeonEmitQueryEnd()
171 if (radeon_bo_is_referenced_by_cs(query->bo, radeon->cmdbuf.cs)) { in radeonCheckQuery()
/external/selinux/sandbox/
Dseunshare.c314 static int rsynccmd(const char * src, const char *dst, char **cmdbuf) in rsynccmd() argument
363 *cmdbuf=newbuf; in rsynccmd()
366 *cmdbuf=NULL; in rsynccmd()
384 char *cmdbuf = NULL; in cleanup_tmpdir() local
389 …if (asprintf(&cmdbuf, "/usr/bin/rsync --exclude=.X11-unix -utrlHDq --delete '%s/' '%s/'", tmpdir, … in cleanup_tmpdir()
391 cmdbuf = NULL; in cleanup_tmpdir()
394 if (cmdbuf && spawn_command(cmdbuf, pwd->pw_uid) != 0) { in cleanup_tmpdir()
398 free(cmdbuf); cmdbuf = NULL; in cleanup_tmpdir()
402 if (asprintf(&cmdbuf, "/bin/rm -r '%s/' 2>/dev/null", tmpdir) == -1) { in cleanup_tmpdir()
404 cmdbuf = NULL; in cleanup_tmpdir()
[all …]
/external/mesa3d/src/gallium/drivers/zink/
Dzink_draw.c67 vkCmdPipelineBarrier(batch->cmdbuf, in zink_emit_xfb_counter_barrier()
100 vkCmdPipelineBarrier(batch->cmdbuf, in zink_emit_xfb_vertex_input_barrier()
129 screen->vk_CmdBindTransformFeedbackBuffersEXT(batch->cmdbuf, 0, ctx->num_so_targets, in zink_emit_stream_output_targets()
156 vkCmdBindVertexBuffers(batch->cmdbuf, 0, in zink_bind_vertex_buffers()
383 zink_resource_barrier(batch->cmdbuf, transitions[i], in zink_draw_vbo()
426 vkCmdSetViewport(batch->cmdbuf, 0, ctx->gfx_pipeline_state.num_viewports, ctx->viewports); in zink_draw_vbo()
428 vkCmdSetScissor(batch->cmdbuf, 0, ctx->gfx_pipeline_state.num_viewports, ctx->scissors); in zink_draw_vbo()
436 vkCmdSetScissor(batch->cmdbuf, 0, ctx->gfx_pipeline_state.num_viewports, fb_scissor); in zink_draw_vbo()
441 vkCmdSetLineWidth(batch->cmdbuf, ctx->line_width); in zink_draw_vbo()
448 vkCmdSetStencilReference(batch->cmdbuf, VK_STENCIL_FACE_FRONT_BIT, in zink_draw_vbo()
[all …]
Dzink_query.c142 vkCmdResetQueryPool(batch->cmdbuf, query->query_pool, 0, query->num_queries); in zink_create_query()
144 vkCmdResetQueryPool(batch->cmdbuf, query->xfb_query_pool, 0, query->num_queries); in zink_create_query()
316 vkCmdResetQueryPool(batch->cmdbuf, q->query_pool, 0, q->num_queries); in reset_pool()
318 vkCmdResetQueryPool(batch->cmdbuf, q->xfb_query_pool, 0, q->num_queries); in reset_pool()
335 …vkCmdWriteTimestamp(batch->cmdbuf, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, q->query_pool, q->curr_query… in begin_query()
342 zink_screen(ctx->base.screen)->vk_CmdBeginQueryIndexedEXT(batch->cmdbuf, in begin_query()
350 vkCmdBeginQuery(batch->cmdbuf, q->query_pool, q->curr_query, flags); in begin_query()
384 vkCmdWriteTimestamp(batch->cmdbuf, VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT, in end_query()
388 …screen->vk_CmdEndQueryIndexedEXT(batch->cmdbuf, q->xfb_query_pool ? q->xfb_query_pool : q->query_p… in end_query()
390 vkCmdEndQuery(batch->cmdbuf, q->query_pool, q->curr_query); in end_query()
[all …]
Dzink_batch.c68 if (vkBeginCommandBuffer(batch->cmdbuf, &cbbi) != VK_SUCCESS) in zink_start_batch()
81 if (vkEndCommandBuffer(batch->cmdbuf) != VK_SUCCESS) { in zink_end_batch()
99 si.pCommandBuffers = &batch->cmdbuf; in zink_end_batch()
Dzink_resource.c398 zink_resource_barrier(batch->cmdbuf, res, res->aspect, in zink_transfer_copy_bufimage()
403 zink_resource_barrier(batch->cmdbuf, res, res->aspect, in zink_transfer_copy_bufimage()
457 …vkCmdCopyBufferToImage(batch->cmdbuf, staging_res->buffer, res->image, res->layout, 1, &copyRegion… in zink_transfer_copy_bufimage()
459 …vkCmdCopyImageToBuffer(batch->cmdbuf, res->image, res->layout, staging_res->buffer, 1, &copyRegion… in zink_transfer_copy_bufimage()
677 zink_resource_barrier(batch->cmdbuf, src, src->aspect, in zink_resource_setup_transfer_layouts()
681 zink_resource_barrier(batch->cmdbuf, src, src->aspect, in zink_resource_setup_transfer_layouts()
685 zink_resource_barrier(batch->cmdbuf, dst, dst->aspect, in zink_resource_setup_transfer_layouts()
/external/libpcap/testprogs/
Dfiltertest.c222 char *cmdbuf; in main() local
327 cmdbuf = read_infile(infile); in main()
329 cmdbuf = copy_argv(&argv[optind+1]); in main()
340 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) in main()
348 if (cmdbuf != NULL) { in main()
350 for (cp = cmdbuf; *cp != '\0'; ++cp) { in main()
356 printf("machine codes for filter: %s\n", cmdbuf); in main()
362 free(cmdbuf); in main()
Dvalgrindtest.c264 const char *cmdbuf; in main() local
333 cmdbuf = read_infile(infile); in main()
340 cmdbuf = copy_argv(&argv[optind+1]); in main()
346 cmdbuf = ""; in main()
437 if (pcap_compile(pd, &fcode, cmdbuf, 1, 0) < 0) in main()
Dcapturetest.c100 register char *cp, *cmdbuf, *device; in main() local
248 cmdbuf = copy_argv(&argv[optind]); in main()
250 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main()
292 free(cmdbuf); in main()
Dwritecaptest.c233 char *cp, *cmdbuf = NULL, *device, *end, *savefile = NULL; in main() local
412 cmdbuf = copy_argv(&argv[optind]); in main()
414 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main()
473 if (cmdbuf != NULL) { in main()
475 free(cmdbuf); in main()
Dthreadsignaltest.c184 register char *cp, *cmdbuf, *device; in main() local
260 cmdbuf = copy_argv(&argv[optind]); in main()
262 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main()
/external/perfetto/src/traced/probes/ftrace/test/data/android_flounder_lte_LRX16F_3.10.40/events/nvhost/nvhost_cdma_push_gather/
Dformat13 field:bool cmdbuf; offset:28; size:1; signed:0;
14 field:__data_loc u32[] cmdbuf; offset:32; size:4; signed:0;
16 …>mem_id, REC->words, REC->offset, __print_hex(__get_dynamic_array(cmdbuf), REC->cmdbuf ? REC->word…
/external/perfetto/src/traced/probes/ftrace/test/data/android_flounder_lte_LRX16F_3.10.40/events/gk20a/gk20a_push_cmdbuf/
Dformat13 field:bool cmdbuf; offset:28; size:1; signed:0;
14 field:__data_loc u32[] cmdbuf; offset:32; size:4; signed:0;
16 …>mem_id, REC->words, REC->offset, __print_hex(__get_dynamic_array(cmdbuf), REC->cmdbuf ? REC->word…

123