Searched refs:hog (Results 1 - 5 of 5) sorted by relevance

/linux-master/drivers/gpio/
H A Dgpio-sim.c662 /* There can only be one hog per line. */
663 struct gpio_sim_hog *hog; member in struct:gpio_sim_line
694 static struct gpio_sim_device *gpio_sim_hog_get_device(struct gpio_sim_hog *hog) argument
696 struct gpio_sim_line *line = hog->parent;
778 struct gpiod_hog *hog; local
785 for (hog = dev->hogs; hog->chip_label; hog++) {
786 kfree(hog->chip_label);
787 kfree(hog
799 struct gpiod_hog *hog; local
1212 struct gpio_sim_hog *hog = to_gpio_sim_hog(item); local
1223 struct gpio_sim_hog *hog = to_gpio_sim_hog(item); local
1247 struct gpio_sim_hog *hog = to_gpio_sim_hog(item); local
1278 struct gpio_sim_hog *hog = to_gpio_sim_hog(item); local
1311 struct gpio_sim_hog *hog = to_gpio_sim_hog(item); local
1337 struct gpio_sim_hog *hog; local
[all...]
H A Dgpiolib-of.c706 * of_parse_own_gpio() - Get a GPIO hog descriptor, names and flags for GPIO API
708 * @chip: GPIO chip whose hog is parsed
779 * of_gpiochip_add_hog - Add all hogs in a hog device node
781 * @hog: device node describing the hogs
785 static int of_gpiochip_add_hog(struct gpio_chip *chip, struct device_node *hog) argument
795 desc = of_parse_own_gpio(hog, chip, i, &name, &lflags, &dflags);
804 WRITE_ONCE(desc->hog, hog);
825 if (!of_property_read_bool(np, "gpio-hog"))
842 * of_gpiochip_remove_hog - Remove all hogs in a hog devic
846 of_gpiochip_remove_hog(struct gpio_chip *chip, struct device_node *hog) argument
[all...]
H A Dgpiolib.c759 static void gpiochip_machine_hog(struct gpio_chip *gc, struct gpiod_hog *hog) argument
764 desc = gpiochip_get_desc(gc, hog->chip_hwnum);
771 rv = gpiod_hog(desc, hog->line_name, hog->lflags, hog->dflags);
773 gpiod_err(desc, "%s: unable to hog GPIO line (%s:%u): %d\n",
774 __func__, gc->label, hog->chip_hwnum, rv);
779 struct gpiod_hog *hog; local
783 list_for_each_entry(hog, &gpio_machine_hogs, list) {
784 if (!strcmp(gc->label, hog
4007 struct gpiod_hog *hog; local
4021 gpiochip_machine_hog(gpio_device_get_chip(gdev), hog); local
4030 struct gpiod_hog *hog; local
[all...]
H A Dgpiolib.h147 * @hog: Pointer to the device node that hogs this line (if any)
184 struct device_node *hog; member in struct:gpio_desc
/linux-master/tools/testing/selftests/gpio/
H A Dgpio-sim.sh33 if [ -e $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog ]; then
34 rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog || \
35 fail "Unable to remove the hog"
315 mkdir -p $CONFIGFS_DIR/chip/bank/line4/hog

Completed in 216 milliseconds