Home
last modified time | relevance | path

Searched refs:tsk (Results 1 – 25 of 29) sorted by relevance

12

/drivers/dma/bestcomm/
Dfec.c87 struct bcom_task *tsk; in bcom_fec_rx_init() local
90 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_fec_bd), in bcom_fec_rx_init()
92 if (!tsk) in bcom_fec_rx_init()
95 tsk->flags = BCOM_FLAGS_NONE; in bcom_fec_rx_init()
97 priv = tsk->priv; in bcom_fec_rx_init()
101 if (bcom_fec_rx_reset(tsk)) { in bcom_fec_rx_init()
102 bcom_task_free(tsk); in bcom_fec_rx_init()
106 return tsk; in bcom_fec_rx_init()
111 bcom_fec_rx_reset(struct bcom_task *tsk) in bcom_fec_rx_reset() argument
113 struct bcom_fec_priv *priv = tsk->priv; in bcom_fec_rx_reset()
[all …]
Dgen_bd.c92 struct bcom_task *tsk; in bcom_gen_bd_rx_init() local
95 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_gen_bd), in bcom_gen_bd_rx_init()
97 if (!tsk) in bcom_gen_bd_rx_init()
100 tsk->flags = BCOM_FLAGS_NONE; in bcom_gen_bd_rx_init()
102 priv = tsk->priv; in bcom_gen_bd_rx_init()
108 if (bcom_gen_bd_rx_reset(tsk)) { in bcom_gen_bd_rx_init()
109 bcom_task_free(tsk); in bcom_gen_bd_rx_init()
113 return tsk; in bcom_gen_bd_rx_init()
118 bcom_gen_bd_rx_reset(struct bcom_task *tsk) in bcom_gen_bd_rx_reset() argument
120 struct bcom_gen_bd_priv *priv = tsk->priv; in bcom_gen_bd_rx_reset()
[all …]
Data.c60 struct bcom_task *tsk; in bcom_ata_init() local
67 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_ata_bd), 0); in bcom_ata_init()
68 if (!tsk) in bcom_ata_init()
71 tsk->flags = BCOM_FLAGS_NONE; in bcom_ata_init()
73 bcom_ata_reset_bd(tsk); in bcom_ata_init()
75 var = (struct bcom_ata_var *) bcom_task_var(tsk->tasknum); in bcom_ata_init()
76 inc = (struct bcom_ata_inc *) bcom_task_inc(tsk->tasknum); in bcom_ata_init()
78 if (bcom_load_image(tsk->tasknum, bcom_ata_task)) { in bcom_ata_init()
79 bcom_task_free(tsk); in bcom_ata_init()
84 offsetof(struct mpc52xx_sdma, tcr[tsk->tasknum]); in bcom_ata_init()
[all …]
Dbestcomm.c53 struct bcom_task *tsk; in bcom_task_alloc() local
75 tsk = kzalloc(sizeof(struct bcom_task) + priv_size, GFP_KERNEL); in bcom_task_alloc()
76 if (!tsk) in bcom_task_alloc()
79 tsk->tasknum = tasknum; in bcom_task_alloc()
81 tsk->priv = (void*)tsk + sizeof(struct bcom_task); in bcom_task_alloc()
84 tsk->irq = irq_of_parse_and_map(bcom_eng->ofnode, tsk->tasknum); in bcom_task_alloc()
85 if (!tsk->irq) in bcom_task_alloc()
90 tsk->cookie = kmalloc(sizeof(void*) * bd_count, GFP_KERNEL); in bcom_task_alloc()
91 if (!tsk->cookie) in bcom_task_alloc()
94 tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); in bcom_task_alloc()
[all …]
/drivers/gpu/drm/i915/
Dintel_breadcrumbs.c169 wake_up_process(wait->tsk); /* implicit smp_wmb() */ in __intel_breadcrumbs_finish()
216 if (wait->tsk->prio > to_wait(parent)->tsk->prio) { in __intel_engine_add_wait()
245 rcu_assign_pointer(b->irq_seqno_bh, b->first_wait->tsk); in __intel_engine_add_wait()
258 wake_up_process(to_wait(next)->tsk); in __intel_engine_add_wait()
272 rcu_assign_pointer(b->irq_seqno_bh, wait->tsk); in __intel_engine_add_wait()
305 return rb && to_wait(rb)->tsk->prio <= priority; in chain_wakeup()
309 struct task_struct *tsk) in wakeup_priority() argument
311 if (tsk == b->signaler) in wakeup_priority()
314 return tsk->prio; in wakeup_priority()
335 const int priority = wakeup_priority(b, wait->tsk); in intel_engine_remove_wait()
[all …]
Dintel_ringbuffer.h543 wait->tsk = current; in intel_wait_init()
575 struct task_struct *tsk; in intel_engine_wakeup() local
578 tsk = rcu_dereference(engine->breadcrumbs.irq_seqno_bh); in intel_engine_wakeup()
579 if (tsk) in intel_engine_wakeup()
580 wakeup = wake_up_process(tsk); in intel_engine_wakeup()
Di915_gem_request.h35 struct task_struct *tsk; member
Di915_drv.h3901 struct task_struct *tsk; in __i915_request_irq_complete() local
3924 tsk = rcu_dereference(engine->breadcrumbs.irq_seqno_bh); in __i915_request_irq_complete()
3925 if (tsk && tsk != current) in __i915_request_irq_complete()
3932 wake_up_process(tsk); in __i915_request_irq_complete()
Di915_gpu_error.c971 strcpy(waiter->comm, w->tsk->comm); in error_record_engine_waiters()
972 waiter->pid = w->tsk->pid; in error_record_engine_waiters()
/drivers/tty/
Dtty_ldsem.c122 struct task_struct *tsk; in __ldsem_wake_readers() local
139 tsk = waiter->task; in __ldsem_wake_readers()
142 wake_up_process(tsk); in __ldsem_wake_readers()
143 put_task_struct(tsk); in __ldsem_wake_readers()
203 struct task_struct *tsk = current; in down_read_failed() local
224 waiter.task = tsk; in down_read_failed()
225 get_task_struct(tsk); in down_read_failed()
235 set_task_state(tsk, TASK_UNINTERRUPTIBLE); in down_read_failed()
244 __set_task_state(tsk, TASK_RUNNING); in down_read_failed()
271 struct task_struct *tsk = current; in down_write_failed() local
[all …]
Dtty_audit.c66 struct task_struct *tsk = current; in tty_audit_log() local
67 pid_t pid = task_pid_nr(tsk); in tty_audit_log()
68 uid_t uid = from_kuid(&init_user_ns, task_uid(tsk)); in tty_audit_log()
69 uid_t loginuid = from_kuid(&init_user_ns, audit_get_loginuid(tsk)); in tty_audit_log()
70 unsigned int sessionid = audit_get_sessionid(tsk); in tty_audit_log()
74 char name[sizeof(tsk->comm)]; in tty_audit_log()
79 get_task_comm(name, tsk); in tty_audit_log()
/drivers/staging/android/
Dlowmemorykiller.c86 struct task_struct *tsk; in lowmem_scan() local
127 for_each_process(tsk) { in lowmem_scan()
131 if (tsk->flags & PF_KTHREAD) in lowmem_scan()
134 p = find_lock_task_mm(tsk); in lowmem_scan()
/drivers/net/ppp/
Dppp_synctty.c73 struct tasklet_struct tsk; member
183 tasklet_init(&ap->tsk, ppp_sync_process, (unsigned long) ap); in ppp_sync_open()
237 tasklet_kill(&ap->tsk); in ppp_sync_close()
349 tasklet_schedule(&ap->tsk); in ppp_sync_receive()
363 tasklet_schedule(&ap->tsk); in ppp_sync_wakeup()
Dppp_async.c70 struct tasklet_struct tsk; member
186 tasklet_init(&ap->tsk, ppp_async_process, (unsigned long) ap); in ppp_asynctty_open()
239 tasklet_kill(&ap->tsk); in ppp_asynctty_close()
357 tasklet_schedule(&ap->tsk); in ppp_asynctty_receive()
371 tasklet_schedule(&ap->tsk); in ppp_asynctty_wakeup()
/drivers/lguest/
Dlguest_user.c122 if (current != cpu->tsk) in read()
190 cpu->tsk = current; in lg_cpu_start()
197 cpu->mm = get_task_mm(cpu->tsk); in lg_cpu_start()
Dinterrupts_and_traps.c321 if (!wake_up_process(cpu->tsk)) in set_interrupt()
322 kick_process(cpu->tsk); in set_interrupt()
Dlg.h42 struct task_struct *tsk; member
/drivers/scsi/qla2xxx/
Dqla_mbx.c2970 struct tsk_mgmt_entry tsk; member
2980 struct tsk_mgmt_cmd *tsk; in __qla24xx_issue_tmf() local
2999 tsk = dma_pool_alloc(ha->s_dma_pool, GFP_KERNEL, &tsk_dma); in __qla24xx_issue_tmf()
3000 if (tsk == NULL) { in __qla24xx_issue_tmf()
3005 memset(tsk, 0, sizeof(struct tsk_mgmt_cmd)); in __qla24xx_issue_tmf()
3007 tsk->p.tsk.entry_type = TSK_MGMT_IOCB_TYPE; in __qla24xx_issue_tmf()
3008 tsk->p.tsk.entry_count = 1; in __qla24xx_issue_tmf()
3009 tsk->p.tsk.handle = MAKE_HANDLE(req->id, tsk->p.tsk.handle); in __qla24xx_issue_tmf()
3010 tsk->p.tsk.nport_handle = cpu_to_le16(fcport->loop_id); in __qla24xx_issue_tmf()
3011 tsk->p.tsk.timeout = cpu_to_le16(ha->r_a_tov / 10 * 2); in __qla24xx_issue_tmf()
[all …]
Dqla_iocb.c1982 qla24xx_tm_iocb(srb_t *sp, struct tsk_mgmt_entry *tsk) in qla24xx_tm_iocb() argument
1995 tsk->entry_type = TSK_MGMT_IOCB_TYPE; in qla24xx_tm_iocb()
1996 tsk->entry_count = 1; in qla24xx_tm_iocb()
1997 tsk->handle = MAKE_HANDLE(req->id, tsk->handle); in qla24xx_tm_iocb()
1998 tsk->nport_handle = cpu_to_le16(fcport->loop_id); in qla24xx_tm_iocb()
1999 tsk->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2); in qla24xx_tm_iocb()
2000 tsk->control_flags = cpu_to_le32(flags); in qla24xx_tm_iocb()
2001 tsk->port_id[0] = fcport->d_id.b.al_pa; in qla24xx_tm_iocb()
2002 tsk->port_id[1] = fcport->d_id.b.area; in qla24xx_tm_iocb()
2003 tsk->port_id[2] = fcport->d_id.b.domain; in qla24xx_tm_iocb()
[all …]
/drivers/pcmcia/
Dcs.c108 struct task_struct *tsk; in pcmcia_register_socket() local
172 tsk = kthread_run(pccardd, socket, "pccardd"); in pcmcia_register_socket()
173 if (IS_ERR(tsk)) { in pcmcia_register_socket()
174 ret = PTR_ERR(tsk); in pcmcia_register_socket()
/drivers/oprofile/
Dcpu_buffer.c264 struct task_struct *tsk = task ? task : current; in log_sample() local
272 if (op_add_code(cpu_buf, backtrace, is_kernel, tsk)) in log_sample()
/drivers/android/
Dbinder.c549 struct task_struct *tsk; member
946 return get_files_struct(proc->tsk); in binder_get_files_struct()
960 if (!lock_task_sighand(proc->tsk, &irqs)) { in task_get_unused_fd_flags()
965 rlim_cur = task_rlimit(proc->tsk, RLIMIT_NOFILE); in task_get_unused_fd_flags()
966 unlock_task_sighand(proc->tsk, &irqs); in task_get_unused_fd_flags()
2509 if (security_binder_transfer_binder(proc->tsk, target_proc->tsk)) { in binder_translate_binder()
2555 if (security_binder_transfer_binder(proc->tsk, target_proc->tsk)) { in binder_translate_handle()
2639 ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file); in binder_translate_fd()
3014 if (security_binder_transaction(proc->tsk, in binder_transaction()
3015 target_proc->tsk) < 0) { in binder_transaction()
[all …]
/drivers/base/power/
Dmain.c404 struct task_struct *tsk; member
424 show_stack(wd->tsk, NULL); in dpm_watchdog_handler()
439 wd->tsk = current; in dpm_watchdog_set()
/drivers/md/
Dmd.h589 struct task_struct *tsk; member
/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.c2260 struct srp_tsk_mgmt *tsk; in ibmvscsis_srp_cmd() local
2294 tsk = &vio_iu(iue)->srp.tsk_mgmt; in ibmvscsis_srp_cmd()
2295 pr_debug("tsk_mgmt tag: %llu (0x%llx)\n", tsk->tag, in ibmvscsis_srp_cmd()
2296 tsk->tag); in ibmvscsis_srp_cmd()
2297 cmd->rsp.tag = tsk->tag; in ibmvscsis_srp_cmd()

12