Home
last modified time | relevance | path

Searched refs:maxval (Results 1 – 11 of 11) 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.c2384 #define lpfc_param_init(attr, default, minval, maxval) \ argument
2388 if (lpfc_rangecheck(val, minval, maxval)) {\
2394 "allowed range is ["#minval", "#maxval"]\n", val); \
2419 #define lpfc_param_set(attr, default, minval, maxval) \ argument
2423 if (lpfc_rangecheck(val, minval, maxval)) {\
2432 "allowed range is ["#minval", "#maxval"]\n", val); \
2543 #define lpfc_vport_param_init(attr, default, minval, maxval) \ argument
2547 if (lpfc_rangecheck(val, minval, maxval)) {\
2553 "allowed range is ["#minval", "#maxval"]\n", val); \
2575 #define lpfc_vport_param_set(attr, default, minval, maxval) \ argument
[all …]
/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()
/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()
/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()
/drivers/net/phy/
Dmicrel.c557 u16 maxval; in ksz9031_of_load_skew_values() local
575 maxval = (field_sz == 4) ? 0xf : 0x1f; in ksz9031_of_load_skew_values()
579 mask ^= maxval << (field_sz * i); in ksz9031_of_load_skew_values()
581 (((val[i] / KSZ9031_PS_TO_REG) & maxval) in ksz9031_of_load_skew_values()
788 u16 maxval; in ksz9131_of_load_skew_values() local
818 maxval = (field_sz == 4) ? 0xf : 0x1f; in ksz9131_of_load_skew_values()
822 mask ^= maxval << (field_sz * i); in ksz9131_of_load_skew_values()
824 (((val[i] / KSZ9131_STEP) & maxval) in ksz9131_of_load_skew_values()
/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()
/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()
/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()
/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()
/drivers/hwmon/
Dnct6775.c2598 int maxval[7] in store_pwm() local
2606 val = clamp_val(val, minval[index], maxval[index]); in store_pwm()