Lines Matching refs:tei

303 			     struct mvs_task_exec_info *tei)  in mvs_task_prep_smp()  argument
307 struct sas_task *task = tei->task; in mvs_task_prep_smp()
308 struct mvs_cmd_hdr *hdr = tei->hdr; in mvs_task_prep_smp()
314 u32 req_len, resp_len, tag = tei->tag; in mvs_task_prep_smp()
320 u32 flags = (tei->n_elem << MCH_PRD_LEN_SHIFT); in mvs_task_prep_smp()
364 if (tei->n_elem) in mvs_task_prep_smp()
369 i = MVS_CHIP_DISP->prd_size() * tei->n_elem; in mvs_task_prep_smp()
400 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_smp()
405 dma_unmap_sg(mvi->dev, &tei->task->smp_task.smp_resp, 1, in mvs_task_prep_smp()
408 dma_unmap_sg(mvi->dev, &tei->task->smp_task.smp_req, 1, in mvs_task_prep_smp()
432 struct mvs_task_exec_info *tei) in mvs_task_prep_ata() argument
434 struct sas_task *task = tei->task; in mvs_task_prep_ata()
437 struct mvs_cmd_hdr *hdr = tei->hdr; in mvs_task_prep_ata()
441 u32 tag = tei->tag, hdr_tag; in mvs_task_prep_ata()
465 flags = (tei->n_elem << MCH_PRD_LEN_SHIFT); in mvs_task_prep_ata()
509 if (tei->n_elem) in mvs_task_prep_ata()
548 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_ata()
552 TRASH_BUCKET_SIZE, tei->n_elem, buf_prd); in mvs_task_prep_ata()
558 struct mvs_task_exec_info *tei, int is_tmf, in mvs_task_prep_ssp() argument
561 struct sas_task *task = tei->task; in mvs_task_prep_ssp()
562 struct mvs_cmd_hdr *hdr = tei->hdr; in mvs_task_prep_ssp()
563 struct mvs_port *port = tei->port; in mvs_task_prep_ssp()
574 u32 resp_len, req_len, i, tag = tei->tag; in mvs_task_prep_ssp()
598 hdr->flags = cpu_to_le32(flags | (tei->n_elem << MCH_PRD_LEN_SHIFT)); in mvs_task_prep_ssp()
624 if (tei->n_elem) in mvs_task_prep_ssp()
629 i = MVS_CHIP_DISP->prd_size() * tei->n_elem; in mvs_task_prep_ssp()
693 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_ssp()
703 struct mvs_task_exec_info tei; in mvs_task_prep() local
733 tei.port = dev->port->lldd_port; in mvs_task_prep()
734 if (tei.port && !tei.port->port_attached && !tmf) { in mvs_task_prep()
786 tei.task = task; in mvs_task_prep()
787 tei.hdr = &mvi->slot[tag]; in mvs_task_prep()
788 tei.tag = tag; in mvs_task_prep()
789 tei.n_elem = n_elem; in mvs_task_prep()
792 rc = mvs_task_prep_smp(mvi, &tei); in mvs_task_prep()
795 rc = mvs_task_prep_ssp(mvi, &tei, is_tmf, tmf); in mvs_task_prep()
800 rc = mvs_task_prep_ata(mvi, &tei); in mvs_task_prep()
815 slot->port = tei.port; in mvs_task_prep()
817 list_add_tail(&slot->entry, &tei.port->list); in mvs_task_prep()