Lines Matching full:variant

95 	clk_bulk_disable(vpu->variant->num_clocks, vpu->clocks);  in hantro_job_finish()
141 if (!ctx->is_encoder && !ctx->dev->variant->late_postproc) { in hantro_start_prepare_run()
153 if (!ctx->is_encoder && ctx->dev->variant->late_postproc) { in hantro_end_prepare_run()
182 ret = clk_bulk_enable(ctx->dev->variant->num_clocks, ctx->dev->clocks); in device_run()
556 allowed_codecs = vpu->variant->codec & HANTRO_ENCODERS; in hantro_open()
559 allowed_codecs = vpu->variant->codec & HANTRO_DECODERS; in hantro_open()
848 if (!vpu->variant->enc_fmts) in hantro_add_enc_func()
856 if (!vpu->variant->dec_fmts) in hantro_add_dec_func()
912 vpu->variant = match->data; in hantro_probe()
925 vpu->clocks = devm_kcalloc(&pdev->dev, vpu->variant->num_clocks, in hantro_probe()
930 if (vpu->variant->num_clocks > 1) { in hantro_probe()
931 for (i = 0; i < vpu->variant->num_clocks; i++) in hantro_probe()
932 vpu->clocks[i].id = vpu->variant->clk_names[i]; in hantro_probe()
934 ret = devm_clk_bulk_get(&pdev->dev, vpu->variant->num_clocks, in hantro_probe()
952 num_bases = vpu->variant->num_regs ?: 1; in hantro_probe()
959 res = vpu->variant->reg_names ? in hantro_probe()
961 vpu->variant->reg_names[i]) : in hantro_probe()
967 vpu->enc_base = vpu->reg_bases[0] + vpu->variant->enc_offset; in hantro_probe()
968 vpu->dec_base = vpu->reg_bases[0] + vpu->variant->dec_offset; in hantro_probe()
982 for (i = 0; i < vpu->variant->num_irqs; i++) { in hantro_probe()
986 if (!vpu->variant->irqs[i].handler) in hantro_probe()
989 if (vpu->variant->num_irqs > 1) { in hantro_probe()
990 irq_name = vpu->variant->irqs[i].name; in hantro_probe()
1004 vpu->variant->irqs[i].handler, 0, in hantro_probe()
1013 if (vpu->variant->init) { in hantro_probe()
1014 ret = vpu->variant->init(vpu); in hantro_probe()
1031 ret = clk_bulk_prepare(vpu->variant->num_clocks, vpu->clocks); in hantro_probe()
1089 clk_bulk_unprepare(vpu->variant->num_clocks, vpu->clocks); in hantro_probe()
1110 clk_bulk_unprepare(vpu->variant->num_clocks, vpu->clocks); in hantro_remove()
1122 if (vpu->variant->runtime_resume) in hantro_runtime_resume()
1123 return vpu->variant->runtime_resume(vpu); in hantro_runtime_resume()