Home
last modified time | relevance | path

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

1234

/linux-6.1.9/fs/ksmbd/
Dsmb2misc.c287 unsigned int req_len = 0, expect_resp_len = 0, calc_credit_num, max_len; in smb2_validate_credit_charge() local
294 req_len = smb2_query_info_req_len(__hdr); in smb2_validate_credit_charge()
297 req_len = smb2_set_info_req_len(__hdr); in smb2_validate_credit_charge()
300 req_len = smb2_read_req_len(__hdr); in smb2_validate_credit_charge()
303 req_len = smb2_write_req_len(__hdr); in smb2_validate_credit_charge()
306 req_len = smb2_query_dir_req_len(__hdr); in smb2_validate_credit_charge()
309 req_len = smb2_ioctl_req_len(__hdr); in smb2_validate_credit_charge()
315 req_len = 1; in smb2_validate_credit_charge()
320 max_len = max_t(unsigned int, req_len, expect_resp_len); in smb2_validate_credit_charge()
/linux-6.1.9/drivers/watchdog/
Dmei_wdt.c169 const size_t req_len = sizeof(req); in mei_wdt_ping() local
172 memset(&req, 0, req_len); in mei_wdt_ping()
174 req.hdr.bytecount = req_len - offsetof(struct mei_mc_hdr, subcommand); in mei_wdt_ping()
179 ret = mei_cldev_send(wdt->cldev, (u8 *)&req, req_len); in mei_wdt_ping()
197 const size_t req_len = sizeof(req); in mei_wdt_stop() local
200 memset(&req, 0, req_len); in mei_wdt_stop()
202 req.hdr.bytecount = req_len - offsetof(struct mei_mc_hdr, subcommand); in mei_wdt_stop()
206 ret = mei_cldev_send(wdt->cldev, (u8 *)&req, req_len); in mei_wdt_stop()
/linux-6.1.9/fs/nfs/
Ddirect.c344 unsigned int req_len = min_t(size_t, bytes, PAGE_SIZE - pgbase); in nfs_direct_read_schedule_iovec() local
347 pgbase, req_len); in nfs_direct_read_schedule_iovec()
360 bytes -= req_len; in nfs_direct_read_schedule_iovec()
361 requested_bytes += req_len; in nfs_direct_read_schedule_iovec()
362 pos += req_len; in nfs_direct_read_schedule_iovec()
363 dreq->bytes_left -= req_len; in nfs_direct_read_schedule_iovec()
803 unsigned int req_len = min_t(size_t, bytes, PAGE_SIZE - pgbase); in nfs_direct_write_schedule_iovec() local
806 pgbase, req_len); in nfs_direct_write_schedule_iovec()
827 bytes -= req_len; in nfs_direct_write_schedule_iovec()
828 requested_bytes += req_len; in nfs_direct_write_schedule_iovec()
[all …]
/linux-6.1.9/drivers/char/tpm/
Dtpm_vtpm_proxy.c43 size_t req_len; /* length of queued TPM request */ member
80 proxy_dev->req_len != 0 || in vtpm_proxy_fops_read()
92 len = proxy_dev->req_len; in vtpm_proxy_fops_read()
103 proxy_dev->req_len = 0; in vtpm_proxy_fops_read()
147 proxy_dev->req_len = 0; in vtpm_proxy_fops_write()
182 if (proxy_dev->req_len) in vtpm_proxy_fops_poll()
354 proxy_dev->req_len = count; in vtpm_proxy_tpm_op_send()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_hwrm.c61 int __hwrm_req_init(struct bnxt *bp, void **req, u16 req_type, u32 req_len) in __hwrm_req_init() argument
67 if (req_len > BNXT_HWRM_CTX_OFFSET) in __hwrm_req_init()
78 ctx->req_len = req_len; in __hwrm_req_init()
220 ctx->req_len = len; in hwrm_req_replace()
469 u32 msg_len = ctx->req_len; in __hwrm_send()
792 if (addr < req_addr + max_offset && req_addr + ctx->req_len <= addr) { in hwrm_req_dma_slice()
Dbnxt_hwrm.h33 u32 req_len; member
128 int __hwrm_req_init(struct bnxt *bp, void **req, u16 req_type, u32 req_len);
/linux-6.1.9/drivers/dma/
Dbcm-sba-raid.c729 size_t req_len; in sba_prep_dma_memcpy() local
736 req_len = (len < sba->hw_buf_size) ? len : sba->hw_buf_size; in sba_prep_dma_memcpy()
739 req_len, flags); in sba_prep_dma_memcpy()
751 off += req_len; in sba_prep_dma_memcpy()
752 len -= req_len; in sba_prep_dma_memcpy()
868 size_t req_len; in sba_prep_dma_xor() local
879 req_len = (len < sba->hw_buf_size) ? len : sba->hw_buf_size; in sba_prep_dma_xor()
882 req_len, flags); in sba_prep_dma_xor()
894 off += req_len; in sba_prep_dma_xor()
895 len -= req_len; in sba_prep_dma_xor()
[all …]
Dtegra20-apb-dma.c151 unsigned int req_len; member
523 return sg_req->req_len - (status & TEGRA_APBDMA_STATUS_COUNT_MASK) - 4; in get_current_xferred_count()
585 dma_desc->bytes_transferred += sgreq->req_len; in handle_once_dma_done()
621 (dma_desc->bytes_transferred + sgreq->req_len) % in handle_cont_sngl_cycle_dma_done()
850 return sg_req->req_len; in tegra_dma_sg_bytes_xferred()
870 wcount = sg_req->req_len - 4; in tegra_dma_sg_bytes_xferred()
884 wcount = sg_req->req_len - 4; in tegra_dma_sg_bytes_xferred()
1140 sg_req->req_len = len; in tegra_dma_prep_slave_sg()
1275 sg_req->req_len = len; in tegra_dma_prep_dma_cyclic()
/linux-6.1.9/drivers/net/wireless/zydas/zd1211rw/
Dzd_usb.c1697 int r, i, req_len, actual_req_len, try_count = 0; in zd_usb_ioread16v() local
1725 req_len = sizeof(struct usb_req_read_regs) + count * sizeof(__le16); in zd_usb_ioread16v()
1736 r = zd_ep_regs_out_msg(udev, req, req_len, &actual_req_len, 50 /*ms*/); in zd_usb_ioread16v()
1742 if (req_len != actual_req_len) { in zd_usb_ioread16v()
1745 req_len, actual_req_len); in zd_usb_ioread16v()
1864 int i, req_len; in zd_usb_iowrite16v_async() local
1890 req_len = struct_size(req, reg_writes, count); in zd_usb_iowrite16v_async()
1891 req = kmalloc(req_len, GFP_KERNEL); in zd_usb_iowrite16v_async()
1909 req, req_len, iowrite16v_urb_complete, usb, in zd_usb_iowrite16v_async()
1913 req, req_len, iowrite16v_urb_complete, usb); in zd_usb_iowrite16v_async()
[all …]
/linux-6.1.9/include/linux/
Dfsi-occ.h24 int fsi_occ_submit(struct device *dev, const void *request, size_t req_len,
/linux-6.1.9/drivers/ufs/core/
Dufs_bsg.c91 unsigned int req_len = job->request_len; in ufs_bsg_request() local
100 ret = ufs_bsg_verify_query_size(hba, req_len, reply_len); in ufs_bsg_request()
/linux-6.1.9/drivers/scsi/snic/
Dsnic_io.c241 rqi->req_len = sizeof(struct snic_host_req); in snic_req_init()
249 rqi->req_len += (sg_cnt * sizeof(struct snic_sg_desc)); in snic_req_init()
258 memset(rqi->req, 0, rqi->req_len); in snic_req_init()
361 rqi->req_len, in snic_req_free()
Dsnic_io.h67 u16 req_len; /* buf len passing to fw (req + sgl)*/ member
/linux-6.1.9/drivers/usb/gadget/udc/bdc/
Dbdc_ep.c387 u32 req_len; in setup_first_bd_ep0() local
390 req_len = req->usb_req.length; in setup_first_bd_ep0()
399 if ((wValue > req_len) && in setup_first_bd_ep0()
400 (req_len % bdc->gadget.ep0->maxpacket == 0)) { in setup_first_bd_ep0()
402 wValue, req_len, in setup_first_bd_ep0()
434 u32 req_len; in setup_bd_list_xfr() local
442 req_len = req->usb_req.length; in setup_bd_list_xfr()
447 __func__, ep->name, num_bds, tfs, req_len, bd); in setup_bd_list_xfr()
465 if (req_len > BD_MAX_BUFF_SIZE) { in setup_bd_list_xfr()
467 req_len -= BD_MAX_BUFF_SIZE; in setup_bd_list_xfr()
[all …]
/linux-6.1.9/drivers/usb/gadget/function/
Du_audio.c596 int req_len, i; in u_audio_start_capture() local
602 req_len = ep->maxpacket; in u_audio_start_capture()
617 req->length = req_len; in u_audio_start_capture()
636 req_len = ep_fback->maxpacket; in u_audio_start_capture()
645 req_fback->length = req_len; in u_audio_start_capture()
648 req_fback->buf = kzalloc(req_len, GFP_ATOMIC); in u_audio_start_capture()
691 int req_len, i; in u_audio_start_playback() local
720 req_len = p_pktsize; in u_audio_start_playback()
736 req->length = req_len; in u_audio_start_playback()
/linux-6.1.9/drivers/vfio/platform/
Dvfio_platform_common.c548 u64 req_len, pgoff, req_start; in vfio_platform_mmap_mmio() local
550 req_len = vma->vm_end - vma->vm_start; in vfio_platform_mmap_mmio()
555 if (region.size < PAGE_SIZE || req_start + req_len > region.size) in vfio_platform_mmap_mmio()
562 req_len, vma->vm_page_prot); in vfio_platform_mmap_mmio()
/linux-6.1.9/drivers/iio/accel/
Dmma9551_core.c116 u8 req_len, err_code; in mma9551_transfer() local
124 req_len = 1 + MMA9551_MAILBOX_CTRL_REGS + num_inbytes; in mma9551_transfer()
139 out.len = req_len; in mma9551_transfer()
/linux-6.1.9/drivers/scsi/isci/
Dsas.h203 u8 req_len; /* byte 3 */ member
/linux-6.1.9/drivers/net/ethernet/microsoft/mana/
Dhw_channel.c781 int mana_hwc_send_request(struct hw_channel_context *hwc, u32 req_len, in mana_hwc_send_request() argument
798 if (req_len > tx_wr->buf_len) { in mana_hwc_send_request()
799 dev_err(hwc->dev, "HWC: req msg size: %d > %d\n", req_len, in mana_hwc_send_request()
811 memcpy(req_msg, req, req_len); in mana_hwc_send_request()
815 tx_wr->msg_size = req_len; in mana_hwc_send_request()
Dhw_channel.h192 int mana_hwc_send_request(struct hw_channel_context *hwc, u32 req_len,
/linux-6.1.9/drivers/scsi/mvsas/
Dmv_sas.c314 u32 req_len, resp_len, tag = tei->tag; in mvs_task_prep_smp() local
329 req_len = sg_dma_len(sg_req); in mvs_task_prep_smp()
340 if ((req_len & 0x3) || (resp_len & 0x3)) { in mvs_task_prep_smp()
388 hdr->lens = cpu_to_le32(((resp_len / 4) << 16) | ((req_len - 4) / 4)); in mvs_task_prep_smp()
446 u32 i, req_len, resp_len; in mvs_task_prep_ata() local
524 req_len = sizeof(struct host_to_dev_fis); in mvs_task_prep_ata()
530 hdr->lens = cpu_to_le32(((resp_len / 4) << 16) | (req_len / 4)); in mvs_task_prep_ata()
574 u32 resp_len, req_len, i, tag = tei->tag; in mvs_task_prep_ssp() local
643 req_len = sizeof(struct ssp_frame_hdr) + 28; in mvs_task_prep_ssp()
646 hdr->lens = cpu_to_le32(((resp_len / 4) << 16) | (req_len / 4)); in mvs_task_prep_ssp()
/linux-6.1.9/drivers/fsi/
Dfsi-occ.c465 int fsi_occ_submit(struct device *dev, const void *request, size_t req_len, in fsi_occ_submit() argument
496 for (i = 1; i < req_len - 2; ++i) in fsi_occ_submit()
525 rc = occ_putsram(occ, request, req_len, seq_no, checksum); in fsi_occ_submit()
/linux-6.1.9/drivers/s390/crypto/
Dzcrypt_msgtype6.c495 if (CEIL4(xcrb->req_len) < xcrb->req_len) in xcrb_msg_to_type6_ep11cprb_msgx()
499 ap_msg->len = sizeof(struct type6_hdr) + CEIL4(xcrb->req_len); in xcrb_msg_to_type6_ep11cprb_msgx()
508 msg->hdr.tocardlen1 = xcrb->req_len; in xcrb_msg_to_type6_ep11cprb_msgx()
513 (char __force __user *)xcrb->req, xcrb->req_len)) { in xcrb_msg_to_type6_ep11cprb_msgx()
/linux-6.1.9/drivers/net/wireless/ath/ath10k/
Dusb.c553 u8 req_val, u8 *req_buf, u32 req_len, in ath10k_usb_ctrl_msg_exchange() argument
561 req_buf, req_len); in ath10k_usb_ctrl_msg_exchange()
641 void *req, u32 req_len, in ath10k_usb_bmi_exchange_msg() argument
649 0, 0, req, req_len); in ath10k_usb_bmi_exchange_msg()
Dpci.h226 int ath10k_pci_hif_exchange_bmi_msg(struct ath10k *ar, void *req, u32 req_len,

1234