/dragonfly/sys/dev/misc/gpio/ |
H A D | gpio.c | 142 int pin) in gpio_consumer_detach() argument 214 if (pin < 0 || pin >= gp->npins || in gpio_map() 215 gp->pins[pin].pin_mapped || gp->pins[pin].pin_opened) { in gpio_map() 239 int pin, i; in gpio_unmap() local 301 gpio_pin_t *pin; in gpio_open() local 308 if (pin->pin_opened || pin->pin_mapped) { in gpio_open() 322 gpio_pin_t *pin; in gpio_close() local 413 if (pin->pin_opened || pin->pin_mapped) { in gpio_ioctl() 488 if (gpsa->pin < 0 || gpsa->pin >= gp->npins) { in gpio_master_ioctl() 493 pin = &gp->pins[gpsa->pin]; in gpio_master_ioctl() [all …]
|
H A D | gpio.h | 125 int pin; member 141 int pin, u_int32_t mask); 142 int gpio_consumer_detach(const char *consumer, struct gpio *gp, int pin); 147 int gpio_pin_read(struct gpio *gp, struct gpio_mapping *map, int pin); 148 void gpio_pin_write(struct gpio *gp, struct gpio_mapping *map, int pin, int data); 149 void gpio_pin_ctl(struct gpio *gp, struct gpio_mapping *map, int pin, int flags); 150 int gpio_pin_caps(struct gpio *gp, struct gpio_mapping *map, int pin);
|
H A D | gpio_led.c | 52 int pin; member 182 led_attach(struct gpio *gp, void *arg, int pin, u_int32_t mask) in led_attach() argument 194 sc->pin = pin; in led_attach() 197 sc->gp_map = gpio_map(gp, NULL, pin, 1); in led_attach() 212 sc->name, sc->gp->driver_name, pin); in led_attach() 218 led_detach(struct gpio *gp, void *arg, int pin) in led_detach() argument
|
/dragonfly/sys/dev/drm/amd/display/dc/gpio/ |
H A D | hw_gpio.c | 66 store_registers(pin); in dal_hw_gpio_open() 135 restore_registers(pin); in dal_hw_gpio_close() 180 struct hw_gpio *pin, in dal_hw_gpio_construct() argument 185 pin->base.ctx = ctx; in dal_hw_gpio_construct() 186 pin->base.id = id; in dal_hw_gpio_construct() 187 pin->base.en = en; in dal_hw_gpio_construct() 191 pin->store.mask = 0; in dal_hw_gpio_construct() 192 pin->store.a = 0; in dal_hw_gpio_construct() 193 pin->store.en = 0; in dal_hw_gpio_construct() 194 pin->store.mux = 0; in dal_hw_gpio_construct() [all …]
|
H A D | gpio_base.c | 63 if (gpio->pin) { in dal_gpio_open_ex() 78 if (!gpio->pin) { in dal_gpio_get_value() 83 return gpio->pin->funcs->get_value(gpio->pin, value); in dal_gpio_get_value() 90 if (!gpio->pin) { in dal_gpio_set_value() 95 return gpio->pin->funcs->set_value(gpio->pin, value); in dal_gpio_set_value() 108 if (!gpio->pin) { in dal_gpio_change_mode() 113 return gpio->pin->funcs->change_mode(gpio->pin, mode); in dal_gpio_change_mode() 132 if (!gpio->pin) { in dal_gpio_set_config() 137 return gpio->pin->funcs->set_config(gpio->pin, config_data); in dal_gpio_set_config() 226 dal_gpio_service_close(gpio->service, &gpio->pin); in dal_gpio_close() [all …]
|
H A D | gpio_service.c | 231 struct hw_gpio_pin *pin; in dal_gpio_service_open() local 276 if (!pin) { in dal_gpio_service_open() 281 if (!pin->funcs->open(pin, mode)) { in dal_gpio_service_open() 283 dal_gpio_service_close(service, &pin); in dal_gpio_service_open() 288 *ptr = pin; in dal_gpio_service_open() 296 struct hw_gpio_pin *pin; in dal_gpio_service_close() local 303 pin = *ptr; in dal_gpio_service_close() 305 if (pin) { in dal_gpio_service_close() 306 set_pin_free(service, pin->id, pin->en); in dal_gpio_service_close() 308 pin->funcs->close(pin); in dal_gpio_service_close() [all …]
|
H A D | hw_gpio.h | 52 struct hw_gpio_pin *pin, 55 const struct hw_gpio_pin *pin, 58 const struct hw_gpio_pin *pin, 61 struct hw_gpio_pin *pin, 64 struct hw_gpio_pin *pin, 67 struct hw_gpio_pin *pin); 113 struct hw_gpio *pin, 119 struct hw_gpio_pin *pin, 123 const struct hw_gpio_pin *pin, 127 struct hw_gpio *pin, [all …]
|
H A D | hw_ddc.c | 46 struct hw_ddc *pin) in destruct() argument 48 dal_hw_gpio_destruct(&pin->base); in destruct() 54 struct hw_ddc *pin = HW_DDC_FROM_BASE(*ptr); in destroy() local 56 destruct(pin); in destroy() 58 kfree(pin); in destroy() 217 struct hw_ddc *pin; in dal_hw_ddc_create() local 224 pin = kzalloc(sizeof(struct hw_ddc), GFP_KERNEL); in dal_hw_ddc_create() 225 if (!pin) { in dal_hw_ddc_create() 230 construct(pin, id, en, ctx); in dal_hw_ddc_create() 231 return &pin->base.base; in dal_hw_ddc_create()
|
/dragonfly/sys/bus/gpio/gpio_intel/ |
H A D | gpio_intel.c | 75 uint16_t pin); 115 sc->intrmaps[i].pin = -1; in gpio_intel_attach() 118 sc->iomaps[i].pin = -1; in gpio_intel_attach() 221 if (sc->intrmaps[i].pin == pin) { in gpio_intel_alloc_intr() 231 if (sc->intrmaps[i].pin == pin) in gpio_intel_alloc_intr() 312 if (sc->iomaps[i].pin == pin) { in gpio_intel_alloc_io_pin() 330 map->pin = pin; in gpio_intel_alloc_io_pin() 350 map->pin = -1; in gpio_intel_release_io_pin() 362 KKASSERT(map->pin >= 0); in gpio_intel_read_pin() 378 KKASSERT(map->pin >= 0); in gpio_intel_write_pin() [all …]
|
H A D | gpio_cherryview.c | 94 uint16_t pin, int flags); 96 uint16_t pin); 98 uint16_t pin, int value); 247 reg1 = chvgpio_read(sc, PIN_CTL0(pin)); in gpio_cherryview_map_intr() 248 reg2 = chvgpio_read(sc, PIN_CTL1(pin)); in gpio_cherryview_map_intr() 344 if (sc->intrmaps[i].pin != -1) { in gpio_cherryview_map_intr() 367 sc->intrmaps[i].pin = pin; in gpio_cherryview_map_intr() 385 uint16_t pin = map->pin; in gpio_cherryview_unmap_intr() local 393 map->pin = -1; in gpio_cherryview_unmap_intr() 400 reg = chvgpio_read(sc, PIN_CTL1(pin)); in gpio_cherryview_unmap_intr() [all …]
|
H A D | gpio_intel_var.h | 10 int pin; member 20 int pin; member 38 uint16_t pin, int trigger, int polarity, int termination); 46 uint16_t pin, int flags); 48 uint16_t pin, int value); 50 uint16_t pin);
|
/dragonfly/sys/dev/drm/radeon/ |
H A D | dce6_afmt.c | 76 offset = rdev->audio.pin[i].offset; in dce6_afmt_get_connected_pins() 91 struct r600_audio_pin *pin = NULL; in dce6_audio_get_pin() local 98 pin = &rdev->audio.pin[i]; in dce6_audio_get_pin() 105 if (dig->pin == pin) in dce6_audio_get_pin() 111 return pin; in dce6_audio_get_pin() 114 if (!pin) in dce6_audio_get_pin() 116 return pin; in dce6_audio_get_pin() 157 WREG32_ENDPOINT(dig->pin->offset, in dce6_afmt_write_latency_fields() 184 WREG32_ENDPOINT(dig->pin->offset, in dce6_afmt_hdmi_write_speaker_allocation() 211 WREG32_ENDPOINT(dig->pin->offset, in dce6_afmt_dp_write_speaker_allocation() [all …]
|
H A D | radeon_audio.c | 259 if (!pin) in radeon_audio_enable() 267 if (dig->pin == pin) in radeon_audio_enable() 331 rdev->audio.pin[i].channels = -1; in radeon_audio_init() 332 rdev->audio.pin[i].rate = -1; in radeon_audio_init() 334 rdev->audio.pin[i].status_bits = 0; in radeon_audio_init() 335 rdev->audio.pin[i].category_code = 0; in radeon_audio_init() 336 rdev->audio.pin[i].connected = false; in radeon_audio_init() 338 rdev->audio.pin[i].id = i; in radeon_audio_init() 475 if (!dig->pin) in radeon_audio_detect() 480 dig->pin = NULL; in radeon_audio_detect() [all …]
|
/dragonfly/sys/dev/drm/i915/ |
H A D | intel_i2c.c | 80 unsigned int pin) in get_gmbus_pin() argument 83 return &gmbus_pins_cnp[pin]; in get_gmbus_pin() 91 return &gmbus_pins[pin]; in get_gmbus_pin() 95 unsigned int pin) in intel_gmbus_is_valid_pin() argument 110 return pin < size && in intel_gmbus_is_valid_pin() 668 unsigned int pin; in intel_setup_gmbus() local 684 for (pin = 0; pin < ARRAY_SIZE(dev_priv->gmbus); pin++) { in intel_setup_gmbus() 730 while (pin--) { in intel_setup_gmbus() 741 unsigned int pin) in intel_gmbus_get_adapter() argument 774 unsigned int pin; in intel_teardown_gmbus() local [all …]
|
H A D | intel_hotplug.c | 86 enum port intel_hpd_pin_to_port(enum hpd_pin pin) in intel_hpd_pin_to_port() argument 88 switch (pin) { in intel_hpd_pin_to_port() 153 enum hpd_pin pin) in intel_hpd_irq_storm_detect() argument 162 dev_priv->hotplug.stats[pin].count = 0; in intel_hpd_irq_storm_detect() 170 dev_priv->hotplug.stats[pin].count++; in intel_hpd_irq_storm_detect() 172 dev_priv->hotplug.stats[pin].count); in intel_hpd_irq_storm_detect() 185 enum hpd_pin pin; in intel_hpd_irq_storm_disable() local 200 pin = intel_encoder->hpd_pin; in intel_hpd_irq_storm_disable() 201 if (pin == HPD_NONE || in intel_hpd_irq_storm_disable() 629 if (pin == HPD_NONE) in intel_hpd_disable() [all …]
|
/dragonfly/usr.bin/btpin/ |
H A D | btpin.c | 50 char *pin = NULL; in main() local 89 pin = optarg; in main() 110 if (pin == NULL) { in main() 116 pin = (char *)rp.pin; in main() 118 *pin++ = '0' + (random() % 10); in main() 120 printf("PIN: %.*s\n", HCI_PIN_SIZE, rp.pin); in main() 125 strncpy((char *)rp.pin, pin, HCI_PIN_SIZE); in main()
|
/dragonfly/usr.sbin/bthcid/ |
H A D | parser.y | 109 | pin 168 pin: T_PIN T_STRING 170 if (key->pin != NULL) 171 free(key->pin); 173 key->pin = strdup($2); 182 if (key->pin != NULL) 183 free(key->pin); 185 key->pin = NULL; 284 (lkey->pin != NULL)? lkey->pin : "nopin", in dump_config() 406 if (lkey->pin != NULL) in free_key() [all …]
|
H A D | hci.c | 187 uint8_t *pin; in process_pin_code_request_event() local 195 pin = lookup_pin(&addr->bt_bdaddr, bdaddr); in process_pin_code_request_event() 196 if (pin != NULL) in process_pin_code_request_event() 197 return send_pin_code_reply(sock, addr, bdaddr, pin); in process_pin_code_request_event() 239 bdaddr_t *bdaddr, uint8_t *pin) in send_pin_code_reply() argument 243 if (pin != NULL) { in send_pin_code_reply() 252 memcpy(cp.pin, pin, HCI_PIN_SIZE); in send_pin_code_reply() 255 while (n > 0 && pin[n - 1] == 0) in send_pin_code_reply()
|
H A D | client.c | 66 uint8_t pin[HCI_PIN_SIZE]; /* PIN */ member 216 send_pin_code_reply(item->hci, &sa, &item->raddr, rp.pin); in process_client() 238 memcpy(item->pin, rp.pin, HCI_PIN_SIZE); in process_client() 318 static uint8_t pin[HCI_PIN_SIZE]; in lookup_pin() local 335 memcpy(pin, item->pin, sizeof(pin)); in lookup_pin() 342 return pin; in lookup_pin()
|
/dragonfly/contrib/gcc-8.0/libbacktrace/ |
H A D | elf.c | 1080 pin = *ppin; in elf_zlib_fetch() 1100 next = pin[0] | (pin[1] << 8) | (pin[2] << 16) | (pin[3] << 24); in elf_zlib_fetch() 1105 pin += 4; in elf_zlib_fetch() 1110 *ppin = pin; in elf_zlib_fetch() 1704 val = (pin[0] << 8) | pin[1]; in elf_zlib_inflate() 1711 pin += 2; in elf_zlib_inflate() 1721 ++pin; in elf_zlib_inflate() 1759 --pin; in elf_zlib_inflate() 1771 len = pin[0] | (pin[1] << 8); in elf_zlib_inflate() 1772 lenc = pin[2] | (pin[3] << 8); in elf_zlib_inflate() [all …]
|
/dragonfly/sys/dev/acpica/ |
H A D | acpi_pcib.c | 207 acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin, in acpi_pcib_route_interrupt() argument 220 pin--; in acpi_pcib_route_interrupt() 226 pr.pr_pin = pin; in acpi_pcib_route_interrupt() 231 pci_get_slot(dev), 'A' + pin); in acpi_pcib_route_interrupt() 238 pci_get_bus(dev), pci_get_slot(dev), 'A' + pin); in acpi_pcib_route_interrupt() 258 "invalid GSI %d\n", pci_get_slot(dev), 'A' + pin, in acpi_pcib_route_interrupt() 265 "GSI %d, IRQ %d\n", pci_get_slot(dev), 'A' + pin, in acpi_pcib_route_interrupt() 290 pci_get_slot(dev), 'A' + pin, interrupt, acpi_name(lnkdev)); in acpi_pcib_route_interrupt()
|
/dragonfly/contrib/wpa_supplicant/src/wps/ |
H A D | wps_registrar.c | 82 u8 *pin; member 94 bin_clear_free(pin->pin, pin->pin_len); in wps_free_pin() 95 os_free(pin); in wps_free_pin() 102 wps_free_pin(pin); in wps_remove_pin() 765 if (pin->wildcard_uuid == 1 && !(pin->flags & PIN_LOCKED)) { in wps_registrar_invalidate_unused() 800 p->pin = os_memdup(pin, pin_len); in wps_registrar_add_pin() 888 if (dev_pw && pin->pin && in wps_registrar_invalidate_wildcard_pin() 890 os_memcmp_const(dev_pw, pin->pin, dev_pw_len) != 0)) in wps_registrar_invalidate_wildcard_pin() 939 found = pin; in wps_registrar_get_pin() 954 found = pin; in wps_registrar_get_pin() [all …]
|
/dragonfly/sys/bus/gpio/gpio_acpi/ |
H A D | gpio_acpi.c | 56 u_int pin; member 319 ksnprintf(buf, sizeof(buf), "_E%02X", info->pin); in gpio_acpi_handle_event() 321 ksnprintf(buf, sizeof(buf), "_L%02X", info->pin); in gpio_acpi_handle_event() 323 if (info->pin <= 255 && ACPI_SUCCESS(AcpiGetHandle(handle, buf, &h))) { in gpio_acpi_handle_event() 334 arg.Integer.Value = info->pin; in gpio_acpi_handle_event() 358 uint16_t pin; in gpio_acpi_do_map_aei() local 371 pin = gpio->PinTable[0]; in gpio_acpi_do_map_aei() 373 if (GPIO_ALLOC_INTR(sc->parent, pin, gpio->Triggering, gpio->Polarity, in gpio_acpi_do_map_aei() 376 "Failed to allocate AEI interrupt on pin %d\n", pin); in gpio_acpi_do_map_aei() 381 info->pin = pin; in gpio_acpi_do_map_aei()
|
/dragonfly/sys/dev/drm/amd/display/dc/gpio/dce110/ |
H A D | hw_factory_dce110.c | 111 struct hw_gpio_pin *pin, in define_ddc_registers() argument 114 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin); in define_ddc_registers() 116 switch (pin->id) { in define_ddc_registers() 135 static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) in define_hpd_registers() argument 137 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); in define_hpd_registers()
|
/dragonfly/sys/dev/drm/amd/display/dc/gpio/dce80/ |
H A D | hw_factory_dce80.c | 115 struct hw_gpio_pin *pin, in define_ddc_registers() argument 118 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin); in define_ddc_registers() 120 switch (pin->id) { in define_ddc_registers() 139 static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) in define_hpd_registers() argument 141 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); in define_hpd_registers()
|