Home
last modified time | relevance | path

Searched refs:req_len (Results 1 – 25 of 59) sorted by relevance

123

/drivers/watchdog/
Dmei_wdt.c177 const size_t req_len = sizeof(req); in mei_wdt_ping() local
180 memset(&req, 0, req_len); in mei_wdt_ping()
182 req.hdr.bytecount = req_len - offsetof(struct mei_mc_hdr, subcommand); in mei_wdt_ping()
187 ret = mei_cldev_send(wdt->cldev, (u8 *)&req, req_len); in mei_wdt_ping()
205 const size_t req_len = sizeof(req); in mei_wdt_stop() local
208 memset(&req, 0, req_len); in mei_wdt_stop()
210 req.hdr.bytecount = req_len - offsetof(struct mei_mc_hdr, subcommand); in mei_wdt_stop()
214 ret = mei_cldev_send(wdt->cldev, (u8 *)&req, req_len); in mei_wdt_stop()
/drivers/char/tpm/
Dtpm_vtpm_proxy.c48 size_t req_len; /* length of queued TPM request */ member
85 proxy_dev->req_len != 0 || in vtpm_proxy_fops_read()
97 len = proxy_dev->req_len; in vtpm_proxy_fops_read()
108 proxy_dev->req_len = 0; in vtpm_proxy_fops_read()
152 proxy_dev->req_len = 0; in vtpm_proxy_fops_write()
187 if (proxy_dev->req_len) in vtpm_proxy_fops_poll()
359 proxy_dev->req_len = count; in vtpm_proxy_tpm_op_send()
/drivers/dma/
Dbcm-sba-raid.c754 size_t req_len; in sba_prep_dma_memcpy() local
761 req_len = (len < sba->hw_buf_size) ? len : sba->hw_buf_size; in sba_prep_dma_memcpy()
764 req_len, flags); in sba_prep_dma_memcpy()
776 off += req_len; in sba_prep_dma_memcpy()
777 len -= req_len; in sba_prep_dma_memcpy()
893 size_t req_len; in sba_prep_dma_xor() local
904 req_len = (len < sba->hw_buf_size) ? len : sba->hw_buf_size; in sba_prep_dma_xor()
907 req_len, flags); in sba_prep_dma_xor()
919 off += req_len; in sba_prep_dma_xor()
920 len -= req_len; in sba_prep_dma_xor()
[all …]
Dtegra20-apb-dma.c158 int req_len; member
543 return sg_req->req_len - (status & TEGRA_APBDMA_STATUS_COUNT_MASK) - 4; in get_current_xferred_count()
609 dma_desc->bytes_transferred += sgreq->req_len; in handle_once_dma_done()
640 (dma_desc->bytes_transferred + sgreq->req_len) % in handle_cont_sngl_cycle_dma_done()
1025 sg_req->req_len = len; in tegra_dma_prep_slave_sg()
1152 sg_req->req_len = len; in tegra_dma_prep_dma_cyclic()
/drivers/usb/gadget/function/
Du_audio.c383 int req_len, i; in u_audio_start_capture() local
388 req_len = prm->max_psize; in u_audio_start_capture()
404 req->length = req_len; in u_audio_start_capture()
436 int req_len, i; in u_audio_start_playback() local
463 req_len = uac->p_pktsize; in u_audio_start_playback()
480 req->length = req_len; in u_audio_start_playback()
/drivers/net/wireless/zydas/zd1211rw/
Dzd_usb.c1714 int r, i, req_len, actual_req_len, try_count = 0; in zd_usb_ioread16v() local
1747 req_len = sizeof(struct usb_req_read_regs) + count * sizeof(__le16); in zd_usb_ioread16v()
1758 r = zd_ep_regs_out_msg(udev, req, req_len, &actual_req_len, 50 /*ms*/); in zd_usb_ioread16v()
1764 if (req_len != actual_req_len) { in zd_usb_ioread16v()
1767 req_len, actual_req_len); in zd_usb_ioread16v()
1886 int i, req_len; in zd_usb_iowrite16v_async() local
1917 req_len = sizeof(struct usb_req_write_regs) + in zd_usb_iowrite16v_async()
1919 req = kmalloc(req_len, GFP_KERNEL); in zd_usb_iowrite16v_async()
1937 req, req_len, iowrite16v_urb_complete, usb, in zd_usb_iowrite16v_async()
1941 req, req_len, iowrite16v_urb_complete, usb); in zd_usb_iowrite16v_async()
[all …]
/drivers/usb/gadget/udc/bdc/
Dbdc_ep.c393 u32 req_len; in setup_first_bd_ep0() local
396 req_len = req->usb_req.length; in setup_first_bd_ep0()
405 if ((wValue > req_len) && in setup_first_bd_ep0()
406 (req_len % bdc->gadget.ep0->maxpacket == 0)) { in setup_first_bd_ep0()
408 wValue, req_len, in setup_first_bd_ep0()
440 u32 req_len; in setup_bd_list_xfr() local
448 req_len = req->usb_req.length; in setup_bd_list_xfr()
453 __func__, ep->name, num_bds, tfs, req_len, bd); in setup_bd_list_xfr()
471 if (req_len > BD_MAX_BUFF_SIZE) { in setup_bd_list_xfr()
473 req_len -= BD_MAX_BUFF_SIZE; in setup_bd_list_xfr()
[all …]
/drivers/scsi/snic/
Dsnic_io.c254 rqi->req_len = sizeof(struct snic_host_req); in snic_req_init()
262 rqi->req_len += (sg_cnt * sizeof(struct snic_sg_desc)); in snic_req_init()
271 memset(rqi->req, 0, rqi->req_len); in snic_req_init()
374 rqi->req_len, in snic_req_free()
Dsnic_io.h81 u16 req_len; /* buf len passing to fw (req + sgl)*/ member
/drivers/vfio/platform/
Dvfio_platform_common.c558 u64 req_len, pgoff, req_start; in vfio_platform_mmap_mmio() local
560 req_len = vma->vm_end - vma->vm_start; in vfio_platform_mmap_mmio()
565 if (region.size < PAGE_SIZE || req_start + req_len > region.size) in vfio_platform_mmap_mmio()
572 req_len, vma->vm_page_prot); in vfio_platform_mmap_mmio()
/drivers/iio/accel/
Dmma9551_core.c124 u8 req_len, err_code; in mma9551_transfer() local
132 req_len = 1 + MMA9551_MAILBOX_CTRL_REGS + num_inbytes; in mma9551_transfer()
147 out.len = req_len; in mma9551_transfer()
/drivers/s390/crypto/
Dzcrypt_msgtype6.c521 if (CEIL4(xcRB->req_len) < xcRB->req_len) in xcrb_msg_to_type6_ep11cprb_msgx()
525 ap_msg->length = sizeof(struct type6_hdr) + xcRB->req_len; in xcrb_msg_to_type6_ep11cprb_msgx()
526 if (CEIL4(xcRB->req_len) > MSGTYPE06_MAX_MSG_SIZE - in xcrb_msg_to_type6_ep11cprb_msgx()
539 msg->hdr.ToCardLen1 = xcRB->req_len; in xcrb_msg_to_type6_ep11cprb_msgx()
544 (char __force __user *)xcRB->req, xcRB->req_len)) { in xcrb_msg_to_type6_ep11cprb_msgx()
/drivers/scsi/isci/
Dsas.h203 u8 req_len; /* byte 3 */ member
Drequest.c3194 u8 req_len; in sci_io_request_construct_smp() local
3204 if (smp_req->req_len == 0) { in sci_io_request_construct_smp()
3210 smp_req->req_len = 2; in sci_io_request_construct_smp()
3215 smp_req->req_len = 9; in sci_io_request_construct_smp()
3220 req_len = smp_req->req_len; in sci_io_request_construct_smp()
3268 task_context->ssp_command_iu_length = req_len; in sci_io_request_construct_smp()
/drivers/scsi/mvsas/
Dmv_sas.c327 u32 req_len, resp_len, tag = tei->tag; in mvs_task_prep_smp() local
342 req_len = sg_dma_len(sg_req); in mvs_task_prep_smp()
353 if ((req_len & 0x3) || (resp_len & 0x3)) { in mvs_task_prep_smp()
401 hdr->lens = cpu_to_le32(((resp_len / 4) << 16) | ((req_len - 4) / 4)); in mvs_task_prep_smp()
459 u32 i, req_len, resp_len; in mvs_task_prep_ata() local
537 req_len = sizeof(struct host_to_dev_fis); in mvs_task_prep_ata()
543 hdr->lens = cpu_to_le32(((resp_len / 4) << 16) | (req_len / 4)); in mvs_task_prep_ata()
587 u32 resp_len, req_len, i, tag = tei->tag; in mvs_task_prep_ssp() local
656 req_len = sizeof(struct ssp_frame_hdr) + 28; in mvs_task_prep_ssp()
659 hdr->lens = cpu_to_le32(((resp_len / 4) << 16) | (req_len / 4)); in mvs_task_prep_ssp()
/drivers/net/wireless/ath/ath10k/
Dusb.c556 u8 req_val, u8 *req_buf, u32 req_len, in ath10k_usb_ctrl_msg_exchange() argument
564 req_buf, req_len); in ath10k_usb_ctrl_msg_exchange()
644 void *req, u32 req_len, in ath10k_usb_bmi_exchange_msg() argument
652 0, 0, req, req_len); in ath10k_usb_bmi_exchange_msg()
Dpci.h268 int ath10k_pci_hif_exchange_bmi_msg(struct ath10k *ar, void *req, u32 req_len,
/drivers/vfio/pci/
Dvfio_pci.c1128 u64 phys_len, req_len, pgoff, req_start; in vfio_pci_mmap() local
1143 req_len = vma->vm_end - vma->vm_start; in vfio_pci_mmap()
1148 if (req_start + req_len > phys_len) in vfio_pci_mmap()
1163 req_start + req_len <= vdev->msix_offset)) in vfio_pci_mmap()
1189 req_len, vma->vm_page_prot); in vfio_pci_mmap()
/drivers/net/wan/
Dhdlc_ppp.c376 unsigned int req_len, const u8 *data) in ppp_cp_parse_cr() argument
381 unsigned int len = req_len, nak_len = 0, rej_len = 0; in ppp_cp_parse_cr()
427 ppp_cp_event(dev, pid, RCR_GOOD, CP_CONF_ACK, id, req_len, data); in ppp_cp_parse_cr()
/drivers/crypto/
Dmv_cesa.c710 int is_last, unsigned int req_len, in mv_init_hash_req_ctx() argument
715 ctx->count = req_len; in mv_init_hash_req_ctx()
722 unsigned req_len) in mv_update_hash_req_ctx() argument
725 ctx->count += req_len; in mv_update_hash_req_ctx()
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcfg80211.h213 __le32 req_len; member
/drivers/net/fjes/
Dfjes_hw.h191 u32 req_len; member
/drivers/scsi/lpfc/
Dlpfc_bsg.c1920 uint32_t req_len, alloc_len; in lpfc_sli4_bsg_set_link_diag_state() local
1927 req_len = (sizeof(struct lpfc_mbx_set_link_diag_state) - in lpfc_sli4_bsg_set_link_diag_state()
1931 req_len, LPFC_SLI4_MBX_EMBED); in lpfc_sli4_bsg_set_link_diag_state()
1932 if (alloc_len != req_len) { in lpfc_sli4_bsg_set_link_diag_state()
1980 uint32_t req_len, alloc_len; in lpfc_sli4_bsg_set_internal_loopback() local
1987 req_len = (sizeof(struct lpfc_mbx_set_link_diag_loopback) - in lpfc_sli4_bsg_set_internal_loopback()
1991 req_len, LPFC_SLI4_MBX_EMBED); in lpfc_sli4_bsg_set_internal_loopback()
1992 if (alloc_len != req_len) { in lpfc_sli4_bsg_set_internal_loopback()
2329 uint32_t req_len, alloc_len; in lpfc_sli4_bsg_link_diag_test() local
2390 req_len = (sizeof(struct lpfc_mbx_set_link_diag_state) - in lpfc_sli4_bsg_link_diag_test()
[all …]
/drivers/usb/gadget/udc/
Dm66592-udc.c845 int rcv_len, bufsize, req_len; in irq_packet_read() local
867 req_len = req->req.length - req->req.actual; in irq_packet_read()
869 size = min(rcv_len, req_len); in irq_packet_read()
871 size = min(bufsize, req_len); in irq_packet_read()
/drivers/scsi/hisi_sas/
Dhisi_sas_v1_hw.c980 unsigned int req_len, resp_len; in prep_smp_v1_hw() local
991 req_len = sg_dma_len(sg_req); in prep_smp_v1_hw()
1002 if ((req_len & 0x3) || (resp_len & 0x3)) { in prep_smp_v1_hw()
1018 hdr->dw2 = cpu_to_le32((((req_len-4)/4) << CMD_HDR_CFL_OFF) | in prep_smp_v1_hw()

123