yesno
char yesno[3];
if (fgets(yesno, sizeof(yesno), stdin) == NULL)
if (yesno[0] != 'y' && yesno[0] != 'Y')
char yesno[3];
if (fgets(yesno, sizeof(yesno), stdin) == NULL)
if (yesno[0] != 'y' && yesno[0] != 'Y')
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
yesno:
"dual" : "single", yesno(dram_info->is_16gb_dimm));
GEM_TRACE("awake?=%s\n", yesno(i915->gt.awake));
err_printf(m, " IDLE?: %s\n", yesno(ee->idle));
err_printf(m, " waiting: %s\n", yesno(ee->waiting));
err_printf(m, " hangcheck stall: %s\n", yesno(ee->hangcheck_stalled));
yesno(csr->dmc_payload != NULL));
err_printf(m, "GT awake: %s\n", yesno(error->awake));
err_printf(m, "RPM wakelock: %s\n", yesno(error->wakelock));
err_printf(m, "PM suspended: %s\n", yesno(error->suspended));
drm_printf(p, "i915.%s=%s\n", name, yesno(*(const bool *)x));
drm_printf(p, "has EU power gating: %s\n", yesno(sseu->has_eu_pg));
#define PRINT_FLAG(name) drm_printf(p, "%s: %s\n", #name, yesno(info->name));
yesno(caps->has_logical_contexts));
yesno(sseu->has_slice_pg));
yesno(sseu->has_subslice_pg));
yesno(current_config->name), \
yesno(pipe_config->name)); \
yesno(current_config->name), \
yesno(pipe_config->name)); \
yesno(pipe_config->double_wide));
yesno(test_bit(TASKLET_STATE_SCHED,
yesno(test_bit(ENGINE_IRQ_BREADCRUMB,
drm_printf(m, "Idle? %s\n", yesno(intel_engine_is_idle(engine)));
ctch->owner, yesno(ctch_is_open(ctch)));
client->stage_id, yesno(is_high_priority(client)),
db_id, drbregl, yesno(valid));
yesno(scrambling), high_tmds_clock_ratio ? 40 : 10);
yesno(wm->cxsr), yesno(wm->hpll_en), yesno(wm->fbc_en));
DRM_DEBUG_DRIVER("GPLL enabled? %s\n", yesno(val & GPLLENABLE));
DRM_DEBUG_DRIVER("GPLL enabled? %s\n", yesno(val & GPLLENABLE));
yesno(intel_uc_is_using_guc_submission()),
yesno(intel_uc_is_using_huc()));
yesno(i915_modparams.guc_log_level),
yesno(GUC_LOG_LEVEL_IS_VERBOSE(i915_modparams.guc_log_level)),
SetSockOpt(int fd, int level, int option, int yesno)
(char *)&yesno, sizeof yesno);
yesno : NO { $$ = 0; }
%type <v.number> tos not yesno
| SET REQUIREORDER yesno {
int yesno;
yesno = dialog_yesno(title, prompt, 7, 73);
if (!yesno) {