Home
last modified time | relevance | path

Searched refs:task (Results 1 – 25 of 264) sorted by relevance

1234567891011

/drivers/infiniband/sw/rxe/
Drxe_task.c36 static bool __reserve_if_idle(struct rxe_task *task) in __reserve_if_idle() argument
38 WARN_ON(rxe_read(task->qp) <= 0); in __reserve_if_idle()
40 if (task->state == TASK_STATE_IDLE) { in __reserve_if_idle()
41 rxe_get(task->qp); in __reserve_if_idle()
42 task->state = TASK_STATE_BUSY; in __reserve_if_idle()
43 task->num_sched++; in __reserve_if_idle()
47 if (task->state == TASK_STATE_BUSY) in __reserve_if_idle()
48 task->state = TASK_STATE_ARMED; in __reserve_if_idle()
60 static bool __is_done(struct rxe_task *task) in __is_done() argument
62 if (work_pending(&task->work)) in __is_done()
[all …]
/drivers/scsi/libsas/
Dsas_scsi_host.c37 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()
78 task->dev->port->ha->sas_ha_name); in sas_end_task()
96 sas_free_task(task); in sas_end_task()
99 static void sas_scsi_task_done(struct sas_task *task) in sas_scsi_task_done() argument
101 struct scsi_cmnd *sc = task->uldd_task; in sas_scsi_task_done()
102 struct domain_device *dev = task->dev; in sas_scsi_task_done()
108 task = NULL; in sas_scsi_task_done()
113 if (unlikely(!task)) { in sas_scsi_task_done()
121 sas_free_task(task); in sas_scsi_task_done()
[all …]
Dsas_ata.c73 static void sas_ata_task_done(struct sas_task *task) in sas_ata_task_done() argument
75 struct ata_queued_cmd *qc = task->uldd_task; in sas_ata_task_done()
76 struct domain_device *dev = task->dev; in sas_ata_task_done()
77 struct task_status_struct *stat = &task->task_status; in sas_ata_task_done()
87 task = NULL; in sas_ata_task_done()
93 if (unlikely(!task)) in sas_ata_task_done()
152 sas_free_task(task); in sas_ata_task_done()
158 struct sas_task *task; in sas_ata_qc_issue() local
175 task = sas_alloc_task(GFP_ATOMIC); in sas_ata_qc_issue()
176 if (!task) in sas_ata_qc_issue()
[all …]
/drivers/gpu/drm/exynos/
Dexynos_drm_ipp.c86 WARN_ON(ipp->task); in exynos_drm_ipp_unregister()
260 struct exynos_drm_ipp_task *task; in exynos_drm_ipp_task_alloc() local
262 task = kzalloc(sizeof(*task), GFP_KERNEL); in exynos_drm_ipp_task_alloc()
263 if (!task) in exynos_drm_ipp_task_alloc()
266 task->dev = ipp->dev; in exynos_drm_ipp_task_alloc()
267 task->ipp = ipp; in exynos_drm_ipp_task_alloc()
270 task->src.rect.w = task->dst.rect.w = UINT_MAX; in exynos_drm_ipp_task_alloc()
271 task->src.rect.h = task->dst.rect.h = UINT_MAX; in exynos_drm_ipp_task_alloc()
272 task->transform.rotation = DRM_MODE_ROTATE_0; in exynos_drm_ipp_task_alloc()
274 DRM_DEV_DEBUG_DRIVER(task->dev, "Allocated task %pK\n", task); in exynos_drm_ipp_task_alloc()
[all …]
/drivers/scsi/aic94xx/
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()
57 sg_arr[0].size = cpu_to_le32(task->total_xfer_len); in asd_map_scatterlist()
64 if (sas_protocol_ata(task->task_proto)) in asd_map_scatterlist()
65 num_sg = task->num_scatter; in asd_map_scatterlist()
[all …]
Daic94xx_tmf.c214 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()
236 if (task->dev->tproto) in asd_clear_nexus_index()
[all …]
/drivers/video/fbdev/
Duvesafb.c75 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 …]
/drivers/scsi/
Dlibiscsi.c146 void iscsi_prep_data_out_pdu(struct iscsi_task *task, struct iscsi_r2t_info *r2t, in iscsi_prep_data_out_pdu() argument
149 struct iscsi_conn *conn = task->conn; in iscsi_prep_data_out_pdu()
152 task->hdr_len = sizeof(struct iscsi_data); in iscsi_prep_data_out_pdu()
159 hdr->lun = task->lun; in iscsi_prep_data_out_pdu()
160 hdr->itt = task->hdr_itt; in iscsi_prep_data_out_pdu()
176 static int iscsi_add_hdr(struct iscsi_task *task, unsigned len) in iscsi_add_hdr() argument
178 unsigned exp_len = task->hdr_len + len; in iscsi_add_hdr()
180 if (exp_len > task->hdr_max) { in iscsi_add_hdr()
186 task->hdr_len = exp_len; in iscsi_add_hdr()
193 static int iscsi_prep_ecdb_ahs(struct iscsi_task *task) in iscsi_prep_ecdb_ahs() argument
[all …]
Dlibiscsi_tcp.c454 void iscsi_tcp_cleanup_task(struct iscsi_task *task) in iscsi_tcp_cleanup_task() argument
456 struct iscsi_tcp_task *tcp_task = task->dd_data; in iscsi_tcp_cleanup_task()
460 if (!task->sc) in iscsi_tcp_cleanup_task()
468 ISCSI_DBG_TCP(task->conn, "pending r2t dropped\n"); in iscsi_tcp_cleanup_task()
486 static int iscsi_tcp_data_in(struct iscsi_conn *conn, struct iscsi_task *task) in iscsi_tcp_data_in() argument
489 struct iscsi_tcp_task *tcp_task = task->dd_data; in iscsi_tcp_data_in()
492 unsigned total_in_length = task->sc->sdb.length; in iscsi_tcp_data_in()
536 struct iscsi_task *task; in iscsi_tcp_r2t_rsp() local
543 task = iscsi_itt_to_ctask(conn, hdr->itt); in iscsi_tcp_r2t_rsp()
544 if (!task) { in iscsi_tcp_r2t_rsp()
[all …]
/drivers/scsi/isci/
Dtask.c76 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_STATE_PENDING; in isci_task_refuse()
95 task->lldd_task = NULL; in isci_task_refuse()
96 spin_unlock_irqrestore(&task->task_state_lock, flags); in isci_task_refuse()
98 task->task_done(task); in isci_task_refuse()
[all …]
Drequest.c116 struct sas_task *task = isci_request_access_task(ireq); in sci_request_build_sgl() local
123 if (task->num_scatter > 0) { in sci_request_build_sgl()
124 sg = task->scatter; in sci_request_build_sgl()
154 task->scatter, in sci_request_build_sgl()
155 task->total_xfer_len, in sci_request_build_sgl()
156 task->data_dir); in sci_request_build_sgl()
160 scu_sg->A.length = task->total_xfer_len; in sci_request_build_sgl()
174 struct sas_task *task = isci_request_access_task(ireq); in sci_io_request_build_ssp_command_iu() local
178 memcpy(cmd_iu->LUN, task->ssp_task.LUN, 8); in sci_io_request_build_ssp_command_iu()
184 cmd_iu->task_attr = task->ssp_task.task_attr; in sci_io_request_build_ssp_command_iu()
[all …]
/drivers/scsi/pm8001/
Dpm8001_sas.c50 static int pm8001_find_tag(struct sas_task *task, u32 *tag) in pm8001_find_tag() argument
52 if (task->lldd_task) { in pm8001_find_tag()
54 ccb = task->lldd_task; in pm8001_find_tag()
317 u32 pm8001_get_ncq_tag(struct sas_task *task, u32 *tag) in pm8001_get_ncq_tag() argument
319 struct ata_queued_cmd *qc = task->uldd_task; in pm8001_get_ncq_tag()
399 struct sas_task *task = ccb->task; in pm8001_deliver_command() local
400 enum sas_protocol task_proto = task->task_proto; in pm8001_deliver_command()
401 struct sas_tmf_task *tmf = task->tmf; in pm8001_deliver_command()
430 int pm8001_queue_command(struct sas_task *task, gfp_t gfp_flags) in pm8001_queue_command() argument
432 struct task_status_struct *ts = &task->task_status; in pm8001_queue_command()
[all …]
/drivers/gpu/drm/lima/
Dlima_sched.c112 int lima_sched_task_init(struct lima_sched_task *task, in lima_sched_task_init() argument
119 task->bos = kmemdup(bos, sizeof(*bos) * num_bos, GFP_KERNEL); in lima_sched_task_init()
120 if (!task->bos) in lima_sched_task_init()
126 err = drm_sched_job_init(&task->base, &context->base, vm); in lima_sched_task_init()
128 kfree(task->bos); in lima_sched_task_init()
132 drm_sched_job_arm(&task->base); in lima_sched_task_init()
134 task->num_bos = num_bos; in lima_sched_task_init()
135 task->vm = lima_vm_get(vm); in lima_sched_task_init()
140 void lima_sched_task_fini(struct lima_sched_task *task) in lima_sched_task_fini() argument
144 drm_sched_job_cleanup(&task->base); in lima_sched_task_fini()
[all …]
Dlima_trace.h14 TP_PROTO(struct lima_sched_task *task),
15 TP_ARGS(task),
20 __string(pipe, task->base.sched->name)
24 __entry->task_id = task->base.id;
25 __entry->context = task->base.s_fence->finished.context;
26 __entry->seqno = task->base.s_fence->finished.seqno;
27 __assign_str(pipe, task->base.sched->name);
36 TP_PROTO(struct lima_sched_task *task),
37 TP_ARGS(task)
41 TP_PROTO(struct lima_sched_task *task),
[all …]
/drivers/pci/
Ddoe.c87 void (*complete)(struct pci_doe_task *task);
145 struct pci_doe_task *task) in pci_doe_send_req() argument
167 length = 2 + DIV_ROUND_UP(task->request_pl_sz, sizeof(__le32)); in pci_doe_send_req()
174 val = FIELD_PREP(PCI_DOE_DATA_OBJECT_HEADER_1_VID, task->prot.vid) | in pci_doe_send_req()
175 FIELD_PREP(PCI_DOE_DATA_OBJECT_HEADER_1_TYPE, task->prot.type); in pci_doe_send_req()
182 for (i = 0; i < task->request_pl_sz / sizeof(__le32); i++) in pci_doe_send_req()
184 le32_to_cpu(task->request_pl[i])); in pci_doe_send_req()
187 remainder = task->request_pl_sz % sizeof(__le32); in pci_doe_send_req()
190 memcpy(&val, &task->request_pl[i], remainder); in pci_doe_send_req()
212 static int pci_doe_recv_resp(struct pci_doe_mb *doe_mb, struct pci_doe_task *task) in pci_doe_recv_resp() argument
[all …]
/drivers/scsi/mvsas/
Dmv_sas.c12 static int mvs_find_tag(struct mvs_info *mvi, struct sas_task *task, u32 *tag) in mvs_find_tag() argument
14 if (task->lldd_task) { in mvs_find_tag()
16 slot = task->lldd_task; in mvs_find_tag()
303 struct sas_task *task = tei->task; in mvs_task_prep_smp() local
305 struct domain_device *dev = task->dev; in mvs_task_prep_smp()
321 sg_req = &task->smp_task.smp_req; in mvs_task_prep_smp()
327 sg_resp = &task->smp_task.smp_resp; in mvs_task_prep_smp()
396 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_smp()
401 dma_unmap_sg(mvi->dev, &tei->task->smp_task.smp_resp, 1, in mvs_task_prep_smp()
404 dma_unmap_sg(mvi->dev, &tei->task->smp_task.smp_req, 1, in mvs_task_prep_smp()
[all …]
/drivers/gpu/drm/
Ddrm_flip_work.c39 struct drm_flip_task *task; in drm_flip_work_allocate_task() local
41 task = kzalloc(sizeof(*task), flags); in drm_flip_work_allocate_task()
42 if (task) in drm_flip_work_allocate_task()
43 task->data = data; in drm_flip_work_allocate_task()
45 return task; in drm_flip_work_allocate_task()
58 struct drm_flip_task *task) in drm_flip_work_queue_task() argument
63 list_add_tail(&task->node, &work->queued); in drm_flip_work_queue_task()
78 struct drm_flip_task *task; in drm_flip_work_queue() local
80 task = drm_flip_work_allocate_task(val, in drm_flip_work_queue()
82 if (task) { in drm_flip_work_queue()
[all …]
/drivers/net/wireless/mediatek/mt76/
Dutil.h17 struct task_struct *task; member
67 w->task = kthread_run(__mt76_worker_fn, w, in mt76_worker_setup()
70 if (IS_ERR(w->task)) { in mt76_worker_setup()
71 ret = PTR_ERR(w->task); in mt76_worker_setup()
72 w->task = NULL; in mt76_worker_setup()
81 if (!w->task) in mt76_worker_schedule()
86 wake_up_process(w->task); in mt76_worker_schedule()
91 if (!w->task) in mt76_worker_disable()
94 kthread_park(w->task); in mt76_worker_disable()
100 if (!w->task) in mt76_worker_enable()
[all …]
/drivers/dma/bestcomm/
Dbestcomm.c137 bcom_load_image(int task, u32 *task_image) in bcom_load_image() argument
151 if ((task < 0) || (task >= BCOM_MAX_TASKS)) { in bcom_load_image()
153 ": Trying to load invalid task %d\n", task); in bcom_load_image()
158 tdt = &bcom_eng->tdt[task]; in bcom_load_image()
161 desc = bcom_task_desc(task); in bcom_load_image()
162 if (hdr->desc_size != bcom_task_num_descs(task)) { in bcom_load_image()
166 task, in bcom_load_image()
168 bcom_task_num_descs(task)); in bcom_load_image()
182 var = bcom_task_var(task); in bcom_load_image()
183 inc = bcom_task_inc(task); in bcom_load_image()
[all …]
/drivers/mailbox/
Dmtk-cmdq-mailbox.c187 static void cmdq_task_insert_into_thread(struct cmdq_task *task) in cmdq_task_insert_into_thread() argument
189 struct device *dev = task->cmdq->mbox.dev; in cmdq_task_insert_into_thread()
190 struct cmdq_thread *thread = task->thread; in cmdq_task_insert_into_thread()
192 &thread->task_busy_list, typeof(*task), list_entry); in cmdq_task_insert_into_thread()
200 (task->pa_base >> task->cmdq->pdata->shift); in cmdq_task_insert_into_thread()
212 static void cmdq_task_exec_done(struct cmdq_task *task, int sta) in cmdq_task_exec_done() argument
217 data.pkt = task->pkt; in cmdq_task_exec_done()
218 mbox_chan_received_data(task->thread->chan, &data); in cmdq_task_exec_done()
220 list_del(&task->list_entry); in cmdq_task_exec_done()
223 static void cmdq_task_handle_error(struct cmdq_task *task) in cmdq_task_handle_error() argument
[all …]
/drivers/infiniband/ulp/iser/
Discsi_iser.c174 static int iscsi_iser_pdu_alloc(struct iscsi_task *task, uint8_t opcode) in iscsi_iser_pdu_alloc() argument
176 struct iscsi_iser_task *iser_task = task->dd_data; in iscsi_iser_pdu_alloc()
178 task->hdr = (struct iscsi_hdr *)&iser_task->desc.iscsi_header; in iscsi_iser_pdu_alloc()
179 task->hdr_max = sizeof(iser_task->desc.iscsi_header); in iscsi_iser_pdu_alloc()
195 int iser_initialize_task_headers(struct iscsi_task *task, in iser_initialize_task_headers() argument
198 struct iser_conn *iser_conn = task->conn->dd_data; in iser_initialize_task_headers()
200 struct iscsi_iser_task *iser_task = task->dd_data; in iser_initialize_task_headers()
233 static int iscsi_iser_task_init(struct iscsi_task *task) in iscsi_iser_task_init() argument
235 struct iscsi_iser_task *iser_task = task->dd_data; in iscsi_iser_task_init()
238 ret = iser_initialize_task_headers(task, &iser_task->desc); in iscsi_iser_task_init()
[all …]
Diser_initiator.c48 static int iser_prepare_read_cmd(struct iscsi_task *task) in iser_prepare_read_cmd() argument
51 struct iscsi_iser_task *iser_task = task->dd_data; in iser_prepare_read_cmd()
74 task->itt, mem_reg->rkey, in iser_prepare_read_cmd()
89 static int iser_prepare_write_cmd(struct iscsi_task *task, unsigned int imm_sz, in iser_prepare_write_cmd() argument
92 struct iscsi_iser_task *iser_task = task->dd_data; in iser_prepare_write_cmd()
122 task->itt, mem_reg->rkey, in iser_prepare_write_cmd()
128 task->itt, imm_sz); in iser_prepare_write_cmd()
342 int iser_send_command(struct iscsi_conn *conn, struct iscsi_task *task) in iser_send_command() argument
345 struct iscsi_iser_task *iser_task = task->dd_data; in iser_send_command()
349 struct iscsi_scsi_req *hdr = (struct iscsi_scsi_req *)task->hdr; in iser_send_command()
[all …]
/drivers/connector/
Dcn_proc.c117 void proc_fork_connector(struct task_struct *task) in proc_fork_connector() argument
133 parent = rcu_dereference(task->real_parent); in proc_fork_connector()
137 ev->event_data.fork.child_pid = task->pid; in proc_fork_connector()
138 ev->event_data.fork.child_tgid = task->tgid; in proc_fork_connector()
147 void proc_exec_connector(struct task_struct *task) in proc_exec_connector() argument
161 ev->event_data.exec.process_pid = task->pid; in proc_exec_connector()
162 ev->event_data.exec.process_tgid = task->tgid; in proc_exec_connector()
171 void proc_id_connector(struct task_struct *task, int which_id) in proc_id_connector() argument
185 ev->event_data.id.process_pid = task->pid; in proc_id_connector()
186 ev->event_data.id.process_tgid = task->tgid; in proc_id_connector()
[all …]
/drivers/media/pci/saa7134/
Dsaa7134-vbi.c40 int task) in task_init() argument
45 saa_writeb(SAA7134_VBI_H_START1(task), norm->h_start & 0xff); in task_init()
46 saa_writeb(SAA7134_VBI_H_START2(task), norm->h_start >> 8); in task_init()
47 saa_writeb(SAA7134_VBI_H_STOP1(task), norm->h_stop & 0xff); in task_init()
48 saa_writeb(SAA7134_VBI_H_STOP2(task), norm->h_stop >> 8); in task_init()
49 saa_writeb(SAA7134_VBI_V_START1(task), norm->vbi_v_start_0 & 0xff); in task_init()
50 saa_writeb(SAA7134_VBI_V_START2(task), norm->vbi_v_start_0 >> 8); in task_init()
51 saa_writeb(SAA7134_VBI_V_STOP1(task), norm->vbi_v_stop_0 & 0xff); in task_init()
52 saa_writeb(SAA7134_VBI_V_STOP2(task), norm->vbi_v_stop_0 >> 8); in task_init()
54 saa_writeb(SAA7134_VBI_H_SCALE_INC1(task), VBI_SCALE & 0xff); in task_init()
[all …]
/drivers/scsi/hisi_sas/
Dhisi_sas_main.c102 void hisi_sas_sata_done(struct sas_task *task, in hisi_sas_sata_done() argument
105 struct task_status_struct *ts = &task->task_status; in hisi_sas_sata_done()
207 void hisi_sas_slot_task_free(struct hisi_hba *hisi_hba, struct sas_task *task, in hisi_sas_slot_task_free() argument
213 if (task) { in hisi_sas_slot_task_free()
216 if (!task->lldd_task) in hisi_sas_slot_task_free()
219 task->lldd_task = NULL; in hisi_sas_slot_task_free()
221 if (!sas_protocol_ata(task->task_proto)) { in hisi_sas_slot_task_free()
223 if (task->task_proto & SAS_PROTOCOL_SSP) in hisi_sas_slot_task_free()
224 dma_unmap_sg(dev, task->scatter, in hisi_sas_slot_task_free()
225 task->num_scatter, in hisi_sas_slot_task_free()
[all …]

1234567891011