Lines Matching refs:setting
535 ide_settings_t *setting = (ide_settings_t *) drive->settings; in proc_ide_read_settings() local
542 while(setting) { in proc_ide_read_settings()
543 mul_factor = setting->mul_factor; in proc_ide_read_settings()
544 div_factor = setting->div_factor; in proc_ide_read_settings()
545 out += sprintf(out, "%-24s", setting->name); in proc_ide_read_settings()
546 if ((rc = ide_read_setting(drive, setting)) >= 0) in proc_ide_read_settings()
550 …out += sprintf(out, "%-16d%-16d", (setting->min * mul_factor + div_factor - 1) / div_factor, setti… in proc_ide_read_settings()
551 if (setting->rw & SETTING_READ) in proc_ide_read_settings()
553 if (setting->rw & SETTING_WRITE) in proc_ide_read_settings()
556 setting = setting->next; in proc_ide_read_settings()
575 ide_settings_t *setting; in proc_ide_write_settings() local
630 setting = ide_find_setting_by_name(drive, name); in proc_ide_write_settings()
631 if (!setting) in proc_ide_write_settings()
637 ide_write_setting(drive, setting, val * setting->div_factor / setting->mul_factor); in proc_ide_write_settings()