Lines Matching refs:setting
14 * To write a new value "val" into a specific setting "name", use:
107 * ide_find_setting - find a specific setting
108 * @st: setting table pointer
109 * @name: setting name
111 * Scan's the setting table for a matching entry and returns
113 * setting semaphore
129 * ide_read_setting - read an IDE setting
131 * @setting: drive setting
133 * Read a drive setting and return the value. The caller
142 const struct ide_proc_devset *setting)
144 const struct ide_devset *ds = setting->setting;
154 * ide_write_setting - read an IDE setting
156 * @setting: drive setting
159 * Write a drive setting if it is possible. The caller
172 const struct ide_proc_devset *setting, int val)
174 const struct ide_devset *ds = setting->setting;
181 && (val < setting->min || val > setting->max))
232 const struct ide_proc_devset *setting, *g, *d;
248 setting = d++;
250 setting = g++;
252 setting = d++;
254 setting = g++;
255 mul_factor = setting->mulf ? setting->mulf(drive) : 1;
256 div_factor = setting->divf ? setting->divf(drive) : 1;
257 seq_printf(m, "%-24s", setting->name);
258 rc = ide_read_setting(drive, setting);
263 seq_printf(m, "%-16d%-16d", (setting->min * mul_factor + div_factor - 1) / div_factor, setting->max * mul_factor / div_factor);
264 ds = setting->setting;
290 const struct ide_proc_devset *setting;
359 setting = ide_find_setting(ide_generic_settings, name);
360 if (!setting) {
362 setting = ide_find_setting(drive->settings, name);
363 if (!setting) {
369 mul_factor = setting->mulf ? setting->mulf(drive) : 1;
370 div_factor = setting->divf ? setting->divf(drive) : 1;
371 ide_write_setting(drive, setting, val * div_factor / mul_factor);
525 * of settings (we cannot take a setting out that is being used).