Home
last modified time | relevance | path

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

12

/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()
51 if (cmdbuf_pos < (int) sizeof(cmdbuf) - 1) { in edit_read_char()
52 cmdbuf[cmdbuf_pos++] = c; in edit_read_char()
90 cmdbuf[cmdbuf_pos] = '\0'; in edit_redraw()
91 printf("\r> %s", cmdbuf); in edit_redraw()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_sanity.c528 drm_radeon_cmd_buffer_t *cmdbuf ) in radeon_emit_packets() argument
532 int *data = (int *)cmdbuf->buf; in radeon_emit_packets()
535 if (sz * sizeof(int) > cmdbuf->bufsz) { in radeon_emit_packets()
556 cmdbuf->buf += sz * sizeof(int); in radeon_emit_packets()
557 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_packets()
564 drm_radeon_cmd_buffer_t *cmdbuf ) in radeon_emit_scalars() argument
567 int *data = (int *)cmdbuf->buf; in radeon_emit_scalars()
584 cmdbuf->buf += sz * sizeof(int); in radeon_emit_scalars()
585 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_scalars()
592 drm_radeon_cmd_buffer_t *cmdbuf ) in radeon_emit_scalars2() argument
[all …]
Dradeon_common.c476 if (radeon->cmdbuf.cs->cdw && !radeon->hw.all_dirty) { in radeonCountStateEmitSize()
554 ret = radeon_cs_space_check(radeon->cmdbuf.cs); in radeon_revalidate_bos()
568 if (radeon->cmdbuf.cs->cdw && !radeon->hw.is_dirty && !radeon->hw.all_dirty) in radeonEmitState()
571 if (!radeon->cmdbuf.cs->cdw) { in radeonEmitState()
593 fprintf(stderr, "%s %d\n", __FUNCTION__, radeon->cmdbuf.cs->cdw); in radeonFlush()
600 if (!radeon->dma.flush && !radeon->cmdbuf.cs->cdw && is_empty_list(&radeon->dma.reserved)) in radeonFlush()
606 if (radeon->cmdbuf.cs->cdw) in radeonFlush()
659 if (rmesa->cmdbuf.flushing) { in rcommonFlushCmdBufLocked()
663 rmesa->cmdbuf.flushing = 1; in rcommonFlushCmdBufLocked()
671 if (rmesa->cmdbuf.cs->cdw) { in rcommonFlushCmdBufLocked()
[all …]
Dradeon_cmdbuf.h47 radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, data);\
60 radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, __offset); \
61 radeon_cs_write_reloc(b_l_rmesa->cmdbuf.cs, \
71 radeon_cs_write_table(b_l_rmesa->cmdbuf.cs, (ptr), (n));\
81 radeon_cs_end(b_l_rmesa->cmdbuf.cs, __FILE__, __FUNCTION__, __LINE__);\
109 if (radeon->cmdbuf.cs->cdw || radeon->dma.flush ) in radeon_firevertices()
Dradeon_ioctl.c148 radeon_cs_write_reloc(rmesa->radeon.cmdbuf.cs, in radeonEmitVbufPrim()
174 uint32_t *cmd = (uint32_t *)(rmesa->radeon.cmdbuf.cs->packets + rmesa->tcl.elt_cmd_start); in radeonFlushElts()
175 int dwords = (rmesa->radeon.cmdbuf.cs->section_ndw - rmesa->radeon.cmdbuf.cs->section_cdw); in radeonFlushElts()
197 rmesa->radeon.cmdbuf.cs->cdw += dwords; in radeonFlushElts()
198 rmesa->radeon.cmdbuf.cs->section_cdw += dwords; in radeonFlushElts()
201 radeon_cs_write_reloc(rmesa->radeon.cmdbuf.cs, in radeonFlushElts()
233 rmesa->tcl.elt_cmd_start = rmesa->radeon.cmdbuf.cs->cdw; in radeonAllocEltsOpenEnded()
260 rmesa->tcl.elt_cmd_offset = rmesa->radeon.cmdbuf.cs->cdw; in radeonAllocEltsOpenEnded()
263 retval = (GLushort *)(rmesa->radeon.cmdbuf.cs->packets + rmesa->tcl.elt_cmd_offset); in radeonAllocEltsOpenEnded()
351 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()
Dradeon_blit.c239 radeon_cs_space_reset_bos(r100->radeon.cmdbuf.cs); in validate_buffers()
241 ret = radeon_cs_space_check_with_bo(r100->radeon.cmdbuf.cs, in validate_buffers()
246 ret = radeon_cs_space_check_with_bo(r100->radeon.cmdbuf.cs, in validate_buffers()
Dradeon_tcl.c399 + rmesa->radeon.cmdbuf.cs->cdw; in radeon_run_tcl_render()
419 if (emit_end < rmesa->radeon.cmdbuf.cs->cdw) in radeon_run_tcl_render()
421 " We might overflow command buffer.\n", rmesa->radeon.cmdbuf.cs->cdw - emit_end); in radeon_run_tcl_render()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dr200_sanity.c806 drm_radeon_cmd_buffer_t *cmdbuf ) in radeon_emit_packets() argument
810 int *data = (int *)cmdbuf->buf; in radeon_emit_packets()
813 if (sz * sizeof(int) > cmdbuf->bufsz) { in radeon_emit_packets()
834 cmdbuf->buf += sz * sizeof(int); in radeon_emit_packets()
835 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_packets()
842 drm_radeon_cmd_buffer_t *cmdbuf ) in radeon_emit_scalars() argument
845 int *data = (int *)cmdbuf->buf; in radeon_emit_scalars()
862 cmdbuf->buf += sz * sizeof(int); in radeon_emit_scalars()
863 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_scalars()
870 drm_radeon_cmd_buffer_t *cmdbuf ) in radeon_emit_scalars2() argument
[all …]
Dradeon_common.c476 if (radeon->cmdbuf.cs->cdw && !radeon->hw.all_dirty) { in radeonCountStateEmitSize()
554 ret = radeon_cs_space_check(radeon->cmdbuf.cs); in radeon_revalidate_bos()
568 if (radeon->cmdbuf.cs->cdw && !radeon->hw.is_dirty && !radeon->hw.all_dirty) in radeonEmitState()
571 if (!radeon->cmdbuf.cs->cdw) { in radeonEmitState()
593 fprintf(stderr, "%s %d\n", __FUNCTION__, radeon->cmdbuf.cs->cdw); in radeonFlush()
600 if (!radeon->dma.flush && !radeon->cmdbuf.cs->cdw && is_empty_list(&radeon->dma.reserved)) in radeonFlush()
606 if (radeon->cmdbuf.cs->cdw) in radeonFlush()
659 if (rmesa->cmdbuf.flushing) { in rcommonFlushCmdBufLocked()
663 rmesa->cmdbuf.flushing = 1; in rcommonFlushCmdBufLocked()
671 if (rmesa->cmdbuf.cs->cdw) { in rcommonFlushCmdBufLocked()
[all …]
Dradeon_cmdbuf.h47 radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, data);\
60 radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, __offset); \
61 radeon_cs_write_reloc(b_l_rmesa->cmdbuf.cs, \
71 radeon_cs_write_table(b_l_rmesa->cmdbuf.cs, (ptr), (n));\
81 radeon_cs_end(b_l_rmesa->cmdbuf.cs, __FILE__, __FUNCTION__, __LINE__);\
109 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()
Dr200_cmdbuf.c153 radeon_cs_write_reloc(rmesa->radeon.cmdbuf.cs, in r200FireEB()
279 radeon_cs_write_reloc(rmesa->radeon.cmdbuf.cs, in r200EmitAOS()
285 radeon_cs_write_reloc(rmesa->radeon.cmdbuf.cs, in r200EmitAOS()
293 radeon_cs_write_reloc(rmesa->radeon.cmdbuf.cs, in r200EmitAOS()
Dr200_blit.c364 radeon_cs_space_reset_bos(r200->radeon.cmdbuf.cs); in validate_buffers()
366 ret = radeon_cs_space_check_with_bo(r200->radeon.cmdbuf.cs, in validate_buffers()
371 ret = radeon_cs_space_check_with_bo(r200->radeon.cmdbuf.cs, in validate_buffers()
Dr200_tcl.c463 + rmesa->radeon.cmdbuf.cs->cdw; in r200_run_tcl_render()
480 if ( emit_end < rmesa->radeon.cmdbuf.cs->cdw ) in r200_run_tcl_render()
482 " We might overflow command buffer.\n", rmesa->radeon.cmdbuf.cs->cdw - emit_end); in r200_run_tcl_render()
/external/selinux/policycoreutils/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/libpcap/tests/
Dfiltertest.c193 char *cmdbuf; in main() local
276 cmdbuf = read_infile(infile); in main()
278 cmdbuf = copy_argv(&argv[optind+1]); in main()
284 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) in main()
292 for (cp = cmdbuf; *cp != '\0'; ++cp) { in main()
298 printf("machine codes for filter: %s\n", cmdbuf); in main()
Dvalgrindtest.c217 char *cmdbuf; in main() local
284 cmdbuf = read_infile(infile); in main()
291 cmdbuf = copy_argv(&argv[optind+1]); in main()
297 cmdbuf = ""; in main()
388 if (pcap_compile(pd, &fcode, cmdbuf, 1, 0) < 0) in main()
Dcapturetest.c60 register char *cp, *cmdbuf, *device; in main() local
162 cmdbuf = copy_argv(&argv[optind]); in main()
164 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main()
Dselpolltest.c59 register char *cp, *cmdbuf, *device; in main() local
131 cmdbuf = copy_argv(&argv[optind]); in main()
133 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main()
/external/valgrind/callgrind/
Ddump.c43 static HChar *cmdbuf; variable
1228 VG_(fprintf)(fp, "cmd: %s", cmdbuf); in new_dumpfile()
1522 cmdbuf = CLG_MALLOC("cl.dump.ic.1", size + 1); // +1 for '\0' in init_cmdbuf()
1525 size = VG_(sprintf)(cmdbuf, " %s", VG_(args_the_exename)); in init_cmdbuf()
1529 cmdbuf[size++] = ' '; in init_cmdbuf()
1533 cmdbuf[size++] = '\\'; in init_cmdbuf()
1534 cmdbuf[size++] = 'n'; in init_cmdbuf()
1537 cmdbuf[size++] = '\\'; in init_cmdbuf()
1538 cmdbuf[size++] = '\\'; in init_cmdbuf()
1541 cmdbuf[size++] = arg[j]; in init_cmdbuf()
[all …]
/external/iw/
Dutil.c265 static char cmdbuf[100]; variable
271 sprintf(cmdbuf, "Unknown command (%d)", cmd); in command_name()
272 return cmdbuf; in command_name()
/external/tcpdump/
Dtcpdump.c1003 register char *cp, *infile, *cmdbuf, *device, *RFileName, *VFileName, *WFileName; in main() local
1774 cmdbuf = read_infile(infile); in main()
1776 cmdbuf = copy_argv(&argv[optind]); in main()
1778 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) in main()
1783 free(cmdbuf); in main()
2069 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) in main()
2078 free(cmdbuf); in main()
/external/kernel-headers/original/uapi/drm/
Dtegra_drm.h100 } cmdbuf; member

12