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