Home
last modified time | relevance | path

Searched refs:ureq (Results 1 – 17 of 17) sorted by relevance

/linux/drivers/usb/gadget/function/
H A Duvc_video.c94 struct uvc_request *ureq = req->context; in uvc_video_encode_bulk() local
121 ureq->last_buf = buf; in uvc_video_encode_bulk()
137 struct uvc_request *ureq = req->context; in uvc_video_encode_isoc_sg() local
144 sg = ureq->sgt.sgl; in uvc_video_encode_isoc_sg()
145 sg_init_table(sg, ureq->sgt.nents); in uvc_video_encode_isoc_sg()
148 header_len = uvc_video_encode_header(video, buf, ureq->header, in uvc_video_encode_isoc_sg()
150 sg_set_buf(sg, ureq->header, header_len); in uvc_video_encode_isoc_sg()
162 for_each_sg(sg, iter, ureq->sgt.nents - 1, i) { in uvc_video_encode_isoc_sg()
182 req->sg = ureq->sgt.sgl; in uvc_video_encode_isoc_sg()
195 ureq->last_buf = buf; in uvc_video_encode_isoc_sg()
[all …]
/linux/drivers/usb/renesas_usbhs/
H A Dmod_host.c159 struct usbhsh_request *ureq; in usbhsh_ureq_alloc() local
161 ureq = kzalloc(sizeof(struct usbhsh_request), mem_flags); in usbhsh_ureq_alloc()
162 if (!ureq) in usbhsh_ureq_alloc()
165 usbhs_pkt_init(&ureq->pkt); in usbhsh_ureq_alloc()
166 ureq->urb = urb; in usbhsh_ureq_alloc()
167 usbhsh_urb_to_ureq(urb) = ureq; in usbhsh_ureq_alloc()
169 return ureq; in usbhsh_ureq_alloc()
173 struct usbhsh_request *ureq) in usbhsh_ureq_free() argument
175 usbhsh_urb_to_ureq(ureq->urb) = NULL; in usbhsh_ureq_free()
176 ureq->urb = NULL; in usbhsh_ureq_free()
[all …]
H A Dmod_gadget.c119 struct usbhsg_request *ureq, in __usbhsg_queue_pop() argument
130 ureq->req.status = status; in __usbhsg_queue_pop()
132 usb_gadget_giveback_request(&uep->ep, &ureq->req); in __usbhsg_queue_pop()
137 struct usbhsg_request *ureq, in usbhsg_queue_pop() argument
145 __usbhsg_queue_pop(uep, ureq, status); in usbhsg_queue_pop()
153 struct usbhsg_request *ureq = usbhsg_pkt_to_ureq(pkt); in usbhsg_queue_done() local
156 ureq->req.actual = pkt->actual; in usbhsg_queue_done()
160 __usbhsg_queue_pop(uep, ureq, 0); in usbhsg_queue_done()
165 struct usbhsg_request *ureq) in usbhsg_queue_push() argument
170 struct usbhs_pkt *pkt = usbhsg_ureq_to_pkt(ureq); in usbhsg_queue_push()
[all …]
/linux/drivers/infiniband/hw/erdma/
H A Derdma_verbs.c938 struct erdma_ureq_create_qp ureq; in erdma_create_qp() local
972 ret = ib_copy_from_udata(&ureq, udata, in erdma_create_qp()
973 min(sizeof(ureq), udata->inlen)); in erdma_create_qp()
977 ret = init_user_qp(qp, uctx, ureq.qbuf_va, ureq.qbuf_len, in erdma_create_qp()
978 ureq.db_record_va); in erdma_create_qp()
1605 struct erdma_ureq_create_cq *ureq) in erdma_init_user_cq() argument
1610 ret = get_mtt_entries(dev, &cq->user_cq.qbuf_mem, ureq->qbuf_va, in erdma_init_user_cq()
1611 ureq->qbuf_len, 0, ureq->qbuf_va, SZ_64M - SZ_4K, in erdma_init_user_cq()
1616 ret = erdma_map_user_dbrecords(ctx, ureq->db_record_va, in erdma_init_user_cq()
1679 struct erdma_ureq_create_cq ureq; in erdma_create_cq() local
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
H A Dauxgm200.c44 const u32 ureq = unksel ? 0x00100000 : 0x00200000; in gm200_i2c_aux_init() local
60 nvkm_mask(device, 0x00d954 + (aux->ch * 0x50), 0x00700000, ureq); in gm200_i2c_aux_init()
H A Dauxg94.c44 const u32 ureq = unksel ? 0x00100000 : 0x00200000; in g94_i2c_aux_init() local
60 nvkm_mask(device, 0x00e4e4 + (aux->ch * 0x50), 0x00300000, ureq); in g94_i2c_aux_init()
/linux/drivers/usb/dwc2/
H A Dgadget.c871 struct usb_request *ureq = NULL; in dwc2_gadget_config_nonisoc_xfer_ddma() local
878 ureq = &hs_ep->req->req; in dwc2_gadget_config_nonisoc_xfer_ddma()
881 if (!ureq || !ureq->num_sgs) { in dwc2_gadget_config_nonisoc_xfer_ddma()
888 for_each_sg(ureq->sg, sg, ureq->num_mapped_sgs, i) { in dwc2_gadget_config_nonisoc_xfer_ddma()
891 (i == (ureq->num_mapped_sgs - 1))); in dwc2_gadget_config_nonisoc_xfer_ddma()
1053 struct usb_request *ureq = &hs_req->req; in dwc2_hsotg_start_req() local
1094 length = ureq->length - ureq->actual; in dwc2_hsotg_start_req()
1096 ureq->length, ureq->actual); in dwc2_hsotg_start_req()
1133 if (dir_in && ureq->zero && !continuing) { in dwc2_hsotg_start_req()
1135 if ((ureq->length >= hs_ep->ep.maxpacket) && in dwc2_hsotg_start_req()
[all …]
/linux/fs/xfs/
H A Dxfs_handle.c873 struct xfs_getparents __user *ureq) in xfs_ioc_getparents() argument
886 if (copy_from_user(kreq, ureq, sizeof(*kreq))) in xfs_ioc_getparents()
893 if (copy_to_user(ureq, kreq, sizeof(*kreq))) in xfs_ioc_getparents()
903 struct xfs_getparents_by_handle __user *ureq) in xfs_ioc_getparents_by_handle() argument
916 if (copy_from_user(kreq, ureq, sizeof(*kreq))) in xfs_ioc_getparents_by_handle()
940 if (copy_to_user(ureq, kreq, sizeof(*kreq))) in xfs_ioc_getparents_by_handle()
/linux/drivers/infiniband/hw/qedr/
H A Dverbs.c267 struct qedr_alloc_ucontext_req ureq = {}; in qedr_alloc_ucontext() local
276 rc = ib_copy_from_udata(&ureq, udata, in qedr_alloc_ucontext()
277 min(sizeof(ureq), udata->inlen)); in qedr_alloc_ucontext()
282 ctx->edpm_mode = !!(ureq.context_flags & in qedr_alloc_ucontext()
284 ctx->db_rec = !!(ureq.context_flags & QEDR_ALLOC_UCTX_DB_REC); in qedr_alloc_ucontext()
327 if (ureq.context_flags & QEDR_SUPPORT_DPM_SIZES) { in qedr_alloc_ucontext()
919 struct qedr_create_cq_ureq ureq = {}; in qedr_create_cq() local
952 if (ib_copy_from_udata(&ureq, udata, min(sizeof(ureq), in qedr_create_cq()
959 if (!ureq.len) { in qedr_create_cq()
967 rc = qedr_init_user_queue(udata, dev, &cq->q, ureq.addr, in qedr_create_cq()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_tc.c365 struct nix_mcast_grp_update_req *ureq, in otx2_tc_update_mcast() argument
405 ureq->op = NIX_MCAST_OP_ADD_ENTRY; in otx2_tc_update_mcast()
406 ureq->mcast_grp_idx = grp_index; in otx2_tc_update_mcast()
407 ureq->num_mce_entry = num_intf; in otx2_tc_update_mcast()
408 ureq->pcifunc[0] = nic->pcifunc; in otx2_tc_update_mcast()
409 ureq->channel[0] = nic->hw.tx_chan_base; in otx2_tc_update_mcast()
411 ureq->dest_type[0] = NIX_RX_RSS; in otx2_tc_update_mcast()
412 ureq->rq_rss_index[0] = 0; in otx2_tc_update_mcast()
413 memcpy(&ureq->hdr, &grp_update_req->hdr, sizeof(struct mbox_msghdr)); in otx2_tc_update_mcast()
414 memcpy(grp_update_req, ureq, sizeof(struct nix_mcast_grp_update_req)); in otx2_tc_update_mcast()
/linux/drivers/infiniband/hw/bnxt_re/
H A Dib_verbs.c1032 struct bnxt_re_qp_req *ureq) in bnxt_re_init_user_qp() argument
1048 psn_nume = ureq->sq_slots; in bnxt_re_init_user_qp()
1060 umem = ib_umem_get(&rdev->ibdev, ureq->qpsva, bytes, in bnxt_re_init_user_qp()
1069 qplib_qp->qp_handle = ureq->qp_handle; in bnxt_re_init_user_qp()
1074 umem = ib_umem_get(&rdev->ibdev, ureq->qprva, bytes, in bnxt_re_init_user_qp()
1274 struct bnxt_re_qp_req *ureq) in bnxt_re_init_sq_attr() argument
1292 sq->max_wqe = ureq->sq_slots; in bnxt_re_init_sq_attr()
1293 sq->max_sw_wqe = ureq->sq_slots; in bnxt_re_init_sq_attr()
1379 struct bnxt_re_qp_req *ureq) in bnxt_re_init_qp_attr() argument
1438 rc = bnxt_re_init_sq_attr(qp, init_attr, uctx, ureq); in bnxt_re_init_qp_attr()
[all …]
/linux/drivers/infiniband/sw/siw/
H A Dsiw_verbs.c1322 struct siw_ureq_reg_mr ureq; in siw_reg_user_mr() local
1359 if (udata->inlen < sizeof(ureq)) { in siw_reg_user_mr()
1363 rv = ib_copy_from_udata(&ureq, udata, sizeof(ureq)); in siw_reg_user_mr()
1367 mr->base_mr.lkey |= ureq.stag_key; in siw_reg_user_mr()
1368 mr->base_mr.rkey |= ureq.stag_key; in siw_reg_user_mr()
1369 mem->stag |= ureq.stag_key; in siw_reg_user_mr()
/linux/drivers/infiniband/hw/ocrdma/
H A Docrdma_verbs.c977 struct ocrdma_create_cq_ureq ureq; in ocrdma_create_cq() local
983 if (ib_copy_from_udata(&ureq, udata, sizeof(ureq))) in ocrdma_create_cq()
986 ureq.dpp_cq = 0; in ocrdma_create_cq()
996 status = ocrdma_mbx_create_cq(dev, cq, entries, ureq.dpp_cq, pd_id); in ocrdma_create_cq()
1302 struct ocrdma_create_qp_ureq ureq; in ocrdma_create_qp() local
1312 memset(&ureq, 0, sizeof(ureq)); in ocrdma_create_qp()
1314 if (ib_copy_from_udata(&ureq, udata, sizeof(ureq))) in ocrdma_create_qp()
1323 status = ocrdma_mbx_create_qp(qp, attrs, ureq.enable_dpp_cq, in ocrdma_create_qp()
1324 ureq.dpp_cq_id, in ocrdma_create_qp()
/linux/drivers/infiniband/hw/irdma/
H A Dverbs.c1197 struct irdma_modify_qp_req ureq = {}; in irdma_modify_qp_roce() local
1447 if (ib_copy_from_udata(&ureq, udata, in irdma_modify_qp_roce()
1448 min(sizeof(ureq), udata->inlen))) in irdma_modify_qp_roce()
1452 (ureq.sq_flush ? IRDMA_FLUSH_SQ : 0) | in irdma_modify_qp_roce()
1453 (ureq.rq_flush ? IRDMA_FLUSH_RQ : 0) | in irdma_modify_qp_roce()
1553 struct irdma_modify_qp_req ureq = {}; in irdma_modify_qp() local
1652 if (ib_copy_from_udata(&ureq, udata, in irdma_modify_qp()
1653 min(sizeof(ureq), udata->inlen))) in irdma_modify_qp()
1657 (ureq.sq_flush ? IRDMA_FLUSH_SQ : 0) | in irdma_modify_qp()
1658 (ureq.rq_flush ? IRDMA_FLUSH_RQ : 0) | in irdma_modify_qp()
/linux/net/wireless/
H A Dreg.c3562 struct regulatory_request *ureq; in restore_regulatory_settings() local
3565 ureq = list_last_entry(&reg_requests_list, in restore_regulatory_settings()
3568 list_del(&ureq->list); in restore_regulatory_settings()
3571 notify_self_managed_wiphys(ureq); in restore_regulatory_settings()
3572 reg_update_last_request(ureq); in restore_regulatory_settings()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_nix.c6226 struct nix_mcast_grp_update_req ureq = { 0 }; in rvu_nix_mcast_flr_free_entries() local
6264 ureq.hdr.pcifunc = pcifunc; in rvu_nix_mcast_flr_free_entries()
6265 ureq.num_mce_entry = 1; in rvu_nix_mcast_flr_free_entries()
6266 ureq.mcast_grp_idx = elem->mcast_grp_idx; in rvu_nix_mcast_flr_free_entries()
6267 ureq.op = NIX_MCAST_OP_DEL_ENTRY; in rvu_nix_mcast_flr_free_entries()
6268 ureq.pcifunc[0] = pcifunc; in rvu_nix_mcast_flr_free_entries()
6269 ureq.is_af = 1; in rvu_nix_mcast_flr_free_entries()
6270 rvu_mbox_handler_nix_mcast_grp_update(rvu, &ureq, &ursp); in rvu_nix_mcast_flr_free_entries()
/linux/drivers/s390/net/
H A Dqeth_core_main.c4689 struct qeth_snmp_ureq __user *ureq; in qeth_snmp_command() local
4704 ureq = (struct qeth_snmp_ureq __user *) udata; in qeth_snmp_command()
4705 if (get_user(qinfo.udata_len, &ureq->hdr.data_len) || in qeth_snmp_command()
4706 get_user(req_len, &ureq->hdr.req_len)) in qeth_snmp_command()
4718 &ureq->cmd, req_len)) { in qeth_snmp_command()