Home
last modified time | relevance | path

Searched refs:minval (Results 1 – 5 of 5) sorted by relevance

/drivers/scsi/lpfc/
Dlpfc_attr.h24 #define LPFC_ATTR(name, defval, minval, maxval, desc) \ argument
28 lpfc_param_init(name, defval, minval, maxval)
30 #define LPFC_ATTR_R(name, defval, minval, maxval, desc) \ argument
35 lpfc_param_init(name, defval, minval, maxval)\
38 #define LPFC_ATTR_RW(name, defval, minval, maxval, desc) \ argument
43 lpfc_param_init(name, defval, minval, maxval)\
44 lpfc_param_set(name, defval, minval, maxval)\
49 #define LPFC_BBCR_ATTR_RW(name, defval, minval, maxval, desc) \ argument
54 lpfc_param_init(name, defval, minval, maxval)\
59 #define LPFC_ATTR_HEX_R(name, defval, minval, maxval, desc) \ argument
[all …]
Dlpfc_attr.c2542 #define lpfc_param_init(attr, default, minval, maxval) \ argument
2546 if (lpfc_rangecheck(val, minval, maxval)) {\
2552 "allowed range is ["#minval", "#maxval"]\n", val); \
2577 #define lpfc_param_set(attr, default, minval, maxval) \ argument
2581 if (lpfc_rangecheck(val, minval, maxval)) {\
2590 "allowed range is ["#minval", "#maxval"]\n", val); \
2701 #define lpfc_vport_param_init(attr, default, minval, maxval) \ argument
2705 if (lpfc_rangecheck(val, minval, maxval)) {\
2711 "allowed range is ["#minval", "#maxval"]\n", val); \
2733 #define lpfc_vport_param_set(attr, default, minval, maxval) \ argument
[all …]
/drivers/net/bonding/
Dbond_options.c551 const struct bond_opt_value *minval, *maxval; in bond_opt_check_range() local
553 minval = bond_opt_get_flags(opt, BOND_VALFLAG_MIN); in bond_opt_check_range()
555 if (!maxval || (minval && val < minval->value) || val > maxval->value) in bond_opt_check_range()
676 const struct bond_opt_value *minval, *maxval; in bond_opt_error_interpret() local
695 minval = bond_opt_get_flags(opt, BOND_VALFLAG_MIN); in bond_opt_error_interpret()
700 opt->name, minval ? minval->value : 0, maxval->value); in bond_opt_error_interpret()
/drivers/edac/
Dskx_common.c328 int minval, int maxval, const char *name) in skx_get_dimm_attr() argument
332 if (val < minval || val > maxval) { in skx_get_dimm_attr()
/drivers/hwmon/
Dnct6775-core.c2459 int minval[7] = { 0, 1, 1, data->pwm[2][nr], 0, 0, 0 }; in store_pwm() local
2475 val = clamp_val(val, minval[index], maxval[index]); in store_pwm()