/drivers/mailbox/ |
D | mtk-cmdq-mailbox.c | 66 struct cmdq_thread *thread; member 76 struct cmdq_thread *thread; member 81 static int cmdq_thread_suspend(struct cmdq *cmdq, struct cmdq_thread *thread) in cmdq_thread_suspend() argument 85 writel(CMDQ_THR_SUSPEND, thread->base + CMDQ_THR_SUSPEND_TASK); in cmdq_thread_suspend() 88 if (!(readl(thread->base + CMDQ_THR_ENABLE_TASK) & CMDQ_THR_ENABLED)) in cmdq_thread_suspend() 91 if (readl_poll_timeout_atomic(thread->base + CMDQ_THR_CURR_STATUS, in cmdq_thread_suspend() 94 (u32)(thread->base - cmdq->base)); in cmdq_thread_suspend() 101 static void cmdq_thread_resume(struct cmdq_thread *thread) in cmdq_thread_resume() argument 103 writel(CMDQ_THR_RESUME, thread->base + CMDQ_THR_SUSPEND_TASK); in cmdq_thread_resume() 117 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() 758 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 | 841 binder_enqueue_deferred_thread_work_ilocked(struct binder_thread *thread, in binder_enqueue_deferred_thread_work_ilocked() argument 844 WARN_ON(!list_empty(&thread->waiting_thread_node)); in binder_enqueue_deferred_thread_work_ilocked() 845 binder_enqueue_work_ilocked(work, &thread->todo); in binder_enqueue_deferred_thread_work_ilocked() 859 binder_enqueue_thread_work_ilocked(struct binder_thread *thread, in binder_enqueue_thread_work_ilocked() argument 862 WARN_ON(!list_empty(&thread->waiting_thread_node)); in binder_enqueue_thread_work_ilocked() 863 binder_enqueue_work_ilocked(work, &thread->todo); in binder_enqueue_thread_work_ilocked() 864 thread->process_todo = true; in binder_enqueue_thread_work_ilocked() 876 binder_enqueue_thread_work(struct binder_thread *thread, in binder_enqueue_thread_work() argument 879 binder_inner_proc_lock(thread->proc); in binder_enqueue_thread_work() 880 binder_enqueue_thread_work_ilocked(thread, work); in binder_enqueue_thread_work() [all …]
|
/drivers/dma/ |
D | dmatest.c | 240 struct dmatest_thread *thread; in is_threaded_test_run() local 242 list_for_each_entry(thread, &dtc->threads, node) { in is_threaded_test_run() 243 if (!thread->done) in is_threaded_test_run() 256 struct dmatest_thread *thread; in is_threaded_test_pending() local 258 list_for_each_entry(thread, &dtc->threads, node) { in is_threaded_test_pending() 259 if (thread->pending) in is_threaded_test_pending() 420 struct dmatest_thread *thread = in dmatest_callback() local 422 if (!thread->done) { in dmatest_callback() 554 struct dmatest_thread *thread = data; in dmatest_func() local 555 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() 772 dev->thread.scan1 = dev->thread.scan2; in tvaudio_thread_ddep() 774 dev->thread.scan1); in tvaudio_thread_ddep() [all …]
|
/drivers/base/ |
D | devtmpfs.c | 31 static struct task_struct *thread; variable 101 if (!thread) in devtmpfs_create_node() 127 wake_up_process(thread); in devtmpfs_create_node() 140 if (!thread) in devtmpfs_delete_node() 157 wake_up_process(thread); in devtmpfs_delete_node() 177 d_inode(dentry)->i_private = &thread; in dev_mkdir() 237 d_inode(dentry)->i_private = &thread; in handle_create() 253 if (d_inode(dentry)->i_private == &thread) in dev_rmdir() 294 if (inode->i_private != &thread) in dev_mynode() 369 if (!thread) in devtmpfs_mount() [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/net/ethernet/marvell/mvpp2/ |
D | mvpp2_main.c | 131 static void mvpp2_thread_write(struct mvpp2 *priv, unsigned int thread, in mvpp2_thread_write() argument 134 writel(data, priv->swth_base[thread] + offset); in mvpp2_thread_write() 137 static u32 mvpp2_thread_read(struct mvpp2 *priv, unsigned int thread, in mvpp2_thread_read() argument 140 return readl(priv->swth_base[thread] + offset); in mvpp2_thread_read() 143 static void mvpp2_thread_write_relaxed(struct mvpp2 *priv, unsigned int thread, in mvpp2_thread_write_relaxed() argument 146 writel_relaxed(data, priv->swth_base[thread] + offset); in mvpp2_thread_write_relaxed() 149 static u32 mvpp2_thread_read_relaxed(struct mvpp2 *priv, unsigned int thread, in mvpp2_thread_read_relaxed() argument 152 return readl_relaxed(priv->swth_base[thread] + offset); in mvpp2_thread_read_relaxed() 413 unsigned int thread = mvpp2_cpu_to_thread(priv, get_cpu()); in mvpp2_bm_bufs_get_addrs() local 415 *dma_addr = mvpp2_thread_read(priv, thread, in mvpp2_bm_bufs_get_addrs() [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/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/gpu/drm/amd/amdkfd/ |
D | kfd_process.c | 63 static struct kfd_process *find_process(const struct task_struct *thread); 65 static struct kfd_process *create_process(const struct task_struct *thread); 270 struct task_struct *thread = current; in kfd_create_process() local 273 if (!thread->mm) in kfd_create_process() 277 if (thread->group_leader->mm != thread->mm) in kfd_create_process() 288 process = find_process(thread); in kfd_create_process() 292 process = create_process(thread); in kfd_create_process() 332 struct kfd_process *kfd_get_process(const struct task_struct *thread) in kfd_get_process() argument 336 if (!thread->mm) in kfd_get_process() 340 if (thread->group_leader->mm != thread->mm) in kfd_get_process() [all …]
|
/drivers/iio/buffer/ |
D | industrialio-triggered-buffer.c | 43 irqreturn_t (*thread)(int irq, void *p), in iio_triggered_buffer_setup() 58 thread, in iio_triggered_buffer_setup() 106 irqreturn_t (*thread)(int irq, void *p), in devm_iio_triggered_buffer_setup() 119 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 | 140 dev->thread = kthread_run(&w1_process, dev, "%s", dev->name); in w1_add_master_device() 141 if (IS_ERR(dev->thread)) { in w1_add_master_device() 142 retval = PTR_ERR(dev->thread); in w1_add_master_device() 163 kthread_stop(dev->thread); in w1_add_master_device() 184 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 957 priv->thread = kthread_create(mips_ejtag_fdc_put, priv, priv->fdc_name); in mips_ejtag_fdc_tty_probe() 958 if (IS_ERR(priv->thread)) { in mips_ejtag_fdc_tty_probe() 959 ret = PTR_ERR(priv->thread); in mips_ejtag_fdc_tty_probe() 968 kthread_bind(priv->thread, dev->cpu); in mips_ejtag_fdc_tty_probe() 969 wake_up_process(priv->thread); in mips_ejtag_fdc_tty_probe() 1036 kthread_stop(priv->thread); in mips_ejtag_fdc_tty_probe() 1066 kthread_stop(priv->thread); in mips_ejtag_fdc_tty_cpu_down() 1097 priv->thread = kthread_create(mips_ejtag_fdc_put, priv, priv->fdc_name); in mips_ejtag_fdc_tty_cpu_up() 1098 if (IS_ERR(priv->thread)) { in mips_ejtag_fdc_tty_cpu_up() [all …]
|
/drivers/gpu/drm/scheduler/ |
D | sched_main.c | 370 kthread_park(sched->thread); in drm_sched_stop() 467 kthread_unpark(sched->thread); in drm_sched_start() 797 sched->thread = kthread_run(drm_sched_main, sched, sched->name); in drm_sched_init() 798 if (IS_ERR(sched->thread)) { in drm_sched_init() 799 ret = PTR_ERR(sched->thread); in drm_sched_init() 800 sched->thread = NULL; in drm_sched_init() 819 if (sched->thread) in drm_sched_fini() 820 kthread_stop(sched->thread); in drm_sched_fini()
|
/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()
|