Home
last modified time | relevance | path

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

/freebsd-14.2/sys/dev/gpio/
H A Dgpiobus.c100 struct intr_map_data_gpio *gpio_data; in gpio_alloc_intr_resource() local
103 gpio_data = (struct intr_map_data_gpio *)intr_alloc_map_data( in gpio_alloc_intr_resource()
104 INTR_MAP_DATA_GPIO, sizeof(*gpio_data), M_WAITOK | M_ZERO); in gpio_alloc_intr_resource()
105 gpio_data->gpio_pin_num = pin->pin; in gpio_alloc_intr_resource()
106 gpio_data->gpio_pin_flags = pin->flags; in gpio_alloc_intr_resource()
107 gpio_data->gpio_intr_mode = intr_mode; in gpio_alloc_intr_resource()
109 irq = intr_map_irq(pin->dev, 0, (struct intr_map_data *)gpio_data); in gpio_alloc_intr_resource()
113 intr_free_intr_map_data((struct intr_map_data *)gpio_data); in gpio_alloc_intr_resource()
116 rman_set_virtual(res, gpio_data); in gpio_alloc_intr_resource()
/freebsd-14.2/sys/dev/axgbe/
H A Dxgbe-phy-v2.c2974 uint8_t gpio_reg, gpio_ports[2], gpio_data[3]; in xgbe_phy_i2c_mdio_reset() local
2986 gpio_data[0] = 2; in xgbe_phy_i2c_mdio_reset()
2987 gpio_data[1] = gpio_ports[0]; in xgbe_phy_i2c_mdio_reset()
2988 gpio_data[2] = gpio_ports[1]; in xgbe_phy_i2c_mdio_reset()
2992 gpio_data[1] |= (1 << (phy_data->mdio_reset_gpio % 8)); in xgbe_phy_i2c_mdio_reset()
2994 gpio_data[2] |= (1 << (phy_data->mdio_reset_gpio % 8)); in xgbe_phy_i2c_mdio_reset()
2998 gpio_data, sizeof(gpio_data)); in xgbe_phy_i2c_mdio_reset()
3004 gpio_data[1] &= ~(1 << (phy_data->mdio_reset_gpio % 8)); in xgbe_phy_i2c_mdio_reset()
3006 gpio_data[2] &= ~(1 << (phy_data->mdio_reset_gpio % 8)); in xgbe_phy_i2c_mdio_reset()
3010 gpio_data, sizeof(gpio_data)); in xgbe_phy_i2c_mdio_reset()