Home
last modified time | relevance | path

Searched refs:gpio (Results 1 – 25 of 197) sorted by relevance

12345678

/external/syslinux/gpxe/src/drivers/net/ath5k/
Dath5k_gpio.c34 int ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_set_gpio_input() argument
36 if (gpio >= AR5K_NUM_GPIO) in ath5k_hw_set_gpio_input()
40 (ath5k_hw_reg_read(ah, AR5K_GPIOCR) & ~AR5K_GPIOCR_OUT(gpio)) in ath5k_hw_set_gpio_input()
41 | AR5K_GPIOCR_IN(gpio), AR5K_GPIOCR); in ath5k_hw_set_gpio_input()
49 int ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_set_gpio_output() argument
51 if (gpio >= AR5K_NUM_GPIO) in ath5k_hw_set_gpio_output()
55 (ath5k_hw_reg_read(ah, AR5K_GPIOCR) & ~AR5K_GPIOCR_OUT(gpio)) in ath5k_hw_set_gpio_output()
56 | AR5K_GPIOCR_OUT(gpio), AR5K_GPIOCR); in ath5k_hw_set_gpio_output()
64 u32 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_get_gpio() argument
66 if (gpio >= AR5K_NUM_GPIO) in ath5k_hw_get_gpio()
[all …]
Dath5k_rfkill.c45 sc->rf_kill.gpio, sc->rf_kill.polarity); in ath5k_rfkill_disable()
46 ath5k_hw_set_gpio_output(sc->ah, sc->rf_kill.gpio); in ath5k_rfkill_disable()
47 ath5k_hw_set_gpio(sc->ah, sc->rf_kill.gpio, !sc->rf_kill.polarity); in ath5k_rfkill_disable()
54 sc->rf_kill.gpio, sc->rf_kill.polarity); in ath5k_rfkill_enable()
55 ath5k_hw_set_gpio_output(sc->ah, sc->rf_kill.gpio); in ath5k_rfkill_enable()
56 ath5k_hw_set_gpio(sc->ah, sc->rf_kill.gpio, sc->rf_kill.polarity); in ath5k_rfkill_enable()
64 ath5k_hw_set_gpio_input(ah, sc->rf_kill.gpio); in ath5k_rfkill_set_intr()
65 curval = ath5k_hw_get_gpio(ah, sc->rf_kill.gpio); in ath5k_rfkill_set_intr()
66 ath5k_hw_set_gpio_intr(ah, sc->rf_kill.gpio, enable ? in ath5k_rfkill_set_intr()
75 return (ath5k_hw_get_gpio(sc->ah, sc->rf_kill.gpio) == in ath5k_is_rfkill_set()
[all …]
Dath5k.h1150 extern int ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio);
1151 extern int ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio);
1152 extern u32 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio);
1153 extern int ath5k_hw_set_gpio(struct ath5k_hw *ah, u32 gpio, u32 val);
1154 extern void ath5k_hw_set_gpio_intr(struct ath5k_hw *ah, unsigned int gpio, u32 interrupt_level);
Dbase.h127 u16 gpio; member
/external/linux-kselftest/tools/testing/selftests/gpio/
DMakefile3 TEST_PROGS := gpio-mockup.sh
4 TEST_FILES := gpio-mockup-sysfs.sh $(BINARIES)
5 BINARIES := gpio-mockup-chardev
24 $(BINARIES): ../../../gpio/gpio-utils.o ../../../../usr/include/linux/gpio.h
26 ../../../gpio/gpio-utils.o:
27 make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C ../../../gpio
29 ../../../../usr/include/linux/gpio.h:
Dgpio-mockup-sysfs.sh7 active_low_sysfs=`cat $GPIO_SYSFS/gpio$nr/active_low`
8 val_sysfs=`cat $GPIO_SYSFS/gpio$nr/value`
9 dir_sysfs=`cat $GPIO_SYSFS/gpio$nr/direction`
43 echo $direction > $GPIO_SYSFS/gpio$nr/direction
44 echo $active_low > $GPIO_SYSFS/gpio$nr/active_low
46 echo $value > $GPIO_SYSFS/gpio$nr/value
Dgpio-mockup.sh44 GPIO_SYSFS=`echo $SYSFS/class/gpio`
45 GPIO_DRV_SYSFS=`echo $SYSFS/devices/platform/$module/gpio`
51 GPIO_DEBUGFS=`echo $DEBUGFS/gpio`
52 source gpio-mockup-sysfs.sh
85 $BASE/gpio-mockup-chardev $*
D.gitignore1 gpio-mockup-chardev
/external/adhd/cras/src/server/
Dcras_alsa_jack.c84 struct cras_gpio_jack gpio; member
194 free(jack->gpio.device_name); in cras_free_jack()
195 if (jack->gpio.fd >= 0) { in cras_free_jack()
197 cras_system_rm_select_fd(jack->gpio.fd); in cras_free_jack()
198 close(jack->gpio.fd); in cras_free_jack()
220 return jack->gpio.current_state; in get_jack_current_state()
255 jack->gpio.current_state = 0; in check_jack_edid()
329 jack->gpio.current_state = 0; in jack_state_change_cb()
354 int r = sys_input_get_switch_state(jack->gpio.fd, in gpio_switch_initial_state()
355 jack->gpio.switch_event, &v); in gpio_switch_initial_state()
[all …]
/external/autotest/client/cros/
Dgpio.py114 gpio = Gpio()
116 gpio.setup()
118 gpio.read(gpio.DEVELOPER_SWITCH_CURRENT))
/external/libese/libese-hw/nxp/pn80t/
Dlinux_spidev.c124 int gpio = 0; in platform_init() local
133 for (; gpio < kBoardGpioMax; ++gpio) { in platform_init()
134 if (gpio_configure(board->gpios[gpio], 1, 1) < 0) { in platform_init()
/external/autotest/client/site_tests/hardware_GPIOSwitches/
Dhardware_GPIOSwitches.py13 from autotest_lib.client.cros import gpio
19 self._gpio = gpio.Gpio(error.TestError)
/external/perfetto/src/ftrace_reader/test/data/android_flounder_lte_LRX16F_3.10.40/events/gpio/gpio_value/
Dformat9 field:unsigned gpio; offset:8; size:4; signed:0;
13 print fmt: "%u %3s %d", REC->gpio, REC->get ? "get" : "set", REC->value
/external/perfetto/src/ftrace_reader/test/data/android_seed_N2F62_3.10.49/events/gpio/gpio_direction/
Dformat9 field:unsigned gpio; offset:8; size:4; signed:0;
13 print fmt: "%u %3s (%d)", REC->gpio, REC->in ? "in" : "out", REC->err
/external/perfetto/src/ftrace_reader/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/gpio/gpio_value/
Dformat9 field:unsigned gpio; offset:8; size:4; signed:0;
13 print fmt: "%u %3s %d", REC->gpio, REC->get ? "get" : "set", REC->value
/external/perfetto/src/ftrace_reader/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/gpio/gpio_direction/
Dformat9 field:unsigned gpio; offset:8; size:4; signed:0;
13 print fmt: "%u %3s (%d)", REC->gpio, REC->in ? "in" : "out", REC->err
/external/perfetto/src/ftrace_reader/test/data/android_seed_N2F62_3.10.49/events/gpio/gpio_value/
Dformat9 field:unsigned gpio; offset:8; size:4; signed:0;
13 print fmt: "%u %3s %d", REC->gpio, REC->get ? "get" : "set", REC->value
/external/perfetto/src/ftrace_reader/test/data/android_flounder_lte_LRX16F_3.10.40/events/gpio/gpio_direction/
Dformat9 field:unsigned gpio; offset:8; size:4; signed:0;
13 print fmt: "%u %3s (%d)", REC->gpio, REC->in ? "in" : "out", REC->err
/external/perfetto/src/ftrace_reader/test/data/android_hammerhead_MRA59G_3.4.0/events/gpio/gpio_value/
Dformat10 field:unsigned gpio; offset:12; size:4; signed:0;
14 print fmt: "%u %3s %d", REC->gpio, REC->get ? "get" : "set", REC->value
/external/perfetto/src/ftrace_reader/test/data/android_hammerhead_MRA59G_3.4.0/events/gpio/gpio_direction/
Dformat10 field:unsigned gpio; offset:12; size:4; signed:0;
14 print fmt: "%u %3s (%d)", REC->gpio, REC->in ? "in" : "out", REC->err
/external/autotest/server/site_tests/enterprise_CFM_DualSpeaker/
Denterprise_CFM_DualSpeaker.py305 for gpio in gpio_list:
309 logging.info('Power cycle one of Speaker %s', gpio)
311 gpio, TIMEOUT_SECS)
/external/dtc/tests/
Dpropname_escapes.dts5 \#gpio-cells = <2>;
/external/linux-kselftest/android/
DREADME30 ### gpio/
32 The gpio test requires a test kernel module and gpiolib, neither of which are
/external/linux-kselftest/tools/testing/selftests/
DMakefile13 TARGETS += gpio
/external/perfetto/src/ftrace_reader/test/data/android_hammerhead_MRA59G_3.4.0/
Davailable_events56 gpio:gpio_direction
57 gpio:gpio_value

12345678