| /OK3568_Linux_fs/kernel/net/sunrpc/ |
| H A D | sched.c | 45 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() 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() 106 __rpc_add_timer(struct rpc_wait_queue *queue, struct rpc_task *task, in __rpc_add_timer() argument 109 task->tk_timeout = timeout; in __rpc_add_timer() 112 list_add(&task->u.tk_wait.timer_list, &queue->timer_list.list); in __rpc_add_timer() [all …]
|
| H A D | clnt.c | 57 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 …]
|
| H A D | xprt.c | 73 static void xprt_request_init(struct rpc_task *task); 236 int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task) in xprt_reserve_xprt() argument 238 struct rpc_rqst *req = task->tk_rqstp; in xprt_reserve_xprt() 241 if (task == xprt->snd_task) in xprt_reserve_xprt() 247 xprt->snd_task = task; in xprt_reserve_xprt() 250 trace_xprt_reserve_xprt(xprt, task); in xprt_reserve_xprt() 256 task->tk_status = -EAGAIN; in xprt_reserve_xprt() 257 if (RPC_IS_SOFT(task)) in xprt_reserve_xprt() 258 rpc_sleep_on_timeout(&xprt->sending, task, NULL, in xprt_reserve_xprt() 261 rpc_sleep_on(&xprt->sending, task, NULL); in xprt_reserve_xprt() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/sw/rxe/ |
| H A D | rxe_task.c | 13 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() 36 struct rxe_task *task = from_tasklet(task, t, tasklet); in rxe_do_task() local 39 spin_lock_irqsave(&task->state_lock, flags); in rxe_do_task() 40 switch (task->state) { in rxe_do_task() 42 task->state = TASK_STATE_BUSY; in rxe_do_task() 43 spin_unlock_irqrestore(&task->state_lock, flags); in rxe_do_task() 47 task->state = TASK_STATE_ARMED; in rxe_do_task() 50 spin_unlock_irqrestore(&task->state_lock, flags); in rxe_do_task() [all …]
|
| /OK3568_Linux_fs/kernel/kernel/livepatch/ |
| H A D | transition.c | 73 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() 163 void klp_update_patch_state(struct task_struct *task) in klp_update_patch_state() argument 183 if (test_and_clear_tsk_thread_flag(task, TIF_PATCH_PENDING)) in klp_update_patch_state() 184 task->patch_state = READ_ONCE(klp_target_state); in klp_update_patch_state() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_ipp.c | 85 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 …]
|
| /OK3568_Linux_fs/external/mpp/mpp/base/ |
| H A D | mpp_task.cpp | 24 MPP_RET mpp_task_meta_set_s32(MppTask task, MppMetaKey key, RK_S32 val) in mpp_task_meta_set_s32() argument 26 if (check_mpp_task_name(task)) in mpp_task_meta_set_s32() 29 MppTaskImpl *impl = (MppTaskImpl *)task; in mpp_task_meta_set_s32() 33 MPP_RET mpp_task_meta_set_s64(MppTask task, MppMetaKey key, RK_S64 val) in mpp_task_meta_set_s64() argument 35 if (check_mpp_task_name(task)) in mpp_task_meta_set_s64() 38 MppTaskImpl *impl = (MppTaskImpl *)task; in mpp_task_meta_set_s64() 42 MPP_RET mpp_task_meta_set_ptr(MppTask task, MppMetaKey key, void *val) in mpp_task_meta_set_ptr() argument 44 if (check_mpp_task_name(task)) in mpp_task_meta_set_ptr() 47 MppTaskImpl *impl = (MppTaskImpl *)task; in mpp_task_meta_set_ptr() 51 MPP_RET mpp_task_meta_set_frame(MppTask task, MppMetaKey key, MppFrame frame) in mpp_task_meta_set_frame() argument [all …]
|
| /OK3568_Linux_fs/buildroot/package/directfb/ |
| H A D | 0001-fix-missing-davinci-voodoo-header.patch | 115 + c64xTask *task = &c64x->QueueL[idx]; 120 + while (task->c64x_flags & C64X_FLAG_TODO || ctl->QL_dsp == next) { 129 + (task->c64x_function >> 2) & 0x3fff, 130 + state_names[task->c64x_function & 3] ); 142 + return task; 146 +c64x_submit_task( DavinciC64x *c64x, c64xTask *task ) 167 + c64xTask *task = c64x_get_task( c64x ); 169 + task->c64x_arg[0] = start; 170 + task->c64x_arg[1] = length; 171 + task->c64x_arg[2] = func; [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/aic94xx/ |
| H A D | aic94xx_task.c | 36 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/pm8001/ |
| H A D | pm8001_sas.c | 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() 304 u32 pm8001_get_ncq_tag(struct sas_task *task, u32 *tag) in pm8001_get_ncq_tag() argument 306 struct ata_queued_cmd *qc = task->uldd_task; in pm8001_get_ncq_tag() 380 static int pm8001_task_exec(struct sas_task *task, in pm8001_task_exec() argument 383 struct domain_device *dev = task->dev; in pm8001_task_exec() 387 struct sas_task *t = task; in pm8001_task_exec() 401 pm8001_ha = pm8001_find_ha_by_dev(task->dev); in pm8001_task_exec() 456 ccb->task = t; in pm8001_task_exec() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/ |
| H A D | uvesafb.c | 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() 144 static int uvesafb_exec(struct uvesafb_ktask *task) in uvesafb_exec() argument 149 int len = sizeof(task->t) + task->t.buf_len; in uvesafb_exec() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/ |
| H A D | mpp_dec_normal.cpp | 42 static MPP_RET check_task_wait(MppDecImpl *dec, DecTask *task) in check_task_wait() argument 47 RK_U32 curr_wait = task->wait.val; in check_task_wait() 72 dec->parser_status_flag = task->status.val; in check_task_wait() 73 dec->parser_wait_flag = task->wait.val; in check_task_wait() 133 static RK_U32 reset_parser_thread(Mpp *mpp, DecTask *task) in reset_parser_thread() argument 140 HalDecTask *task_dec = &task->info.dec; in reset_parser_thread() 169 task->status.curr_task_rdy = 0; in reset_parser_thread() 170 task->status.prev_task_rdy = 1; in reset_parser_thread() 180 if (task->status.task_parsed_rdy) { in reset_parser_thread() 190 task->status.task_parsed_rdy = 0; in reset_parser_thread() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/video/rockchip/mpp/ |
| H A D | mpp_common.c | 105 struct mpp_task *task) in mpp_taskqueue_pop_pending() argument 107 if (!task->session || !task->session->mpp) in mpp_taskqueue_pop_pending() 111 list_del_init(&task->queue_link); in mpp_taskqueue_pop_pending() 113 kref_put(&task->ref, mpp_free_task); in mpp_taskqueue_pop_pending() 121 struct mpp_task *task = NULL; in mpp_taskqueue_get_pending_task() local 124 task = list_first_entry_or_null(&queue->pending_list, in mpp_taskqueue_get_pending_task() 129 return task; in mpp_taskqueue_get_pending_task() 145 int mpp_taskqueue_pending_to_run(struct mpp_taskqueue *queue, struct mpp_task *task) in mpp_taskqueue_pending_to_run() argument 151 list_move_tail(&task->queue_link, &queue->running_list); in mpp_taskqueue_pending_to_run() 163 struct mpp_task *task = NULL; in mpp_taskqueue_get_running_task() local [all …]
|
| H A D | mpp_jpgdec.c | 72 #define to_jpgdec_task(task) \ argument 73 container_of(task, struct jpgdec_task, mpp_task) 128 struct jpgdec_task *task, in jpgdec_process_reg_fd() argument 133 ret = mpp_translate_reg_address(session, &task->mpp_task, in jpgdec_process_reg_fd() 134 JPEGDEC_FMT_DEFAULT, task->reg, &task->off_inf); in jpgdec_process_reg_fd() 138 mpp_translate_reg_offset_info(&task->mpp_task, in jpgdec_process_reg_fd() 139 &task->off_inf, task->reg); in jpgdec_process_reg_fd() 143 static int jpgdec_extract_task_msg(struct jpgdec_task *task, in jpgdec_extract_task_msg() argument 149 struct mpp_hw_info *hw_info = task->mpp_task.hw_info; in jpgdec_extract_task_msg() 162 ret = mpp_check_req(req, 0, sizeof(task->reg), in jpgdec_extract_task_msg() [all …]
|
| H A D | mpp_vdpu2.c | 83 #define to_vdpu_task(task) \ argument 84 container_of(task, struct vdpu_task, mpp_task) 204 struct vdpu_task *task, in vdpu_process_reg_fd() argument 208 int fmt = VDPU2_GET_FORMAT(task->reg[VDPU2_REG_SYS_CTRL_INDEX]); in vdpu_process_reg_fd() 210 ret = mpp_translate_reg_address(session, &task->mpp_task, in vdpu_process_reg_fd() 211 fmt, task->reg, &task->off_inf); in vdpu_process_reg_fd() 223 fd = task->reg[idx]; in vdpu_process_reg_fd() 226 fd = task->reg[idx] & 0x3ff; in vdpu_process_reg_fd() 227 offset = task->reg[idx] >> 10 << 4; in vdpu_process_reg_fd() 229 mem_region = mpp_task_attach_fd(&task->mpp_task, fd); in vdpu_process_reg_fd() [all …]
|
| /OK3568_Linux_fs/kernel/fs/proc/ |
| H A D | base.c | 173 static int get_task_root(struct task_struct *task, struct path *root) in get_task_root() argument 177 task_lock(task); in get_task_root() 178 if (task->fs) { in get_task_root() 179 get_fs_root(task->fs, root); in get_task_root() 182 task_unlock(task); in get_task_root() 188 struct task_struct *task = get_proc_task(d_inode(dentry)); in proc_cwd_link() local 191 if (task) { in proc_cwd_link() 192 task_lock(task); in proc_cwd_link() 193 if (task->fs) { in proc_cwd_link() 194 get_fs_pwd(task->fs, path); in proc_cwd_link() [all …]
|
| /OK3568_Linux_fs/external/mpp/doc/design/ |
| H A D | 4.mpp_task.txt | 1 MPP task design (2017.4.7) 4 Mpp task is the contain component for transaction with external user in advanced 8 Mpp task has mpp_meta as the rich content carrier. Mpp meta uses KEY and value 9 pair for extension. One task can carries multiple data into or out of mpp. 10 The typical case is encoder with OSD and motion detection. One task may contain 16 Mpp task transaction 19 1. Mpp task queue 20 Mpp task queue is the manager of tasks. Due to user may incorrectly use the task 21 we choose the design that hold all task inside mpp. Task queue will create and 22 release task. But task queue will not interact with user directly. We use port [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/isci/ |
| H A D | task.c | 76 static void isci_task_refuse(struct isci_host *ihost, struct sas_task *task, in isci_task_refuse() argument 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() 93 task->task_state_flags |= SAS_TASK_STATE_DONE; in isci_task_refuse() 94 task->task_state_flags &= ~(SAS_TASK_AT_INITIATOR | in isci_task_refuse() 96 task->lldd_task = NULL; in isci_task_refuse() 97 spin_unlock_irqrestore(&task->task_state_lock, flags); in isci_task_refuse() 99 task->task_done(task); in isci_task_refuse() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/lima/ |
| H A D | lima_sched.c | 111 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 …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/ |
| H A D | build.py | 81 def setTask(self, task): argument 82 self._task = task 87 task = property(getTask, setTask, None, "task property") variable in TaskBase 101 def __init__(self, task, fn, logfile, metadata, errprinted = False): argument 103 super(TaskFailed, self).__init__(task, fn, logfile, metadata) 113 def __init__(self, task, fn, metadata): argument 114 super(TaskInvalid, self).__init__(task, fn, None, metadata) 115 self._message = "No such task '%s'" % task 227 task = d.getVar('BB_RUNTASK') or func 228 if task == func: [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/base/test/ |
| H A D | mpp_task_test.c | 16 MppTask task = NULL; in task_input() local 27 ret = mpp_port_dequeue(port, &task); in task_input() 29 mpp_assert(task); in task_input() 31 ret = mpp_port_enqueue(port, task); in task_input() 44 MppTask task = NULL; in task_output() local 55 ret = mpp_port_dequeue(port, &task); in task_output() 57 mpp_assert(task); in task_output() 59 ret = mpp_port_enqueue(port, task); in task_output() 72 MppTask task = NULL; in task_in_and_out() local 81 ret = mpp_port_dequeue(port_input, &task); in task_in_and_out() [all …]
|
| /OK3568_Linux_fs/yocto/poky/scripts/ |
| H A D | test-reexec | 62 task=$2 64 task=`echo $task | sed 's/_setscene//'` 66 if [ -f $LOGS/force.$target.$task ]; then 70 case $task in 75 echo "Attempting target $target, task $task" 77 bitbake $target -c cleansstate > $LOGS/initial.$target.$task 78 bitbake $target >> $LOGS/initial.$target.$task 79 clearsstate $target >> $LOGS/initial.$target.$task 81 bitbake $target -c $task -f > $LOGS/force.$target.$task 83 echo "FAILURE for $target $task" [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/ |
| H A D | libiscsi.c | 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() 181 static int iscsi_prep_ecdb_ahs(struct iscsi_task *task) in iscsi_prep_ecdb_ahs() argument [all …]
|
| /OK3568_Linux_fs/kernel/kernel/bpf/ |
| H A D | task_iter.c | 28 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 …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | cn_proc.h | 23 void proc_fork_connector(struct task_struct *task); 24 void proc_exec_connector(struct task_struct *task); 25 void proc_id_connector(struct task_struct *task, int which_id); 26 void proc_sid_connector(struct task_struct *task); 27 void proc_ptrace_connector(struct task_struct *task, int which_id); 28 void proc_comm_connector(struct task_struct *task); 29 void proc_coredump_connector(struct task_struct *task); 30 void proc_exit_connector(struct task_struct *task); 32 static inline void proc_fork_connector(struct task_struct *task) in proc_fork_connector() argument 35 static inline void proc_exec_connector(struct task_struct *task) in proc_exec_connector() argument [all …]
|