Lines Matching refs:fd
125 int fd; in VPUClientInit() local
160 fd = open(path, O_RDWR | O_CLOEXEC); in VPUClientInit()
166 if (fd == -1) { in VPUClientInit()
172 ret = vpu_api_set_client_type(fd, type); in VPUClientInit()
177 return fd; in VPUClientInit()
182 int fd = socket; in VPUClientRelease() local
183 if (fd > 0) { in VPUClientRelease()
184 close(fd); in VPUClientRelease()
191 int fd = socket; in VPUClientSendReg() local
233 ret = (RK_S32)ioctl(fd, MPP_IOC_CFG_V1, &reqs); in VPUClientSendReg()
238 ret = (RK_S32)ioctl(fd, MPP_IOC_CFG_V1, &reqs_tmp); in VPUClientSendReg()
245 ret = (RK_S32)ioctl(fd, VPU_IOC_SET_REG, &req); in VPUClientSendReg()
272 int fd = socket; in VPUClientWaitResult() local
293 ret = (RK_S32)ioctl(fd, MPP_IOC_CFG_V1, &mpp_req); in VPUClientWaitResult()
299 ret = (RK_S32)ioctl(fd, VPU_IOC_GET_REG, &req); in VPUClientWaitResult()
321 int fd = socket; in VPUClientGetHwCfg() local
326 ret = (RK_S32)ioctl(fd, VPU_IOC_GET_HW_FUSE_STATUS, &req); in VPUClientGetHwCfg()
336 int fd = -1; in VPUCheckSupportWidth() local
337 fd = open("/dev/vpu_service", O_RDWR | O_CLOEXEC); in VPUCheckSupportWidth()
338 if (fd < 0) { in VPUCheckSupportWidth()
339 fd = open("/dev/vpu-service", O_RDWR | O_CLOEXEC); in VPUCheckSupportWidth()
342 if (fd >= 0) { in VPUCheckSupportWidth()
343 if (VPUClientGetHwCfg(fd, (RK_U32*)&hwCfg, sizeof(hwCfg))) { in VPUCheckSupportWidth()
345 close(fd); in VPUCheckSupportWidth()
348 close(fd); in VPUCheckSupportWidth()
349 fd = -1; in VPUCheckSupportWidth()