Lines Matching defs:hog
518 static void gpiochip_machine_hog(struct gpio_chip *gc, struct gpiod_hog *hog)
523 desc = gpiochip_get_desc(gc, hog->chip_hwnum);
533 rv = gpiod_hog(desc, hog->line_name, hog->lflags, hog->dflags);
535 gpiod_err(desc, "%s: unable to hog GPIO line (%s:%u): %d\n",
536 __func__, gc->label, hog->chip_hwnum, rv);
541 struct gpiod_hog *hog;
545 list_for_each_entry(hog, &gpio_machine_hogs, list) {
546 if (!strcmp(gc->label, hog->chip_label))
547 gpiochip_machine_hog(gc, hog);
2161 desc->hog = NULL;
3658 * @hogs: table of gpio hog entries with a zeroed sentinel at the end
3663 struct gpiod_hog *hog;
3667 for (hog = &hogs[0]; hog->chip_label; hog++) {
3668 list_add_tail(&hog->list, &gpio_machine_hogs);
3672 * exists and, if so, try to hog the line now.
3674 gc = find_chip_by_name(hog->chip_label);
3676 gpiochip_machine_hog(gc, hog);
4184 pr_err("requesting hog GPIO %s (chip %s, offset %d) failed, %d\n",
4201 * gpiochip_free_hogs - Scan gpio-controller chip and release GPIO hog