Home
last modified time | relevance | path

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

1234567

/drivers/scsi/aic94xx/
Daic94xx_task.c54 static int asd_map_scatterlist(struct sas_task *task, in asd_map_scatterlist() argument
58 struct asd_ascb *ascb = task->lldd_task; in asd_map_scatterlist()
63 if (task->data_dir == PCI_DMA_NONE) in asd_map_scatterlist()
66 if (task->num_scatter == 0) { in asd_map_scatterlist()
67 void *p = task->scatter; in asd_map_scatterlist()
69 task->total_xfer_len, in asd_map_scatterlist()
70 task->data_dir); in asd_map_scatterlist()
72 sg_arr[0].size = cpu_to_le32(task->total_xfer_len); in asd_map_scatterlist()
79 if (sas_protocol_ata(task->task_proto)) in asd_map_scatterlist()
80 num_sg = task->num_scatter; in asd_map_scatterlist()
[all …]
Daic94xx_tmf.c233 static int asd_clear_nexus_tag(struct sas_task *task) in asd_clear_nexus_tag() argument
235 struct asd_ha_struct *asd_ha = task->dev->port->ha->lldd_ha; in asd_clear_nexus_tag()
236 struct asd_ascb *tascb = task->lldd_task; in asd_clear_nexus_tag()
240 memcpy(scb->clear_nexus.ssp_task.lun, task->ssp_task.LUN, 8); in asd_clear_nexus_tag()
242 if (task->dev->tproto) in asd_clear_nexus_tag()
244 task->dev->lldd_dev); in asd_clear_nexus_tag()
248 static int asd_clear_nexus_index(struct sas_task *task) in asd_clear_nexus_index() argument
250 struct asd_ha_struct *asd_ha = task->dev->port->ha->lldd_ha; in asd_clear_nexus_index()
251 struct asd_ascb *tascb = task->lldd_task; in asd_clear_nexus_index()
255 if (task->dev->tproto) in asd_clear_nexus_index()
[all …]
/drivers/scsi/pm8001/
Dpm8001_sas.c49 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()
278 u32 pm8001_get_ncq_tag(struct sas_task *task, u32 *tag) in pm8001_get_ncq_tag() argument
280 struct ata_queued_cmd *qc = task->uldd_task; in pm8001_get_ncq_tag()
353 static int pm8001_task_exec(struct sas_task *task, in pm8001_task_exec() argument
356 struct domain_device *dev = task->dev; in pm8001_task_exec()
360 struct sas_task *t = task; in pm8001_task_exec()
373 pm8001_ha = pm8001_find_ha_by_dev(task->dev); in pm8001_task_exec()
428 ccb->task = t; in pm8001_task_exec()
[all …]
Dpm80xx_hwi.c1396 struct sas_task *task = NULL; in pm80xx_send_abort_all() local
1407 task = sas_alloc_slow_task(GFP_ATOMIC); in pm80xx_send_abort_all()
1409 if (!task) { in pm80xx_send_abort_all()
1415 task->task_done = pm8001_task_done; in pm80xx_send_abort_all()
1419 sas_free_task(task); in pm80xx_send_abort_all()
1426 ccb->task = task; in pm80xx_send_abort_all()
1437 sas_free_task(task); in pm80xx_send_abort_all()
1449 struct sas_task *task = NULL; in pm80xx_send_read_log() local
1455 task = sas_alloc_slow_task(GFP_ATOMIC); in pm80xx_send_read_log()
1457 if (!task) { in pm80xx_send_read_log()
[all …]
/drivers/video/fbdev/
Duvesafb.c71 struct uvesafb_ktask *task; in uvesafb_cn_callback() local
80 task = uvfb_tasks[msg->seq]; in uvesafb_cn_callback()
82 if (!task || msg->ack != task->ack) { in uvesafb_cn_callback()
90 if (task->t.buf_len < utask->buf_len || in uvesafb_cn_callback()
99 memcpy(&task->t, utask, sizeof(*utask)); in uvesafb_cn_callback()
101 if (task->t.buf_len && task->buf) in uvesafb_cn_callback()
102 memcpy(task->buf, utask + 1, task->t.buf_len); in uvesafb_cn_callback()
104 complete(task->done); in uvesafb_cn_callback()
140 static int uvesafb_exec(struct uvesafb_ktask *task) in uvesafb_exec() argument
145 int len = sizeof(task->t) + task->t.buf_len; in uvesafb_exec()
[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_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 …]
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()
183 cmd_iu->task_prio = task->ssp_task.task_prio; in sci_io_request_build_ssp_command_iu()
[all …]
/drivers/scsi/
Dlibiscsi.c136 void iscsi_prep_data_out_pdu(struct iscsi_task *task, struct iscsi_r2t_info *r2t, in iscsi_prep_data_out_pdu() argument
139 struct iscsi_conn *conn = task->conn; in iscsi_prep_data_out_pdu()
142 task->hdr_len = sizeof(struct iscsi_data); in iscsi_prep_data_out_pdu()
149 hdr->lun = task->lun; in iscsi_prep_data_out_pdu()
150 hdr->itt = task->hdr_itt; in iscsi_prep_data_out_pdu()
166 static int iscsi_add_hdr(struct iscsi_task *task, unsigned len) in iscsi_add_hdr() argument
168 unsigned exp_len = task->hdr_len + len; in iscsi_add_hdr()
170 if (exp_len > task->hdr_max) { in iscsi_add_hdr()
176 task->hdr_len = exp_len; in iscsi_add_hdr()
183 static int iscsi_prep_ecdb_ahs(struct iscsi_task *task) in iscsi_prep_ecdb_ahs() argument
[all …]
Dlibiscsi_tcp.c451 void iscsi_tcp_cleanup_task(struct iscsi_task *task) in iscsi_tcp_cleanup_task() argument
453 struct iscsi_tcp_task *tcp_task = task->dd_data; in iscsi_tcp_cleanup_task()
457 if (!task->sc) in iscsi_tcp_cleanup_task()
465 ISCSI_DBG_TCP(task->conn, "pending r2t dropped\n"); in iscsi_tcp_cleanup_task()
483 static int iscsi_tcp_data_in(struct iscsi_conn *conn, struct iscsi_task *task) in iscsi_tcp_data_in() argument
486 struct iscsi_tcp_task *tcp_task = task->dd_data; in iscsi_tcp_data_in()
489 unsigned total_in_length = scsi_in(task->sc)->length; in iscsi_tcp_data_in()
526 static int iscsi_tcp_r2t_rsp(struct iscsi_conn *conn, struct iscsi_task *task) in iscsi_tcp_r2t_rsp() argument
529 struct iscsi_tcp_task *tcp_task = task->dd_data; in iscsi_tcp_r2t_rsp()
554 if (!task->sc || session->state != ISCSI_STATE_LOGGED_IN) { in iscsi_tcp_r2t_rsp()
[all …]
/drivers/scsi/mvsas/
Dmv_sas.c28 static int mvs_find_tag(struct mvs_info *mvi, struct sas_task *task, u32 *tag) in mvs_find_tag() argument
30 if (task->lldd_task) { in mvs_find_tag()
32 slot = task->lldd_task; in mvs_find_tag()
320 struct sas_task *task = tei->task; in mvs_task_prep_smp() local
322 struct domain_device *dev = task->dev; in mvs_task_prep_smp()
338 sg_req = &task->smp_task.smp_req; in mvs_task_prep_smp()
344 sg_resp = &task->smp_task.smp_resp; in mvs_task_prep_smp()
413 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_smp()
418 dma_unmap_sg(mvi->dev, &tei->task->smp_task.smp_resp, 1, in mvs_task_prep_smp()
421 dma_unmap_sg(mvi->dev, &tei->task->smp_task.smp_req, 1, in mvs_task_prep_smp()
[all …]
/drivers/scsi/libsas/
Dsas_scsi_host.c53 static void sas_end_task(struct scsi_cmnd *sc, struct sas_task *task) in sas_end_task() argument
55 struct task_status_struct *ts = &task->task_status; in sas_end_task()
97 task->dev->port->ha->sas_ha_name); in sas_end_task()
115 sas_free_task(task); in sas_end_task()
118 static void sas_scsi_task_done(struct sas_task *task) in sas_scsi_task_done() argument
120 struct scsi_cmnd *sc = task->uldd_task; in sas_scsi_task_done()
121 struct domain_device *dev = task->dev; in sas_scsi_task_done()
127 task = NULL; in sas_scsi_task_done()
132 if (unlikely(!task)) { in sas_scsi_task_done()
140 sas_free_task(task); in sas_scsi_task_done()
[all …]
Dsas_ata.c95 static void sas_ata_task_done(struct sas_task *task) in sas_ata_task_done() argument
97 struct ata_queued_cmd *qc = task->uldd_task; in sas_ata_task_done()
98 struct domain_device *dev = task->dev; in sas_ata_task_done()
99 struct task_status_struct *stat = &task->task_status; in sas_ata_task_done()
109 task = NULL; in sas_ata_task_done()
115 if (unlikely(!task)) in sas_ata_task_done()
174 sas_free_task(task); in sas_ata_task_done()
180 struct sas_task *task; in sas_ata_qc_issue() local
200 task = sas_alloc_task(GFP_ATOMIC); in sas_ata_qc_issue()
201 if (!task) in sas_ata_qc_issue()
[all …]
/drivers/misc/
Duid_sys_stats.c80 static u64 compute_write_bytes(struct task_struct *task) in compute_write_bytes() argument
82 if (task->ioac.write_bytes <= task->ioac.cancelled_write_bytes) in compute_write_bytes()
85 return task->ioac.write_bytes - task->ioac.cancelled_write_bytes; in compute_write_bytes()
123 struct task_struct *task) in get_full_task_comm() argument
129 struct mm_struct *mm = task->mm; in get_full_task_comm()
132 __get_task_comm(task_entry->comm, TASK_COMM_LEN, task); in get_full_task_comm()
159 len = get_cmdline(task, buf, unused_len); in get_full_task_comm()
177 struct task_struct *task) in find_task_entry() argument
182 task->pid) { in find_task_entry()
183 if (task->pid == task_entry->pid) { in find_task_entry()
[all …]
/drivers/gpu/drm/
Ddrm_flip_work.c36 struct drm_flip_task *task; in drm_flip_work_allocate_task() local
38 task = kzalloc(sizeof(*task), flags); in drm_flip_work_allocate_task()
39 if (task) in drm_flip_work_allocate_task()
40 task->data = data; in drm_flip_work_allocate_task()
42 return task; in drm_flip_work_allocate_task()
55 struct drm_flip_task *task) in drm_flip_work_queue_task() argument
60 list_add_tail(&task->node, &work->queued); in drm_flip_work_queue_task()
75 struct drm_flip_task *task; in drm_flip_work_queue() local
77 task = drm_flip_work_allocate_task(val, in drm_flip_work_queue()
79 if (task) { in drm_flip_work_queue()
[all …]
/drivers/dma/bestcomm/
Dbestcomm.c139 bcom_load_image(int task, u32 *task_image) in bcom_load_image() argument
153 if ((task < 0) || (task >= BCOM_MAX_TASKS)) { in bcom_load_image()
155 ": Trying to load invalid task %d\n", task); in bcom_load_image()
160 tdt = &bcom_eng->tdt[task]; in bcom_load_image()
163 desc = bcom_task_desc(task); in bcom_load_image()
164 if (hdr->desc_size != bcom_task_num_descs(task)) { in bcom_load_image()
168 task, in bcom_load_image()
170 bcom_task_num_descs(task)); in bcom_load_image()
184 var = bcom_task_var(task); in bcom_load_image()
185 inc = bcom_task_inc(task); in bcom_load_image()
[all …]
/drivers/infiniband/ulp/iser/
Discsi_iser.c161 iscsi_iser_pdu_alloc(struct iscsi_task *task, uint8_t opcode) in iscsi_iser_pdu_alloc() argument
163 struct iscsi_iser_task *iser_task = task->dd_data; in iscsi_iser_pdu_alloc()
165 task->hdr = (struct iscsi_hdr *)&iser_task->desc.iscsi_header; in iscsi_iser_pdu_alloc()
166 task->hdr_max = sizeof(iser_task->desc.iscsi_header); in iscsi_iser_pdu_alloc()
183 iser_initialize_task_headers(struct iscsi_task *task, in iser_initialize_task_headers() argument
186 struct iser_conn *iser_conn = task->conn->dd_data; in iser_initialize_task_headers()
188 struct iscsi_iser_task *iser_task = task->dd_data; in iser_initialize_task_headers()
190 const bool mgmt_task = !task->sc && !in_interrupt(); in iser_initialize_task_headers()
233 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()
[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()
87 task->itt, mem_reg->rkey, in iser_prepare_read_cmd()
99 iser_prepare_write_cmd(struct iscsi_task *task, in iser_prepare_write_cmd() argument
104 struct iscsi_iser_task *iser_task = task->dd_data; in iser_prepare_write_cmd()
144 task->itt, mem_reg->rkey, in iser_prepare_write_cmd()
150 task->itt, imm_sz); in iser_prepare_write_cmd()
370 struct iscsi_task *task) in iser_send_command() argument
373 struct iscsi_iser_task *iser_task = task->dd_data; in iser_send_command()
377 struct iscsi_scsi_req *hdr = (struct iscsi_scsi_req *)task->hdr; in iser_send_command()
[all …]
Diser_memory.c527 iser_reg_prot_sg(struct iscsi_iser_task *task, in iser_reg_prot_sg() argument
533 struct iser_device *device = task->iser_conn->ib_conn.device; in iser_reg_prot_sg()
538 return device->reg_ops->reg_mem(task, mem, &desc->pi_ctx->rsc, reg); in iser_reg_prot_sg()
542 iser_reg_data_sg(struct iscsi_iser_task *task, in iser_reg_data_sg() argument
548 struct iser_device *device = task->iser_conn->ib_conn.device; in iser_reg_data_sg()
553 return device->reg_ops->reg_mem(task, mem, &desc->rsc, reg); in iser_reg_data_sg()
556 int iser_reg_rdma_mem(struct iscsi_iser_task *task, in iser_reg_rdma_mem() argument
559 struct ib_conn *ib_conn = &task->iser_conn->ib_conn; in iser_reg_rdma_mem()
561 struct iser_data_buf *mem = &task->data[dir]; in iser_reg_rdma_mem()
562 struct iser_mem_reg *reg = &task->rdma_reg[dir]; in iser_reg_rdma_mem()
[all …]
/drivers/connector/
Dcn_proc.c67 void proc_fork_connector(struct task_struct *task) in proc_fork_connector() argument
84 parent = rcu_dereference(task->real_parent); in proc_fork_connector()
88 ev->event_data.fork.child_pid = task->pid; in proc_fork_connector()
89 ev->event_data.fork.child_tgid = task->tgid; in proc_fork_connector()
99 void proc_exec_connector(struct task_struct *task) in proc_exec_connector() argument
114 ev->event_data.exec.process_pid = task->pid; in proc_exec_connector()
115 ev->event_data.exec.process_tgid = task->tgid; in proc_exec_connector()
124 void proc_id_connector(struct task_struct *task, int which_id) in proc_id_connector() argument
138 ev->event_data.id.process_pid = task->pid; in proc_id_connector()
139 ev->event_data.id.process_tgid = task->tgid; in proc_id_connector()
[all …]
/drivers/media/pci/saa7134/
Dsaa7134-vbi.c53 int task) in task_init() argument
58 saa_writeb(SAA7134_VBI_H_START1(task), norm->h_start & 0xff); in task_init()
59 saa_writeb(SAA7134_VBI_H_START2(task), norm->h_start >> 8); in task_init()
60 saa_writeb(SAA7134_VBI_H_STOP1(task), norm->h_stop & 0xff); in task_init()
61 saa_writeb(SAA7134_VBI_H_STOP2(task), norm->h_stop >> 8); in task_init()
62 saa_writeb(SAA7134_VBI_V_START1(task), norm->vbi_v_start_0 & 0xff); in task_init()
63 saa_writeb(SAA7134_VBI_V_START2(task), norm->vbi_v_start_0 >> 8); in task_init()
64 saa_writeb(SAA7134_VBI_V_STOP1(task), norm->vbi_v_stop_0 & 0xff); in task_init()
65 saa_writeb(SAA7134_VBI_V_STOP2(task), norm->vbi_v_stop_0 >> 8); in task_init()
67 saa_writeb(SAA7134_VBI_H_SCALE_INC1(task), VBI_SCALE & 0xff); in task_init()
[all …]
/drivers/staging/lustre/lustre/include/linux/
Dobd.h64 struct task_struct *task; member
76 LASSERT(lock->task == NULL); in __client_obd_list_lock()
77 lock->task = current; in __client_obd_list_lock()
86 struct task_struct *task = lock->task; in __client_obd_list_lock() local
88 if (task == NULL) in __client_obd_list_lock()
93 lock, task->comm, task->pid, in __client_obd_list_lock()
111 LASSERT(lock->task != NULL); in client_obd_list_unlock()
112 lock->task = NULL; in client_obd_list_unlock()
/drivers/scsi/bnx2fc/
Dbnx2fc_hwi.c635 struct fcoe_task_ctx_entry *task, *task_page; in bnx2fc_process_unsol_compl() local
715 task = &(task_page[index]); in bnx2fc_process_unsol_compl()
843 task = &(task_page[index]); in bnx2fc_process_unsol_compl()
874 struct fcoe_task_ctx_entry *task; in bnx2fc_process_cq_compl() local
896 task = &(task_page[index]); in bnx2fc_process_cq_compl()
898 num_rq = ((task->rxwr_txrd.var_ctx.rx_flags & in bnx2fc_process_cq_compl()
913 rx_state = ((task->rxwr_txrd.var_ctx.rx_flags & in bnx2fc_process_cq_compl()
921 bnx2fc_process_scsi_cmd_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
927 bnx2fc_process_abts_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
930 bnx2fc_process_cleanup_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
[all …]
/drivers/staging/iio/trigger/
Diio-trig-periodic-rtc.c28 struct rtc_task task; member
41 ret = rtc_irq_set_state(trig_info->rtc, &trig_info->task, state); in iio_trig_periodic_rtc_set_state()
73 ret = rtc_irq_set_freq(trig_info->rtc, &trig_info->task, val); in iio_trig_periodic_write_freq()
76 &trig_info->task, 1); in iio_trig_periodic_write_freq()
78 ret = rtc_irq_set_state(trig_info->rtc, &trig_info->task, 0); in iio_trig_periodic_write_freq()
150 trig_info->task.func = iio_prtc_trigger_poll; in iio_trig_periodic_rtc_probe()
151 trig_info->task.private_data = trig; in iio_trig_periodic_rtc_probe()
152 ret = rtc_irq_register(trig_info->rtc, &trig_info->task); in iio_trig_periodic_rtc_probe()
162 rtc_irq_unregister(trig_info->rtc, &trig_info->task); in iio_trig_periodic_rtc_probe()
176 rtc_irq_unregister(trig_info->rtc, &trig_info->task); in iio_trig_periodic_rtc_probe()
[all …]
/drivers/misc/cxl/
Dfault.c180 struct task_struct *task = NULL; in get_mem_context() local
190 task = get_pid_task(old_pid, PIDTYPE_PID); in get_mem_context()
198 if (task != NULL && pid_alive(task)) in get_mem_context()
199 mm = get_task_mm(task); in get_mem_context()
202 if (task) in get_mem_context()
203 put_task_struct(task); in get_mem_context()
216 task = pid_task(ctx->glpid, PIDTYPE_PID); in get_mem_context()
217 if (task) in get_mem_context()
219 mm = get_task_mm(task); in get_mem_context()
221 ctx->pid = get_task_pid(task, in get_mem_context()
[all …]
/drivers/md/persistent-data/
Ddm-block-manager.c51 struct task_struct *task; member
56 struct task_struct *task) in __find_holder() argument
61 if (lock->holders[i] == task) in __find_holder()
69 static void __add_holder(struct block_lock *lock, struct task_struct *task) in __add_holder() argument
76 get_task_struct(task); in __add_holder()
77 lock->holders[h] = task; in __add_holder()
90 static void __del_holder(struct block_lock *lock, struct task_struct *task) in __del_holder() argument
92 unsigned h = __find_holder(lock, task); in __del_holder()
94 put_task_struct(task); in __del_holder()
132 if (!w->task) in __wait()
[all …]

1234567