Home
last modified time | relevance | path

Searched refs:read_errors (Results 1 – 5 of 5) sorted by relevance

/drivers/power/supply/
Dcw2015_battery.c80 unsigned int read_errors; member
268 cw_bat->read_errors++; in cw_get_soc()
269 if (cw_bat->read_errors > max_error_cycles) { in cw_get_soc()
273 cw_bat->read_errors = 0; in cw_get_soc()
277 cw_bat->read_errors = 0; in cw_get_soc()
/drivers/md/
Draid10.c2668 unsigned int read_errors = atomic_read(&rdev->read_errors); in check_decay_read_errors() local
2688 if (hours_since_last >= 8 * sizeof(read_errors)) in check_decay_read_errors()
2689 atomic_set(&rdev->read_errors, 0); in check_decay_read_errors()
2691 atomic_set(&rdev->read_errors, read_errors >> hours_since_last); in check_decay_read_errors()
2745 atomic_inc(&rdev->read_errors); in fix_read_error()
2746 if (atomic_read(&rdev->read_errors) > max_read_errors) { in fix_read_error()
2749 atomic_read(&rdev->read_errors), max_read_errors); in fix_read_error()
Dmd.h112 atomic_t read_errors; /* number of consecutive read errors that member
Draid5.c2813 if (atomic_read(&rdev->read_errors)) in raid5_end_read_request()
2814 atomic_set(&rdev->read_errors, 0); in raid5_end_read_request()
2821 atomic_inc(&rdev->read_errors); in raid5_end_read_request()
2843 } else if (atomic_read(&rdev->read_errors) in raid5_end_read_request()
2848 atomic_read(&rdev->read_errors), in raid5_end_read_request()
Dmd.c3662 atomic_set(&rdev->read_errors, 0); in md_rdev_init()