Searched refs:max_sector (Results 1 - 5 of 5) sorted by relevance
/linux-4.1.27/drivers/block/ |
H A D | floppy.c | 2387 static int transfer_size(int ssize, int max_sector, int max_size) transfer_size() argument 2389 SUPBOUND(max_sector, fsector_t + max_size); transfer_size() 2392 max_sector -= (max_sector % _floppy->sect) % ssize; transfer_size() 2395 current_count_sectors = max_sector - fsector_t; transfer_size() 2397 return max_sector; transfer_size() 2403 static void copy_buffer(int ssize, int max_sector, int max_sector_2) copy_buffer() argument 2412 max_sector = transfer_size(ssize, copy_buffer() 2413 min(max_sector, max_sector_2), copy_buffer() 2430 pr_info("max_sector=%d\n", max_sector); copy_buffer() 2434 buffer_max = max(max_sector, buffer_max); copy_buffer() 2476 max_sector -= remaining >> 9; 2522 int max_sector; make_raw_rw_request() local 2546 max_sector = _floppy->sect * _floppy->head; make_raw_rw_request() 2548 TRACK = (int)blk_rq_pos(current_req) / max_sector; make_raw_rw_request() 2549 fsector_t = (int)blk_rq_pos(current_req) % max_sector; make_raw_rw_request() 2562 max_sector = _floppy->sect; make_raw_rw_request() 2566 max_sector = 2 * _floppy->sect / 3; make_raw_rw_request() 2567 if (fsector_t >= max_sector) { make_raw_rw_request() 2611 max_sector = HEAD * _floppy->sect + tracksize; make_raw_rw_request() 2613 max_sector = _floppy->sect; make_raw_rw_request() 2616 max_sector = _floppy->sect; make_raw_rw_request() 2627 copy_buffer(1, max_sector, buffer_max); make_raw_rw_request() 2648 transfer_size(ssize, max_sector, make_raw_rw_request() 2665 direct = transfer_size(ssize, max_sector, max_size) - fsector_t; make_raw_rw_request() 2694 max_size = max_sector; /* unbounded */ make_raw_rw_request() 2703 max_sector > 2 * max_buffer_sectors + buffer_min && make_raw_rw_request() 2722 copy_buffer(ssize, max_sector, make_raw_rw_request() 2725 transfer_size(ssize, max_sector, make_raw_rw_request() 2748 fsector_t, aligned_sector_t, max_sector, max_size); make_raw_rw_request()
|
/linux-4.1.27/drivers/md/ |
H A D | raid1.c | 2490 sector_t max_sector, nr_sectors; sync_request() local 2504 max_sector = mddev->dev_sectors; sync_request() 2505 if (sector_nr >= max_sector) { sync_request() 2511 if (mddev->curr_resync < max_sector) /* aborted */ sync_request() 2527 return max_sector - sector_nr; sync_request() 2671 max_sector = sector_nr + min_bad; sync_request() 2672 rv = max_sector - sector_nr; sync_request() 2678 if (max_sector > mddev->resync_max) sync_request() 2679 max_sector = mddev->resync_max; /* Don't do IO beyond here */ sync_request() 2680 if (max_sector > sector_nr + good_sectors) sync_request() 2681 max_sector = sector_nr + good_sectors; sync_request() 2687 if (sector_nr + (len>>9) > max_sector) sync_request() 2688 len = (max_sector - sector_nr) << 9; sync_request()
|
H A D | raid10.c | 2897 sector_t max_sector, nr_sectors; sync_request() local 2925 max_sector = mddev->dev_sectors; sync_request() 2928 max_sector = mddev->resync_max_sectors; sync_request() 2929 if (sector_nr >= max_sector) { sync_request() 2945 if (mddev->curr_resync < max_sector) { /* aborted */ sync_request() 2985 return (max_sector - sector_nr) + sectors_skipped; sync_request() 2988 if (max_sector > mddev->resync_max) sync_request() 2989 max_sector = mddev->resync_max; /* Don't do IO beyond here */ sync_request() 2995 max_sector > (sector_nr | chunk_mask)) sync_request() 2996 max_sector = (sector_nr | chunk_mask) + 1; sync_request() 3347 if (sector_nr + max_sync < max_sector) sync_request() 3348 max_sector = sector_nr + max_sync; sync_request() 3352 if (sector_nr + (len>>9) > max_sector) sync_request() 3353 len = (max_sector - sector_nr) << 9; sync_request() 3407 if (sector_nr + max_sync < max_sector) sync_request() 3408 max_sector = sector_nr + max_sync; sync_request() 3410 sectors_skipped += (max_sector - sector_nr); sync_request() 3412 sector_nr = max_sector; sync_request()
|
H A D | raid5.c | 5571 sector_t max_sector = mddev->dev_sectors; sync_request() local 5576 if (sector_nr >= max_sector) { sync_request() 5584 if (mddev->curr_resync < max_sector) /* aborted */ sync_request()
|
/linux-4.1.27/drivers/usb/storage/ |
H A D | scsiglue.c | 131 /* Tapes need much higher max_sector limits, so just slave_configure()
|
Completed in 238 milliseconds