Home
last modified time | relevance | path

Searched full:task (Results 1 – 25 of 2446) sorted by relevance

12345678910>>...98

/linux-5.10/net/sunrpc/
Dsched.c45 static void rpc_release_task(struct rpc_task *task);
61 rpc_task_timeout(const struct rpc_task *task) in rpc_task_timeout() argument
63 unsigned long timeout = READ_ONCE(task->tk_timeout); in rpc_task_timeout()
75 * Disable the timer for a given RPC task. Should be called with
80 __rpc_disable_timer(struct rpc_wait_queue *queue, struct rpc_task *task) in __rpc_disable_timer() argument
82 if (list_empty(&task->u.tk_wait.timer_list)) in __rpc_disable_timer()
84 task->tk_timeout = 0; in __rpc_disable_timer()
85 list_del(&task->u.tk_wait.timer_list); in __rpc_disable_timer()
103 * Set up a timer for the current task.
106 __rpc_add_timer(struct rpc_wait_queue *queue, struct rpc_task *task, in __rpc_add_timer() argument
[all …]
Dclnt.c57 static void call_start(struct rpc_task *task);
58 static void call_reserve(struct rpc_task *task);
59 static void call_reserveresult(struct rpc_task *task);
60 static void call_allocate(struct rpc_task *task);
61 static void call_encode(struct rpc_task *task);
62 static void call_decode(struct rpc_task *task);
63 static void call_bind(struct rpc_task *task);
64 static void call_bind_status(struct rpc_task *task);
65 static void call_transmit(struct rpc_task *task);
66 static void call_status(struct rpc_task *task);
[all …]
Dxprt.c195 * @task: task that is requesting access to the transport
202 int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task) in xprt_reserve_xprt() argument
204 struct rpc_rqst *req = task->tk_rqstp; in xprt_reserve_xprt()
207 if (task == xprt->snd_task) in xprt_reserve_xprt()
213 xprt->snd_task = task; in xprt_reserve_xprt()
216 trace_xprt_reserve_xprt(xprt, task); in xprt_reserve_xprt()
222 task->tk_status = -EAGAIN; in xprt_reserve_xprt()
223 if (RPC_IS_SOFT(task)) in xprt_reserve_xprt()
224 rpc_sleep_on_timeout(&xprt->sending, task, NULL, in xprt_reserve_xprt()
227 rpc_sleep_on(&xprt->sending, task, NULL); in xprt_reserve_xprt()
[all …]
/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_task.c13 int __rxe_do_task(struct rxe_task *task) in __rxe_do_task() argument
18 while ((ret = task->func(task->arg)) == 0) in __rxe_do_task()
21 task->ret = ret; in __rxe_do_task()
28 * a second caller finds the task already running
36 struct rxe_task *task = from_tasklet(task, t, tasklet); in rxe_do_task() local
38 spin_lock_irqsave(&task->state_lock, flags); in rxe_do_task()
39 switch (task->state) { in rxe_do_task()
41 task->state = TASK_STATE_BUSY; in rxe_do_task()
42 spin_unlock_irqrestore(&task->state_lock, flags); in rxe_do_task()
46 task->state = TASK_STATE_ARMED; in rxe_do_task()
[all …]
/linux-5.10/drivers/gpu/drm/exynos/
Dexynos_drm_ipp.c85 WARN_ON(ipp->task); in exynos_drm_ipp_unregister()
259 struct exynos_drm_ipp_task *task; in exynos_drm_ipp_task_alloc() local
261 task = kzalloc(sizeof(*task), GFP_KERNEL); in exynos_drm_ipp_task_alloc()
262 if (!task) in exynos_drm_ipp_task_alloc()
265 task->dev = ipp->dev; in exynos_drm_ipp_task_alloc()
266 task->ipp = ipp; in exynos_drm_ipp_task_alloc()
269 task->src.rect.w = task->dst.rect.w = UINT_MAX; in exynos_drm_ipp_task_alloc()
270 task->src.rect.h = task->dst.rect.h = UINT_MAX; in exynos_drm_ipp_task_alloc()
271 task->transform.rotation = DRM_MODE_ROTATE_0; in exynos_drm_ipp_task_alloc()
273 DRM_DEV_DEBUG_DRIVER(task->dev, "Allocated task %pK\n", task); in exynos_drm_ipp_task_alloc()
[all …]
/linux-5.10/include/asm-generic/
Dsyscall.h12 * and only when the caller is sure that the task of interest
23 * syscall_get_nr - find what system call a task is executing
24 * @task: task of interest, must be blocked
25 * @regs: task_pt_regs() of @task
27 * If @task is executing a system call or is at system call
29 * If @task is not executing a system call, i.e. it's blocked
36 * It's only valid to call this when @task is known to be blocked.
38 int syscall_get_nr(struct task_struct *task, struct pt_regs *regs);
42 * @task: task of interest, must be in system call exit tracing
43 * @regs: task_pt_regs() of @task
[all …]
/linux-5.10/drivers/scsi/pm8001/
Dpm8001_sas.c45 * pm8001_find_tag - from sas task to find out tag that belongs to this task
46 * @task: the task sent to the LLDD
47 * @tag: the found tag associated with the task
49 static int pm8001_find_tag(struct sas_task *task, u32 *tag) in pm8001_find_tag() argument
51 if (task->lldd_task) { in pm8001_find_tag()
53 ccb = task->lldd_task; in pm8001_find_tag()
63 * @tag: the found tag associated with the task
72 * pm8001_tag_alloc - allocate a empty tag for task used.
293 * pm8001_task_prep_smp - the dispatcher function, prepare data for smp task
295 * @ccb: the ccb which attached to smp task
[all …]
/linux-5.10/drivers/scsi/aic94xx/
Daic94xx_tmf.c3 * Aic94xx Task Management Functions
214 static int asd_clear_nexus_tag(struct sas_task *task) in asd_clear_nexus_tag() argument
216 struct asd_ha_struct *asd_ha = task->dev->port->ha->lldd_ha; in asd_clear_nexus_tag()
217 struct asd_ascb *tascb = task->lldd_task; in asd_clear_nexus_tag()
221 memcpy(scb->clear_nexus.ssp_task.lun, task->ssp_task.LUN, 8); in asd_clear_nexus_tag()
223 if (task->dev->tproto) in asd_clear_nexus_tag()
225 task->dev->lldd_dev); in asd_clear_nexus_tag()
229 static int asd_clear_nexus_index(struct sas_task *task) in asd_clear_nexus_index() argument
231 struct asd_ha_struct *asd_ha = task->dev->port->ha->lldd_ha; in asd_clear_nexus_index()
232 struct asd_ascb *tascb = task->lldd_task; in asd_clear_nexus_index()
[all …]
Daic94xx_task.c36 static int asd_map_scatterlist(struct sas_task *task, in asd_map_scatterlist() argument
40 struct asd_ascb *ascb = task->lldd_task; in asd_map_scatterlist()
45 if (task->data_dir == DMA_NONE) in asd_map_scatterlist()
48 if (task->num_scatter == 0) { in asd_map_scatterlist()
49 void *p = task->scatter; in asd_map_scatterlist()
51 task->total_xfer_len, in asd_map_scatterlist()
52 task->data_dir); in asd_map_scatterlist()
54 sg_arr[0].size = cpu_to_le32(task->total_xfer_len); in asd_map_scatterlist()
61 if (sas_protocol_ata(task->task_proto)) in asd_map_scatterlist()
62 num_sg = task->num_scatter; in asd_map_scatterlist()
[all …]
/linux-5.10/kernel/bpf/
Dtask_iter.c28 struct task_struct *task = NULL; in task_seq_get_next() local
36 task = get_pid_task(pid, PIDTYPE_PID); in task_seq_get_next()
37 if (!task) { in task_seq_get_next()
40 } else if (skip_if_dup_files && task->tgid != task->pid && in task_seq_get_next()
41 task->files == task->group_leader->files) { in task_seq_get_next()
42 put_task_struct(task); in task_seq_get_next()
43 task = NULL; in task_seq_get_next()
50 return task; in task_seq_get_next()
56 struct task_struct *task; in task_seq_start() local
58 task = task_seq_get_next(info->common.ns, &info->tid, false); in task_seq_start()
[all …]
/linux-5.10/arch/nds32/include/asm/
Dsyscall.h14 * syscall_get_nr - find what system call a task is executing
15 * @task: task of interest, must be blocked
16 * @regs: task_pt_regs() of @task
18 * If @task is executing a system call or is at system call
20 * If @task is not executing a system call, i.e. it's blocked
27 * It's only valid to call this when @task is known to be blocked.
30 syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument
37 * @task: task of interest, must be in system call exit tracing
38 * @regs: task_pt_regs() of @task
40 * It's only valid to call this when @task is stopped for system
[all …]
/linux-5.10/scripts/gdb/linux/
Dtasks.py4 # task & thread tools
43 for task in task_lists():
44 if int(task['pid']) == pid:
45 return task
50 """Find Linux task by PID and return the task_struct variable.
59 task = get_task_by_pid(pid)
60 if task:
61 return task.dereference()
63 raise gdb.GdbError("No task of PID " + str(pid))
76 gdb.write("{:>10} {:>12} {:>7}\n".format("TASK", "PID", "COMM"))
[all …]
/linux-5.10/drivers/media/i2c/
Dsaa711x_regs.h77 /* Task independent global settings */
87 /* Task A definition */
134 /* Task B definition */
361 /* Task independent global settings: R_80_GLOBAL_CNTL_1 to R_8F_STATUS_INFO_SCALER */
383 /* Task A definition: R_90_A_TASK_HANDLING_CNTL to R_BF_A_VERT_LUMA_PHASE_OFF_11 */
384 /* Task A: Basic settings and acquisition window definition */
386 "Task A: Task handling control"},
388 "Task A: X port formats and configuration"},
390 "Task A: X port input reference signal definition"},
392 "Task A: I port output formats and configuration"},
[all …]
/linux-5.10/kernel/livepatch/
Dtransition.c73 struct task_struct *g, *task; in klp_complete_transition() local
110 for_each_process_thread(g, task) { in klp_complete_transition()
111 WARN_ON_ONCE(test_tsk_thread_flag(task, TIF_PATCH_PENDING)); in klp_complete_transition()
112 task->patch_state = KLP_UNDEFINED; in klp_complete_transition()
117 task = idle_task(cpu); in klp_complete_transition()
118 WARN_ON_ONCE(test_tsk_thread_flag(task, TIF_PATCH_PENDING)); in klp_complete_transition()
119 task->patch_state = KLP_UNDEFINED; in klp_complete_transition()
157 * Switch the patched state of the task to the set of functions in the target
160 * NOTE: If task is not 'current', the caller must ensure the task is inactive.
163 void klp_update_patch_state(struct task_struct *task) in klp_update_patch_state() argument
[all …]
/linux-5.10/kernel/
Dtask_work.c9 * task_work_add - ask the @task to execute @work->func()
10 * @task: the task which should run the callback
12 * @notify: how to notify the targeted task
14 * Queue @work for task_work_run() below and notify the @task if @notify
16 * it will interrupt the targeted task and run the task_work. @TWA_RESUME
17 * work is run only when the task exits the kernel and returns to user mode,
18 * or before entering guest mode. Fails if the @task is exiting/exited and thus
20 * @task goes through one of the aforementioned transitions, or exits.
22 * If the targeted task is exiting, then an error is returned and the work item
32 int task_work_add(struct task_struct *task, struct callback_head *work, in task_work_add() argument
[all …]
/linux-5.10/drivers/scsi/isci/
Dtask.c64 #include "task.h"
71 * @task: request to complete
72 * @response: response code for the completed task.
73 * @status: status code for the completed task.
76 static void isci_task_refuse(struct isci_host *ihost, struct sas_task *task, in isci_task_refuse() argument
84 dev_dbg(&ihost->pdev->dev, "%s: task = %p, response=%d, status=%d\n", in isci_task_refuse()
85 __func__, task, response, status); in isci_task_refuse()
87 spin_lock_irqsave(&task->task_state_lock, flags); in isci_task_refuse()
89 task->task_status.resp = response; in isci_task_refuse()
90 task->task_status.stat = status; in isci_task_refuse()
[all …]
/linux-5.10/drivers/scsi/libsas/
Dsas_scsi_host.c36 /* record final status and free the task */
37 static void sas_end_task(struct scsi_cmnd *sc, struct sas_task *task) in sas_end_task() argument
39 struct task_status_struct *ts = &task->task_status; in sas_end_task()
46 /* task delivered, what happened afterwards? */ in sas_end_task()
79 pr_notice("LLDD:%s sent SAS_PROTO_RESP for an SSP task; please report this\n", in sas_end_task()
80 task->dev->port->ha->sas_ha_name); in sas_end_task()
98 sas_free_task(task); in sas_end_task()
101 static void sas_scsi_task_done(struct sas_task *task) in sas_scsi_task_done() argument
103 struct scsi_cmnd *sc = task->uldd_task; in sas_scsi_task_done()
104 struct domain_device *dev = task->dev; in sas_scsi_task_done()
[all …]
/linux-5.10/drivers/gpu/drm/lima/
Dlima_sched.c111 int lima_sched_task_init(struct lima_sched_task *task, in lima_sched_task_init() argument
118 task->bos = kmemdup(bos, sizeof(*bos) * num_bos, GFP_KERNEL); in lima_sched_task_init()
119 if (!task->bos) in lima_sched_task_init()
125 err = drm_sched_job_init(&task->base, &context->base, vm); in lima_sched_task_init()
127 kfree(task->bos); in lima_sched_task_init()
131 task->num_bos = num_bos; in lima_sched_task_init()
132 task->vm = lima_vm_get(vm); in lima_sched_task_init()
134 xa_init_flags(&task->deps, XA_FLAGS_ALLOC); in lima_sched_task_init()
139 void lima_sched_task_fini(struct lima_sched_task *task) in lima_sched_task_fini() argument
145 drm_sched_job_cleanup(&task->base); in lima_sched_task_fini()
[all …]
/linux-5.10/drivers/scsi/qedi/
Dqedi_fw_iscsi.h31 * task context.
33 * @param task_params - Pointer to task parameters struct
37 * @param sgl_task_params - Pointer to SGL task params
49 * Request task context.
51 * @param task_params - Pointer to task parameters struct
53 * @param tx_sgl_task_params - Pointer to SGL task params
54 * @param rx_sgl_task_params - Pointer to SGL task params
62 * task context.
64 * @param task_params - Pointer to task parameters struct
66 * @param tx_sgl_task_params - Pointer to SGL task params
[all …]
/linux-5.10/drivers/media/pci/cx18/
Dcx23418.h18 /* Description: This command creates a new instance of a certain task
19 IN[0] - Task ID. This is one of the XPU_CMD_MASK_YYY where XPU is
20 the processor on which the task YYY will be created
21 OUT[0] - Task handle. This handle is passed along with commands to
22 dispatch to the right instance of the task
26 /* Description: This command destroys an instance of a task
27 IN[0] - Task handle. Hanlde of the task to destroy
65 IN[0] - Task handle. Handle of the task
83 IN[0] - Task handle. Handle of the task to start
88 IN[0] - Task handle. Handle of the task to stop
[all …]
/linux-5.10/fs/proc/
Dbase.c112 * in /proc for a task before it execs a suid executable.
172 static int get_task_root(struct task_struct *task, struct path *root) in get_task_root() argument
176 task_lock(task); in get_task_root()
177 if (task->fs) { in get_task_root()
178 get_fs_root(task->fs, root); in get_task_root()
181 task_unlock(task); in get_task_root()
187 struct task_struct *task = get_proc_task(d_inode(dentry)); in proc_cwd_link() local
190 if (task) { in proc_cwd_link()
191 task_lock(task); in proc_cwd_link()
192 if (task->fs) { in proc_cwd_link()
[all …]
/linux-5.10/drivers/video/fbdev/
Duvesafb.c69 * find the kernel part of the task struct, copy the registers and
70 * the buffer contents and then complete the task.
75 struct uvesafb_ktask *task; in uvesafb_cn_callback() local
84 task = uvfb_tasks[msg->seq]; in uvesafb_cn_callback()
86 if (!task || msg->ack != task->ack) { in uvesafb_cn_callback()
94 if (task->t.buf_len < utask->buf_len || in uvesafb_cn_callback()
103 memcpy(&task->t, utask, sizeof(*utask)); in uvesafb_cn_callback()
105 if (task->t.buf_len && task->buf) in uvesafb_cn_callback()
106 memcpy(task->buf, utask + 1, task->t.buf_len); in uvesafb_cn_callback()
108 complete(task->done); in uvesafb_cn_callback()
[all …]
/linux-5.10/drivers/scsi/
Dlibiscsi.c124 * @task: scsi command task
134 void iscsi_prep_data_out_pdu(struct iscsi_task *task, struct iscsi_r2t_info *r2t, in iscsi_prep_data_out_pdu() argument
137 struct iscsi_conn *conn = task->conn; in iscsi_prep_data_out_pdu()
140 task->hdr_len = sizeof(struct iscsi_data); in iscsi_prep_data_out_pdu()
147 hdr->lun = task->lun; in iscsi_prep_data_out_pdu()
148 hdr->itt = task->hdr_itt; in iscsi_prep_data_out_pdu()
164 static int iscsi_add_hdr(struct iscsi_task *task, unsigned len) in iscsi_add_hdr() argument
166 unsigned exp_len = task->hdr_len + len; in iscsi_add_hdr()
168 if (exp_len > task->hdr_max) { in iscsi_add_hdr()
174 task->hdr_len = exp_len; in iscsi_add_hdr()
[all …]
/linux-5.10/arch/arm64/kernel/
Dfpsimd.c59 * (a) for each task, we need to remember which CPU was the last one to have
60 * the task's FPSIMD state loaded into its FPSIMD registers;
61 * (b) for each CPU, we need to remember which task's userland FPSIMD state has
68 * address of the userland FPSIMD state of the task that was loaded onto the CPU
74 * task's fpsimd_cpu are still mutually in sync. If this is the case, we
78 * indicate whether or not the userland FPSIMD state of the current task is
81 * task.
84 * save the task's FPSIMD context back to task_struct from softirq context.
85 * To prevent this from racing with the manipulation of the task's FPSIMD state
86 * from task context and thereby corrupting the state, it is necessary to
[all …]
/linux-5.10/drivers/scsi/qedf/
Ddrv_fcoe_fw_funcs.h29 * @brief init_initiator_rw_fcoe_task - Initializes FCoE task context for
30 * read/write task types and init fcoe_sqe
32 * @param task_params - Pointer to task parameters struct
33 * @param sgl_task_params - Pointer to SGL task params
45 * @brief init_initiator_midpath_fcoe_task - Initializes FCoE task context for
46 * midpath/unsolicited task types and init fcoe_sqe
48 * @param task_params - Pointer to task parameters struct
50 * @param tx_sgl_task_params - Pointer to Tx SGL task params
51 * @param rx_sgl_task_params - Pointer to Rx SGL task params
63 * @brief init_initiator_abort_fcoe_task - Initializes FCoE task context for
[all …]

12345678910>>...98