Home
last modified time | relevance | path

Searched refs:new_sectors (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/ata/
H A Dlibata-core.c1201 * @new_sectors: new max sectors value to set for the device
1203 * Set max sectors of @dev to @new_sectors.
1210 static int ata_set_max_sectors(struct ata_device *dev, u64 new_sectors) in ata_set_max_sectors() argument
1216 new_sectors--; in ata_set_max_sectors()
1226 tf.hob_lbal = (new_sectors >> 24) & 0xff; in ata_set_max_sectors()
1227 tf.hob_lbam = (new_sectors >> 32) & 0xff; in ata_set_max_sectors()
1228 tf.hob_lbah = (new_sectors >> 40) & 0xff; in ata_set_max_sectors()
1232 tf.device |= (new_sectors >> 24) & 0xf; in ata_set_max_sectors()
1238 tf.lbal = (new_sectors >> 0) & 0xff; in ata_set_max_sectors()
1239 tf.lbam = (new_sectors >> in ata_set_max_sectors()
1342 u64 new_sectors = ata_id_n_sectors(dev->id); ata_hpa_resize() local
[all...]
/kernel/linux/linux-6.6/drivers/ata/
H A Dlibata-core.c1232 * @new_sectors: new max sectors value to set for the device
1234 * Set max sectors of @dev to @new_sectors.
1241 static int ata_set_max_sectors(struct ata_device *dev, u64 new_sectors) in ata_set_max_sectors() argument
1247 new_sectors--; in ata_set_max_sectors()
1257 tf.hob_lbal = (new_sectors >> 24) & 0xff; in ata_set_max_sectors()
1258 tf.hob_lbam = (new_sectors >> 32) & 0xff; in ata_set_max_sectors()
1259 tf.hob_lbah = (new_sectors >> 40) & 0xff; in ata_set_max_sectors()
1263 tf.device |= (new_sectors >> 24) & 0xf; in ata_set_max_sectors()
1269 tf.lbal = (new_sectors >> 0) & 0xff; in ata_set_max_sectors()
1270 tf.lbam = (new_sectors >> in ata_set_max_sectors()
1372 u64 new_sectors = ata_id_n_sectors(dev->id); ata_hpa_resize() local
[all...]
/kernel/linux/linux-5.10/drivers/md/
H A Draid5.c2426 static int resize_chunks(struct r5conf *conf, int new_disks, int new_sectors) in resize_chunks() argument
2434 * should equal to new_disks and new_sectors in resize_chunks()
2437 conf->scribble_sectors >= new_sectors) in resize_chunks()
2447 new_sectors / RAID5_STRIPE_SECTORS(conf)); in resize_chunks()
2456 conf->scribble_sectors = new_sectors; in resize_chunks()
/kernel/linux/linux-6.6/drivers/md/
H A Draid5.c2497 static int resize_chunks(struct r5conf *conf, int new_disks, int new_sectors) in resize_chunks() argument
2505 * should equal to new_disks and new_sectors in resize_chunks()
2508 conf->scribble_sectors >= new_sectors) in resize_chunks()
2518 new_sectors / RAID5_STRIPE_SECTORS(conf)); in resize_chunks()
2527 conf->scribble_sectors = new_sectors; in resize_chunks()

Completed in 27 milliseconds