Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/block/
Dfloppy.c2411 static int transfer_size(int ssize, int max_sector, int max_size) in transfer_size() argument
2413 SUPBOUND(max_sector, fsector_t + max_size); in transfer_size()
2416 max_sector -= (max_sector % _floppy->sect) % ssize; in transfer_size()
2419 current_count_sectors = max_sector - fsector_t; in transfer_size()
2421 return max_sector; in transfer_size()
2427 static void copy_buffer(int ssize, int max_sector, int max_sector_2) in copy_buffer() argument
2435 max_sector = transfer_size(ssize, in copy_buffer()
2436 min(max_sector, max_sector_2), in copy_buffer()
2453 pr_info("max_sector=%d\n", max_sector); in copy_buffer()
2457 buffer_max = max(max_sector, buffer_max); in copy_buffer()
[all …]
/linux-6.6.21/drivers/md/
Draid1.c2667 sector_t max_sector, nr_sectors; in raid1_sync_request() local
2683 max_sector = mddev->dev_sectors; in raid1_sync_request()
2684 if (sector_nr >= max_sector) { in raid1_sync_request()
2690 if (mddev->curr_resync < max_sector) /* aborted */ in raid1_sync_request()
2711 return max_sector - sector_nr; in raid1_sync_request()
2872 max_sector = sector_nr + min_bad; in raid1_sync_request()
2873 rv = max_sector - sector_nr; in raid1_sync_request()
2879 if (max_sector > mddev->resync_max) in raid1_sync_request()
2880 max_sector = mddev->resync_max; /* Don't do IO beyond here */ in raid1_sync_request()
2881 if (max_sector > sector_nr + good_sectors) in raid1_sync_request()
[all …]
Draid10.c3299 sector_t max_sector, nr_sectors; in raid10_sync_request() local
3329 max_sector = mddev->dev_sectors; in raid10_sync_request()
3332 max_sector = mddev->resync_max_sectors; in raid10_sync_request()
3333 if (sector_nr >= max_sector) { in raid10_sync_request()
3352 if (mddev->curr_resync < max_sector) { /* aborted */ in raid10_sync_request()
3408 return (max_sector - sector_nr) + sectors_skipped; in raid10_sync_request()
3411 if (max_sector > mddev->resync_max) in raid10_sync_request()
3412 max_sector = mddev->resync_max; /* Don't do IO beyond here */ in raid10_sync_request()
3418 max_sector > (sector_nr | chunk_mask)) in raid10_sync_request()
3419 max_sector = (sector_nr | chunk_mask) + 1; in raid10_sync_request()
[all …]
Draid5.c5890 sector_t max_sector = 0, min_sector = MaxSector; in stripe_ahead_of_reshape() local
5899 max_sector = max(max_sector, sh->dev[dd_idx].sector); in stripe_ahead_of_reshape()
5904 if (!range_ahead_of_reshape(mddev, min_sector, max_sector, in stripe_ahead_of_reshape()
6537 sector_t max_sector = mddev->dev_sectors; in raid5_sync_request() local
6542 if (sector_nr >= max_sector) { in raid5_sync_request()
6550 if (mddev->curr_resync < max_sector) /* aborted */ in raid5_sync_request()
/linux-6.6.21/drivers/mtd/nand/raw/
Dmtk_nand.c106 u8 max_sector; member
416 reg = (nfc->caps->max_sector << CON_SEC_SHIFT) | CON_BRD; in mtk_nfc_read_byte()
447 reg = nfc->caps->max_sector << CON_SEC_SHIFT | CON_BWR; in mtk_nfc_write_byte()
1454 .max_sector = 16,
1463 .max_sector = 16,
1472 .max_sector = 8,