• Home
  • Raw
  • Download

Lines Matching refs:setting

142 			    const struct ide_proc_devset *setting)  in ide_read_setting()  argument
144 const struct ide_devset *ds = setting->setting; in ide_read_setting()
172 const struct ide_proc_devset *setting, int val) in ide_write_setting() argument
174 const struct ide_devset *ds = setting->setting; in ide_write_setting()
181 && (val < setting->min || val > setting->max)) in ide_write_setting()
232 const struct ide_proc_devset *setting, *g, *d; in ide_settings_proc_show() local
248 setting = d++; in ide_settings_proc_show()
250 setting = g++; in ide_settings_proc_show()
252 setting = d++; in ide_settings_proc_show()
254 setting = g++; in ide_settings_proc_show()
255 mul_factor = setting->mulf ? setting->mulf(drive) : 1; in ide_settings_proc_show()
256 div_factor = setting->divf ? setting->divf(drive) : 1; in ide_settings_proc_show()
257 seq_printf(m, "%-24s", setting->name); in ide_settings_proc_show()
258 rc = ide_read_setting(drive, setting); in ide_settings_proc_show()
263 …seq_printf(m, "%-16d%-16d", (setting->min * mul_factor + div_factor - 1) / div_factor, setting->ma… in ide_settings_proc_show()
264 ds = setting->setting; in ide_settings_proc_show()
290 const struct ide_proc_devset *setting; in ide_settings_proc_write() local
359 setting = ide_find_setting(ide_generic_settings, name); in ide_settings_proc_write()
360 if (!setting) { in ide_settings_proc_write()
362 setting = ide_find_setting(drive->settings, name); in ide_settings_proc_write()
363 if (!setting) { in ide_settings_proc_write()
369 mul_factor = setting->mulf ? setting->mulf(drive) : 1; in ide_settings_proc_write()
370 div_factor = setting->divf ? setting->divf(drive) : 1; in ide_settings_proc_write()
371 ide_write_setting(drive, setting, val * div_factor / mul_factor); in ide_settings_proc_write()