Home
last modified time | relevance | path

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

/external/autotest/server/cros/servo/
Dservo.py457 def get(self, gpio_name): argument
462 assert gpio_name
464 return self._server.get(gpio_name)
467 (gpio_name, self._get_xmlrpclib_exception(e))
471 def set(self, gpio_name, gpio_value): argument
477 self.set_nocheck(gpio_name, gpio_value)
479 while gpio_value != self.get(gpio_name) and retry_count:
480 logging.warning("%s != %s, retry %d", gpio_name, gpio_value,
485 assert gpio_value == self.get(gpio_name), \
486 'Servo failed to set %s to %s' % (gpio_name, gpio_value)
[all …]
/external/autotest/server/site_tests/firmware_ECUsbPorts/
Dfirmware_ECUsbPorts.py79 gpio_name = "USB%d_ENABLE" % (cnt + 1)
81 "gpioget %s" % gpio_name,
82 ["[01].\s*%s" % gpio_name])
107 gpio_name = "USB%d_ENABLE" % idx
109 "gpioget %s" % gpio_name,
110 ["0.\s*%s" % gpio_name])
/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()