/linux/drivers/usb/renesas_usbhs/ |
H A D | mod_host.c | 159 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 D | mod_gadget.c | 119 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/core/ |
H A D | user_mad.c | 695 struct ib_user_mad_reg_req ureq; in ib_umad_reg_agent() local 710 if (copy_from_user(&ureq, arg, sizeof ureq)) { in ib_umad_reg_agent() 715 if (ureq.qpn != 0 && ureq.qpn != 1) { in ib_umad_reg_agent() 718 ureq.qpn); in ib_umad_reg_agent() 734 if (ureq.mgmt_class) { in ib_umad_reg_agent() 736 req.mgmt_class = ureq.mgmt_class; in ib_umad_reg_agent() 737 req.mgmt_class_version = ureq.mgmt_class_version; in ib_umad_reg_agent() 738 memcpy(req.oui, ureq.oui, sizeof req.oui); in ib_umad_reg_agent() 741 u32 *umm = (u32 *) ureq.method_mask; in ib_umad_reg_agent() 748 memcpy(req.method_mask, ureq.method_mask, in ib_umad_reg_agent() [all …]
|
/linux/fs/xfs/ |
H A D | xfs_handle.c | 871 struct xfs_getparents __user *ureq) in xfs_ioc_getparents() argument 884 if (copy_from_user(kreq, ureq, sizeof(*kreq))) in xfs_ioc_getparents() 891 if (copy_to_user(ureq, kreq, sizeof(*kreq))) in xfs_ioc_getparents() 901 struct xfs_getparents_by_handle __user *ureq) in xfs_ioc_getparents_by_handle() argument 914 if (copy_from_user(kreq, ureq, sizeof(*kreq))) in xfs_ioc_getparents_by_handle() 938 if (copy_to_user(ureq, kreq, sizeof(*kreq))) in xfs_ioc_getparents_by_handle()
|
/linux/drivers/infiniband/hw/qedr/ |
H A D | verbs.c | 267 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/infiniband/hw/bnxt_re/ |
H A D | ib_verbs.c | 1086 struct bnxt_re_qp_req *ureq) in bnxt_re_init_user_qp() argument 1102 psn_nume = ureq->sq_slots; in bnxt_re_init_user_qp() 1114 umem = ib_umem_get(&rdev->ibdev, ureq->qpsva, bytes, in bnxt_re_init_user_qp() 1123 qplib_qp->qp_handle = ureq->qp_handle; in bnxt_re_init_user_qp() 1128 umem = ib_umem_get(&rdev->ibdev, ureq->qprva, bytes, in bnxt_re_init_user_qp() 1328 struct bnxt_re_qp_req *ureq) in bnxt_re_init_sq_attr() argument 1346 sq->max_wqe = ureq->sq_slots; in bnxt_re_init_sq_attr() 1347 sq->max_sw_wqe = ureq->sq_slots; in bnxt_re_init_sq_attr() 1433 struct bnxt_re_qp_req *ureq) in bnxt_re_init_qp_attr() argument 1492 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 D | siw_verbs.c | 1334 struct siw_ureq_reg_mr ureq; in siw_reg_user_mr() local 1371 if (udata->inlen < sizeof(ureq)) { in siw_reg_user_mr() 1375 rv = ib_copy_from_udata(&ureq, udata, sizeof(ureq)); in siw_reg_user_mr() 1379 mr->base_mr.lkey |= ureq.stag_key; in siw_reg_user_mr() 1380 mr->base_mr.rkey |= ureq.stag_key; in siw_reg_user_mr() 1381 mem->stag |= ureq.stag_key; in siw_reg_user_mr()
|
/linux/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_verbs.c | 977 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 D | verbs.c | 1197 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 D | reg.c | 3561 struct regulatory_request *ureq; in restore_regulatory_settings() local 3564 ureq = list_last_entry(®_requests_list, in restore_regulatory_settings() 3567 list_del(&ureq->list); in restore_regulatory_settings() 3570 notify_self_managed_wiphys(ureq); in restore_regulatory_settings() 3571 reg_update_last_request(ureq); in restore_regulatory_settings()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_nix.c | 6304 struct nix_mcast_grp_update_req ureq = { 0 }; in rvu_nix_mcast_flr_free_entries() local 6342 ureq.hdr.pcifunc = pcifunc; in rvu_nix_mcast_flr_free_entries() 6343 ureq.num_mce_entry = 1; in rvu_nix_mcast_flr_free_entries() 6344 ureq.mcast_grp_idx = elem->mcast_grp_idx; in rvu_nix_mcast_flr_free_entries() 6345 ureq.op = NIX_MCAST_OP_DEL_ENTRY; in rvu_nix_mcast_flr_free_entries() 6346 ureq.pcifunc[0] = pcifunc; in rvu_nix_mcast_flr_free_entries() 6347 ureq.is_af = 1; in rvu_nix_mcast_flr_free_entries() 6348 rvu_mbox_handler_nix_mcast_grp_update(rvu, &ureq, &ursp); in rvu_nix_mcast_flr_free_entries()
|
/linux/drivers/s390/net/ |
H A D | qeth_core_main.c | 4689 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()
|