Home
last modified time | relevance | path

Searched refs:PCA9554_PIN_COUNT (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/include/hw/gpio/
H A Dpca9554.h20 #define PCA9554_PIN_COUNT 8 macro
31 qemu_irq gpio_out[PCA9554_PIN_COUNT];
32 uint8_t ext_state[PCA9554_PIN_COUNT];
/openbmc/qemu/hw/gpio/
H A Dpca9554.c45 for (i = 0; i < PCA9554_PIN_COUNT; i++) { in pca9554_update_pin_input()
163 if (pin < 0 || pin >= PCA9554_PIN_COUNT) { in pca9554_get_pin()
190 if (pin < 0 || pin >= PCA9554_PIN_COUNT) { in pca9554_set_pin()
229 VMSTATE_UINT8_ARRAY(ext_state, PCA9554State, PCA9554_PIN_COUNT),
244 memset(s->ext_state, PCA9554_PIN_HIZ, PCA9554_PIN_COUNT); in pca9554_reset()
255 for (pin = 0; pin < PCA9554_PIN_COUNT; pin++) { in pca9554_initfn()
278 assert((pin >= 0) && (pin < PCA9554_PIN_COUNT)); in pca9554_gpio_in_handler()
290 qdev_init_gpio_out(dev, s->gpio_out, PCA9554_PIN_COUNT); in pca9554_realize()
291 qdev_init_gpio_in(dev, pca9554_gpio_in_handler, PCA9554_PIN_COUNT); in pca9554_realize()