cmd_table
for (i = 0; i < nitems(cmd_table); i++) {
printf("\t%s\t\t%s\n", cmd_table[i].cmd_name,
cmd_table[i].cmd_help);
for (i = 0; i < nitems(cmd_table); i++) {
if (strstr(cmd_table[i].cmd_name, cmd) == cmd_table[i].cmd_name)
const struct cmd cmd_table[] = {
#define ANY_CMD(_i) (cmd_table[(_i)].cmd_valid > 1)
#define GPT_CMD(_i) (cmd_table[(_i)].cmd_valid > 0)
st = cmd_table[i].cmd_fcn(args ? args : "", &mbr);
const struct cmd_table cmd_machine[] = {
const struct cmd_table cmd_machine[] = {
const struct cmd_table *ct = cmd_table, *cs;
ct = cmd_table;
ct = cmd_table;
whatcmd(const struct cmd_table **ct, char *p)
print_help(const struct cmd_table *ct)
print_help(cmd_table);
extern const struct cmd_table MACHINE_CMD[];
extern const struct cmd_table cmd_set[];
const struct cmd_table cmd_table[] = {
static char *whatcmd(const struct cmd_table **ct, char *);
cmd.cmd = cmd_table;
const struct cmd_table *cmd;
const struct cmd_table *ct;
const struct cmd_table cmd_set[] = {
const struct cmd_table cmd_machine[] = {
const struct cmd_table cmd_machine[] = {
struct cmd_table cmd_machine[] = {
const struct cmd_table cmd_machine[] = {
const struct cmd_table cmd_machine[] = {
const struct cmd_table *ct = cmd_table, *cs;
ct = cmd_table;
ct = cmd_table;
whatcmd(const struct cmd_table **ct, char *p)
print_help(const struct cmd_table *ct)
print_help(cmd_table);
extern const struct cmd_table MACHINE_CMD[];
extern const struct cmd_table cmd_set[];
const struct cmd_table cmd_table[] = {
static char *whatcmd(const struct cmd_table **ct, char *);
cmd.cmd = cmd_table;
const struct cmd_table *cmd;
const struct cmd_table *ct;
const struct cmd_table cmd_set[] = {
const struct cmd_table *ct = cmd_table, *cs;
ct = cmd_table;
ct = cmd_table;
whatcmd(const struct cmd_table **ct, char *p)
print_help(const struct cmd_table *ct)
print_help(cmd_table);
extern const struct cmd_table MACHINE_CMD[];
extern const struct cmd_table cmd_set[];
const struct cmd_table cmd_table[] = {
static char *whatcmd(const struct cmd_table **ct, char *);
cmd.cmd = cmd_table;
const struct cmd_table *cmd;
const struct cmd_table *ct;
const struct cmd_table cmd_set[] = {
const struct cmd_table cmd_machine[] = {
const struct db_command *cmd_table)
while (cmd_table) {
cmd_table, &cmd);
if ((cmd_table = cmd->more) != 0) {
db_cmd_list(cmd_table);
struct ahci_cmd_table cmd_table; /* 256 aligned, 512 bytes */
my->ccb->ccb_cmd_table = &my->cmd_table;
item_phys = page_phys + ((void *)&my->cmd_table - page);
int base = CU16(ctx->cmd_table + 4 + 2 * index);
ctx->cmd_table = CU16(base + ATOM_ROM_CMD_PTR);
if (!CU16(ctx->cmd_table + 4 + 2 * ATOM_CMD_INIT))
int idx = CU16(ctx->cmd_table + offset);
u16 *mct = (u16 *)(ctx->bios + ctx->cmd_table + 4);
if (U16(ctx->ctx->cmd_table + 4 + 2 * idx))
uint32_t cmd_table, data_table;
hash_add(gvt->cmd_table, &e->hlist, e->info->opcode);
hash_for_each_safe(gvt->cmd_table, i, tmp, e, hlist)
hash_init(gvt->cmd_table);
hash_for_each_possible(gvt->cmd_table, e, hlist, opcode) {
DECLARE_HASHTABLE(cmd_table, GVT_CMD_HASH_BITS);
int base = CU16(ctx->cmd_table + 4 + 2 * index);
ctx->cmd_table = CU16(base + ATOM_ROM_CMD_PTR);
if (!CU16(ctx->cmd_table + 4 + 2 * ATOM_CMD_INIT))
if (CU16(ctx->cmd_table + 4 + 2 * ATOM_CMD_SPDFANCNTL))
int idx = CU16(ctx->cmd_table + offset);
u16 *mct = (u16 *)(ctx->bios + ctx->cmd_table + 4);
if (U16(ctx->ctx->cmd_table + 4 + 2 * idx))
uint32_t cmd_table, data_table;
const struct cmd_table *ct = cmd_table, *cs;
ct = cmd_table;
ct = cmd_table;
whatcmd(const struct cmd_table **ct, char *p)
print_help(const struct cmd_table *ct)
print_help(cmd_table);
extern const struct cmd_table MACHINE_CMD[];
extern const struct cmd_table cmd_set[];
const struct cmd_table cmd_table[] = {
static char *whatcmd(const struct cmd_table **ct, char *);
cmd.cmd = cmd_table;
const struct cmd_table *cmd;
const struct cmd_table *ct;
const struct cmd_table cmd_set[] = {
for (entryp = cmd_table; *entryp != NULL; entryp++)
const struct cmd_entry *cmd_table[] = {
for (loop = cmd_table; *loop != NULL; loop++) {
for (loop = cmd_table; *loop != NULL; loop++) {
for (cmdent = cmd_table; *cmdent != NULL; cmdent++) {
cmd_table_t cmd_table[] = {
cmd_table_t *cmd_table = cmd->table;
for (i = 0; cmd_table[i].cmd != NULL; i++)
printf("\t%-16s%-20s%s\n", cmd_table[i].cmd,
cmd_table[i].opt, cmd_table[i].help);
extern cmd_table_t cmd_table[];
cmd.table = cmd_table;
for (i = 0; cmd_table[i].cmd != NULL; i++)
if (strstr(cmd_table[i].cmd, cmd.cmd) ==
cmd_table[i].cmd)
if (cmd_table[i].cmd == NULL) {
strlcpy(cmd.cmd, cmd_table[i].cmd, sizeof cmd.cmd);
st = cmd_table[i].fcn(&cmd);