| /drivers/mailbox/ |
| A D | mtk-cmdq-mailbox.c | 72 struct cmdq_thread *thread; member 82 struct cmdq_thread *thread; member 187 struct cmdq_thread *thread = task->thread; in cmdq_task_insert_into_thread() local 222 struct cmdq_thread *thread = task->thread; in cmdq_task_handle_error() local 233 cmdq_thread_resume(thread); in cmdq_task_handle_error() 298 struct cmdq_thread *thread = &cmdq->thread[bit]; in cmdq_irq_handler() local 335 struct cmdq_thread *thread; in cmdq_suspend() local 342 thread = &cmdq->thread[i]; in cmdq_suspend() 400 task->thread = thread; in cmdq_mbox_send_data() 417 writel(thread->priority, thread->base + CMDQ_THR_PRIORITY); in cmdq_mbox_send_data() [all …]
|
| /drivers/md/dm-vdo/ |
| A D | thread-utils.c | 21 struct thread { struct 37 struct thread *thread = arg; in thread_starter() local 39 thread->thread_task = current; in thread_starter() 44 thread->thread_function(thread->thread_data); in thread_starter() 46 complete(&thread->thread_done); in thread_starter() 56 struct thread *thread; in vdo_create_thread() local 59 result = vdo_allocate(1, struct thread, __func__, &thread); in vdo_create_thread() 91 vdo_free(thread); in vdo_create_thread() 95 *new_thread = thread; in vdo_create_thread() 99 void vdo_join_threads(struct thread *thread) in vdo_join_threads() argument [all …]
|
| A D | thread-registry.c | 28 struct registered_thread *thread; in vdo_register_thread() local 37 if (thread->task == current) { in vdo_register_thread() 39 list_del_rcu(&thread->links); in vdo_register_thread() 51 INIT_LIST_HEAD(&thread->links); in vdo_register_thread() 57 struct registered_thread *thread; in vdo_unregister_thread() local 62 if (thread->task == current) { in vdo_unregister_thread() 63 list_del_rcu(&thread->links); in vdo_unregister_thread() 74 INIT_LIST_HEAD(&thread->links); in vdo_unregister_thread() 80 struct registered_thread *thread; in vdo_lookup_thread() local 85 if (thread->task == current) { in vdo_lookup_thread() [all …]
|
| A D | thread-utils.h | 13 struct thread; 17 const char *name, struct thread **new_thread); 18 void vdo_join_threads(struct thread *thread);
|
| A D | funnel-workqueue.c | 62 struct task_struct *thread; member 318 struct task_struct *thread = NULL; in make_simple_work_queue() local 349 thread = kthread_run(work_queue_runner, queue, "%s:%s", thread_name_prefix, in make_simple_work_queue() 351 if (IS_ERR(thread)) { in make_simple_work_queue() 353 return (int) PTR_ERR(thread); in make_simple_work_queue() 356 queue->thread = thread; in make_simple_work_queue() 445 if (queue->thread == NULL) in finish_simple_work_queue() 449 kthread_stop(queue->thread); in finish_simple_work_queue() 450 queue->thread = NULL; in finish_simple_work_queue() 482 if (queue->thread != NULL) { in dump_simple_work_queue() [all …]
|
| A D | vdo.c | 418 if (thread->queue != NULL) { in vdo_make_thread() 424 thread->vdo = vdo; in vdo_make_thread() 425 thread->thread_id = thread_id; in vdo_make_thread() 1005 .next = thread->listeners, in vdo_register_read_only_listener() 1145 thread->is_read_only = true; in make_thread_read_only() 1146 listener = thread->listeners; in make_thread_read_only() 1244 struct vdo_thread *thread; in vdo_enter_read_only_mode() local 1248 if (thread->is_read_only) { in vdo_enter_read_only_mode() 1254 thread->is_read_only = true; in vdo_enter_read_only_mode() 1600 struct vdo_thread *thread; in vdo_get_callback_thread_id() local [all …]
|
| /drivers/android/ |
| A D | binder.c | 492 thread->pid == current->pid && !thread->process_todo) in binder_enqueue_thread_work_ilocked() 620 if (thread) in binder_select_thread_ilocked() 623 return thread; in binder_select_thread_ilocked() 648 if (thread) { in binder_wakeup_thread_ilocked() 1542 if (thread->is_dead && !atomic_read(&thread->tmp_ref)) { in binder_thread_dec_tmpref() 2879 (thread && thread->is_dead)) { in binder_proc_transaction() 4329 thread, in binder_thread_write() 4685 proc->pid, thread->pid, thread->looper); in binder_thread_read() 5361 if (!thread) in binder_poll() 5906 if (thread) in binder_ioctl() [all …]
|
| /drivers/acpi/acpica/ |
| A D | exmutex.c | 21 struct acpi_thread_state *thread); 39 if (!thread) { 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() 231 walk_state->thread)); in acpi_ex_acquire_mutex() 235 walk_state->thread->thread_id); in acpi_ex_acquire_mutex() 365 if (!walk_state->thread) { in acpi_ex_release_mutex() 418 walk_state->thread)); in acpi_ex_release_mutex() [all …]
|
| A 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() 472 walk_state = thread->walk_state_list; in acpi_ds_pop_walk_state() 512 *thread) in acpi_ds_create_walk_state() 527 walk_state->thread = thread; in acpi_ds_create_walk_state() [all …]
|
| A 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() 553 walk_state = acpi_ds_pop_walk_state(thread); in acpi_ps_parse_aml() 682 acpi_ex_release_all_mutexes(thread); in acpi_ps_parse_aml() [all …]
|
| A 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()
|
| A 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 506 thread); in acpi_ds_call_control_method() 589 acpi_ds_pop_walk_state(thread); in acpi_ds_call_control_method() 771 walk_state->thread->current_sync_level = in acpi_ds_terminate_control_method()
|
| /drivers/of/ |
| A D | cpu.c | 14 u64 of_get_cpu_hwid(struct device_node *cpun, unsigned int thread) in of_get_cpu_hwid() argument 21 if (!cell || !ac || ((sizeof(*cell) * ac * (thread + 1)) > len)) in of_get_cpu_hwid() 24 cell += ac * thread; in of_get_cpu_hwid() 53 const char *prop_name, int cpu, unsigned int *thread) in __of_find_n_match_cpu_property() argument 69 if (thread) in __of_find_n_match_cpu_property() 70 *thread = tid; in __of_find_n_match_cpu_property() 85 int cpu, unsigned int *thread) in arch_find_n_match_cpu_physical_id() argument 94 cpu, thread)) in arch_find_n_match_cpu_physical_id() 97 return __of_find_n_match_cpu_property(cpun, "reg", cpu, thread); in arch_find_n_match_cpu_physical_id() 119 struct device_node *of_get_cpu_node(int cpu, unsigned int *thread) in of_get_cpu_node() argument [all …]
|
| /drivers/dma/ |
| A D | dmatest.c | 260 if (!thread->done && !thread->pending) in is_threaded_test_run() 439 if (!thread->done) { in dmatest_callback() 612 info = thread->info; in dmatest_func() 614 chan = thread->chan; in dmatest_func() 618 src = &thread->src; in dmatest_func() 619 dst = &thread->dst; in dmatest_func() 960 kfree(thread); in dmatest_cleanup_channel() 991 if (!thread) { in dmatest_add_threads() 999 thread->test_done.wait = &thread->done_wait; in dmatest_add_threads() 1002 thread->task = kthread_create(dmatest_func, thread, "%s-%s%u", in dmatest_add_threads() [all …]
|
| /drivers/media/pci/saa7134/ |
| A 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() 773 dev->thread.scan1 = dev->thread.scan2; in tvaudio_thread_ddep() 1014 dev->thread.thread = NULL; in saa7134_tvaudio_init2() 1015 dev->thread.scan1 = dev->thread.scan2 = 0; in saa7134_tvaudio_init2() 1020 if (IS_ERR(dev->thread.thread)) { in saa7134_tvaudio_init2() 1041 if (dev->thread.thread && !dev->thread.stopped) in saa7134_tvaudio_fini() 1042 kthread_stop(dev->thread.thread); in saa7134_tvaudio_fini() 1054 } else if (dev->thread.thread) { in saa7134_tvaudio_do_scan() [all …]
|
| /drivers/base/ |
| A D | devtmpfs.c | 40 static struct task_struct *thread; variable 121 wake_up_process(thread); in devtmpfs_submit_req() 134 if (!thread) in devtmpfs_create_node() 161 if (!thread) in devtmpfs_delete_node() 186 d_inode(dentry)->i_private = &thread; in dev_mkdir() 302 if (inode->i_private != &thread) in dev_mynode() 372 if (!thread) in devtmpfs_mount() 503 if (!IS_ERR(thread)) { in devtmpfs_init() 506 err = PTR_ERR(thread); in devtmpfs_init() 507 thread = NULL; in devtmpfs_init() [all …]
|
| /drivers/net/wireless/rsi/ |
| A 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/vfio/ |
| A 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() 113 void (*thread)(void *, void *), in vfio_virqfd_enable() 128 virqfd->thread = thread; in vfio_virqfd_enable() 180 if ((!handler || handler(opaque, data)) && thread) in vfio_virqfd_enable() 220 if (*pvirqfd && (*pvirqfd)->thread) in vfio_virqfd_flush_thread()
|
| /drivers/misc/amd-sbi/ |
| A D | rmi-core.c | 54 u8 thread; /* thread number */ member 79 input->thread = thread_id << 1; in prepare_cpuid_input_message() 90 input->thread = thread_id << 1; in prepare_mca_msr_input_message() 116 u16 thread; in rmi_cpuid_read() local 134 if (thread > 127) { in rmi_cpuid_read() 135 thread -= 128; in rmi_cpuid_read() 142 prepare_cpuid_input_message(&input, thread, in rmi_cpuid_read() 197 u16 thread; in rmi_mca_msr_read() local 215 if (thread > 127) { in rmi_mca_msr_read() 216 thread -= 128; in rmi_mca_msr_read() [all …]
|
| /drivers/net/ethernet/marvell/mvpp2/ |
| A D | mvpp2_main.c | 1431 u32 thread; in mvpp2_interrupts_mask() local 1453 u32 val, thread; in mvpp2_interrupts_unmask() local 2547 for (thread = 0; thread < port->priv->nthreads; thread++) { in mvpp2_txq_reserved_desc_num_proc() 2750 for (thread = 0; thread < MVPP2_MAX_THREADS; thread++) { in mvpp2_tx_pkts_coal_set() 3151 for (thread = 0; thread < port->priv->nthreads; thread++) { in mvpp2_txq_init() 3188 for (thread = 0; thread < port->priv->nthreads; thread++) { in mvpp2_txq_deinit() 3258 for (thread = 0; thread < port->priv->nthreads; thread++) { in mvpp2_txq_clean() 4903 for (thread = 0; thread < port->priv->nthreads; thread++) { in mvpp2_stop() 6039 for (thread = 0; thread < priv->nthreads; thread++) { in mvpp2_port_init() 6041 txq_pcpu->thread = thread; in mvpp2_port_init() [all …]
|
| /drivers/scsi/bnx2i/ |
| A D | bnx2i_init.c | 414 struct task_struct *thread; in bnx2i_cpu_online() local 418 thread = kthread_create_on_cpu(bnx2i_percpu_io_thread, (void *)p, in bnx2i_cpu_online() 420 if (IS_ERR(thread)) in bnx2i_cpu_online() 421 return PTR_ERR(thread); in bnx2i_cpu_online() 423 p->iothread = thread; in bnx2i_cpu_online() 424 wake_up_process(thread); in bnx2i_cpu_online() 431 struct task_struct *thread; in bnx2i_cpu_offline() local 437 thread = p->iothread; in bnx2i_cpu_offline() 449 if (thread) in bnx2i_cpu_offline() 450 kthread_stop(thread); in bnx2i_cpu_offline()
|
| /drivers/iio/buffer/ |
| A D | industrialio-triggered-buffer.c | 41 irqreturn_t (*thread)(int irq, void *p), in iio_triggered_buffer_setup_ext() 66 thread, in iio_triggered_buffer_setup_ext() 120 irqreturn_t (*thread)(int irq, void *p), in devm_iio_triggered_buffer_setup_ext() 127 ret = iio_triggered_buffer_setup_ext(indio_dev, h, thread, direction, in devm_iio_triggered_buffer_setup_ext()
|
| /drivers/media/pci/pt3/ |
| A 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 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() 518 if (adap->num_feeds > 0 || !adap->thread) in pt3_stop_feed() [all …]
|
| /drivers/w1/ |
| A D | w1_int.c | 135 dev->thread = kthread_run(&w1_process, dev, "%s", dev->name); in w1_add_master_device() 136 if (IS_ERR(dev->thread)) { in w1_add_master_device() 137 retval = PTR_ERR(dev->thread); in w1_add_master_device() 158 kthread_stop(dev->thread); in w1_add_master_device() 179 kthread_stop(dev->thread); in __w1_remove_master_device()
|
| /drivers/media/rc/ |
| A D | rc-ir-raw.c | 229 if (!dev->raw || !dev->raw->thread) in ir_raw_event_handle() 232 wake_up_process(dev->raw->thread); in ir_raw_event_handle() 634 struct task_struct *thread; in ir_raw_event_register() local 636 thread = kthread_run(ir_raw_event_thread, dev->raw, "rc%u", dev->minor); in ir_raw_event_register() 637 if (IS_ERR(thread)) in ir_raw_event_register() 638 return PTR_ERR(thread); in ir_raw_event_register() 640 dev->raw->thread = thread; in ir_raw_event_register() 665 kthread_stop(dev->raw->thread); in ir_raw_event_unregister()
|