Home
last modified time | relevance | path

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

12

/drivers/scsi/device_handler/
Dscsi_dh_alua.c73 int bufflen; member
96 h->bufflen = ALUA_INQUIRY_SIZE; in realloc_buffer()
99 h->bufflen = len; in realloc_buffer()
142 rq = get_alua_req(sdev, h->buff, h->bufflen, READ); in submit_vpd_inquiry()
150 rq->cmd[4] = h->bufflen; in submit_vpd_inquiry()
180 rq = get_alua_req(sdev, h->buff, h->bufflen, READ); in submit_rtpg()
190 rq->cmd[6] = (h->bufflen >> 24) & 0xff; in submit_rtpg()
191 rq->cmd[7] = (h->bufflen >> 16) & 0xff; in submit_rtpg()
192 rq->cmd[8] = (h->bufflen >> 8) & 0xff; in submit_rtpg()
193 rq->cmd[9] = h->bufflen & 0xff; in submit_rtpg()
[all …]
/drivers/platform/goldfish/
Dgoldfish_pipe_v1.c247 size_t bufflen, int is_write) in goldfish_pipe_read_write() argument
263 if (unlikely(bufflen == 0)) in goldfish_pipe_read_write()
268 buffer, bufflen)) in goldfish_pipe_read_write()
272 address_end = address + bufflen; in goldfish_pipe_read_write()
414 size_t bufflen, loff_t *ppos) in goldfish_pipe_read() argument
416 return goldfish_pipe_read_write(filp, buffer, bufflen, in goldfish_pipe_read()
421 const char __user *buffer, size_t bufflen, in goldfish_pipe_write() argument
425 bufflen, /* is_write */ 1); in goldfish_pipe_write()
Dgoldfish_pipe_v2.c439 size_t bufflen, in goldfish_pipe_read_write() argument
451 if (unlikely(bufflen == 0)) in goldfish_pipe_read_write()
455 buffer, bufflen))) in goldfish_pipe_read_write()
459 address_end = address + bufflen; in goldfish_pipe_read_write()
522 size_t bufflen, loff_t *ppos) in goldfish_pipe_read() argument
524 return goldfish_pipe_read_write(filp, buffer, bufflen, in goldfish_pipe_read()
529 const char __user *buffer, size_t bufflen, in goldfish_pipe_write() argument
535 return goldfish_pipe_read_write(filp, no_const_buffer, bufflen, in goldfish_pipe_write()
/drivers/scsi/
Dses.c85 void *buf, int bufflen) in ses_recv_diag() argument
92 bufflen >> 8, in ses_recv_diag()
93 bufflen & 0xff, in ses_recv_diag()
98 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()
132 result = scsi_execute_req(sdev, cmd, DMA_TO_DEVICE, buf, bufflen, in ses_send_diag()
Dsg.c126 unsigned bufflen; /* Size of (aggregate) data buffer */ member
766 if (hp->dxfer_len > sfp->reserve.bufflen) { in sg_new_write()
1051 if (val != sfp->reserve.bufflen) { in sg_ioctl()
1064 val = min_t(int, sfp->reserve.bufflen, in sg_ioctl()
1262 if (offset >= rsv_schp->bufflen) in sg_vma_fault()
1309 if (req_sz > rsv_schp->bufflen) { in sg_mmap()
1797 if (dxfer_len <= rsv_schp->bufflen && in sg_start_req()
1803 if (dxfer_len > rsv_schp->bufflen) in sg_start_req()
1970 schp->bufflen = blk_size; in sg_build_indirect()
2077 req_schp->bufflen = size; in sg_link_reserve()
[all …]
Dvmw_pvscsi.c357 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()
Daha1542.c377 int bufflen = scsi_bufflen(cmd); in aha1542_queuecommand() local
397 target, *cmd->cmnd, i, bufflen); in aha1542_queuecommand()
401 if (bufflen) { /* allocate memory before taking host_lock */ in aha1542_queuecommand()
450 if (bufflen) { in aha1542_queuecommand()
Dscsi_lib.c217 int data_direction, void *buffer, unsigned bufflen, in scsi_execute() argument
230 if (bufflen && blk_rq_map_kern(sdev->request_queue, req, in scsi_execute()
231 buffer, bufflen, __GFP_RECLAIM)) in scsi_execute()
253 if (unlikely(req->resid_len > 0 && req->resid_len <= bufflen)) in scsi_execute()
254 memset(buffer + (bufflen - req->resid_len), 0, req->resid_len); in scsi_execute()
267 int data_direction, void *buffer, unsigned bufflen, in scsi_execute_req_flags() argument
279 result = scsi_execute(sdev, cmd, data_direction, buffer, bufflen, in scsi_execute_req_flags()
Daha1740.c340 target, *cmd, i, bufflen); in aha1740_queuecommand_lck()
Dscsi_transport_spi.c121 void *buffer, unsigned bufflen, in spi_execute() argument
128 result = scsi_execute(sdev, cmd, dir, buffer, bufflen, in spi_execute()
/drivers/nvme/host/
Dnvme.h129 void *buf, unsigned bufflen);
131 void *buffer, void __user *ubuffer, unsigned bufflen,
Dpci.c1036 void *buffer, void __user *ubuffer, unsigned bufflen, in __nvme_submit_sync_cmd() argument
1060 if (buffer && bufflen) { in __nvme_submit_sync_cmd()
1061 ret = blk_rq_map_kern(q, req, buffer, bufflen, in __nvme_submit_sync_cmd()
1065 } else if (ubuffer && bufflen) { in __nvme_submit_sync_cmd()
1066 ret = blk_rq_map_user(q, req, NULL, ubuffer, bufflen, in __nvme_submit_sync_cmd()
1085 void *buffer, unsigned bufflen) in nvme_submit_sync_cmd() argument
1087 return __nvme_submit_sync_cmd(q, cmd, buffer, NULL, bufflen, NULL, 0); in nvme_submit_sync_cmd()
/drivers/staging/unisys/visorhba/
Dvisorhba_main.c493 cmdrsp->scsi.bufflen = scsi_bufflen(scsicmd); in visorhba_queue_command_lck()
496 if (cmdrsp->scsi.bufflen > devdata->max_buff_len) in visorhba_queue_command_lck()
497 devdata->max_buff_len = cmdrsp->scsi.bufflen; in visorhba_queue_command_lck()
806 (cmdrsp->scsi.bufflen >= MIN_INQUIRY_RESULT_LEN)) { in do_scsi_nolinuxstat()
819 SET_NO_DISK_INQUIRY_RESULT(buf, cmdrsp->scsi.bufflen, in do_scsi_nolinuxstat()
826 cmdrsp->scsi.bufflen); in do_scsi_nolinuxstat()
/drivers/usb/usbip/
Dusbip_common.c64 static void usbip_dump_buffer(char *buff, int bufflen) in usbip_dump_buffer() argument
67 buff, bufflen, false); in usbip_dump_buffer()
578 usbip_alloc_iso_desc_pdu(struct urb *urb, ssize_t *bufflen) in usbip_alloc_iso_desc_pdu() argument
594 *bufflen = size; in usbip_alloc_iso_desc_pdu()
Dusbip_common.h316 usbip_alloc_iso_desc_pdu(struct urb *urb, ssize_t *bufflen);
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_fcoe.c168 static const unsigned int bufflen = IXGBE_FCBUFF_MIN; in ixgbe_fcoe_ddp_setup() local
240 thisoff = addr & ((dma_addr_t)bufflen - 1); in ixgbe_fcoe_ddp_setup()
241 thislen = min((bufflen - thisoff), len); in ixgbe_fcoe_ddp_setup()
254 && ((thislen + thisoff) != bufflen)) in ixgbe_fcoe_ddp_setup()
273 if (lastsize == bufflen) { in ixgbe_fcoe_ddp_setup()
/drivers/staging/rts5208/
Dms.c4299 int bufflen; local
4344 bufflen = min_t(int, 1052, scsi_bufflen(srb));
4345 rtsx_stor_set_xfer_buf(buf, bufflen, srb);
4356 int bufflen; local
4408 bufflen = min_t(int, 12, scsi_bufflen(srb));
4409 rtsx_stor_get_xfer_buf(buf, bufflen, srb);
4440 int bufflen; local
4481 bufflen = min_t(int, 36, scsi_bufflen(srb));
4482 rtsx_stor_set_xfer_buf(buf2, bufflen, srb);
4501 int bufflen; local
[all …]
/drivers/usb/storage/
Disd200.c461 enum dma_data_direction dir, void* buff, unsigned bufflen) in isd200_set_srb() argument
466 sg_init_one(&info->sg, buff, bufflen); in isd200_set_srb()
470 srb->sdb.length = bufflen; in isd200_set_srb()
474 static void isd200_srb_set_bufflen(struct scsi_cmnd *srb, unsigned bufflen) in isd200_srb_set_bufflen() argument
476 srb->sdb.length = bufflen; in isd200_srb_set_bufflen()
/drivers/ide/
Dide-atapi.c90 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()
Dide-cd.c423 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/
Dqla_target.c1635 prm->seg_cnt = DIV_ROUND_UP(cmd->bufflen, cmd->blk_sz); in qlt_pci_map_calc_cnt()
1651 prm->prot_seg_cnt = DIV_ROUND_UP(cmd->bufflen, in qlt_pci_map_calc_cnt()
1877 pkt24->u.status0.transfer_length = cpu_to_le32(prm->cmd->bufflen); in qlt_load_data_segments()
1916 return cmd->bufflen > 0; in qlt_has_data()
1958 cmd->bufflen, prm->rq_result); in qlt_pre_xmit_response()
1965 se_cmd->t_task_cdb[0] : 0, cmd->bufflen, prm->rq_result); in qlt_pre_xmit_response()
2063 cmd->bufflen, cmd->sg_cnt); in qlt_check_srr_debug()
2065 cmd->bufflen = tot_len; in qlt_check_srr_debug()
2070 unsigned int offset = qlt_srr_random() % cmd->bufflen; in qlt_check_srr_debug()
2075 cmd->bufflen); in qlt_check_srr_debug()
[all …]
Dtcm_qla2xxx.c376 cmd->bufflen = se_cmd->data_length; in tcm_qla2xxx_write_pending()
546 cmd->bufflen = se_cmd->data_length; in tcm_qla2xxx_queue_data_in()
571 cmd->bufflen = se_cmd->data_length; in tcm_qla2xxx_queue_status()
594 cmd->bufflen = 0; in tcm_qla2xxx_queue_status()
/drivers/scsi/esas2r/
Desas2r_main.c883 unsigned bufflen; in esas2r_queuecommand() local
901 bufflen = scsi_bufflen(cmd); in esas2r_queuecommand()
903 if (likely(bufflen != 0)) { in esas2r_queuecommand()
911 rq->vrq->scsi.length = cpu_to_le32(bufflen); in esas2r_queuecommand()
919 sgc.length = bufflen; in esas2r_queuecommand()
/drivers/net/ethernet/intel/i40e/
Di40e_fcoe.c819 static const unsigned int bufflen = I40E_FCOE_DDP_BUF_MIN; in i40e_fcoe_ddp_setup() local
897 thisoff = addr & ((dma_addr_t)bufflen - 1); in i40e_fcoe_ddp_setup()
898 thislen = min_t(unsigned int, (bufflen - thisoff), len); in i40e_fcoe_ddp_setup()
910 ((thislen + thisoff) != bufflen)) in i40e_fcoe_ddp_setup()
/drivers/staging/unisys/include/
Diochannel.h193 u32 bufflen; /* length of data to be transferred out or in */ member

12