/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 | 36 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/gpu/drm/i915/gt/ |
D | intel_context.c | 80 __i915_active_acquire(&ce->active); in intel_context_active_acquire() 86 err = i915_active_acquire_preallocate_barrier(&ce->active, in intel_context_active_acquire() 89 i915_active_release(&ce->active); in intel_context_active_acquire() 97 i915_active_acquire_barrier(&ce->active); in intel_context_active_release() 98 i915_active_release(&ce->active); in intel_context_active_release() 110 err = i915_active_acquire(&vma->active); in __context_pin_state() 131 i915_active_release(&vma->active); in __context_unpin_state() 144 err = i915_active_acquire(&ring->vma->active); in __ring_active() 157 i915_active_release(&ring->vma->active); in __ring_retire() 231 err = i915_active_acquire(&ce->active); in __intel_context_do_pin_ww() [all …]
|
D | selftest_engine_heartbeat.c | 43 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 …]
|
D | intel_engine_stats.h | 20 if (engine->stats.active) { in intel_engine_context_in() 21 engine->stats.active++; in intel_engine_context_in() 30 engine->stats.active++; in intel_engine_context_in() 35 GEM_BUG_ON(!engine->stats.active); in intel_engine_context_in() 42 GEM_BUG_ON(!engine->stats.active); in intel_engine_context_out() 43 if (engine->stats.active > 1) { in intel_engine_context_out() 44 engine->stats.active--; in intel_engine_context_out() 51 engine->stats.active--; in intel_engine_context_out()
|
D | intel_timeline.c | 35 static void __timeline_retire(struct i915_active *active) in __timeline_retire() argument 38 container_of(active, typeof(*tl), active); in __timeline_retire() 44 static int __timeline_active(struct i915_active *active) in __timeline_active() argument 47 container_of(active, typeof(*tl), active); in __timeline_active() 106 i915_active_init(&timeline->active, __timeline_active, in intel_timeline_init() 129 i915_active_fini(&timeline->active); in intel_timeline_fini() 211 i915_active_acquire(&tl->active); in intel_timeline_pin() 213 i915_active_release(&tl->active); in intel_timeline_pin() 346 !i915_active_acquire_if_busy(&tl->active)) in intel_timeline_read_hwsp() 357 i915_active_release(&tl->active); in intel_timeline_read_hwsp() [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_retire() 156 i915_active_init(&node->active, NULL, pool_retire, 0); in node_create() 160 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_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 …]
|
D | thermal.c | 107 u8 active:1; member 147 struct acpi_thermal_active active[ACPI_THERMAL_MAX_ACTIVE]; member 397 valid = tz->trips.active[i].flags.valid; in acpi_thermal_trips_update() 403 tz->trips.active[i].flags.valid)) { in acpi_thermal_trips_update() 407 tz->trips.active[i].flags.valid = 0; in acpi_thermal_trips_update() 413 tz->trips.active[0].temperature = in acpi_thermal_trips_update() 420 tz->trips.active[i - 1].temperature = in acpi_thermal_trips_update() 421 (tz->trips.active[i - 2].temperature < in acpi_thermal_trips_update() 423 tz->trips.active[i - 2].temperature : in acpi_thermal_trips_update() 427 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() 143 if (list_empty(&ldu->active)) in vmw_ldu_del_active() 147 list_del_init(&ldu->active); in vmw_ldu_del_active() 176 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 | 389 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/ |
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/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() 300 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() 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/ |
D | wakeup.c | 184 ws->active = false; in wakeup_source_add() 604 ws->active = true; in wakeup_source_activate() 628 if (!ws->active) in wakeup_source_report_event() 722 ws->active = false; in wakeup_source_deactivate() 766 if (ws->active) in __pm_relax() 806 if (ws->active && ws->timer_expires in pm_wakeup_timer_fn() 884 bool active = false; in pm_get_active_wakeup_sources() local 888 if (ws->active && len < max) { in pm_get_active_wakeup_sources() 889 if (!active) in pm_get_active_wakeup_sources() 894 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()
|
/drivers/input/misc/ |
D | iqs626a.c | 338 u8 active; member 361 u8 active; member 369 .active = BIT(0), 380 .active = BIT(1), 388 .active = BIT(2) | BIT(1), 396 .active = BIT(4), 409 .active = BIT(5), 422 .active = BIT(6), 435 .active = BIT(7), 1211 *assoc_select |= iqs626_channels[i].active; in iqs626_parse_channel() [all …]
|