Lines Matching defs:hog
568 * of_parse_own_gpio() - Get a GPIO hog descriptor, names and flags for GPIO API
570 * @chip: GPIO chip whose hog is parsed
652 * of_gpiochip_add_hog - Add all hogs in a hog device node
654 * @hog: device node describing the hogs
658 static int of_gpiochip_add_hog(struct gpio_chip *chip, struct device_node *hog)
668 desc = of_parse_own_gpio(hog, chip, i, &name, &lflags, &dflags);
679 desc->hog = hog;
701 if (!of_property_read_bool(np, "gpio-hog")) {
719 * of_gpiochip_remove_hog - Remove all hogs in a hog device node
721 * @hog: device node describing the hogs
723 static void of_gpiochip_remove_hog(struct gpio_chip *chip, struct device_node *hog)
729 if (test_bit(FLAG_IS_HOGGED, &descs[i].flags) && descs[i].hog == hog) {
752 * This only supports adding and removing complete gpio-hog nodes.
753 * Modifying an existing gpio-hog node is not supported (except for
759 if (!of_property_read_bool(rd->dn, "gpio-hog")) {