Lines Matching refs:p

39     HalH265dCtx *p = (HalH265dCtx *)ctx;  in hal_h265d_init()  local
59 p->hw_info = cfg->hw_info; in hal_h265d_init()
62 p->dev = cfg->dev; in hal_h265d_init()
63 p->is_v341 = (soc == ROCKCHIP_SOC_RK3228H || (soc == ROCKCHIP_SOC_RK3328)); in hal_h265d_init()
64 p->is_v345 = (hw_id == HWID_VDPU345); in hal_h265d_init()
65 p->is_v34x = (hw_id == HWID_VDPU34X || hw_id == HWID_VDPU38X); in hal_h265d_init()
66 p->is_v383 = (hw_id == HWID_VDPU383); in hal_h265d_init()
67 p->is_v384a = (hw_id == HWID_VDPU384A); in hal_h265d_init()
68 p->client_type = client_type; in hal_h265d_init()
71 p->api = &hal_h265d_vdpu382; in hal_h265d_init()
72 else if (p->is_v34x) in hal_h265d_init()
73 p->api = &hal_h265d_vdpu34x; in hal_h265d_init()
74 else if (p->is_v383) in hal_h265d_init()
75 p->api = &hal_h265d_vdpu383; in hal_h265d_init()
76 else if (p->is_v384a) in hal_h265d_init()
77 p->api = &hal_h265d_vdpu384a; in hal_h265d_init()
79 p->api = &hal_h265d_rkv; in hal_h265d_init()
83 p->cfg = cfg->cfg; in hal_h265d_init()
84 p->slots = cfg->frame_slots; in hal_h265d_init()
85 p->dec_cb = cfg->dec_cb; in hal_h265d_init()
86 p->fast_mode = cfg->cfg->base.fast_parse; in hal_h265d_init()
87 p->packet_slots = cfg->packet_slots; in hal_h265d_init()
91 ret = p->api->init(ctx, cfg); in hal_h265d_init()
99 HalH265dCtx *p = (HalH265dCtx *)ctx; in hal_h265d_deinit() local
101 if (p && p->api && p->api->deinit) in hal_h265d_deinit()
102 ret = p->api->deinit(ctx); in hal_h265d_deinit()
104 if (p->dev) { in hal_h265d_deinit()
105 mpp_dev_deinit(p->dev); in hal_h265d_deinit()
106 p->dev = NULL; in hal_h265d_deinit()
115 HalH265dCtx *p = (HalH265dCtx *)ctx; in hal_h265d_gen_regs() local
117 if (p && p->api && p->api->reg_gen) in hal_h265d_gen_regs()
118 ret = p->api->reg_gen(ctx, task); in hal_h265d_gen_regs()
126 HalH265dCtx *p = (HalH265dCtx *)ctx; in hal_h265d_start() local
128 if (p && p->api && p->api->start) in hal_h265d_start()
129 ret = p->api->start(ctx, task); in hal_h265d_start()
137 HalH265dCtx *p = (HalH265dCtx *)ctx; in hal_h265d_wait() local
139 if (p && p->api && p->api->wait) in hal_h265d_wait()
140 ret = p->api->wait(ctx, task); in hal_h265d_wait()
148 HalH265dCtx *p = (HalH265dCtx *)ctx; in hal_h265d_reset() local
150 if (p && p->api && p->api->reset) in hal_h265d_reset()
151 ret = p->api->reset(ctx); in hal_h265d_reset()
159 HalH265dCtx *p = (HalH265dCtx *)ctx; in hal_h265d_flush() local
161 if (p && p->api && p->api->flush) in hal_h265d_flush()
162 ret = p->api->flush(ctx); in hal_h265d_flush()
170 HalH265dCtx *p = (HalH265dCtx *)ctx; in hal_h265d_control() local
172 if (p && p->api && p->api->control) in hal_h265d_control()
173 ret = p->api->control(ctx, cmd, param); in hal_h265d_control()