/drivers/gpu/drm/i915/selftests/ |
D | i915_active.c | 23 static void __live_get(struct live_active *active) in __live_get() argument 25 kref_get(&active->ref); in __live_get() 28 static void __live_free(struct live_active *active) in __live_free() argument 30 i915_active_fini(&active->base); in __live_free() 31 kfree(active); in __live_free() 36 struct live_active *active = container_of(ref, typeof(*active), ref); in __live_release() local 38 __live_free(active); in __live_release() 41 static void __live_put(struct live_active *active) in __live_put() argument 43 kref_put(&active->ref, __live_release); in __live_put() 48 struct live_active *active = container_of(base, typeof(*active), base); in __live_active() local [all …]
|
/drivers/gpu/drm/i915/ |
D | i915_active.h | 63 __i915_active_fence_init(struct i915_active_fence *active, in __i915_active_fence_init() argument 67 RCU_INIT_POINTER(active->fence, fence); in __i915_active_fence_init() 68 active->cb.func = fn ?: i915_active_noop; in __i915_active_fence_init() 75 __i915_active_fence_set(struct i915_active_fence *active, 88 i915_active_fence_set(struct i915_active_fence *active, 101 i915_active_fence_get(struct i915_active_fence *active) in i915_active_fence_get() argument 106 fence = dma_fence_get_rcu_safe(&active->fence); in i915_active_fence_get() 121 i915_active_fence_isset(const struct i915_active_fence *active) in i915_active_fence_isset() argument 123 return rcu_access_pointer(active->fence); in i915_active_fence_isset() 153 int (*active)(struct i915_active *ref), [all …]
|
D | i915_active.c | 40 node_from_active(struct i915_active_fence *active) in node_from_active() argument 42 return container_of(active, struct active_node, base); in node_from_active() 47 static inline bool is_barrier(const struct i915_active_fence *active) in is_barrier() argument 49 return IS_ERR(rcu_access_pointer(active->fence)); in is_barrier() 83 return (void *)ref->active ?: (void *)ref->retire ?: (void *)ref; in active_debug_hint() 209 __active_fence_slot(struct i915_active_fence *active) in __active_fence_slot() argument 211 return (struct dma_fence ** __force)&active->fence; in __active_fence_slot() 217 struct i915_active_fence *active = in active_fence_cb() local 218 container_of(cb, typeof(*active), cb); in active_fence_cb() 220 return cmpxchg(__active_fence_slot(active), fence, NULL) == fence; in active_fence_cb() [all …]
|
D | i915_globals.c | 20 static atomic_t active; variable 52 if (!atomic_read(&active)) { in __i915_globals_queue_rcu() 128 if (!atomic_dec_and_test(&active)) in i915_globals_park() 139 atomic_inc(&active); in i915_globals_unpark() 144 atomic_inc(&active); /* skip shrinking */ in __i915_globals_flush() 149 atomic_dec(&active); in __i915_globals_flush() 154 GEM_BUG_ON(atomic_read(&active)); in i915_globals_exit()
|
/drivers/gpu/drm/i915/gt/ |
D | intel_context.c | 82 __i915_active_acquire(&ce->active); in intel_context_active_acquire() 88 err = i915_active_acquire_preallocate_barrier(&ce->active, in intel_context_active_acquire() 91 i915_active_release(&ce->active); in intel_context_active_acquire() 99 i915_active_acquire_barrier(&ce->active); in intel_context_active_release() 100 i915_active_release(&ce->active); in intel_context_active_release() 112 err = i915_active_acquire(&vma->active); in __context_pin_state() 133 i915_active_release(&vma->active); in __context_unpin_state() 146 err = i915_active_acquire(&ring->vma->active); in __ring_active() 159 i915_active_release(&ring->vma->active); in __ring_retire() 233 err = i915_active_acquire(&ce->active); in __intel_context_do_pin_ww() [all …]
|
D | selftest_engine_heartbeat.c | 38 struct i915_active active; member 42 static int pulse_active(struct i915_active *active) in pulse_active() argument 44 kref_get(&container_of(active, struct pulse, active)->kref); in pulse_active() 52 i915_active_fini(&p->active); in pulse_free() 61 static void pulse_retire(struct i915_active *active) in pulse_retire() argument 63 pulse_put(container_of(active, struct pulse, active)); in pulse_retire() 75 i915_active_init(&p->active, pulse_active, pulse_retire); in pulse_create() 82 i915_active_unlock_wait(&p->active); in pulse_unlock_wait() 97 err = i915_active_acquire(&p->active); in __live_idle_pulse() 101 err = i915_active_acquire_preallocate_barrier(&p->active, engine); in __live_idle_pulse() [all …]
|
D | intel_timeline.c | 133 i915_active_fini(&cl->active); in __rcu_cacheline_free() 139 GEM_BUG_ON(!i915_active_is_idle(&cl->active)); in __idle_cacheline_free() 144 static void __cacheline_retire(struct i915_active *active) in __cacheline_retire() argument 147 container_of(active, typeof(*cl), active); in __cacheline_retire() 154 static int __cacheline_active(struct i915_active *active) in __cacheline_active() argument 157 container_of(active, typeof(*cl), active); in __cacheline_active() 184 i915_active_init(&cl->active, __cacheline_active, __cacheline_retire); in cacheline_alloc() 196 i915_active_acquire(&cl->active); in cacheline_acquire() 202 i915_active_release(&cl->active); in cacheline_release() 207 if (!i915_active_acquire_if_busy(&cl->active)) { in cacheline_free() [all …]
|
D | intel_gt_buffer_pool.c | 37 i915_active_fini(&node->active); in node_free() 44 bool active = false; in pool_free_older_than() local 80 active |= !list_empty(list); in pool_free_older_than() 88 return active; in pool_free_older_than() 104 container_of(ref, typeof(*node), active); in pool_active() 127 container_of(ref, typeof(*node), active); in pool_retire() 161 i915_active_init(&node->active, pool_active, pool_retire); in node_create() 165 i915_active_fini(&node->active); in node_create() 213 ret = i915_active_acquire(&node->active); in intel_gt_get_buffer_pool()
|
/drivers/acpi/ |
D | pci_link.c | 56 u32 active; /* Current IRQ */ member 235 link->irq.active = 0; in acpi_pci_link_get_current() 269 link->irq.active = irq; in acpi_pci_link_get_current() 271 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Link at IRQ %d \n", link->irq.active)); in acpi_pci_link_get_current() 373 if (link->irq.active != irq) { in acpi_pci_link_set() 381 acpi_device_bid(link->device), link->irq.active, irq); in acpi_pci_link_set() 382 link->irq.active = irq; in acpi_pci_link_set() 385 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Set IRQ %d\n", link->irq.active)); in acpi_pci_link_set() 466 if (link->irq.active && link->irq.active == irq) in acpi_irq_pci_sharing_penalty() 520 } else if (link->irq.active && in acpi_irq_penalty_init() [all …]
|
D | thermal.c | 114 u8 active:1; member 154 struct acpi_thermal_active active[ACPI_THERMAL_MAX_ACTIVE]; member 402 valid = tz->trips.active[i].flags.valid; in acpi_thermal_trips_update() 408 tz->trips.active[i].flags.valid)) { in acpi_thermal_trips_update() 412 tz->trips.active[i].flags.valid = 0; in acpi_thermal_trips_update() 418 tz->trips.active[0].temperature = in acpi_thermal_trips_update() 425 tz->trips.active[i - 1].temperature = in acpi_thermal_trips_update() 426 (tz->trips.active[i - 2].temperature < in acpi_thermal_trips_update() 428 tz->trips.active[i - 2].temperature : in acpi_thermal_trips_update() 432 tz->trips.active[i].temperature = tmp; in acpi_thermal_trips_update() [all …]
|
/drivers/gpu/vga/ |
D | vga_switcheroo.c | 119 bool active; member 150 bool active; member 182 return !vgasr_priv.active && in vga_switcheroo_ready() 222 vgasr_priv.active = true; in vga_switcheroo_enable() 267 if (vgasr_priv.active) { in vga_switcheroo_unregister_handler() 270 vgasr_priv.active = false; in vga_switcheroo_unregister_handler() 295 bool active, in register_client() argument 308 client->active = active; in register_client() 376 if (vgasr_priv.active) { in vga_switcheroo_register_audio_client() 422 if (client->active) in find_active_client() [all …]
|
/drivers/gnss/ |
D | sirf.c | 47 bool active; member 170 if (!data->wakeup && !data->active) { in sirf_receive_buf() 171 data->active = true; in sirf_receive_buf() 199 data->active = ret; in sirf_wakeup_handler() 206 bool active, in sirf_wait_for_power_state_nowakeup() argument 215 data->active = false; in sirf_wait_for_power_state_nowakeup() 217 data->active, msecs_to_jiffies(SIRF_REPORT_CYCLE)); in sirf_wait_for_power_state_nowakeup() 221 if (ret > 0 && !active) in sirf_wait_for_power_state_nowakeup() 224 if (ret == 0 && active) in sirf_wait_for_power_state_nowakeup() 230 static int sirf_wait_for_power_state(struct sirf_data *data, bool active, in sirf_wait_for_power_state() argument [all …]
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_ldu.c | 44 struct list_head active; member 58 struct list_head active; member 63 list_del_init(&ldu->active); in vmw_ldu_destroy() 91 list_for_each_entry(entry, &lds->active, active) { in vmw_ldu_commit_list() 106 if (!list_empty(&lds->active)) { in vmw_ldu_commit_list() 107 entry = list_entry(lds->active.next, typeof(*entry), active); in vmw_ldu_commit_list() 119 list_for_each_entry(entry, &lds->active, active) { in vmw_ldu_commit_list() 144 if (list_empty(&ldu->active)) in vmw_ldu_del_active() 148 list_del_init(&ldu->active); in vmw_ldu_del_active() 177 if (!list_empty(&ldu->active)) in vmw_ldu_add_active() [all …]
|
/drivers/ata/ |
D | libata-pata-timings.c | 67 q->active = EZ(t->active, T); in ata_timing_quantize() 86 m->active = max(a->active, b->active); in ata_timing_merge() 177 if (t->active + t->recover < t->cycle) { in ata_timing_compute() 178 t->active += (t->cycle - (t->active + t->recover)) / 2; in ata_timing_compute() 179 t->recover = t->cycle - t->active; in ata_timing_compute() 187 if (t->active + t->recover > t->cycle) in ata_timing_compute() 188 t->cycle = t->active + t->recover; in ata_timing_compute()
|
D | pata_legacy.c | 352 u8 active, recover; in ht6560a_set_piomode() local 358 active = clamp_val(t.active, 2, 15); in ht6560a_set_piomode() 366 iowrite8(recover << 4 | active, ap->ioaddr.device_addr); in ht6560a_set_piomode() 386 u8 active, recover; in ht6560b_set_piomode() local 392 active = clamp_val(t.active, 2, 15); in ht6560b_set_piomode() 400 iowrite8(recover << 4 | active, ap->ioaddr.device_addr); in ht6560b_set_piomode() 450 u8 active, recover, setup; in opti82c611a_set_piomode() local 476 active = clamp_val(t.active, 2, 17) - 2; in opti82c611a_set_piomode() 487 iowrite8(active << 4 | recover, ap->ioaddr.error_addr); in opti82c611a_set_piomode() 498 iowrite8(active << 4 | recover, ap->ioaddr.data_addr); in opti82c611a_set_piomode() [all …]
|
/drivers/xen/ |
D | pvcalls-front.c | 71 } active; member 136 struct pvcalls_data_intf *intf = map->active.ring; in pvcalls_front_write_todo() 153 struct pvcalls_data_intf *intf = map->active.ring; in pvcalls_front_read_todo() 233 unbind_from_irqhandler(map->active.irq, map); in pvcalls_front_free_map() 241 gnttab_end_foreign_access(map->active.ring->ref[i], 0, 0); in pvcalls_front_free_map() 242 gnttab_end_foreign_access(map->active.ref, 0, 0); in pvcalls_front_free_map() 243 free_page((unsigned long)map->active.ring); in pvcalls_front_free_map() 255 wake_up_interruptible(&map->active.inflight_conn_req); in pvcalls_front_conn_handler() 337 if (!map->active.ring) in free_active_ring() 340 free_pages_exact(map->active.data.in, in free_active_ring() [all …]
|
/drivers/ide/ |
D | ide-timings.c | 103 q->active = EZ(t->active, T); in ide_timing_quantize() 121 m->active = max(a->active, b->active); in ide_timing_merge() 191 if (t->active + t->recover < t->cycle) { in ide_timing_compute() 192 t->active += (t->cycle - (t->active + t->recover)) / 2; in ide_timing_compute() 193 t->recover = t->cycle - t->active; in ide_timing_compute()
|
/drivers/media/platform/omap3isp/ |
D | isppreview.c | 639 params = (prev->params.active & OMAP3ISP_PREV_CONTRAST) in preview_update_contrast() 661 params = (prev->params.active & OMAP3ISP_PREV_BRIGHTNESS) in preview_update_brightness() 674 u32 active = prev->params.active; in preview_params_lock() local 678 prev->params.params[0].busy |= ~active & update; in preview_params_lock() 679 prev->params.params[1].busy |= active & update; in preview_params_lock() 682 update = (prev->params.params[0].update & active) in preview_params_lock() 683 | (prev->params.params[1].update & ~active); in preview_params_lock() 685 prev->params.params[0].busy |= active & update; in preview_params_lock() 686 prev->params.params[1].busy |= ~active & update; in preview_params_lock() 695 u32 active = prev->params.active; in preview_params_unlock() local [all …]
|
/drivers/net/ |
D | rionet.c | 75 struct rio_dev **active; member 197 if (nets[rnet->mport->id].active[i]) { in rionet_start_xmit() 199 nets[rnet->mport->id].active[i]); in rionet_start_xmit() 206 if (nets[rnet->mport->id].active[destid]) in rionet_start_xmit() 208 nets[rnet->mport->id].active[destid]); in rionet_start_xmit() 239 if (!nets[netid].active[sid]) { in rionet_dbell_event() 243 nets[netid].active[sid] = peer->rdev; in rionet_dbell_event() 254 if (nets[netid].active[sid]) { in rionet_dbell_event() 255 nets[netid].active[sid] = NULL; in rionet_dbell_event() 386 if (nets[netid].active[peer->rdev->destid]) { in rionet_close() [all …]
|
/drivers/media/platform/ |
D | video-mux.c | 30 int active; member 74 if (vmux->active == local->index) in video_mux_link_setup() 77 if (vmux->active >= 0) { in video_mux_link_setup() 86 vmux->active = local->index; in video_mux_link_setup() 89 vmux->format_mbus[source_pad] = vmux->format_mbus[vmux->active]; in video_mux_link_setup() 91 if (vmux->active != local->index) in video_mux_link_setup() 96 vmux->active = -1; in video_mux_link_setup() 116 if (vmux->active == -1) { in video_mux_s_stream() 121 pad = media_entity_remote_pad(&sd->entity.pads[vmux->active]); in video_mux_s_stream() 298 if ((pad->flags & MEDIA_PAD_FL_SOURCE) && vmux->active >= 0) in video_mux_set_format() [all …]
|
/drivers/media/pci/cx88/ |
D | cx88-vbi.c | 103 if (list_empty(&q->active)) in cx8800_restart_vbi_queue() 106 buf = list_entry(q->active.next, struct cx88_buffer, list); in cx8800_restart_vbi_queue() 178 if (list_empty(&q->active)) { in buffer_queue() 179 list_add_tail(&buf->list, &q->active); in buffer_queue() 185 prev = list_entry(q->active.prev, struct cx88_buffer, list); in buffer_queue() 186 list_add_tail(&buf->list, &q->active); in buffer_queue() 197 struct cx88_buffer *buf = list_entry(dmaq->active.next, in start_streaming() 215 while (!list_empty(&dmaq->active)) { in stop_streaming() 216 struct cx88_buffer *buf = list_entry(dmaq->active.next, in stop_streaming()
|
/drivers/base/power/ |
D | wakeup.c | 184 ws->active = false; in wakeup_source_add() 603 ws->active = true; in wakeup_source_activate() 627 if (!ws->active) in wakeup_source_report_event() 721 ws->active = false; in wakeup_source_deactivate() 765 if (ws->active) in __pm_relax() 805 if (ws->active && ws->timer_expires in pm_wakeup_timer_fn() 883 bool active = false; in pm_get_active_wakeup_sources() local 887 if (ws->active && len < max) { in pm_get_active_wakeup_sources() 888 if (!active) in pm_get_active_wakeup_sources() 893 active = true; in pm_get_active_wakeup_sources() [all …]
|
/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rxon.c | 203 const struct iwl_rxon_cmd *rxon2 = &ctx->active; in iwlagn_send_rxon_assoc() 349 struct iwl_rxon_cmd *active = (void *)&ctx->active; in iwlagn_rxon_disconn() local 383 memcpy(active, &ctx->staging, sizeof(*active)); in iwlagn_rxon_disconn() 426 memcmp(&ctx->active, &ctx->staging, sizeof(ctx->staging)); in iwl_set_tx_power() 449 struct iwl_rxon_cmd *active = (void *)&ctx->active; in iwlagn_rxon_connect() local 490 memcpy(active, &ctx->staging, sizeof(*active)); in iwlagn_rxon_connect() 841 const struct iwl_rxon_cmd *active = &ctx->active; in iwl_full_rxon_required() local 859 CHK(!ether_addr_equal(staging->bssid_addr, active->bssid_addr)); in iwl_full_rxon_required() 860 CHK(!ether_addr_equal(staging->node_addr, active->node_addr)); in iwl_full_rxon_required() 862 active->wlap_bssid_addr)); in iwl_full_rxon_required() [all …]
|
/drivers/net/wireless/ti/wlcore/ |
D | scan.c | 88 bool active = false; in wlcore_started_vifs_iter() local 99 active = true; in wlcore_started_vifs_iter() 104 active = true; in wlcore_started_vifs_iter() 111 if (active) in wlcore_started_vifs_iter() 266 cfg->active[0] = in wlcore_set_scan_chan_params() 301 cfg->active[1] = in wlcore_set_scan_chan_params() 316 cfg->active[2] = 0; in wlcore_set_scan_chan_params() 321 cfg->active[0], cfg->passive[0]); in wlcore_set_scan_chan_params() 323 cfg->active[1], cfg->passive[1]); in wlcore_set_scan_chan_params() 326 return cfg->passive[0] || cfg->active[0] || in wlcore_set_scan_chan_params() [all …]
|
/drivers/staging/media/atomisp/pci/runtime/isys/src/ |
D | ibuf_ctrl_rmgr.c | 67 if (!handle->active) { in ia_css_isys_ibuf_rmgr_acquire() 69 handle->active = true; in ia_css_isys_ibuf_rmgr_acquire() 87 handle->active = true; in ia_css_isys_ibuf_rmgr_acquire() 116 if (handle->active && handle->start_addr == *start_addr) { in ia_css_isys_ibuf_rmgr_release() 117 handle->active = false; in ia_css_isys_ibuf_rmgr_release()
|