Lines Matching refs:base_fd
31 int base_fd; in rproc_init_by_modalias() local
34 base_fd = open(RPROC_CLASS_PATH, O_RDONLY | O_DIRECTORY); in rproc_init_by_modalias()
35 if (base_fd < 0) in rproc_init_by_modalias()
38 base_dir = fdopendir(base_fd); in rproc_init_by_modalias()
41 close(base_fd); in rproc_init_by_modalias()
50 rproc_fd = openat(base_fd, rproc_de->d_name, O_RDONLY | O_DIRECTORY); in rproc_init_by_modalias()
79 close(base_fd); in rproc_init_by_modalias()
94 int base_fd; in rproc_init_by_mss_driver() local
96 base_fd = open(RPROC_BASE_PATH, O_RDONLY | O_DIRECTORY); in rproc_init_by_mss_driver()
97 if (base_fd < 0) in rproc_init_by_mss_driver()
100 base_dir = fdopendir(base_fd); in rproc_init_by_mss_driver()
103 close(base_fd); in rproc_init_by_mss_driver()
112 device_fd = openat(base_fd, device_de->d_name, O_RDONLY | O_DIRECTORY); in rproc_init_by_mss_driver()
147 close(base_fd); in rproc_init_by_mss_driver()