cmds
} cmds[] = {
for (cmd = cmds; cmd->cmd_func; cmd++)
for (cmd = cmds; cmd->cmd_func; cmd++)
for (i = 0; cmds[i].name != NULL; i++)
if (wcscmp(cmds[i].name, ptr) == 0) {
i = (*cmds[i].func) (el, argc, argv);
} cmds[] = {
struct cmds *cmd;
for (cmd = cmds; cmd->name != NULL; cmd++)
struct cmds *cmd;
for (cmd = cmds; cmd->name != NULL; cmd++)
} cmds[] = {
static const char *cmds[] = { "strategy", "getcache", "listwedges" };
for (i = 0; i < __arraycount(cmds); i++) {
printf("%s:\n", cmds[i]);
args[0] = __UNCONST(cmds[i]);
static struct cmdtable cmds[] = {
for (cmdtp = cmds; cmdtp->cmd; cmdtp++)
for (cmdp = cmds; cmdp->cmd; cmdp++) {
static command_t cmds[] = {
for (c = cmds; c->cmd != NULL; c++) {
if (dev->sc_tinfo[i].cmds > 2) {
i, dev->sc_tinfo[i].cmds,
dev->sc_tinfo[periph->periph_target].cmds++;
int cmds; /* #commands processed */
dispatch_cmd(const char *buf, const struct cmdtab *cmds)
for (nmatches = 0, try = cmds;
print_cmds(cmds, buf, rv == DISPATCH_CMD_NOMATCH ? 0 : nonwhitespace);
print_cmds(const struct cmdtab *cmds, const char *match, size_t matchlen)
for (try = cmds; try != NULL && try->cmd != NULL; try++) {
printf("%s%s", try != cmds ? ", " : "", try->cmd);
int dispatch_cmd(const char *buf, const struct cmdtab *cmds);
void print_cmds(const struct cmdtab *cmds, const char *match,
if (dev->sc_tinfo[i].cmds > 2) {
i, dev->sc_tinfo[i].cmds,
dev->sc_tinfo[periph->periph_target].cmds++;
int cmds; /* #commands processed */
if (sc->sc_tinfo[i].cmds > 2) {
i, sc->sc_tinfo[i].cmds,
sc->sc_tinfo[periph->periph_target].cmds++;
if (sc->sc_tinfo[i].cmds > 2) {
i, sc->sc_tinfo[i].cmds,
sc->sc_tinfo[periph->periph_target].cmds++;
int cmds; /* #commands processed */
docommand(const struct bootblk_command * const cmds, char *arg)
for (i = 0; cmds[i].c_name != NULL; i++) {
if (strcmp(arg, cmds[i].c_name) == 0) {
(*cmds[i].c_fn)(options);
dev->sc_tinfo[periph->periph_target].cmds++;
int cmds; /* #commands processed */
i, ti->cmds, ti->dconns, ti->touts);
ti->cmds++;
int cmds; /* #commands processed */
u_int8_t cmds[4];
cmds[i++] = GPIBCMD_UNL;
cmds[i++] = GPIBCMD_TAG | sc->sc_myaddr;
cmds[i++] = GPIBCMD_LAG | slave;
cmds[i++] = GPIBCMD_SDC;
cmds[i++] = GPIBCMD_SCG | sec;
if ((*sc->sc_ic->sendcmds)(sc->sc_ic->cookie, cmds, i) != i)
u_int8_t cmds[4];
cmds[i++] = GPIBCMD_UNL;
cmds[i++] = GPIBCMD_LAG | sc->sc_myaddr;
cmds[i++] = GPIBCMD_TAG | slave;
cmds[i++] = GPIBCMD_SCG | sec;
if ((*sc->sc_ic->sendcmds)(sc->sc_ic->cookie, cmds, i) != i)
cmds[0] = (slave == GPIB_BROADCAST_ADDR) ?
if ((*sc->sc_ic->sendcmds)(sc->sc_ic->cookie, cmds, 1) != 1)
uint8_t cmds[] = {
sc->sc_i2c_addr, &cc, sizeof(cc), cmds, sizeof(cmds), flags);
uint8_t cmds[] = {
cmds[0] = SSDFB_CMD_SET_PAGE_START_ADDRESS_BASE + frompage;
sc->sc_i2c_addr, &cc, sizeof(cc), cmds, sizeof(cmds), flags);
i, ti->cmds, ti->dconns, ti->touts);
ti->cmds++;
int cmds; /* #commands processed */
TAILQ_INIT(&sc->cmds);
newcbd->cmds = malloc(sizeof(struct esiop_cmd) * SIOP_NCMDPB,
if (newcbd->cmds == NULL) {
&newcbd->cmds[i].cmd_c.dmamap_data);
&newcbd->cmds[i].cmd_c.dmamap_cmd);
newcbd->cmds[i].cmd_c.siop_sc = &sc->sc_c;
newcbd->cmds[i].esiop_cbdp = newcbd;
newcbd->cmds[i].cmd_tables = (struct siop_common_xfer *)xfer;
memset(newcbd->cmds[i].cmd_tables, 0,
newcbd->cmds[i].cmd_c.dsa = dsa;
newcbd->cmds[i].cmd_c.status = CMDST_FREE;
TAILQ_INSERT_TAIL(&sc->free_list, &newcbd->cmds[i], next);
le32toh(newcbd->cmds[i].cmd_tables->t_msgin.addr),
le32toh(newcbd->cmds[i].cmd_tables->t_msgout.addr),
le32toh(newcbd->cmds[i].cmd_tables->t_status.addr));
TAILQ_INSERT_TAIL(&sc->cmds, newcbd, next);
free(newcbd->cmds, M_DEVBUF);
struct cbd_list cmds; /* list of command block descriptors */
struct esiop_cmd *cmds;
} cmds[] = {
for (i = 0; i < sizeof(cmds) / sizeof(cmds[0]); i++)
if ((le16toh(cmd) & 0x7fff) == cmds[i].cmd_code)
return (cmds[i].cmd_string);
i, ti->cmds, ti->dconns, ti->touts);
ti->cmds++;
int cmds; /* #commands processed */
ti->cmds++;
int cmds; /* # of commands processed */
if (sc->sc_tinfo[i].cmds > 2) {
i, sc->sc_tinfo[i].cmds,
sc->sc_tinfo[periph->periph_target].cmds++;
int cmds; /* number of commands processed */
TAILQ_INIT(&sc->cmds);
newcbd->cmds = malloc(sizeof(struct siop_cmd) * SIOP_NCMDPB,
if (newcbd->cmds == NULL) {
&newcbd->cmds[i].cmd_c.dmamap_data);
&newcbd->cmds[i].cmd_c.dmamap_cmd);
newcbd->cmds[i].cmd_c.siop_sc = &sc->sc_c;
newcbd->cmds[i].siop_cbdp = newcbd;
newcbd->cmds[i].cmd_tables = (struct siop_common_xfer *)xfer;
memset(newcbd->cmds[i].cmd_tables, 0, sizeof(struct siop_xfer));
newcbd->cmds[i].cmd_c.dsa = dsa;
newcbd->cmds[i].cmd_c.status = CMDST_FREE;
TAILQ_INSERT_TAIL(&sc->free_list, &newcbd->cmds[i], next);
newcbd->cmds[i].cmd_tables->t_msgin.addr),
newcbd->cmds[i].cmd_tables->t_msgout.addr),
newcbd->cmds[i].cmd_tables->t_status.addr));
TAILQ_INSERT_TAIL(&sc->cmds, newcbd, next);
free(newcbd->cmds, M_DEVBUF);
TAILQ_FOREACH(cbdp, &sc->cmds, next) {
siop_cmd = &cbdp->cmds[dsa / sizeof(struct siop_xfer)];
struct cbd_list cmds; /* list of command block descriptors */
struct siop_cmd *cmds;
ti->cmds++;
int cmds; /* # of commands processed */
TAILQ_INSERT_TAIL(&q->freequeue, &(q->cmds[i]), next);
struct pckbport_devcmd cmds[NCMD];
type = cmds & SUBCMDMASK;
type = cmds & SUBCMDMASK;
struct subcmd * volatile cmds = xcmds;
(long)files, rhost, (long)cmds);
subcmds = cmds;
for (sc = cmds; sc != NULL; sc = sc->sc_next) {
for (sc = cmds; sc != NULL; sc = sc->sc_next)
dodcolon(char **filev, struct namelist *files, char *stamp, struct subcmd *cmds)
subcmds = cmds;
for (sc = cmds; sc != NULL; sc = sc->sc_next)
extern struct cmd *cmds;
for (c = cmds; c != NULL; c = c->c_next) {
for (prev = NULL, c = cmds; c!=NULL; prev = c, c = c->c_next) {
cmds = nc;
if (cmds == NULL)
cmds = last_cmd = c;
struct cmd *cmds = NULL;
struct subcmd *cmds;
cmds = NULL;
cmds = makesubcmd(INSTALL);
cmds->sc_options = options;
cmds->sc_name = dest;
insert(NULL, files, hosts, cmds);
freesubcmd(cmds);
struct command *cmds =
if (cmds) {
commands = cmds;
struct command *cmd, *cmds;
cmds = NULL;
freecommands(cmds);
cmd->next = cmds;
cmds = cmd;
freecommands(cmds);
freecommands(cmds);
return (cmds);
static cmd_t cmds[] = {
for (cmdp = cmds ; cmdp->c_wc > 0 ; cmdp++) {