Searched refs:thread (Results 1 - 25 of 70) sorted by relevance

123

/drivers/acpi/acpica/
H A Dexmutex.c56 struct acpi_thread_state *thread);
72 struct acpi_thread_state *thread = obj_desc->mutex.owner_thread; local
74 if (!thread) {
96 thread->acquired_mutex_list = obj_desc->mutex.next;
105 * Thread - Current executing thread object
115 struct acpi_thread_state *thread)
119 list_head = thread->acquired_mutex_list;
134 thread->acquired_mutex_list = obj_desc;
143 * thread_id - Current thread state
148 * path that supports multiple acquires by the same thread
114 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 Ddswstate.c446 *thread)
450 if (!thread) {
455 thread->walk_state_list));
457 return (thread->walk_state_list);
475 struct acpi_thread_state *thread)
479 walk_state->next = thread->walk_state_list;
480 thread->walk_state_list = walk_state;
489 * PARAMETERS: Thread - Current thread state
491 * RETURN: A walk_state object popped from the thread's stack
499 struct acpi_walk_state *acpi_ds_pop_walk_state(struct acpi_thread_state *thread) argument
445 acpi_ds_get_current_walk_state(struct acpi_thread_state *thread) argument
474 acpi_ds_push_walk_state(struct acpi_walk_state *walk_state, struct acpi_thread_state *thread) argument
539 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 Dpsparse.c439 struct acpi_thread_state *thread; local
454 /* Create and initialize a new thread state */
456 thread = acpi_ut_create_thread_state();
457 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 Ddsmethod.c174 * increments the thread count, and waits at the method semaphore
192 /* Prevent wraparound of thread count */
217 * The current_sync_level (per-thread) must be less than or equal to
224 (walk_state->thread->current_sync_level >
229 walk_state->thread->current_sync_level));
240 (walk_state->thread->thread_id !=
259 walk_state->thread->current_sync_level;
262 walk_state->thread->thread_id;
263 walk_state->thread->current_sync_level =
278 * Allocate an Owner ID for this method, only if this is the first thread
320 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 Dutstate.c181 * to track per-thread info during method execution
201 state->thread.thread_id = acpi_os_get_thread_id();
203 /* Check for invalid thread ID - zero is very bad, it will break things */
205 if (!state->thread.thread_id) {
207 state->thread.thread_id = (acpi_thread_id) 1;
H A Dacdispat.h206 acpi_ds_call_control_method(struct acpi_thread_state *thread,
315 *thread);
332 *thread);
336 struct acpi_thread_state *thread);
341 *thread);
/drivers/dma/
H A Ddmatest.c248 struct dmatest_thread *thread = data; local
271 chan = thread->chan;
272 if (thread->type == DMA_MEMCPY)
274 else if (thread->type == DMA_XOR) {
277 } else if (thread->type == DMA_PQ) {
285 thread->srcs = kcalloc(src_cnt+1, sizeof(u8 *), GFP_KERNEL);
286 if (!thread->srcs)
289 thread->srcs[i] = kmalloc(test_buf_size, GFP_KERNEL);
290 if (!thread->srcs[i])
293 thread
514 struct dmatest_thread *thread; local
534 struct dmatest_thread *thread; local
[all...]
/drivers/staging/iio/
H A Dtrigger_consumer.h15 * @thread: threaded interrupt part
27 irqreturn_t (*thread)(int irq, void *p); member in struct:iio_poll_func
37 irqreturn_t (*thread)(int irq, void *p),
/drivers/media/video/pvrusb2/
H A Dpvrusb2-dvb.h25 struct task_struct *thread; member in struct:pvr2_dvb_adapter
H A Dpvrusb2-dvb.c41 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/staging/android/
H A Dbinder.c1296 "thread, %d:%d, has error code %d "
1314 " no target thread at root\n");
1320 "thread -- retry %d\n", t->debug_id);
1401 struct binder_thread *thread,
1419 e->from_thread = thread->pid;
1425 in_reply_to = thread->transaction_stack;
1429 proc->pid, thread->pid);
1434 if (in_reply_to->to_thread != thread) {
1438 proc->pid, thread->pid, in_reply_to->debug_id,
1447 thread
1400 binder_transaction(struct binder_proc *proc, struct binder_thread *thread, struct binder_transaction_data *tr, int reply) argument
1818 binder_thread_write(struct binder_proc *proc, struct binder_thread *thread, void __user *buffer, int size, signed long *consumed) argument
2205 binder_stat_br(struct binder_proc *proc, struct binder_thread *thread, uint32_t cmd) argument
2216 binder_has_proc_work(struct binder_proc *proc, struct binder_thread *thread) argument
2223 binder_has_thread_work(struct binder_thread *thread) argument
2229 binder_thread_read(struct binder_proc *proc, struct binder_thread *thread, void __user *buffer, int size, signed long *consumed, int non_block) argument
2567 struct binder_thread *thread = NULL; local
2600 binder_free_thread(struct binder_proc *proc, struct binder_thread *thread) argument
2645 struct binder_thread *thread = NULL; local
2677 struct binder_thread *thread; local
2983 struct binder_thread *thread = rb_entry(n, struct binder_thread, rb_node); local
3027 struct binder_thread *thread = rb_entry(n, struct binder_thread, rb_node); local
3251 print_binder_thread(struct seq_file *m, struct binder_thread *thread, int print_always) argument
[all...]
/drivers/media/video/saa7134/
H A Dsaa7134-tvaudio.c318 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 Ddevtmpfs.c28 static struct task_struct *thread; variable in typeref:struct:task_struct
84 if (!thread)
108 wake_up_process(thread);
121 if (!thread)
138 wake_up_process(thread);
158 dentry->d_inode->i_private = &thread;
219 dentry->d_inode->i_private = &thread;
242 if (dentry->d_inode->i_private == &thread)
288 if (inode->i_private != &thread)
368 if (!thread)
[all...]
/drivers/scsi/bnx2i/
H A Dbnx2i_init.c384 * bnx2i_percpu_thread_create - Create a receive thread for an
392 struct task_struct *thread; local
396 thread = kthread_create_on_node(bnx2i_percpu_io_thread, (void *)p,
399 /* bind thread to the cpu */
400 if (likely(!IS_ERR(thread))) {
401 kthread_bind(thread, cpu);
402 p->iothread = thread;
403 wake_up_process(thread);
411 struct task_struct *thread; local
417 thread
[all...]
/drivers/mmc/card/
H A Dqueue.h27 struct task_struct *thread; member in struct:mmc_queue
H A Dqueue.c113 wake_up_process(mq->thread);
265 mq->thread = kthread_run(mmc_queue_thread, mq, "mmcqd/%d%s",
268 if (IS_ERR(mq->thread)) {
269 ret = PTR_ERR(mq->thread);
305 /* Then terminate our worker thread */
306 kthread_stop(mq->thread);
340 * Stop the block request queue, and wait for our thread to
/drivers/media/rc/
H A Dir-raw.c232 wake_up_process(dev->raw->thread);
272 dev->raw->thread = kthread_run(ir_raw_event_thread, dev->raw,
275 if (IS_ERR(dev->raw->thread)) {
276 rc = PTR_ERR(dev->raw->thread);
302 kthread_stop(dev->raw->thread);
/drivers/w1/
H A Dw1_int.c49 * We are in process context(kernel thread), so can sleep.
164 dev->thread = kthread_run(&w1_process, dev, "%s", dev->name);
165 if (IS_ERR(dev->thread)) {
166 retval = PTR_ERR(dev->thread);
168 "Failed to create new kernel thread. err=%d\n",
186 kthread_stop(dev->thread);
201 kthread_stop(dev->thread);
/drivers/media/video/
H A Dvideobuf-dvb.c51 dprintk("dvb thread started\n");
84 dprintk("dvb thread stopped\n");
107 if (NULL != dvb->thread)
109 dvb->thread = kthread_run(videobuf_dvb_thread,
111 if (IS_ERR(dvb->thread)) {
112 rc = PTR_ERR(dvb->thread);
113 dvb->thread = NULL;
129 if (0 == dvb->nfeeds && NULL != dvb->thread) {
130 err = kthread_stop(dvb->thread);
131 dvb->thread
[all...]
/drivers/md/
H A Draid1.h94 * the new thread here until we fully activate the array.
96 struct md_thread *thread; member in struct:r1conf
H A Draid10.h69 * the new thread here until we fully activate the array.
71 struct md_thread *thread; member in struct:r10conf
/drivers/staging/speakup/
H A DMakefile29 thread.o \
/drivers/infiniband/core/
H A Dfmr_pool.c99 struct task_struct *thread; member in struct:ib_fmr_pool
290 pool->thread = kthread_run(ib_fmr_cleanup_thread,
294 if (IS_ERR(pool->thread)) {
295 printk(KERN_WARNING PFX "couldn't start cleanup thread\n");
296 ret = PTR_ERR(pool->thread);
366 kthread_stop(pool->thread);
406 * thread will reap them too.
416 wake_up_process(pool->thread);
530 wake_up_process(pool->thread);
/drivers/pcmcia/
H A Dcs.c179 if (!socket->thread) {
181 "PCMCIA: warning: socket thread did not start\n");
216 if (socket->thread)
217 kthread_stop(socket->thread);
312 * pccardd thread) accesses this socket, and all (16-bit)
584 skt->thread = current;
594 skt->thread = NULL;
684 * starting the handler thread.
690 if (s->thread) {
695 wake_up_process(s->thread);
[all...]
/drivers/scsi/fcoe/
H A Dfcoe.c1185 * fcoe_percpu_thread_create() - Create a receive thread for an online CPU
1186 * @cpu: The CPU index of the CPU to create a receive thread for
1191 struct task_struct *thread; local
1195 thread = kthread_create_on_node(fcoe_percpu_receive_thread,
1199 if (likely(!IS_ERR(thread))) {
1200 kthread_bind(thread, cpu);
1201 wake_up_process(thread);
1204 p->thread = thread;
1210 * fcoe_percpu_thread_destroy() - Remove the receive thread o
1220 struct task_struct *thread; local
[all...]

Completed in 700 milliseconds

123