Lines Matching refs:namelist
220 struct dirent **namelist; in fetch_device_node() local
223 ndev = scandir(path, &namelist, is_event_device, alphasort); in fetch_device_node()
230 if (!devnode && asprintf(&devnode, "/dev/input/%s", namelist[i]->d_name) == -1) in fetch_device_node()
232 free(namelist[i]); in fetch_device_node()
235 free(namelist); in fetch_device_node()
248 struct dirent **namelist; in fetch_syspath_and_devnode() local
262 ndev = scandir(SYS_INPUT_DIR, &namelist, is_input_device, alphasort); in fetch_syspath_and_devnode()
272 namelist[i]->d_name); in fetch_syspath_and_devnode()
305 namelist[i]->d_name); in fetch_syspath_and_devnode()
318 free(namelist[i]); in fetch_syspath_and_devnode()
319 free(namelist); in fetch_syspath_and_devnode()