Lines Matching refs:fd
58 RK_S32 mpp_service_ioctl(RK_S32 fd, RK_U32 cmd, RK_U32 size, void *param) in mpp_service_ioctl() argument
70 return (RK_S32)ioctl(fd, MPP_IOC_CFG_V1, &mpp_req); in mpp_service_ioctl()
73 RK_S32 mpp_service_ioctl_request(RK_S32 fd, MppReqV1 *req) in mpp_service_ioctl_request() argument
75 return (RK_S32)ioctl(fd, MPP_IOC_CFG_V1, req); in mpp_service_ioctl_request()
102 RK_S32 fd = -1; in check_mpp_service_cap() local
116 fd = open(mpp_get_mpp_service_name(), O_RDWR | O_CLOEXEC); in check_mpp_service_cap()
117 if (fd < 0) { in check_mpp_service_cap()
122 ret = mpp_service_ioctl(fd, MPP_CMD_PROBE_HW_SUPPORT, 0, &hw_support); in check_mpp_service_cap()
139 ret = (RK_S32)ioctl(fd, MPP_IOC_CFG_V1, &mpp_req); in check_mpp_service_cap()
148 close(fd); in check_mpp_service_cap()
156 fd = open(mpp_get_mpp_service_name(), O_RDWR | O_CLOEXEC); in check_mpp_service_cap()
157 if (fd < 0) { in check_mpp_service_cap()
162 ret = mpp_service_ioctl(fd, MPP_CMD_INIT_CLIENT_TYPE, sizeof(val), &val); in check_mpp_service_cap()
167 ret = mpp_service_ioctl(fd, MPP_CMD_QUERY_HW_ID, sizeof(val), &val); in check_mpp_service_cap()
176 close(fd); in check_mpp_service_cap()
256 RK_S32 fd = node->buf_fd; in mpp_service_ioc_attach_fd() local
263 mpp_req.data_ptr = REQ_DATA_PTR(&fd); in mpp_service_ioc_attach_fd()
270 node->iova = (RK_U32)fd; in mpp_service_ioc_attach_fd()
278 RK_S32 fd = node->buf_fd; in mpp_service_ioc_detach_fd() local
286 mpp_req.data_ptr = REQ_DATA_PTR(&fd); in mpp_service_ioc_detach_fd()