/drivers/acpi/acpica/ |
H A D | exmutex.c | 55 struct acpi_thread_state *thread); 71 struct acpi_thread_state *thread = obj_desc->mutex.owner_thread; local 73 if (!thread) { 95 thread->acquired_mutex_list = obj_desc->mutex.next; 104 * thread - Current executing thread object 114 struct acpi_thread_state *thread) 118 list_head = thread->acquired_mutex_list; 133 thread->acquired_mutex_list = obj_desc; 142 * thread_id - Current thread stat 113 acpi_ex_link_mutex(union acpi_operand_object *obj_desc, struct acpi_thread_state *thread) argument 460 acpi_ex_release_all_mutexes(struct acpi_thread_state *thread) argument [all...] |
H A D | dswstate.c | 437 * PARAMETERS: thread - Get current active state for this Thread 447 *thread) 451 if (!thread) { 456 thread->walk_state_list)); 458 return (thread->walk_state_list); 466 * thread - Thread state object 476 struct acpi_thread_state *thread) 480 walk_state->next = thread->walk_state_list; 481 thread->walk_state_list = walk_state; 490 * PARAMETERS: thread 446 acpi_ds_get_current_walk_state(struct acpi_thread_state *thread) argument 475 acpi_ds_push_walk_state(struct acpi_walk_state *walk_state, struct acpi_thread_state *thread) argument 500 acpi_ds_pop_walk_state(struct acpi_thread_state *thread) argument 540 acpi_ds_create_walk_state(acpi_owner_id owner_id, union acpi_parse_object *origin, union acpi_operand_object *method_desc, struct acpi_thread_state *thread) argument [all...] |
H A D | psparse.c | 438 struct acpi_thread_state *thread; local 453 /* Create and initialize a new thread state */ 455 thread = acpi_ut_create_thread_state(); 456 if (!thread) { 470 walk_state->thread = thread; 477 walk_state->thread->current_sync_level = 481 acpi_ds_push_walk_state(walk_state, thread); 487 acpi_gbl_current_walk_list = thread; 515 acpi_ds_call_control_method(thread, walk_stat [all...] |
H A D | utstate.c | 179 * to track per-thread info during method execution 199 state->thread.thread_id = acpi_os_get_thread_id(); 201 /* Check for invalid thread ID - zero is very bad, it will break things */ 203 if (!state->thread.thread_id) { 205 state->thread.thread_id = (acpi_thread_id) 1;
|
H A D | dsmethod.c | 314 * increments the thread count, and waits at the method semaphore 332 /* Prevent wraparound of thread count */ 357 * The current_sync_level (per-thread) must be less than or equal to 370 && (walk_state->thread->current_sync_level > 375 walk_state->thread->current_sync_level)); 386 (walk_state->thread->thread_id != 405 walk_state->thread->current_sync_level; 408 walk_state->thread->thread_id; 409 walk_state->thread->current_sync_level = 424 * Allocate an Owner ID for this method, only if this is the first thread 467 acpi_ds_call_control_method(struct acpi_thread_state *thread, struct acpi_walk_state *this_walk_state, union acpi_parse_object *op) argument [all...] |
H A D | acdispat.h | 209 acpi_ds_call_control_method(struct acpi_thread_state *thread, 321 *thread); 338 *thread); 342 struct acpi_thread_state *thread); 347 *thread);
|
/drivers/net/wireless/rsi/ |
H A D | rsi_common.h | 61 struct rsi_thread *thread, 65 init_completion(&thread->completion); 66 thread->task = kthread_run(func_ptr, common, "%s", name); 67 if (IS_ERR(thread->task)) 68 return (int)PTR_ERR(thread->task); 60 rsi_create_kthread(struct rsi_common *common, struct rsi_thread *thread, void *func_ptr, u8 *name) argument
|
/drivers/staging/lustre/lustre/ptlrpc/ |
H A D | sec_gc.c | 87 /* signal before list_del to make iteration in gc thread safe */ 164 struct ptlrpc_thread *thread = (struct ptlrpc_thread *) arg; local 169 /* Record that the thread is running */ 170 thread_set_flags(thread, SVC_RUNNING); 171 wake_up(&thread->t_ctl_waitq); 176 thread_clear_flags(thread, SVC_SIGNAL); 203 l_wait_event(thread->t_ctl_waitq, 204 thread_is_stopping(thread) || 205 thread_is_signal(thread), 208 if (thread_test_and_clear_flags(thread, SVC_STOPPIN [all...] |
H A D | service.c | 133 /* NB: we might allow more than one thread in the future */ 144 /* NB: another thread might have recycled enough rqbds, we 208 int hrt_id; /* thread ID */ 222 /* round-robin rotor for choosing thread */ 271 * Choose an hr thread to dispatch requests to. 498 * CPT affinity service could have percpt thread-pool instead 499 * of a global thread-pool, which means user might not always 551 * one thread/core because service threads are supposed to 562 /* depress thread factor for hyper-thread */ 1734 ptlrpc_server_handle_req_in(struct ptlrpc_service_part *svcpt, struct ptlrpc_thread *thread) argument 1877 ptlrpc_server_handle_request(struct ptlrpc_service_part *svcpt, struct ptlrpc_thread *thread) argument 2202 ptlrpc_thread_stopping(struct ptlrpc_thread *thread) argument 2233 ptlrpc_wait_event(struct ptlrpc_service_part *svcpt, struct ptlrpc_thread *thread) argument 2271 struct ptlrpc_thread *thread = (struct ptlrpc_thread *)arg; local 2571 struct ptlrpc_thread *thread; local 2664 struct ptlrpc_thread *thread; local [all...] |
H A D | pinger.c | 239 struct ptlrpc_thread *thread = (struct ptlrpc_thread *)arg; local 241 /* Record that the thread is running */ 242 thread_set_flags(thread, SVC_RUNNING); 243 wake_up(&thread->t_ctl_waitq); 290 l_wait_event(thread->t_ctl_waitq, 291 thread_is_stopping(thread) || 292 thread_is_event(thread), 294 if (thread_test_and_clear_flags(thread, SVC_STOPPING)) { 298 thread_test_and_clear_flags(thread, SVC_EVENT); 303 thread_set_flags(thread, SVC_STOPPE [all...] |
/drivers/dma/ |
H A D | dmatest.c | 176 struct dmatest_thread *thread; local 178 list_for_each_entry(thread, &dtc->threads, node) { 179 if (!thread->done) 402 struct dmatest_thread *thread = data; local 429 info = thread->info; 431 chan = thread->chan; 433 if (thread->type == DMA_MEMCPY) 435 else if (thread->type == DMA_XOR) { 439 } else if (thread->type == DMA_PQ) { 453 thread 720 struct dmatest_thread *thread; local 743 struct dmatest_thread *thread; local [all...] |
/drivers/staging/android/ |
H A D | binder.c | 1211 pr_err("reply failed, target thread, %d:%d, has error code %d already\n", 1227 "reply failed, no target thread at root\n"); 1232 "reply failed, no target thread -- retry %d\n", 1315 struct binder_thread *thread, 1334 e->from_thread = thread->pid; 1340 in_reply_to = thread->transaction_stack; 1343 proc->pid, thread->pid); 1348 if (in_reply_to->to_thread != thread) { 1350 proc->pid, thread->pid, in_reply_to->debug_id, 1359 thread 1314 binder_transaction(struct binder_proc *proc, struct binder_thread *thread, struct binder_transaction_data *tr, int reply) argument 1754 binder_thread_write(struct binder_proc *proc, struct binder_thread *thread, binder_uintptr_t binder_buffer, size_t size, binder_size_t *consumed) argument 2117 binder_stat_br(struct binder_proc *proc, struct binder_thread *thread, uint32_t cmd) argument 2128 binder_has_proc_work(struct binder_proc *proc, struct binder_thread *thread) argument 2135 binder_has_thread_work(struct binder_thread *thread) argument 2141 binder_thread_read(struct binder_proc *proc, struct binder_thread *thread, binder_uintptr_t binder_buffer, size_t size, binder_size_t *consumed, int non_block) argument 2519 struct binder_thread *thread = NULL; local 2552 binder_free_thread(struct binder_proc *proc, struct binder_thread *thread) argument 2597 struct binder_thread *thread = NULL; local 2625 binder_ioctl_write_read(struct file *filp, unsigned int cmd, unsigned long arg, struct binder_thread *thread) argument 2729 struct binder_thread *thread; local 2993 struct binder_thread *thread = rb_entry(n, struct binder_thread, rb_node); local 3084 struct binder_thread *thread; local 3290 print_binder_thread(struct seq_file *m, struct binder_thread *thread, int print_always) argument [all...] |
/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-dvb.h | 25 struct task_struct *thread; member in struct:pvr2_dvb_adapter
|
H A D | pvrusb2-dvb.c | 41 pvr2_trace(PVR2_TRACE_DVB_FEED, "dvb feed thread started"); 88 pvr2_trace(PVR2_TRACE_DVB_FEED, "dvb feed thread stopped"); 114 if (adap->thread) { 115 kthread_stop(adap->thread); 116 adap->thread = NULL; 185 adap->thread = kthread_run(pvr2_dvb_feed_thread, adap, "pvrusb2-dvb"); 187 if (IS_ERR(adap->thread)) { 188 ret = PTR_ERR(adap->thread); 189 adap->thread = NULL;
|
/drivers/irqchip/ |
H A D | irq-metag.c | 163 unsigned int thread = hard_processor_id(); local 168 metag_out32(TBI_TRIG_VEC(TBID_SIGNUM_TR1(thread)), vec_addr); 195 unsigned int cpu, thread; local 205 thread = cpu_2_hwthread_id[cpu]; 207 metag_out32(TBI_TRIG_VEC(TBID_SIGNUM_TR1(thread)), 284 unsigned int thread = cpu_2_hwthread_id[cpu]; local 285 unsigned int signum = TBID_SIGNUM_TR1(thread);
|
H A D | irq-metag-ext.c | 134 int thread = hard_processor_id(); local 141 metag_out32(TBI_TRIG_VEC(TBID_SIGNUM_TR2(thread)), vec_addr); 338 unsigned int thread = hard_processor_id(); local 343 metag_out32(TBI_TRIG_VEC(TBID_SIGNUM_TR2(thread)), vec_addr); 379 unsigned int thread = hard_processor_id(); local 384 metag_out32(TBI_TRIG_VEC(TBID_SIGNUM_TR2(thread)), vec_addr); 509 unsigned int cpu, thread; local 519 thread = cpu_2_hwthread_id[cpu]; 521 metag_out32(TBI_TRIG_VEC(TBID_SIGNUM_TR2(thread)), vec_addr); 782 unsigned int thread local [all...] |
/drivers/media/pci/saa7134/ |
H A D | saa7134-tvaudio.c | 318 if (dev->thread.scan1 == dev->thread.scan2 && 328 return dev->thread.scan1 != dev->thread.scan2; 491 dev->thread.scan1 = dev->thread.scan2; 492 dprintk("tvaudio thread scan start [%d]\n",dev->thread.scan1); 531 if (dev->thread.scan1 != dev->thread [all...] |
/drivers/base/ |
H A D | devtmpfs.c | 29 static struct task_struct *thread; variable in typeref:struct:task_struct 87 if (!thread) 113 wake_up_process(thread); 126 if (!thread) 143 wake_up_process(thread); 163 dentry->d_inode->i_private = &thread; 223 dentry->d_inode->i_private = &thread; 239 if (dentry->d_inode->i_private == &thread) 280 if (inode->i_private != &thread) 354 if (!thread) [all...] |
/drivers/staging/lustre/lustre/llite/ |
H A D | statahead.c | 227 * 2) All other threads, including statahead thread and ptlrpcd thread, 235 * by the statahead thread, following the rule 2). 746 * when statahead thread tries to enqueue lock on parent 968 struct ptlrpc_thread *thread = &sai->sai_agl_thread; local 971 thread->t_pid = current_pid(); 972 CDEBUG(D_READA, "agl thread started: sai %p, parent %.*s\n", 978 if (thread_is_init(thread)) 979 /* If someone else has changed the thread state 982 thread_set_flags(thread, SVC_RUNNIN 1029 struct ptlrpc_thread *thread = &sai->sai_agl_thread; local 1059 struct ptlrpc_thread *thread = &sai->sai_thread; local 1316 struct ptlrpc_thread *thread = &lli->lli_sai->sai_thread; local 1473 struct ptlrpc_thread *thread = &sai->sai_thread; local 1528 struct ptlrpc_thread *thread; local [all...] |
/drivers/thermal/ |
H A D | intel_powerclamp.c | 93 * clamping thread 507 struct task_struct *thread; local 527 /* start one thread per online cpu */ 532 thread = kthread_create_on_node(clamp_thread, 537 if (likely(!IS_ERR(thread))) { 538 kthread_bind(thread, cpu); 539 wake_up_process(thread); 540 *p = thread; 552 struct task_struct *thread; local 563 pr_debug("clamping thread fo 574 struct task_struct *thread; local [all...] |
/drivers/scsi/bnx2i/ |
H A D | bnx2i_init.c | 415 * bnx2i_percpu_thread_create - Create a receive thread for an 423 struct task_struct *thread; local 427 thread = kthread_create_on_node(bnx2i_percpu_io_thread, (void *)p, 430 /* bind thread to the cpu */ 431 if (likely(!IS_ERR(thread))) { 432 kthread_bind(thread, cpu); 433 p->iothread = thread; 434 wake_up_process(thread); 442 struct task_struct *thread; local 448 thread [all...] |
/drivers/media/rc/ |
H A D | rc-ir-raw.c | 227 wake_up_process(dev->raw->thread); 273 dev->raw->thread = kthread_run(ir_raw_event_thread, dev->raw, 276 if (IS_ERR(dev->raw->thread)) { 277 rc = PTR_ERR(dev->raw->thread); 303 kthread_stop(dev->raw->thread);
|
/drivers/w1/ |
H A D | w1_int.c | 49 * We are in process context(kernel thread), so can sleep. 158 dev->thread = kthread_run(&w1_process, dev, "%s", dev->name); 159 if (IS_ERR(dev->thread)) { 160 retval = PTR_ERR(dev->thread); 162 "Failed to create new kernel thread. err=%d\n", 181 kthread_stop(dev->thread); 201 kthread_stop(dev->thread);
|
/drivers/media/v4l2-core/ |
H A D | videobuf-dvb.c | 50 dprintk("dvb thread started\n"); 83 dprintk("dvb thread stopped\n"); 106 if (NULL != dvb->thread) 108 dvb->thread = kthread_run(videobuf_dvb_thread, 110 if (IS_ERR(dvb->thread)) { 111 rc = PTR_ERR(dvb->thread); 112 dvb->thread = NULL; 128 if (0 == dvb->nfeeds && NULL != dvb->thread) { 129 err = kthread_stop(dvb->thread); 130 dvb->thread [all...] |
/drivers/staging/lustre/lustre/include/ |
H A D | lustre_net.h | 326 * serving thread. Example of the latter is ptlrpcd set. 448 /** Context for the service thread */ 1283 /** initial thread servicing this request */ 1793 * Definition of server service thread structure 1801 * thread-private data (preallocated memory) 1806 * service thread index, from ptlrpc_start_threads 1810 * service thread pid 1814 * put watchdog in the structure per thread b=14840 1823 * the svc this thread belonged to b=18582 1831 static inline int thread_is_init(struct ptlrpc_thread *thread) argument 1836 thread_is_stopped(struct ptlrpc_thread *thread) argument 1841 thread_is_stopping(struct ptlrpc_thread *thread) argument 1846 thread_is_starting(struct ptlrpc_thread *thread) argument 1851 thread_is_running(struct ptlrpc_thread *thread) argument 1856 thread_is_event(struct ptlrpc_thread *thread) argument 1861 thread_is_signal(struct ptlrpc_thread *thread) argument 1866 thread_clear_flags(struct ptlrpc_thread *thread, __u32 flags) argument 1871 thread_set_flags(struct ptlrpc_thread *thread, __u32 flags) argument 1876 thread_add_flags(struct ptlrpc_thread *thread, __u32 flags) argument 1881 thread_test_and_clear_flags(struct ptlrpc_thread *thread, __u32 flags) argument [all...] |