Home
last modified time | relevance | path

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

/freebsd/sys/dev/gpio/
H A Dgpiobus.c99 struct intr_map_data_gpio *gpio_data; in gpio_alloc_intr_resource() local
102 gpio_data = (struct intr_map_data_gpio *)intr_alloc_map_data( in gpio_alloc_intr_resource()
103 INTR_MAP_DATA_GPIO, sizeof(*gpio_data), M_WAITOK | M_ZERO); in gpio_alloc_intr_resource()
104 gpio_data->gpio_pin_num = pin->pin; in gpio_alloc_intr_resource()
105 gpio_data->gpio_pin_flags = pin->flags; in gpio_alloc_intr_resource()
106 gpio_data->gpio_intr_mode = intr_mode; in gpio_alloc_intr_resource()
108 irq = intr_map_irq(pin->dev, 0, (struct intr_map_data *)gpio_data); in gpio_alloc_intr_resource()
112 intr_free_intr_map_data((struct intr_map_data *)gpio_data); in gpio_alloc_intr_resource()
115 rman_set_virtual(res, gpio_data); in gpio_alloc_intr_resource()
/freebsd/sys/dev/axgbe/
H A Dxgbe-phy-v2.c1554 uint8_t gpio_data[3] = {0}; in xgbe_phy_validate_gpio_expander() local
1581 gpio_data[0] = 4; /* polarity register */ in xgbe_phy_validate_gpio_expander()
1584 gpio_data, sizeof(gpio_data)); in xgbe_phy_validate_gpio_expander()
1599 gpio_data[0] = 6; /* configuration register */ in xgbe_phy_validate_gpio_expander()
1602 gpio_data[1] = config & 0xff; in xgbe_phy_validate_gpio_expander()
1603 gpio_data[2] = (config >> 8); in xgbe_phy_validate_gpio_expander()
1606 gpio_data, sizeof(gpio_data)); in xgbe_phy_validate_gpio_expander()
3254 uint8_t gpio_reg, gpio_ports[2], gpio_data[3]; in xgbe_phy_i2c_mdio_reset() local
3266 gpio_data[0] = 2; in xgbe_phy_i2c_mdio_reset()
3267 gpio_data[1] = gpio_ports[0]; in xgbe_phy_i2c_mdio_reset()
[all …]