Home
last modified time | relevance | path

Searched refs:req_size (Results 1 – 25 of 35) sorted by relevance

12

/drivers/usb/gadget/function/
Duvc_video.c62 int len = video->req_size; in uvc_video_encode_bulk()
80 req->length = video->req_size - len; in uvc_video_encode_bulk()
102 int len = video->req_size; in uvc_video_encode_isoc()
114 req->length = video->req_size - len; in uvc_video_encode_isoc()
244 video->req_size = 0; in uvc_video_free_requests()
251 unsigned int req_size; in uvc_video_alloc_requests() local
255 BUG_ON(video->req_size); in uvc_video_alloc_requests()
257 req_size = video->ep->maxpacket in uvc_video_alloc_requests()
262 video->req_buffer[i] = kmalloc(req_size, GFP_KERNEL); in uvc_video_alloc_requests()
278 video->req_size = req_size; in uvc_video_alloc_requests()
Duvc.h89 unsigned int req_size; member
/drivers/net/wireless/marvell/libertas/
Dif_sdio.c500 u16 req_size; in if_sdio_prog_helper() local
502 req_size = sdio_readb(card->func, IF_SDIO_RD_BASE, &ret); in if_sdio_prog_helper()
506 req_size |= sdio_readb(card->func, IF_SDIO_RD_BASE + 1, &ret) << 8; in if_sdio_prog_helper()
510 if (req_size != 0) in if_sdio_prog_helper()
542 size_t size, req_size; in if_sdio_prog_real() local
566 req_size = sdio_readb(card->func, IF_SDIO_RD_BASE, in if_sdio_prog_real()
571 req_size |= sdio_readb(card->func, IF_SDIO_RD_BASE + 1, in if_sdio_prog_real()
583 if ((size != fw->size) || (req_size > 2)) in if_sdio_prog_real()
595 if (req_size == 0) { in if_sdio_prog_real()
601 if (req_size & 0x01) { in if_sdio_prog_real()
[all …]
/drivers/scsi/smartpqi/
Dsmartpqi_sas_transport.c456 u32 req_size; in pqi_build_csmi_smp_passthru_buffer() local
463 req_size = job->request_payload.payload_len; in pqi_build_csmi_smp_passthru_buffer()
481 if (req_size > SMP_CRC_FIELD_LENGTH) in pqi_build_csmi_smp_passthru_buffer()
482 req_size -= SMP_CRC_FIELD_LENGTH; in pqi_build_csmi_smp_passthru_buffer()
484 put_unaligned_le32(req_size, &parameters->request_length); in pqi_build_csmi_smp_passthru_buffer()
490 req_size); in pqi_build_csmi_smp_passthru_buffer()
/drivers/scsi/
Dvirtio_scsi.c407 size_t req_size, size_t resp_size) in __virtscsi_add_cmd() argument
424 sg_init_one(&req, &cmd->req, req_size); in __virtscsi_add_cmd()
473 size_t req_size, size_t resp_size, in virtscsi_add_cmd() argument
481 err = __virtscsi_add_cmd(vq->vq, cmd, req_size, resp_size); in virtscsi_add_cmd()
549 int req_size; in virtscsi_queuecommand() local
568 req_size = sizeof(cmd->req.cmd_pi); in virtscsi_queuecommand()
574 req_size = sizeof(cmd->req.cmd); in virtscsi_queuecommand()
578 ret = virtscsi_add_cmd(req_vq, cmd, req_size, sizeof(cmd->resp.cmd), kick); in virtscsi_queuecommand()
Dhptiop.c1286 u32 offset, i, req_size; in hptiop_probe() local
1402 req_size = sizeof(struct hpt_iop_request_scsi_command) in hptiop_probe()
1404 if ((req_size & 0x1f) != 0) in hptiop_probe()
1405 req_size = (req_size + 0x1f) & ~0x1f; in hptiop_probe()
1410 set_config.max_host_request_size = cpu_to_le16(req_size); in hptiop_probe()
1429 dprintk("req_size=%d, max_requests=%d\n", req_size, hba->max_requests); in hptiop_probe()
1431 hba->req_size = req_size; in hptiop_probe()
1436 hba->req_size + 0x20, in hptiop_probe()
1480 hba->req_size + 0x20, in hptiop_probe()
1567 hba->req_size + 0x20, in hptiop_remove()
Dsg.c188 static void sg_build_reserve(Sg_fd * sfp, int req_size);
2006 sg_build_reserve(Sg_fd * sfp, int req_size) in sg_build_reserve() argument
2011 "sg_build_reserve: req_size=%d\n", req_size)); in sg_build_reserve()
2013 if (req_size < PAGE_SIZE) in sg_build_reserve()
2014 req_size = PAGE_SIZE; in sg_build_reserve()
2015 if (0 == sg_build_indirect(schp, sfp, req_size)) in sg_build_reserve()
2019 req_size >>= 1; /* divide by 2 */ in sg_build_reserve()
2020 } while (req_size > (PAGE_SIZE / 2)); in sg_build_reserve()
Dhptiop.h312 u32 req_size; /* host-allocated request buffer size */ member
/drivers/staging/greybus/
Dcamera.c531 size_t req_size; in gb_camera_configure_streams() local
538 req_size = sizeof(*req) + nstreams * sizeof(req->config[0]); in gb_camera_configure_streams()
541 req = kmalloc(req_size, GFP_KERNEL); in gb_camera_configure_streams()
576 req, req_size, in gb_camera_configure_streams()
659 size_t req_size; in gb_camera_capture() local
665 req_size = sizeof(*req) + settings_size; in gb_camera_capture()
666 req = kmalloc(req_size, GFP_KERNEL); in gb_camera_capture()
684 req, req_size, NULL, 0); in gb_camera_capture()
/drivers/scsi/qla2xxx/
Dqla_gs.c46 ms_pkt->req_bytecount = cpu_to_le32(arg->req_size); in qla2x00_prep_ms_iocb()
82 ct_pkt->cmd_byte_count = cpu_to_le32(arg->req_size); in qla24xx_prep_ms_iocb()
215 arg.req_size = GA_NXT_REQ_SIZE; in qla2x00_ga_nxt()
307 arg.req_size = GID_PT_REQ_SIZE; in qla2x00_gid_pt()
385 arg.req_size = GPN_ID_REQ_SIZE; in qla2x00_gpn_id()
452 arg.req_size = GNN_ID_REQ_SIZE; in qla2x00_gnn_id()
637 sp->u.iocb_cmd.u.ctarg.req_size = RFT_ID_REQ_SIZE; in qla_async_rftid()
731 sp->u.iocb_cmd.u.ctarg.req_size = RFF_ID_REQ_SIZE; in qla_async_rffid()
821 sp->u.iocb_cmd.u.ctarg.req_size = RNN_ID_REQ_SIZE; in qla_async_rnnid()
935 sp->u.iocb_cmd.u.ctarg.req_size = 24 + 1 + ct_req->req.rsnn_nn.name_len; in qla_async_rsnn_nn()
[all …]
/drivers/vhost/
Dscsi.c218 size_t req_size, rsp_size; member
870 } else if (unlikely(vc->out_size < vc->req_size)) { in vhost_scsi_chk_size()
873 vc->req_size, vc->out_size); in vhost_scsi_chk_size()
886 if (unlikely(!copy_from_iter_full(vc->req, vc->req_size, in vhost_scsi_get_req()
952 vc.req_size = sizeof(v_req_pi); in vhost_scsi_handle_vq()
957 vc.req_size = sizeof(v_req); in vhost_scsi_handle_vq()
994 if (vc.out_size > vc.req_size) { in vhost_scsi_handle_vq()
996 exp_data_len = vc.out_size - vc.req_size; in vhost_scsi_handle_vq()
1221 vc.req_size = sizeof(struct virtio_scsi_ctrl_tmf_req); in vhost_scsi_ctl_handle_vq()
1229 vc.req_size = sizeof(struct virtio_scsi_ctrl_an_req); in vhost_scsi_ctl_handle_vq()
[all …]
/drivers/char/hw_random/
Doptee-rng.c74 void *buf, size_t req_size) in get_optee_rng_data() argument
93 param[0].u.memref.size = req_size; in get_optee_rng_data()
/drivers/net/ethernet/netronome/nfp/
Dccm.h119 nfp_ccm_mbox_msg_alloc(struct nfp_net *nn, unsigned int req_size,
Dccm_mbox.c690 nfp_ccm_mbox_msg_alloc(struct nfp_net *nn, unsigned int req_size, in nfp_ccm_mbox_msg_alloc() argument
699 max_size = max(req_size, reply_size); in nfp_ccm_mbox_msg_alloc()
706 skb_put(skb, req_size); in nfp_ccm_mbox_msg_alloc()
/drivers/net/ethernet/cavium/liquidio/
Dlio_vf_rep.c56 void *req, int req_size, in lio_vf_rep_send_soft_command() argument
66 octeon_alloc_soft_command(oct, req_size, in lio_vf_rep_send_soft_command()
75 memcpy(sc_req, req, req_size); in lio_vf_rep_send_soft_command()
/drivers/infiniband/core/
Drdma_core.h143 u8 req_size; member
Duverbs_main.c612 if (hdr->in_words * 8 < method_elm->req_size) in verify_hdr()
640 if (count < method_elm->req_size + sizeof(hdr)) { in verify_hdr()
714 in_len - method_elm->req_size; in ib_uverbs_write()
715 in_len = method_elm->req_size; in ib_uverbs_write()
Duverbs_std_types_device.c37 if (attrs->ucore.inlen < method_elm->req_size || in UVERBS_HANDLER()
Duverbs_uapi.c92 method_elm->req_size = def->write.req_size; in uapi_create_write()
/drivers/net/can/usb/peak_usb/
Dpcan_usb_pro.h181 int req_value, void *req_addr, int req_size);
Dpcan_usb_pro.c312 int req_value, void *req_addr, int req_size) in pcan_usb_pro_send_req() argument
332 memset(req_addr, '\0', req_size); in pcan_usb_pro_send_req()
337 req_addr, req_size, 2 * USB_CTRL_GET_TIMEOUT); in pcan_usb_pro_send_req()
/drivers/infiniband/hw/bnxt_re/
Dqplib_rcfw.c149 crsqe->req_size = req->cmd_size; in __send_message()
354 cmdq->cons += crsqe->req_size; in bnxt_qplib_process_qp_event()
355 crsqe->req_size = 0; in bnxt_qplib_process_qp_event()
Dqplib_rcfw.h212 u32 req_size; member
/drivers/ntb/test/
Dntb_tool.c575 size_t req_size) in tool_setup_mw() argument
590 inmw->size = min_t(resource_size_t, req_size, size); in tool_setup_mw()
810 u64 req_addr, size_t req_size) in tool_setup_peer_mw() argument
825 ret = ntb_peer_mw_set_trans(tc->ntb, pidx, widx, req_addr, req_size); in tool_setup_peer_mw()
836 outmw->size = req_size; in tool_setup_peer_mw()
/drivers/scsi/cxlflash/
Dvlun.c37 resize->req_size = virt->lun_size; in marshal_virt_to_resize()
754 nsectors = (resize->req_size * CXLFLASH_BLOCK_SIZE) / gli->blk_len; in _cxlflash_vlun_resize()
758 __func__, ctxid, resize->rsrc_handle, resize->req_size, in _cxlflash_vlun_resize()

12