Home
last modified time | relevance | path

Searched refs:bufflen (Results 1 – 25 of 37) sorted by relevance

12

/drivers/scsi/
Dses.c78 void *buf, int bufflen) in ses_recv_diag() argument
85 bufflen >> 8, in ses_recv_diag()
86 bufflen & 0xff, in ses_recv_diag()
94 ret = scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buf, bufflen, in ses_recv_diag()
119 void *buf, int bufflen) in ses_send_diag() argument
127 bufflen >> 8, in ses_send_diag()
128 bufflen & 0xff, in ses_send_diag()
135 result = scsi_execute_req(sdev, cmd, DMA_TO_DEVICE, buf, bufflen, in ses_send_diag()
Dsg.c109 unsigned bufflen; /* Size of (aggregate) data buffer */ member
740 if (hp->dxfer_len > sfp->reserve.bufflen) { in sg_new_write()
1029 if (val != sfp->reserve.bufflen) { in sg_ioctl_common()
1042 val = min_t(int, sfp->reserve.bufflen, in sg_ioctl_common()
1249 if (offset >= rsv_schp->bufflen) in sg_vma_fault()
1296 if (req_sz > rsv_schp->bufflen) { in sg_mmap()
1784 if (dxfer_len <= rsv_schp->bufflen && in sg_start_req()
1790 if (dxfer_len > rsv_schp->bufflen) in sg_start_req()
1953 schp->bufflen = blk_size; in sg_build_indirect()
2060 req_schp->bufflen = size; in sg_link_reserve()
[all …]
Dvmw_pvscsi.c354 unsigned bufflen = scsi_bufflen(cmd); in pvscsi_map_buffers() local
357 e->dataLen = bufflen; in pvscsi_map_buffers()
359 if (bufflen == 0) in pvscsi_map_buffers()
392 ctx->dataPA = dma_map_single(&adapter->dev->dev, sg, bufflen, in pvscsi_map_buffers()
420 unsigned bufflen; in pvscsi_unmap_buffers() local
423 bufflen = scsi_bufflen(cmd); in pvscsi_unmap_buffers()
425 if (bufflen != 0) { in pvscsi_unmap_buffers()
437 bufflen, cmd->sc_data_direction); in pvscsi_unmap_buffers()
Daha1542.c400 int bufflen = scsi_bufflen(cmd); in aha1542_queuecommand() local
419 target, *cmd->cmnd, i, bufflen); in aha1542_queuecommand()
479 if (bufflen) { in aha1542_queuecommand()
Dscsi_lib.c241 int data_direction, void *buffer, unsigned bufflen, in __scsi_execute() argument
258 if (bufflen && blk_rq_map_kern(sdev->request_queue, req, in __scsi_execute()
259 buffer, bufflen, GFP_NOIO)) in __scsi_execute()
280 if (unlikely(rq->resid_len > 0 && rq->resid_len <= bufflen)) in __scsi_execute()
281 memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len); in __scsi_execute()
/drivers/platform/goldfish/
Dgoldfish_pipe.c394 size_t bufflen, in goldfish_pipe_read_write() argument
406 if (unlikely(bufflen == 0)) in goldfish_pipe_read_write()
409 if (unlikely(!access_ok(buffer, bufflen))) in goldfish_pipe_read_write()
413 address_end = address + bufflen; in goldfish_pipe_read_write()
476 size_t bufflen, loff_t *ppos) in goldfish_pipe_read() argument
478 return goldfish_pipe_read_write(filp, buffer, bufflen, in goldfish_pipe_read()
483 const char __user *buffer, size_t bufflen, in goldfish_pipe_write() argument
489 return goldfish_pipe_read_write(filp, no_const_buffer, bufflen, in goldfish_pipe_write()
/drivers/scsi/device_handler/
Dscsi_dh_alua.c126 int bufflen, struct scsi_sense_hdr *sshdr, int flags) in submit_rtpg() argument
139 put_unaligned_be32(bufflen, &cdb[6]); in submit_rtpg()
141 return scsi_execute(sdev, cdb, DMA_FROM_DEVICE, buff, bufflen, NULL, in submit_rtpg()
509 int len, k, off, bufflen = ALUA_RTPG_SIZE; in alua_rtpg() local
527 buff = kzalloc(bufflen, GFP_KERNEL); in alua_rtpg()
533 retval = submit_rtpg(sdev, buff, bufflen, &sense_hdr, pg->flags); in alua_rtpg()
610 if (len > bufflen) { in alua_rtpg()
613 bufflen = len; in alua_rtpg()
614 buff = kmalloc(bufflen, GFP_KERNEL); in alua_rtpg()
/drivers/staging/unisys/visorhba/
Dvisorhba_main.c543 cmdrsp->scsi.bufflen = scsi_bufflen(scsicmd); in visorhba_queue_command_lck()
546 if (cmdrsp->scsi.bufflen > devdata->max_buff_len) in visorhba_queue_command_lck()
547 devdata->max_buff_len = cmdrsp->scsi.bufflen; in visorhba_queue_command_lck()
851 cmdrsp->scsi.bufflen >= MIN_INQUIRY_RESULT_LEN) { in do_scsi_nolinuxstat()
864 set_no_disk_inquiry_result(buf, (size_t)cmdrsp->scsi.bufflen, in do_scsi_nolinuxstat()
869 cmdrsp->scsi.bufflen); in do_scsi_nolinuxstat()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_fcoe.c145 static const unsigned int bufflen = IXGBE_FCBUFF_MIN; in ixgbe_fcoe_ddp_setup() local
217 thisoff = addr & ((dma_addr_t)bufflen - 1); in ixgbe_fcoe_ddp_setup()
218 thislen = min((bufflen - thisoff), len); in ixgbe_fcoe_ddp_setup()
231 && ((thislen + thisoff) != bufflen)) in ixgbe_fcoe_ddp_setup()
250 if (lastsize == bufflen) { in ixgbe_fcoe_ddp_setup()
/drivers/usb/usbip/
Dusbip_common.c52 static void usbip_dump_buffer(char *buff, int bufflen) in usbip_dump_buffer() argument
55 buff, bufflen, false); in usbip_dump_buffer()
556 usbip_alloc_iso_desc_pdu(struct urb *urb, ssize_t *bufflen) in usbip_alloc_iso_desc_pdu() argument
572 *bufflen = size; in usbip_alloc_iso_desc_pdu()
Dusbip_common.h313 usbip_alloc_iso_desc_pdu(struct urb *urb, ssize_t *bufflen);
/drivers/staging/rts5208/
Dms.c3846 int bufflen; local
3885 bufflen = min_t(int, 1052, scsi_bufflen(srb));
3886 rtsx_stor_set_xfer_buf(buf, bufflen, srb);
3897 int bufflen; local
3942 bufflen = min_t(int, 12, scsi_bufflen(srb));
3943 rtsx_stor_get_xfer_buf(buf, bufflen, srb);
3972 int bufflen; local
4008 bufflen = min_t(int, 36, scsi_bufflen(srb));
4009 rtsx_stor_set_xfer_buf(buf2, bufflen, srb);
4027 int bufflen; local
[all …]
/drivers/usb/storage/
Disd200.c450 enum dma_data_direction dir, void* buff, unsigned bufflen) in isd200_set_srb() argument
455 sg_init_one(&info->sg, buff, bufflen); in isd200_set_srb()
459 srb->sdb.length = bufflen; in isd200_set_srb()
463 static void isd200_srb_set_bufflen(struct scsi_cmnd *srb, unsigned bufflen) in isd200_srb_set_bufflen() argument
465 srb->sdb.length = bufflen; in isd200_srb_set_bufflen()
/drivers/ide/
Dide-atapi.c91 struct ide_atapi_pc *pc, void *buf, unsigned int bufflen) in ide_queue_pc_tail() argument
100 if (buf && bufflen) { in ide_queue_pc_tail()
101 error = blk_rq_map_kern(drive->queue, rq, buf, bufflen, in ide_queue_pc_tail()
Dide-cd.c433 int write, void *buffer, unsigned *bufflen, in ide_cd_queue_pc() argument
463 *bufflen, GFP_NOIO); in ide_cd_queue_pc()
474 *bufflen = scsi_req(rq)->resid_len; in ide_cd_queue_pc()
/drivers/scsi/esas2r/
Desas2r_main.c825 unsigned bufflen; in esas2r_queuecommand() local
843 bufflen = scsi_bufflen(cmd); in esas2r_queuecommand()
845 if (likely(bufflen != 0)) { in esas2r_queuecommand()
853 rq->vrq->scsi.length = cpu_to_le32(bufflen); in esas2r_queuecommand()
861 sgc.length = bufflen; in esas2r_queuecommand()
/drivers/staging/unisys/include/
Diochannel.h214 u32 bufflen; member
/drivers/scsi/qedi/
Dqedi_debugfs.c196 seq_printf(s, "buflen-%d:", io_log->bufflen); in qedi_io_trace_show()
Dqedi.h230 unsigned int bufflen; /* SCSI buffer length */ member
/drivers/nvme/host/
Dnvme.h692 void *buf, unsigned bufflen);
694 union nvme_result *result, void *buffer, unsigned bufflen,
Dlightnvm.c753 void __user *ubuf, unsigned int bufflen, in nvme_nvm_submit_user_cmd() argument
795 if (ubuf && bufflen) { in nvme_nvm_submit_user_cmd()
796 ret = blk_rq_map_user(q, rq, NULL, ubuf, bufflen, GFP_KERNEL); in nvme_nvm_submit_user_cmd()
Dcore.c948 union nvme_result *result, void *buffer, unsigned bufflen, in __nvme_submit_sync_cmd() argument
965 if (buffer && bufflen) { in __nvme_submit_sync_cmd()
966 ret = blk_rq_map_kern(q, req, buffer, bufflen, GFP_KERNEL); in __nvme_submit_sync_cmd()
988 void *buffer, unsigned bufflen) in nvme_submit_sync_cmd() argument
990 return __nvme_submit_sync_cmd(q, cmd, NULL, buffer, bufflen, 0, in nvme_submit_sync_cmd()
1118 unsigned bufflen, void __user *meta_buffer, unsigned meta_len, in nvme_submit_user_cmd() argument
1137 if (ubuffer && bufflen) { in nvme_submit_user_cmd()
1138 ret = blk_rq_map_user(q, req, NULL, ubuffer, bufflen, in nvme_submit_user_cmd()
/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c406 cmd->bufflen = se_cmd->data_length; in tcm_qla2xxx_write_pending()
665 cmd->bufflen = se_cmd->data_length; in tcm_qla2xxx_queue_data_in()
703 cmd->bufflen = se_cmd->data_length; in tcm_qla2xxx_queue_status()
722 cmd->bufflen = 0; in tcm_qla2xxx_queue_status()
/drivers/scsi/qedf/
Dqedf_debugfs.c268 seq_printf(s, "%d:", io_log->bufflen); in qedf_io_trace_show()
Dqedf.h287 unsigned int bufflen; /* SCSI buffer length */ member

12