Home
last modified time | relevance | path

Searched refs:nr_sectors (Results 1 – 25 of 42) sorted by relevance

12

/drivers/block/
Dfloppy.c2300 unsigned int nr_sectors = current_count_sectors; in floppy_end_request() local
2305 nr_sectors = req->current_nr_sectors; in floppy_end_request()
2306 if (__blk_end_request(req, error, nr_sectors << 9)) in floppy_end_request()
2366 int nr_sectors; in rw_interrupt() local
2378 nr_sectors = 0; in rw_interrupt()
2391 nr_sectors = (((R_TRACK - TRACK) * heads + in rw_interrupt()
2396 if (nr_sectors / ssize > in rw_interrupt()
2399 nr_sectors, current_count_sectors); in rw_interrupt()
2410 nr_sectors -= in_sector_offset; in rw_interrupt()
2411 INFBOUND(nr_sectors, 0); in rw_interrupt()
[all …]
Dhd.c459 i = --req->nr_sectors; in read_intr()
463 req->rq_disk->disk_name, req->sector, req->nr_sectors, in read_intr()
493 if ((req->nr_sectors <= 1) || (i & DRQ_STAT)) in write_intr()
502 i = --req->nr_sectors; in write_intr()
608 nsect = req->nr_sectors; in hd_request()
Dnbd.c113 __blk_end_request(req, error, req->nr_sectors << 9); in nbd_end_request()
234 unsigned long size = req->nr_sectors << 9; in nbd_send_req()
246 req->nr_sectors << 9); in nbd_send_req()
601 sreq.nr_sectors = 0; in nbd_ioctl()
Dps3disk.c138 __func__, __LINE__, op, n, req->nr_sectors, in ps3disk_submit_request_sg()
143 sectors = req->nr_sectors * priv->blocking_factor; in ps3disk_submit_request_sg()
268 num_sectors = req->nr_sectors; in ps3disk_interrupt()
Dcciss.c2819 (int)creq->nr_sectors); in do_cciss_request()
2846 creq->nr_sectors, seg); in do_cciss_request()
2858 c->Request.CDB[7] = (creq->nr_sectors >> 8) & 0xff; in do_cciss_request()
2859 c->Request.CDB[8] = creq->nr_sectors & 0xff; in do_cciss_request()
2874 c->Request.CDB[10]= (creq->nr_sectors >> 24) & 0xff; in do_cciss_request()
2875 c->Request.CDB[11]= (creq->nr_sectors >> 16) & 0xff; in do_cciss_request()
2876 c->Request.CDB[12]= (creq->nr_sectors >> 8) & 0xff; in do_cciss_request()
2877 c->Request.CDB[13]= creq->nr_sectors & 0xff; in do_cciss_request()
Dcpqarray.c924 printk("sector=%d, nr_sectors=%d\n", creq->sector, creq->nr_sectors); in do_ida_request()
942 DBGPX( printk("Submitting %d sectors in %d segments\n", creq->nr_sectors, seg); ); in do_ida_request()
944 c->req.hdr.blk_cnt = creq->nr_sectors; in do_ida_request()
Dataflop.c735 CURRENT->nr_sectors -= CURRENT->current_nr_sectors; in do_fd_action()
1142 CURRENT->nr_sectors -= CURRENT->current_nr_sectors; in fd_rwsec_done1()
/drivers/message/i2o/
Di2o_block.c764 if (req->nr_sectors > 16) in i2o_block_transfer()
784 if (req->nr_sectors > 16) in i2o_block_transfer()
790 if (req->nr_sectors > 16) in i2o_block_transfer()
831 *((u16 *) & cmd[7]) = cpu_to_be16(req->nr_sectors * hwsec); in i2o_block_transfer()
835 *mptr++ = cpu_to_le32(req->nr_sectors << KERNEL_SECTOR_SHIFT); in i2o_block_transfer()
841 *mptr++ = cpu_to_le32(req->nr_sectors << KERNEL_SECTOR_SHIFT); in i2o_block_transfer()
/drivers/ide/
Dide-io.c107 int ide_end_request (ide_drive_t *drive, int uptodate, int nr_sectors) in ide_end_request() argument
109 unsigned int nr_bytes = nr_sectors << 9; in ide_end_request()
139 int uptodate, int nr_sectors) in ide_end_dequeued_request() argument
143 return __ide_end_request(drive, rq, uptodate, nr_sectors << 9, 0); in ide_end_dequeued_request()
422 sg_init_one(sg, rq->buffer, rq->nr_sectors * SECTOR_SIZE); in ide_map_sg()
438 hwif->nsect = hwif->nleft = rq->nr_sectors; in ide_init_sg_cmd()
Dide-floppy.c242 int blocks = rq->nr_sectors / floppy->bs_factor; in idefloppy_create_rw_cmd()
297 __func__, (long)rq->sector, rq->nr_sectors, in ide_floppy_do_request()
311 (rq->nr_sectors % floppy->bs_factor)) { in ide_floppy_do_request()
Dide-disk.c93 u16 nsectors = (u16)rq->nr_sectors; in __ide_do_rw_disk()
101 if (block + rq->nr_sectors > 1ULL << 28) in __ide_do_rw_disk()
204 (unsigned long long)block, rq->nr_sectors, in ide_do_rw_disk()
Dide-taskfile.c334 drv->end_request(drive, 1, rq->nr_sectors); in task_end_request()
336 ide_end_request(drive, 1, rq->nr_sectors); in task_end_request()
456 rq->hard_nr_sectors = rq->nr_sectors = nsect; in ide_raw_taskfile()
Dide-cd.c647 rq->nr_sectors += n; in ide_cd_restore_request()
652 rq->hard_nr_sectors = rq->nr_sectors; in ide_cd_restore_request()
796 ide_end_request(drive, 1, rq->nr_sectors); in cdrom_newpc_intr()
923 rq->nr_sectors -= (blen >> 9); in cdrom_newpc_intr()
927 if (rq->current_nr_sectors == 0 && rq->nr_sectors) in cdrom_newpc_intr()
1008 if ((rq->nr_sectors & (sectors_per_frame - 1)) || in cdrom_start_rw()
Dtc86c001.c115 unsigned long nsectors = hwif->rq->nr_sectors; in tc86c001_dma_start()
Dpdc202xx_old.c180 word_count = (rq->nr_sectors << 8); in pdc202xx_dma_start()
/drivers/scsi/
Dsd.c388 unsigned int this_count = rq->nr_sectors; in sd_prep_fn()
415 block + rq->nr_sectors > get_capacity(disk)) { in sd_prep_fn()
418 rq->nr_sectors)); in sd_prep_fn()
465 if ((block & 1) || (rq->nr_sectors & 1)) { in sd_prep_fn()
475 if ((block & 3) || (rq->nr_sectors & 3)) { in sd_prep_fn()
485 if ((block & 7) || (rq->nr_sectors & 7)) { in sd_prep_fn()
517 rq->nr_sectors)); in sd_prep_fn()
Dsr.c362 rq->nr_sectors)); in sr_prep_fn()
438 this_count, rq->nr_sectors)); in sr_prep_fn()
Du14-34f.c1617 ioseek += SCpnt->request->nr_sectors; in reorder()
1645 ll[n] = SCpnt->request->nr_sectors; pl[n] = SCpnt->serial_number; in reorder()
1673 SCpnt->request->sector, SCpnt->request->nr_sectors, cursec, in reorder()
/drivers/mmc/card/
Dblock.c296 brq.data.blocks = req->nr_sectors; in mmc_blk_issue_rq()
346 if (brq.data.blocks != req->nr_sectors) { in mmc_blk_issue_rq()
400 (unsigned)req->nr_sectors, status); in mmc_blk_issue_rq()
/drivers/md/
Draid1.c1709 sector_t max_sector, nr_sectors; in sync_request() local
1852 nr_sectors = 0; in sync_request()
1893 nr_sectors += len>>9; in sync_request()
1898 r1_bio->sectors = nr_sectors; in sync_request()
1908 md_sync_acct(bio->bi_bdev, nr_sectors); in sync_request()
1915 md_sync_acct(bio->bi_bdev, nr_sectors); in sync_request()
1919 return nr_sectors; in sync_request()
Draid10.c1684 sector_t max_sector, nr_sectors; in sync_request() local
1956 nr_sectors = 0; in sync_request()
1983 nr_sectors += len>>9; in sync_request()
1987 r10_bio->sectors = nr_sectors; in sync_request()
1995 r10_bio->sectors = nr_sectors; in sync_request()
1998 md_sync_acct(bio->bi_bdev, nr_sectors); in sync_request()
2009 return sectors_skipped + nr_sectors; in sync_request()
/drivers/s390/block/
Ddasd_fba.c270 last_rec = (req->sector + req->nr_sectors - 1) >> block->s2b_shift; in dasd_fba_build_cp()
308 block->bp_block, req->sector, req->nr_sectors); in dasd_fba_build_cp()
/drivers/cdrom/
Dgdrom.c588 block_cnt = req->nr_sectors/GD_TO_BLK; in gdrom_readdisk_dma()
664 if (req->nr_sectors) in gdrom_request()
/drivers/scsi/lpfc/
Dlpfc_scsi.c1319 cmd->request->nr_sectors, bgstat, bghm); in lpfc_parse_bg_err()
2380 cmnd->request->nr_sectors); in lpfc_queuecommand()
2386 cmnd->request->nr_sectors, in lpfc_queuecommand()
2408 cmnd->request->nr_sectors); in lpfc_queuecommand()
2414 cmnd->request->nr_sectors, cmnd); in lpfc_queuecommand()
/drivers/s390/char/
Dtape_block.c97 (req->sector + req->nr_sectors) >> TAPEBLOCK_HSEC_S2B; in __tapeblock_end_request()

12