| /openbsd/src/lib/libfido2/src/ |
| D | dev.c | 17 set_random_report_len(fido_dev_t *dev) in set_random_report_len() argument 19 dev->rx_len = CTAP_MIN_REPORT_LEN + in set_random_report_len() 21 dev->tx_len = CTAP_MIN_REPORT_LEN + in set_random_report_len() 27 fido_dev_set_extension_flags(fido_dev_t *dev, const fido_cbor_info_t *info) in fido_dev_set_extension_flags() argument 34 dev->flags |= FIDO_DEV_CRED_PROT; in fido_dev_set_extension_flags() 38 fido_dev_set_option_flags(fido_dev_t *dev, const fido_cbor_info_t *info) in fido_dev_set_option_flags() argument 46 dev->flags |= val[i] ? in fido_dev_set_option_flags() 51 dev->flags |= FIDO_DEV_CREDMAN; in fido_dev_set_option_flags() 53 dev->flags |= val[i] ? in fido_dev_set_option_flags() 57 dev->flags |= FIDO_DEV_TOKEN_PERMS; in fido_dev_set_option_flags() [all …]
|
| /openbsd/src/sys/dev/pci/drm/ |
| D | drm_drv.c | 159 static struct drm_minor **drm_minor_get_slot(struct drm_device *dev, in drm_minor_get_slot() argument 164 return &dev->primary; in drm_minor_get_slot() 166 return &dev->render; in drm_minor_get_slot() 168 return &dev->accel; in drm_minor_get_slot() 174 static void drm_minor_alloc_release(struct drm_device *dev, void *data) in drm_minor_alloc_release() argument 178 WARN_ON(dev != minor->dev); in drm_minor_alloc_release() 201 static int drm_minor_alloc(struct drm_device *dev, enum drm_minor_type type) in drm_minor_alloc() argument 206 minor = drmm_kzalloc(dev, sizeof(*minor), GFP_KERNEL); in drm_minor_alloc() 211 minor->dev = dev; in drm_minor_alloc() 221 r = drmm_add_action_or_reset(dev, drm_minor_alloc_release, minor); in drm_minor_alloc() [all …]
|
| D | drm_vblank.c | 157 drm_get_last_vbltimestamp(struct drm_device *dev, unsigned int pipe, 170 drm_vblank_crtc(struct drm_device *dev, unsigned int pipe) in drm_vblank_crtc() argument 172 return &dev->vblank[pipe]; in drm_vblank_crtc() 178 return drm_vblank_crtc(crtc->dev, drm_crtc_index(crtc)); in drm_crtc_vblank_crtc() 182 static void store_vblank(struct drm_device *dev, unsigned int pipe, in store_vblank() argument 186 struct drm_vblank_crtc *vblank = drm_vblank_crtc(dev, pipe); in store_vblank() 188 assert_spin_locked(&dev->vblank_time_lock); in store_vblank() 198 static u32 drm_max_vblank_count(struct drm_device *dev, unsigned int pipe) in drm_max_vblank_count() argument 200 struct drm_vblank_crtc *vblank = drm_vblank_crtc(dev, pipe); in drm_max_vblank_count() 202 return vblank->max_vblank_count ?: dev->max_vblank_count; in drm_max_vblank_count() [all …]
|
| D | drm_mode_config.c | 37 int drm_modeset_register_all(struct drm_device *dev) in drm_modeset_register_all() argument 41 ret = drm_plane_register_all(dev); in drm_modeset_register_all() 45 ret = drm_crtc_register_all(dev); in drm_modeset_register_all() 49 ret = drm_encoder_register_all(dev); in drm_modeset_register_all() 53 ret = drm_connector_register_all(dev); in drm_modeset_register_all() 60 drm_encoder_unregister_all(dev); in drm_modeset_register_all() 62 drm_crtc_unregister_all(dev); in drm_modeset_register_all() 64 drm_plane_unregister_all(dev); in drm_modeset_register_all() 69 void drm_modeset_unregister_all(struct drm_device *dev) in drm_modeset_unregister_all() argument 71 drm_connector_unregister_all(dev); in drm_modeset_unregister_all() [all …]
|
| D | files.drm | 3 #file dev/pci/drm/aperture.c drm 4 file dev/pci/drm/dma-resv.c drm 5 file dev/pci/drm/drm_agpsupport.c drm & agp 6 file dev/pci/drm/drm_aperture.c drm 7 file dev/pci/drm/drm_atomic.c drm 8 file dev/pci/drm/drm_atomic_helper.c drm 9 file dev/pci/drm/drm_atomic_state_helper.c drm 10 file dev/pci/drm/drm_atomic_uapi.c drm 11 file dev/pci/drm/drm_auth.c drm 12 file dev/pci/drm/drm_blend.c drm [all …]
|
| D | drm_file.c | 55 bool drm_dev_needs_global_mutex(struct drm_device *dev) in drm_dev_needs_global_mutex() argument 63 if (dev->driver->load || dev->driver->unload) in drm_dev_needs_global_mutex() 133 struct drm_device *dev = minor->dev; in drm_file_alloc() local 163 if (drm_core_check_feature(dev, DRIVER_GEM)) in drm_file_alloc() 164 drm_gem_open(dev, file); in drm_file_alloc() 166 if (drm_core_check_feature(dev, DRIVER_SYNCOBJ)) in drm_file_alloc() 171 if (dev->driver->open) { in drm_file_alloc() 172 ret = dev->driver->open(dev, file); in drm_file_alloc() 181 if (drm_core_check_feature(dev, DRIVER_SYNCOBJ)) in drm_file_alloc() 183 if (drm_core_check_feature(dev, DRIVER_GEM)) in drm_file_alloc() [all …]
|
| D | drm_auth.c | 66 lockdep_is_held(&fpriv->minor->dev->master_mutex)); in drm_is_current_master_locked() 69 return fpriv->is_master && drm_lease_owner(fpriv->master) == fpriv->minor->dev->master; in drm_is_current_master_locked() 97 int drm_getmagic(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_getmagic() argument 102 mutex_lock(&dev->master_mutex); in drm_getmagic() 110 mutex_unlock(&dev->master_mutex); in drm_getmagic() 112 drm_dbg_core(dev, "%u\n", auth->magic); in drm_getmagic() 117 int drm_authmagic(struct drm_device *dev, void *data, in drm_authmagic() argument 123 drm_dbg_core(dev, "%u\n", auth->magic); in drm_authmagic() 125 mutex_lock(&dev->master_mutex); in drm_authmagic() 131 mutex_unlock(&dev->master_mutex); in drm_authmagic() [all …]
|
| D | drm_crtc_internal.h | 79 int drm_crtc_register_all(struct drm_device *dev); 80 void drm_crtc_unregister_all(struct drm_device *dev); 86 drm_create_scaling_filter_prop(struct drm_device *dev, 89 int drm_mode_getcrtc(struct drm_device *dev, 91 int drm_mode_setcrtc(struct drm_device *dev, 96 int drm_modeset_register_all(struct drm_device *dev); 97 void drm_modeset_unregister_all(struct drm_device *dev); 98 void drm_mode_config_validate(struct drm_device *dev); 104 int drm_mode_getresources(struct drm_device *dev, 109 int drm_mode_create_dumb(struct drm_device *dev, [all …]
|
| D | drm_probe_helper.c | 95 struct drm_device *dev = connector->dev; in drm_mode_validate_pipeline() local 128 drm_for_each_crtc(crtc, dev) { in drm_mode_validate_pipeline() 171 mode = drm_mode_create_from_cmdline_mode(connector->dev, in drm_helper_probe_add_cmdline_mode() 226 static void drm_kms_helper_disable_hpd(struct drm_device *dev) in drm_kms_helper_disable_hpd() argument 231 drm_connector_list_iter_begin(dev, &conn_iter); in drm_kms_helper_disable_hpd() 242 static bool drm_kms_helper_enable_hpd(struct drm_device *dev) in drm_kms_helper_enable_hpd() argument 248 drm_connector_list_iter_begin(dev, &conn_iter); in drm_kms_helper_enable_hpd() 266 static void reschedule_output_poll_work(struct drm_device *dev) in reschedule_output_poll_work() argument 270 if (dev->mode_config.delayed_event) in reschedule_output_poll_work() 283 schedule_delayed_work(&dev->mode_config.output_poll_work, delay); in reschedule_output_poll_work() [all …]
|
| D | drm_connector.c | 197 struct drm_device *dev = connector->dev; in drm_connector_free() local 199 drm_mode_object_unregister(dev, &connector->base); in drm_connector_free() 206 struct drm_device *dev = in drm_connector_free_work_fn() local 208 struct drm_mode_config *config = &dev->mode_config; in drm_connector_free_work_fn() 217 drm_mode_object_unregister(dev, &connector->base); in drm_connector_free_work_fn() 222 static int __drm_connector_init(struct drm_device *dev, in __drm_connector_init() argument 228 struct drm_mode_config *config = &dev->mode_config; in __drm_connector_init() 233 WARN_ON(drm_drv_uses_atomic_modeset(dev) && in __drm_connector_init() 237 ret = __drm_mode_object_add(dev, &connector->base, in __drm_connector_init() 244 connector->dev = dev; in __drm_connector_init() [all …]
|
| D | drm_modeset_helper.c | 50 void drm_helper_move_panel_connectors_to_head(struct drm_device *dev) in drm_helper_move_panel_connectors_to_head() argument 57 spin_lock_irq(&dev->mode_config.connector_list_lock); in drm_helper_move_panel_connectors_to_head() 59 &dev->mode_config.connector_list, head) { in drm_helper_move_panel_connectors_to_head() 66 list_splice(&panel_list, &dev->mode_config.connector_list); in drm_helper_move_panel_connectors_to_head() 67 spin_unlock_irq(&dev->mode_config.connector_list_lock); in drm_helper_move_panel_connectors_to_head() 80 void drm_helper_mode_fill_fb_struct(struct drm_device *dev, in drm_helper_mode_fill_fb_struct() argument 86 fb->dev = dev; in drm_helper_mode_fill_fb_struct() 87 fb->format = drm_get_format_info(dev, mode_cmd); in drm_helper_mode_fill_fb_struct() 141 int drm_crtc_init(struct drm_device *dev, struct drm_crtc *crtc, in drm_crtc_init() argument 148 primary = __drm_universal_plane_alloc(dev, sizeof(*primary), 0, 0, in drm_crtc_init() [all …]
|
| D | drm_crtc_helper.c | 111 struct drm_device *dev = encoder->dev; in drm_helper_encoder_in_use() local 113 drm_WARN_ON(dev, drm_drv_uses_atomic_modeset(dev)); in drm_helper_encoder_in_use() 120 drm_WARN_ON(dev, !mutex_is_locked(&dev->mode_config.mutex)); in drm_helper_encoder_in_use() 121 drm_WARN_ON(dev, !drm_modeset_is_locked(&dev->mode_config.connection_mutex)); in drm_helper_encoder_in_use() 125 drm_connector_list_iter_begin(dev, &conn_iter); in drm_helper_encoder_in_use() 151 struct drm_device *dev = crtc->dev; in drm_helper_crtc_in_use() local 153 drm_WARN_ON(dev, drm_drv_uses_atomic_modeset(dev)); in drm_helper_crtc_in_use() 160 drm_WARN_ON(dev, !mutex_is_locked(&dev->mode_config.mutex)); in drm_helper_crtc_in_use() 162 drm_for_each_encoder(encoder, dev) in drm_helper_crtc_in_use() 183 static void __drm_helper_disable_unused_functions(struct drm_device *dev) in __drm_helper_disable_unused_functions() argument [all …]
|
| D | drm_client.c | 36 struct drm_device *dev = client->dev; in drm_client_open() local 39 file = drm_file_alloc(dev->primary); in drm_client_open() 43 mutex_lock(&dev->filelist_mutex); in drm_client_open() 44 list_add(&file->lhead, &dev->filelist_internal); in drm_client_open() 45 mutex_unlock(&dev->filelist_mutex); in drm_client_open() 54 struct drm_device *dev = client->dev; in drm_client_close() local 56 mutex_lock(&dev->filelist_mutex); in drm_client_close() 58 mutex_unlock(&dev->filelist_mutex); in drm_client_close() 78 int drm_client_init(struct drm_device *dev, struct drm_client_dev *client, in drm_client_init() argument 83 if (!drm_core_check_feature(dev, DRIVER_MODESET) || !dev->driver->dumb_create) in drm_client_init() [all …]
|
| D | drm_internal.h | 53 bool drm_dev_needs_global_mutex(struct drm_device *dev); 60 int drm_pci_set_busid(struct drm_device *dev, struct drm_master *master); 64 static inline int drm_pci_set_busid(struct drm_device *dev, in drm_pci_set_busid() argument 73 int drm_prime_handle_to_fd_ioctl(struct drm_device *dev, void *data, 75 int drm_prime_fd_to_handle_ioctl(struct drm_device *dev, void *data, 84 void drm_managed_release(struct drm_device *dev); 85 void drmm_add_final_kfree(struct drm_device *dev, void *container); 93 void drm_vblank_disable_and_save(struct drm_device *dev, unsigned int pipe); 94 int drm_vblank_get(struct drm_device *dev, unsigned int pipe); 95 void drm_vblank_put(struct drm_device *dev, unsigned int pipe); [all …]
|
| D | drm_ioctl.c | 117 int drm_getunique(struct drm_device *dev, void *data, in drm_getunique() argument 123 mutex_lock(&dev->master_mutex); in drm_getunique() 127 mutex_unlock(&dev->master_mutex); in drm_getunique() 132 mutex_unlock(&dev->master_mutex); in drm_getunique() 138 drm_unset_busid(struct drm_device *dev, in drm_unset_busid() argument 146 static int drm_set_busid(struct drm_device *dev, struct drm_file *file_priv) argument 152 drm_unset_busid(dev, master); 155 if (dev->dev && dev_is_pci(dev->dev)) { 159 ret = drm_pci_set_busid(dev, master); 161 drm_unset_busid(dev, master); [all …]
|
| /openbsd/src/etc/mail/ |
| D | aliases | 23 _bgpd: /dev/null 24 _bgplgd: /dev/null 25 _dhcp: /dev/null 26 _dpb: /dev/null 27 _dvmrpd: /dev/null 28 _eigrpd: /dev/null 29 _file: /dev/null 30 _fingerd: /dev/null 31 _ftp: /dev/null 32 _hostapd: /dev/null [all …]
|
| /openbsd/src/sys/dev/usb/ |
| D | usb_subr.c | 115 usbd_get_string_desc(struct usbd_device *dev, int sindex, int langid, in usbd_get_string_desc() argument 127 err = usbd_do_request_flags(dev, &req, sdesc, USBD_SHORT_XFER_OK, in usbd_get_string_desc() 136 err = usbd_do_request_flags(dev, &req, sdesc, USBD_SHORT_XFER_OK, in usbd_get_string_desc() 151 usbd_get_string(struct usbd_device *dev, int si, char *buf, size_t buflen) in usbd_get_string() argument 153 int swap = dev->quirks->uq_flags & UQ_SWAP_UNICODE; in usbd_get_string() 163 if (dev->quirks->uq_flags & UQ_NO_STRINGS) in usbd_get_string() 165 if (dev->langid == USBD_NOLANG) { in usbd_get_string() 167 err = usbd_get_string_desc(dev, USB_LANGUAGE_TABLE, 0, &us, in usbd_get_string() 170 dev->langid = 0; /* Well, just pick English then */ in usbd_get_string() 173 dev->langid = UGETW(us.bString[0]); in usbd_get_string() [all …]
|
| /openbsd/src/sys/dev/pci/drm/amd/amdkfd/ |
| D | kfd_topology.c | 130 static void kfd_release_topology_device(struct kfd_topology_device *dev) in kfd_release_topology_device() argument 138 list_del(&dev->list); in kfd_release_topology_device() 140 while (dev->mem_props.next != &dev->mem_props) { in kfd_release_topology_device() 141 mem = container_of(dev->mem_props.next, in kfd_release_topology_device() 147 while (dev->cache_props.next != &dev->cache_props) { in kfd_release_topology_device() 148 cache = container_of(dev->cache_props.next, in kfd_release_topology_device() 154 while (dev->io_link_props.next != &dev->io_link_props) { in kfd_release_topology_device() 155 iolink = container_of(dev->io_link_props.next, in kfd_release_topology_device() 161 while (dev->p2p_link_props.next != &dev->p2p_link_props) { in kfd_release_topology_device() 162 p2plink = container_of(dev->p2p_link_props.next, in kfd_release_topology_device() [all …]
|
| D | kfd_debug.h | 35 bool kfd_set_dbg_ev_from_interrupt(struct kfd_node *dev, 42 struct kfd_process *process, struct kfd_node *dev, 77 static inline bool kfd_dbg_is_per_vmid_supported(struct kfd_node *dev) in kfd_dbg_is_per_vmid_supported() argument 79 return (KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 2) || in kfd_dbg_is_per_vmid_supported() 80 KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 3) || in kfd_dbg_is_per_vmid_supported() 81 KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 4) || in kfd_dbg_is_per_vmid_supported() 82 KFD_GC_VERSION(dev) >= IP_VERSION(11, 0, 0)); in kfd_dbg_is_per_vmid_supported() 99 static inline bool kfd_dbg_is_rlc_restore_supported(struct kfd_node *dev) in kfd_dbg_is_rlc_restore_supported() argument 101 return !(KFD_GC_VERSION(dev) == IP_VERSION(10, 1, 10) || in kfd_dbg_is_rlc_restore_supported() 102 KFD_GC_VERSION(dev) == IP_VERSION(10, 1, 1)); in kfd_dbg_is_rlc_restore_supported() [all …]
|
| D | kfd_mqd_manager.c | 49 struct kfd_mem_obj *allocate_hiq_mqd(struct kfd_node *dev, struct queue_properties *q) in allocate_hiq_mqd() argument 57 mqd_mem_obj->gtt_mem = dev->dqm->hiq_sdma_mqd.gtt_mem; in allocate_hiq_mqd() 58 mqd_mem_obj->gpu_addr = dev->dqm->hiq_sdma_mqd.gpu_addr; in allocate_hiq_mqd() 59 mqd_mem_obj->cpu_ptr = dev->dqm->hiq_sdma_mqd.cpu_ptr; in allocate_hiq_mqd() 64 struct kfd_mem_obj *allocate_sdma_mqd(struct kfd_node *dev, in allocate_sdma_mqd() argument 75 dev->kfd->device_info.num_sdma_queues_per_engine + in allocate_sdma_mqd() 77 dev->dqm->mqd_mgrs[KFD_MQD_TYPE_SDMA]->mqd_size; in allocate_sdma_mqd() 79 offset += dev->dqm->mqd_mgrs[KFD_MQD_TYPE_HIQ]->mqd_size * in allocate_sdma_mqd() 80 NUM_XCC(dev->xcc_mask); in allocate_sdma_mqd() 82 mqd_mem_obj->gtt_mem = (void *)((uint64_t)dev->dqm->hiq_sdma_mqd.gtt_mem in allocate_sdma_mqd() [all …]
|
| /openbsd/src/etc/etc.luna88k/ |
| D | fbtab | 1 /dev/console 0600 /dev/ttyC0:/dev/wskbd:/dev/wskbd0:/dev/wsmouse:/dev/wsmouse0:/dev/ttya:/dev/ttyCc… 2 /dev/ttya 0600 /dev/ttyC0:/dev/wskbd:/dev/wskbd0:/dev/wsmouse:/dev/wsmouse0:/dev/console:/dev/ttyCc… 3 /dev/ttyC0 0600 /dev/wskbd:/dev/wskbd0:/dev/wsmouse:/dev/wsmouse0:/dev/console:/dev/ttya:/dev/ttyCc…
|
| /openbsd/src/sys/dev/fdt/ |
| D | files.fdt | 11 file dev/fdt/iicmux.c iicmux 15 file dev/fdt/pinctrl.c pinctrl 19 file dev/fdt/graphaudio.c graphaudio 23 file dev/fdt/simpleamp.c simpleamp 27 file dev/fdt/simpleaudio.c simpleaudio 31 file dev/fdt/simplefb.c simplefb 35 file dev/fdt/simplepanel.c simplepanel 39 file dev/fdt/sxiccmu.c sxiccmu 43 file dev/fdt/sxidog.c sxidog 47 file dev/fdt/sxipio.c sxipio [all …]
|
| /openbsd/src/usr.bin/sndiod/ |
| D | dev.h | 90 ((s)->appbufsz + (s)->opt->dev->bufsz / (s)->opt->dev->round * (s)->round) 138 struct dev *dev; member 142 struct dev *dev; member 153 struct dev *dev; member 196 struct dev *dev; member 216 struct dev { struct 217 struct dev *next; argument 228 struct dev *alt_next; argument 284 extern struct dev *dev_list; argument 292 int dev_open(struct dev *); [all …]
|
| /openbsd/src/sys/arch/octeon/conf/ |
| D | files.octeon | 15 file dev/cninit.c 25 include "dev/ata/files.ata" 26 include "dev/atapiscsi/files.atapiscsi" 27 include "dev/hid/files.hid" 28 include "dev/i2c/files.i2c" 29 include "dev/gpio/files.gpio" 30 include "dev/isa/files.isa" 31 include "dev/isa/files.isapnp" 32 include "dev/mii/files.mii" 33 include "dev/ofw/files.ofw" [all …]
|
| /openbsd/src/usr.sbin/vmd/ |
| D | virtio.c | 533 struct virtio_dev *dev; in virtio_init() local 570 dev = calloc(1, sizeof(struct virtio_dev)); in virtio_init() 571 if (dev == NULL) { in virtio_init() 577 dev->dev_type = VMD_DEVTYPE_NET; in virtio_init() 587 dev->pci_id = id; in virtio_init() 588 dev->sync_fd = -1; in virtio_init() 589 dev->async_fd = -1; in virtio_init() 590 dev->vm_id = vcp->vcp_id; in virtio_init() 591 dev->vm_vmid = vm->vm_vmid; in virtio_init() 592 dev->irq = pci_get_dev_irq(id); in virtio_init() [all …]
|