Home
last modified time | relevance | path

Searched refs:gp_pin (Results 1 – 10 of 10) sorted by relevance

/f-stack/freebsd/arm/broadcom/bcm2835/
H A Draspberrypi_gpio.c82 old_cfg.req.gpio = RPI_FW_GPIO_BASE + pin->gp_pin; in rpi_fw_gpio_pin_configure()
102 sc->sc_gpio_state |= (1 << pin->gp_pin); in rpi_fw_gpio_pin_configure()
105 sc->sc_gpio_state &= ~(1 << pin->gp_pin); in rpi_fw_gpio_pin_configure()
162 if (sc->sc_gpio_pins[i].gp_pin == pin) in rpi_fw_gpio_pin_getcaps()
180 if (sc->sc_gpio_pins[i].gp_pin == pin) in rpi_fw_gpio_pin_getflags()
202 if (sc->sc_gpio_pins[i].gp_pin == pin) in rpi_fw_gpio_pin_getname()
224 if (sc->sc_gpio_pins[i].gp_pin == pin) in rpi_fw_gpio_pin_setflags()
243 if (sc->sc_gpio_pins[i].gp_pin == pin) in rpi_fw_gpio_pin_set()
280 if (sc->sc_gpio_pins[i].gp_pin == pin) in rpi_fw_gpio_pin_get()
313 if (sc->sc_gpio_pins[i].gp_pin == pin) in rpi_fw_gpio_pin_toggle()
[all …]
H A Dbcm2835_gpio.c318 if (sc->sc_gpio_pins[i].gp_pin == pin) in bcm_gpio_set_alternate()
341 bcm_gpio_set_function(sc, pin->gp_pin, in bcm_gpio_pin_configure()
345 bcm_gpio_set_function(sc, pin->gp_pin, in bcm_gpio_pin_configure()
391 if (sc->sc_gpio_pins[i].gp_pin == pin) in bcm_gpio_pin_getcaps()
412 if (sc->sc_gpio_pins[i].gp_pin == pin) in bcm_gpio_pin_getflags()
433 if (sc->sc_gpio_pins[i].gp_pin == pin) in bcm_gpio_pin_getname()
454 if (sc->sc_gpio_pins[i].gp_pin == pin) in bcm_gpio_pin_setflags()
478 if (sc->sc_gpio_pins[i].gp_pin == pin) in bcm_gpio_pin_set()
506 if (sc->sc_gpio_pins[i].gp_pin == pin) in bcm_gpio_pin_get()
528 if (sc->sc_gpio_pins[i].gp_pin == pin) in bcm_gpio_pin_toggle()
[all …]
/f-stack/freebsd/arm/freescale/vybrid/
H A Dvf_gpio.c144 sc->gpio_pins[i].gp_pin = i; in vf_gpio_attach()
189 if (sc->gpio_pins[i].gp_pin == pin) in vf_gpio_pin_getname()
211 if (sc->gpio_pins[i].gp_pin == pin) in vf_gpio_pin_getcaps()
233 if (sc->gpio_pins[i].gp_pin == pin) in vf_gpio_pin_getflags()
255 if (sc->gpio_pins[i].gp_pin == pin) in vf_gpio_pin_get()
277 if (sc->gpio_pins[i].gp_pin == pin) in vf_gpio_pin_toggle()
308 WRITE4(sc, GPIO_PCOR(pin->gp_pin), in vf_gpio_pin_configure()
309 (1 << (pin->gp_pin % 32))); in vf_gpio_pin_configure()
324 if (sc->gpio_pins[i].gp_pin == pin) in vf_gpio_pin_setflags()
344 if (sc->gpio_pins[i].gp_pin == pin) in vf_gpio_pin_set()
/f-stack/freebsd/sys/
H A Dgpio.h94 uint32_t gp_pin; /* pin number */ member
102 uint32_t gp_pin; /* pin number */ member
115 uint16_t gp_pin; /* Pin number */ member
129 uint16_t gp_pin; /* Pin number */ member
/f-stack/freebsd/mips/cavium/
H A Docteon_gpio.c114 mask = 1 << pin->gp_pin; in octeon_gpio_pin_configure()
121 gpio_cfgx.u64 = cvmx_read_csr(CVMX_GPIO_BIT_CFGX(pin->gp_pin)); in octeon_gpio_pin_configure()
135 cvmx_write_csr(CVMX_GPIO_BIT_CFGX(pin->gp_pin), gpio_cfgx.u64); in octeon_gpio_pin_configure()
166 if (sc->gpio_pins[i].gp_pin == pin) in octeon_gpio_pin_getcaps()
187 if (sc->gpio_pins[i].gp_pin == pin) in octeon_gpio_pin_getflags()
208 if (sc->gpio_pins[i].gp_pin == pin) in octeon_gpio_pin_getname()
229 if (sc->gpio_pins[i].gp_pin == pin) in octeon_gpio_pin_setflags()
248 if (sc->gpio_pins[i].gp_pin == pin) in octeon_gpio_pin_set()
273 if (sc->gpio_pins[i].gp_pin == pin) in octeon_gpio_pin_get()
296 if (sc->gpio_pins[i].gp_pin == pin) in octeon_gpio_pin_toggle()
[all …]
/f-stack/freebsd/mips/atheros/
H A Dar71xx_gpio.c203 ar71xx_gpio_oe_set_output(sc, pin->gp_pin); in ar71xx_gpio_pin_configure()
206 ar71xx_gpio_oe_set_input(sc, pin->gp_pin); in ar71xx_gpio_pin_configure()
267 if (sc->gpio_pins[i].gp_pin == pin) in ar71xx_gpio_pin_getcaps()
288 if (sc->gpio_pins[i].gp_pin == pin) in ar71xx_gpio_pin_getflags()
309 if (sc->gpio_pins[i].gp_pin == pin) in ar71xx_gpio_pin_getname()
330 if (sc->gpio_pins[i].gp_pin == pin) in ar71xx_gpio_pin_setflags()
349 if (sc->gpio_pins[i].gp_pin == pin) in ar71xx_gpio_pin_set()
371 if (sc->gpio_pins[i].gp_pin == pin) in ar71xx_gpio_pin_get()
390 if (sc->gpio_pins[i].gp_pin == pin) in ar71xx_gpio_pin_toggle()
519 sc->gpio_pins[i].gp_pin = j; in ar71xx_gpio_attach()
[all …]
/f-stack/freebsd/mips/atheros/ar531x/
H A Dar5315_gpio.c117 mask = 1 << pin->gp_pin; in ar5315_gpio_pin_configure()
160 if (sc->gpio_pins[i].gp_pin == pin) in ar5315_gpio_pin_getcaps()
182 if (sc->gpio_pins[i].gp_pin == pin) in ar5315_gpio_pin_getflags()
209 if (sc->gpio_pins[i].gp_pin == pin) in ar5315_gpio_pin_getname()
230 if (sc->gpio_pins[i].gp_pin == pin) in ar5315_gpio_pin_setflags()
268 if (sc->gpio_pins[i].gp_pin == pin) in ar5315_gpio_pin_get()
287 if (sc->gpio_pins[i].gp_pin == pin) in ar5315_gpio_pin_toggle()
406 sc->gpio_pins[i].gp_pin = j; in ar5315_gpio_attach()
418 j = sc->gpio_pins[i].gp_pin; in ar5315_gpio_attach()
/f-stack/freebsd/arm/nvidia/
H A Dtegra_gpio.c156 bit = GPIO_BIT(pin->gp_pin); in gpio_write_masked()
159 bus_write_4(sc->mem_res, reg + GPIO_REGNUM(pin->gp_pin), tmp); in gpio_write_masked()
168 bit = GPIO_BIT(pin->gp_pin); in gpio_read()
169 val = bus_read_4(sc->mem_res, reg + GPIO_REGNUM(pin->gp_pin)); in gpio_read()
775 sc->gpio_pins[i].gp_pin = i; in tegra_gpio_attach()
/f-stack/freebsd/arm/freescale/imx/
H A Dimx_gpio.c554 pad = (pad >> pin->gp_pin) & 1; in imx51_gpio_pin_configure()
557 SET4(sc, IMX_GPIO_DR_REG, (pad << pin->gp_pin)); in imx51_gpio_pin_configure()
558 SET4(sc, IMX_GPIO_OE_REG, (1U << pin->gp_pin)); in imx51_gpio_pin_configure()
561 CLEAR4(sc, IMX_GPIO_OE_REG, (1U << pin->gp_pin)); in imx51_gpio_pin_configure()
853 sc->gpio_pins[i].gp_pin = i; in imx51_gpio_attach()
/f-stack/freebsd/arm/mv/
H A Dmvebu_gpio.c133 bit = GPIO_BIT(pin->gp_pin); in gpio_write()
136 SYSCON_WRITE_4(sc->syscon, sc->offset + GPIO_REGNUM(pin->gp_pin) + reg, in gpio_write()
146 bit = GPIO_BIT(pin->gp_pin); in gpio_read()
148 sc->offset + GPIO_REGNUM(pin->gp_pin) + reg); in gpio_read()
766 pin->gp_pin = i; in mvebu_gpio_attach()