Home
last modified time | relevance | path

Searched refs:gpio_mem_res (Results 1 – 4 of 4) sorted by relevance

/f-stack/freebsd/mips/atheros/
H A Dar71xx_gpiovar.h45 bus_write_4(sc->gpio_mem_res, (reg), (val)); \
48 #define GPIO_READ(sc, reg) bus_read_4(sc->gpio_mem_res, (reg))
65 struct resource *gpio_mem_res; member
H A Dar71xx_gpio.c446 sc->gpio_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in ar71xx_gpio_attach()
449 if (sc->gpio_mem_res == NULL) { in ar71xx_gpio_attach()
606 if (sc->gpio_mem_res) in ar71xx_gpio_detach()
608 sc->gpio_mem_res); in ar71xx_gpio_detach()
/f-stack/freebsd/mips/atheros/ar531x/
H A Dar5315_gpiovar.h45 bus_write_4(sc->gpio_mem_res, (reg), (val)); \
48 #define GPIO_READ(sc, reg) bus_read_4(sc->gpio_mem_res, (reg))
63 struct resource *gpio_mem_res; member
H A Dar5315_gpio.c343 sc->gpio_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in ar5315_gpio_attach()
346 if (sc->gpio_mem_res == NULL) { in ar5315_gpio_attach()
497 if (sc->gpio_mem_res) in ar5315_gpio_detach()
499 sc->gpio_mem_res); in ar5315_gpio_detach()