/openbmc/linux/drivers/scsi/lpfc/ |
H A D | lpfc_attr.h | 24 #define LPFC_ATTR(name, defval, minval, maxval, desc) \ argument 25 static uint lpfc_##name = defval;\ 28 lpfc_param_init(name, defval, minval, maxval) 30 #define LPFC_ATTR_R(name, defval, minval, maxval, desc) \ argument 31 static uint lpfc_##name = defval;\ 35 lpfc_param_init(name, defval, minval, maxval)\ 38 #define LPFC_ATTR_RW(name, defval, minval, maxval, desc) \ argument 39 static uint lpfc_##name = defval;\ 43 lpfc_param_init(name, defval, minval, maxval)\ 44 lpfc_param_set(name, defval, minval, maxval)\ [all …]
|
/openbmc/qemu/include/qemu/ |
H A D | option.h | 89 bool qemu_opt_get_bool(QemuOpts *opts, const char *name, bool defval); 90 uint64_t qemu_opt_get_number(QemuOpts *opts, const char *name, uint64_t defval); 91 uint64_t qemu_opt_get_size(QemuOpts *opts, const char *name, uint64_t defval); 92 bool qemu_opt_get_bool_del(QemuOpts *opts, const char *name, bool defval); 94 uint64_t defval); 96 uint64_t defval);
|
/openbmc/linux/tools/lib/subcmd/ |
H A D | parse-options.h | 108 intptr_t defval; member 120 …, .short_name = (s), .long_name = (l), .value = check_vtype(v, int *), .help = (h), .defval = (b) } 128 …name = (s), .long_name = (l), .value = check_vtype(v, unsigned int *), .help = (h), .defval = (i) } 129 …e = OPTION_SET_PTR, .short_name = (s), .long_name = (l), .value = (v), .help = (h), .defval = (p) } 132 …= check_vtype(v, unsigned int *), .help = (h), .flags = PARSE_OPT_OPTARG, .defval = (intptr_t)(d) } 140 .flags = PARSE_OPT_OPTARG, .defval = (intptr_t)(d) } 144 .flags = PARSE_OPT_OPTARG, .defval = (intptr_t)(d), \ 156 …ng_name = (l), .value = (v), .argh = (a), .help = (h), .callback = (f), .defval = (intptr_t)d, .fl… 159 .value = (v), .arg = (a), .help = (h), .callback = (f), .defval = (intptr_t)d,\
|
H A D | parse-options.c | 58 res = (const char *)opt->defval; in get_arg() 188 *(int *)opt->value &= ~opt->defval; in get_value() 190 *(int *)opt->value |= opt->defval; in get_value() 204 *(unsigned int *)opt->value = unset ? 0 : opt->defval; in get_value() 208 *(void **)opt->value = unset ? NULL : (void *)opt->defval; in get_value() 216 *(const char **)opt->value = (const char *)opt->defval; in get_value() 259 *(int *)opt->value = opt->defval; in get_value() 275 *(unsigned int *)opt->value = opt->defval; in get_value() 293 *(long *)opt->value = opt->defval; in get_value() 309 *(unsigned long *)opt->value = opt->defval; in get_value() [all …]
|
/openbmc/qemu/include/hw/ |
H A D | qdev-properties.h | 25 } defval; member 78 .defval.i = (_type)_defval) 87 .defval.u = (bool)_defval) 92 .defval.u = (_type)_defval) 101 .defval.u = (bool)_defval) 106 .defval.u = (bool)_defval) 144 .defval.u = 0, \
|
/openbmc/qemu/util/ |
H A D | qemu-option.c | 329 bool defval, bool del) in qemu_opt_get_bool_helper() argument 333 bool ret = defval; in qemu_opt_get_bool_helper() 355 bool qemu_opt_get_bool(QemuOpts *opts, const char *name, bool defval) in qemu_opt_get_bool() argument 357 return qemu_opt_get_bool_helper(opts, name, defval, false); in qemu_opt_get_bool() 360 bool qemu_opt_get_bool_del(QemuOpts *opts, const char *name, bool defval) in qemu_opt_get_bool_del() argument 362 return qemu_opt_get_bool_helper(opts, name, defval, true); in qemu_opt_get_bool_del() 366 uint64_t defval, bool del) in qemu_opt_get_number_helper() argument 370 uint64_t ret = defval; in qemu_opt_get_number_helper() 392 uint64_t qemu_opt_get_number(QemuOpts *opts, const char *name, uint64_t defval) in qemu_opt_get_number() argument 394 return qemu_opt_get_number_helper(opts, name, defval, false); in qemu_opt_get_number() [all …]
|
/openbmc/qemu/rust/qemu-api/src/ |
H A D | device_class.rs | 30 ($name:expr, $state:ty, $field:ident, $prop:expr, $type:expr, default = $defval:expr$(,)*) => { 37 defval: $crate::bindings::Property__bindgen_ty_1 { u: $defval as u64 },
|
H A D | zeroable.rs | 44 defval: Zeroable::ZERO,
|
/openbmc/qemu/qom/ |
H A D | object_interfaces.c | 165 QObject *defval, const char *description) in object_property_help() argument 170 if (description || defval) { in object_property_help() 179 if (defval) { in object_property_help() 180 g_autofree char *def_json = g_string_free(qobject_to_json(defval), in object_property_help() 223 prop->defval, prop->description)); in type_print_class_properties()
|
H A D | qom-qmp-cmds.c | 170 info->default_value = qobject_ref(prop->defval); in qmp_device_list_properties() 215 info->default_value = qobject_ref(prop->defval); in qmp_qom_list_properties()
|
H A D | object.c | 332 if (prop->defval) { in object_property_free() 333 qobject_unref(prop->defval); in object_property_free() 334 prop->defval = NULL; in object_property_free() 1588 Visitor *v = qobject_input_visitor_new(prop->defval); in object_property_init_defval() 1596 static void object_property_set_default(ObjectProperty *prop, QObject *defval) in object_property_set_default() argument 1598 assert(!prop->defval); in object_property_set_default() 1601 prop->defval = defval; in object_property_set_default() 2838 if (target_prop->defval) { in object_property_add_alias() 2839 op->defval = qobject_ref(target_prop->defval); in object_property_add_alias()
|
/openbmc/u-boot/env/ |
H A D | flags.c | 543 const char *defval = env_get_default(name); in env_flags_validate() local 545 if (defval == NULL) in env_flags_validate() 546 defval = ""; in env_flags_validate() 547 printf("oldval: %s defval: %s\n", oldval, defval); in env_flags_validate() 548 if (strcmp(oldval, defval) != 0) { in env_flags_validate()
|
/openbmc/linux/drivers/hwmon/ |
H A D | w83l785ts.c | 69 static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval); 217 static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval) in w83l785ts_read_value() argument 253 return defval; in w83l785ts_read_value()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | cs42l43-jack.c | 41 unsigned int defval, unsigned int *val, in cs42l43_find_index() argument 47 ret = device_property_read_u32(cs42l43->dev, prop, &defval); in cs42l43_find_index() 54 *val = defval; in cs42l43_find_index() 57 if (defval == values[i]) in cs42l43_find_index() 60 dev_err(priv->dev, "Invalid value for property %s: %d\n", prop, defval); in cs42l43_find_index()
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | oplib_32.h | 137 int prom_getintdefault(phandle node, char *property, int defval);
|
H A D | oplib_64.h | 205 int prom_getintdefault(phandle node, const char *property, int defval);
|
/openbmc/linux/sound/pci/emu10k1/ |
H A D | emufx.c | 1175 const char *name, int gpr, int defval, int defval_hr) in snd_emu10k1_init_mono_control2() argument 1185 defval = defval_hr; in snd_emu10k1_init_mono_control2() 1192 ctl->gpr[0] = gpr + 0; ctl->value[0] = defval; in snd_emu10k1_init_mono_control2() 1194 #define snd_emu10k1_init_mono_control(ctl, name, gpr, defval) \ argument 1195 snd_emu10k1_init_mono_control2(ctl, name, gpr, defval, HR_VAL(defval)) 1199 const char *name, int gpr, int defval, int defval_hr) in snd_emu10k1_init_stereo_control2() argument 1209 defval = defval_hr; in snd_emu10k1_init_stereo_control2() 1216 ctl->gpr[0] = gpr + 0; ctl->value[0] = defval; in snd_emu10k1_init_stereo_control2() 1217 ctl->gpr[1] = gpr + 1; ctl->value[1] = defval; in snd_emu10k1_init_stereo_control2() 1219 #define snd_emu10k1_init_stereo_control(ctl, name, gpr, defval) \ argument [all …]
|
/openbmc/linux/net/dccp/ |
H A D | feat.c | 1110 u8 defval, type = dccp_feat_type(feat); in dccp_feat_change_recv() local 1155 defval = dccp_feat_default_value(feat); in dccp_feat_change_recv() 1156 if (dccp_feat_preflist_match(&defval, 1, val, len) > -1) in dccp_feat_change_recv() 1157 fval.sp.vec[0] = defval; in dccp_feat_change_recv() 1193 defval = dccp_feat_default_value(feat); in dccp_feat_change_recv() 1194 if (!dccp_feat_reconcile(&entry->val, &defval, 1, server, true)) in dccp_feat_change_recv()
|
/openbmc/linux/arch/m68k/include/asm/ |
H A D | oplib.h | 236 extern int prom_getintdefault(int node, char *property, int defval);
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-mcp23s08.c | 384 int intcap, intcon, intf, i, gpio, gpio_orig, intcap_mask, defval; in mcp23s08_irq() local 404 if (mcp_read(mcp, MCP_DEFVAL, &defval)) in mcp23s08_irq() 454 (BIT(i) & defval)); in mcp23s08_irq()
|
/openbmc/qemu/hw/core/ |
H A D | qdev-properties.c | 122 qapi_enum_lookup(prop->info->enum_table, prop->defval.i)); in qdev_propinfo_set_default_value_enum() 175 object_property_set_default_bool(op, prop->defval.u); in set_default_value_bool() 285 object_property_set_default_int(op, prop->defval.i); in qdev_propinfo_set_default_value_int() 291 object_property_set_default_uint(op, prop->defval.u); in qdev_propinfo_set_default_value_uint()
|
/openbmc/u-boot/tools/env/ |
H A D | fw_env.c | 574 const char *defval = fw_getdefenv(name); in fw_env_write() local 576 if (defval == NULL) in fw_env_write() 577 defval = ""; in fw_env_write() 578 if (strcmp(oldval, defval) in fw_env_write()
|
/openbmc/qemu/include/qom/ |
H A D | object.h | 99 QObject *defval; member 2046 QObject *defval, const char *description);
|
/openbmc/openbmc/poky/scripts/lib/recipetool/ |
H A D | create_buildsys.py | 440 for define, defval in defines.items(): 441 newvalue = newvalue.replace(define, defval)
|
/openbmc/linux/tools/testing/selftests/net/openvswitch/ |
H A D | ovs-dpctl.py | 239 block_str, fieldstr, scanfmt, convert, masked=False, defval=None argument 242 return block_str, defval 248 return str_skipped, defval
|