Home
last modified time | relevance | path

Searched refs:blk_rq_bytes (Results 1 – 25 of 33) sorted by relevance

12

/linux-2.6.39/drivers/scsi/libsas/
Dsas_host_smp.c141 if (blk_rq_bytes(req) < 8 || blk_rq_bytes(rsp) < 8) in sas_smp_host_handler()
144 if (bio_offset(req->bio) + blk_rq_bytes(req) > PAGE_SIZE || in sas_smp_host_handler()
145 bio_offset(rsp->bio) + blk_rq_bytes(rsp) > PAGE_SIZE) { in sas_smp_host_handler()
151 req_data = kzalloc(blk_rq_bytes(req), GFP_KERNEL); in sas_smp_host_handler()
155 resp_data = kzalloc(max(blk_rq_bytes(rsp), 128U), GFP_KERNEL); in sas_smp_host_handler()
164 memcpy(req_data, buf, blk_rq_bytes(req)); in sas_smp_host_handler()
265 memcpy(buf, resp_data, blk_rq_bytes(rsp)); in sas_smp_host_handler()
Dsas_expander.c2008 __func__, req->bio->bi_vcnt, blk_rq_bytes(req), in sas_smp_handler()
2009 rsp->bio->bi_vcnt, blk_rq_bytes(rsp)); in sas_smp_handler()
2013 ret = smp_execute_task(dev, bio_data(req->bio), blk_rq_bytes(req), in sas_smp_handler()
2014 bio_data(rsp->bio), blk_rq_bytes(rsp)); in sas_smp_handler()
/linux-2.6.39/drivers/ide/
Dide-floppy.c137 unsigned int done = blk_rq_bytes(drive->hwif->rq); in ide_floppy_issue_pc()
222 if (blk_rq_bytes(rq)) { in idefloppy_blockpc_cmd()
252 ide_complete_rq(drive, 0, blk_rq_bytes(rq)); in ide_floppy_do_request()
290 if (rq->cmd_type == REQ_TYPE_FS || blk_rq_bytes(rq)) { in ide_floppy_do_request()
291 ide_init_sg_cmd(&cmd, blk_rq_bytes(rq)); in ide_floppy_do_request()
302 ide_complete_rq(drive, -EIO, blk_rq_bytes(rq)); in ide_floppy_do_request()
Dide-atapi.c270 ide_complete_rq(drive, -EIO, blk_rq_bytes(failed_rq)); in ide_retry_pc()
315 return blk_rq_bytes(rq); in ide_cd_get_xferlen()
431 blk_rq_bytes(rq)); in ide_pc_intr()
471 done = blk_rq_bytes(rq); in ide_pc_intr()
492 ide_complete_rq(drive, error, blk_rq_bytes(rq)); in ide_pc_intr()
691 bytes = blk_rq_bytes(rq); in ide_issue_pc()
Dide-eh.c137 ide_complete_rq(drive, err ? -EIO : 0, blk_rq_bytes(rq)); in ide_error()
153 ide_complete_rq(drive, err ? err : 0, blk_rq_bytes(rq)); in ide_complete_drive_reset()
Dide-devsets.c189 ide_complete_rq(drive, err, blk_rq_bytes(rq)); in ide_do_devset()
Dide-cd.c234 if (ide_end_rq(drive, failed, -EIO, blk_rq_bytes(failed))) in ide_cd_complete_failed_rq()
694 ide_complete_rq(drive, uptodate ? 0 : -EIO, blk_rq_bytes(rq)); in cdrom_newpc_intr()
771 || blk_rq_bytes(rq) & q->dma_pad_mask in cdrom_do_block_pc()
820 if (rq->cmd_type == REQ_TYPE_FS || blk_rq_bytes(rq)) { in ide_cd_do_request()
821 ide_init_sg_cmd(&cmd, blk_rq_bytes(rq)); in ide_cd_do_request()
Dide-tape.c320 (blk_rq_bytes(rq) - rq->resid_len)) in idetape_analyze_error()
352 (blk_rq_bytes(rq) - rq->resid_len) / tape->blk_size; in ide_tape_callback()
478 ide_complete_rq(drive, -EIO, blk_rq_bytes(rq)); in ide_tape_issue_pc()
554 if (blk_rq_bytes(rq) == tape->buffer_size) in ide_tape_create_rw_cmd()
663 ide_init_sg_cmd(&cmd, blk_rq_bytes(rq)); in idetape_do_request()
Dide-io.c152 ide_complete_rq(drive, -EIO, blk_rq_bytes(rq)); in ide_kill_rq()
275 ide_complete_rq(drive, 0, blk_rq_bytes(rq)); in execute_drive_cmd()
Dide-taskfile.c338 ide_complete_rq(drive, err ? -EIO : 0, blk_rq_bytes(rq)); in ide_finish_cmd()
/linux-2.6.39/block/
Dblk-core.c190 rq->bio, rq->biotail, rq->buffer, blk_rq_bytes(rq)); in blk_dump_rq_flags()
1692 blk_rq_bytes(rq) > queue_max_hw_sectors(q) << 9) { in blk_rq_check_limits()
1727 should_fail(&fail_make_request, blk_rq_bytes(rq))) in blk_insert_cloned_request()
1769 return blk_rq_bytes(rq); in blk_rq_err_bytes()
1785 BUG_ON(blk_rq_bytes(rq) && !bytes); in blk_rq_err_bytes()
1878 if (q->dma_drain_size && blk_rq_bytes(rq)) { in blk_peek_request()
1901 if (q->dma_drain_size && blk_rq_bytes(rq) && in blk_peek_request()
1972 req->resid_len = blk_rq_bytes(req); in blk_start_request()
1974 req->next_rq->resid_len = blk_rq_bytes(req->next_rq); in blk_start_request()
2167 if (blk_rq_bytes(req) < blk_rq_cur_bytes(req)) { in blk_update_request()
[all …]
Dblk-merge.c173 (blk_rq_bytes(rq) & q->dma_pad_mask)) { in blk_rq_map_sg()
175 (q->dma_pad_mask & ~blk_rq_bytes(rq)) + 1; in blk_rq_map_sg()
430 req->__data_len += blk_rq_bytes(next); in attempt_merge()
/linux-2.6.39/include/trace/events/
Dblock.h34 blk_fill_rwbs(__entry->rwbs, rq->cmd_flags, blk_rq_bytes(rq));
119 blk_rq_bytes(rq) : 0;
121 blk_fill_rwbs(__entry->rwbs, rq->cmd_flags, blk_rq_bytes(rq));
554 blk_fill_rwbs(__entry->rwbs, rq->cmd_flags, blk_rq_bytes(rq));
/linux-2.6.39/drivers/block/
Dosdblk.c355 bio, blk_rq_bytes(rq)); in osdblk_rq_fn()
358 bio, blk_rq_bytes(rq)); in osdblk_rq_fn()
362 "write" : "read", blk_rq_bytes(rq), in osdblk_rq_fn()
Dnbd.c236 unsigned long size = blk_rq_bytes(req); in nbd_send_req()
248 blk_rq_bytes(req)); in nbd_send_req()
Dub.c744 cmd->len = blk_rq_bytes(rq); in ub_cmd_build_block()
752 if (blk_rq_bytes(rq) == 0) { in ub_cmd_build_packet()
767 cmd->len = blk_rq_bytes(rq); in ub_cmd_build_packet()
/linux-2.6.39/drivers/scsi/mpt2sas/
Dmpt2sas_transport.c1858 blk_rq_bytes(req), rsp->bio->bi_vcnt, blk_rq_bytes(rsp)); in _transport_smp_handler()
1920 mpi_request->RequestDataLength = cpu_to_le16(blk_rq_bytes(req) - 4); in _transport_smp_handler()
1928 blk_rq_bytes(req), PCI_DMA_BIDIRECTIONAL); in _transport_smp_handler()
1934 ioc->base_add_sg_single(psge, sgl_flags | (blk_rq_bytes(req) - 4), in _transport_smp_handler()
1946 blk_rq_bytes(rsp), PCI_DMA_BIDIRECTIONAL); in _transport_smp_handler()
1952 ioc->base_add_sg_single(psge, sgl_flags | (blk_rq_bytes(rsp) + 4), in _transport_smp_handler()
2005 pci_unmap_single(ioc->pdev, dma_addr_out, blk_rq_bytes(req), in _transport_smp_handler()
2008 pci_unmap_single(ioc->pdev, dma_addr_in, blk_rq_bytes(rsp), in _transport_smp_handler()
/linux-2.6.39/kernel/trace/
Dblktrace.c715 __blk_add_trace(bt, 0, blk_rq_bytes(rq), rq->cmd_flags, in blk_add_trace_rq()
719 __blk_add_trace(bt, blk_rq_pos(rq), blk_rq_bytes(rq), in blk_add_trace_rq()
946 __blk_add_trace(bt, blk_rq_pos(rq), blk_rq_bytes(rq), in blk_add_trace_rq_remap()
972 __blk_add_trace(bt, 0, blk_rq_bytes(rq), 0, in blk_add_driver_data()
975 __blk_add_trace(bt, blk_rq_pos(rq), blk_rq_bytes(rq), 0, in blk_add_driver_data()
/linux-2.6.39/drivers/mmc/card/
Dblock.c290 __blk_end_request(req, err, blk_rq_bytes(req)); in mmc_blk_issue_discard_rq()
326 __blk_end_request(req, err, blk_rq_bytes(req)); in mmc_blk_issue_secdiscard_rq()
/linux-2.6.39/drivers/message/i2o/
Di2o_block.c850 *mptr++ = cpu_to_le32(blk_rq_bytes(req)); in i2o_block_transfer()
856 *mptr++ = cpu_to_le32(blk_rq_bytes(req)); in i2o_block_transfer()
/linux-2.6.39/drivers/scsi/
Dscsi_lib.c987 sdb->length = blk_rq_bytes(req); in scsi_init_sgtable()
1106 BUG_ON(blk_rq_bytes(req)); in scsi_setup_blk_pc_cmnd()
1113 if (!blk_rq_bytes(req)) in scsi_setup_blk_pc_cmnd()
1120 cmd->transfersize = blk_rq_bytes(req); in scsi_setup_blk_pc_cmnd()
Dscsi_tgt_lib.c392 cmd->sdb.length = blk_rq_bytes(rq); in scsi_map_user_pages()
/linux-2.6.39/include/linux/
Dblkdev.h733 static inline unsigned int blk_rq_bytes(const struct request *rq) in blk_rq_bytes() function
747 return blk_rq_bytes(rq) >> 9; in blk_rq_sectors()
/linux-2.6.39/drivers/message/fusion/
Dmptsas.c2224 ioc->name, __func__, req->bio->bi_vcnt, blk_rq_bytes(req), in mptsas_smp_handler()
2225 rsp->bio->bi_vcnt, blk_rq_bytes(rsp)); in mptsas_smp_handler()
2242 smpreq->RequestDataLength = cpu_to_le16(blk_rq_bytes(req) - 4); in mptsas_smp_handler()
2268 flagsLength |= (blk_rq_bytes(req) - 4); in mptsas_smp_handler()
2271 blk_rq_bytes(req), PCI_DMA_BIDIRECTIONAL); in mptsas_smp_handler()
2284 flagsLength |= blk_rq_bytes(rsp) + 4; in mptsas_smp_handler()
2286 blk_rq_bytes(rsp), PCI_DMA_BIDIRECTIONAL); in mptsas_smp_handler()
2323 pci_unmap_single(ioc->pcidev, dma_addr_out, blk_rq_bytes(req), in mptsas_smp_handler()
2326 pci_unmap_single(ioc->pcidev, dma_addr_in, blk_rq_bytes(rsp), in mptsas_smp_handler()
/linux-2.6.39/drivers/memstick/core/
Dmspro_block.c719 count = blk_rq_bytes(msb->block_req); in mspro_block_issue_req()
772 t_len = blk_rq_bytes(msb->block_req); in mspro_block_complete_req()

12