Home
last modified time | relevance | path

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

/drivers/block/
Dfloppy.c2478 static int transfer_size(int ssize, int max_sector, int max_size) in transfer_size() argument
2480 SUPBOUND(max_sector, fsector_t + max_size); in transfer_size()
2483 max_sector -= (max_sector % _floppy->sect) % ssize; in transfer_size()
2486 current_count_sectors = max_sector - fsector_t; in transfer_size()
2488 return max_sector; in transfer_size()
2494 static void copy_buffer(int ssize, int max_sector, int max_sector_2) in copy_buffer() argument
2503 max_sector = transfer_size(ssize, in copy_buffer()
2504 min(max_sector, max_sector_2), in copy_buffer()
2523 printk("max_sector=%d\n", max_sector); in copy_buffer()
2528 buffer_max = max(max_sector, buffer_max); in copy_buffer()
[all …]
/drivers/md/
Draid10.c1684 sector_t max_sector, nr_sectors; in sync_request() local
1698 max_sector = mddev->size << 1; in sync_request()
1700 max_sector = mddev->resync_max_sectors; in sync_request()
1701 if (sector_nr >= max_sector) { in sync_request()
1711 if (mddev->curr_resync < max_sector) { /* aborted */ in sync_request()
1734 return (max_sector - sector_nr) + sectors_skipped; in sync_request()
1737 if (max_sector > mddev->resync_max) in sync_request()
1738 max_sector = mddev->resync_max; /* Don't do IO beyond here */ in sync_request()
1744 max_sector > (sector_nr | conf->chunk_mask)) in sync_request()
1745 max_sector = (sector_nr | conf->chunk_mask) + 1; in sync_request()
[all …]
Draid1.c1709 sector_t max_sector, nr_sectors; in sync_request() local
1726 max_sector = mddev->size << 1; in sync_request()
1727 if (sector_nr >= max_sector) { in sync_request()
1733 if (mddev->curr_resync < max_sector) /* aborted */ in sync_request()
1749 return max_sector - sector_nr; in sync_request()
1844 sector_t rv = max_sector - sector_nr; in sync_request()
1850 if (max_sector > mddev->resync_max) in sync_request()
1851 max_sector = mddev->resync_max; /* Don't do IO beyond here */ in sync_request()
1857 if (sector_nr + (len>>9) > max_sector) in sync_request()
1858 len = (max_sector - sector_nr) << 9; in sync_request()
Draid5.c3670 sector_t max_sector = mddev->size << 1; in sync_request() local
3675 if (sector_nr >= max_sector) { in sync_request()
3683 if (mddev->curr_resync < max_sector) /* aborted */ in sync_request()