Home
last modified time | relevance | path

Searched refs:req (Results 1 – 25 of 2486) sorted by relevance

12345678910>>...100

/linux/drivers/media/mc/
H A Dmc-request.c39 static void media_request_clean(struct media_request *req) in media_request_clean() argument
44 WARN_ON(req->state != MEDIA_REQUEST_STATE_CLEANING); in media_request_clean()
45 WARN_ON(req->updating_count); in media_request_clean()
46 WARN_ON(req->access_count); in media_request_clean()
48 list_for_each_entry_safe(obj, obj_safe, &req->objects, list) { in media_request_clean()
53 req->updating_count = 0; in media_request_clean()
54 req->access_count = 0; in media_request_clean()
55 WARN_ON(req->num_incomplete_objects); in media_request_clean()
56 req->num_incomplete_objects = 0; in media_request_clean()
57 wake_up_interruptible_all(&req->poll_wait); in media_request_clean()
[all …]
/linux/drivers/s390/scsi/
H A Dzfcp_fsf.c80 static void zfcp_fsf_class_not_supp(struct zfcp_fsf_req *req) in zfcp_fsf_class_not_supp() argument
82 dev_err(&req->adapter->ccw_device->dev, "FCP device not " in zfcp_fsf_class_not_supp()
84 zfcp_erp_adapter_shutdown(req->adapter, 0, "fscns_1"); in zfcp_fsf_class_not_supp()
85 req->status |= ZFCP_STATUS_FSFREQ_ERROR; in zfcp_fsf_class_not_supp()
92 void zfcp_fsf_req_free(struct zfcp_fsf_req *req) in zfcp_fsf_req_free() argument
94 if (likely(req->pool)) { in zfcp_fsf_req_free()
95 if (likely(!zfcp_fsf_req_is_status_read_buffer(req))) in zfcp_fsf_req_free()
96 mempool_free(req->qtcb, req->adapter->pool.qtcb_pool); in zfcp_fsf_req_free()
97 mempool_free(req, req->pool); in zfcp_fsf_req_free()
101 if (likely(!zfcp_fsf_req_is_status_read_buffer(req))) in zfcp_fsf_req_free()
[all …]
/linux/io_uring/
H A Dpoll.c36 struct io_kiocb *req; member
73 static bool io_poll_get_ownership_slowpath(struct io_kiocb *req) in io_poll_get_ownership_slowpath() argument
82 v = atomic_fetch_or(IO_POLL_RETRY_FLAG, &req->poll_refs); in io_poll_get_ownership_slowpath()
85 return !(atomic_fetch_inc(&req->poll_refs) & IO_POLL_REF_MASK); in io_poll_get_ownership_slowpath()
94 static inline bool io_poll_get_ownership(struct io_kiocb *req) in io_poll_get_ownership() argument
96 if (unlikely(atomic_read(&req->poll_refs) >= IO_POLL_REF_BIAS)) in io_poll_get_ownership()
97 return io_poll_get_ownership_slowpath(req); in io_poll_get_ownership()
98 return !(atomic_fetch_inc(&req->poll_refs) & IO_POLL_REF_MASK); in io_poll_get_ownership()
101 static void io_poll_mark_cancelled(struct io_kiocb *req) in io_poll_mark_cancelled() argument
103 atomic_or(IO_POLL_CANCEL_FLAG, &req->poll_refs); in io_poll_mark_cancelled()
[all …]
H A Drw.c38 static bool io_file_supports_nowait(struct io_kiocb *req, __poll_t mask) in io_file_supports_nowait() argument
41 if (req->flags & REQ_F_SUPPORT_NOWAIT) in io_file_supports_nowait()
44 if (io_file_can_poll(req)) { in io_file_supports_nowait()
47 return vfs_poll(req->file, &pt) & mask; in io_file_supports_nowait()
64 static int io_iov_buffer_select_prep(struct io_kiocb *req) in io_iov_buffer_select_prep() argument
68 struct io_rw *rw = io_kiocb_to_cmd(req, struct io_rw); in io_iov_buffer_select_prep()
73 if (io_is_compat(req->ctx)) in io_iov_buffer_select_prep()
83 static int io_import_vec(int ddir, struct io_kiocb *req, in io_import_vec() argument
100 io_is_compat(req->ctx)); in io_import_vec()
104 req->flags |= REQ_F_NEED_CLEANUP; in io_import_vec()
[all …]
H A During_cmd.c26 static void io_req_uring_cleanup(struct io_kiocb *req, unsigned int issue_flags) in io_req_uring_cleanup() argument
28 struct io_uring_cmd *ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd); in io_req_uring_cleanup()
29 struct io_async_cmd *ac = req->async_data; in io_req_uring_cleanup()
38 if (io_alloc_cache_put(&req->ctx->cmd_cache, ac)) { in io_req_uring_cleanup()
40 io_req_async_data_clear(req, REQ_F_NEED_CLEANUP); in io_req_uring_cleanup()
44 void io_uring_cmd_cleanup(struct io_kiocb *req) in io_uring_cmd_cleanup() argument
46 io_req_uring_cleanup(req, 0); in io_uring_cmd_cleanup()
53 struct io_kiocb *req; in io_uring_try_cancel_uring_cmd() local
58 hlist_for_each_entry_safe(req, tmp, &ctx->cancelable_uring_cmd, in io_uring_try_cancel_uring_cmd()
60 struct io_uring_cmd *cmd = io_kiocb_to_cmd(req, in io_uring_try_cancel_uring_cmd()
[all …]
H A Dtimeout.c38 static struct io_kiocb *__io_disarm_linked_timeout(struct io_kiocb *req,
41 static inline bool io_is_timeout_noseq(struct io_kiocb *req) in io_is_timeout_noseq() argument
43 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); in io_is_timeout_noseq()
44 struct io_timeout_data *data = req->async_data; in io_is_timeout_noseq()
49 static inline void io_put_req(struct io_kiocb *req) in io_put_req() argument
51 if (req_ref_put_and_test(req)) { in io_put_req()
52 io_queue_next(req); in io_put_req()
53 io_free_req(req); in io_put_req()
71 static void io_timeout_complete(struct io_kiocb *req, io_tw_token_t tw) in io_timeout_complete() argument
73 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); in io_timeout_complete()
[all …]
/linux/drivers/staging/greybus/
H A Daudio_apbridgea.c16 struct audio_apbridgea_set_config_request req; in gb_audio_apbridgea_set_config() local
18 req.hdr.type = AUDIO_APBRIDGEA_TYPE_SET_CONFIG; in gb_audio_apbridgea_set_config()
19 req.hdr.i2s_port = cpu_to_le16(i2s_port); in gb_audio_apbridgea_set_config()
20 req.format = cpu_to_le32(format); in gb_audio_apbridgea_set_config()
21 req.rate = cpu_to_le32(rate); in gb_audio_apbridgea_set_config()
22 req.mclk_freq = cpu_to_le32(mclk_freq); in gb_audio_apbridgea_set_config()
24 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_config()
33 struct audio_apbridgea_register_cport_request req; in gb_audio_apbridgea_register_cport() local
36 req.hdr.type = AUDIO_APBRIDGEA_TYPE_REGISTER_CPORT; in gb_audio_apbridgea_register_cport()
37 req.hdr.i2s_port = cpu_to_le16(i2s_port); in gb_audio_apbridgea_register_cport()
[all …]
H A Daudio_gb.c50 struct gb_audio_get_control_request req; in gb_audio_gb_get_control() local
54 req.control_id = control_id; in gb_audio_gb_get_control()
55 req.index = index; in gb_audio_gb_get_control()
58 &req, sizeof(req), &resp, sizeof(resp)); in gb_audio_gb_get_control()
72 struct gb_audio_set_control_request req; in gb_audio_gb_set_control() local
74 req.control_id = control_id; in gb_audio_gb_set_control()
75 req.index = index; in gb_audio_gb_set_control()
76 memcpy(&req.value, value, sizeof(req.value)); in gb_audio_gb_set_control()
79 &req, sizeof(req), NULL, 0); in gb_audio_gb_set_control()
86 struct gb_audio_enable_widget_request req; in gb_audio_gb_enable_widget() local
[all …]
/linux/drivers/nvme/target/
H A Dadmin-cmd.c15 static void nvmet_execute_delete_sq(struct nvmet_req *req) in nvmet_execute_delete_sq() argument
17 struct nvmet_ctrl *ctrl = req->sq->ctrl; in nvmet_execute_delete_sq()
18 u16 sqid = le16_to_cpu(req->cmd->delete_queue.qid); in nvmet_execute_delete_sq()
22 status = nvmet_report_invalid_opcode(req); in nvmet_execute_delete_sq()
38 nvmet_req_complete(req, status); in nvmet_execute_delete_sq()
41 static void nvmet_execute_create_sq(struct nvmet_req *req) in nvmet_execute_create_sq() argument
43 struct nvmet_ctrl *ctrl = req->sq->ctrl; in nvmet_execute_create_sq()
44 struct nvme_command *cmd = req->cmd; in nvmet_execute_create_sq()
53 status = nvmet_report_invalid_opcode(req); in nvmet_execute_create_sq()
80 nvmet_req_complete(req, status); in nvmet_execute_create_sq()
[all …]
H A Dio-cmd-file.c76 static ssize_t nvmet_file_submit_bvec(struct nvmet_req *req, loff_t pos, in nvmet_file_submit_bvec() argument
79 struct kiocb *iocb = &req->f.iocb; in nvmet_file_submit_bvec()
84 if (req->cmd->rw.opcode == nvme_cmd_write) { in nvmet_file_submit_bvec()
85 if (req->cmd->rw.control & cpu_to_le16(NVME_RW_FUA)) in nvmet_file_submit_bvec()
87 call_iter = req->ns->file->f_op->write_iter; in nvmet_file_submit_bvec()
90 call_iter = req->ns->file->f_op->read_iter; in nvmet_file_submit_bvec()
94 iov_iter_bvec(&iter, rw, req->f.bvec, nr_segs, count); in nvmet_file_submit_bvec()
97 iocb->ki_filp = req->ns->file; in nvmet_file_submit_bvec()
105 struct nvmet_req *req = container_of(iocb, struct nvmet_req, f.iocb); in nvmet_file_io_done() local
108 if (req->f.bvec != req->inline_bvec) { in nvmet_file_io_done()
[all …]
H A Dfabrics-cmd-auth.c34 static u8 nvmet_auth_negotiate(struct nvmet_req *req, void *d) in nvmet_auth_negotiate() argument
36 struct nvmet_ctrl *ctrl = req->sq->ctrl; in nvmet_auth_negotiate()
41 __func__, ctrl->cntlid, req->sq->qid, in nvmet_auth_negotiate()
45 req->sq->dhchap_tid = le16_to_cpu(data->t_id); in nvmet_auth_negotiate()
50 if (req->sq->qid) in nvmet_auth_negotiate()
54 if (nvmet_queue_tls_keyid(req->sq)) in nvmet_auth_negotiate()
58 if (!nvmet_queue_tls_keyid(req->sq)) in nvmet_auth_negotiate()
88 __func__, ctrl->cntlid, req->sq->qid); in nvmet_auth_negotiate()
92 __func__, ctrl->cntlid, req->sq->qid, in nvmet_auth_negotiate()
116 __func__, ctrl->cntlid, req->sq->qid); in nvmet_auth_negotiate()
[all …]
H A Dzns.c69 void nvmet_execute_identify_ctrl_zns(struct nvmet_req *req) in nvmet_execute_identify_ctrl_zns() argument
71 u8 zasl = req->sq->ctrl->subsys->zasl; in nvmet_execute_identify_ctrl_zns()
72 struct nvmet_ctrl *ctrl = req->sq->ctrl; in nvmet_execute_identify_ctrl_zns()
87 status = nvmet_copy_to_sgl(req, 0, id, sizeof(*id)); in nvmet_execute_identify_ctrl_zns()
91 nvmet_req_complete(req, status); in nvmet_execute_identify_ctrl_zns()
94 void nvmet_execute_identify_ns_zns(struct nvmet_req *req) in nvmet_execute_identify_ns_zns() argument
101 if (le32_to_cpu(req->cmd->identify.nsid) == NVME_NSID_ALL) { in nvmet_execute_identify_ns_zns()
102 req->error_loc = offsetof(struct nvme_identify, nsid); in nvmet_execute_identify_ns_zns()
113 status = nvmet_req_find_ns(req); in nvmet_execute_identify_ns_zns()
117 if (nvmet_ns_revalidate(req->ns)) { in nvmet_execute_identify_ns_zns()
[all …]
H A Dio-cmd-bdev.c130 u16 blk_to_nvme_status(struct nvmet_req *req, blk_status_t blk_sts) in blk_to_nvme_status() argument
145 req->error_loc = offsetof(struct nvme_rw_command, length); in blk_to_nvme_status()
149 req->error_loc = offsetof(struct nvme_rw_command, slba); in blk_to_nvme_status()
153 req->error_loc = offsetof(struct nvme_common_command, opcode); in blk_to_nvme_status()
157 req->error_loc = offsetof(struct nvme_rw_command, nsid); in blk_to_nvme_status()
162 req->error_loc = offsetof(struct nvme_common_command, opcode); in blk_to_nvme_status()
165 switch (req->cmd->common.opcode) { in blk_to_nvme_status()
168 req->error_slba = le64_to_cpu(req->cmd->rw.slba); in blk_to_nvme_status()
171 req->error_slba = in blk_to_nvme_status()
172 le64_to_cpu(req->cmd->write_zeroes.slba); in blk_to_nvme_status()
[all …]
H A Dfabrics-cmd.c10 static void nvmet_execute_prop_set(struct nvmet_req *req) in nvmet_execute_prop_set() argument
12 u64 val = le64_to_cpu(req->cmd->prop_set.value); in nvmet_execute_prop_set()
15 if (!nvmet_check_transfer_len(req, 0)) in nvmet_execute_prop_set()
18 if (req->cmd->prop_set.attrib & 1) { in nvmet_execute_prop_set()
19 req->error_loc = in nvmet_execute_prop_set()
25 switch (le32_to_cpu(req->cmd->prop_set.offset)) { in nvmet_execute_prop_set()
27 nvmet_update_cc(req->sq->ctrl, val); in nvmet_execute_prop_set()
30 req->error_loc = in nvmet_execute_prop_set()
35 nvmet_req_complete(req, status); in nvmet_execute_prop_set()
38 static void nvmet_execute_prop_get(struct nvmet_req *req) in nvmet_execute_prop_get() argument
[all …]
/linux/drivers/block/drbd/
H A Ddrbd_req.c26 struct drbd_request *req; in drbd_req_new() local
28 req = mempool_alloc(&drbd_request_mempool, GFP_NOIO); in drbd_req_new()
29 if (!req) in drbd_req_new()
31 memset(req, 0, sizeof(*req)); in drbd_req_new()
33 req->rq_state = (bio_data_dir(bio_src) == WRITE ? RQ_WRITE : 0) in drbd_req_new()
36 req->device = device; in drbd_req_new()
37 req->master_bio = bio_src; in drbd_req_new()
38 req->epoch = 0; in drbd_req_new()
40 drbd_clear_interval(&req->i); in drbd_req_new()
41 req->i.sector = bio_src->bi_iter.bi_sector; in drbd_req_new()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dmcs_rvu_if.c21 struct _req_type *req; \
23 req = (struct _req_type *)otx2_mbox_alloc_msg_rsp( \
26 if (!req) \
28 req->hdr.sig = OTX2_MBOX_REQ_SIG; \
29 req->hdr.id = _id; \
30 return req; \
73 struct mcs_set_lmac_mode *req, in rvu_mbox_handler_mcs_set_lmac_mode() argument
78 if (req->mcs_id >= rvu->mcs_blk_cnt) in rvu_mbox_handler_mcs_set_lmac_mode()
81 mcs = mcs_get_pdata(req->mcs_id); in rvu_mbox_handler_mcs_set_lmac_mode()
83 if (BIT_ULL(req->lmac_id) & mcs->hw->lmac_bmap) in rvu_mbox_handler_mcs_set_lmac_mode()
[all …]
/linux/net/handshake/
H A Drequest.c66 static bool handshake_req_hash_add(struct handshake_req *req) in handshake_req_hash_add() argument
71 &req->hr_rhash, in handshake_req_hash_add()
76 static void handshake_req_destroy(struct handshake_req *req) in handshake_req_destroy() argument
78 if (req->hr_proto->hp_destroy) in handshake_req_destroy()
79 req->hr_proto->hp_destroy(req); in handshake_req_destroy()
80 rhashtable_remove_fast(&handshake_rhashtbl, &req->hr_rhash, in handshake_req_destroy()
82 kfree(req); in handshake_req_destroy()
88 struct handshake_req *req; in handshake_sk_destruct() local
90 req = handshake_req_hash_lookup(sk); in handshake_sk_destruct()
91 if (!req) in handshake_sk_destruct()
[all …]
/linux/drivers/net/ethernet/broadcom/bnge/
H A Dbnge_hwrm_lib.c23 struct hwrm_ver_get_input *req; in bnge_hwrm_ver_get() local
26 rc = bnge_hwrm_req_init(bd, req, HWRM_VER_GET); in bnge_hwrm_ver_get()
30 bnge_hwrm_req_flags(bd, req, BNGE_HWRM_FULL_WAIT); in bnge_hwrm_ver_get()
32 req->hwrm_intf_maj = HWRM_VERSION_MAJOR; in bnge_hwrm_ver_get()
33 req->hwrm_intf_min = HWRM_VERSION_MINOR; in bnge_hwrm_ver_get()
34 req->hwrm_intf_upd = HWRM_VERSION_UPDATE; in bnge_hwrm_ver_get()
36 resp = bnge_hwrm_req_hold(bd, req); in bnge_hwrm_ver_get()
37 rc = bnge_hwrm_req_send(bd, req); in bnge_hwrm_ver_get()
108 bnge_hwrm_req_drop(bd, req); in bnge_hwrm_ver_get()
117 struct hwrm_nvm_get_dev_info_input *req; in bnge_hwrm_nvm_dev_info() local
[all …]
/linux/drivers/infiniband/hw/hfi1/
H A Duser_sdma.c38 static int user_sdma_send_pkts(struct user_sdma_request *req, u16 maxpkts);
41 static void user_sdma_free_request(struct user_sdma_request *req);
42 static int check_header_template(struct user_sdma_request *req,
45 static int set_txreq_header(struct user_sdma_request *req,
47 static int set_txreq_header_ahg(struct user_sdma_request *req,
290 struct user_sdma_request *req; in hfi1_user_sdma_process_request() local
297 if (iovec[idx].iov_len < sizeof(info) + sizeof(req->hdr)) { in hfi1_user_sdma_process_request()
302 iovec[idx].iov_len, sizeof(info) + sizeof(req->hdr)); in hfi1_user_sdma_process_request()
352 req = pq->reqs + info.comp_idx; in hfi1_user_sdma_process_request()
353 req->data_iovs = req_iovcnt(info.ctrl) - 1; /* subtract header vector */ in hfi1_user_sdma_process_request()
[all …]
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dnetlink.c142 } req; in __add_veth() local
146 memset(&req, 0, sizeof(req)); in __add_veth()
147 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.info)); in __add_veth()
148 req.nh.nlmsg_type = RTM_NEWLINK; in __add_veth()
149 req.nh.nlmsg_flags = flags; in __add_veth()
150 req.nh.nlmsg_seq = seq; in __add_veth()
151 req.info.ifi_family = AF_UNSPEC; in __add_veth()
152 req.info.ifi_change = 0xFFFFFFFF; in __add_veth()
154 if (rtattr_pack(&req.nh, sizeof(req), IFLA_IFNAME, name, strlen(name))) in __add_veth()
157 if (rtattr_pack(&req.nh, sizeof(req), IFLA_NET_NS_FD, &ns_a, sizeof(ns_a))) in __add_veth()
[all …]
/linux/include/crypto/
H A Dacompress.h114 int (*compress)(struct acomp_req *req);
115 int (*decompress)(struct acomp_req *req);
194 static inline void acomp_request_set_tfm(struct acomp_req *req, in acomp_request_set_tfm() argument
197 crypto_request_set_tfm(&req->base, crypto_acomp_tfm(tfm)); in acomp_request_set_tfm()
206 static inline struct crypto_acomp *crypto_acomp_reqtfm(struct acomp_req *req) in crypto_acomp_reqtfm() argument
208 return __crypto_acomp_tfm(req->base.tfm); in crypto_acomp_reqtfm()
253 struct acomp_req *req; in acomp_request_alloc_extra_noprof() local
256 len = ALIGN(sizeof(*req) + crypto_acomp_reqsize(tfm), CRYPTO_MINALIGN); in acomp_request_alloc_extra_noprof()
260 req = kzalloc_noprof(len, gfp); in acomp_request_alloc_extra_noprof()
261 if (likely(req)) in acomp_request_alloc_extra_noprof()
[all …]
/linux/drivers/peci/
H A Drequest.c88 static u8 peci_request_data_cc(struct peci_request *req) in peci_request_data_cc() argument
90 return req->rx.buf[0]; in peci_request_data_cc()
102 int peci_request_status(struct peci_request *req) in peci_request_status() argument
104 u8 cc = peci_request_data_cc(req); in peci_request_status()
107 dev_dbg(&req->device->dev, "ret: %#02x\n", cc); in peci_request_status()
133 static int peci_request_xfer(struct peci_request *req) in peci_request_xfer() argument
135 struct peci_device *device = req->device; in peci_request_xfer()
140 ret = controller->ops->xfer(controller, device->addr, req); in peci_request_xfer()
146 static int peci_request_xfer_retry(struct peci_request *req) in peci_request_xfer_retry() argument
149 struct peci_device *device = req->device; in peci_request_xfer_retry()
[all …]
/linux/net/sunrpc/
H A Dbackchannel_rqst.c40 static void xprt_free_allocation(struct rpc_rqst *req) in xprt_free_allocation() argument
44 dprintk("RPC: free allocations for req= %p\n", req); in xprt_free_allocation()
45 WARN_ON_ONCE(test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state)); in xprt_free_allocation()
46 xbufp = &req->rq_rcv_buf; in xprt_free_allocation()
48 xbufp = &req->rq_snd_buf; in xprt_free_allocation()
50 kfree(req); in xprt_free_allocation()
78 struct rpc_rqst *req; in xprt_alloc_bc_req() local
81 req = kzalloc(sizeof(*req), gfp_flags); in xprt_alloc_bc_req()
82 if (req == NULL) in xprt_alloc_bc_req()
85 req->rq_xprt = xprt; in xprt_alloc_bc_req()
[all …]
/linux/drivers/clk/sunxi/
H A Dclk-sunxi.c33 static void sun4i_get_pll1_factors(struct factors_request *req) in sun4i_get_pll1_factors() argument
38 div = req->rate / 6000000; in sun4i_get_pll1_factors()
39 req->rate = 6000000 * div; in sun4i_get_pll1_factors()
42 req->m = 0; in sun4i_get_pll1_factors()
45 if (req->rate >= 768000000 || req->rate == 42000000 || in sun4i_get_pll1_factors()
46 req->rate == 54000000) in sun4i_get_pll1_factors()
47 req->k = 1; in sun4i_get_pll1_factors()
49 req->k = 0; in sun4i_get_pll1_factors()
53 req->p = 3; in sun4i_get_pll1_factors()
57 req->p = 2; in sun4i_get_pll1_factors()
[all …]
/linux/crypto/
H A Dahash.c32 static int ahash_def_finup(struct ahash_request *req);
102 int crypto_hash_walk_first(struct ahash_request *req, in crypto_hash_walk_first() argument
105 walk->total = req->nbytes; in crypto_hash_walk_first()
111 walk->flags = req->base.flags; in crypto_hash_walk_first()
113 if (ahash_request_isvirt(req)) { in crypto_hash_walk_first()
114 walk->data = req->svirt; in crypto_hash_walk_first()
116 return req->nbytes; in crypto_hash_walk_first()
119 walk->sg = req->src; in crypto_hash_walk_first()
162 static inline struct shash_desc *prepare_shash_desc(struct ahash_request *req, in prepare_shash_desc() argument
165 struct shash_desc *desc = ahash_request_ctx(req); in prepare_shash_desc()
[all …]

12345678910>>...100