Home
last modified time | relevance | path

Searched refs:active (Results 1 – 25 of 806) sorted by relevance

12345678910>>...33

/drivers/gpu/drm/i915/selftests/
Di915_active.c24 static void __live_get(struct live_active *active) in __live_get() argument
26 kref_get(&active->ref); in __live_get()
29 static void __live_free(struct live_active *active) in __live_free() argument
31 i915_active_fini(&active->base); in __live_free()
32 kfree(active); in __live_free()
37 struct live_active *active = container_of(ref, typeof(*active), ref); in __live_release() local
39 __live_free(active); in __live_release()
42 static void __live_put(struct live_active *active) in __live_put() argument
44 kref_put(&active->ref, __live_release); in __live_put()
49 struct live_active *active = container_of(base, typeof(*active), base); in __live_active() local
[all …]
/drivers/gpu/drm/i915/display/
Dintel_modeset_verify.c43 I915_STATE_WARN(!crtc_state->hw.active, in intel_connector_verify_state()
55 I915_STATE_WARN(crtc_state && crtc_state->hw.active, in intel_connector_verify_state()
146 bool active; in verify_encoder_state() local
148 active = encoder->get_hw_state(encoder, &pipe); in verify_encoder_state()
149 I915_STATE_WARN(active, in verify_encoder_state()
181 if (IS_I830(dev_priv) && pipe_config->hw.active) in verify_crtc_state()
182 pipe_config->hw.active = new_crtc_state->hw.active; in verify_crtc_state()
184 I915_STATE_WARN(new_crtc_state->hw.active != pipe_config->hw.active, in verify_crtc_state()
186 new_crtc_state->hw.active, pipe_config->hw.active); in verify_crtc_state()
188 I915_STATE_WARN(crtc->active != new_crtc_state->hw.active, in verify_crtc_state()
[all …]
Dintel_modeset_setup.c47 if (!crtc_state->hw.active) in intel_crtc_disable_noatomic()
82 crtc->active = false; in intel_crtc_disable_noatomic()
87 crtc_state->uapi.active = false; in intel_crtc_disable_noatomic()
151 crtc_state->uapi.active = crtc_state->hw.active; in intel_crtc_copy_hw_to_uapi_state()
222 if (!crtc_state->hw.active && !HAS_GMCH(i915)) in intel_sanitize_fifo_underrun_reporting()
259 if (crtc_state->hw.active) { in intel_sanitize_crtc()
281 if (crtc_state->hw.active && !intel_crtc_has_encoders(crtc) && in intel_sanitize_crtc()
301 crtc_state->hw.active && in has_bogus_dpll_config()
320 crtc_state->hw.active; in intel_sanitize_encoder()
439 crtc_state->hw.enable = crtc_state->hw.active; in intel_modeset_readout_hw_state()
[all …]
/drivers/gpu/drm/i915/gt/
Dintel_context.c80 __i915_active_acquire(&ce->active); in intel_context_active_acquire()
87 err = i915_active_acquire_preallocate_barrier(&ce->active, in intel_context_active_acquire()
90 i915_active_release(&ce->active); in intel_context_active_acquire()
98 i915_active_acquire_barrier(&ce->active); in intel_context_active_release()
99 i915_active_release(&ce->active); in intel_context_active_release()
111 err = i915_active_acquire(&vma->active); in __context_pin_state()
132 i915_active_release(&vma->active); in __context_unpin_state()
145 err = i915_active_acquire(&ring->vma->active); in __ring_active()
158 i915_active_release(&ring->vma->active); in __ring_retire()
236 err = i915_active_acquire(&ce->active); in __intel_context_do_pin_ww()
[all …]
Dintel_engine_stats.h21 if (stats->active) { in intel_engine_context_in()
22 stats->active++; in intel_engine_context_in()
31 stats->active++; in intel_engine_context_in()
36 GEM_BUG_ON(!stats->active); in intel_engine_context_in()
44 GEM_BUG_ON(!stats->active); in intel_engine_context_out()
45 if (stats->active > 1) { in intel_engine_context_out()
46 stats->active--; in intel_engine_context_out()
53 stats->active--; in intel_engine_context_out()
Dselftest_engine_heartbeat.c43 struct i915_active active; member
47 static int pulse_active(struct i915_active *active) in pulse_active() argument
49 kref_get(&container_of(active, struct pulse, active)->kref); in pulse_active()
57 i915_active_fini(&p->active); in pulse_free()
66 static void pulse_retire(struct i915_active *active) in pulse_retire() argument
68 pulse_put(container_of(active, struct pulse, active)); in pulse_retire()
80 i915_active_init(&p->active, pulse_active, pulse_retire, 0); in pulse_create()
87 i915_active_unlock_wait(&p->active); in pulse_unlock_wait()
102 err = i915_active_acquire(&p->active); in __live_idle_pulse()
106 err = i915_active_acquire_preallocate_barrier(&p->active, engine); in __live_idle_pulse()
[all …]
Dintel_timeline.c38 static void __timeline_retire(struct i915_active *active) in __timeline_retire() argument
41 container_of(active, typeof(*tl), active); in __timeline_retire()
47 static int __timeline_active(struct i915_active *active) in __timeline_active() argument
50 container_of(active, typeof(*tl), active); in __timeline_active()
109 i915_active_init(&timeline->active, __timeline_active, in intel_timeline_init()
132 i915_active_fini(&timeline->active); in intel_timeline_fini()
214 i915_active_acquire(&tl->active); in intel_timeline_pin()
216 i915_active_release(&tl->active); in intel_timeline_pin()
349 !i915_active_acquire_if_busy(&tl->active)) in intel_timeline_read_hwsp()
360 i915_active_release(&tl->active); in intel_timeline_read_hwsp()
[all …]
Dintel_gt_buffer_pool.c33 i915_active_fini(&node->active); in node_free()
40 bool active = false; in pool_free_older_than() local
76 active |= !list_empty(list); in pool_free_older_than()
84 return active; in pool_free_older_than()
100 container_of(ref, typeof(*node), active); in pool_retire()
152 i915_active_init(&node->active, NULL, pool_retire, 0); in node_create()
156 i915_active_fini(&node->active); in node_create()
209 ret = i915_active_acquire(&node->active); in intel_gt_get_buffer_pool()
/drivers/gpu/drm/i915/
Di915_active.h63 __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 …]
Di915_active.c36 node_from_active(struct i915_active_fence *active) in node_from_active() argument
38 return container_of(active, struct active_node, base); in node_from_active()
43 static inline bool is_barrier(const struct i915_active_fence *active) in is_barrier() argument
45 return IS_ERR(rcu_access_pointer(active->fence)); in is_barrier()
79 return (void *)ref->active ?: (void *)ref->retire ?: (void *)ref; in active_debug_hint()
204 __active_fence_slot(struct i915_active_fence *active) in __active_fence_slot() argument
206 return (struct dma_fence ** __force)&active->fence; in __active_fence_slot()
212 struct i915_active_fence *active = in active_fence_cb() local
213 container_of(cb, typeof(*active), cb); in active_fence_cb()
215 return cmpxchg(__active_fence_slot(active), fence, NULL) == fence; in active_fence_cb()
[all …]
/drivers/acpi/
Dpci_link.c56 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_handle_debug(handle, "Link at IRQ %d \n", link->irq.active); in acpi_pci_link_get_current()
371 if (link->irq.active != irq) { in acpi_pci_link_set()
377 link->irq.active, irq); in acpi_pci_link_set()
378 link->irq.active = irq; in acpi_pci_link_set()
381 acpi_handle_debug(handle, "Set IRQ %d\n", link->irq.active); in acpi_pci_link_set()
462 if (link->irq.active && link->irq.active == irq) in acpi_irq_pci_sharing_penalty()
516 } else if (link->irq.active && in acpi_irq_penalty_init()
[all …]
Dthermal.c107 u8 active:1; member
147 struct acpi_thermal_active active[ACPI_THERMAL_MAX_ACTIVE]; member
393 valid = tz->trips.active[i].flags.valid; in acpi_thermal_trips_update()
399 tz->trips.active[i].flags.valid)) { in acpi_thermal_trips_update()
403 tz->trips.active[i].flags.valid = 0; in acpi_thermal_trips_update()
411 tz->trips.active[0].temperature = celsius_to_deci_kelvin(act); in acpi_thermal_trips_update()
417 tz->trips.active[i-1].temperature = in acpi_thermal_trips_update()
418 (tz->trips.active[i-2].temperature < in acpi_thermal_trips_update()
420 tz->trips.active[i-2].temperature : in acpi_thermal_trips_update()
425 tz->trips.active[i].temperature = tmp; in acpi_thermal_trips_update()
[all …]
/drivers/gpu/vga/
Dvga_switcheroo.c119 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/
Dsirf.c47 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/
Dvmwgfx_ldu.c42 struct list_head active; member
56 struct list_head active; member
61 list_del_init(&ldu->active); in vmw_ldu_destroy()
89 list_for_each_entry(entry, &lds->active, active) { in vmw_ldu_commit_list()
104 if (!list_empty(&lds->active)) { in vmw_ldu_commit_list()
105 entry = list_entry(lds->active.next, typeof(*entry), active); in vmw_ldu_commit_list()
117 list_for_each_entry(entry, &lds->active, active) { in vmw_ldu_commit_list()
141 if (list_empty(&ldu->active)) in vmw_ldu_del_active()
145 list_del_init(&ldu->active); in vmw_ldu_del_active()
174 if (!list_empty(&ldu->active)) in vmw_ldu_add_active()
[all …]
/drivers/ata/
Dlibata-pata-timings.c67 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()
Dpata_legacy.c389 u8 active, recover; in ht6560a_set_piomode() local
395 active = clamp_val(t.active, 2, 15); in ht6560a_set_piomode()
403 iowrite8(recover << 4 | active, ap->ioaddr.device_addr); in ht6560a_set_piomode()
423 u8 active, recover; in ht6560b_set_piomode() local
429 active = clamp_val(t.active, 2, 15); in ht6560b_set_piomode()
437 iowrite8(recover << 4 | active, ap->ioaddr.device_addr); in ht6560b_set_piomode()
487 u8 active, recover, setup; in opti82c611a_set_piomode() local
513 active = clamp_val(t.active, 2, 17) - 2; in opti82c611a_set_piomode()
524 iowrite8(active << 4 | recover, ap->ioaddr.error_addr); in opti82c611a_set_piomode()
535 iowrite8(active << 4 | recover, ap->ioaddr.data_addr); in opti82c611a_set_piomode()
[all …]
/drivers/xen/
Dpvcalls-front.c71 } 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()
235 unbind_from_irqhandler(map->active.irq, map); in pvcalls_front_free_map()
243 gnttab_end_foreign_access(map->active.ring->ref[i], NULL); in pvcalls_front_free_map()
244 gnttab_end_foreign_access(map->active.ref, NULL); in pvcalls_front_free_map()
257 wake_up_interruptible(&map->active.inflight_conn_req); in pvcalls_front_conn_handler()
339 if (!map->active.ring) in free_active_ring()
342 free_pages_exact(map->active.data.in, in free_active_ring()
343 PAGE_SIZE << map->active.ring->ring_order); in free_active_ring()
[all …]
/drivers/media/platform/ti/omap3isp/
Disppreview.c639 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/
Drionet.c75 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/
Dvideo-mux.c30 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_pad_remote_pad_first(&sd->entity.pads[vmux->active]); in video_mux_s_stream()
300 if ((pad->flags & MEDIA_PAD_FL_SOURCE) && vmux->active >= 0) in video_mux_set_format()
[all …]
/drivers/media/pci/cx88/
Dcx88-vbi.c103 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()
179 if (list_empty(&q->active)) { in buffer_queue()
180 list_add_tail(&buf->list, &q->active); in buffer_queue()
186 prev = list_entry(q->active.prev, struct cx88_buffer, list); in buffer_queue()
187 list_add_tail(&buf->list, &q->active); in buffer_queue()
198 struct cx88_buffer *buf = list_entry(dmaq->active.next, in start_streaming()
216 while (!list_empty(&dmaq->active)) { in stop_streaming()
217 struct cx88_buffer *buf = list_entry(dmaq->active.next, in stop_streaming()
/drivers/base/power/
Dwakeup.c184 ws->active = false; in wakeup_source_add()
574 ws->active = true; in wakeup_source_activate()
598 if (!ws->active) in wakeup_source_report_event()
692 ws->active = false; in wakeup_source_deactivate()
736 if (ws->active) in __pm_relax()
776 if (ws->active && ws->timer_expires in pm_wakeup_timer_fn()
854 bool active = false; in pm_get_active_wakeup_sources() local
858 if (ws->active && len < max) { in pm_get_active_wakeup_sources()
859 if (!active) in pm_get_active_wakeup_sources()
864 active = true; in pm_get_active_wakeup_sources()
[all …]
/drivers/net/wireless/intel/iwlwifi/dvm/
Drxon.c198 const struct iwl_rxon_cmd *rxon2 = &ctx->active; in iwlagn_send_rxon_assoc()
344 struct iwl_rxon_cmd *active = (void *)&ctx->active; in iwlagn_rxon_disconn() local
378 memcpy(active, &ctx->staging, sizeof(*active)); in iwlagn_rxon_disconn()
421 memcmp(&ctx->active, &ctx->staging, sizeof(ctx->staging)); in iwl_set_tx_power()
444 struct iwl_rxon_cmd *active = (void *)&ctx->active; in iwlagn_rxon_connect() local
485 memcpy(active, &ctx->staging, sizeof(*active)); in iwlagn_rxon_connect()
836 const struct iwl_rxon_cmd *active = &ctx->active; in iwl_full_rxon_required() local
854 CHK(!ether_addr_equal(staging->bssid_addr, active->bssid_addr)); in iwl_full_rxon_required()
855 CHK(!ether_addr_equal(staging->node_addr, active->node_addr)); in iwl_full_rxon_required()
857 active->wlap_bssid_addr)); in iwl_full_rxon_required()
[all …]
/drivers/net/wireless/ti/wlcore/
Dscan.c86 bool active = false; in wlcore_started_vifs_iter() local
97 active = true; in wlcore_started_vifs_iter()
102 active = true; in wlcore_started_vifs_iter()
109 if (active) in wlcore_started_vifs_iter()
264 cfg->active[0] = in wlcore_set_scan_chan_params()
299 cfg->active[1] = in wlcore_set_scan_chan_params()
314 cfg->active[2] = 0; in wlcore_set_scan_chan_params()
319 cfg->active[0], cfg->passive[0]); in wlcore_set_scan_chan_params()
321 cfg->active[1], cfg->passive[1]); in wlcore_set_scan_chan_params()
324 return cfg->passive[0] || cfg->active[0] || in wlcore_set_scan_chan_params()
[all …]

12345678910>>...33