Lines Matching refs:dip
565 struct dev_info *dip; in add_input_dev() local
568 dip = list_entry(p, struct dev_info, head); in add_input_dev()
569 if (strcmp(dip->devnm, devnm) == 0) in add_input_dev()
573 dip = malloc(sizeof(*dip)); in add_input_dev()
574 dip->devnm = strdup(devnm); in add_input_dev()
575 list_add_tail(&dip->head, &input_devs); in add_input_dev()
581 static void rem_input_dev(struct dev_info *dip) in rem_input_dev() argument
583 list_del(&dip->head); in rem_input_dev()
584 free(dip->devnm); in rem_input_dev()
585 free(dip); in rem_input_dev()
959 static void __find_input_files(struct dev_info *dip) in __find_input_files() argument
966 sprintf(full_name, "%s/%s.%s.%d", idir, dip->devnm, ibase, cpu); in __find_input_files()
970 add_input_file(cpu, dip->devnm, full_name); in __find_input_files()
975 fatal(NULL, ERR_ARGS, "No traces found for %s\n", dip->devnm); in __find_input_files()
979 rem_input_dev(dip); in __find_input_files()