Lines Matching refs:pctx
171 static bool delta_mjpeg_check_status(struct delta_ctx *pctx, in delta_mjpeg_check_status() argument
174 struct delta_dev *delta = pctx->dev; in delta_mjpeg_check_status()
183 pctx->name, pctx->decoded_frames, in delta_mjpeg_check_status()
185 pctx->stream_errors++; in delta_mjpeg_check_status()
189 pctx->name, pctx->decoded_frames, in delta_mjpeg_check_status()
191 pctx->decode_errors++; in delta_mjpeg_check_status()
197 "%s firmware: decoding time(us)=%d\n", pctx->name, in delta_mjpeg_check_status()
203 static int delta_mjpeg_ipc_open(struct delta_ctx *pctx) in delta_mjpeg_ipc_open() argument
205 struct delta_dev *delta = pctx->dev; in delta_mjpeg_ipc_open()
206 struct delta_mjpeg_ctx *ctx = to_ctx(pctx); in delta_mjpeg_ipc_open()
220 "%s %s\n", pctx->name, in delta_mjpeg_ipc_open()
227 ret = delta_ipc_open(pctx, "JPEG_DECODER_HW0", &ipc_param, in delta_mjpeg_ipc_open()
231 "%s dumping command %s\n", pctx->name, in delta_mjpeg_ipc_open()
242 static int delta_mjpeg_ipc_decode(struct delta_ctx *pctx, struct delta_au *au) in delta_mjpeg_ipc_decode() argument
244 struct delta_dev *delta = pctx->dev; in delta_mjpeg_ipc_decode()
245 struct delta_mjpeg_ctx *ctx = to_ctx(pctx); in delta_mjpeg_ipc_decode()
253 ret = delta_get_free_frame(pctx, &frame); in delta_mjpeg_ipc_decode()
284 "%s %s\n", pctx->name, in delta_mjpeg_ipc_decode()
298 "%s dumping command %s\n", pctx->name, in delta_mjpeg_ipc_decode()
304 pctx->decoded_frames++; in delta_mjpeg_ipc_decode()
307 if (delta_mjpeg_check_status(pctx, status)) { in delta_mjpeg_ipc_decode()
309 "%s dumping command %s\n", pctx->name, in delta_mjpeg_ipc_decode()
323 static int delta_mjpeg_open(struct delta_ctx *pctx) in delta_mjpeg_open() argument
330 pctx->priv = ctx; in delta_mjpeg_open()
335 static int delta_mjpeg_close(struct delta_ctx *pctx) in delta_mjpeg_close() argument
337 struct delta_mjpeg_ctx *ctx = to_ctx(pctx); in delta_mjpeg_close()
349 static int delta_mjpeg_get_streaminfo(struct delta_ctx *pctx, in delta_mjpeg_get_streaminfo() argument
352 struct delta_mjpeg_ctx *ctx = to_ctx(pctx); in delta_mjpeg_get_streaminfo()
372 static int delta_mjpeg_decode(struct delta_ctx *pctx, struct delta_au *pau) in delta_mjpeg_decode() argument
374 struct delta_dev *delta = pctx->dev; in delta_mjpeg_decode()
375 struct delta_mjpeg_ctx *ctx = to_ctx(pctx); in delta_mjpeg_decode()
382 ret = delta_mjpeg_read_header(pctx, au.vaddr, au.size, in delta_mjpeg_decode()
385 pctx->stream_errors++; in delta_mjpeg_decode()
392 pctx->name, in delta_mjpeg_decode()
403 ret = delta_mjpeg_ipc_open(pctx); in delta_mjpeg_decode()
408 ret = delta_mjpeg_read_header(pctx, au.vaddr, au.size, in delta_mjpeg_decode()
411 pctx->stream_errors++; in delta_mjpeg_decode()
418 ret = delta_mjpeg_ipc_decode(pctx, &au); in delta_mjpeg_decode()
429 static int delta_mjpeg_get_frame(struct delta_ctx *pctx, in delta_mjpeg_get_frame() argument
432 struct delta_mjpeg_ctx *ctx = to_ctx(pctx); in delta_mjpeg_get_frame()