/openbmc/linux/drivers/i2c/muxes/ |
H A D | i2c-mux-ltc4306.c | 48 struct gpio_chip gpiochip; member 158 data->gpiochip.label = dev_name(dev); in ltc4306_gpio_init() 159 data->gpiochip.base = -1; in ltc4306_gpio_init() 160 data->gpiochip.ngpio = data->chip->num_gpios; in ltc4306_gpio_init() 161 data->gpiochip.parent = dev; in ltc4306_gpio_init() 162 data->gpiochip.can_sleep = true; in ltc4306_gpio_init() 163 data->gpiochip.get_direction = ltc4306_gpio_get_direction; in ltc4306_gpio_init() 164 data->gpiochip.direction_input = ltc4306_gpio_direction_input; in ltc4306_gpio_init() 165 data->gpiochip.direction_output = ltc4306_gpio_direction_output; in ltc4306_gpio_init() 166 data->gpiochip.get = ltc4306_gpio_get; in ltc4306_gpio_init() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-msc313.c | 613 struct gpio_chip *gpiochip; in msc313_gpio_probe() local 647 gpiochip = devm_kzalloc(dev, sizeof(*gpiochip), GFP_KERNEL); in msc313_gpio_probe() 648 if (!gpiochip) in msc313_gpio_probe() 651 gpiochip->label = DRIVER_NAME; in msc313_gpio_probe() 652 gpiochip->parent = dev; in msc313_gpio_probe() 653 gpiochip->request = gpiochip_generic_request; in msc313_gpio_probe() 654 gpiochip->free = gpiochip_generic_free; in msc313_gpio_probe() 655 gpiochip->direction_input = msc313_gpio_direction_input; in msc313_gpio_probe() 656 gpiochip->direction_output = msc313_gpio_direction_output; in msc313_gpio_probe() 657 gpiochip->get = msc313_gpio_get; in msc313_gpio_probe() [all …]
|
H A D | TODO | 79 Get rid of <linux/gpio/legacy-of-mm-gpiochip.h> 175 directory per gpiochip and one file entry per line: 177 /sys/kernel/debug/gpiochip/gpiochip0 178 /sys/kernel/debug/gpiochip/gpiochip0/gpio0 179 /sys/kernel/debug/gpiochip/gpiochip0/gpio1 180 /sys/kernel/debug/gpiochip/gpiochip0/gpio2 181 /sys/kernel/debug/gpiochip/gpiochip0/gpio3 183 /sys/kernel/debug/gpiochip/gpiochip1 184 /sys/kernel/debug/gpiochip/gpiochip1/gpio0 185 /sys/kernel/debug/gpiochip/gpiochip1/gpio1
|
/openbmc/phosphor-hwmon/ |
H A D | gpio_handle.cpp | 17 BuildGpioHandle(const std::string& gpiochip, const std::string& line) in BuildGpioHandle() argument 20 unsigned long chipId = std::strtoul(gpiochip.c_str(), &gpioEnd, 10); in BuildGpioHandle() 23 if (!gpioEnd || gpioEnd != &gpiochip.c_str()[gpiochip.length()]) in BuildGpioHandle() 26 entry("GPIOCHIP=%s", gpiochip.c_str())); in BuildGpioHandle()
|
H A D | gpio_handle.hpp | 19 BuildGpioHandle(const std::string& gpiochip, const std::string& line);
|
/openbmc/linux/drivers/iio/dac/ |
H A D | ad5592r-base.c | 136 st->gpiochip.label = dev_name(st->dev); in ad5592r_gpio_init() 137 st->gpiochip.base = -1; in ad5592r_gpio_init() 138 st->gpiochip.ngpio = 8; in ad5592r_gpio_init() 139 st->gpiochip.parent = st->dev; in ad5592r_gpio_init() 140 st->gpiochip.can_sleep = true; in ad5592r_gpio_init() 141 st->gpiochip.direction_input = ad5592r_gpio_direction_input; in ad5592r_gpio_init() 142 st->gpiochip.direction_output = ad5592r_gpio_direction_output; in ad5592r_gpio_init() 143 st->gpiochip.get = ad5592r_gpio_get; in ad5592r_gpio_init() 144 st->gpiochip.set = ad5592r_gpio_set; in ad5592r_gpio_init() 145 st->gpiochip.request = ad5592r_gpio_request; in ad5592r_gpio_init() [all …]
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager/ |
H A D | chassis-poweron | 19 …sename "/sys/bus/i2c/devices/$SPIDER_BOARD_IO_EXP_BUS_NUM-00$IO_EXP_SLOT_PWR_CTRL_ADDR/"*gpiochip*) 20 …me "/sys/bus/i2c/devices/$MANAGEMENT_BOARD_IO_EXP_BUS_NUM-00$IO_EXP_SLED_PWR_CTRL_ADDR/"*gpiochip*) 21 …IO_EXP_HOST_POWER_STATUS=$(basename "/sys/bus/i2c/devices/$IO_EXP_SLOT_PWR_STATUS-0023/"*gpiochip*)
|
H A D | chassis-poweroff | 19 …sename "/sys/bus/i2c/devices/$SPIDER_BOARD_IO_EXP_BUS_NUM-00$IO_EXP_SLOT_PWR_CTRL_ADDR/"*gpiochip*) 21 …me "/sys/bus/i2c/devices/$MANAGEMENT_BOARD_IO_EXP_BUS_NUM-00$IO_EXP_SLED_PWR_CTRL_ADDR/"*gpiochip*)
|
H A D | chassis-powercycle | 25 …sename "/sys/bus/i2c/devices/$SPIDER_BOARD_IO_EXP_BUS_NUM-00$IO_EXP_SLOT_PWR_CTRL_ADDR/"*gpiochip*) 26 …me "/sys/bus/i2c/devices/$MANAGEMENT_BOARD_IO_EXP_BUS_NUM-00$IO_EXP_SLED_PWR_CTRL_ADDR/"*gpiochip*)
|
H A D | host-poweron-failure | 12 …IO_EXP_HOST_POWER_STATUS=$(basename "/sys/bus/i2c/devices/$IO_EXP_SLOT_PWR_STATUS-0023/"*gpiochip*)
|
H A D | chassis-poweron-failure | 14 …sename "/sys/bus/i2c/devices/$SPIDER_BOARD_IO_EXP_BUS_NUM-00$IO_EXP_SLOT_PWR_CTRL_ADDR/"*gpiochip*)
|
H A D | host-poweroff | 11 GPIOCHIP_IO_EXP_HOST_POWER_STATUS=$(basename "/sys/bus/i2c/devices/$CHASSIS_BUS-0023/"*gpiochip*)
|
H A D | host-poweron | 9 GPIOCHIP_IO_EXP_HOST_POWER_STATUS=$(basename "/sys/bus/i2c/devices/$CHASSIS_BUS-0023/"*gpiochip*)
|
H A D | host-powercycle | 12 GPIOCHIP_IO_EXP_HOST_POWER_STATUS=$(basename "/sys/bus/i2c/devices/$CHASSIS_BUS-0023/"*gpiochip*)
|
/openbmc/phosphor-hwmon/test/ |
H A D | gpio.cpp | 13 BuildGpioHandle(const std::string& gpiochip, const std::string& line) in BuildGpioHandle() argument 15 return (gpioIntf) ? gpioIntf->build(gpiochip, line) : nullptr; in BuildGpioHandle()
|
H A D | gpio_mock.hpp | 15 build(const std::string& gpiochip, const std::string& line) const = 0;
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | gpio-cdev | 1 What: /dev/gpiochip[0-9]+ 6 The character device files /dev/gpiochip* are the interface
|
/openbmc/openbmc/meta-fii/meta-mori/recipes-mori/mori-fw-utility/mori-fw/ |
H A D | mori-lib.sh | 19 BUS_ADDR=$(gpiodetect | grep gpiochip"${CHIP_PIN[0]}" | \ 25 exit ; ls -1 -d -v gpiochip*)
|
/openbmc/linux/tools/testing/selftests/gpio/ |
H A D | gpio-mockup.sh | 297 gpiochip=$(find "$DEBUGFS/$module/" -name gpiochip* -type d | sort) 298 for chip in $gpiochip; do
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | check-interrupt | 9 …sename "/sys/bus/i2c/devices/$SPIDER_BOARD_IO_EXP_BUS_NUM-00$IO_EXP_SLOT_PWR_CTRL_ADDR/"*gpiochip*) 162 cpld_ioe_chip=$(basename "/sys/bus/i2c/devices/$slot_num-0021/"*gpiochip*)
|
H A D | probe-slot-device | 19 GPIOCHIP=$(basename /sys/bus/i2c/devices/$HOST_BUS-0023/*gpiochip*)
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/dbus/phosphor-dbus-monitor/ |
H A D | switch-nic-main-or-aux-mode | 6 GPIO_CHIP=$(basename "/sys/bus/i2c/devices/28-0024/"*gpiochip*)
|
/openbmc/openbmc/meta-facebook/meta-bletchley/recipes-phosphor/sensors/phosphor-nvme/ |
H A D | nvme-json-rewrite | 14 for file in /sys/bus/i2c/drivers/pca953x/"$i"-0041/gpio/gpiochip*/base
|
/openbmc/openbmc/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/ |
H A D | kudo-lib.sh | 19 …BUS_ADDR=$(gpiodetect | grep gpiochip"${CHIP_PIN[0]}" | awk '{print substr($2, 2, length($2) - 2)}…
|
/openbmc/openbmc/meta-facebook/meta-catalina/recipes-phosphor/initrdscripts/phosphor-static-norootfs-init/ |
H A D | 99-platform-init | 5 if ! GPIOCHIP_NUM="$(basename "$(ls -d /sys/bus/i2c/devices/14-0014/gpiochip*)")"; then
|