/freebsd-11-stable/etc/bluetooth/ |
H A D | hcsecd.conf | 19 # pin "secret" | nopin ; - to PIN code for the device 40 pin nopin; 47 pin "0000"; 54 pin nopin;
|
/freebsd-11-stable/sys/arm/include/ |
H A D | fdt.h | 43 #define FDT_MAP_IRQ(node, pin) (pin)
|
/freebsd-11-stable/usr.sbin/bluetooth/hcsecd/ |
H A D | hcsecd.conf | 20 # pin "secret" | nopin ; - to PIN code for the device 41 pin nopin; 48 pin "0000"; # PIN code (string up to 16 character) 55 pin "0000"; 62 pin nopin;
|
/freebsd-11-stable/sys/arm/freescale/imx/ |
H A D | imx_iomuxvar.h | 35 void iomux_set_function(u_int pin, u_int fn); 36 void iomux_set_pad(u_int pin, u_int cfg); 37 u_int iomux_get_pad_config(u_int pin); 42 * with IO pin assignments or pad control. These functions let other soc level
|
/freebsd-11-stable/usr.sbin/bhyve/ |
H A D | pci_irq.h | 43 int pirq_irq(int pin); 44 uint8_t pirq_read(int pin); 45 void pirq_write(struct vmctx *ctx, int pin, uint8_t val);
|
H A D | pci_irq.c | 51 * Implement an 8 pin PCI interrupt router compatible with the router 77 * Returns true if this pin is enabled with a valid IRQ. Setting the 79 * if the pin was disabled. 91 pirq_read(int pin) argument 94 assert(pin > 0 && pin <= nitems(pirqs)); 95 return (pirqs[pin - 1].reg); 99 pirq_write(struct vmctx *ctx, int pin, uint8_t val) argument 103 assert(pin > 0 && pin < 201 int best_count, best_irq, best_pin, irq, pin; local 243 pirq_irq(int pin) argument 255 int irq, pin; local [all...] |
/freebsd-11-stable/sys/arm/xscale/ixp425/ |
H A D | avila_gpio.c | 73 int pin; member in struct:avila_gpio_pin 108 struct gpio_pin *pin, uint32_t flags); 109 static int avila_gpio_pin_flags(struct avila_gpio_softc *sc, uint32_t pin); 123 static int avila_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps); 124 static int avila_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t 126 static int avila_gpio_pin_getname(device_t dev, uint32_t pin, char *name); 127 static int avila_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags); 128 static int avila_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value); 129 static int avila_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val); 130 static int avila_gpio_pin_toggle(device_t dev, uint32_t pin); 133 avila_gpio_pin_flags(struct avila_gpio_softc *sc, uint32_t pin) argument 143 avila_gpio_pin_configure(struct avila_gpio_softc *sc, struct gpio_pin *pin, unsigned int flags) argument 187 avila_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 199 avila_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 216 avila_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 228 avila_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 242 avila_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 261 avila_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) argument 276 avila_gpio_pin_toggle(device_t dev, uint32_t pin) argument [all...] |
H A D | cambria_gpio.c | 94 int pin; member in struct:cambria_gpio_pin 126 static int cambria_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps); 127 static int cambria_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t 129 static int cambria_gpio_pin_getname(device_t dev, uint32_t pin, char *name); 130 static int cambria_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags); 131 static int cambria_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value); 132 static int cambria_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val); 133 static int cambria_gpio_pin_toggle(device_t dev, uint32_t pin); 226 cambria_gpio_read(struct cambria_gpio_softc *sc, uint32_t pin, unsigned int *val) argument 238 *val = (i2c_readbyte(sc) & (1 << pin)) ! 286 cambria_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 298 cambria_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 310 cambria_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 322 cambria_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 353 cambria_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 386 cambria_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) argument 405 cambria_gpio_pin_toggle(device_t dev, uint32_t pin) argument 436 int pin; local [all...] |
/freebsd-11-stable/sys/arm/mv/ |
H A D | gpio.c | 78 static void mv_gpio_intr_handler(int pin); 84 static void mv_gpio_blink(uint32_t pin, uint8_t enable); 85 static void mv_gpio_polarity(uint32_t pin, uint8_t enable); 86 static void mv_gpio_level(uint32_t pin, uint8_t enable); 87 static void mv_gpio_edge(uint32_t pin, uint8_t enable); 88 static void mv_gpio_out_en(uint32_t pin, uint8_t enable); 89 static void mv_gpio_int_ack(uint32_t pin); 90 static void mv_gpio_value_set(uint32_t pin, uint8_t val); 91 static uint32_t mv_gpio_value_get(uint32_t pin); 252 void (*hand)(void *), void *arg, int pin, in 251 mv_gpio_setup_intrhandler(const char *name, driver_filter_t *filt, void (*hand)(void *), void *arg, int pin, int flags, void **cookiep) argument 278 mv_gpio_intr_mask(int pin) argument 291 mv_gpio_intr_unmask(int pin) argument 304 mv_gpio_intr_handler(int pin) argument 316 mv_gpio_configure(uint32_t pin, uint32_t flags) argument 337 mv_gpio_out(uint32_t pin, uint8_t val, uint8_t enable) argument 345 mv_gpio_in(uint32_t pin) argument 368 mv_gpio_reg_set(uint32_t reg, uint32_t pin) argument 378 mv_gpio_reg_clear(uint32_t reg, uint32_t pin) argument 388 mv_gpio_out_en(uint32_t pin, uint8_t enable) argument 408 mv_gpio_blink(uint32_t pin, uint8_t enable) argument 428 mv_gpio_polarity(uint32_t pin, uint8_t enable) argument 448 mv_gpio_level(uint32_t pin, uint8_t enable) argument 468 mv_gpio_edge(uint32_t pin, uint8_t enable) argument 488 mv_gpio_int_ack(uint32_t pin) argument 505 mv_gpio_value_get(uint32_t pin) argument 524 mv_gpio_value_set(uint32_t pin, uint8_t val) argument 548 int dir, flags, pin; local [all...] |
/freebsd-11-stable/sys/arm/xilinx/ |
H A D | zy7_gpio.c | 35 * available as a GPIO pin. Pins 64-127 are sent to the PL (FPGA) section of 136 /* Get a specific pin's capabilities. */ 138 zy7_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 141 if (!VALID_PIN(pin)) 149 /* Get a specific pin's name. */ 151 zy7_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 154 if (!VALID_PIN(pin)) 157 if (pin < NUM_MIO_PINS) { 158 snprintf(name, GPIOMAXNAME, "MIO_%d", pin); 161 snprintf(name, GPIOMAXNAME, "EMIO_%d", pin 170 zy7_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 196 zy7_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 233 zy7_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 255 zy7_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *value) argument 269 zy7_gpio_pin_toggle(device_t dev, uint32_t pin) argument [all...] |
/freebsd-11-stable/contrib/wpa/wpa_supplicant/examples/ |
H A D | wps-ap-cli | 18 read pin 19 cpin=`$CLI wps_check_pin "$pin" | tail -1` 26 cpin=`echo "$pin" | sed "s/[^1234567890]//g"` 34 echo "Invalid PIN: $pin"
|
/freebsd-11-stable/lib/libgpio/ |
H A D | gpio.c | 122 gpio_pin_set_name(gpio_handle_t handle, gpio_pin_t pin, char *name) argument 129 gppin.gp_pin = pin; 153 gpio_pin_get(gpio_handle_t handle, gpio_pin_t pin) argument 158 gpreq.gp_pin = pin; 166 gpio_pin_set(gpio_handle_t handle, gpio_pin_t pin, gpio_value_t value) argument 173 gpreq.gp_pin = pin; 182 gpio_pin_toggle(gpio_handle_t handle, gpio_pin_t pin) argument 187 gpreq.gp_pin = pin; 195 gpio_pin_low(gpio_handle_t handle, gpio_pin_t pin) argument 197 return (gpio_pin_set(handle, pin, GPIO_VALUE_LO 201 gpio_pin_high(gpio_handle_t handle, gpio_pin_t pin) argument 207 gpio_pin_set_flag(gpio_handle_t handle, gpio_pin_t pin, uint32_t flag) argument 221 gpio_pin_input(gpio_handle_t handle, gpio_pin_t pin) argument 227 gpio_pin_output(gpio_handle_t handle, gpio_pin_t pin) argument 233 gpio_pin_opendrain(gpio_handle_t handle, gpio_pin_t pin) argument 239 gpio_pin_pushpull(gpio_handle_t handle, gpio_pin_t pin) argument 245 gpio_pin_tristate(gpio_handle_t handle, gpio_pin_t pin) argument 251 gpio_pin_pullup(gpio_handle_t handle, gpio_pin_t pin) argument 257 gpio_pin_pulldown(gpio_handle_t handle, gpio_pin_t pin) argument 263 gpio_pin_invin(gpio_handle_t handle, gpio_pin_t pin) argument 269 gpio_pin_invout(gpio_handle_t handle, gpio_pin_t pin) argument 275 gpio_pin_pulsate(gpio_handle_t handle, gpio_pin_t pin) argument [all...] |
/freebsd-11-stable/sys/dev/amdgpio/ |
H A D | amdgpio.c | 78 amdgpio_is_pin_output(struct amdgpio_softc *sc, uint32_t pin) argument 83 /* Get the current pin state */ 86 reg = AMDGPIO_PIN_REGISTER(pin); 124 amdgpio_valid_pin(struct amdgpio_softc *sc, int pin) argument 126 dprintf("pin %d\n", pin); 130 if ((sc->sc_gpio_pins[pin].gp_pin == pin) && 131 (sc->sc_gpio_pins[pin].gp_caps != 0)) 138 amdgpio_pin_getname(device_t dev, uint32_t pin, cha argument 158 amdgpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 176 amdgpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 199 amdgpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 249 amdgpio_pin_get(device_t dev, uint32_t pin, unsigned int *value) argument 287 amdgpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 321 amdgpio_pin_toggle(device_t dev, uint32_t pin) argument 367 int i, pin, bank; local [all...] |
/freebsd-11-stable/sys/dev/rccgpio/ |
H A D | rccgpio.c | 54 uint32_t pin; member in struct:rcc_gpio_pin 60 { .pin = (1 << 11), .name = "reset switch", .caps = GPIO_PIN_INPUT }, 61 { .pin = (1 << 15), .name = "red LED", .caps = GPIO_PIN_OUTPUT }, 62 { .pin = (1 << 17), .name = "green LED", .caps = GPIO_PIN_OUTPUT }, 64 { .pin = (1 << 16), .name = "HD1 LED", .caps = GPIO_PIN_OUTPUT }, 65 { .pin = (1 << 18), .name = "HD2 LED", .caps = GPIO_PIN_OUTPUT }, 124 rcc_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 129 if (pin >= sc->sc_gpio_npins) 132 *caps = rcc_pins[pin].caps; 138 rcc_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_ argument 153 rcc_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 167 rcc_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 181 rcc_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 204 rcc_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) argument 225 rcc_gpio_pin_toggle(device_t dev, uint32_t pin) argument [all...] |
/freebsd-11-stable/sys/amd64/vmm/io/ |
H A D | vioapic.c | 62 int acnt; /* sum of pin asserts (+1) and deasserts (-1) */ 97 vioapic_send_intr(struct vioapic *vioapic, int pin) argument 103 KASSERT(pin >= 0 && pin < REDIR_ENTRIES, 104 ("vioapic_set_pinstate: invalid pin number %d", pin)); 109 low = vioapic->rtbl[pin].reg; 110 high = vioapic->rtbl[pin].reg >> 32; 113 VIOAPIC_CTR1(vioapic, "ioapic pin%d: masked", pin); 129 vioapic_set_pinstate(struct vioapic *vioapic, int pin, bool newstate) argument 234 int delmode, pin, vector; local 271 int regnum, pin, rshift; local 308 int regnum, pin, lshift; local 441 int pin; local [all...] |
H A D | vatpic.c | 79 int acnt[8]; /* sum of pin asserts and deasserts */ 115 static void vatpic_set_pinstate(struct vatpic *vatpic, int pin, bool newstate); 130 int bit, pin; local 133 ATPIC_PIN_FOREACH(pin, atpic, i) { 134 bit = (1 << pin); 144 return (pin); 155 int bit, pin, tmp; local 175 ATPIC_PIN_FOREACH(pin, atpic, tmp) { 176 bit = 1 << pin; 187 * the corresponding 'pin' t 200 int pin; local 417 vatpic_set_pinstate(struct vatpic *vatpic, int pin, bool newstate) argument 555 int pin; local 583 vatpic_pin_accepted(struct atpic *atpic, int pin) argument 602 int pin; local 630 int pin; local [all...] |
/freebsd-11-stable/sys/arm/allwinner/ |
H A D | a10_gpio.c | 177 static int a10_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *value); 178 static int a10_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value); 186 a10_gpio_get_function(struct a10_gpio_softc *sc, uint32_t pin) argument 193 if (pin > sc->padconf->npins) 195 bank = sc->padconf->pins[pin].port; 196 pin = sc->padconf->pins[pin].pin; 197 offset = ((pin & 0x07) << 2); 199 func = A10_GPIO_READ(sc, A10_GPIO_GP_CFG(bank, pin >> 205 a10_gpio_set_function(struct a10_gpio_softc *sc, uint32_t pin, uint32_t f) argument 229 a10_gpio_get_pud(struct a10_gpio_softc *sc, uint32_t pin) argument 246 a10_gpio_set_pud(struct a10_gpio_softc *sc, uint32_t pin, uint32_t state) argument 264 a10_gpio_get_drv(struct a10_gpio_softc *sc, uint32_t pin) argument 281 a10_gpio_set_drv(struct a10_gpio_softc *sc, uint32_t pin, uint32_t drive) argument 299 a10_gpio_pin_configure(struct a10_gpio_softc *sc, uint32_t pin, uint32_t flags) argument 366 a10_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 380 a10_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 422 a10_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 438 a10_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 455 a10_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 480 a10_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) argument 501 a10_gpio_pin_toggle(device_t dev, uint32_t pin) argument 530 uint32_t bank, data, pin; local 565 uint32_t bank, pin; local 605 aw_find_pin_func(struct a10_gpio_softc *sc, int pin, const char *func) argument 795 a10_gpio_map_gpios(device_t bus, phandle_t dev, phandle_t gparent, int gcells, pcell_t *gpios, uint32_t *pin, uint32_t *flags) argument [all...] |
H A D | allwinner_pinctrl.h | 37 uint8_t pin; member in struct:allwinner_pins
|
/freebsd-11-stable/sys/arm/nvidia/ |
H A D | as3722_gpio.c | 151 int rv, fnc, pin; local 153 for (pin = 0; pin < sc->gpio_npins; pin++) { 154 if (strcmp(sc->gpio_pins[pin]->pin_name, pin_name) == 0) 157 if (pin >= sc->gpio_npins) { 158 device_printf(sc->dev, "Unknown pin: %s\n", pin_name); 162 ctrl = sc->gpio_pins[pin]->pin_ctrl_reg; 163 sc->gpio_pins[pin]->pin_cfg_flags = cfg->flags; 168 "Unknown function %s for pin 306 as3722_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 320 as3722_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 334 as3722_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *out_flags) argument 386 as3722_gpio_get_mode(struct as3722_softc *sc, uint32_t pin, uint32_t gpio_flags) argument 430 as3722_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 461 as3722_gpio_pin_set(device_t dev, uint32_t pin, uint32_t val) argument 482 as3722_gpio_pin_get(device_t dev, uint32_t pin, uint32_t *val) argument 511 as3722_gpio_pin_toggle(device_t dev, uint32_t pin) argument 534 as3722_gpio_map_gpios(device_t dev, phandle_t pdev, phandle_t gparent, int gcells, pcell_t *gpios, uint32_t *pin, uint32_t *flags) argument 548 struct as3722_gpio_pin *pin; local [all...] |
/freebsd-11-stable/sys/arm/lpc/ |
H A D | lpc_gpio.c | 38 * Pins are mapped to logical pin number as follows: 229 lpc_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 233 if (pin > LPC_GPIO_NPINS) 236 map = lpc_gpio_get_pinmap(pin); 243 lpc_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 250 if (pin > LPC_GPIO_NPINS) 253 map = lpc_gpio_get_pinmap(pin); 255 /* Check whether it's bidirectional pin */ 265 dir = (state & (1 << LPC_GPIO_PIN_BIT(map, pin))); 269 dir = (state & (1 << LPC_GPIO_PIN_BIT(map, pin))); 289 lpc_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 338 lpc_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 369 lpc_gpio_pin_get(device_t dev, uint32_t pin, uint32_t *value) argument 418 lpc_gpio_pin_set(device_t dev, uint32_t pin, uint32_t value) argument 460 lpc_gpio_pin_toggle(device_t dev, uint32_t pin) argument 480 lpc_gpio_get_pinmap(int pin) argument 494 lpc_gpio_set_flags(device_t dev, int pin, int flags) argument 503 lpc_gpio_set_state(device_t dev, int pin, int state) argument 512 lpc_gpio_get_state(device_t dev, int pin, int *state) argument [all...] |
/freebsd-11-stable/sys/dev/gpio/ |
H A D | ofw_gpiobus.c | 65 struct gpiobus_pin pin; local 77 pin.dev = OF_device_from_xref(xref); 78 if (pin.dev == NULL) { 84 busdev = GPIO_GET_BUS(pin.dev); 90 /* Map GPIO pin. */ 91 rv = gpio_map_gpios(pin.dev, cnode, OF_node_from_xref(xref), ncells, 92 cells, &pin.pin, &pin.flags); 97 /* Reserve GPIO pin 109 gpio_pin_get_by_ofw_idx(device_t consumer, phandle_t node, int idx, gpio_pin_t *pin) argument 117 gpio_pin_get_by_ofw_property(device_t consumer, phandle_t node, char *name, gpio_pin_t *pin) argument 125 gpio_pin_get_by_ofw_name(device_t consumer, phandle_t node, char *name, gpio_pin_t *pin) argument 158 gpio_pin_getcaps(gpio_pin_t pin, uint32_t *caps) argument 167 gpio_pin_is_active(gpio_pin_t pin, bool *active) argument 187 gpio_pin_set_active(gpio_pin_t pin, bool active) argument 204 gpio_pin_setflags(gpio_pin_t pin, uint32_t flags) argument [all...] |
H A D | gpioc.c | 126 struct gpio_pin pin; local 142 bcopy(arg, &pin, sizeof(pin)); 143 dprintf("get config pin %d\n", pin.gp_pin); 144 res = GPIO_PIN_GETFLAGS(sc->sc_pdev, pin.gp_pin, 145 &pin.gp_flags); 149 GPIO_PIN_GETCAPS(sc->sc_pdev, pin.gp_pin, &pin.gp_caps); 150 GPIOBUS_PIN_GETNAME(bus, pin [all...] |
H A D | chvgpio.c | 114 chvgpio_pad_cfg0_offset(int pin) argument 116 return (CHVGPIO_PAD_CFG0 + 1024 * (pin / 15) + 8 * (pin % 15)); 120 chvgpio_read_pad_cfg0(struct chvgpio_softc *sc, int pin) argument 122 return bus_read_4(sc->sc_mem_res, chvgpio_pad_cfg0_offset(pin)); 126 chvgpio_write_pad_cfg0(struct chvgpio_softc *sc, int pin, uint32_t val) argument 128 bus_write_4(sc->sc_mem_res, chvgpio_pad_cfg0_offset(pin), val); 132 chvgpio_read_pad_cfg1(struct chvgpio_softc *sc, int pin) argument 134 return bus_read_4(sc->sc_mem_res, chvgpio_pad_cfg0_offset(pin) + 4); 160 chvgpio_valid_pin(struct chvgpio_softc *sc, int pin) argument 172 chvgpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 187 chvgpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 203 chvgpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 233 chvgpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 271 chvgpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 293 chvgpio_pin_get(device_t dev, uint32_t pin, unsigned int *value) argument 317 chvgpio_pin_toggle(device_t dev, uint32_t pin) argument [all...] |
/freebsd-11-stable/sys/arm/amlogic/aml8726/ |
H A D | aml8726_gpio.c | 116 if (OF_getencprop(node, "pin-count", 118 device_printf(dev, "missing pin-count attribute in FDT\n"); 186 /* Get a specific pin's capabilities. */ 188 aml8726_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 192 if (pin >= sc->npins) 200 /* Get a specific pin's name. */ 202 aml8726_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 206 if (pin >= sc->npins) 209 snprintf(name, GPIOMAXNAME, "%s.%u", ofw_bus_get_name(dev), pin); 214 /* Get a specific pin' 216 aml8726_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 236 aml8726_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 263 aml8726_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 291 aml8726_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *value) argument 306 aml8726_gpio_pin_toggle(device_t dev, uint32_t pin) argument [all...] |
/freebsd-11-stable/sys/mips/cavium/ |
H A D | octeon_gpio.c | 62 int pin; member in struct:octeon_gpio_pin 79 struct gpio_pin *pin, uint32_t flags); 96 static int octeon_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps); 97 static int octeon_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t 99 static int octeon_gpio_pin_getname(device_t dev, uint32_t pin, char *name); 100 static int octeon_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags); 101 static int octeon_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value); 102 static int octeon_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val); 103 static int octeon_gpio_pin_toggle(device_t dev, uint32_t pin); 106 octeon_gpio_pin_configure(struct octeon_gpio_softc *sc, struct gpio_pin *pin, argument 158 octeon_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 179 octeon_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 200 octeon_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 221 octeon_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 240 octeon_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 264 octeon_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) argument 287 octeon_gpio_pin_toggle(device_t dev, uint32_t pin) argument [all...] |