Home
last modified time | relevance | path

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

/linux-2.6.39/scripts/
Dpnmtologo.c113 static unsigned int get_number255(FILE *fp, unsigned int maxval) in get_number255() argument
116 return (255*val+maxval/2)/maxval; in get_number255()
124 unsigned int maxval; in read_image() local
178 maxval = get_number(fp); in read_image()
182 logo_data[i][j].blue = get_number255(fp, maxval); in read_image()
187 maxval = get_number(fp); in read_image()
190 logo_data[i][j].red = get_number255(fp, maxval); in read_image()
191 logo_data[i][j].green = get_number255(fp, maxval); in read_image()
192 logo_data[i][j].blue = get_number255(fp, maxval); in read_image()
/linux-2.6.39/drivers/scsi/lpfc/
Dlpfc_attr.c1399 #define lpfc_param_init(attr, default, minval, maxval) \ argument
1403 if (val >= minval && val <= maxval) {\
1409 "allowed range is ["#minval", "#maxval"]\n", val); \
1434 #define lpfc_param_set(attr, default, minval, maxval) \ argument
1438 if (val >= minval && val <= maxval) {\
1444 "allowed range is ["#minval", "#maxval"]\n", val); \
1559 #define lpfc_vport_param_init(attr, default, minval, maxval) \ argument
1563 if (val >= minval && val <= maxval) {\
1569 "allowed range is ["#minval", "#maxval"]\n", val); \
1591 #define lpfc_vport_param_set(attr, default, minval, maxval) \ argument
[all …]
/linux-2.6.39/sound/pci/ice1712/
Dmaya44.c125 unsigned int maxval; /* volume range: 0..maxval */ member
136 .maxval = 80,
144 .maxval = 255,
152 .maxval = 91,
181 uinfo->value.integer.max = vol->maxval; in maya_vol_info()
214 if (val > vol->maxval) in maya_vol_put()
215 val = vol->maxval; in maya_vol_put()
/linux-2.6.39/sound/usb/caiaq/
Dcontrol.c38 int maxval = 63; in control_info() local
56 maxval = 127; in control_info()
60 maxval = 31; in control_info()
67 uinfo->value.integer.max = maxval; in control_info()
/linux-2.6.39/drivers/scsi/libfc/
Dfc_rport.c215 unsigned int maxval) in fc_plogi_get_maxframe() argument
224 if (mfs >= FC_SP_MIN_MAX_PAYLOAD && mfs < maxval) in fc_plogi_get_maxframe()
225 maxval = mfs; in fc_plogi_get_maxframe()
227 if (mfs >= FC_SP_MIN_MAX_PAYLOAD && mfs < maxval) in fc_plogi_get_maxframe()
228 maxval = mfs; in fc_plogi_get_maxframe()
229 return maxval; in fc_plogi_get_maxframe()
/linux-2.6.39/sound/pci/hda/
Dhda_codec.c1765 unsigned int maxval; in update_amp_value() local
1770 maxval = get_amp_max_value(codec, nid, dir, 0); in update_amp_value()
1771 if (val > maxval) in update_amp_value()
1772 val = maxval; in update_amp_value()
/linux-2.6.39/sound/pci/ac97/
Dac97_codec.c1235 static const unsigned int *find_db_scale(unsigned int maxval) in find_db_scale() argument
1237 switch (maxval) { in find_db_scale()