/linux-4.1.27/tools/usb/usbip/src/ |
H A D | usbip_network.c | 107 static ssize_t usbip_net_xmit(int sockfd, void *buff, size_t bufflen, usbip_net_xmit() argument 113 if (!bufflen) usbip_net_xmit() 118 nbytes = send(sockfd, buff, bufflen, 0); usbip_net_xmit() 120 nbytes = recv(sockfd, buff, bufflen, MSG_WAITALL); usbip_net_xmit() 126 bufflen -= nbytes; usbip_net_xmit() 129 } while (bufflen > 0); usbip_net_xmit() 134 ssize_t usbip_net_recv(int sockfd, void *buff, size_t bufflen) usbip_net_recv() argument 136 return usbip_net_xmit(sockfd, buff, bufflen, 0); usbip_net_recv() 139 ssize_t usbip_net_send(int sockfd, void *buff, size_t bufflen) usbip_net_send() argument 141 return usbip_net_xmit(sockfd, buff, bufflen, 1); usbip_net_send()
|
H A D | usbip_network.h | 175 ssize_t usbip_net_recv(int sockfd, void *buff, size_t bufflen); 176 ssize_t usbip_net_send(int sockfd, void *buff, size_t bufflen);
|
/linux-4.1.27/drivers/scsi/device_handler/ |
H A D | scsi_dh_alua.c | 74 int bufflen; member in struct:alua_dh_data 102 h->bufflen = ALUA_INQUIRY_SIZE; realloc_buffer() 105 h->bufflen = len; realloc_buffer() 148 rq = get_alua_req(sdev, h->buff, h->bufflen, READ); submit_vpd_inquiry() 156 rq->cmd[4] = h->bufflen; submit_vpd_inquiry() 186 rq = get_alua_req(sdev, h->buff, h->bufflen, READ); submit_rtpg() 196 rq->cmd[6] = (h->bufflen >> 24) & 0xff; submit_rtpg() 197 rq->cmd[7] = (h->bufflen >> 16) & 0xff; submit_rtpg() 198 rq->cmd[8] = (h->bufflen >> 8) & 0xff; submit_rtpg() 199 rq->cmd[9] = h->bufflen & 0xff; submit_rtpg() 376 if (len > h->bufflen) { alua_vpd_inquiry() 592 if (len > h->bufflen) { alua_rtpg() 844 h->bufflen = ALUA_INQUIRY_SIZE; alua_bus_attach()
|
/linux-4.1.27/drivers/scsi/ |
H A D | ses.c | 85 void *buf, int bufflen) ses_recv_diag() 91 bufflen >> 8, ses_recv_diag() 92 bufflen & 0xff, ses_recv_diag() 96 return scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buf, bufflen, ses_recv_diag() 101 void *buf, int bufflen) ses_send_diag() 109 bufflen >> 8, ses_send_diag() 110 bufflen & 0xff, ses_send_diag() 114 result = scsi_execute_req(sdev, cmd, DMA_TO_DEVICE, buf, bufflen, ses_send_diag() 84 ses_recv_diag(struct scsi_device *sdev, int page_code, void *buf, int bufflen) ses_recv_diag() argument 100 ses_send_diag(struct scsi_device *sdev, int page_code, void *buf, int bufflen) ses_send_diag() argument
|
H A D | sg.c | 125 unsigned bufflen; /* Size of (aggregate) data buffer */ member in struct:sg_scatter_hold 724 if (hp->dxfer_len > sfp->reserve.bufflen) { sg_new_write() 897 val = (int) sfp->reserve.bufflen; sg_ioctl() 971 if (val != sfp->reserve.bufflen) { sg_ioctl() 979 val = min_t(int, sfp->reserve.bufflen, sg_ioctl() 1202 if (offset >= rsv_schp->bufflen) sg_vma_fault() 1247 if (req_sz > rsv_schp->bufflen) sg_mmap() 1729 if (!sg_res_in_use(sfp) && dxfer_len <= rsv_schp->bufflen) sg_start_req() 1888 schp->bufflen = blk_size; sg_build_indirect() 1995 req_schp->bufflen = size; sg_link_reserve() 2016 req_schp->bufflen = 0; sg_unlink_reserve() 2123 int bufflen; sg_add_sfp() local 2153 bufflen = min_t(int, sg_big_buff, sg_add_sfp() 2155 sg_build_reserve(sfp, bufflen); sg_add_sfp() 2157 "sg_add_sfp: bufflen=%d, k_use_sg=%d\n", sg_add_sfp() 2158 sfp->reserve.bufflen, sg_add_sfp() 2176 if (sfp->reserve.bufflen > 0) { sg_remove_sfp_usercontext() 2178 "sg_remove_sfp: bufflen=%d, k_use_sg=%d\n", sg_remove_sfp_usercontext() 2179 (int) sfp->reserve.bufflen, sg_remove_sfp_usercontext() 2602 seq_printf(s, " FD(%d): timeout=%dms bufflen=%d " sg_proc_debug_helper() 2605 fp->reserve.bufflen, sg_proc_debug_helper() 2629 blen = srp->data.bufflen; sg_proc_debug_helper()
|
H A D | vmw_pvscsi.c | 357 unsigned bufflen = scsi_bufflen(cmd); pvscsi_map_buffers() local 360 e->dataLen = bufflen; pvscsi_map_buffers() 362 if (bufflen == 0) pvscsi_map_buffers() 383 ctx->dataPA = pci_map_single(adapter->dev, sg, bufflen, pvscsi_map_buffers() 393 unsigned bufflen; pvscsi_unmap_buffers() local 396 bufflen = scsi_bufflen(cmd); pvscsi_unmap_buffers() 398 if (bufflen != 0) { pvscsi_unmap_buffers() 409 pci_unmap_single(adapter->dev, ctx->dataPA, bufflen, pvscsi_unmap_buffers()
|
H A D | aha1542.c | 377 int bufflen = scsi_bufflen(cmd); aha1542_queuecommand() local 397 target, *cmd->cmnd, i, bufflen); aha1542_queuecommand() 401 if (bufflen) { /* allocate memory before taking host_lock */ aha1542_queuecommand() 450 if (bufflen) { aha1542_queuecommand()
|
H A D | scsi_lib.c | 205 * @bufflen: len of buffer 216 int data_direction, void *buffer, unsigned bufflen, scsi_execute() 229 if (bufflen && blk_rq_map_kern(sdev->request_queue, req, scsi_execute() 230 buffer, bufflen, __GFP_WAIT)) scsi_execute() 252 if (unlikely(req->resid_len > 0 && req->resid_len <= bufflen)) scsi_execute() 253 memset(buffer + (bufflen - req->resid_len), 0, req->resid_len); scsi_execute() 266 int data_direction, void *buffer, unsigned bufflen, scsi_execute_req_flags() 278 result = scsi_execute(sdev, cmd, data_direction, buffer, bufflen, scsi_execute_req_flags() 215 scsi_execute(struct scsi_device *sdev, const unsigned char *cmd, int data_direction, void *buffer, unsigned bufflen, unsigned char *sense, int timeout, int retries, u64 flags, int *resid) scsi_execute() argument 265 scsi_execute_req_flags(struct scsi_device *sdev, const unsigned char *cmd, int data_direction, void *buffer, unsigned bufflen, struct scsi_sense_hdr *sshdr, int timeout, int retries, int *resid, u64 flags) scsi_execute_req_flags() argument
|
H A D | aha1740.c | 340 target, *cmd, i, bufflen); aha1740_queuecommand_lck()
|
H A D | scsi_transport_spi.c | 121 void *buffer, unsigned bufflen, spi_execute() 128 result = scsi_execute(sdev, cmd, dir, buffer, bufflen, spi_execute() 119 spi_execute(struct scsi_device *sdev, const void *cmd, enum dma_data_direction dir, void *buffer, unsigned bufflen, struct scsi_sense_hdr *sshdr) spi_execute() argument
|
H A D | NCR53c406a.c | 701 DEB(printk("cmd=%02x, cmd_len=%02x, target=%02x, lun=%02x, bufflen=%d\n", SCpnt->cmnd[0], SCpnt->cmd_len, SCpnt->device->target, (u8)SCpnt->device->lun, scsi_bufflen(SCpnt))); NCR53c406a_queue_lck()
|
H A D | osst.c | 357 int cmd_len, int data_direction, void *buffer, unsigned bufflen, osst_execute() 391 DIV_ROUND_UP(bufflen, PAGE_SIZE << mdata->page_order); osst_execute() 394 err = blk_rq_map_user(req->q, req, mdata, NULL, bufflen, GFP_KERNEL); osst_execute() 402 } else if (bufflen) { osst_execute() 403 err = blk_rq_map_kern(req->q, req, buffer, bufflen, GFP_KERNEL); osst_execute() 355 osst_execute(struct osst_request *SRpnt, const unsigned char *cmd, int cmd_len, int data_direction, void *buffer, unsigned bufflen, int use_sg, int timeout, int retries) osst_execute() argument
|
H A D | st.c | 494 int data_direction, void *buffer, unsigned bufflen, st_scsi_execute() 512 if (bufflen) { st_scsi_execute() 513 err = blk_rq_map_user(req->q, req, mdata, NULL, bufflen, st_scsi_execute() 491 st_scsi_execute(struct st_request *SRpnt, const unsigned char *cmd, int data_direction, void *buffer, unsigned bufflen, int timeout, int retries) st_scsi_execute() argument
|
H A D | mesh.c | 420 printk(" use_sg=%d buffer=%p bufflen=%u\n", mesh_start_cmd()
|
H A D | dc395x.c | 1011 cmd->bufflen, scsi_sglist(cmd), scsi_sg_count(cmd), build_srb()
|
/linux-4.1.27/drivers/platform/goldfish/ |
H A D | goldfish_pipe.c | 270 size_t bufflen, int is_write) goldfish_pipe_read_write() 285 if (unlikely(bufflen) == 0) goldfish_pipe_read_write() 290 buffer, bufflen)) goldfish_pipe_read_write() 298 address_end = address + bufflen; goldfish_pipe_read_write() 400 size_t bufflen, loff_t *ppos) goldfish_pipe_read() 402 return goldfish_pipe_read_write(filp, buffer, bufflen, 0); goldfish_pipe_read() 406 const char __user *buffer, size_t bufflen, goldfish_pipe_write() 410 bufflen, 1); goldfish_pipe_write() 269 goldfish_pipe_read_write(struct file *filp, char __user *buffer, size_t bufflen, int is_write) goldfish_pipe_read_write() argument 399 goldfish_pipe_read(struct file *filp, char __user *buffer, size_t bufflen, loff_t *ppos) goldfish_pipe_read() argument 405 goldfish_pipe_write(struct file *filp, const char __user *buffer, size_t bufflen, loff_t *ppos) goldfish_pipe_write() argument
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_fcoe.c | 168 static const unsigned int bufflen = IXGBE_FCBUFF_MIN; ixgbe_fcoe_ddp_setup() local 240 thisoff = addr & ((dma_addr_t)bufflen - 1); for_each_sg() 241 thislen = min((bufflen - thisoff), len); for_each_sg() 244 * must be aligned on bufflen for_each_sg() 251 * must end at bufflen for_each_sg() 254 && ((thislen + thisoff) != bufflen)) for_each_sg() 266 /* only the last buffer may have non-full bufflen */ 273 if (lastsize == bufflen) {
|
/linux-4.1.27/drivers/staging/rts5208/ |
H A D | ms.c | 4300 int bufflen; mg_get_local_EKB() local 4345 bufflen = min_t(int, 1052, scsi_bufflen(srb)); mg_get_local_EKB() 4346 rtsx_stor_set_xfer_buf(buf, bufflen, srb); mg_get_local_EKB() 4357 int bufflen; mg_chg() local 4409 bufflen = min_t(int, 12, scsi_bufflen(srb)); mg_chg() 4410 rtsx_stor_get_xfer_buf(buf, bufflen, srb); mg_chg() 4441 int bufflen; mg_get_rsp_chg() local 4482 bufflen = min_t(int, 36, scsi_bufflen(srb)); mg_get_rsp_chg() 4483 rtsx_stor_set_xfer_buf(buf2, bufflen, srb); mg_get_rsp_chg() 4502 int bufflen; mg_rsp() local 4521 bufflen = min_t(int, 12, scsi_bufflen(srb)); mg_rsp() 4522 rtsx_stor_get_xfer_buf(buf, bufflen, srb); mg_rsp() 4553 int bufflen; mg_get_ICV() local 4598 bufflen = min_t(int, 1028, scsi_bufflen(srb)); mg_get_ICV() 4599 rtsx_stor_set_xfer_buf(buf, bufflen, srb); mg_get_ICV() 4610 int bufflen; mg_set_ICV() local 4631 bufflen = min_t(int, 1028, scsi_bufflen(srb)); mg_set_ICV() 4632 rtsx_stor_get_xfer_buf(buf, bufflen, srb); mg_set_ICV()
|
/linux-4.1.27/drivers/usb/usbip/ |
H A D | usbip_common.c | 64 static void usbip_dump_buffer(char *buff, int bufflen) usbip_dump_buffer() argument 67 buff, bufflen, false); usbip_dump_buffer() 596 usbip_alloc_iso_desc_pdu(struct urb *urb, ssize_t *bufflen) usbip_alloc_iso_desc_pdu() argument 612 *bufflen = size; usbip_alloc_iso_desc_pdu()
|
H A D | usbip_common.h | 308 usbip_alloc_iso_desc_pdu(struct urb *urb, ssize_t *bufflen);
|
/linux-4.1.27/include/scsi/ |
H A D | scsi_device.h | 422 int data_direction, void *buffer, unsigned bufflen, 427 unsigned bufflen, struct scsi_sense_hdr *sshdr, int timeout, 431 unsigned bufflen, struct scsi_sense_hdr *sshdr, int timeout, scsi_execute_req() 435 bufflen, sshdr, timeout, retries, resid, 0); scsi_execute_req() 429 scsi_execute_req(struct scsi_device *sdev, const unsigned char *cmd, int data_direction, void *buffer, unsigned bufflen, struct scsi_sense_hdr *sshdr, int timeout, int retries, int *resid) scsi_execute_req() argument
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_fcoe.c | 819 static const unsigned int bufflen = I40E_FCOE_DDP_BUF_MIN; i40e_fcoe_ddp_setup() local 897 thisoff = addr & ((dma_addr_t)bufflen - 1); for_each_sg() 898 thislen = min_t(unsigned int, (bufflen - thisoff), len); for_each_sg() 900 * must be aligned on bufflen for_each_sg() 907 * must end at bufflen for_each_sg() 910 ((thislen + thisoff) != bufflen)) for_each_sg() 922 /* only the last buffer may have non-full bufflen */
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
H A D | qla_target.c | 1631 prm->seg_cnt = DIV_ROUND_UP(cmd->bufflen, cmd->blk_sz); qlt_pci_map_calc_cnt() 1647 prm->prot_seg_cnt = DIV_ROUND_UP(cmd->bufflen, qlt_pci_map_calc_cnt() 1873 pkt24->u.status0.transfer_length = cpu_to_le32(prm->cmd->bufflen); qlt_load_data_segments() 1912 return cmd->bufflen > 0; qlt_has_data() 1952 "op %x, bufflen %d, rq_result %x)\n", prm->residual, qlt_pre_xmit_response() 1954 cmd->bufflen, prm->rq_result); qlt_pre_xmit_response() 1960 "op %x, bufflen %d, rq_result %x)\n", prm->residual, qlt_pre_xmit_response() 1962 cmd->bufflen, prm->rq_result); qlt_pre_xmit_response() 2058 " tail to len %d, sg_cnt %d (cmd->bufflen %d," qlt_check_srr_debug() 2060 cmd->bufflen, cmd->sg_cnt); qlt_check_srr_debug() 2062 cmd->bufflen = tot_len; qlt_check_srr_debug() 2067 unsigned int offset = qlt_srr_random() % cmd->bufflen; qlt_check_srr_debug() 2071 "to offset %d (cmd->bufflen %d)", cmd, cmd->tag, offset, qlt_check_srr_debug() 2072 cmd->bufflen); qlt_check_srr_debug() 2299 data_bytes = cmd->bufflen; qlt_build_ctio_crc2_pkt() 2506 "is_send_status=%d, cmd->bufflen=%d, cmd->sg_cnt=%d, cmd->dma_data_direction=%d se_cmd[%p]\n", qlt_xmit_response() 2508 1 : 0, cmd->bufflen, cmd->sg_cnt, cmd->dma_data_direction, qlt_xmit_response() 4325 int i, sg_srr_cnt, bufflen = 0; qlt_set_data_offset() local 4393 bufflen += sgp->length; for_each_sg() 4402 cmd->bufflen = bufflen; 4409 ql_dbg(ql_dbg_tgt, cmd->vha, 0xe028, "New cmd->bufflen: %u\n", 4410 cmd->bufflen); 4417 if (cmd->bufflen < 0) 4439 } else if (rel_offs == cmd->bufflen) qlt_srr_adjust_data() 4490 cmd->bufflen = se_cmd->data_length; qlt_handle_srr() 4523 cmd->bufflen = se_cmd->data_length; qlt_handle_srr()
|
H A D | tcm_qla2xxx.c | 493 cmd->bufflen = se_cmd->data_length; tcm_qla2xxx_write_pending() 670 cmd->bufflen = se_cmd->data_length; tcm_qla2xxx_queue_data_in() 696 cmd->bufflen = se_cmd->data_length; tcm_qla2xxx_queue_status() 709 * For FCP_READ with CHECK_CONDITION status, clear cmd->bufflen tcm_qla2xxx_queue_status() 719 cmd->bufflen = 0; tcm_qla2xxx_queue_status()
|
H A D | qla_target.h | 955 int bufflen; /* cmd buffer length */ member in struct:qla_tgt_cmd
|
H A D | qla_iocb.c | 952 sgx.tot_bytes = tc->bufflen; qla24xx_walk_and_build_sglist_no_difb()
|
/linux-4.1.27/drivers/ide/ |
H A D | ide-atapi.c | 90 struct ide_atapi_pc *pc, void *buf, unsigned int bufflen) ide_queue_pc_tail() 99 if (buf && bufflen) { ide_queue_pc_tail() 100 error = blk_rq_map_kern(drive->queue, rq, buf, bufflen, ide_queue_pc_tail() 89 ide_queue_pc_tail(ide_drive_t *drive, struct gendisk *disk, struct ide_atapi_pc *pc, void *buf, unsigned int bufflen) ide_queue_pc_tail() argument
|
H A D | ide-cd.c | 423 int write, void *buffer, unsigned *bufflen, ide_cd_queue_pc() 453 *bufflen, GFP_NOIO); ide_cd_queue_pc() 463 *bufflen = rq->resid_len; ide_cd_queue_pc() 422 ide_cd_queue_pc(ide_drive_t *drive, const unsigned char *cmd, int write, void *buffer, unsigned *bufflen, struct request_sense *sense, int timeout, unsigned int cmd_flags) ide_cd_queue_pc() argument
|
/linux-4.1.27/drivers/staging/unisys/virthba/ |
H A D | virthba.c | 853 cmdrsp->scsi.bufflen = scsi_bufflen(scsicmd); virthba_queue_command_lck() 856 if (cmdrsp->scsi.bufflen > max_buff_len) virthba_queue_command_lck() 857 max_buff_len = cmdrsp->scsi.bufflen; virthba_queue_command_lck() 1028 (cmdrsp->scsi.bufflen >= MIN_INQUIRY_RESULT_LEN)) { do_scsi_nolinuxstat() 1037 SET_NO_DISK_INQUIRY_RESULT(buf, cmdrsp->scsi.bufflen, do_scsi_nolinuxstat() 1048 cmdrsp->scsi.bufflen); do_scsi_nolinuxstat()
|
/linux-4.1.27/drivers/scsi/esas2r/ |
H A D | esas2r_main.c | 884 unsigned bufflen; esas2r_queuecommand() local 902 bufflen = scsi_bufflen(cmd); esas2r_queuecommand() 904 if (likely(bufflen != 0)) { esas2r_queuecommand() 912 rq->vrq->scsi.length = cpu_to_le32(bufflen); esas2r_queuecommand() 920 sgc.length = bufflen; esas2r_queuecommand()
|
/linux-4.1.27/drivers/usb/storage/ |
H A D | isd200.c | 459 enum dma_data_direction dir, void* buff, unsigned bufflen) isd200_set_srb() 464 sg_init_one(&info->sg, buff, bufflen); isd200_set_srb() 468 srb->sdb.length = bufflen; isd200_set_srb() 472 static void isd200_srb_set_bufflen(struct scsi_cmnd *srb, unsigned bufflen) isd200_srb_set_bufflen() argument 474 srb->sdb.length = bufflen; isd200_srb_set_bufflen() 458 isd200_set_srb(struct isd200_info *info, enum dma_data_direction dir, void* buff, unsigned bufflen) isd200_set_srb() argument
|
/linux-4.1.27/include/xen/interface/io/ |
H A D | vscsiif.h | 222 uint32_t residual_len; /* request bufflen -
|
/linux-4.1.27/drivers/scsi/ibmvscsi/ |
H A D | ibmvfc.h | 246 __be32 bufflen; member in struct:ibmvfc_discover_targets
|
H A D | ibmvfc.c | 3992 mad->bufflen = cpu_to_be32(vhost->disc_buf_sz); ibmvfc_discover_targets()
|
/linux-4.1.27/drivers/scsi/pcmcia/ |
H A D | sym53c500_cs.c | 559 DEB(printk("cmd=%02x, cmd_len=%02x, target=%02x, lun=%02x, bufflen=%d\n", SYM53C500_queue_lck()
|
H A D | nsp_cs.c | 198 "SCpnt=0x%p target=%d lun=%llu sglist=0x%p bufflen=%d sg_count=%d", nsp_queuecommand_lck()
|
/linux-4.1.27/drivers/staging/unisys/common-spar/include/channels/ |
H A D | iochannel.h | 273 u32 bufflen; /* length of data to be transferred out or in */ member in struct:uiscmdrsp_scsi
|