Home
last modified time | relevance | path

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

12345678910>>...64

/Linux-v4.19/drivers/s390/scsi/
Dzfcp_fsf.c67 static void zfcp_fsf_class_not_supp(struct zfcp_fsf_req *req) in zfcp_fsf_class_not_supp() argument
69 dev_err(&req->adapter->ccw_device->dev, "FCP device not " in zfcp_fsf_class_not_supp()
71 zfcp_erp_adapter_shutdown(req->adapter, 0, "fscns_1"); in zfcp_fsf_class_not_supp()
72 req->status |= ZFCP_STATUS_FSFREQ_ERROR; in zfcp_fsf_class_not_supp()
79 void zfcp_fsf_req_free(struct zfcp_fsf_req *req) in zfcp_fsf_req_free() argument
81 if (likely(req->pool)) { in zfcp_fsf_req_free()
82 if (likely(req->qtcb)) in zfcp_fsf_req_free()
83 mempool_free(req->qtcb, req->adapter->pool.qtcb_pool); in zfcp_fsf_req_free()
84 mempool_free(req, req->pool); in zfcp_fsf_req_free()
88 if (likely(req->qtcb)) in zfcp_fsf_req_free()
[all …]
/Linux-v4.19/drivers/staging/greybus/
Daudio_apbridgea.c17 struct audio_apbridgea_set_config_request req; in gb_audio_apbridgea_set_config() local
19 req.hdr.type = AUDIO_APBRIDGEA_TYPE_SET_CONFIG; in gb_audio_apbridgea_set_config()
20 req.hdr.i2s_port = cpu_to_le16(i2s_port); in gb_audio_apbridgea_set_config()
21 req.format = cpu_to_le32(format); in gb_audio_apbridgea_set_config()
22 req.rate = cpu_to_le32(rate); in gb_audio_apbridgea_set_config()
23 req.mclk_freq = cpu_to_le32(mclk_freq); in gb_audio_apbridgea_set_config()
25 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_config()
34 struct audio_apbridgea_register_cport_request req; in gb_audio_apbridgea_register_cport() local
37 req.hdr.type = AUDIO_APBRIDGEA_TYPE_REGISTER_CPORT; in gb_audio_apbridgea_register_cport()
38 req.hdr.i2s_port = cpu_to_le16(i2s_port); in gb_audio_apbridgea_register_cport()
[all …]
Daudio_gb.c52 struct gb_audio_get_control_request req; in gb_audio_gb_get_control() local
56 req.control_id = control_id; in gb_audio_gb_get_control()
57 req.index = index; in gb_audio_gb_get_control()
60 &req, sizeof(req), &resp, sizeof(resp)); in gb_audio_gb_get_control()
74 struct gb_audio_set_control_request req; in gb_audio_gb_set_control() local
76 req.control_id = control_id; in gb_audio_gb_set_control()
77 req.index = index; in gb_audio_gb_set_control()
78 memcpy(&req.value, value, sizeof(req.value)); in gb_audio_gb_set_control()
81 &req, sizeof(req), NULL, 0); in gb_audio_gb_set_control()
88 struct gb_audio_enable_widget_request req; in gb_audio_gb_enable_widget() local
[all …]
/Linux-v4.19/drivers/block/drbd/
Ddrbd_req.c37 static void _drbd_start_io_acct(struct drbd_device *device, struct drbd_request *req) in _drbd_start_io_acct() argument
41 generic_start_io_acct(q, bio_op(req->master_bio), in _drbd_start_io_acct()
42 req->i.size >> 9, &device->vdisk->part0); in _drbd_start_io_acct()
46 static void _drbd_end_io_acct(struct drbd_device *device, struct drbd_request *req) in _drbd_end_io_acct() argument
50 generic_end_io_acct(q, bio_op(req->master_bio), in _drbd_end_io_acct()
51 &device->vdisk->part0, req->start_jif); in _drbd_end_io_acct()
56 struct drbd_request *req; in drbd_req_new() local
58 req = mempool_alloc(&drbd_request_mempool, GFP_NOIO); in drbd_req_new()
59 if (!req) in drbd_req_new()
61 memset(req, 0, sizeof(*req)); in drbd_req_new()
[all …]
/Linux-v4.19/drivers/nvme/target/
Dio-cmd-file.c85 static ssize_t nvmet_file_submit_bvec(struct nvmet_req *req, loff_t pos, in nvmet_file_submit_bvec() argument
88 struct kiocb *iocb = &req->f.iocb; in nvmet_file_submit_bvec()
94 if (req->cmd->rw.opcode == nvme_cmd_write) { in nvmet_file_submit_bvec()
95 if (req->cmd->rw.control & cpu_to_le16(NVME_RW_FUA)) in nvmet_file_submit_bvec()
97 call_iter = req->ns->file->f_op->write_iter; in nvmet_file_submit_bvec()
100 call_iter = req->ns->file->f_op->read_iter; in nvmet_file_submit_bvec()
104 iov_iter_bvec(&iter, ITER_BVEC | rw, req->f.bvec, nr_segs, count); in nvmet_file_submit_bvec()
107 iocb->ki_filp = req->ns->file; in nvmet_file_submit_bvec()
108 iocb->ki_flags = ki_flags | iocb_flags(req->ns->file); in nvmet_file_submit_bvec()
120 struct nvmet_req *req = container_of(iocb, struct nvmet_req, f.iocb); in nvmet_file_io_done() local
[all …]
Dadmin-cmd.c27 static inline void nvmet_clear_aen(struct nvmet_req *req, u32 aen_bit) in nvmet_clear_aen() argument
29 int rae = le32_to_cpu(req->cmd->common.cdw10[0]) & 1 << 15; in nvmet_clear_aen()
32 clear_bit(aen_bit, &req->sq->ctrl->aen_masked); in nvmet_clear_aen()
48 static void nvmet_execute_get_log_page_noop(struct nvmet_req *req) in nvmet_execute_get_log_page_noop() argument
50 nvmet_req_complete(req, nvmet_zero_sgl(req, 0, req->data_len)); in nvmet_execute_get_log_page_noop()
53 static u16 nvmet_get_smart_log_nsid(struct nvmet_req *req, in nvmet_get_smart_log_nsid() argument
59 ns = nvmet_find_namespace(req->sq->ctrl, req->cmd->get_log_page.nsid); in nvmet_get_smart_log_nsid()
62 le32_to_cpu(req->cmd->get_log_page.nsid)); in nvmet_get_smart_log_nsid()
85 static u16 nvmet_get_smart_log_all(struct nvmet_req *req, in nvmet_get_smart_log_all() argument
93 ctrl = req->sq->ctrl; in nvmet_get_smart_log_all()
[all …]
Dio-cmd-bdev.c49 struct nvmet_req *req = bio->bi_private; in nvmet_bio_done() local
51 nvmet_req_complete(req, in nvmet_bio_done()
54 if (bio != &req->b.inline_bio) in nvmet_bio_done()
58 static void nvmet_bdev_execute_rw(struct nvmet_req *req) in nvmet_bdev_execute_rw() argument
60 int sg_cnt = req->sg_cnt; in nvmet_bdev_execute_rw()
61 struct bio *bio = &req->b.inline_bio; in nvmet_bdev_execute_rw()
67 if (!req->sg_cnt) { in nvmet_bdev_execute_rw()
68 nvmet_req_complete(req, 0); in nvmet_bdev_execute_rw()
72 if (req->cmd->rw.opcode == nvme_cmd_write) { in nvmet_bdev_execute_rw()
75 if (req->cmd->rw.control & cpu_to_le16(NVME_RW_FUA)) in nvmet_bdev_execute_rw()
[all …]
Dfabrics-cmd.c18 static void nvmet_execute_prop_set(struct nvmet_req *req) in nvmet_execute_prop_set() argument
22 if (!(req->cmd->prop_set.attrib & 1)) { in nvmet_execute_prop_set()
23 u64 val = le64_to_cpu(req->cmd->prop_set.value); 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()
37 nvmet_req_complete(req, status); in nvmet_execute_prop_set()
40 static void nvmet_execute_prop_get(struct nvmet_req *req) in nvmet_execute_prop_get() argument
42 struct nvmet_ctrl *ctrl = req->sq->ctrl; in nvmet_execute_prop_get()
46 if (req->cmd->prop_get.attrib & 1) { in nvmet_execute_prop_get()
47 switch (le32_to_cpu(req->cmd->prop_get.offset)) { in nvmet_execute_prop_get()
[all …]
/Linux-v4.19/net/sunrpc/
Dbackchannel_rqst.c59 static void xprt_free_allocation(struct rpc_rqst *req) in xprt_free_allocation() argument
63 dprintk("RPC: free allocations for req= %p\n", req); in xprt_free_allocation()
64 WARN_ON_ONCE(test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state)); in xprt_free_allocation()
65 xbufp = &req->rq_rcv_buf; in xprt_free_allocation()
67 xbufp = &req->rq_snd_buf; in xprt_free_allocation()
69 kfree(req); in xprt_free_allocation()
86 struct rpc_rqst *req; in xprt_alloc_bc_req() local
89 req = kzalloc(sizeof(*req), gfp_flags); in xprt_alloc_bc_req()
90 if (req == NULL) in xprt_alloc_bc_req()
93 req->rq_xprt = xprt; in xprt_alloc_bc_req()
[all …]
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Duser_sdma.c79 static int user_sdma_send_pkts(struct user_sdma_request *req,
83 static void user_sdma_free_request(struct user_sdma_request *req, bool unpin);
84 static int pin_vector_pages(struct user_sdma_request *req,
88 static int check_header_template(struct user_sdma_request *req,
91 static int set_txreq_header(struct user_sdma_request *req,
93 static int set_txreq_header_ahg(struct user_sdma_request *req,
327 struct user_sdma_request *req; in hfi1_user_sdma_process_request() local
335 if (iovec[idx].iov_len < sizeof(info) + sizeof(req->hdr)) { in hfi1_user_sdma_process_request()
340 iovec[idx].iov_len, sizeof(info) + sizeof(req->hdr)); in hfi1_user_sdma_process_request()
390 req = pq->reqs + info.comp_idx; in hfi1_user_sdma_process_request()
[all …]
/Linux-v4.19/drivers/macintosh/
Dadb-iop.c65 static void adb_iop_end_req(struct adb_request *req, int state) in adb_iop_end_req() argument
67 req->complete = 1; in adb_iop_end_req()
68 current_req = req->next; in adb_iop_end_req()
69 if (req->done) (*req->done)(req); in adb_iop_end_req()
81 struct adb_request *req; in adb_iop_complete() local
86 req = current_req; in adb_iop_complete()
87 if ((adb_iop_state == sending) && req && req->reply_expected) { in adb_iop_complete()
104 struct adb_request *req; in adb_iop_listen() local
112 req = current_req; in adb_iop_listen()
115 printk("adb_iop_listen %p: rcvd packet, %d bytes: %02X %02X", req, in adb_iop_listen()
[all …]
Dvia-macii.c87 static int macii_send_request(struct adb_request *req, int sync);
88 static int macii_write(struct adb_request *req);
124 static int request_is_queued(struct adb_request *req) { in request_is_queued() argument
130 if (cur == req) { in request_is_queued()
206 static struct adb_request req; in macii_queue_poll() local
216 BUG_ON(request_is_queued(&req)); in macii_queue_poll()
218 adb_request(&req, NULL, ADBREQ_NOSEND, 1, in macii_queue_poll()
221 req.sent = 0; in macii_queue_poll()
222 req.complete = 0; in macii_queue_poll()
223 req.reply_len = 0; in macii_queue_poll()
[all …]
Dvia-pmu.c202 static int pmu_send_request(struct adb_request *req, int sync);
234 int pmu_polled_request(struct adb_request *req);
587 struct adb_request req; in init_pmu() local
593 pmu_request(&req, NULL, 2, PMU_SET_INTR_MASK, pmu_intr_mask); in init_pmu()
595 while (!req.complete) { in init_pmu()
620 pmu_request(&req, NULL, 2, PMU_SYSTEM_READY, 2); in init_pmu()
621 while (!req.complete) in init_pmu()
626 pmu_request(&req, NULL, 1, PMU_GET_VERSION); in init_pmu()
627 pmu_wait_complete(&req); in init_pmu()
628 if (req.reply_len > 0) in init_pmu()
[all …]
/Linux-v4.19/crypto/
Dchacha20poly1305.c50 struct ahash_request req; /* must be last member */ member
56 struct skcipher_request req; /* must be last member */ member
76 static inline void async_done_continue(struct aead_request *req, int err, in async_done_continue() argument
80 err = cont(req); in async_done_continue()
83 aead_request_complete(req, err); in async_done_continue()
86 static void chacha_iv(u8 *iv, struct aead_request *req, u32 icb) in chacha_iv() argument
88 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in chacha_iv()
93 memcpy(iv + sizeof(leicb) + ctx->saltlen, req->iv, in chacha_iv()
97 static int poly_verify_tag(struct aead_request *req) in poly_verify_tag() argument
99 struct chachapoly_req_ctx *rctx = aead_request_ctx(req); in poly_verify_tag()
[all …]
Dseqiv.c28 static void seqiv_aead_encrypt_complete2(struct aead_request *req, int err) in seqiv_aead_encrypt_complete2() argument
30 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_encrypt_complete2()
39 geniv = crypto_aead_reqtfm(req); in seqiv_aead_encrypt_complete2()
40 memcpy(req->iv, subreq->iv, crypto_aead_ivsize(geniv)); in seqiv_aead_encrypt_complete2()
49 struct aead_request *req = base->data; in seqiv_aead_encrypt_complete() local
51 seqiv_aead_encrypt_complete2(req, err); in seqiv_aead_encrypt_complete()
52 aead_request_complete(req, err); in seqiv_aead_encrypt_complete()
55 static int seqiv_aead_encrypt(struct aead_request *req) in seqiv_aead_encrypt() argument
57 struct crypto_aead *geniv = crypto_aead_reqtfm(req); in seqiv_aead_encrypt()
59 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_encrypt()
[all …]
/Linux-v4.19/drivers/clk/sunxi/
Dclk-sunxi.c41 static void sun4i_get_pll1_factors(struct factors_request *req) in sun4i_get_pll1_factors() argument
46 div = req->rate / 6000000; in sun4i_get_pll1_factors()
47 req->rate = 6000000 * div; in sun4i_get_pll1_factors()
50 req->m = 0; in sun4i_get_pll1_factors()
53 if (req->rate >= 768000000 || req->rate == 42000000 || in sun4i_get_pll1_factors()
54 req->rate == 54000000) in sun4i_get_pll1_factors()
55 req->k = 1; in sun4i_get_pll1_factors()
57 req->k = 0; in sun4i_get_pll1_factors()
61 req->p = 3; in sun4i_get_pll1_factors()
65 req->p = 2; in sun4i_get_pll1_factors()
[all …]
Dclk-sun9i-core.c35 static void sun9i_a80_get_pll4_factors(struct factors_request *req) in sun9i_a80_get_pll4_factors() argument
42 n = DIV_ROUND_UP(req->rate, 6000000); in sun9i_a80_get_pll4_factors()
62 req->rate = ((24000000 * n) >> p) / (m + 1); in sun9i_a80_get_pll4_factors()
63 req->n = n; in sun9i_a80_get_pll4_factors()
64 req->m = m; in sun9i_a80_get_pll4_factors()
65 req->p = p; in sun9i_a80_get_pll4_factors()
108 static void sun9i_a80_get_gt_factors(struct factors_request *req) in sun9i_a80_get_gt_factors() argument
112 if (req->parent_rate < req->rate) in sun9i_a80_get_gt_factors()
113 req->rate = req->parent_rate; in sun9i_a80_get_gt_factors()
115 div = DIV_ROUND_UP(req->parent_rate, req->rate); in sun9i_a80_get_gt_factors()
[all …]
/Linux-v4.19/drivers/s390/cio/
Dccwreq.c43 struct ccw_request *req = &cdev->private->req; in ccwreq_next_path() local
45 if (!req->singlepath) { in ccwreq_next_path()
46 req->mask = 0; in ccwreq_next_path()
49 req->retries = req->maxretries; in ccwreq_next_path()
50 req->mask = lpm_adjust(req->mask >> 1, req->lpm); in ccwreq_next_path()
52 return req->mask; in ccwreq_next_path()
60 struct ccw_request *req = &cdev->private->req; in ccwreq_stop() local
62 if (req->done) in ccwreq_stop()
64 req->done = 1; in ccwreq_stop()
67 if (rc && rc != -ENODEV && req->drc) in ccwreq_stop()
[all …]
/Linux-v4.19/arch/powerpc/platforms/52xx/
Dmpc52xx_lpbfifo.c53 struct mpc52xx_lpbfifo_request *req; member
63 static void mpc52xx_lpbfifo_kick(struct mpc52xx_lpbfifo_request *req) in mpc52xx_lpbfifo_kick() argument
65 size_t transfer_size = req->size - req->pos; in mpc52xx_lpbfifo_kick()
71 int dma = !(req->flags & MPC52XX_LPBFIFO_FLAG_NO_DMA); in mpc52xx_lpbfifo_kick()
72 int write = req->flags & MPC52XX_LPBFIFO_FLAG_WRITE; in mpc52xx_lpbfifo_kick()
73 int poll_dma = req->flags & MPC52XX_LPBFIFO_FLAG_POLL_DMA; in mpc52xx_lpbfifo_kick()
96 data = req->data + req->pos; in mpc52xx_lpbfifo_kick()
150 bd->data[0] = req->data_phys + req->pos; in mpc52xx_lpbfifo_kick()
164 req->offset + req->pos); in mpc52xx_lpbfifo_kick()
167 bit_fields = req->cs << 24 | 0x000008; in mpc52xx_lpbfifo_kick()
[all …]
/Linux-v4.19/include/net/
Drequest_sock.h37 struct request_sock *req);
39 struct request_sock *req);
42 void (*destructor)(struct request_sock *req);
43 void (*syn_ack_timeout)(const struct request_sock *req);
46 int inet_rtx_syn_ack(const struct sock *parent, struct request_sock *req);
77 static inline struct sock *req_to_sk(struct request_sock *req) in req_to_sk() argument
79 return (struct sock *)req; in req_to_sk()
86 struct request_sock *req; in reqsk_alloc() local
88 req = kmem_cache_alloc(ops->slab, GFP_ATOMIC | __GFP_NOWARN); in reqsk_alloc()
89 if (!req) in reqsk_alloc()
[all …]
/Linux-v4.19/include/crypto/
Dakcipher.h93 int (*sign)(struct akcipher_request *req);
94 int (*verify)(struct akcipher_request *req);
95 int (*encrypt)(struct akcipher_request *req);
96 int (*decrypt)(struct akcipher_request *req);
161 static inline void akcipher_request_set_tfm(struct akcipher_request *req, in akcipher_request_set_tfm() argument
164 req->base.tfm = crypto_akcipher_tfm(tfm); in akcipher_request_set_tfm()
168 struct akcipher_request *req) in crypto_akcipher_reqtfm() argument
170 return __crypto_akcipher_tfm(req->base.tfm); in crypto_akcipher_reqtfm()
194 struct akcipher_request *req; in akcipher_request_alloc() local
196 req = kmalloc(sizeof(*req) + crypto_akcipher_reqsize(tfm), gfp); in akcipher_request_alloc()
[all …]
/Linux-v4.19/drivers/usb/gadget/udc/aspeed-vhub/
Dep0.c37 struct usb_request *req = &ep->ep0.req.req; in ast_vhub_reply() local
46 if (WARN_ON(req->status == -EINPROGRESS)) in ast_vhub_reply()
49 req->buf = ptr; in ast_vhub_reply()
50 req->length = len; in ast_vhub_reply()
51 req->complete = NULL; in ast_vhub_reply()
52 req->zero = true; in ast_vhub_reply()
60 if (ep->ep.ops->queue(&ep->ep, req, GFP_ATOMIC)) in ast_vhub_reply()
181 struct ast_vhub_req *req) in ast_vhub_ep0_do_send() argument
189 if (req->req.length == 0) in ast_vhub_ep0_do_send()
190 req->last_desc = 1; in ast_vhub_ep0_do_send()
[all …]
/Linux-v4.19/drivers/crypto/amcc/
Dcrypto4xx_alg.c78 static inline int crypto4xx_crypt(struct skcipher_request *req, in crypto4xx_crypt() argument
81 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in crypto4xx_crypt()
86 crypto4xx_memcpy_to_le32(iv, req->iv, ivlen); in crypto4xx_crypt()
88 return crypto4xx_build_pd(&req->base, ctx, req->src, req->dst, in crypto4xx_crypt()
89 req->cryptlen, iv, ivlen, decrypt ? ctx->sa_in : ctx->sa_out, in crypto4xx_crypt()
93 int crypto4xx_encrypt_noiv(struct skcipher_request *req) in crypto4xx_encrypt_noiv() argument
95 return crypto4xx_crypt(req, 0, false); in crypto4xx_encrypt_noiv()
98 int crypto4xx_encrypt_iv(struct skcipher_request *req) in crypto4xx_encrypt_iv() argument
100 return crypto4xx_crypt(req, AES_IV_SIZE, false); in crypto4xx_encrypt_iv()
103 int crypto4xx_decrypt_noiv(struct skcipher_request *req) in crypto4xx_decrypt_noiv() argument
[all …]
/Linux-v4.19/arch/um/drivers/
Dmconsole_user.c40 static int mconsole_reply_v0(struct mc_request *req, char *reply) in mconsole_reply_v0() argument
48 msg.msg_name = &(req->origin); in mconsole_reply_v0()
49 msg.msg_namelen = req->originlen; in mconsole_reply_v0()
56 return sendmsg(req->originating_fd, &msg, 0); in mconsole_reply_v0()
59 static struct mconsole_command *mconsole_parse(struct mc_request *req) in mconsole_parse() argument
66 if (!strncmp(req->request.data, cmd->command, in mconsole_parse()
79 int mconsole_get_request(int fd, struct mc_request *req) in mconsole_get_request() argument
83 req->originlen = sizeof(req->origin); in mconsole_get_request()
84 req->len = recvfrom(fd, &req->request, sizeof(req->request), 0, in mconsole_get_request()
85 (struct sockaddr *) req->origin, &req->originlen); in mconsole_get_request()
[all …]
/Linux-v4.19/drivers/staging/emxx_udc/
Demxx_udc.c170 udc->ep0_req.req.buf = p_buf; in _nbu2ss_create_ep0_packet()
171 udc->ep0_req.req.length = length; in _nbu2ss_create_ep0_packet()
172 udc->ep0_req.req.dma = 0; in _nbu2ss_create_ep0_packet()
173 udc->ep0_req.req.zero = TRUE; in _nbu2ss_create_ep0_packet()
174 udc->ep0_req.req.complete = _nbu2ss_ep0_complete; in _nbu2ss_create_ep0_packet()
175 udc->ep0_req.req.status = -EINPROGRESS; in _nbu2ss_create_ep0_packet()
176 udc->ep0_req.req.context = udc; in _nbu2ss_create_ep0_packet()
177 udc->ep0_req.req.actual = 0; in _nbu2ss_create_ep0_packet()
466 struct nbu2ss_req *req, in _nbu2ss_dma_map_single() argument
470 if (req->req.dma == DMA_ADDR_INVALID) { in _nbu2ss_dma_map_single()
[all …]

12345678910>>...64