/drivers/scsi/device_handler/ |
D | scsi_dh_alua.c | 73 int bufflen; member 103 h->bufflen = ALUA_INQUIRY_SIZE; in realloc_buffer() 106 h->bufflen = len; in realloc_buffer() 149 rq = get_alua_req(sdev, h->buff, h->bufflen, READ); in submit_vpd_inquiry() 157 rq->cmd[4] = h->bufflen; in submit_vpd_inquiry() 187 rq = get_alua_req(sdev, h->buff, h->bufflen, READ); in submit_rtpg() 197 rq->cmd[6] = (h->bufflen >> 24) & 0xff; in submit_rtpg() 198 rq->cmd[7] = (h->bufflen >> 16) & 0xff; in submit_rtpg() 199 rq->cmd[8] = (h->bufflen >> 8) & 0xff; in submit_rtpg() 200 rq->cmd[9] = h->bufflen & 0xff; in submit_rtpg() [all …]
|
/drivers/platform/goldfish/ |
D | goldfish_pipe.c | 230 size_t bufflen, int is_write) in goldfish_pipe_read_write() argument 244 if (unlikely(bufflen == 0)) in goldfish_pipe_read_write() 249 buffer, bufflen)) in goldfish_pipe_read_write() 257 address_end = address + bufflen; in goldfish_pipe_read_write() 412 size_t bufflen, loff_t *ppos) in goldfish_pipe_read() argument 414 return goldfish_pipe_read_write(filp, buffer, bufflen, 0); in goldfish_pipe_read() 418 const char __user *buffer, size_t bufflen, in goldfish_pipe_write() argument 422 bufflen, 1); in goldfish_pipe_write()
|
D | goldfish_pipe_v2.c | 394 char __user *buffer, size_t bufflen, int is_write) in goldfish_pipe_read_write() argument 405 if (unlikely(bufflen == 0)) in goldfish_pipe_read_write() 409 buffer, bufflen))) in goldfish_pipe_read_write() 413 address_end = address + bufflen; in goldfish_pipe_read_write() 470 size_t bufflen, loff_t *ppos) in goldfish_pipe_read() argument 472 return goldfish_pipe_read_write(filp, buffer, bufflen, /* is_write */ 0); in goldfish_pipe_read() 476 const char __user *buffer, size_t bufflen, in goldfish_pipe_write() argument 480 /* cast away the const */(char __user *)buffer, bufflen, in goldfish_pipe_write()
|
/drivers/scsi/ |
D | ses.c | 72 void *buf, int bufflen) in ses_recv_diag() argument 78 bufflen >> 8, in ses_recv_diag() 79 bufflen & 0xff, in ses_recv_diag() 83 return scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buf, bufflen, in ses_recv_diag() 88 void *buf, int bufflen) in ses_send_diag() argument 96 bufflen >> 8, in ses_send_diag() 97 bufflen & 0xff, in ses_send_diag() 101 result = scsi_execute_req(sdev, cmd, DMA_TO_DEVICE, buf, bufflen, in ses_send_diag()
|
D | sg.c | 125 unsigned bufflen; /* Size of (aggregate) data buffer */ member 728 if (hp->dxfer_len > sfp->reserve.bufflen) { in sg_new_write() 1021 if (val != sfp->reserve.bufflen) { in sg_ioctl() 1034 val = min_t(int, sfp->reserve.bufflen, in sg_ioctl() 1258 if (offset >= rsv_schp->bufflen) in sg_vma_fault() 1305 if (req_sz > rsv_schp->bufflen) { in sg_mmap() 1792 if (dxfer_len <= rsv_schp->bufflen && in sg_start_req() 1798 if (dxfer_len > rsv_schp->bufflen) in sg_start_req() 1972 schp->bufflen = blk_size; in sg_build_indirect() 2079 req_schp->bufflen = size; in sg_link_reserve() [all …]
|
D | vmw_pvscsi.c | 357 unsigned bufflen = scsi_bufflen(cmd); in pvscsi_map_buffers() local 360 e->dataLen = bufflen; in pvscsi_map_buffers() 362 if (bufflen == 0) in pvscsi_map_buffers() 383 ctx->dataPA = pci_map_single(adapter->dev, sg, bufflen, in pvscsi_map_buffers() 393 unsigned bufflen; in pvscsi_unmap_buffers() local 396 bufflen = scsi_bufflen(cmd); in pvscsi_unmap_buffers() 398 if (bufflen != 0) { in pvscsi_unmap_buffers() 409 pci_unmap_single(adapter->dev, ctx->dataPA, bufflen, in pvscsi_unmap_buffers()
|
D | aha1542.c | 566 int bufflen = scsi_bufflen(SCpnt); in aha1542_queuecommand_lck() local 587 if (bufflen != SCSI_SENSE_BUFFERSIZE) in aha1542_queuecommand_lck() 589 "for request sense (%d)\n", bufflen); in aha1542_queuecommand_lck() 603 …rintk(KERN_DEBUG "aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); in aha1542_queuecommand_lck() 605 printk(KERN_DEBUG "aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); in aha1542_queuecommand_lck() 657 if (bufflen) { in aha1542_queuecommand_lck()
|
D | scsi_lib.c | 215 int data_direction, void *buffer, unsigned bufflen, in scsi_execute() argument 228 if (bufflen && blk_rq_map_kern(sdev->request_queue, req, in scsi_execute() 229 buffer, bufflen, __GFP_WAIT)) in scsi_execute() 251 if (unlikely(req->resid_len > 0 && req->resid_len <= bufflen)) in scsi_execute() 252 memset(buffer + (bufflen - req->resid_len), 0, req->resid_len); in scsi_execute() 265 int data_direction, void *buffer, unsigned bufflen, in scsi_execute_req_flags() argument 277 result = scsi_execute(sdev, cmd, data_direction, buffer, bufflen, in scsi_execute_req_flags()
|
D | aha1740.c | 340 target, *cmd, i, bufflen); in aha1740_queuecommand_lck()
|
D | scsi_transport_spi.c | 120 void *buffer, unsigned bufflen, in spi_execute() argument 127 result = scsi_execute(sdev, cmd, dir, buffer, bufflen, in spi_execute()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_fcoe.c | 141 static const unsigned int bufflen = IXGBE_FCBUFF_MIN; in ixgbe_fcoe_ddp_setup() local 213 thisoff = addr & ((dma_addr_t)bufflen - 1); in ixgbe_fcoe_ddp_setup() 214 thislen = min((bufflen - thisoff), len); in ixgbe_fcoe_ddp_setup() 227 && ((thislen + thisoff) != bufflen)) in ixgbe_fcoe_ddp_setup() 246 if (lastsize == bufflen) { in ixgbe_fcoe_ddp_setup()
|
/drivers/usb/usbip/ |
D | usbip_common.c | 64 static void usbip_dump_buffer(char *buff, int bufflen) in usbip_dump_buffer() argument 67 buff, bufflen, false); in usbip_dump_buffer() 585 usbip_alloc_iso_desc_pdu(struct urb *urb, ssize_t *bufflen) in usbip_alloc_iso_desc_pdu() argument 601 *bufflen = size; in usbip_alloc_iso_desc_pdu()
|
D | usbip_common.h | 308 usbip_alloc_iso_desc_pdu(struct urb *urb, ssize_t *bufflen);
|
/drivers/staging/unisys/virthba/ |
D | virthba.c | 961 cmdrsp->scsi.bufflen = scsi_bufflen(scsicmd); in virthba_queue_command_lck() 964 if (cmdrsp->scsi.bufflen > MaxBuffLen) in virthba_queue_command_lck() 965 MaxBuffLen = cmdrsp->scsi.bufflen; in virthba_queue_command_lck() 1002 scsi_sg_count(scsicmd), cmdrsp->scsi.bufflen); in virthba_queue_command_lck() 1173 && (cmdrsp->scsi.bufflen >= MIN_INQUIRY_RESULT_LEN)) { in do_scsi_nolinuxstat() 1182 SET_NO_DISK_INQUIRY_RESULT(buf, cmdrsp->scsi.bufflen, in do_scsi_nolinuxstat() 1194 cmdrsp->scsi.bufflen); in do_scsi_nolinuxstat()
|
/drivers/staging/rts5208/ |
D | ms.c | 3740 int bufflen; in mg_get_local_EKB() local 3778 bufflen = min_t(int, 1052, scsi_bufflen(srb)); in mg_get_local_EKB() 3779 rtsx_stor_set_xfer_buf(buf, bufflen, srb); in mg_get_local_EKB() 3790 int bufflen; in mg_chg() local 3835 bufflen = min_t(int, 12, scsi_bufflen(srb)); in mg_chg() 3836 rtsx_stor_get_xfer_buf(buf, bufflen, srb); in mg_chg() 3865 int bufflen; in mg_get_rsp_chg() local 3901 bufflen = min_t(int, 36, scsi_bufflen(srb)); in mg_get_rsp_chg() 3902 rtsx_stor_set_xfer_buf(buf2, bufflen, srb); in mg_get_rsp_chg() 3920 int bufflen; in mg_rsp() local [all …]
|
/drivers/usb/storage/ |
D | isd200.c | 459 enum dma_data_direction dir, void* buff, unsigned bufflen) in isd200_set_srb() argument 464 sg_init_one(&info->sg, buff, bufflen); in isd200_set_srb() 468 srb->sdb.length = bufflen; in isd200_set_srb() 472 static void isd200_srb_set_bufflen(struct scsi_cmnd *srb, unsigned bufflen) in isd200_srb_set_bufflen() argument 474 srb->sdb.length = bufflen; in isd200_srb_set_bufflen()
|
/drivers/ide/ |
D | ide-atapi.c | 90 struct ide_atapi_pc *pc, void *buf, unsigned int bufflen) in ide_queue_pc_tail() argument 99 if (buf && bufflen) { in ide_queue_pc_tail() 100 error = blk_rq_map_kern(drive->queue, rq, buf, bufflen, in ide_queue_pc_tail()
|
D | ide-cd.c | 423 int write, void *buffer, unsigned *bufflen, in ide_cd_queue_pc() argument 453 *bufflen, GFP_NOIO); in ide_cd_queue_pc() 463 *bufflen = rq->resid_len; in ide_cd_queue_pc()
|
/drivers/scsi/qla2xxx/ |
D | qla_target.c | 1631 prm->seg_cnt = DIV_ROUND_UP(cmd->bufflen, cmd->blk_sz); in qlt_pci_map_calc_cnt() 1647 prm->prot_seg_cnt = DIV_ROUND_UP(cmd->bufflen, in qlt_pci_map_calc_cnt() 1873 pkt24->u.status0.transfer_length = cpu_to_le32(prm->cmd->bufflen); in qlt_load_data_segments() 1912 return cmd->bufflen > 0; in qlt_has_data() 1954 cmd->bufflen, prm->rq_result); in qlt_pre_xmit_response() 1962 cmd->bufflen, prm->rq_result); in qlt_pre_xmit_response() 2060 cmd->bufflen, cmd->sg_cnt); in qlt_check_srr_debug() 2062 cmd->bufflen = tot_len; in qlt_check_srr_debug() 2067 unsigned int offset = qlt_srr_random() % cmd->bufflen; in qlt_check_srr_debug() 2072 cmd->bufflen); in qlt_check_srr_debug() [all …]
|
D | tcm_qla2xxx.c | 486 cmd->bufflen = se_cmd->data_length; in tcm_qla2xxx_write_pending() 663 cmd->bufflen = se_cmd->data_length; in tcm_qla2xxx_queue_data_in() 689 cmd->bufflen = se_cmd->data_length; in tcm_qla2xxx_queue_status() 712 cmd->bufflen = 0; in tcm_qla2xxx_queue_status()
|
D | qla_target.h | 955 int bufflen; /* cmd buffer length */ member
|
/drivers/scsi/esas2r/ |
D | esas2r_main.c | 887 unsigned bufflen; in esas2r_queuecommand() local 905 bufflen = scsi_bufflen(cmd); in esas2r_queuecommand() 907 if (likely(bufflen != 0)) { in esas2r_queuecommand() 915 rq->vrq->scsi.length = cpu_to_le32(bufflen); in esas2r_queuecommand() 923 sgc.length = bufflen; in esas2r_queuecommand()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_fcoe.c | 824 static const unsigned int bufflen = I40E_FCOE_DDP_BUF_MIN; in i40e_fcoe_ddp_setup() local 902 thisoff = addr & ((dma_addr_t)bufflen - 1); in i40e_fcoe_ddp_setup() 903 thislen = min_t(unsigned int, (bufflen - thisoff), len); in i40e_fcoe_ddp_setup() 915 ((thislen + thisoff) != bufflen)) in i40e_fcoe_ddp_setup()
|
/drivers/staging/unisys/common-spar/include/channels/ |
D | iochannel.h | 290 u32 bufflen; /* length of data to be transferred out or in */ member
|
/drivers/scsi/ibmvscsi/ |
D | ibmvfc.h | 246 __be32 bufflen; member
|