/drivers/mailbox/ |
D | mtk-cmdq-mailbox.c | 65 struct cmdq_thread *thread; member 75 struct cmdq_thread *thread; member 94 static int cmdq_thread_suspend(struct cmdq *cmdq, struct cmdq_thread *thread) in cmdq_thread_suspend() argument 98 writel(CMDQ_THR_SUSPEND, thread->base + CMDQ_THR_SUSPEND_TASK); in cmdq_thread_suspend() 101 if (!(readl(thread->base + CMDQ_THR_ENABLE_TASK) & CMDQ_THR_ENABLED)) in cmdq_thread_suspend() 104 if (readl_poll_timeout_atomic(thread->base + CMDQ_THR_CURR_STATUS, in cmdq_thread_suspend() 107 (u32)(thread->base - cmdq->base)); in cmdq_thread_suspend() 114 static void cmdq_thread_resume(struct cmdq_thread *thread) in cmdq_thread_resume() argument 116 writel(CMDQ_THR_RESUME, thread->base + CMDQ_THR_SUSPEND_TASK); in cmdq_thread_resume() 130 static int cmdq_thread_reset(struct cmdq *cmdq, struct cmdq_thread *thread) in cmdq_thread_reset() argument [all …]
|
/drivers/acpi/acpica/ |
D | exmutex.c | 21 struct acpi_thread_state *thread); 37 struct acpi_thread_state *thread = obj_desc->mutex.owner_thread; in acpi_ex_unlink_mutex() local 39 if (!thread) { in acpi_ex_unlink_mutex() 61 thread->acquired_mutex_list = obj_desc->mutex.next; in acpi_ex_unlink_mutex() 80 struct acpi_thread_state *thread) in acpi_ex_link_mutex() argument 84 list_head = thread->acquired_mutex_list; in acpi_ex_link_mutex() 99 thread->acquired_mutex_list = obj_desc; in acpi_ex_link_mutex() 205 if (!walk_state->thread) { in acpi_ex_acquire_mutex() 216 if (walk_state->thread->current_sync_level > obj_desc->mutex.sync_level) { in acpi_ex_acquire_mutex() 221 walk_state->thread->current_sync_level)); in acpi_ex_acquire_mutex() [all …]
|
D | dswstate.c | 413 *thread) in acpi_ds_get_current_walk_state() 417 if (!thread) { in acpi_ds_get_current_walk_state() 422 thread->walk_state_list)); in acpi_ds_get_current_walk_state() 424 return (thread->walk_state_list); in acpi_ds_get_current_walk_state() 442 struct acpi_thread_state *thread) in acpi_ds_push_walk_state() argument 446 walk_state->next = thread->walk_state_list; in acpi_ds_push_walk_state() 447 thread->walk_state_list = walk_state; in acpi_ds_push_walk_state() 466 struct acpi_walk_state *acpi_ds_pop_walk_state(struct acpi_thread_state *thread) in acpi_ds_pop_walk_state() argument 472 walk_state = thread->walk_state_list; in acpi_ds_pop_walk_state() 478 thread->walk_state_list = walk_state->next; in acpi_ds_pop_walk_state() [all …]
|
D | psparse.c | 411 struct acpi_thread_state *thread; in acpi_ps_parse_aml() local 428 thread = acpi_ut_create_thread_state(); in acpi_ps_parse_aml() 429 if (!thread) { in acpi_ps_parse_aml() 443 walk_state->thread = thread; in acpi_ps_parse_aml() 450 walk_state->thread->current_sync_level = in acpi_ps_parse_aml() 454 acpi_ds_push_walk_state(walk_state, thread); in acpi_ps_parse_aml() 460 acpi_gbl_current_walk_list = thread; in acpi_ps_parse_aml() 503 acpi_ds_call_control_method(thread, walk_state, in acpi_ps_parse_aml() 514 walk_state = acpi_ds_get_current_walk_state(thread); in acpi_ps_parse_aml() 553 walk_state = acpi_ds_pop_walk_state(thread); in acpi_ps_parse_aml() [all …]
|
D | dsdebug.c | 94 struct acpi_thread_state *thread; in acpi_ds_dump_method_stack() local 120 thread = walk_state->thread; in acpi_ds_dump_method_stack() 121 if (!thread) { in acpi_ds_dump_method_stack() 137 next_walk_state = thread->walk_state_list; in acpi_ds_dump_method_stack()
|
D | dsmethod.c | 344 && (walk_state->thread->current_sync_level > in acpi_ds_begin_method_execution() 350 walk_state->thread->current_sync_level)); in acpi_ds_begin_method_execution() 361 (walk_state->thread->thread_id != in acpi_ds_begin_method_execution() 380 walk_state->thread->current_sync_level; in acpi_ds_begin_method_execution() 383 walk_state->thread->thread_id; in acpi_ds_begin_method_execution() 394 walk_state->thread->current_sync_level = in acpi_ds_begin_method_execution() 456 acpi_ds_call_control_method(struct acpi_thread_state *thread, in acpi_ds_call_control_method() argument 499 thread); in acpi_ds_call_control_method() 582 acpi_ds_pop_walk_state(thread); in acpi_ds_call_control_method() 764 walk_state->thread->current_sync_level = in acpi_ds_terminate_control_method()
|
D | acdispat.h | 175 acpi_ds_call_control_method(struct acpi_thread_state *thread, 300 *thread); 317 *thread); 321 struct acpi_thread_state *thread); 326 *thread);
|
/drivers/android/ |
D | binder.c | 433 binder_enqueue_deferred_thread_work_ilocked(struct binder_thread *thread, in binder_enqueue_deferred_thread_work_ilocked() argument 436 WARN_ON(!list_empty(&thread->waiting_thread_node)); in binder_enqueue_deferred_thread_work_ilocked() 437 binder_enqueue_work_ilocked(work, &thread->todo); in binder_enqueue_deferred_thread_work_ilocked() 451 binder_enqueue_thread_work_ilocked(struct binder_thread *thread, in binder_enqueue_thread_work_ilocked() argument 454 WARN_ON(!list_empty(&thread->waiting_thread_node)); in binder_enqueue_thread_work_ilocked() 455 binder_enqueue_work_ilocked(work, &thread->todo); in binder_enqueue_thread_work_ilocked() 462 if (thread->looper & BINDER_LOOPER_STATE_POLL && in binder_enqueue_thread_work_ilocked() 463 thread->pid == current->pid && !thread->process_todo) in binder_enqueue_thread_work_ilocked() 464 wake_up_interruptible_sync(&thread->wait); in binder_enqueue_thread_work_ilocked() 466 thread->process_todo = true; in binder_enqueue_thread_work_ilocked() [all …]
|
/drivers/gpu/drm/i915/gem/selftests/ |
D | i915_gem_object_blt.c | 205 struct igt_thread_arg *thread = arg; in igt_fill_blt_thread() local 206 struct intel_engine_cs *engine = thread->engine; in igt_fill_blt_thread() 207 struct rnd_state *prng = &thread->prng; in igt_fill_blt_thread() 216 ctx = thread->ctx; in igt_fill_blt_thread() 218 ctx = live_context_for_engine(engine, thread->file); in igt_fill_blt_thread() 234 if (i915_is_ggtt(ce->vm) || thread->ctx) in igt_fill_blt_thread() 235 max = div_u64(max, thread->n_cpus); in igt_fill_blt_thread() 323 struct igt_thread_arg *thread = arg; in igt_copy_blt_thread() local 324 struct intel_engine_cs *engine = thread->engine; in igt_copy_blt_thread() 325 struct rnd_state *prng = &thread->prng; in igt_copy_blt_thread() [all …]
|
/drivers/dma/ |
D | dmatest.c | 251 struct dmatest_thread *thread; in is_threaded_test_run() local 253 list_for_each_entry(thread, &dtc->threads, node) { in is_threaded_test_run() 254 if (!thread->done && !thread->pending) in is_threaded_test_run() 267 struct dmatest_thread *thread; in is_threaded_test_pending() local 269 list_for_each_entry(thread, &dtc->threads, node) { in is_threaded_test_pending() 270 if (thread->pending) in is_threaded_test_pending() 431 struct dmatest_thread *thread = in dmatest_callback() local 433 if (!thread->done) { in dmatest_callback() 570 struct dmatest_thread *thread = data; in dmatest_func() local 571 struct dmatest_done *done = &thread->test_done; in dmatest_func() [all …]
|
/drivers/media/pci/saa7134/ |
D | saa7134-tvaudio.c | 304 if (dev->thread.scan1 == dev->thread.scan2 && in tvaudio_sleep() 314 return dev->thread.scan1 != dev->thread.scan2; in tvaudio_sleep() 477 dev->thread.scan1 = dev->thread.scan2; in tvaudio_thread() 479 dev->thread.scan1); in tvaudio_thread() 518 if (dev->thread.scan1 != dev->thread.scan2) in tvaudio_thread() 592 if (UNSET == dev->thread.mode) { in tvaudio_thread() 596 mode = dev->thread.mode; in tvaudio_thread() 606 dev->thread.stopped = 1; in tvaudio_thread() 773 dev->thread.scan1 = dev->thread.scan2; in tvaudio_thread_ddep() 775 dev->thread.scan1); in tvaudio_thread_ddep() [all …]
|
/drivers/net/wireless/rsi/ |
D | rsi_common.h | 60 struct rsi_thread *thread, in rsi_create_kthread() argument 64 init_completion(&thread->completion); in rsi_create_kthread() 65 atomic_set(&thread->thread_done, 0); in rsi_create_kthread() 66 thread->task = kthread_run(func_ptr, common, "%s", name); in rsi_create_kthread() 67 if (IS_ERR(thread->task)) in rsi_create_kthread() 68 return (int)PTR_ERR(thread->task); in rsi_create_kthread()
|
/drivers/base/ |
D | devtmpfs.c | 32 static struct task_struct *thread; variable 109 wake_up_process(thread); in devtmpfs_submit_req() 122 if (!thread) in devtmpfs_create_node() 149 if (!thread) in devtmpfs_delete_node() 175 d_inode(dentry)->i_private = &thread; in dev_mkdir() 235 d_inode(dentry)->i_private = &thread; in handle_create() 251 if (d_inode(dentry)->i_private == &thread) in dev_rmdir() 292 if (inode->i_private != &thread) in dev_mynode() 367 if (!thread) in devtmpfs_mount() 467 thread = kthread_run(devtmpfsd, &err, "kdevtmpfs"); in devtmpfs_init() [all …]
|
/drivers/vfio/ |
D | virqfd.c | 52 virqfd->thread) in virqfd_wakeup() 100 if (virqfd->thread) in virqfd_inject() 101 virqfd->thread(virqfd->opaque, virqfd->data); in virqfd_inject() 106 void (*thread)(void *, void *), in vfio_virqfd_enable() 122 virqfd->thread = thread; in vfio_virqfd_enable() 173 if ((!handler || handler(opaque, data)) && thread) in vfio_virqfd_enable()
|
/drivers/scsi/bnx2i/ |
D | bnx2i_init.c | 414 struct task_struct *thread; in bnx2i_cpu_online() local 418 thread = kthread_create_on_node(bnx2i_percpu_io_thread, (void *)p, in bnx2i_cpu_online() 421 if (IS_ERR(thread)) in bnx2i_cpu_online() 422 return PTR_ERR(thread); in bnx2i_cpu_online() 425 kthread_bind(thread, cpu); in bnx2i_cpu_online() 426 p->iothread = thread; in bnx2i_cpu_online() 427 wake_up_process(thread); in bnx2i_cpu_online() 434 struct task_struct *thread; in bnx2i_cpu_offline() local 440 thread = p->iothread; in bnx2i_cpu_offline() 452 if (thread) in bnx2i_cpu_offline() [all …]
|
/drivers/block/paride/ |
D | Transition-notes | 49 1) at any time at most one thread of execution can be in that area or 51 2) When there is such a thread, pd_busy is set or pd_lock is held by 52 that thread. 53 3) When there is such a thread, ps_tq_active is 0 or ps_spinlock is 54 held by that thread. 55 4) When there is such a thread, all PIA belonging to pd.c have NULL 56 ->claim_cont or pi_spinlock is held by thread in question. 60 (1) can become not true if some thread enters that area while another is there. 62 In the first case the thread was already in the area. In the second, 63 the thread was holding pd_lock and found pd_busy not set, which would [all …]
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_main.c | 148 static void mvpp2_thread_write(struct mvpp2 *priv, unsigned int thread, in mvpp2_thread_write() argument 151 writel(data, priv->swth_base[thread] + offset); in mvpp2_thread_write() 154 static u32 mvpp2_thread_read(struct mvpp2 *priv, unsigned int thread, in mvpp2_thread_read() argument 157 return readl(priv->swth_base[thread] + offset); in mvpp2_thread_read() 160 static void mvpp2_thread_write_relaxed(struct mvpp2 *priv, unsigned int thread, in mvpp2_thread_write_relaxed() argument 163 writel_relaxed(data, priv->swth_base[thread] + offset); in mvpp2_thread_write_relaxed() 166 static u32 mvpp2_thread_read_relaxed(struct mvpp2 *priv, unsigned int thread, in mvpp2_thread_read_relaxed() argument 169 return readl_relaxed(priv->swth_base[thread] + offset); in mvpp2_thread_read_relaxed() 443 unsigned int thread = mvpp2_cpu_to_thread(priv, get_cpu()); in mvpp2_bm_bufs_get_addrs() local 445 *dma_addr = mvpp2_thread_read(priv, thread, in mvpp2_bm_bufs_get_addrs() [all …]
|
/drivers/clocksource/ |
D | timer-nps.c | 139 int thread; in nps_clkevent_rm_thread() local 147 thread = read_aux_reg(CTOP_AUX_THREAD_ID); in nps_clkevent_rm_thread() 148 enabled_threads &= ~(1 << thread); in nps_clkevent_rm_thread() 163 int thread; in nps_clkevent_add_thread() local 169 thread = read_aux_reg(CTOP_AUX_THREAD_ID); in nps_clkevent_add_thread() 171 enabled_threads |= (1 << thread); in nps_clkevent_add_thread()
|
/drivers/iio/buffer/ |
D | industrialio-triggered-buffer.c | 38 irqreturn_t (*thread)(int irq, void *p), in iio_triggered_buffer_setup() 53 thread, in iio_triggered_buffer_setup() 98 irqreturn_t (*thread)(int irq, void *p), in devm_iio_triggered_buffer_setup() 111 ret = iio_triggered_buffer_setup(indio_dev, h, thread, ops); in devm_iio_triggered_buffer_setup()
|
/drivers/media/pci/pt3/ |
D | pt3.c | 439 adap->thread->comm); in pt3_fetch_thread() 454 adap->thread->comm); in pt3_fetch_thread() 460 struct task_struct *thread; in pt3_start_streaming() local 463 thread = kthread_run(pt3_fetch_thread, adap, "pt3-ad%i-dmx%i", in pt3_start_streaming() 465 if (IS_ERR(thread)) { in pt3_start_streaming() 466 int ret = PTR_ERR(thread); in pt3_start_streaming() 468 adap->thread = NULL; in pt3_start_streaming() 474 adap->thread = thread; in pt3_start_streaming() 490 ret = kthread_stop(adap->thread); in pt3_stop_streaming() 491 adap->thread = NULL; in pt3_stop_streaming() [all …]
|
/drivers/w1/ |
D | w1_int.c | 139 dev->thread = kthread_run(&w1_process, dev, "%s", dev->name); in w1_add_master_device() 140 if (IS_ERR(dev->thread)) { in w1_add_master_device() 141 retval = PTR_ERR(dev->thread); in w1_add_master_device() 162 kthread_stop(dev->thread); in w1_add_master_device() 183 kthread_stop(dev->thread); in __w1_remove_master_device()
|
/drivers/media/rc/ |
D | rc-ir-raw.c | 231 if (!dev->raw || !dev->raw->thread) in ir_raw_event_handle() 234 wake_up_process(dev->raw->thread); in ir_raw_event_handle() 635 struct task_struct *thread; in ir_raw_event_register() local 637 thread = kthread_run(ir_raw_event_thread, dev->raw, "rc%u", dev->minor); in ir_raw_event_register() 638 if (IS_ERR(thread)) in ir_raw_event_register() 639 return PTR_ERR(thread); in ir_raw_event_register() 641 dev->raw->thread = thread; in ir_raw_event_register() 666 kthread_stop(dev->raw->thread); in ir_raw_event_unregister()
|
/drivers/tty/ |
D | mips_ejtag_fdc.c | 150 struct task_struct *thread; member 958 priv->thread = kthread_create(mips_ejtag_fdc_put, priv, priv->fdc_name); in mips_ejtag_fdc_tty_probe() 959 if (IS_ERR(priv->thread)) { in mips_ejtag_fdc_tty_probe() 960 ret = PTR_ERR(priv->thread); in mips_ejtag_fdc_tty_probe() 969 kthread_bind(priv->thread, dev->cpu); in mips_ejtag_fdc_tty_probe() 970 wake_up_process(priv->thread); in mips_ejtag_fdc_tty_probe() 1037 kthread_stop(priv->thread); in mips_ejtag_fdc_tty_probe() 1067 kthread_stop(priv->thread); in mips_ejtag_fdc_tty_cpu_down() 1098 priv->thread = kthread_create(mips_ejtag_fdc_put, priv, priv->fdc_name); in mips_ejtag_fdc_tty_cpu_up() 1099 if (IS_ERR(priv->thread)) { in mips_ejtag_fdc_tty_cpu_up() [all …]
|
/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_process.c | 66 static struct kfd_process *find_process(const struct task_struct *thread); 68 static struct kfd_process *create_process(const struct task_struct *thread); 747 struct task_struct *thread = current; in kfd_create_process() local 750 if (!thread->mm) in kfd_create_process() 754 if (thread->group_leader->mm != thread->mm) in kfd_create_process() 765 process = find_process(thread); in kfd_create_process() 769 process = create_process(thread); in kfd_create_process() 827 struct kfd_process *kfd_get_process(const struct task_struct *thread) in kfd_get_process() argument 831 if (!thread->mm) in kfd_get_process() 835 if (thread->group_leader->mm != thread->mm) in kfd_get_process() [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-dvb.c | 101 if (adap->thread) { in pvr2_dvb_stream_end() 102 kthread_stop(adap->thread); in pvr2_dvb_stream_end() 103 adap->thread = NULL; in pvr2_dvb_stream_end() 172 adap->thread = kthread_run(pvr2_dvb_feed_thread, adap, "pvrusb2-dvb"); in pvr2_dvb_stream_do_start() 174 if (IS_ERR(adap->thread)) { in pvr2_dvb_stream_do_start() 175 ret = PTR_ERR(adap->thread); in pvr2_dvb_stream_do_start() 176 adap->thread = NULL; in pvr2_dvb_stream_do_start()
|