Searched refs:cmd (Results 151 - 175 of 1763) sorted by relevance

1234567891011>>

/openbsd-current/sys/dev/acpi/
H A Dacpidock.c137 struct aml_value cmd; local
141 memset(&cmd, 0, sizeof cmd);
142 cmd.v_integer = lock;
143 cmd.type = AML_OBJTYPE_INTEGER;
144 if (aml_evalname(sc->sc_acpi, sc->sc_devnode, "_LCK", 1, &cmd,
161 struct aml_value cmd; local
165 memset(&cmd, 0, sizeof cmd);
166 cmd
185 struct aml_value cmd; local
[all...]
/openbsd-current/lib/libfido2/src/
H A Dio.c16 uint8_t cmd;
50 tx_empty(fido_dev_t *d, uint8_t cmd, int *ms) argument
60 fp->body.init.cmd = CTAP_FRAME_INIT | cmd;
70 tx_preamble(fido_dev_t *d, uint8_t cmd, const void *buf, size_t count, int *ms) argument
83 fp->body.init.cmd = CTAP_FRAME_INIT | cmd;
122 tx(fido_dev_t *d, uint8_t cmd, const unsigned char *buf, size_t count, int *ms) argument
126 if ((sent = tx_preamble(d, cmd, buf, count, ms)) == 0) {
147 transport_tx(fido_dev_t *d, uint8_t cmd, cons argument
164 fido_tx(fido_dev_t *d, uint8_t cmd, const void *buf, size_t count, int *ms) argument
198 rx_preamble(fido_dev_t *d, uint8_t cmd, struct frame *fp, int *ms) argument
227 rx(fido_dev_t *d, uint8_t cmd, unsigned char *buf, size_t count, int *ms) argument
295 transport_rx(fido_dev_t *d, uint8_t cmd, void *buf, size_t count, int *ms) argument
312 fido_rx(fido_dev_t *d, uint8_t cmd, void *buf, size_t count, int *ms) argument
[all...]
/openbsd-current/sys/dev/ic/
H A Dpckbc.c63 u_char cmd[4]; member in struct:pckbc_devcmd
320 /* set initial cmd byte */
328 printf("kbc: cmd word write error\n");
436 printf("kbc: cmd word write error\n");
560 struct pckbc_portcmd *cmd; local
562 cmd = &pckbc_portcmd[slot];
565 on ? cmd->cmd_en : cmd->cmd_dis))
606 struct pckbc_devcmd *cmd)
613 while (cmd
605 pckbc_poll_cmd1(struct pckbc_internal *t, pckbc_slot_t slot, struct pckbc_devcmd *cmd) argument
676 pckbc_poll_cmd(pckbc_tag_t self, pckbc_slot_t slot, u_char *cmd, int len, int responselen, u_char *respbuf, int slow) argument
704 struct pckbc_devcmd *cmd; local
806 struct pckbc_devcmd *cmd = TAILQ_FIRST(&q->cmdqueue); local
843 struct pckbc_devcmd *cmd = TAILQ_FIRST(&q->cmdqueue); local
897 pckbc_enqueue_cmd(pckbc_tag_t self, pckbc_slot_t slot, u_char *cmd, int len, int responselen, int sync, u_char *respbuf) argument
[all...]
/openbsd-current/sys/dev/pci/drm/amd/pm/powerplay/hwmgr/
H A Dcommon_baco.c89 if ((entry[i].cmd == CMD_WRITE) ||
90 (entry[i].cmd == CMD_READMODIFYWRITE) ||
91 (entry[i].cmd == CMD_WAITFOR))
93 if (!baco_cmd_handler(hwmgr, entry[i].cmd, reg, entry[i].mask,
109 if ((entry[i].cmd == CMD_WRITE) ||
110 (entry[i].cmd == CMD_READMODIFYWRITE) ||
111 (entry[i].cmd == CMD_WAITFOR))
114 if (!baco_cmd_handler(hwmgr, entry[i].cmd, reg, entry[i].mask,
/openbsd-current/sys/dev/pci/drm/amd/display/dc/bios/
H A Dcommand_table2.c114 union dmub_rb_cmd cmd; local
116 memset(&cmd, 0, sizeof(cmd));
118 cmd.digx_encoder_control.header.type = DMUB_CMD__VBIOS;
119 cmd.digx_encoder_control.header.sub_type =
121 cmd.digx_encoder_control.header.payload_bytes =
122 sizeof(cmd.digx_encoder_control) -
123 sizeof(cmd.digx_encoder_control.header);
124 cmd.digx_encoder_control.encoder_control.dig.stream_param = *dig;
126 dm_execute_dmub_cmd(dmcub->ctx, &cmd, DM_DMUB_WAIT_TYPE_WAI
250 union dmub_rb_cmd cmd; local
270 const struct command_table_helper *cmd = bp->cmd_helper; local
312 union dmub_rb_cmd cmd; local
332 const struct command_table_helper *cmd = bp->cmd_helper; local
421 union dmub_rb_cmd cmd; local
787 union dmub_rb_cmd cmd; local
882 const struct command_table_helper *cmd = bp->cmd_helper; local
996 union dmub_rb_cmd cmd; local
[all...]
/openbsd-current/usr.sbin/config/
H A Dcmd.h1 /* $OpenBSD: cmd.h,v 1.9 2024/05/21 05:00:48 jsg Exp $ */
31 /* Constants (returned by cmd funs) */
40 char cmd[10]; member in struct:_cmd_t
45 char *cmd; member in struct:_cmd_table_t
/openbsd-current/sys/dev/pci/drm/amd/display/dc/dcn21/
H A Ddcn21_hwseq.c143 union dmub_rb_cmd cmd; local
147 memset(&cmd, 0, sizeof(cmd));
148 cmd.abm_set_pipe.header.type = DMUB_CMD__ABM;
149 cmd.abm_set_pipe.header.sub_type = DMUB_CMD__ABM_SET_PIPE;
150 cmd.abm_set_pipe.abm_set_pipe_data.otg_inst = otg_inst;
151 cmd.abm_set_pipe.abm_set_pipe_data.pwrseq_inst = pwrseq_inst;
152 cmd.abm_set_pipe.abm_set_pipe_data.set_pipe_option = option;
153 cmd.abm_set_pipe.abm_set_pipe_data.panel_inst = panel_inst;
154 cmd
165 union dmub_rb_cmd cmd; local
[all...]
/openbsd-current/usr.bin/rdist/
H A Ddocmd.c45 * Functions for rdist that do command (cmd) related activities.
49 current cmd */
55 static void checkcmd(struct cmd *);
56 static void markfailed(struct cmd *, struct cmd *);
59 static void doarrow(struct cmd *, char **);
62 static void dodcolon(struct cmd *, char **);
63 static void docmdhost(struct cmd *, char **);
64 static void docmd(struct cmd *, int, char **);
194 checkcmd(struct cmd *cm argument
217 markassigned(struct cmd *cmd, struct cmd *cmdlist) argument
233 markfailed(struct cmd *cmd, struct cmd *cmdlist) argument
253 remotecmd(char *rhost, char *luser, char *ruser, char *cmd) argument
414 doarrow(struct cmd *cmd, char **filev) argument
716 dodcolon(struct cmd *cmd, char **filev) argument
849 docmdhost(struct cmd *cmd, char **filev) argument
903 docmd(struct cmd *cmd, int argc, char **argv) argument
[all...]
/openbsd-current/sys/dev/sdmmc/
H A Dsdmmc.c613 sdmmc_app_command(struct sdmmc_softc *sc, struct sdmmc_command *cmd) argument
638 error = sdmmc_mmc_command(sc, cmd);
648 sdmmc_mmc_command(struct sdmmc_softc *sc, struct sdmmc_command *cmd) argument
654 sdmmc_chip_exec_command(sc->sct, sc->sch, cmd);
657 sdmmc_dump_command(sc, cmd);
660 error = cmd->c_error;
662 wakeup(cmd);
673 struct sdmmc_command cmd; local
677 bzero(&cmd, sizeof cmd);
690 struct sdmmc_command cmd; local
719 struct sdmmc_command cmd; local
745 struct sdmmc_command cmd; local
772 struct sdmmc_command cmd; local
849 sdmmc_dump_command(struct sdmmc_softc *sc, struct sdmmc_command *cmd) argument
[all...]
/openbsd-current/usr.bin/vi/ex/
H A Dex_shell.c80 ex_exec_proc(SCR *sp, EXCMD *cmdp, char *cmd, const char *msg, argument
96 ex_emsg(sp, cmdp->cmd->name, EXM_NOCANON);
121 execl(O_STR(sp, O_SHELL), name, "-c", cmd, (char *)NULL); local
126 return (proc_wait(sp, pid, cmd, 0, 0));
144 proc_wait(SCR *sp, pid_t pid, const char *cmd, int silent, int okpipe) argument
167 for (; isblank(*cmd); ++cmd);
168 p = msg_print(sp, cmd, &nf);
189 for (; isblank(*cmd); ++cmd);
[all...]
H A Dex_set.c37 if (opts_set(sp, cmdp->argv, cmdp->cmd->usage))
/openbsd-current/usr.sbin/installboot/
H A Dloongson_installboot.c106 char cmd[60]; local
134 rslt = snprintf(cmd, sizeof(cmd), fsckfmt, args.fspec);
135 if (rslt >= sizeof(cmd)) {
140 rslt = system(cmd);
142 warn("system('%s') failed", cmd);
147 rslt = snprintf(cmd, sizeof(cmd), newfsfmt,
149 if (rslt >= sizeof(cmd)) {
154 rslt = system(cmd);
[all...]
/openbsd-current/sys/dev/fdt/
H A Ddwmmc.c772 dwmmc_dma_setup32(struct dwmmc_softc *sc, struct sdmmc_command *cmd) argument
779 for (seg = 0; seg < cmd->c_dmamap->dm_nsegs; seg++) {
780 bus_addr_t addr = cmd->c_dmamap->dm_segs[seg].ds_addr;
781 bus_size_t len = cmd->c_dmamap->dm_segs[seg].ds_len;
783 if (seg == cmd->c_dmamap->dm_nsegs - 1) {
797 dwmmc_dma_setup64(struct dwmmc_softc *sc, struct sdmmc_command *cmd) argument
804 for (seg = 0; seg < cmd->c_dmamap->dm_nsegs; seg++) {
805 bus_addr_t addr = cmd->c_dmamap->dm_segs[seg].ds_addr;
806 bus_size_t len = cmd->c_dmamap->dm_segs[seg].ds_len;
808 if (seg == cmd
823 dwmmc_dma_setup(struct dwmmc_softc *sc, struct sdmmc_command *cmd) argument
837 dwmmc_dma_reset(struct dwmmc_softc *sc, struct sdmmc_command *cmd) argument
889 dwmmc_exec_command(sdmmc_chipset_handle_t sch, struct sdmmc_command *cmd) argument
1067 dwmmc_transfer_data(struct dwmmc_softc *sc, struct sdmmc_command *cmd) argument
[all...]
H A Dimxesdhc.c800 imxesdhc_exec_command(sdmmc_chipset_handle_t sch, struct sdmmc_command *cmd) argument
806 * Start the command, or mark `cmd' as failed and return.
808 error = imxesdhc_start_command(sc, cmd);
810 cmd->c_error = error;
811 SET(cmd->c_flags, SCF_ITSDONE);
820 cmd->c_error = ETIMEDOUT;
821 SET(cmd->c_flags, SCF_ITSDONE);
830 if (cmd->c_error == 0 && ISSET(cmd->c_flags, SCF_RSP_PRESENT)) {
831 if (ISSET(cmd
865 imxesdhc_start_command(struct imxesdhc_softc *sc, struct sdmmc_command *cmd) argument
1001 imxesdhc_transfer_data(struct imxesdhc_softc *sc, struct sdmmc_command *cmd) argument
[all...]
/openbsd-current/sys/dev/i2c/
H A Dtsl2560.c76 u_int8_t cmd, data; local
82 cmd = TSL2560_REG_CONTROL; data = TSL2560_CONTROL_POWER;
84 sc->sc_addr, &cmd, sizeof cmd, &data, sizeof data, 0)) {
89 cmd = TSL2560_REG_TIMING;
92 sc->sc_addr, &cmd, sizeof cmd, &data, sizeof data, 0)) {
97 cmd = TSL2560_REG_ID;
99 sc->sc_addr, &cmd, sizeof cmd,
138 u_int8_t cmd, data[2]; local
[all...]
H A Dpijuice.c169 pijuice_read(struct pijuice_softc *sc, uint8_t *cmd, uint8_t cmd_len, argument
176 cmd, cmd_len, data, data_len, I2C_F_POLL);
202 uint8_t cmd; local
206 cmd = PIJUICE_CMD_FIRMWARE_VERSION;
208 if (pijuice_read(sc, &cmd, sizeof(cmd), data, sizeof(data)))
225 uint8_t cmd; local
228 cmd = PIJUICE_CMD_CHARGE_LEVEL;
230 if (pijuice_read(sc, &cmd, sizeof(cmd),
258 uint8_t cmd; local
277 uint8_t cmd; local
300 uint8_t cmd; local
[all...]
/openbsd-current/sys/dev/pci/drm/amd/display/dc/
H A Ddc_dmub_srv.c117 DC_ERROR("Error sending INBOX0 cmd\n");
122 bool dc_dmub_srv_cmd_run(struct dc_dmub_srv *dc_dmub_srv, union dmub_rb_cmd *cmd, enum dm_dmub_wait_type wait_type) argument
124 return dc_dmub_srv_cmd_run_list(dc_dmub_srv, 1, cmd, wait_type);
258 union dmub_rb_cmd cmd = { 0 }; local
260 cmd.drr_update.header.type = DMUB_CMD__FW_ASSISTED_MCLK_SWITCH;
261 cmd.drr_update.header.sub_type = DMUB_CMD__FAMS_DRR_UPDATE;
262 cmd.drr_update.dmub_optc_state_req.v_total_max = vtotal_max;
263 cmd.drr_update.dmub_optc_state_req.v_total_min = vtotal_min;
264 cmd.drr_update.dmub_optc_state_req.tg_inst = tg_inst;
266 cmd
274 union dmub_rb_cmd cmd = { 0 }; local
320 union dmub_rb_cmd cmd = { 0 }; local
383 union dmub_rb_cmd cmd = { 0 }; local
407 union dmub_rb_cmd cmd = { 0 }; local
518 populate_subvp_cmd_vblank_pipe_info(struct dc *dc, struct dc_state *context, union dmub_rb_cmd *cmd, struct pipe_ctx *vblank_pipe, uint8_t cmd_pipe_index) argument
573 update_subvp_prefetch_end_to_mall_start(struct dc *dc, struct dc_state *context, union dmub_rb_cmd *cmd, struct pipe_ctx *subvp_pipes[]) argument
625 populate_subvp_cmd_pipe_info(struct dc *dc, struct dc_state *context, union dmub_rb_cmd *cmd, struct pipe_ctx *subvp_pipe, uint8_t cmd_pipe_index) argument
719 union dmub_rb_cmd cmd; local
976 union dmub_rb_cmd cmd[2]; local
[all...]
/openbsd-current/gnu/usr.bin/binutils/gdb/cli/
H A Dcli-dump.c50 scan_expression_with_cleanup (char **cmd, const char *def) argument
52 if ((*cmd) == NULL || (**cmd) == '\0')
63 end = (*cmd) + strcspn (*cmd, " \t");
64 exp = savestring ((*cmd), end - (*cmd));
66 (*cmd) = skip_spaces (end);
86 scan_filename_with_cleanup (char **cmd, const char *defname) argument
94 if ((*cmd)
181 dump_command(char *cmd, int from_tty) argument
188 append_command(char *cmd, int from_tty) argument
226 dump_memory_to_file(char *cmd, char *mode, char *file_format) argument
277 dump_memory_command(char *cmd, char *mode) argument
283 dump_value_to_file(char *cmd, char *mode, char *file_format) argument
328 dump_value_command(char *cmd, char *mode) argument
637 srec_dump_command(char *cmd, int from_tty) argument
644 ihex_dump_command(char *cmd, int from_tty) argument
651 tekhex_dump_command(char *cmd, int from_tty) argument
658 binary_dump_command(char *cmd, int from_tty) argument
665 binary_append_command(char *cmd, int from_tty) argument
[all...]
/openbsd-current/lib/libedit/
H A Dreadline.c508 get_history_event(const char *cmd, int *cindex, int qchar) argument
517 if (cmd[idx++] != history_expansion_char)
521 if (cmd[idx] == history_expansion_char || cmd[idx] == '\0') {
524 *cindex = cmd[idx]? (idx + 1):idx;
528 if (cmd[idx] == '-') {
533 if ('0' <= cmd[idx] && cmd[idx] <= '9') {
537 while (cmd[idx] && '0' <= cmd[id
641 const char *ptr, *cmd; local
[all...]
/openbsd-current/sys/arch/hppa/gsc/
H A Dgsckbc.c119 u_char cmd[4]; member in struct:pckbc_devcmd
633 pckbc_poll_cmd1(t, slot, cmd)
636 struct pckbc_devcmd *cmd;
642 while (cmd->cmdidx < cmd->cmdlen) {
643 if (!pckbc_send_devcmd(t, slot, cmd->cmd[cmd->cmdidx])) {
645 cmd->status = EIO;
655 cmd
741 struct pckbc_devcmd *cmd; local
798 struct pckbc_devcmd *cmd = TAILQ_FIRST(&q->cmdqueue); local
837 struct pckbc_devcmd *cmd = TAILQ_FIRST(&q->cmdqueue); local
[all...]
/openbsd-current/libexec/ftpd/
H A Dmonitor.c244 enum monitor_command cmd; local
254 recv_data(fd_slave, &cmd, sizeof(cmd));
256 switch (cmd) {
380 fatalx("monitor received unknown command %d", cmd);
452 enum monitor_command cmd; local
455 cmd = CMD_USER;
456 send_data(fd_monitor, &cmd, sizeof(cmd));
467 enum monitor_command cmd; local
487 enum monitor_command cmd; local
506 enum monitor_command cmd; local
[all...]
/openbsd-current/usr.sbin/syslogd/
H A Dprivsep.c172 int i, fd, sock, cmd, addr_len, result, restart; local
252 if (may_read(sock, &cmd, sizeof(int)))
254 switch (cmd) {
275 cmd == PRIV_OPEN_PIPE ? "PIPE" : "LOG");
284 if (cmd == PRIV_OPEN_LOG)
286 else if (cmd == PRIV_OPEN_PIPE)
289 errx(1, "invalid cmd");
430 errx(1, "unknown command %d", cmd);
463 open_pipe(char *cmd) argument
471 if (cmd[
615 int cmd, fd; local
638 int cmd, fd; local
663 int cmd, fd; local
689 int cmd, fd; local
715 int cmd, res; local
733 int cmd; local
749 int cmd, ret_len; local
798 int cmd, ret_len; local
[all...]
/openbsd-current/sys/arch/octeon/stand/rdboot/
H A DMakefile7 SRCS= cmd.c disk.c rdboot.c vars.c
/openbsd-current/regress/usr.sbin/ospfd/
H A DOspfd.pm60 my @cmd = (@sudo, "/sbin/chown", "0:0", $self->{conffile});
61 system(@cmd)
62 and die ref($self), " system '@cmd' failed: $?";
73 my @cmd = (@sudo, @ktrace, $ospfd, "-dv", "-f", $self->{conffile});
74 print STDERR "execute: @cmd\n";
75 exec @cmd;
76 die ref($self), " exec '@cmd' failed: $!";
/openbsd-current/sys/arch/powerpc64/stand/rdboot/
H A DMakefile7 SRCS= cmd.c disk.c rdboot.c vars.c

Completed in 224 milliseconds

1234567891011>>