/linux-master/drivers/media/platform/ti/vpe/ |
H A D | vpe.c | 430 static struct vpe_q_data *get_q_data(struct vpe_ctx *ctx, argument 436 return &ctx->q_data[Q_DATA_SRC]; 439 return &ctx->q_data[Q_DATA_DST]; 515 #define GET_OFFSET_TOP(ctx, obj, reg) \ 516 ((obj)->res->start - ctx->dev->res->start + reg) 518 #define VPE_SET_MMR_ADB_HDR(ctx, hdr, regs, offset_a) \ 519 VPDMA_SET_MMR_ADB_HDR(ctx->mmr_adb, vpe_mmr_adb, hdr, regs, offset_a) 523 static void init_adb_hdrs(struct vpe_ctx *ctx) argument 525 VPE_SET_MMR_ADB_HDR(ctx, out_fmt_hdr, out_fmt_reg, VPE_CLK_FORMAT_SELECT); 526 VPE_SET_MMR_ADB_HDR(ctx, us1_hd 547 realloc_mv_buffers(struct vpe_ctx *ctx, size_t size) argument 588 free_mv_buffers(struct vpe_ctx *ctx) argument 598 free_vbs(struct vpe_ctx *ctx) argument 655 set_us_coefficients(struct vpe_ctx *ctx) argument 683 set_cfg_modes(struct vpe_ctx *ctx) argument 708 set_line_modes(struct vpe_ctx *ctx) argument 747 set_src_registers(struct vpe_ctx *ctx) argument 756 set_dst_registers(struct vpe_ctx *ctx) argument 789 set_dei_regs(struct vpe_ctx *ctx) argument 821 set_dei_shadow_registers(struct vpe_ctx *ctx) argument 837 config_edi_input_mode(struct vpe_ctx *ctx, int mode) argument 858 set_srcdst_params(struct vpe_ctx *ctx) argument 931 struct vpe_ctx *ctx = priv; local 947 struct vpe_ctx *ctx = priv; local 1016 add_out_dtd(struct vpe_ctx *ctx, int port) argument 1081 add_in_dtd(struct vpe_ctx *ctx, int port) argument 1188 enable_irqs(struct vpe_ctx *ctx) argument 1197 disable_irqs(struct vpe_ctx *ctx) argument 1212 struct vpe_ctx *ctx = priv; local 1353 dei_error(struct vpe_ctx *ctx) argument 1359 ds1_uv_error(struct vpe_ctx *ctx) argument 1368 struct vpe_ctx *ctx; local 1565 struct vpe_ctx *ctx = file->private_data; local 1596 __vpe_try_fmt(struct vpe_ctx *ctx, struct v4l2_format *f, struct vpe_fmt *fmt, int type) argument 1722 struct vpe_ctx *ctx = file->private_data; local 1731 __vpe_s_fmt(struct vpe_ctx *ctx, struct v4l2_format *f) argument 1786 struct vpe_ctx *ctx = file->private_data; local 1804 __vpe_try_selection(struct vpe_ctx *ctx, struct v4l2_selection *s) argument 1874 struct vpe_ctx *ctx = file->private_data; local 1938 struct vpe_ctx *ctx = file->private_data; local 1973 struct vpe_ctx *ctx = local 2029 struct vpe_ctx *ctx = vb2_get_drv_priv(vq); local 2054 struct vpe_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local 2098 struct vpe_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local 2103 check_srcdst_sizes(struct vpe_ctx *ctx) argument 2124 vpe_return_all_buffers(struct vpe_ctx *ctx, struct vb2_queue *q, enum vb2_buffer_state state) argument 2179 struct vpe_ctx *ctx = vb2_get_drv_priv(q); local 2201 struct vpe_ctx *ctx = vb2_get_drv_priv(q); local 2222 struct vpe_ctx *ctx = priv; local 2274 struct vpe_ctx *ctx; local 2405 struct vpe_ctx *ctx = file->private_data; local [all...] |
/linux-master/arch/mips/pci/ |
H A D | pci-alchemy.c | 92 static void alchemy_pci_wired_entry(struct alchemy_pci_context *ctx) argument 94 ctx->wired_entry = read_c0_wired(); 95 add_wired_entry(0, 0, (unsigned long)ctx->pci_cfg_vm->addr, PM_4K); 96 ctx->last_elo0 = ctx->last_elo1 = ~0; 102 struct alchemy_pci_context *ctx = bus->sysdata; local 114 r = __raw_readl(ctx->regs + PCI_REG_STATCMD) & 0x0000ffff; 116 __raw_writel(r, ctx->regs + PCI_REG_STATCMD); 122 if (ctx->board_pci_idsel(device, 1) == 0) { 147 if ((entryLo0 != ctx 309 struct alchemy_pci_context *ctx = __alchemy_pci_ctx; local 331 struct alchemy_pci_context *ctx = __alchemy_pci_ctx; local 365 struct alchemy_pci_context *ctx; local 527 struct alchemy_pci_context *ctx = dev->sysdata; local [all...] |
/linux-master/drivers/gpu/drm/panel/ |
H A D | panel-samsung-s6e88a0-ams452ef01.c | 29 static void s6e88a0_ams452ef01_reset(struct s6e88a0_ams452ef01 *ctx) argument 31 gpiod_set_value_cansleep(ctx->reset_gpio, 1); 33 gpiod_set_value_cansleep(ctx->reset_gpio, 0); 35 gpiod_set_value_cansleep(ctx->reset_gpio, 1); 39 static int s6e88a0_ams452ef01_on(struct s6e88a0_ams452ef01 *ctx) argument 41 struct mipi_dsi_device *dsi = ctx->dsi; 85 static int s6e88a0_ams452ef01_off(struct s6e88a0_ams452ef01 *ctx) argument 87 struct mipi_dsi_device *dsi = ctx->dsi; 112 struct s6e88a0_ams452ef01 *ctx = to_s6e88a0_ams452ef01(panel); local 113 struct device *dev = &ctx 138 struct s6e88a0_ams452ef01 *ctx = to_s6e88a0_ams452ef01(panel); local 194 struct s6e88a0_ams452ef01 *ctx; local 241 struct s6e88a0_ams452ef01 *ctx = mipi_dsi_get_drvdata(dsi); local [all...] |
H A D | panel-orisetech-otm8009a.c | 111 static void otm8009a_dcs_write_buf(struct otm8009a *ctx, const void *data, argument 114 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); 117 dev_warn(ctx->dev, "mipi dsi dcs write buffer failed\n"); 120 #define dcs_write_seq(ctx, seq...) \ 123 otm8009a_dcs_write_buf(ctx, d, ARRAY_SIZE(d)); \ 126 #define dcs_write_cmd_at(ctx, cmd, seq...) \ 128 dcs_write_seq(ctx, MCS_ADRSFT, (cmd) & 0xFF); \ 129 dcs_write_seq(ctx, (cmd) >> 8, seq); \ 132 static int otm8009a_init_sequence(struct otm8009a *ctx) argument 134 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx 265 struct otm8009a *ctx = panel_to_otm8009a(panel); local 286 struct otm8009a *ctx = panel_to_otm8009a(panel); local 302 struct otm8009a *ctx = panel_to_otm8009a(panel); local 330 struct otm8009a *ctx = panel_to_otm8009a(panel); local 384 struct otm8009a *ctx = bl_get_data(bd); local 423 struct otm8009a *ctx; local 485 struct otm8009a *ctx = mipi_dsi_get_drvdata(dsi); local [all...] |
/linux-master/drivers/misc/ocxl/ |
H A D | afu_irq.c | 20 int ocxl_irq_offset_to_id(struct ocxl_context *ctx, u64 offset) argument 22 return (offset - ctx->afu->irq_base_offset) >> PAGE_SHIFT; 25 u64 ocxl_irq_id_to_offset(struct ocxl_context *ctx, int irq_id) argument 27 return ctx->afu->irq_base_offset + (irq_id << PAGE_SHIFT); 30 int ocxl_irq_set_handler(struct ocxl_context *ctx, int irq_id, argument 38 mutex_lock(&ctx->irq_lock); 39 irq = idr_find(&ctx->irq_idr, irq_id); 53 mutex_unlock(&ctx->irq_lock); 70 static int setup_afu_irq(struct ocxl_context *ctx, struct afu_irq *irq) argument 105 int ocxl_afu_irq_alloc(struct ocxl_context *ctx, in argument 154 afu_irq_free(struct afu_irq *irq, struct ocxl_context *ctx) argument 168 ocxl_afu_irq_free(struct ocxl_context *ctx, int irq_id) argument 186 ocxl_afu_irq_free_all(struct ocxl_context *ctx) argument 197 ocxl_afu_irq_get_addr(struct ocxl_context *ctx, int irq_id) argument [all...] |
/linux-master/drivers/auxdisplay/ |
H A D | img-ascii-lcd.c | 57 struct img_ascii_lcd_ctx *ctx = local 63 __raw_writeq(val, ctx->base); 66 __raw_writel(val, ctx->base); 68 __raw_writel(val, ctx->base + 4); 87 struct img_ascii_lcd_ctx *ctx = local 93 err = regmap_write(ctx->regmap, 94 ctx->offset + (i * 8), linedisp->buf[i]); 125 static int sead3_wait_sm_idle(struct img_ascii_lcd_ctx *ctx) argument 131 err = regmap_read(ctx->regmap, 132 ctx 142 sead3_wait_lcd_idle(struct img_ascii_lcd_ctx *ctx) argument 174 struct img_ascii_lcd_ctx *ctx = local 234 struct img_ascii_lcd_ctx *ctx; local 282 struct img_ascii_lcd_ctx *ctx = platform_get_drvdata(pdev); local [all...] |
/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | qat_asym_algs.c | 132 } ctx; member in struct:qat_asym_request 160 struct device *dev = &GET_DEV(req->ctx.dh->inst->accel_dev); 167 dma_unmap_single(dev, req->in.dh.in.b, req->ctx.dh->p_size, 172 areq->dst_len = req->ctx.dh->p_size; 173 dma_unmap_single(dev, req->out.dh.r, req->ctx.dh->p_size, 220 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); local 221 struct qat_crypto_instance *inst = ctx->inst; 231 if (unlikely(!ctx->xa)) 234 if (req->dst_len < ctx->p_size) { 235 req->dst_len = ctx 396 qat_dh_set_params(struct qat_dh_ctx *ctx, struct dh *params) argument 425 qat_dh_clear_ctx(struct device *dev, struct qat_dh_ctx *ctx) argument 449 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); local 482 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); local 489 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); local 506 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); local 648 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); local 782 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); local 929 qat_rsa_set_n(struct qat_rsa_ctx *ctx, const char *value, size_t vlen) argument 961 qat_rsa_set_e(struct qat_rsa_ctx *ctx, const char *value, size_t vlen) argument 986 qat_rsa_set_d(struct qat_rsa_ctx *ctx, const char *value, size_t vlen) argument 1023 qat_rsa_setkey_crt(struct qat_rsa_ctx *ctx, struct rsa_key *rsa_key) argument 1112 qat_rsa_clear_ctx(struct device *dev, struct qat_rsa_ctx *ctx) argument 1161 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); local 1219 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); local 1226 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); local 1242 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); local [all...] |
/linux-master/include/uapi/linux/ |
H A D | bpf.h | 2042 * long bpf_tail_call(void *ctx, struct bpf_map *prog_array_map, u32 index) 2057 * *ctx*, a pointer to the context. 2347 * long bpf_perf_event_output(void *ctx, struct bpf_map *map, u64 flags, void *data, u64 size) 2364 * The context of the program *ctx* needs also be passed to the 2409 * long bpf_get_stackid(void *ctx, struct bpf_map *map, u64 flags) 2412 * this, the helper needs *ctx*, which is a pointer to the context 2780 * u64 bpf_get_socket_cookie(struct bpf_sock_addr *ctx) 2787 * u64 bpf_get_socket_cookie(struct bpf_sock_ops *ctx) 3046 * long bpf_perf_prog_read_value(struct bpf_perf_event_data *ctx, struct bpf_perf_event_value *buf, u32 buf_size) 3049 * value of the event counter associated to *ctx* an [all...] |
/linux-master/tools/include/uapi/linux/ |
H A D | bpf.h | 2042 * long bpf_tail_call(void *ctx, struct bpf_map *prog_array_map, u32 index) 2057 * *ctx*, a pointer to the context. 2347 * long bpf_perf_event_output(void *ctx, struct bpf_map *map, u64 flags, void *data, u64 size) 2364 * The context of the program *ctx* needs also be passed to the 2409 * long bpf_get_stackid(void *ctx, struct bpf_map *map, u64 flags) 2412 * this, the helper needs *ctx*, which is a pointer to the context 2780 * u64 bpf_get_socket_cookie(struct bpf_sock_addr *ctx) 2787 * u64 bpf_get_socket_cookie(struct bpf_sock_ops *ctx) 3046 * long bpf_perf_prog_read_value(struct bpf_perf_event_data *ctx, struct bpf_perf_event_value *buf, u32 buf_size) 3049 * value of the event counter associated to *ctx* an [all...] |
/linux-master/drivers/media/platform/ |
H A D | m2m-deinterlace.c | 150 struct deinterlace_ctx *ctx = priv; local 151 struct deinterlace_dev *pcdev = ctx->dev; 153 if (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) > 0 && 154 v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx) > 0 && 155 !atomic_read(&ctx->dev->busy)) { 167 struct deinterlace_ctx *ctx = priv; local 168 struct deinterlace_dev *pcdev = ctx->dev; 170 ctx->aborting = 1; 174 v4l2_m2m_job_finish(pcdev->m2m_dev, ctx->fh.m2m_ctx); 202 static void deinterlace_issue_dma(struct deinterlace_ctx *ctx, in argument 353 struct deinterlace_ctx *ctx = priv; local 481 vidioc_g_fmt(struct deinterlace_ctx *ctx, struct v4l2_format *f) argument 543 struct deinterlace_ctx *ctx = priv; local 578 vidioc_s_fmt(struct deinterlace_ctx *ctx, struct v4l2_format *f) argument 642 struct deinterlace_ctx *ctx = priv; local 660 struct deinterlace_ctx *ctx = priv; local 735 struct deinterlace_ctx *ctx = vb2_get_drv_priv(vq); local 761 struct deinterlace_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local 782 struct deinterlace_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local 798 struct deinterlace_ctx *ctx = priv; local 844 struct deinterlace_ctx *ctx = NULL; local 881 struct deinterlace_ctx *ctx = file->private_data; local [all...] |
/linux-master/drivers/media/platform/mediatek/mdp/ |
H A D | mtk_mdp_regs.c | 48 void mtk_mdp_hw_set_input_addr(struct mtk_mdp_ctx *ctx, argument 51 struct mdp_buffer *src_buf = &ctx->vpu.vsi->src_buffer; 58 void mtk_mdp_hw_set_output_addr(struct mtk_mdp_ctx *ctx, argument 61 struct mdp_buffer *dst_buf = &ctx->vpu.vsi->dst_buffer; 68 void mtk_mdp_hw_set_in_size(struct mtk_mdp_ctx *ctx) argument 70 struct mtk_mdp_frame *frame = &ctx->s_frame; 71 struct mdp_config *config = &ctx->vpu.vsi->src_config; 88 void mtk_mdp_hw_set_in_image_format(struct mtk_mdp_ctx *ctx) argument 91 struct mtk_mdp_frame *frame = &ctx->s_frame; 92 struct mdp_config *config = &ctx 104 mtk_mdp_hw_set_out_size(struct mtk_mdp_ctx *ctx) argument 119 mtk_mdp_hw_set_out_image_format(struct mtk_mdp_ctx *ctx) argument 134 mtk_mdp_hw_set_rotation(struct mtk_mdp_ctx *ctx) argument 143 mtk_mdp_hw_set_global_alpha(struct mtk_mdp_ctx *ctx) argument [all...] |
H A D | mtk_mdp_m2m.c | 173 static const struct mtk_mdp_fmt *mtk_mdp_try_fmt_mplane(struct mtk_mdp_ctx *ctx, argument 176 struct mtk_mdp_dev *mdp = ctx->mdp_dev; 188 dev_dbg(&ctx->mdp_dev->pdev->dev, 197 pix_mp->colorspace = ctx->colorspace; 198 pix_mp->xfer_func = ctx->xfer_func; 199 pix_mp->ycbcr_enc = ctx->ycbcr_enc; 200 pix_mp->quantization = ctx->quant; 224 ctx->id, f->type, pix_mp->width, pix_mp->height, 237 mtk_mdp_dbg(1, "[%d] size change:%ux%u to %ux%u", ctx->id, 249 mtk_mdp_dbg(2, "[%d] p%d, bpl:%d, sizeimage:%u (%u)", ctx 256 mtk_mdp_ctx_get_frame(struct mtk_mdp_ctx *ctx, enum v4l2_buf_type type) argument 275 mtk_mdp_try_crop(struct mtk_mdp_ctx *ctx, u32 type, struct v4l2_rect *r) argument 361 mtk_mdp_ctx_state_lock_set(struct mtk_mdp_ctx *ctx, u32 state) argument 368 mtk_mdp_ctx_state_is_set(struct mtk_mdp_ctx *ctx, u32 mask) argument 391 struct mtk_mdp_ctx *ctx = q->drv_priv; local 402 mtk_mdp_m2m_buf_remove(struct mtk_mdp_ctx *ctx, enum v4l2_buf_type type) argument 413 struct mtk_mdp_ctx *ctx = q->drv_priv; local 426 mtk_mdp_prepare_addr(struct mtk_mdp_ctx *ctx, struct vb2_buffer *vb, struct mtk_mdp_frame *frame, struct mtk_mdp_addr *addr) argument 454 mtk_mdp_m2m_get_bufs(struct mtk_mdp_ctx *ctx) argument 474 struct mtk_mdp_ctx *ctx; local 496 struct mtk_mdp_ctx *ctx = local 535 struct mtk_mdp_ctx *ctx = priv; local 544 struct mtk_mdp_ctx *ctx = vb2_get_drv_priv(vq); local 560 struct mtk_mdp_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local 576 struct mtk_mdp_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local 594 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); local 632 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); local 671 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); local 681 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); local 727 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); local 735 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); local 774 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); local 841 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh); local 921 struct mtk_mdp_ctx *ctx = priv; local 955 struct mtk_mdp_ctx *ctx = ctrl_to_ctx(ctrl); local 995 mtk_mdp_ctrls_create(struct mtk_mdp_ctx *ctx) argument 1027 mtk_mdp_set_default_params(struct mtk_mdp_ctx *ctx) argument 1054 struct mtk_mdp_ctx *ctx = NULL; local 1142 struct mtk_mdp_ctx *ctx = fh_to_ctx(file->private_data); local [all...] |
/linux-master/drivers/crypto/hisilicon/hpre/ |
H A D | hpre_crypto.c | 63 typedef void (*hpre_cb)(struct hpre_ctx *ctx, void *sqe); 140 struct hpre_ctx *ctx; member in struct:hpre_asym_request 163 static int hpre_alloc_req_id(struct hpre_ctx *ctx) argument 168 spin_lock_irqsave(&ctx->req_lock, flags); 169 id = idr_alloc(&ctx->req_idr, NULL, 0, ctx->qp->sq_depth, GFP_ATOMIC); 170 spin_unlock_irqrestore(&ctx->req_lock, flags); 175 static void hpre_free_req_id(struct hpre_ctx *ctx, int req_id) argument 179 spin_lock_irqsave(&ctx->req_lock, flags); 180 idr_remove(&ctx 186 struct hpre_ctx *ctx; local 207 struct hpre_ctx *ctx = hpre_req->ctx; local 265 struct hpre_ctx *ctx = hpre_req->ctx; local 293 struct hpre_ctx *ctx = hpre_req->ctx; local 315 hpre_hw_data_clr_all(struct hpre_ctx *ctx, struct hpre_asym_request *req, struct scatterlist *dst, struct scatterlist *src) argument 349 hpre_alg_res_post_hf(struct hpre_ctx *ctx, struct hpre_sqe *sqe, void **kreq) argument 382 hpre_ctx_set(struct hpre_ctx *ctx, struct hisi_qp *qp, int qlen) argument 405 hpre_ctx_clear(struct hpre_ctx *ctx, bool is_clear_all) argument 435 hpre_dh_cb(struct hpre_ctx *ctx, void *resp) argument 456 hpre_rsa_cb(struct hpre_ctx *ctx, void *resp) argument 479 struct hpre_ctx *ctx = qp->qp_ctx; local 498 hpre_ctx_init(struct hpre_ctx *ctx, u8 type) argument 517 hpre_msg_request_set(struct hpre_ctx *ctx, void *req, bool is_rsa) argument 570 hpre_send(struct hpre_ctx *ctx, struct hpre_sqe *msg) argument 596 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 656 hpre_dh_set_params(struct hpre_ctx *ctx, struct dh *params) argument 695 hpre_dh_clear_ctx(struct hpre_ctx *ctx, bool is_clear_all) argument 721 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 747 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 754 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 763 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 799 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); local 847 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); local 899 hpre_rsa_set_n(struct hpre_ctx *ctx, const char *value, size_t vlen, bool private) argument 937 hpre_rsa_set_e(struct hpre_ctx *ctx, const char *value, size_t vlen) argument 952 hpre_rsa_set_d(struct hpre_ctx *ctx, const char *value, size_t vlen) argument 982 hpre_rsa_setkey_crt(struct hpre_ctx *ctx, struct rsa_key *rsa_key) argument 1040 hpre_rsa_clear_ctx(struct hpre_ctx *ctx, bool is_clear_all) argument 1087 hpre_rsa_setkey(struct hpre_ctx *ctx, const void *key, unsigned int keylen, bool private) argument 1137 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); local 1150 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); local 1162 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); local 1174 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); local 1195 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); local 1211 hpre_ecc_clear_ctx(struct hpre_ctx *ctx, bool is_clear_all, bool is_ecdh) argument 1273 hpre_ecdh_fill_curve(struct hpre_ctx *ctx, struct ecdh *params, unsigned int cur_sz) argument 1325 hpre_ecdh_set_param(struct hpre_ctx *ctx, struct ecdh *params) argument 1374 ecdh_gen_privkey(struct hpre_ctx *ctx, struct ecdh *params) argument 1397 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 1444 hpre_ecdh_hw_data_clr_all(struct hpre_ctx *ctx, struct hpre_asym_request *req, struct scatterlist *dst, struct scatterlist *src) argument 1470 hpre_ecdh_cb(struct hpre_ctx *ctx, void *resp) argument 1498 hpre_ecdh_msg_request_set(struct hpre_ctx *ctx, struct kpp_request *req) argument 1537 struct hpre_ctx *ctx = hpre_req->ctx; local 1567 struct hpre_ctx *ctx = hpre_req->ctx; local 1590 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 1632 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 1640 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 1651 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 1662 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 1673 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 1678 hpre_curve25519_fill_curve(struct hpre_ctx *ctx, const void *buf, unsigned int len) argument 1709 hpre_curve25519_set_param(struct hpre_ctx *ctx, const void *buf, unsigned int len) argument 1736 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 1760 hpre_curve25519_hw_data_clr_all(struct hpre_ctx *ctx, struct hpre_asym_request *req, struct scatterlist *dst, struct scatterlist *src) argument 1786 hpre_curve25519_cb(struct hpre_ctx *ctx, void *resp) argument 1810 hpre_curve25519_msg_request_set(struct hpre_ctx *ctx, struct kpp_request *req) argument 1860 struct hpre_ctx *ctx = hpre_req->ctx; local 1919 struct hpre_ctx *ctx = hpre_req->ctx; local 1942 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 1985 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 1992 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local 2001 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); local [all...] |
/linux-master/tools/testing/selftests/bpf/map_tests/ |
H A D | task_storage_map.c | 29 struct lookup_ctx *ctx = arg; local 33 while (!ctx->start) 36 while (!ctx->stop && i++ < ctx->loop) 37 bpf_map_lookup_elem(ctx->map_fd, &ctx->pid_fd, &value); 41 static void abort_lookup(struct lookup_ctx *ctx, pthread_t *tids, unsigned int nr) argument 45 ctx->stop = true; 46 ctx->start = true; 57 struct lookup_ctx ctx; local [all...] |
/linux-master/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | mtk_vcodec_enc_drv.h | 17 #define MTK_ENC_CTX_IS_EXT(ctx) ((ctx)->dev->venc_pdata->uses_ext) 18 #define MTK_ENC_IOVA_IS_34BIT(ctx) ((ctx)->dev->venc_pdata->uses_34bit) 230 wake_up_enc_ctx(struct mtk_vcodec_enc_ctx *ctx, unsigned int reason, unsigned int hw_id) argument 232 ctx->int_cond[hw_id] = 1; 233 ctx->int_type[hw_id] = reason; 234 wake_up_interruptible(&ctx->queue[hw_id]); 237 #define mtk_venc_err(ctx, fmt, args...) \ 238 mtk_vcodec_err((ctx) [all...] |
/linux-master/drivers/media/platform/verisilicon/ |
H A D | hantro_postproc.c | 55 bool hantro_needs_postproc(const struct hantro_ctx *ctx, argument 58 if (ctx->is_encoder) 61 if (ctx->need_postproc) 67 static void hantro_postproc_g1_enable(struct hantro_ctx *ctx) argument 69 struct hantro_dev *vpu = ctx->dev; 79 switch (ctx->vpu_dst_fmt->fourcc) { 85 ctx->vpu_dst_fmt->fourcc); 90 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); 98 HANTRO_PP_REG_WRITE(vpu, input_width, MB_WIDTH(ctx->dst_fmt.width)); 99 HANTRO_PP_REG_WRITE(vpu, input_height, MB_HEIGHT(ctx 108 down_scale_factor(struct hantro_ctx *ctx) argument 116 hantro_postproc_g2_enable(struct hantro_ctx *ctx) argument 157 hantro_postproc_g2_enum_framesizes(struct hantro_ctx *ctx, struct v4l2_frmsizeenum *fsize) argument 177 hantro_postproc_free(struct hantro_ctx *ctx) argument 195 hantro_postproc_buffer_size(struct hantro_ctx *ctx) argument 226 hantro_postproc_alloc(struct hantro_ctx *ctx, int index) argument 249 hantro_postproc_init(struct hantro_ctx *ctx) argument 267 hantro_postproc_get_dec_buf_addr(struct hantro_ctx *ctx, int index) argument 294 hantro_postproc_g1_disable(struct hantro_ctx *ctx) argument 301 hantro_postproc_g2_disable(struct hantro_ctx *ctx) argument 308 hantro_postproc_disable(struct hantro_ctx *ctx) argument 316 hantro_postproc_enable(struct hantro_ctx *ctx) argument 324 hanto_postproc_enum_framesizes(struct hantro_ctx *ctx, struct v4l2_frmsizeenum *fsize) argument [all...] |
/linux-master/sound/soc/intel/atom/sst/ |
H A D | sst_drv_interface.c | 40 int free_stream_context(struct intel_sst_drv *ctx, unsigned int str_id) argument 45 stream = get_stream_info(ctx, str_id); 48 ret = sst_free_stream(ctx, str_id); 50 sst_clean_stream(&ctx->streams[str_id]); 53 dev_err(ctx->dev, "we tried to free stream context %d which was freed!!!\n", str_id); 58 int sst_get_stream_allocated(struct intel_sst_drv *ctx, argument 64 retval = ctx->ops->alloc_stream(ctx, str_param); 66 dev_dbg(ctx->dev, "Stream allocated %d\n", retval); 114 int sst_get_stream(struct intel_sst_drv *ctx, argument 134 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 174 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 193 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 219 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 245 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 274 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 293 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 301 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 309 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 321 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 328 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 336 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 346 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 433 sst_cdev_fragment_elapsed(struct intel_sst_drv *ctx, int str_id) argument 456 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 477 sst_calc_tstamp(struct intel_sst_drv *ctx, struct pcm_stream_info *info, struct snd_pcm_substream *substream, struct snd_sst_tstamp *fw_tstamp) argument 517 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 540 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 557 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 573 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 588 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 603 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local 641 struct intel_sst_drv *ctx = dev_get_drvdata(dev); local [all...] |
/linux-master/drivers/gpu/drm/bridge/ |
H A D | ti-sn65dsi83.c | 248 struct sn65dsi83 *ctx = bridge_to_sn65dsi83(bridge); local 250 return drm_bridge_attach(bridge->encoder, ctx->panel_bridge, 251 &ctx->bridge, flags); 256 struct sn65dsi83 *ctx = bridge_to_sn65dsi83(bridge); local 258 if (!ctx->dsi) 261 ctx->dsi = NULL; 264 static u8 sn65dsi83_get_lvds_range(struct sn65dsi83 *ctx, argument 283 if (ctx->lvds_dual_link) 289 static u8 sn65dsi83_get_dsi_range(struct sn65dsi83 *ctx, argument 307 mipi_dsi_pixel_format_to_bpp(ctx 311 sn65dsi83_get_dsi_div(struct sn65dsi83 *ctx) argument 327 struct sn65dsi83 *ctx = bridge_to_sn65dsi83(bridge); local 495 struct sn65dsi83 *ctx = bridge_to_sn65dsi83(bridge); local 512 struct sn65dsi83 *ctx = bridge_to_sn65dsi83(bridge); local 580 sn65dsi83_parse_dt(struct sn65dsi83 *ctx, enum sn65dsi83_model model) argument 622 sn65dsi83_host_attach(struct sn65dsi83 *ctx) argument 676 struct sn65dsi83 *ctx; local 731 struct sn65dsi83 *ctx = i2c_get_clientdata(client); local [all...] |
H A D | lontium-lt9211.c | 104 struct lt9211 *ctx = bridge_to_lt9211(bridge); local 106 return drm_bridge_attach(bridge->encoder, ctx->panel_bridge, 107 &ctx->bridge, flags); 110 static int lt9211_read_chipid(struct lt9211 *ctx) argument 116 ret = regmap_bulk_read(ctx->regmap, REG_CHIPID0, chipid, 3); 118 dev_err(ctx->dev, "Failed to read Chip ID: %d\n", ret); 125 dev_err(ctx->dev, "Unknown Chip ID: 0x%02x 0x%02x 0x%02x\n", 133 static int lt9211_system_init(struct lt9211 *ctx) argument 148 return regmap_multi_reg_write(ctx->regmap, lt9211_system_init_seq, 152 static int lt9211_configure_rx(struct lt9211 *ctx) argument 218 lt9211_autodetect_rx(struct lt9211 *ctx, const struct drm_display_mode *mode) argument 283 lt9211_configure_timing(struct lt9211 *ctx, const struct drm_display_mode *mode) argument 307 lt9211_configure_plls(struct lt9211 *ctx, const struct drm_display_mode *mode) argument 368 lt9211_configure_tx(struct lt9211 *ctx, bool jeida, bool bpp24, bool de) argument 460 struct lt9211 *ctx = bridge_to_lt9211(bridge); local 558 struct lt9211 *ctx = bridge_to_lt9211(bridge); local 626 lt9211_parse_dt(struct lt9211 *ctx) argument 673 lt9211_host_attach(struct lt9211 *ctx) argument 727 struct lt9211 *ctx; local 771 struct lt9211 *ctx = i2c_get_clientdata(client); local [all...] |
/linux-master/tools/testing/selftests/bpf/benchs/ |
H A D | bench_bpf_hashmap_full_update.c | 9 static struct ctx { struct 11 } ctx; variable in typeref:struct:ctx 44 ctx.skel = bpf_hashmap_full_update_bench__open_and_load(); 45 if (!ctx.skel) { 50 ctx.skel->bss->nr_loops = MAX_LOOP_NUM; 52 link = bpf_program__attach(ctx.skel->progs.benchmark); 59 map_fd = bpf_map__fd(ctx.skel->maps.hash_map_bench); 60 max_entries = bpf_map__max_entries(ctx.skel->maps.hash_map_bench); 71 u64 time = ctx.skel->bss->percpu_time[i]; 77 i, ctx [all...] |
/linux-master/include/linux/ |
H A D | eventfd.h | 34 void eventfd_ctx_put(struct eventfd_ctx *ctx); 38 void eventfd_signal_mask(struct eventfd_ctx *ctx, __poll_t mask); 39 int eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, wait_queue_entry_t *wait, 41 void eventfd_ctx_do_read(struct eventfd_ctx *ctx, __u64 *cnt); 60 static inline void eventfd_signal_mask(struct eventfd_ctx *ctx, __poll_t mask) argument 64 static inline void eventfd_ctx_put(struct eventfd_ctx *ctx) argument 69 static inline int eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, argument 80 static inline void eventfd_ctx_do_read(struct eventfd_ctx *ctx, __u64 *cnt) argument 87 static inline void eventfd_signal(struct eventfd_ctx *ctx) argument 89 eventfd_signal_mask(ctx, [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | exceptions_fail.c | 55 int reject_exception_cb_type_1(struct __sk_buff *ctx) 64 int reject_exception_cb_type_2(struct __sk_buff *ctx) 73 int reject_exception_cb_type_3(struct __sk_buff *ctx) 82 int reject_exception_cb_type_4(struct __sk_buff *ctx) 97 int reject_async_callback_throw(struct __sk_buff *ctx) argument 107 __noinline static int subprog_lock(struct __sk_buff *ctx) argument 112 if (ctx->len) 119 int reject_with_lock(void *ctx) argument 128 int reject_subprog_with_lock(void *ctx) argument 130 return subprog_lock(ctx); 135 reject_with_rcu_read_lock(void *ctx) argument 142 throwing_subprog(struct __sk_buff *ctx) argument 151 reject_subprog_with_rcu_read_lock(void *ctx) argument 165 reject_with_rbtree_add_throw(void *ctx) argument 180 reject_with_reference(void *ctx) argument 191 subprog_ref(struct __sk_buff *ctx) argument 202 subprog_cb_ref(u32 i, void *ctx) argument 210 reject_with_cb_reference(void *ctx) argument 224 reject_with_cb(void *ctx) argument 232 reject_with_subprog_reference(void *ctx) argument 253 static_func(struct __sk_buff *ctx) argument 258 global_func(struct __sk_buff *ctx) argument 312 reject_set_exception_cb_bad_ret2(void *ctx) argument 318 loop_cb1(u32 index, int *ctx) argument 324 loop_cb2(u32 index, int *ctx) argument 332 reject_exception_throw_cb(struct __sk_buff *ctx) argument 340 reject_exception_throw_cb_diff(struct __sk_buff *ctx) argument [all...] |
H A D | trigger_bench.c | 15 int bench_trigger_tp(void *ctx) argument 30 int bench_trigger_kprobe(void *ctx) argument 37 int bench_trigger_kretprobe(void *ctx) argument 44 int bench_trigger_kprobe_multi(void *ctx) argument 51 int bench_trigger_kretprobe_multi(void *ctx) argument 58 int bench_trigger_fentry(void *ctx) argument 65 int bench_trigger_fexit(void *ctx) argument 72 int bench_trigger_fentry_sleep(void *ctx) argument 79 int bench_trigger_fmodret(void *ctx) argument 86 int bench_trigger_uprobe(void *ctx) argument [all...] |
/linux-master/drivers/media/platform/mediatek/mdp3/ |
H A D | mtk-mdp3-m2m.c | 23 static inline struct mdp_frame *ctx_get_frame(struct mdp_m2m_ctx *ctx, argument 27 return &ctx->curr_param.output; 29 return &ctx->curr_param.captures[0]; 32 static inline void mdp_m2m_ctx_set_state(struct mdp_m2m_ctx *ctx, u32 state) argument 34 atomic_or(state, &ctx->curr_param.state); 37 static inline bool mdp_m2m_ctx_is_state_set(struct mdp_m2m_ctx *ctx, u32 mask) argument 39 return ((atomic_read(&ctx->curr_param.state) & mask) == mask); 44 struct mdp_m2m_ctx *ctx = priv; local 48 v4l2_m2m_src_buf_remove(ctx->m2m_ctx); 50 v4l2_m2m_dst_buf_remove(ctx 63 struct mdp_m2m_ctx *ctx = priv; local 134 struct mdp_m2m_ctx *ctx = vb2_get_drv_priv(q); local 179 mdp_m2m_buf_remove(struct mdp_m2m_ctx *ctx, unsigned int type) argument 192 struct mdp_m2m_ctx *ctx = vb2_get_drv_priv(q); local 207 struct mdp_m2m_ctx *ctx = vb2_get_drv_priv(q); local 231 struct mdp_m2m_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local 259 struct mdp_m2m_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local 290 struct mdp_m2m_ctx *ctx = fh_to_ctx(fh); local 298 struct mdp_m2m_ctx *ctx = fh_to_ctx(fh); local 316 struct mdp_m2m_ctx *ctx = fh_to_ctx(fh); local 359 struct mdp_m2m_ctx *ctx = fh_to_ctx(fh); local 370 struct mdp_m2m_ctx *ctx = fh_to_ctx(fh); local 422 struct mdp_m2m_ctx *ctx = fh_to_ctx(fh); local 484 struct mdp_m2m_ctx *ctx = priv; local 516 struct mdp_m2m_ctx *ctx = ctrl_to_ctx(ctrl); local 539 mdp_m2m_ctrls_create(struct mdp_m2m_ctx *ctx) argument 567 struct mdp_m2m_ctx *ctx; local 648 struct mdp_m2m_ctx *ctx = fh_to_ctx(file->private_data); local 736 mdp_m2m_job_finish(struct mdp_m2m_ctx *ctx) argument [all...] |
/linux-master/crypto/ |
H A D | aria_generic.c | 27 static void aria_set_encrypt_key(struct aria_ctx *ctx, const u8 *in_key, argument 106 aria_gsrk(ctx->enc_key[rkidx], w0, w1, 19); 108 aria_gsrk(ctx->enc_key[rkidx], w1, w2, 19); 110 aria_gsrk(ctx->enc_key[rkidx], w2, w3, 19); 112 aria_gsrk(ctx->enc_key[rkidx], w3, w0, 19); 115 aria_gsrk(ctx->enc_key[rkidx], w0, w1, 31); 117 aria_gsrk(ctx->enc_key[rkidx], w1, w2, 31); 119 aria_gsrk(ctx->enc_key[rkidx], w2, w3, 31); 121 aria_gsrk(ctx->enc_key[rkidx], w3, w0, 31); 124 aria_gsrk(ctx 150 aria_set_decrypt_key(struct aria_ctx *ctx) argument 176 struct aria_ctx *ctx = crypto_tfm_ctx(tfm); local 195 __aria_crypt(struct aria_ctx *ctx, u8 *out, const u8 *in, u32 key[][ARIA_RD_KEY_WORDS]) argument 252 struct aria_ctx *ctx = (struct aria_ctx *)_ctx; local 260 struct aria_ctx *ctx = (struct aria_ctx *)_ctx; local 268 struct aria_ctx *ctx = crypto_tfm_ctx(tfm); local 275 struct aria_ctx *ctx = crypto_tfm_ctx(tfm); local [all...] |