/freebsd-10.1-release/sys/arm/allwinner/ |
H A D | a10_gpio.h | 32 int a10_emac_gpio_config(uint32_t pin);
|
H A D | a10_gpio.c | 114 a10_gpio_get_function(struct a10_gpio_softc *sc, uint32_t pin) argument 118 bank = pin / 32; 119 pin = pin - 32 * bank; 120 func = pin >> 3; 121 offset = ((pin & 0x07) << 2); 144 a10_gpio_set_function(struct a10_gpio_softc *sc, uint32_t pin, uint32_t f) argument 151 bank = pin / 32; 152 pin = pin 163 a10_gpio_set_pud(struct a10_gpio_softc *sc, uint32_t pin, uint32_t state) argument 182 a10_gpio_pin_configure(struct a10_gpio_softc *sc, struct gpio_pin *pin, unsigned int flags) argument 229 a10_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 250 a10_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 271 a10_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 292 a10_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 325 a10_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 356 a10_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) argument 383 a10_gpio_pin_toggle(device_t dev, uint32_t pin) argument 529 a10_emac_gpio_config(uint32_t pin) argument [all...] |
/freebsd-10.1-release/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-10.1-release/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-10.1-release/usr.sbin/bhyve/ |
H A D | pci_irq.h | 41 int pirq_irq(int pin); 42 uint8_t pirq_read(int pin); 43 void pirq_write(struct vmctx *ctx, int pin, uint8_t val);
|
H A D | pci_irq.c | 49 * Implement an 8 pin PCI interrupt router compatible with the router 75 * Returns true if this pin is enabled with a valid IRQ. Setting the 77 * if the pin was disabled. 89 pirq_read(int pin) argument 92 assert(pin > 0 && pin <= nitems(pirqs)); 93 return (pirqs[pin - 1].reg); 97 pirq_write(struct vmctx *ctx, int pin, uint8_t val) argument 101 assert(pin > 0 && pin < 198 int best_count, best_irq, best_pin, irq, pin; local 235 pirq_irq(int pin) argument 247 int irq, pin; local [all...] |
/freebsd-10.1-release/sys/arm/xscale/ixp425/ |
H A D | avila_gpio.c | 71 int pin; member in struct:avila_gpio_pin 106 struct gpio_pin *pin, uint32_t flags); 107 static int avila_gpio_pin_flags(struct avila_gpio_softc *sc, uint32_t pin); 120 static int avila_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps); 121 static int avila_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t 123 static int avila_gpio_pin_getname(device_t dev, uint32_t pin, char *name); 124 static int avila_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags); 125 static int avila_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value); 126 static int avila_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val); 127 static int avila_gpio_pin_toggle(device_t dev, uint32_t pin); 130 avila_gpio_pin_flags(struct avila_gpio_softc *sc, uint32_t pin) argument 140 avila_gpio_pin_configure(struct avila_gpio_softc *sc, struct gpio_pin *pin, unsigned int flags) argument 174 avila_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 186 avila_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 203 avila_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 215 avila_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 237 avila_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 256 avila_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) argument 271 avila_gpio_pin_toggle(device_t dev, uint32_t pin) argument [all...] |
H A D | cambria_gpio.c | 92 int pin; member in struct:cambria_gpio_pin 123 static int cambria_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps); 124 static int cambria_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t 126 static int cambria_gpio_pin_getname(device_t dev, uint32_t pin, char *name); 127 static int cambria_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags); 128 static int cambria_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value); 129 static int cambria_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val); 130 static int cambria_gpio_pin_toggle(device_t dev, uint32_t pin); 223 cambria_gpio_read(struct cambria_gpio_softc *sc, uint32_t pin, unsigned int *val) argument 235 *val = (i2c_readbyte(sc) & (1 << pin)) ! 273 cambria_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 285 cambria_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 297 cambria_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 309 cambria_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 349 cambria_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 382 cambria_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) argument 401 cambria_gpio_pin_toggle(device_t dev, uint32_t pin) argument 432 int pin; local [all...] |
/freebsd-10.1-release/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-10.1-release/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 125 /* Get a specific pin's capabilities. */ 127 zy7_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 130 if (!VALID_PIN(pin)) 138 /* Get a specific pin's name. */ 140 zy7_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 143 if (!VALID_PIN(pin)) 146 if (pin < NUM_MIO_PINS) { 147 snprintf(name, GPIOMAXNAME, "MIO_%d", pin); 150 snprintf(name, GPIOMAXNAME, "EMIO_%d", pin 159 zy7_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 185 zy7_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 222 zy7_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 244 zy7_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *value) argument 258 zy7_gpio_pin_toggle(device_t dev, uint32_t pin) argument [all...] |
/freebsd-10.1-release/contrib/wpa/wpa_supplicant/examples/ |
H A D | wps-ap-cli | 17 read -p "Enrollee PIN: " pin 18 cpin=`$CLI wps_check_pin "$pin" | tail -1` 24 cpin=`echo "$pin" | sed "s/[^1234567890]//g"` 32 echo "Invalid PIN: $pin"
|
H A D | openCryptoki.conf | 40 pin="123456"
|
/freebsd-10.1-release/sys/arm/include/ |
H A D | fdt.h | 47 #define FDT_MAP_IRQ(node, pin) (pin)
|
/freebsd-10.1-release/sys/amd64/vmm/io/ |
H A D | vioapic.c | 63 int acnt; /* sum of pin asserts (+1) and deasserts (-1) */ 98 vioapic_send_intr(struct vioapic *vioapic, int pin) argument 104 KASSERT(pin >= 0 && pin < REDIR_ENTRIES, 105 ("vioapic_set_pinstate: invalid pin number %d", pin)); 110 low = vioapic->rtbl[pin].reg; 111 high = vioapic->rtbl[pin].reg >> 32; 114 VIOAPIC_CTR1(vioapic, "ioapic pin%d: masked", pin); 130 vioapic_set_pinstate(struct vioapic *vioapic, int pin, bool newstate) argument 235 int delmode, pin, vector; local 272 int regnum, pin, rshift; local 309 int regnum, pin, lshift; local 442 int pin; local [all...] |
H A D | vatpic.c | 77 int acnt[8]; /* sum of pin asserts and deasserts */ 78 int priority; /* current pin priority */ 105 static void vatpic_set_pinstate(struct vatpic *vatpic, int pin, bool newstate); 110 int bit, pin; local 114 pin = ((i + 7 - atpic->priority) & 0x7); 115 bit = (1 << pin); 118 return (pin); 128 int bit, pin; local 141 pin = ((i + 7 - atpic->priority) & 0x7); 142 bit = (1 << pin); 161 int pin; local 358 vatpic_set_pinstate(struct vatpic *vatpic, int pin, bool newstate) argument 494 int pin; local 516 vatpic_pin_accepted(struct atpic *atpic, int pin) argument 535 int pin; local [all...] |
/freebsd-10.1-release/sys/arm/rockchip/ |
H A D | rk30xx_gpio.c | 112 rk30_gpio_get_function(struct rk30_gpio_softc *sc, uint32_t pin) argument 116 bank = pin / 32; 117 pin = pin % 32; 118 offset = 1 << pin; 140 rk30_gpio_set_function(struct rk30_gpio_softc *sc, uint32_t pin, uint32_t f) argument 147 bank = pin / 32; 148 pin = pin % 32; 149 offset = 1 << pin; 160 rk30_gpio_set_pud(struct rk30_gpio_softc *sc, uint32_t pin, uint32_t state) argument 176 rk30_gpio_pin_configure(struct rk30_gpio_softc *sc, struct gpio_pin *pin, unsigned int flags) argument 225 rk30_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 246 rk30_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 267 rk30_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 288 rk30_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 321 rk30_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 356 rk30_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) argument 383 rk30_gpio_pin_toggle(device_t dev, uint32_t pin) argument [all...] |
/freebsd-10.1-release/sys/arm/lpc/ |
H A D | lpc_gpio.c | 38 * Pins are mapped to logical pin number as follows: 215 lpc_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 219 if (pin > LPC_GPIO_NPINS) 222 map = lpc_gpio_get_pinmap(pin); 229 lpc_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 236 if (pin > LPC_GPIO_NPINS) 239 map = lpc_gpio_get_pinmap(pin); 241 /* Check whether it's bidirectional pin */ 251 dir = (state & (1 << LPC_GPIO_PIN_BIT(map, pin))); 255 dir = (state & (1 << LPC_GPIO_PIN_BIT(map, pin))); 275 lpc_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 324 lpc_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 355 lpc_gpio_pin_get(device_t dev, uint32_t pin, uint32_t *value) argument 404 lpc_gpio_pin_set(device_t dev, uint32_t pin, uint32_t value) argument 446 lpc_gpio_pin_toggle(device_t dev, uint32_t pin) argument 466 lpc_gpio_get_pinmap(int pin) argument 480 lpc_gpio_set_flags(device_t dev, int pin, int flags) argument 489 lpc_gpio_set_state(device_t dev, int pin, int state) argument 498 lpc_gpio_get_state(device_t dev, int pin, int *state) argument [all...] |
/freebsd-10.1-release/sys/dev/gpio/ |
H A D | gpioc.c | 120 struct gpio_pin pin; local 130 bcopy(arg, &pin, sizeof(pin)); 131 dprintf("get config pin %d\n", pin.gp_pin); 132 res = GPIO_PIN_GETFLAGS(sc->sc_pdev, pin.gp_pin, 133 &pin.gp_flags); 137 GPIO_PIN_GETCAPS(sc->sc_pdev, pin.gp_pin, &pin.gp_caps); 138 GPIO_PIN_GETNAME(sc->sc_pdev, pin [all...] |
/freebsd-10.1-release/sys/dev/acpica/ |
H A D | acpi_pcibvar.h | 36 int slot, int pin); 39 int acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin,
|
/freebsd-10.1-release/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_gpio.c | 71 uint32_t pin; member in struct:bcm_gpio_sysctl 112 bcm_gpio_pin_is_ro(struct bcm_gpio_softc *sc, int pin) argument 117 if (pin == sc->sc_ro_pins[i]) 123 bcm_gpio_get_function(struct bcm_gpio_softc *sc, uint32_t pin) argument 127 /* Five banks, 10 pins per bank, 3 bits per pin. */ 128 bank = pin / 10; 129 offset = (pin - bank * 10) * 3; 212 bcm_gpio_set_function(struct bcm_gpio_softc *sc, uint32_t pin, uint32_t f) argument 219 /* Five banks, 10 pins per bank, 3 bits per pin. */ 220 bank = pin / 1 230 bcm_gpio_set_pud(struct bcm_gpio_softc *sc, uint32_t pin, uint32_t state) argument 249 bcm_gpio_set_alternate(device_t dev, uint32_t pin, uint32_t nfunc) argument 275 bcm_gpio_pin_configure(struct bcm_gpio_softc *sc, struct gpio_pin *pin, unsigned int flags) argument 322 bcm_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 343 bcm_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 364 bcm_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 385 bcm_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 422 bcm_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 454 bcm_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) argument 480 bcm_gpio_pin_toggle(device_t dev, uint32_t pin) argument [all...] |
/freebsd-10.1-release/sys/mips/cavium/ |
H A D | octeon_gpio.c | 61 int pin; member in struct:octeon_gpio_pin 78 struct gpio_pin *pin, uint32_t flags); 94 static int octeon_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps); 95 static int octeon_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t 97 static int octeon_gpio_pin_getname(device_t dev, uint32_t pin, char *name); 98 static int octeon_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags); 99 static int octeon_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value); 100 static int octeon_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val); 101 static int octeon_gpio_pin_toggle(device_t dev, uint32_t pin); 104 octeon_gpio_pin_configure(struct octeon_gpio_softc *sc, struct gpio_pin *pin, argument 146 octeon_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 167 octeon_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 188 octeon_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 209 octeon_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 236 octeon_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 260 octeon_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) argument 283 octeon_gpio_pin_toggle(device_t dev, uint32_t pin) argument [all...] |
/freebsd-10.1-release/sys/powerpc/wii/ |
H A D | wii_gpio.c | 218 wiigpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 222 if (pin >= WIIGPIO_NPINS) 225 *caps = sc->sc_pins[pin].gp_caps; 231 wiigpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) argument 236 if (pin >= WIIGPIO_NPINS) 240 reg = wiigpio_read(sc, WIIGPIO_PINBANK(pin)); 241 *val = !!(reg & WIIGPIO_PINMASK(pin)); 248 wiigpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 253 if (pin >= WIIGPIO_NPINS) 256 pinbank = WIIGPIO_PINBANK(pin); 269 wiigpio_pin_toggle(device_t dev, uint32_t pin) argument 291 wiigpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 319 wiigpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 334 wiigpio_pin_getname(device_t dev, uint32_t pin, char *name) argument [all...] |
/freebsd-10.1-release/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_old_handlers_wps.c | 73 char *pin = NULL; local 78 DBUS_TYPE_STRING, &pin, DBUS_TYPE_INVALID)) 90 if (os_strlen(pin) > 0) 91 ret = wpas_wps_start_pin(wpa_s, _bssid, pin, 0, 108 dbus_message_append_args(reply, DBUS_TYPE_STRING, &pin, 133 char *pin = NULL; local 138 DBUS_TYPE_STRING, &pin, DBUS_TYPE_INVALID)) 142 ret = wpas_wps_start_reg(wpa_s, NULL, pin, NULL); 144 ret = wpas_wps_start_reg(wpa_s, bssid, pin, NULL);
|
/freebsd-10.1-release/sys/mips/atheros/ |
H A D | ar71xx_gpio.c | 68 struct gpio_pin *pin, uint32_t flags); 83 static int ar71xx_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps); 84 static int ar71xx_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t 86 static int ar71xx_gpio_pin_getname(device_t dev, uint32_t pin, char *name); 87 static int ar71xx_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags); 88 static int ar71xx_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value); 89 static int ar71xx_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val); 90 static int ar71xx_gpio_pin_toggle(device_t dev, uint32_t pin); 115 ar71xx_gpio_pin_configure(struct ar71xx_gpio_softc *sc, struct gpio_pin *pin, argument 120 mask = 1 << pin 168 ar71xx_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument 189 ar71xx_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument 210 ar71xx_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 231 ar71xx_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument 258 ar71xx_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 280 ar71xx_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) argument 299 ar71xx_gpio_pin_toggle(device_t dev, uint32_t pin) argument [all...] |
/freebsd-10.1-release/sys/powerpc/include/ |
H A D | intr_machdep.h | 34 #define MAP_IRQ(node, pin) powerpc_get_irq(node, pin)
|