Lines Matching refs:hog
522 static void gpiochip_machine_hog(struct gpio_chip *gc, struct gpiod_hog *hog) in gpiochip_machine_hog() argument
527 desc = gpiochip_get_desc(gc, hog->chip_hwnum); in gpiochip_machine_hog()
537 rv = gpiod_hog(desc, hog->line_name, hog->lflags, hog->dflags); in gpiochip_machine_hog()
540 __func__, gc->label, hog->chip_hwnum, rv); in gpiochip_machine_hog()
545 struct gpiod_hog *hog; in machine_gpiochip_add() local
549 list_for_each_entry(hog, &gpio_machine_hogs, list) { in machine_gpiochip_add()
550 if (!strcmp(gc->label, hog->chip_label)) in machine_gpiochip_add()
551 gpiochip_machine_hog(gc, hog); in machine_gpiochip_add()
2149 desc->hog = NULL; in gpiod_free_commit()
3651 struct gpiod_hog *hog; in gpiod_add_hogs() local
3655 for (hog = &hogs[0]; hog->chip_label; hog++) { in gpiod_add_hogs()
3656 list_add_tail(&hog->list, &gpio_machine_hogs); in gpiod_add_hogs()
3662 gc = find_chip_by_name(hog->chip_label); in gpiod_add_hogs()
3664 gpiochip_machine_hog(gc, hog); in gpiod_add_hogs()