/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpio-sim.c | 605 /* There can only be one hog per line. */ 606 struct gpio_sim_hog *hog; member 637 static struct gpio_sim_device *gpio_sim_hog_get_device(struct gpio_sim_hog *hog) in gpio_sim_hog_get_device() argument 639 struct gpio_sim_line *line = hog->parent; in gpio_sim_hog_get_device() 719 struct gpiod_hog *hog; in gpio_sim_remove_hogs() local 726 for (hog = dev->hogs; hog->chip_label; hog++) { in gpio_sim_remove_hogs() 727 kfree(hog->chip_label); in gpio_sim_remove_hogs() 728 kfree(hog in gpio_sim_remove_hogs() 740 struct gpiod_hog *hog; gpio_sim_add_hogs() local 1149 struct gpio_sim_hog *hog = to_gpio_sim_hog(item); gpio_sim_hog_config_name_show() local 1160 struct gpio_sim_hog *hog = to_gpio_sim_hog(item); gpio_sim_hog_config_name_store() local 1184 struct gpio_sim_hog *hog = to_gpio_sim_hog(item); gpio_sim_hog_config_direction_show() local 1215 struct gpio_sim_hog *hog = to_gpio_sim_hog(item); gpio_sim_hog_config_direction_store() local 1248 struct gpio_sim_hog *hog = to_gpio_sim_hog(item); gpio_sim_hog_config_item_release() local 1274 struct gpio_sim_hog *hog; gpio_sim_line_config_make_hog_item() local [all...] |
H A D | gpiolib-of.c | 665 * of_parse_own_gpio() - Get a GPIO hog descriptor, names and flags for GPIO API 667 * @chip: GPIO chip whose hog is parsed 738 * of_gpiochip_add_hog - Add all hogs in a hog device node 740 * @hog: device node describing the hogs 744 static int of_gpiochip_add_hog(struct gpio_chip *chip, struct device_node *hog) in of_gpiochip_add_hog() argument 754 desc = of_parse_own_gpio(hog, chip, i, &name, &lflags, &dflags); in of_gpiochip_add_hog() 763 desc->hog = hog; in of_gpiochip_add_hog() 784 if (!of_property_read_bool(np, "gpio-hog")) in of_gpiochip_scan_gpios() 801 * of_gpiochip_remove_hog - Remove all hogs in a hog devic 805 of_gpiochip_remove_hog(struct gpio_chip *chip, struct device_node *hog) of_gpiochip_remove_hog() argument [all...] |
H A D | gpiolib.c | 637 static void gpiochip_machine_hog(struct gpio_chip *gc, struct gpiod_hog *hog) in gpiochip_machine_hog() argument 642 desc = gpiochip_get_desc(gc, hog->chip_hwnum); in gpiochip_machine_hog() 652 rv = gpiod_hog(desc, hog->line_name, hog->lflags, hog->dflags); in gpiochip_machine_hog() 654 gpiod_err(desc, "%s: unable to hog GPIO line (%s:%u): %d\n", in gpiochip_machine_hog() 655 __func__, gc->label, hog->chip_hwnum, rv); in gpiochip_machine_hog() 660 struct gpiod_hog *hog; in machine_gpiochip_add() local 664 list_for_each_entry(hog, &gpio_machine_hogs, list) { in machine_gpiochip_add() 665 if (!strcmp(gc->label, hog in machine_gpiochip_add() 3849 struct gpiod_hog *hog; gpiod_add_hogs() local 3871 struct gpiod_hog *hog; gpiod_remove_hogs() local [all...] |
H A D | gpiolib.h | 149 * @hog: Pointer to the device node that hogs this line (if any) 186 struct device_node *hog; member
|
/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpiolib-of.c | 564 * of_parse_own_gpio() - Get a GPIO hog descriptor, names and flags for GPIO API 566 * @chip: GPIO chip whose hog is parsed 644 * of_gpiochip_add_hog - Add all hogs in a hog device node 646 * @hog: device node describing the hogs 650 static int of_gpiochip_add_hog(struct gpio_chip *chip, struct device_node *hog) in of_gpiochip_add_hog() argument 660 desc = of_parse_own_gpio(hog, chip, i, &name, &lflags, &dflags); in of_gpiochip_add_hog() 669 desc->hog = hog; in of_gpiochip_add_hog() 690 if (!of_property_read_bool(np, "gpio-hog")) in of_gpiochip_scan_gpios() 707 * of_gpiochip_remove_hog - Remove all hogs in a hog devic 711 of_gpiochip_remove_hog(struct gpio_chip *chip, struct device_node *hog) of_gpiochip_remove_hog() argument [all...] |
H A D | gpiolib.c | 518 static void gpiochip_machine_hog(struct gpio_chip *gc, struct gpiod_hog *hog) in gpiochip_machine_hog() argument 523 desc = gpiochip_get_desc(gc, hog->chip_hwnum); in gpiochip_machine_hog() 533 rv = gpiod_hog(desc, hog->line_name, hog->lflags, hog->dflags); in gpiochip_machine_hog() 535 gpiod_err(desc, "%s: unable to hog GPIO line (%s:%u): %d\n", in gpiochip_machine_hog() 536 __func__, gc->label, hog->chip_hwnum, rv); in gpiochip_machine_hog() 541 struct gpiod_hog *hog; in machine_gpiochip_add() local 545 list_for_each_entry(hog, &gpio_machine_hogs, list) { in machine_gpiochip_add() 546 if (!strcmp(gc->label, hog in machine_gpiochip_add() 3663 struct gpiod_hog *hog; gpiod_add_hogs() local [all...] |
H A D | gpiolib.h | 125 struct device_node *hog; member
|
/kernel/linux/linux-6.6/tools/testing/selftests/gpio/ |
H A D | gpio-sim.sh | 33 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
|