/Linux-v5.15/tools/usb/usbip/src/ |
D | usbip_network.c | 95 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()
|
D | usbip_network.h | 168 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-v5.15/fs/nfsd/ |
D | blocklayout.c | 227 size_t bufflen = 252, maxlen = 65532, len, id_len; in nfsd4_scsi_identify_device() local 235 buf = kzalloc(bufflen, GFP_KERNEL); in nfsd4_scsi_identify_device() 246 error = blk_rq_map_kern(q, rq, buf, bufflen, GFP_KERNEL); in nfsd4_scsi_identify_device() 253 req->cmd[3] = bufflen >> 8; in nfsd4_scsi_identify_device() 254 req->cmd[4] = bufflen & 0xff; in nfsd4_scsi_identify_device() 266 if (len > bufflen) { in nfsd4_scsi_identify_device() 270 bufflen = len; in nfsd4_scsi_identify_device()
|
/Linux-v5.15/drivers/platform/goldfish/ |
D | goldfish_pipe.c | 391 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-v5.15/drivers/scsi/ |
D | ses.c | 78 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()
|
D | sg.c | 109 unsigned bufflen; /* Size of (aggregate) data buffer */ member 746 if (hp->dxfer_len > sfp->reserve.bufflen) { in sg_new_write() 1036 if (val != sfp->reserve.bufflen) { in sg_ioctl_common() 1049 val = min_t(int, sfp->reserve.bufflen, in sg_ioctl_common() 1235 if (offset >= rsv_schp->bufflen) in sg_vma_fault() 1282 if (req_sz > rsv_schp->bufflen) { in sg_mmap() 1755 if (dxfer_len <= rsv_schp->bufflen && in sg_start_req() 1761 if (dxfer_len > rsv_schp->bufflen) in sg_start_req() 1920 schp->bufflen = blk_size; in sg_build_indirect() 2027 req_schp->bufflen = size; in sg_link_reserve() [all …]
|
D | vmw_pvscsi.c | 352 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()
|
D | aha1542.c | 426 int bufflen = scsi_bufflen(cmd); in aha1542_queuecommand() local 445 target, *cmd->cmnd, i, bufflen); in aha1542_queuecommand() 509 any2scsi(ccb[mbo].datalen, bufflen); in aha1542_queuecommand() 510 if (bufflen) in aha1542_queuecommand()
|
D | scsi_lib.c | 209 int data_direction, void *buffer, unsigned bufflen, in __scsi_execute() argument 227 if (bufflen) { in __scsi_execute() 229 buffer, bufflen, GFP_NOIO); in __scsi_execute() 251 if (unlikely(rq->resid_len > 0 && rq->resid_len <= bufflen)) in __scsi_execute() 252 memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len); in __scsi_execute()
|
/Linux-v5.15/include/scsi/ |
D | scsi_device.h | 450 int data_direction, void *buffer, unsigned bufflen, 455 #define scsi_execute(sdev, cmd, data_direction, buffer, bufflen, sense, \ argument 460 __scsi_execute(sdev, cmd, data_direction, buffer, bufflen, \ 466 unsigned bufflen, struct scsi_sense_hdr *sshdr, int timeout, in scsi_execute_req() argument 470 bufflen, NULL, sshdr, timeout, retries, 0, 0, resid); in scsi_execute_req()
|
/Linux-v5.15/drivers/scsi/device_handler/ |
D | scsi_dh_alua.c | 127 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-v5.15/drivers/staging/unisys/visorhba/ |
D | visorhba_main.c | 489 cmdrsp->scsi.bufflen = scsi_bufflen(scsicmd); in visorhba_queue_command_lck() 492 if (cmdrsp->scsi.bufflen > devdata->max_buff_len) in visorhba_queue_command_lck() 493 devdata->max_buff_len = cmdrsp->scsi.bufflen; in visorhba_queue_command_lck() 797 cmdrsp->scsi.bufflen >= MIN_INQUIRY_RESULT_LEN) { in do_scsi_nolinuxstat() 810 set_no_disk_inquiry_result(buf, (size_t)cmdrsp->scsi.bufflen, in do_scsi_nolinuxstat() 815 cmdrsp->scsi.bufflen); in do_scsi_nolinuxstat()
|
/Linux-v5.15/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_fcoe.c | 145 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-v5.15/drivers/usb/usbip/ |
D | usbip_common.c | 52 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()
|
D | usbip_common.h | 318 usbip_alloc_iso_desc_pdu(struct urb *urb, ssize_t *bufflen);
|
/Linux-v5.15/tools/bpf/bpftool/ |
D | common.c | 127 mnt_fs(const char *target, const char *type, char *buff, size_t bufflen) in mnt_fs() argument 133 snprintf(buff, bufflen, in mnt_fs() 140 snprintf(buff, bufflen, in mnt_fs() 150 snprintf(buff, bufflen, "mount -t %s %s %s failed: %s", in mnt_fs()
|
/Linux-v5.15/drivers/staging/rts5208/ |
D | ms.c | 3845 int bufflen; local 3884 bufflen = min_t(int, 1052, scsi_bufflen(srb)); 3885 rtsx_stor_set_xfer_buf(buf, bufflen, srb); 3896 int bufflen; local 3941 bufflen = min_t(int, 12, scsi_bufflen(srb)); 3942 rtsx_stor_get_xfer_buf(buf, bufflen, srb); 3971 int bufflen; local 4007 bufflen = min_t(int, 36, scsi_bufflen(srb)); 4008 rtsx_stor_set_xfer_buf(buf2, bufflen, srb); 4026 int bufflen; local [all …]
|
/Linux-v5.15/drivers/nvme/host/ |
D | ioctl.c | 58 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()
|
D | nvme.h | 697 void *buf, unsigned bufflen); 699 union nvme_result *result, void *buffer, unsigned bufflen,
|
/Linux-v5.15/drivers/usb/storage/ |
D | isd200.c | 450 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-v5.15/drivers/staging/unisys/include/ |
D | iochannel.h | 214 u32 bufflen; member
|
/Linux-v5.15/drivers/scsi/esas2r/ |
D | esas2r_main.c | 824 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-v5.15/drivers/scsi/qedi/ |
D | qedi_debugfs.c | 196 seq_printf(s, "buflen-%d:", io_log->bufflen); in qedi_io_trace_show()
|
D | qedi.h | 230 unsigned int bufflen; /* SCSI buffer length */ member
|
/Linux-v5.15/drivers/scsi/qla2xxx/ |
D | tcm_qla2xxx.c | 406 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()
|