Searched refs:max_sector (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/drivers/block/ |
D | floppy.c | 2411 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.1.9/drivers/md/ |
D | raid1.c | 2670 sector_t max_sector, nr_sectors; in raid1_sync_request() local 2686 max_sector = mddev->dev_sectors; in raid1_sync_request() 2687 if (sector_nr >= max_sector) { in raid1_sync_request() 2693 if (mddev->curr_resync < max_sector) /* aborted */ in raid1_sync_request() 2714 return max_sector - sector_nr; in raid1_sync_request() 2875 max_sector = sector_nr + min_bad; in raid1_sync_request() 2876 rv = max_sector - sector_nr; in raid1_sync_request() 2882 if (max_sector > mddev->resync_max) in raid1_sync_request() 2883 max_sector = mddev->resync_max; /* Don't do IO beyond here */ in raid1_sync_request() 2884 if (max_sector > sector_nr + good_sectors) in raid1_sync_request() [all …]
|
D | raid10.c | 3283 sector_t max_sector, nr_sectors; in raid10_sync_request() local 3312 max_sector = mddev->dev_sectors; in raid10_sync_request() 3315 max_sector = mddev->resync_max_sectors; in raid10_sync_request() 3316 if (sector_nr >= max_sector) { in raid10_sync_request() 3335 if (mddev->curr_resync < max_sector) { /* aborted */ in raid10_sync_request() 3378 return (max_sector - sector_nr) + sectors_skipped; in raid10_sync_request() 3381 if (max_sector > mddev->resync_max) in raid10_sync_request() 3382 max_sector = mddev->resync_max; /* Don't do IO beyond here */ in raid10_sync_request() 3388 max_sector > (sector_nr | chunk_mask)) in raid10_sync_request() 3389 max_sector = (sector_nr | chunk_mask) + 1; in raid10_sync_request() [all …]
|
D | raid5.c | 5896 sector_t max_sector = 0, min_sector = MaxSector; in stripe_ahead_of_reshape() local 5905 max_sector = min(max_sector, sh->dev[dd_idx].sector); in stripe_ahead_of_reshape() 5910 if (!range_ahead_of_reshape(mddev, min_sector, max_sector, in stripe_ahead_of_reshape() 6477 sector_t max_sector = mddev->dev_sectors; in raid5_sync_request() local 6482 if (sector_nr >= max_sector) { in raid5_sync_request() 6490 if (mddev->curr_resync < max_sector) /* aborted */ in raid5_sync_request()
|
/linux-6.1.9/drivers/mtd/nand/raw/ |
D | mtk_nand.c | 107 u8 max_sector; member 417 reg = (nfc->caps->max_sector << CON_SEC_SHIFT) | CON_BRD; in mtk_nfc_read_byte() 448 reg = nfc->caps->max_sector << CON_SEC_SHIFT | CON_BWR; in mtk_nfc_write_byte() 1481 .max_sector = 16, 1490 .max_sector = 16, 1499 .max_sector = 8,
|