/external/wpa_supplicant_8/src/utils/ |
D | edit.c | 18 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 …]
|
D | edit_simple.c | 17 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/ |
D | radeon_sanity.c | 528 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 …]
|
D | radeon_common.c | 476 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 …]
|
D | radeon_cmdbuf.h | 47 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()
|
D | radeon_ioctl.c | 148 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 …]
|
D | radeon_queryobj.c | 93 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()
|
D | radeon_blit.c | 239 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()
|
D | radeon_tcl.c | 399 + 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/ |
D | r200_sanity.c | 806 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 …]
|
D | radeon_common.c | 476 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 …]
|
D | radeon_cmdbuf.h | 47 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()
|
D | radeon_queryobj.c | 93 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()
|
D | r200_cmdbuf.c | 153 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()
|
D | r200_blit.c | 364 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()
|
D | r200_tcl.c | 463 + 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/ |
D | seunshare.c | 314 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/ |
D | filtertest.c | 193 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()
|
D | valgrindtest.c | 217 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()
|
D | capturetest.c | 60 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()
|
D | selpolltest.c | 59 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/ |
D | dump.c | 43 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/ |
D | util.c | 265 static char cmdbuf[100]; variable 271 sprintf(cmdbuf, "Unknown command (%d)", cmd); in command_name() 272 return cmdbuf; in command_name()
|
/external/tcpdump/ |
D | tcpdump.c | 1003 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/ |
D | tegra_drm.h | 100 } cmdbuf; member
|