Home
last modified time | relevance | path

Searched refs:maxval (Results 1 – 16 of 16) sorted by relevance

/linux-6.1.9/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 …]
/linux-6.1.9/drivers/hid/
Dhid-pl.c42 s32 maxval; member
58 left = left * plff->maxval / 0xffff; in hid_plff_play()
59 right = right * plff->maxval / 0xffff; in hid_plff_play()
79 s32 maxval; in plff_init() local
116 maxval = 0x7f; in plff_init()
136 maxval = 0xff; in plff_init()
160 plff->maxval = maxval; in plff_init()
/linux-6.1.9/drivers/video/logo/
Dpnmtologo.c119 static unsigned int get_number255(FILE *fp, unsigned int maxval) in get_number255() argument
122 return (255*val+maxval/2)/maxval; in get_number255()
130 unsigned int maxval; in read_image() local
185 maxval = get_number(fp); in read_image()
189 logo_data[i][j].blue = get_number255(fp, maxval); in read_image()
194 maxval = get_number(fp); in read_image()
197 logo_data[i][j].red = get_number255(fp, maxval); in read_image()
198 logo_data[i][j].green = get_number255(fp, maxval); in read_image()
199 logo_data[i][j].blue = get_number255(fp, maxval); in read_image()
/linux-6.1.9/drivers/clk/actions/
Dowl-factor.c18 unsigned int maxval = 0; in _get_table_maxval() local
22 if (clkt->val > maxval) in _get_table_maxval()
23 maxval = clkt->val; in _get_table_maxval()
24 return maxval; in _get_table_maxval()
/linux-6.1.9/sound/pci/ice1712/
Dmaya44.c110 unsigned int maxval; /* volume range: 0..maxval */ member
121 .maxval = 80,
129 .maxval = 255,
137 .maxval = 91,
166 uinfo->value.integer.max = vol->maxval; in maya_vol_info()
199 if (val > vol->maxval) in maya_vol_put()
200 val = vol->maxval; in maya_vol_put()
/linux-6.1.9/sound/usb/caiaq/
Dcontrol.c27 int maxval = 63; in control_info() local
45 maxval = 127; in control_info()
49 maxval = 31; in control_info()
56 uinfo->value.integer.max = maxval; in control_info()
/linux-6.1.9/drivers/net/bonding/
Dbond_options.c545 const struct bond_opt_value *minval, *maxval; in bond_opt_check_range() local
548 maxval = bond_opt_get_flags(opt, BOND_VALFLAG_MAX); in bond_opt_check_range()
549 if (!maxval || (minval && val < minval->value) || val > maxval->value) in bond_opt_check_range()
670 const struct bond_opt_value *minval, *maxval; in bond_opt_error_interpret() local
690 maxval = bond_opt_get_flags(opt, BOND_VALFLAG_MAX); in bond_opt_error_interpret()
691 if (!maxval) in bond_opt_error_interpret()
694 opt->name, minval ? minval->value : 0, maxval->value); in bond_opt_error_interpret()
/linux-6.1.9/drivers/net/phy/
Dmicrel.c899 u16 maxval; in ksz9031_of_load_skew_values() local
917 maxval = (field_sz == 4) ? 0xf : 0x1f; in ksz9031_of_load_skew_values()
921 mask ^= maxval << (field_sz * i); in ksz9031_of_load_skew_values()
923 (((val[i] / KSZ9031_PS_TO_REG) & maxval) in ksz9031_of_load_skew_values()
1129 u16 maxval; in ksz9131_of_load_skew_values() local
1159 maxval = (field_sz == 4) ? 0xf : 0x1f; in ksz9131_of_load_skew_values()
1163 mask ^= maxval << (field_sz * i); in ksz9131_of_load_skew_values()
1165 (((val[i] / KSZ9131_STEP) & maxval) in ksz9131_of_load_skew_values()
/linux-6.1.9/drivers/scsi/libfc/
Dfc_rport.c220 unsigned int maxval) in fc_plogi_get_maxframe() argument
229 if (mfs >= FC_SP_MIN_MAX_PAYLOAD && mfs < maxval) in fc_plogi_get_maxframe()
230 maxval = mfs; in fc_plogi_get_maxframe()
232 if (mfs >= FC_SP_MIN_MAX_PAYLOAD && mfs < maxval) in fc_plogi_get_maxframe()
233 maxval = mfs; in fc_plogi_get_maxframe()
234 return maxval; in fc_plogi_get_maxframe()
/linux-6.1.9/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()
/linux-6.1.9/drivers/staging/media/atomisp/pci/
Dsh_css_params.c825 int maxval = 0; in convert_raw_to_fpn() local
845 maxval = max(maxval, val); in convert_raw_to_fpn()
851 while (maxval > 63) { in convert_raw_to_fpn()
853 maxval >>= 1; in convert_raw_to_fpn()
/linux-6.1.9/sound/pci/hda/
Dhda_codec.c1499 unsigned int maxval; in update_amp_value() local
1504 maxval = get_amp_max_value(codec, nid, dir, 0); in update_amp_value()
1505 if (val > maxval) in update_amp_value()
1506 val = maxval; in update_amp_value()
/linux-6.1.9/sound/pci/ac97/
Dac97_codec.c1217 static const unsigned int *find_db_scale(unsigned int maxval) in find_db_scale() argument
1219 switch (maxval) { in find_db_scale()
/linux-6.1.9/drivers/hwmon/
Dnct6775-core.c2456 int maxval[7] in store_pwm() local
2464 val = clamp_val(val, minval[index], maxval[index]); in store_pwm()
/linux-6.1.9/tools/power/pm-graph/
Dsleepgraph.py4276 .maxval {background-color:#FFBBBB;}\n\