Home
last modified time | relevance | path

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

12

/linux/tools/usb/usbip/src/
A Dusbip_network.c95 static ssize_t usbip_net_xmit(int sockfd, void *buff, size_t bufflen, in usbip_net_xmit() argument
101 if (!bufflen) in usbip_net_xmit()
106 nbytes = send(sockfd, buff, bufflen, 0); in usbip_net_xmit()
108 nbytes = recv(sockfd, buff, bufflen, MSG_WAITALL); in usbip_net_xmit()
114 bufflen -= nbytes; in usbip_net_xmit()
117 } while (bufflen > 0); in usbip_net_xmit()
122 ssize_t usbip_net_recv(int sockfd, void *buff, size_t bufflen) in usbip_net_recv() argument
124 return usbip_net_xmit(sockfd, buff, bufflen, 0); in usbip_net_recv()
127 ssize_t usbip_net_send(int sockfd, void *buff, size_t bufflen) in usbip_net_send() argument
129 return usbip_net_xmit(sockfd, buff, bufflen, 1); in usbip_net_send()
A Dusbip_network.h168 ssize_t usbip_net_recv(int sockfd, void *buff, size_t bufflen);
169 ssize_t usbip_net_send(int sockfd, void *buff, size_t bufflen);
/linux/drivers/scsi/
A 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()
A Dsg.c1236 if (offset >= rsv_schp->bufflen) in sg_vma_fault()
1921 schp->bufflen = blk_size; in sg_build_indirect()
2028 req_schp->bufflen = size; in sg_link_reserve()
2049 req_schp->bufflen = 0; in sg_unlink_reserve()
2133 int bufflen; in sg_add_sfp() local
2165 sg_build_reserve(sfp, bufflen); in sg_add_sfp()
2168 sfp->reserve.bufflen, in sg_add_sfp()
2194 if (sfp->reserve.bufflen > 0) { in sg_remove_sfp_usercontext()
2197 (int) sfp->reserve.bufflen, in sg_remove_sfp_usercontext()
2513 fp->reserve.bufflen, in sg_proc_debug_helper()
[all …]
A Dvmw_pvscsi.c352 unsigned bufflen = scsi_bufflen(cmd); in pvscsi_map_buffers() local
355 e->dataLen = bufflen; in pvscsi_map_buffers()
357 if (bufflen == 0) in pvscsi_map_buffers()
390 ctx->dataPA = dma_map_single(&adapter->dev->dev, sg, bufflen, in pvscsi_map_buffers()
418 unsigned bufflen; in pvscsi_unmap_buffers() local
421 bufflen = scsi_bufflen(cmd); in pvscsi_unmap_buffers()
423 if (bufflen != 0) { in pvscsi_unmap_buffers()
435 bufflen, cmd->sc_data_direction); in pvscsi_unmap_buffers()
A Daha1542.c423 int bufflen = scsi_bufflen(cmd); in aha1542_queuecommand() local
442 target, *cmd->cmnd, i, bufflen); in aha1542_queuecommand()
505 any2scsi(ccb[mbo].datalen, bufflen); in aha1542_queuecommand()
506 if (bufflen) in aha1542_queuecommand()
A Dscsi_lib.c210 int data_direction, void *buffer, unsigned bufflen, in __scsi_execute() argument
228 if (bufflen) { in __scsi_execute()
230 buffer, bufflen, GFP_NOIO); in __scsi_execute()
252 if (unlikely(rq->resid_len > 0 && rq->resid_len <= bufflen)) in __scsi_execute()
253 memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len); in __scsi_execute()
/linux/drivers/platform/goldfish/
A Dgoldfish_pipe.c391 size_t bufflen, in goldfish_pipe_read_write() argument
403 if (unlikely(bufflen == 0)) in goldfish_pipe_read_write()
406 if (unlikely(!access_ok(buffer, bufflen))) in goldfish_pipe_read_write()
410 address_end = address + bufflen; in goldfish_pipe_read_write()
473 size_t bufflen, loff_t *ppos) in goldfish_pipe_read() argument
475 return goldfish_pipe_read_write(filp, buffer, bufflen, in goldfish_pipe_read()
480 const char __user *buffer, size_t bufflen, in goldfish_pipe_write() argument
486 return goldfish_pipe_read_write(filp, no_const_buffer, bufflen, in goldfish_pipe_write()
/linux/include/scsi/
A Dscsi_device.h451 int data_direction, void *buffer, unsigned bufflen,
456 #define scsi_execute(sdev, cmd, data_direction, buffer, bufflen, sense, \ argument
461 __scsi_execute(sdev, cmd, data_direction, buffer, bufflen, \
467 unsigned bufflen, struct scsi_sense_hdr *sshdr, int timeout, in scsi_execute_req() argument
471 bufflen, NULL, sshdr, timeout, retries, 0, 0, resid); in scsi_execute_req()
/linux/drivers/scsi/device_handler/
A Dscsi_dh_alua.c127 int bufflen, struct scsi_sense_hdr *sshdr, int flags) in submit_rtpg() argument
140 put_unaligned_be32(bufflen, &cdb[6]); in submit_rtpg()
142 return scsi_execute(sdev, cdb, DMA_FROM_DEVICE, buff, bufflen, NULL, in submit_rtpg()
518 int len, k, off, bufflen = ALUA_RTPG_SIZE; in alua_rtpg() local
542 buff = kzalloc(bufflen, GFP_KERNEL); in alua_rtpg()
548 retval = submit_rtpg(sdev, buff, bufflen, &sense_hdr, pg->flags); in alua_rtpg()
627 if (len > bufflen) { in alua_rtpg()
630 bufflen = len; in alua_rtpg()
631 buff = kmalloc(bufflen, GFP_KERNEL); in alua_rtpg()
/linux/drivers/staging/unisys/visorhba/
A Dvisorhba_main.c487 cmdrsp->scsi.bufflen = scsi_bufflen(scsicmd); in visorhba_queue_command_lck()
490 if (cmdrsp->scsi.bufflen > devdata->max_buff_len) in visorhba_queue_command_lck()
491 devdata->max_buff_len = cmdrsp->scsi.bufflen; in visorhba_queue_command_lck()
793 cmdrsp->scsi.bufflen >= MIN_INQUIRY_RESULT_LEN) { in do_scsi_nolinuxstat()
806 set_no_disk_inquiry_result(buf, (size_t)cmdrsp->scsi.bufflen, in do_scsi_nolinuxstat()
811 cmdrsp->scsi.bufflen); in do_scsi_nolinuxstat()
/linux/drivers/net/ethernet/intel/ixgbe/
A 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()
/linux/drivers/usb/usbip/
A 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()
551 usbip_alloc_iso_desc_pdu(struct urb *urb, ssize_t *bufflen) in usbip_alloc_iso_desc_pdu() argument
567 *bufflen = size; in usbip_alloc_iso_desc_pdu()
A Dusbip_common.h318 usbip_alloc_iso_desc_pdu(struct urb *urb, ssize_t *bufflen);
/linux/tools/bpf/bpftool/
A Dcommon.c128 mnt_fs(const char *target, const char *type, char *buff, size_t bufflen) in mnt_fs() argument
134 snprintf(buff, bufflen, in mnt_fs()
141 snprintf(buff, bufflen, in mnt_fs()
151 snprintf(buff, bufflen, "mount -t %s %s %s failed: %s", in mnt_fs()
/linux/drivers/staging/rts5208/
A Dms.c3845 int bufflen; local
3885 rtsx_stor_set_xfer_buf(buf, bufflen, srb);
3896 int bufflen; local
3942 rtsx_stor_get_xfer_buf(buf, bufflen, srb);
3971 int bufflen; local
4026 int bufflen; local
4043 rtsx_stor_get_xfer_buf(buf, bufflen, srb);
4072 int bufflen; local
4112 rtsx_stor_set_xfer_buf(buf, bufflen, srb);
4123 int bufflen; local
[all …]
/linux/drivers/nvme/host/
A Dioctl.c58 unsigned bufflen, void __user *meta_buffer, unsigned meta_len, in nvme_submit_user_cmd() argument
77 if (ubuffer && bufflen) { in nvme_submit_user_cmd()
78 ret = blk_rq_map_user(q, req, NULL, ubuffer, bufflen, in nvme_submit_user_cmd()
A Dnvme.h716 void *buf, unsigned bufflen);
718 union nvme_result *result, void *buffer, unsigned bufflen,
/linux/drivers/usb/storage/
A 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()
/linux/drivers/scsi/esas2r/
A Desas2r_main.c824 unsigned bufflen; in esas2r_queuecommand() local
842 bufflen = scsi_bufflen(cmd); in esas2r_queuecommand()
844 if (likely(bufflen != 0)) { in esas2r_queuecommand()
852 rq->vrq->scsi.length = cpu_to_le32(bufflen); in esas2r_queuecommand()
860 sgc.length = bufflen; in esas2r_queuecommand()
/linux/drivers/staging/unisys/include/
A Diochannel.h214 u32 bufflen; member
/linux/drivers/scsi/qedi/
A Dqedi_debugfs.c196 seq_printf(s, "buflen-%d:", io_log->bufflen); in qedi_io_trace_show()
A Dqedi.h230 unsigned int bufflen; /* SCSI buffer length */ member
/linux/drivers/scsi/qla2xxx/
A Dtcm_qla2xxx.c406 cmd->bufflen = se_cmd->data_length; in tcm_qla2xxx_write_pending()
672 cmd->bufflen = se_cmd->data_length; in tcm_qla2xxx_queue_data_in()
710 cmd->bufflen = se_cmd->data_length; in tcm_qla2xxx_queue_status()
729 cmd->bufflen = 0; in tcm_qla2xxx_queue_status()
/linux/drivers/scsi/qedf/
A Dqedf_debugfs.c261 seq_printf(s, "%d:", io_log->bufflen); in qedf_io_trace_show()

Completed in 80 milliseconds

12