/openbsd/sys/dev/gpio/ |
H A D | gpioiic.c | 48 struct gpio_pinmap sc_map; member 123 sc->sc_map.pm_map = sc->__map; in gpioiic_attach() 125 &sc->sc_map)) { in gpioiic_attach() 139 caps = gpio_pin_caps(sc->sc_gpio, &sc->sc_map, sc->sc_pin_sda); in gpioiic_attach() 148 printf(": SDA[%d]", sc->sc_map.pm_map[sc->sc_pin_sda]); in gpioiic_attach() 164 caps = gpio_pin_caps(sc->sc_gpio, &sc->sc_map, sc->sc_pin_scl); in gpioiic_attach() 169 printf(", SCL[%d]", sc->sc_map.pm_map[sc->sc_pin_scl]); in gpioiic_attach() 205 gpio_pin_unmap(sc->sc_gpio, &sc->sc_map); in gpioiic_attach() 271 gpio_pin_write(sc->sc_gpio, &sc->sc_map, sc->sc_pin_sda, in gpioiic_bb_set_bits() 273 gpio_pin_write(sc->sc_gpio, &sc->sc_map, sc->sc_pin_scl, in gpioiic_bb_set_bits() [all …]
|
H A D | gpioow.c | 39 struct gpio_pinmap sc_map; member 109 sc->sc_map.pm_map = sc->__map; in gpioow_attach() 111 &sc->sc_map)) { in gpioow_attach() 117 caps = gpio_pin_caps(sc->sc_gpio, &sc->sc_map, GPIOOW_PIN_DATA); in gpioow_attach() 126 printf(": DATA[%d]", sc->sc_map.pm_map[GPIOOW_PIN_DATA]); in gpioow_attach() 155 gpio_pin_unmap(sc->sc_gpio, &sc->sc_map); in gpioow_attach() 164 gpio_pin_unmap(sc->sc_gpio, &sc->sc_map); in gpioow_detach() 213 gpio_pin_ctl(sc->sc_gpio, &sc->sc_map, GPIOOW_PIN_DATA, in gpioow_bb_rx() 228 gpio_pin_ctl(sc->sc_gpio, &sc->sc_map, GPIOOW_PIN_DATA, in gpioow_bb_tx() 238 return (gpio_pin_read(sc->sc_gpio, &sc->sc_map, GPIOOW_PIN_DATA) == in gpioow_bb_get() [all …]
|
H A D | gpiodcf.c | 49 struct gpio_pinmap sc_map; member 141 sc->sc_map.pm_map = sc->__map; in gpiodcf_attach() 143 &sc->sc_map)) { in gpiodcf_attach() 148 caps = gpio_pin_caps(sc->sc_gpio, &sc->sc_map, GPIODCF_PIN_DATA); in gpiodcf_attach() 153 printf(": DATA[%d]", sc->sc_map.pm_map[GPIODCF_PIN_DATA]); in gpiodcf_attach() 155 gpio_pin_ctl(sc->sc_gpio, &sc->sc_map, GPIODCF_PIN_DATA, sc->sc_data); in gpiodcf_attach() 205 gpio_pin_unmap(sc->sc_gpio, &sc->sc_map); in gpiodcf_attach() 226 gpio_pin_unmap(sc->sc_gpio, &sc->sc_map); in gpiodcf_detach() 239 return (gpio_pin_read(sc->sc_gpio, &sc->sc_map, GPIODCF_PIN_DATA) == in gpiodcf_signal()
|
/openbsd/sys/arch/loongson/dev/ |
H A D | gdiumiic.c | 51 struct gpio_pinmap sc_map; member 158 sc->sc_map.pm_map = sc->__map; in gdiumiic_attach() 160 &sc->sc_map)) { in gdiumiic_attach() 166 caps = gpio_pin_caps(sc->sc_gpio, &sc->sc_map, GPIOIIC_PIN_SDA); in gdiumiic_attach() 175 printf(": SDA[%d]", sc->sc_map.pm_map[GPIOIIC_PIN_SDA]); in gdiumiic_attach() 193 caps = gpio_pin_caps(sc->sc_gpio, &sc->sc_map, GPIOIIC_PIN_SCL); in gdiumiic_attach() 198 printf(", SCL[%d]", sc->sc_map.pm_map[GPIOIIC_PIN_SCL]); in gdiumiic_attach() 238 gpio_pin_unmap(sc->sc_gpio, &sc->sc_map); in gdiumiic_attach() 304 gpio_pin_write(sc->sc_gpio, &sc->sc_map, GPIOIIC_PIN_SDA, in gdiumiic_bb_set_bits() 306 gpio_pin_write(sc->sc_gpio, &sc->sc_map, GPIOIIC_PIN_SCL, in gdiumiic_bb_set_bits() [all …]
|
/openbsd/sys/dev/hid/ |
H A D | hidcc.c | 50 keysym_t *sc_map; member 683 free(sc->sc_map, M_USBDEV, sc->sc_mapsiz * sizeof(*sc->sc_map)); in hidcc_detach() 776 sc->sc_keydesc[0].map = sc->sc_map; in hidcc_attach_wskbd() 857 sc->sc_map = mallocarray(nsyms, 2 * sizeof(*sc->sc_map), M_USBDEV, in hidcc_parse() 966 sc->sc_map[sc->sc_maplen++] = KS_KEYCODE(sc->sc_isarray ? usage : bit); in hidcc_add_key() 967 sc->sc_map[sc->sc_maplen++] = ks->ks_key; in hidcc_add_key()
|
/openbsd/sys/dev/wscons/ |
H A D | wskbd.c | 172 struct wscons_keymap *sc_map; /* current translation map */ member 664 free(sc->sc_map, M_DEVBUF, in wskbd_detach() 1190 error = copyout(sc->sc_map, umdp->map, in wskbd_displayioctl_sc() 1700 kp = sc->sc_map + value; in wskbd_translate() 1927 free(sc->sc_map, M_DEVBUF, sc->sc_maplen * sizeof(*sc->sc_map)); in wskbd_set_keymap() 1928 sc->sc_map = map; in wskbd_set_keymap()
|
/openbsd/sys/net/ |
H A D | if_aggr.c | 423 struct aggr_map *sc_map; member 573 sc->sc_map = NULL; /* no links yet */ in aggr_clone_create() 713 map = SMR_PTR_GET(&sc->sc_map); in aggr_enqueue() 735 map = SMR_PTR_GET(&sc->sc_map); in aggr_start() 1583 SMR_PTR_SET_LOCKED(&sc->sc_map, map); in aggr_map() 2574 KASSERT(SMR_PTR_GET_LOCKED(&sc->sc_map) == NULL); in aggr_down() 2674 if (SMR_PTR_GET(&sc->sc_map) != NULL) in aggr_media_status()
|
/openbsd/sys/dev/pci/ |
H A D | if_qwz_pci.c | 344 bus_addr_t sc_map; member 742 &psc->sc_st, &psc->sc_sh, &psc->sc_map, &psc->sc_mapsize, 0)) { in qwz_pci_attach() 747 sc->mem = psc->sc_map; in qwz_pci_attach()
|
H A D | if_qwx_pci.c | 340 bus_addr_t sc_map; member 802 &psc->sc_st, &psc->sc_sh, &psc->sc_map, &psc->sc_mapsize, 0)) { in qwx_pci_attach() 807 sc->mem = psc->sc_map; in qwx_pci_attach()
|