Home
last modified time | relevance | path

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

/Linux-v5.10/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.c2364 #define lpfc_param_init(attr, default, minval, maxval) \ argument
2368 if (lpfc_rangecheck(val, minval, maxval)) {\
2374 "allowed range is ["#minval", "#maxval"]\n", val); \
2399 #define lpfc_param_set(attr, default, minval, maxval) \ argument
2403 if (lpfc_rangecheck(val, minval, maxval)) {\
2412 "allowed range is ["#minval", "#maxval"]\n", val); \
2523 #define lpfc_vport_param_init(attr, default, minval, maxval) \ argument
2527 if (lpfc_rangecheck(val, minval, maxval)) {\
2533 "allowed range is ["#minval", "#maxval"]\n", val); \
2555 #define lpfc_vport_param_set(attr, default, minval, maxval) \ argument
[all …]
/Linux-v5.10/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-v5.10/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-v5.10/drivers/clk/actions/
Dowl-factor.c19 unsigned int maxval = 0; in _get_table_maxval() local
23 if (clkt->val > maxval) in _get_table_maxval()
24 maxval = clkt->val; in _get_table_maxval()
25 return maxval; in _get_table_maxval()
/Linux-v5.10/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-v5.10/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-v5.10/drivers/net/phy/
Dmicrel.c552 u16 maxval; in ksz9031_of_load_skew_values() local
570 maxval = (field_sz == 4) ? 0xf : 0x1f; in ksz9031_of_load_skew_values()
574 mask ^= maxval << (field_sz * i); in ksz9031_of_load_skew_values()
576 (((val[i] / KSZ9031_PS_TO_REG) & maxval) in ksz9031_of_load_skew_values()
783 u16 maxval; in ksz9131_of_load_skew_values() local
813 maxval = (field_sz == 4) ? 0xf : 0x1f; in ksz9131_of_load_skew_values()
817 mask ^= maxval << (field_sz * i); in ksz9131_of_load_skew_values()
819 (((val[i] / KSZ9131_STEP) & maxval) in ksz9131_of_load_skew_values()
/Linux-v5.10/drivers/net/bonding/
Dbond_options.c488 const struct bond_opt_value *minval, *maxval; in bond_opt_check_range() local
491 maxval = bond_opt_get_flags(opt, BOND_VALFLAG_MAX); in bond_opt_check_range()
492 if (!maxval || (minval && val < minval->value) || val > maxval->value) in bond_opt_check_range()
606 const struct bond_opt_value *minval, *maxval; in bond_opt_error_interpret() local
625 maxval = bond_opt_get_flags(opt, BOND_VALFLAG_MAX); in bond_opt_error_interpret()
626 if (!maxval) in bond_opt_error_interpret()
629 opt->name, minval ? minval->value : 0, maxval->value); in bond_opt_error_interpret()
/Linux-v5.10/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-v5.10/drivers/edac/
Dskx_common.c291 int minval, int maxval, const char *name) in skx_get_dimm_attr() argument
295 if (val < minval || val > maxval) { in skx_get_dimm_attr()
/Linux-v5.10/drivers/staging/media/atomisp/pci/
Dsh_css_params.c837 int maxval = 0; in convert_raw_to_fpn() local
857 maxval = max(maxval, val); in convert_raw_to_fpn()
863 while (maxval > 63) { in convert_raw_to_fpn()
865 maxval >>= 1; in convert_raw_to_fpn()
/Linux-v5.10/sound/pci/hda/
Dhda_codec.c1456 unsigned int maxval; in update_amp_value() local
1461 maxval = get_amp_max_value(codec, nid, dir, 0); in update_amp_value()
1462 if (val > maxval) in update_amp_value()
1463 val = maxval; in update_amp_value()
/Linux-v5.10/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-v5.10/drivers/hwmon/
Dnct6775.c2598 int maxval[7] in store_pwm() local
2606 val = clamp_val(val, minval[index], maxval[index]); in store_pwm()
/Linux-v5.10/tools/power/pm-graph/
Dsleepgraph.py4041 .maxval {background-color:#FFBBBB;}\n\