/kernel/linux/linux-5.10/drivers/media/mc/ |
D | mc-request.c | 39 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 …]
|
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
D | audio_apbridgea.c | 16 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 …]
|
D | audio_gb.c | 50 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 …]
|
/kernel/linux/linux-5.10/drivers/s390/scsi/ |
D | zfcp_fsf.c | 80 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 …]
|
/kernel/linux/linux-5.10/drivers/nvme/target/ |
D | io-cmd-file.c | 102 static ssize_t nvmet_file_submit_bvec(struct nvmet_req *req, loff_t pos, in nvmet_file_submit_bvec() argument 105 struct kiocb *iocb = &req->f.iocb; in nvmet_file_submit_bvec() 110 if (req->cmd->rw.opcode == nvme_cmd_write) { in nvmet_file_submit_bvec() 111 if (req->cmd->rw.control & cpu_to_le16(NVME_RW_FUA)) in nvmet_file_submit_bvec() 113 call_iter = req->ns->file->f_op->write_iter; in nvmet_file_submit_bvec() 116 call_iter = req->ns->file->f_op->read_iter; in nvmet_file_submit_bvec() 120 iov_iter_bvec(&iter, rw, req->f.bvec, nr_segs, count); in nvmet_file_submit_bvec() 123 iocb->ki_filp = req->ns->file; in nvmet_file_submit_bvec() 124 iocb->ki_flags = ki_flags | iocb_flags(req->ns->file); in nvmet_file_submit_bvec() 131 struct nvmet_req *req = container_of(iocb, struct nvmet_req, f.iocb); in nvmet_file_io_done() local [all …]
|
D | admin-cmd.c | 28 static u32 nvmet_feat_data_len(struct nvmet_req *req, u32 cdw10) in nvmet_feat_data_len() argument 32 return sizeof(req->sq->ctrl->hostid); in nvmet_feat_data_len() 43 static void nvmet_execute_get_log_page_noop(struct nvmet_req *req) in nvmet_execute_get_log_page_noop() argument 45 nvmet_req_complete(req, nvmet_zero_sgl(req, 0, req->transfer_len)); in nvmet_execute_get_log_page_noop() 48 static void nvmet_execute_get_log_page_error(struct nvmet_req *req) in nvmet_execute_get_log_page_error() argument 50 struct nvmet_ctrl *ctrl = req->sq->ctrl; in nvmet_execute_get_log_page_error() 60 if (nvmet_copy_to_sgl(req, offset, &ctrl->slots[slot], in nvmet_execute_get_log_page_error() 71 nvmet_req_complete(req, 0); in nvmet_execute_get_log_page_error() 74 static u16 nvmet_get_smart_log_nsid(struct nvmet_req *req, in nvmet_get_smart_log_nsid() argument 80 ns = nvmet_find_namespace(req->sq->ctrl, req->cmd->get_log_page.nsid); in nvmet_get_smart_log_nsid() [all …]
|
D | io-cmd-bdev.c | 105 static u16 blk_to_nvme_status(struct nvmet_req *req, blk_status_t blk_sts) in blk_to_nvme_status() argument 120 req->error_loc = offsetof(struct nvme_rw_command, length); in blk_to_nvme_status() 124 req->error_loc = offsetof(struct nvme_rw_command, slba); in blk_to_nvme_status() 127 req->error_loc = offsetof(struct nvme_common_command, opcode); in blk_to_nvme_status() 128 switch (req->cmd->common.opcode) { in blk_to_nvme_status() 139 req->error_loc = offsetof(struct nvme_rw_command, nsid); in blk_to_nvme_status() 144 req->error_loc = offsetof(struct nvme_common_command, opcode); in blk_to_nvme_status() 147 switch (req->cmd->common.opcode) { in blk_to_nvme_status() 150 req->error_slba = le64_to_cpu(req->cmd->rw.slba); in blk_to_nvme_status() 153 req->error_slba = in blk_to_nvme_status() [all …]
|
D | fabrics-cmd.c | 10 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 …]
|
/kernel/linux/linux-5.10/drivers/block/drbd/ |
D | drbd_req.c | 26 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 drbd_req_make_private_bio(req, bio_src); in drbd_req_new() 34 req->rq_state = (bio_data_dir(bio_src) == WRITE ? RQ_WRITE : 0) in drbd_req_new() 38 req->device = device; in drbd_req_new() 39 req->master_bio = bio_src; in drbd_req_new() 40 req->epoch = 0; in drbd_req_new() 42 drbd_clear_interval(&req->i); in drbd_req_new() [all …]
|
/kernel/linux/linux-5.10/net/sunrpc/ |
D | backchannel_rqst.c | 54 static void xprt_free_allocation(struct rpc_rqst *req) in xprt_free_allocation() argument 58 dprintk("RPC: free allocations for req= %p\n", req); in xprt_free_allocation() 59 WARN_ON_ONCE(test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state)); in xprt_free_allocation() 60 xbufp = &req->rq_rcv_buf; in xprt_free_allocation() 62 xbufp = &req->rq_snd_buf; in xprt_free_allocation() 64 kfree(req); in xprt_free_allocation() 92 struct rpc_rqst *req; in xprt_alloc_bc_req() local 95 req = kzalloc(sizeof(*req), gfp_flags); in xprt_alloc_bc_req() 96 if (req == NULL) in xprt_alloc_bc_req() 99 req->rq_xprt = xprt; in xprt_alloc_bc_req() [all …]
|
/kernel/linux/linux-5.10/crypto/ |
D | chacha20poly1305.c | 42 struct ahash_request req; /* must be last member */ member 48 struct skcipher_request req; /* must be last member */ member 70 static inline void async_done_continue(struct aead_request *req, int err, in async_done_continue() argument 74 struct chachapoly_req_ctx *rctx = aead_request_ctx(req); in async_done_continue() 77 err = cont(req); in async_done_continue() 81 aead_request_complete(req, err); in async_done_continue() 84 static void chacha_iv(u8 *iv, struct aead_request *req, u32 icb) in chacha_iv() argument 86 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in chacha_iv() 91 memcpy(iv + sizeof(leicb) + ctx->saltlen, req->iv, in chacha_iv() 95 static int poly_verify_tag(struct aead_request *req) in poly_verify_tag() argument [all …]
|
D | seqiv.c | 21 static void seqiv_aead_encrypt_complete2(struct aead_request *req, int err) in seqiv_aead_encrypt_complete2() argument 23 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_encrypt_complete2() 32 geniv = crypto_aead_reqtfm(req); in seqiv_aead_encrypt_complete2() 33 memcpy(req->iv, subreq->iv, crypto_aead_ivsize(geniv)); in seqiv_aead_encrypt_complete2() 42 struct aead_request *req = base->data; in seqiv_aead_encrypt_complete() local 44 seqiv_aead_encrypt_complete2(req, err); in seqiv_aead_encrypt_complete() 45 aead_request_complete(req, err); in seqiv_aead_encrypt_complete() 48 static int seqiv_aead_encrypt(struct aead_request *req) in seqiv_aead_encrypt() argument 50 struct crypto_aead *geniv = crypto_aead_reqtfm(req); in seqiv_aead_encrypt() 52 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_encrypt() [all …]
|
D | gcm.c | 60 int (*complete)(struct aead_request *req, u32 flags); 82 static int crypto_rfc4543_copy_src_to_dst(struct aead_request *req, bool enc); 85 struct aead_request *req) in crypto_gcm_reqctx() argument 87 unsigned long align = crypto_aead_alignmask(crypto_aead_reqtfm(req)); in crypto_gcm_reqctx() 89 return (void *)PTR_ALIGN((u8 *)aead_request_ctx(req), align + 1); in crypto_gcm_reqctx() 105 struct skcipher_request req; in crypto_gcm_setkey() member 123 skcipher_request_set_tfm(&data->req, ctr); in crypto_gcm_setkey() 124 skcipher_request_set_callback(&data->req, CRYPTO_TFM_REQ_MAY_SLEEP | in crypto_gcm_setkey() 128 skcipher_request_set_crypt(&data->req, data->sg, data->sg, in crypto_gcm_setkey() 131 err = crypto_wait_req(crypto_skcipher_encrypt(&data->req), in crypto_gcm_setkey() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/sunxi/ |
D | clk-sunxi.c | 33 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 …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
D | user_sdma.c | 79 static int user_sdma_send_pkts(struct user_sdma_request *req, u16 maxpkts); 82 static void user_sdma_free_request(struct user_sdma_request *req); 83 static int check_header_template(struct user_sdma_request *req, 86 static int set_txreq_header(struct user_sdma_request *req, 88 static int set_txreq_header_ahg(struct user_sdma_request *req, 116 static int add_system_pages_to_sdma_packet(struct user_sdma_request *req, 351 struct user_sdma_request *req; in hfi1_user_sdma_process_request() local 358 if (iovec[idx].iov_len < sizeof(info) + sizeof(req->hdr)) { in hfi1_user_sdma_process_request() 363 iovec[idx].iov_len, sizeof(info) + sizeof(req->hdr)); in hfi1_user_sdma_process_request() 413 req = pq->reqs + info.comp_idx; in hfi1_user_sdma_process_request() [all …]
|
/kernel/linux/linux-5.10/drivers/s390/cio/ |
D | ccwreq.c | 43 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 …]
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/52xx/ |
D | mpc52xx_lpbfifo.c | 52 struct mpc52xx_lpbfifo_request *req; member 62 static void mpc52xx_lpbfifo_kick(struct mpc52xx_lpbfifo_request *req) in mpc52xx_lpbfifo_kick() argument 64 size_t transfer_size = req->size - req->pos; in mpc52xx_lpbfifo_kick() 70 int dma = !(req->flags & MPC52XX_LPBFIFO_FLAG_NO_DMA); in mpc52xx_lpbfifo_kick() 71 int write = req->flags & MPC52XX_LPBFIFO_FLAG_WRITE; in mpc52xx_lpbfifo_kick() 72 int poll_dma = req->flags & MPC52XX_LPBFIFO_FLAG_POLL_DMA; in mpc52xx_lpbfifo_kick() 95 data = req->data + req->pos; in mpc52xx_lpbfifo_kick() 149 bd->data[0] = req->data_phys + req->pos; in mpc52xx_lpbfifo_kick() 163 req->offset + req->pos); in mpc52xx_lpbfifo_kick() 166 bit_fields = req->cs << 24 | 0x000008; in mpc52xx_lpbfifo_kick() [all …]
|
/kernel/linux/linux-5.10/fs/hmdfs/comm/ |
D | message_verify.c | 291 struct open_request *req = msg; in verify_open_req() local 292 int str_len[] = { req->path_len }; in verify_open_req() 294 if (req->path_len < 0 || req->path_len >= PATH_MAX) in verify_open_req() 297 if (msg_len != sizeof(*req) + req->path_len + 1) in verify_open_req() 300 str_len[0] = req->path_len; in verify_open_req() 301 if (is_str_msg_valid(req->buf, str_len, sizeof(str_len) / sizeof(int))) in verify_open_req() 330 struct atomic_open_request *req = msg; in verify_atomic_open_req() local 331 int str_len[] = { req->path_len, req->file_len}; in verify_atomic_open_req() 333 if (req->path_len < 0 || req->path_len >= PATH_MAX || in verify_atomic_open_req() 334 req->file_len < 0 || req->file_len >= PATH_MAX) in verify_atomic_open_req() [all …]
|
/kernel/linux/linux-5.10/include/net/ |
D | request_sock.h | 33 struct request_sock *req); 35 struct request_sock *req); 38 void (*destructor)(struct request_sock *req); 39 void (*syn_ack_timeout)(const struct request_sock *req); 42 int inet_rtx_syn_ack(const struct sock *parent, struct request_sock *req); 80 static inline struct sock *req_to_sk(struct request_sock *req) in req_to_sk() argument 82 return (struct sock *)req; in req_to_sk() 89 struct request_sock *req; in reqsk_alloc() local 91 req = kmem_cache_alloc(ops->slab, GFP_ATOMIC | __GFP_NOWARN); in reqsk_alloc() 92 if (!req) in reqsk_alloc() [all …]
|
/kernel/linux/linux-5.10/drivers/crypto/inside-secure/ |
D | safexcel_hash.c | 68 static inline u64 safexcel_queued_len(struct safexcel_ahash_req *req) in safexcel_queued_len() argument 70 return req->len - req->processed; in safexcel_queued_len() 107 struct safexcel_ahash_req *req, in safexcel_context_control() argument 121 if (unlikely(req->digest == CONTEXT_CONTROL_DIGEST_XCM)) { in safexcel_context_control() 122 if (req->xcbcmac) in safexcel_context_control() 125 memcpy(ctx->base.ctxr->data, req->state, req->state_sz); in safexcel_context_control() 127 if (!req->finish && req->xcbcmac) in safexcel_context_control() 132 CONTEXT_CONTROL_SIZE(req->state_sz / in safexcel_context_control() 138 CONTEXT_CONTROL_SIZE(req->state_sz / in safexcel_context_control() 141 } else if (!req->processed) { in safexcel_context_control() [all …]
|
/kernel/linux/linux-5.10/drivers/macintosh/ |
D | via-macii.c | 93 static int macii_send_request(struct adb_request *req, int sync); 94 static int macii_write(struct adb_request *req); 188 static struct adb_request req; in macii_queue_poll() local 223 adb_request(&req, NULL, ADBREQ_NOSEND, 1, poll_command); in macii_queue_poll() 225 req.sent = 0; in macii_queue_poll() 226 req.complete = 0; in macii_queue_poll() 227 req.reply_len = 0; in macii_queue_poll() 228 req.next = current_req; in macii_queue_poll() 231 current_req = &req; in macii_queue_poll() 233 current_req = &req; in macii_queue_poll() [all …]
|
D | via-pmu.c | 199 static int pmu_send_request(struct adb_request *req, int sync); 231 int pmu_polled_request(struct adb_request *req); 584 struct adb_request req; in init_pmu() local 590 pmu_request(&req, NULL, 2, PMU_SET_INTR_MASK, pmu_intr_mask); in init_pmu() 592 while (!req.complete) { in init_pmu() 617 pmu_request(&req, NULL, 2, PMU_SYSTEM_READY, 2); in init_pmu() 618 while (!req.complete) in init_pmu() 623 pmu_request(&req, NULL, 1, PMU_GET_VERSION); in init_pmu() 624 pmu_wait_complete(&req); in init_pmu() 625 if (req.reply_len > 0) in init_pmu() [all …]
|
/kernel/linux/linux-5.10/include/media/ |
D | media-request.h | 87 media_request_lock_for_access(struct media_request *req) in media_request_lock_for_access() argument 92 spin_lock_irqsave(&req->lock, flags); in media_request_lock_for_access() 93 if (req->state == MEDIA_REQUEST_STATE_COMPLETE) { in media_request_lock_for_access() 94 req->access_count++; in media_request_lock_for_access() 97 spin_unlock_irqrestore(&req->lock, flags); in media_request_lock_for_access() 111 static inline void media_request_unlock_for_access(struct media_request *req) in media_request_unlock_for_access() argument 115 spin_lock_irqsave(&req->lock, flags); in media_request_unlock_for_access() 116 if (!WARN_ON(!req->access_count)) in media_request_unlock_for_access() 117 req->access_count--; in media_request_unlock_for_access() 118 spin_unlock_irqrestore(&req->lock, flags); in media_request_unlock_for_access() [all …]
|
/kernel/linux/linux-5.10/drivers/crypto/amcc/ |
D | crypto4xx_alg.c | 69 static inline int crypto4xx_crypt(struct skcipher_request *req, in crypto4xx_crypt() argument 73 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in crypto4xx_crypt() 77 if (check_blocksize && !IS_ALIGNED(req->cryptlen, AES_BLOCK_SIZE)) in crypto4xx_crypt() 81 crypto4xx_memcpy_to_le32(iv, req->iv, ivlen); in crypto4xx_crypt() 83 return crypto4xx_build_pd(&req->base, ctx, req->src, req->dst, in crypto4xx_crypt() 84 req->cryptlen, iv, ivlen, decrypt ? ctx->sa_in : ctx->sa_out, in crypto4xx_crypt() 88 int crypto4xx_encrypt_noiv_block(struct skcipher_request *req) in crypto4xx_encrypt_noiv_block() argument 90 return crypto4xx_crypt(req, 0, false, true); in crypto4xx_encrypt_noiv_block() 93 int crypto4xx_encrypt_iv_stream(struct skcipher_request *req) in crypto4xx_encrypt_iv_stream() argument 95 return crypto4xx_crypt(req, AES_IV_SIZE, false, false); in crypto4xx_encrypt_iv_stream() [all …]
|
/kernel/linux/linux-5.10/block/ |
D | blk-merge.c | 53 static inline bool req_gap_back_merge(struct request *req, struct bio *bio) in req_gap_back_merge() argument 55 return bio_will_gap(req->q, req, req->biotail, bio); in req_gap_back_merge() 58 static inline bool req_gap_front_merge(struct request *req, struct bio *bio) in req_gap_front_merge() argument 60 return bio_will_gap(req->q, NULL, bio, req->bio); in req_gap_front_merge() 555 static inline int ll_new_hw_segment(struct request *req, struct bio *bio, in ll_new_hw_segment() argument 558 if (!blk_cgroup_mergeable(req, bio)) in ll_new_hw_segment() 561 if (blk_integrity_merge_bio(req->q, req, bio) == false) in ll_new_hw_segment() 565 if (req_op(req) == REQ_OP_DISCARD) in ll_new_hw_segment() 568 if (req->nr_phys_segments + nr_phys_segs > blk_rq_get_max_segments(req)) in ll_new_hw_segment() 575 req->nr_phys_segments += nr_phys_segs; in ll_new_hw_segment() [all …]
|