Lines Matching defs:hog
637 static void gpiochip_machine_hog(struct gpio_chip *gc, struct gpiod_hog *hog)
642 desc = gpiochip_get_desc(gc, hog->chip_hwnum);
652 rv = gpiod_hog(desc, hog->line_name, hog->lflags, hog->dflags);
654 gpiod_err(desc, "%s: unable to hog GPIO line (%s:%u): %d\n",
655 __func__, gc->label, hog->chip_hwnum, rv);
660 struct gpiod_hog *hog;
664 list_for_each_entry(hog, &gpio_machine_hogs, list) {
665 if (!strcmp(gc->label, hog->chip_label))
666 gpiochip_machine_hog(gc, hog);
2231 desc->hog = NULL;
3844 * @hogs: table of gpio hog entries with a zeroed sentinel at the end
3849 struct gpiod_hog *hog;
3853 for (hog = &hogs[0]; hog->chip_label; hog++) {
3854 list_add_tail(&hog->list, &gpio_machine_hogs);
3858 * exists and, if so, try to hog the line now.
3860 gc = find_chip_by_name(hog->chip_label);
3862 gpiochip_machine_hog(gc, hog);
3871 struct gpiod_hog *hog;
3874 for (hog = &hogs[0]; hog->chip_label; hog++)
3875 list_del(&hog->list);
4327 pr_err("requesting hog GPIO %s (chip %s, offset %d) failed, %d\n",
4344 * gpiochip_free_hogs - Scan gpio-controller chip and release GPIO hog