Lines Matching refs:mpp_req
171 MppReqV1 mpp_req; in vdpp_init() local
190 mpp_req.cmd = MPP_CMD_INIT_CLIENT_TYPE; in vdpp_init()
191 mpp_req.flag = 0; in vdpp_init()
192 mpp_req.size = sizeof(client_data); in vdpp_init()
193 mpp_req.data_ptr = REQ_DATA_PTR(&client_data); in vdpp_init()
199 ret = (RK_S32)ioctl(ctx->fd, MPP_IOC_CFG_V1, &mpp_req); in vdpp_init()
315 MppReqV1 mpp_req[9]; in vdpp_start() local
337 memset(mpp_req, 0, sizeof(mpp_req)); in vdpp_start()
342 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_WRITE; in vdpp_start()
343 mpp_req[req_cnt].flag = MPP_FLAGS_MULTI_MSG; in vdpp_start()
344 mpp_req[req_cnt].size = sizeof(zme->yrgb_hor_coe); in vdpp_start()
345 mpp_req[req_cnt].offset = VDPP_REG_OFF_YRGB_HOR_COE; in vdpp_start()
346 mpp_req[req_cnt].data_ptr = REQ_DATA_PTR(&zme->yrgb_hor_coe); in vdpp_start()
349 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_WRITE; in vdpp_start()
350 mpp_req[req_cnt].flag = MPP_FLAGS_MULTI_MSG; in vdpp_start()
351 mpp_req[req_cnt].size = sizeof(zme->yrgb_ver_coe); in vdpp_start()
352 mpp_req[req_cnt].offset = VDPP_REG_OFF_YRGB_VER_COE; in vdpp_start()
353 mpp_req[req_cnt].data_ptr = REQ_DATA_PTR(&zme->yrgb_ver_coe); in vdpp_start()
356 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_WRITE; in vdpp_start()
357 mpp_req[req_cnt].flag = MPP_FLAGS_MULTI_MSG; in vdpp_start()
358 mpp_req[req_cnt].size = sizeof(zme->cbcr_hor_coe); in vdpp_start()
359 mpp_req[req_cnt].offset = VDPP_REG_OFF_CBCR_HOR_COE; in vdpp_start()
360 mpp_req[req_cnt].data_ptr = REQ_DATA_PTR(&zme->cbcr_hor_coe); in vdpp_start()
363 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_WRITE; in vdpp_start()
364 mpp_req[req_cnt].flag = MPP_FLAGS_MULTI_MSG; in vdpp_start()
365 mpp_req[req_cnt].size = sizeof(zme->cbcr_ver_coe); in vdpp_start()
366 mpp_req[req_cnt].offset = VDPP_REG_OFF_CBCR_VER_COE; in vdpp_start()
367 mpp_req[req_cnt].data_ptr = REQ_DATA_PTR(&zme->cbcr_ver_coe); in vdpp_start()
370 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_WRITE; in vdpp_start()
371 mpp_req[req_cnt].flag = MPP_FLAGS_MULTI_MSG; in vdpp_start()
372 mpp_req[req_cnt].size = sizeof(zme->common); in vdpp_start()
373 mpp_req[req_cnt].offset = VDPP_REG_OFF_ZME_COMMON; in vdpp_start()
374 mpp_req[req_cnt].data_ptr = REQ_DATA_PTR(&zme->common); in vdpp_start()
377 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_WRITE; in vdpp_start()
378 mpp_req[req_cnt].flag = MPP_FLAGS_MULTI_MSG; in vdpp_start()
379 mpp_req[req_cnt].size = sizeof(ctx->dmsr); in vdpp_start()
380 mpp_req[req_cnt].offset = VDPP_REG_OFF_DMSR; in vdpp_start()
381 mpp_req[req_cnt].data_ptr = REQ_DATA_PTR(&ctx->dmsr); in vdpp_start()
389 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_ADDR_OFFSET; in vdpp_start()
390 mpp_req[req_cnt].flag = MPP_FLAGS_MULTI_MSG | MPP_FLAGS_REG_OFFSET_ALONE; in vdpp_start()
391 mpp_req[req_cnt].size = sizeof(reg_off); in vdpp_start()
392 mpp_req[req_cnt].offset = 0; in vdpp_start()
393 mpp_req[req_cnt].data_ptr = REQ_DATA_PTR(reg_off); in vdpp_start()
396 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_WRITE; in vdpp_start()
397 mpp_req[req_cnt].flag = MPP_FLAGS_MULTI_MSG; in vdpp_start()
398 mpp_req[req_cnt].size = sizeof(reg->common); in vdpp_start()
399 mpp_req[req_cnt].offset = 0; in vdpp_start()
400 mpp_req[req_cnt].data_ptr = REQ_DATA_PTR(®->common); in vdpp_start()
403 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_READ; in vdpp_start()
404 mpp_req[req_cnt].flag = MPP_FLAGS_MULTI_MSG | MPP_FLAGS_LAST_MSG; in vdpp_start()
405 mpp_req[req_cnt].size = sizeof(reg->common); in vdpp_start()
406 mpp_req[req_cnt].offset = 0; in vdpp_start()
407 mpp_req[req_cnt].data_ptr = REQ_DATA_PTR(®->common); in vdpp_start()
409 ret = (RK_S32)ioctl(ctx->fd, MPP_IOC_CFG_V1, &mpp_req[0]); in vdpp_start()
423 MppReqV1 mpp_req; in vdpp_wait() local
430 memset(&mpp_req, 0, sizeof(mpp_req)); in vdpp_wait()
431 mpp_req.cmd = MPP_CMD_POLL_HW_FINISH; in vdpp_wait()
432 mpp_req.flag |= MPP_FLAGS_LAST_MSG; in vdpp_wait()
434 ret = (RK_S32)ioctl(ctx->fd, MPP_IOC_CFG_V1, &mpp_req); in vdpp_wait()