Home
last modified time | relevance | path

Searched refs:gpio_name (Results 1 – 8 of 8) sorted by relevance

/external/u-boot/cmd/
Dgpio.c66 static int do_gpio_status(bool all, const char *gpio_name) in do_gpio_status() argument
74 if (gpio_name && !*gpio_name) in do_gpio_status()
75 gpio_name = NULL; in do_gpio_status()
92 if (!gpio_name || !bank_name || in do_gpio_status()
93 !strncmp(gpio_name, bank_name, banklen)) { in do_gpio_status()
97 p = gpio_name + banklen; in do_gpio_status()
98 if (gpio_name && *p) { in do_gpio_status()
/external/autotest/server/site_tests/firmware_ECUsbPorts/
Dfirmware_ECUsbPorts.py90 gpio_name = self.__get_usb_enable_name(cnt)
92 "gpioget %s" % gpio_name,
93 ["[01].\s*%s" % gpio_name])
118 gpio_name = self.__get_usb_enable_name(idx)
120 "gpioget %s" % gpio_name,
121 ["0.\s*%s" % gpio_name])
/external/autotest/server/cros/servo/
Dservo.py582 def get(self, gpio_name): argument
587 assert gpio_name
589 return self._server.get(gpio_name)
592 (gpio_name, self._get_xmlrpclib_exception(e))
596 def set(self, gpio_name, gpio_value): argument
602 self.set_nocheck(gpio_name, gpio_value)
604 while gpio_value != self.get(gpio_name) and retry_count:
605 logging.warning("%s != %s, retry %d", gpio_name, gpio_value,
610 assert gpio_value == self.get(gpio_name), \
611 'Servo failed to set %s to %s' % (gpio_name, gpio_value)
[all …]
/external/u-boot/drivers/gpio/
Dxilinx_gpio.c40 struct gpio_names *gpio_name; member
76 return *priv->gpio_name[gpio_priv].name ? in get_name()
77 priv->gpio_name[gpio_priv].name : "UNKNOWN"; in get_name()
277 strncpy(priv->gpio_name[gpio_priv].name, label, in gpio_request()
279 priv->gpio_name[gpio_priv].name[GPIO_NAME_SIZE - 1] = in gpio_request()
299 priv->gpio_name[gpio_priv].name[0] = '\0'; in gpio_free()
325 priv->gpio_name = calloc(gpio_no, sizeof(struct gpio_names)); in gpio_alloc()
/external/vboot_reference/host/arch/arm/lib/
Dcrossystem_arch.c219 char gpio_name[FNAME_SIZE]; in VbGetPlatformGpioStatus() local
222 snprintf(gpio_name, sizeof(gpio_name), "%s/%s/value", in VbGetPlatformGpioStatus()
224 if (ReadFileInt(gpio_name, &value) < 0) in VbGetPlatformGpioStatus()
231 char gpio_name[FNAME_SIZE]; in VbGetGpioStatus() local
234 snprintf(gpio_name, sizeof(gpio_name), "%s/gpio%d/value", in VbGetGpioStatus()
236 if (ReadFileInt(gpio_name, &value) < 0) { in VbGetGpioStatus()
245 if (ReadFileInt(gpio_name, &value) < 0) in VbGetGpioStatus()
/external/u-boot/board/gdsys/a38x/
Dihs_phys.c69 char gpio_name[64]; in calculate_octo_phy_mask() local
76 snprintf(gpio_name, 64, "cat-gpio-%u", k); in calculate_octo_phy_mask()
78 if (request_gpio_by_name(&gpio, dev_name[k], 0x20, gpio_name)) in calculate_octo_phy_mask()
88 snprintf(gpio_name, 64, "second-octo-gpio-%u", k); in calculate_octo_phy_mask()
90 if (request_gpio_by_name(&gpio, dev_name[k], 0x27, gpio_name)) { in calculate_octo_phy_mask()
Ddt_helpers.c29 uint offset, char *gpio_name) in request_gpio_by_name() argument
40 return dm_gpio_request(gpio, gpio_name); in request_gpio_by_name()
Ddt_helpers.h13 uint offset, char *gpio_name);