Home
last modified time | relevance | path

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

12

/titanic_50/usr/src/uts/intel/io/drm/
H A Dr300_cmdbuf.c65 drm_radeon_kcmd_buffer_t *cmdbuf, int n) in r300_emit_cliprects() argument
72 nr = cmdbuf->nbox - n; in r300_emit_cliprects()
84 (&box, &cmdbuf->boxes[n + i], sizeof (box))) { in r300_emit_cliprects()
261 drm_radeon_kcmd_buffer_t *cmdbuf, drm_r300_cmd_header_t header) in r300_emit_carefully_checked_packet0() argument
278 values[i] = ((int *)(uintptr_t)cmdbuf->buf)[i]; in r300_emit_carefully_checked_packet0()
301 cmdbuf->buf += sz * 4; in r300_emit_carefully_checked_packet0()
302 cmdbuf->bufsz -= sz * 4; in r300_emit_carefully_checked_packet0()
314 drm_radeon_kcmd_buffer_t *cmdbuf, in r300_emit_packet0() argument
327 if (sz * 4 > cmdbuf->bufsz) in r300_emit_packet0()
339 cmdbuf, header)); in r300_emit_packet0()
[all …]
H A Dradeon_state.c277 drm_file_t *filp_priv, drm_radeon_kcmd_buffer_t *cmdbuf, in radeon_check_and_fixup_packet3() argument
280 u32 *cmd = (u32 *)(uintptr_t)cmdbuf->buf; in radeon_check_and_fixup_packet3()
291 if (4 * *cmdsz > cmdbuf->bufsz) { in radeon_check_and_fixup_packet3()
2821 drm_radeon_kcmd_buffer_t *cmdbuf) in radeon_emit_packets() argument
2825 u32 *data = (u32 *)(uintptr_t)cmdbuf->buf; in radeon_emit_packets()
2834 if (sz * sizeof (int) > cmdbuf->bufsz) { in radeon_emit_packets()
2849 cmdbuf->buf += sz * sizeof (int); in radeon_emit_packets()
2850 cmdbuf->bufsz -= sz * sizeof (int); in radeon_emit_packets()
2856 drm_radeon_cmd_header_t header, drm_radeon_kcmd_buffer_t *cmdbuf) in radeon_emit_scalars() argument
2867 OUT_RING_TABLE(cmdbuf->buf, sz); in radeon_emit_scalars()
[all …]
H A Di915_dma.c704 drm_i915_cmdbuffer_t cmdbuf; in i915_cmdbuffer() local
714 cmdbuf.buf = (char __user *)(uintptr_t)cmdbuffer32_t.buf; in i915_cmdbuffer()
715 cmdbuf.sz = cmdbuffer32_t.sz; in i915_cmdbuffer()
716 cmdbuf.DR1 = cmdbuffer32_t.DR1; in i915_cmdbuffer()
717 cmdbuf.DR4 = cmdbuffer32_t.DR4; in i915_cmdbuffer()
718 cmdbuf.num_cliprects = cmdbuffer32_t.num_cliprects; in i915_cmdbuffer()
719 cmdbuf.cliprects = (drm_clip_rect_t __user *) in i915_cmdbuffer()
722 DRM_COPYFROM_WITH_RETURN(&cmdbuf, (void *) data, in i915_cmdbuffer()
723 sizeof(cmdbuf)); in i915_cmdbuffer()
726 cmdbuf.buf, cmdbuf.sz, cmdbuf.num_cliprects); in i915_cmdbuffer()
[all …]
/titanic_50/usr/src/lib/libbsm/common/
H A Daudit_rexd.c163 char *cmdbuf; local
232 cmdbuf = build_cmd(cmd);
233 if (cmdbuf == NULL) {
234 cmdbuf = UNKNOWN_CMD;
240 tlen = strlen(cmdbuf) + strlen(gtxt) + 1;
246 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
250 (void) free(cmdbuf);
281 char *cmdbuf; local
350 cmdbuf = build_cmd(cmd);
351 if (cmdbuf == NULL) {
[all …]
H A Daudit_rshd.c59 audit_rshd_fail(msg, hostname, remuser, locuser, cmdbuf) in audit_rshd_fail() argument
64 char *cmdbuf; /* command line to be executed locally */
69 generate_record(remuser, locuser, cmdbuf, -1, msg);
75 audit_rshd_success(hostname, remuser, locuser, cmdbuf) in audit_rshd_success() argument
79 char *cmdbuf; /* command line to be executed locally */
84 generate_record(remuser, locuser, cmdbuf, 0, "");
95 char *cmdbuf, /* command line to be executed locally */ in generate_record() argument
140 tlen = strlen(gtxt) + strlen(cmdbuf) + 1; in generate_record()
145 (void) snprintf(tbuf, tlen, gtxt, cmdbuf); in generate_record()
H A Daudit_rexecd.c127 audit_rexecd_fail(msg, hostname, user, cmdbuf) in audit_rexecd_fail() argument
131 char *cmdbuf; /* command line to be executed locally */
215 tlen = strlen(gtxt) + strlen(cmdbuf) + 1;
220 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
239 audit_rexecd_success(hostname, user, cmdbuf) in audit_rexecd_success() argument
242 char *cmdbuf; /* command line to be executed locally */
323 tlen = strlen(gtxt) + strlen(cmdbuf) + 1;
327 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
/titanic_50/usr/src/lib/libnisdb/yptol/
H A Ddit_access.c1196 char *cmdbuf; in update_netgroup_byxxx() local
1226 cmdbuf = am(myself, cmd_length); in update_netgroup_byxxx()
1228 if (NULL == cmdbuf) { in update_netgroup_byxxx()
1242 strlcpy(cmdbuf, map->map_path, strlen(map->map_path) - in update_netgroup_byxxx()
1244 strcat(cmdbuf, NETGROUP_MAP); in update_netgroup_byxxx()
1245 netgroupmap = (map_ctrl *)shim_dbm_open(cmdbuf, in update_netgroup_byxxx()
1249 "%s: Could not update %s.", myself, cmdbuf); in update_netgroup_byxxx()
1250 sfree(cmdbuf); in update_netgroup_byxxx()
1262 strcpy(cmdbuf, "/usr/sbin/makedbm -u "); in update_netgroup_byxxx()
1265 strncat(cmdbuf, map->map_path, strlen(map->map_path) - in update_netgroup_byxxx()
[all …]
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rshd.c412 static char cmdbuf[NCARGS+1]; variable
654 "failed", hostname, remuser, locuser, cmdbuf); in doit()
666 remuser, locuser, cmdbuf); /* BSM */ in doit()
686 getstr(netf, cmdbuf, sizeof (cmdbuf), "command"); in doit()
691 locuser, remuser, cmdbuf); in doit()
734 remuser, locuser, cmdbuf); /* BSM */ in doit()
766 hostname, remuser, locuser, cmdbuf); in doit()
789 remuser, locuser, cmdbuf); in doit()
810 hostname, remuser, locuser, cmdbuf); /* BSM */ in doit()
821 locuser, cmdbuf); /* BSM */ in doit()
[all …]
H A Din.rexecd.c164 char cmdbuf[NCARGS+1], *cp; in doit() local
271 getstr(cmdbuf, sizeof (cmdbuf), "command"); in doit()
276 cmdbuf); /* BSM */ in doit()
305 user, cmdbuf); /* BSM */ in doit()
310 user, cmdbuf); /* BSM */ in doit()
318 hostname, user, cmdbuf); in doit()
341 user, cmdbuf); /* BSM */ in doit()
350 hostname, user, cmdbuf); /* BSM */ in doit()
355 (void) audit_rexecd_success(hostname, user, cmdbuf); /* BSM */ in doit()
359 user, cmdbuf); /* BSM */ in doit()
[all …]
/titanic_50/usr/src/lib/libc/amd64/sys/
H A Duadmin.c170 char *bargs, cmdbuf[256]; in uadmin() local
253 (void) snprintf(cmdbuf, sizeof (cmdbuf), in uadmin()
257 (void) snprintf(cmdbuf, sizeof (cmdbuf), in uadmin()
262 (void) system(cmdbuf); in uadmin()
/titanic_50/usr/src/lib/libc/i386/sys/
H A Duadmin.c170 char *bargs, cmdbuf[256]; in uadmin() local
253 (void) snprintf(cmdbuf, sizeof (cmdbuf), in uadmin()
257 (void) snprintf(cmdbuf, sizeof (cmdbuf), in uadmin()
262 (void) system(cmdbuf); in uadmin()
/titanic_50/usr/src/cmd/oamuser/user/
H A Dhomedir.c56 static char cmdbuf[ SBUFSZ ]; /* buffer for system call */ variable
175 (void) sprintf(cmdbuf, "cd %s && find . -print | cpio -pd %s", in create_home()
178 if (system(cmdbuf) != 0) { in create_home()
190 (void) sprintf(cmdbuf, in create_home()
193 if (system(cmdbuf) != 0) { in create_home()
264 (void) sprintf(cmdbuf, "rm -rf %s", dir); in rm_homedir()
271 return (system(cmdbuf)); in rm_homedir()
H A Dmovedir.c44 static char cmdbuf[SBUFSZ]; /* buffer for system call */ variable
66 (void) sprintf(cmdbuf, in move_dir()
70 if (system(cmdbuf) != 0) { in move_dir()
/titanic_50/usr/src/cmd/sendmail/aux/
H A Dsmrsh.c287 char cmdbuf[MAXPATHLEN]; local
293 if (sm_strlcpyn(cmdbuf, sizeof cmdbuf, 3, CMDDIR,
294 "/", cmd) >= sizeof cmdbuf)
311 "Trying %s\n", cmdbuf);
313 if (stat(cmdbuf, &st) < 0)
345 if (access(cmdbuf, X_OK) < 0)
/titanic_50/usr/src/cmd/zoneadm/
H A Dzoneadm.c1489 do_subproc(char *cmdbuf) in do_subproc() argument
1498 (void) execl("/bin/sh", "sh", "-c", cmdbuf, (char *)NULL); in do_subproc()
2008 char cmdbuf[MAXPATHLEN]; in verify_brand() local
2038 err = get_hook(bh, cmdbuf, sizeof (cmdbuf), brand_get_verify_adm, in verify_brand()
2043 if (cmdbuf[0] == '\0') in verify_brand()
2046 if (strlcat(cmdbuf, cmd_to_str(cmd_num), in verify_brand()
2047 sizeof (cmdbuf)) >= sizeof (cmdbuf)) in verify_brand()
2053 if ((strlcat(cmdbuf, " ", in verify_brand()
2054 sizeof (cmdbuf)) >= sizeof (cmdbuf)) || in verify_brand()
2055 (strlcat(cmdbuf, argv[i++], in verify_brand()
[all …]
/titanic_50/usr/src/cmd/zoneadmd/
H A Dzoneadmd.c463 char cmdbuf[2 * MAXPATHLEN]; in brand_prestatechg() local
470 if (snprintf(cmdbuf, sizeof (cmdbuf), "%s %d %d %s", pre_statechg_hook, in brand_prestatechg()
471 state, cmd, altroot) > sizeof (cmdbuf)) in brand_prestatechg()
474 if (do_subproc(zlogp, cmdbuf, NULL) != 0) in brand_prestatechg()
486 char cmdbuf[2 * MAXPATHLEN]; in brand_poststatechg() local
493 if (snprintf(cmdbuf, sizeof (cmdbuf), "%s %d %d %s", post_statechg_hook, in brand_poststatechg()
494 state, cmd, altroot) > sizeof (cmdbuf)) in brand_poststatechg()
497 if (do_subproc(zlogp, cmdbuf, NULL) != 0) in brand_poststatechg()
747 do_subproc(zlog_t *zlogp, char *cmdbuf, char **retstr) in do_subproc() argument
766 file = popen(cmdbuf, "r"); in do_subproc()
[all …]
/titanic_50/usr/src/cmd/sendmail/src/
H A Dcontrol.c274 char cmdbuf[MAXLINE]; local
321 cmd = cmdbuf;
324 cmd < &cmdbuf[sizeof(cmdbuf) - 2])
335 if (sm_strcasecmp(c->cmd_name, cmdbuf) == 0)
426 "Bad command (%s)\r\n", cmdbuf);
/titanic_50/usr/src/cmd/filesync/
H A Drules.c257 static char cmdbuf[ MAX_LINE ]; in read_cmd() local
259 cmdbuf[0] = 0; in read_cmd()
263 strcat(cmdbuf, s); in read_cmd()
264 strcat(cmdbuf, " "); in read_cmd()
268 return (cmdbuf); in read_cmd()
/titanic_50/usr/src/psm/stand/boot/sparc/common/
H A Dwbcli.c149 static char cmdbuf[2048]; /* interpreter buffer */ variable
559 (void) editline(cmdbuf, sizeof (cmdbuf)); in clprompt()
562 p = cmdbuf; in clprompt()
646 if (editline(cmdbuf, sizeof (cmdbuf)) > 0) { in cltest()
648 (void) st_interpret(cmdbuf); in cltest()
824 (void) editline(cmdbuf, sizeof (cmdbuf)); in cli_interpret()
827 } while (cli_eval_buf(cmdbuf, wanted) != CLI_EXIT); in cli_interpret()
/titanic_50/usr/src/cmd/ypcmd/yppasswd/
H A Dchangepasswd.c107 char adjbuf[BUFSIZ+1], adjbuf_new[BUFSIZ+1], cmdbuf[BUFSIZ]; in changepasswd() local
774 strcpy(cmdbuf, "/usr/ccs/bin/make"); in changepasswd()
776 strcat(cmdbuf, " "); in changepasswd()
777 strcat(cmdbuf, Argv[i]); in changepasswd()
782 "execute %s\n", cmdbuf); in changepasswd()
789 system(cmdbuf); in changepasswd()
/titanic_50/usr/src/cmd/devfsadm/
H A Dport_link.c158 static char *pmtab_parse_portname(char *cmdbuf);
782 char cmdbuf[PMTAB_MAXLINE+1]; in load_ttymondb() local
797 while (fgets(cmdbuf, PMTAB_MAXLINE, fs_popen) != NULL) { in load_ttymondb()
798 if ((portname = pmtab_parse_portname(cmdbuf)) == NULL) { in load_ttymondb()
802 "load_ttymondb: buffer \"%s\"\n", cmdbuf); in load_ttymondb()
823 if ((ptr = strchr(cmdbuf, PMTAB_SEPR)) == NULL) { in load_ttymondb()
830 if ((pma[portnum].pm_tag = strdup(cmdbuf)) == NULL) { in load_ttymondb()
/titanic_50/usr/src/uts/common/io/tpm/
H A Dtpm.c2140 uint8_t cmdbuf[270] = { in tpmrng_seed_random() local
2169 bcopy(&buflen, cmdbuf + 2, sizeof (uint32_t)); in tpmrng_seed_random()
2176 bcopy(&len32, cmdbuf + 10, sizeof (uint32_t)); in tpmrng_seed_random()
2181 bcopy(buf, cmdbuf + 14, len32); in tpmrng_seed_random()
2183 ret = itpm_command(tpm, cmdbuf, buflen); in tpmrng_seed_random()
2209 uint8_t *cmdbuf = NULL; in tpmrng_generate_random() local
2227 cmdbuf = kmem_zalloc(buflen, KM_SLEEP); in tpmrng_generate_random()
2228 bcopy(hdr, cmdbuf, sizeof (hdr)); in tpmrng_generate_random()
2232 bcopy(&len32, cmdbuf + 10, sizeof (uint32_t)); in tpmrng_generate_random()
2234 ret = itpm_command(tpm, cmdbuf, buflen); in tpmrng_generate_random()
[all …]
/titanic_50/usr/src/cmd/vi/port/
H A Dex_cmdsub.c619 unsigned char cmdbuf[BUFSIZE]; local
784 strcpy(cmdbuf, cp);
815 globp = cmdbuf;
912 strcpy(cmdbuf, cp);
943 globp = cmdbuf;
1793 unsigned char cmdbuf[100]; local
1818 strcpy(cmdbuf, "e! ");
1819 strcat(cmdbuf, tagstack[tag_depth-1].tag_file);
1820 globp = cmdbuf;
/titanic_50/usr/src/cmd/more/
H A Dmore.c974 char comchar, cmdbuf[80]; in command() local
1144 ttyin (cmdbuf, 78, '/'); in command()
1146 search (cmdbuf, f, nlines); in command()
1172 cmdbuf[0] = '+'; in command()
1173 sprintf(&cmdbuf[1], "%lld", Currline); in command()
1174 pr ("vi "); pr (cmdbuf); putchar (' '); pr (fnames[fnum]); in command()
1175 execute (filename, VI, "vi", cmdbuf, fnames[fnum], 0); in command()
1289 char cmdbuf[80]; in do_shell() local
1298 ttyin (cmdbuf, 78, '!'); in do_shell()
1299 if (expand (shell_line, cmdbuf)) { in do_shell()
/titanic_50/usr/src/cmd/pg/
H A Dpg.c489 static char cmdbuf[LINSIZ], *cmdptr; variable
535 cmdptr = cmdbuf;
780 (void) fputs(cmdbuf, stdout);
864 sptr = cmdbuf; in ttyin()
878 if (sptr > cmdbuf) { in ttyin()
879 char *oldp = cmdbuf; in ttyin()
881 p = cmdbuf; in ttyin()
921 if (sptr >= cmdbuf + sizeof (cmdbuf) || in ttyin()

12