Lines Matching refs:t

1527 		struct sas_task *t = (struct sas_task *)pm8001_dev;  in pm8001_work_fn()  local
1534 if (pm8001_query_task(t) == TMF_RESP_FUNC_SUCC) in pm8001_work_fn()
1538 spin_lock_irqsave(&t->task_state_lock, flags1); in pm8001_work_fn()
1539 if (unlikely((t->task_state_flags & SAS_TASK_STATE_DONE))) { in pm8001_work_fn()
1540 spin_unlock_irqrestore(&t->task_state_lock, flags1); in pm8001_work_fn()
1544 spin_unlock_irqrestore(&t->task_state_lock, flags1); in pm8001_work_fn()
1550 (ccb->task == t)) in pm8001_work_fn()
1557 ts = &t->task_status; in pm8001_work_fn()
1564 spin_lock_irqsave(&t->task_state_lock, flags1); in pm8001_work_fn()
1565 t->task_state_flags &= ~SAS_TASK_STATE_PENDING; in pm8001_work_fn()
1566 t->task_state_flags |= SAS_TASK_STATE_DONE; in pm8001_work_fn()
1567 if (unlikely((t->task_state_flags & SAS_TASK_STATE_ABORTED))) { in pm8001_work_fn()
1568 spin_unlock_irqrestore(&t->task_state_lock, flags1); in pm8001_work_fn()
1570 t, pw->handler, ts->resp, ts->stat); in pm8001_work_fn()
1574 spin_unlock_irqrestore(&t->task_state_lock, flags1); in pm8001_work_fn()
1578 t->task_done(t); in pm8001_work_fn()
1583 struct sas_task *t = (struct sas_task *)pm8001_dev; in pm8001_work_fn() local
1591 ret = pm8001_query_task(t); in pm8001_work_fn()
1602 spin_lock_irqsave(&t->task_state_lock, flags1); in pm8001_work_fn()
1604 if (unlikely((t->task_state_flags & SAS_TASK_STATE_DONE))) { in pm8001_work_fn()
1605 spin_unlock_irqrestore(&t->task_state_lock, flags1); in pm8001_work_fn()
1608 (void)pm8001_abort_task(t); in pm8001_work_fn()
1612 spin_unlock_irqrestore(&t->task_state_lock, flags1); in pm8001_work_fn()
1618 (ccb->task == t)) in pm8001_work_fn()
1624 (void)pm8001_abort_task(t); in pm8001_work_fn()
1635 ret = pm8001_abort_task(t); in pm8001_work_fn()
1662 t = NULL; in pm8001_work_fn()
1663 pm8001_open_reject_retry(pm8001_ha, t, pm8001_dev); in pm8001_work_fn()
1772 struct sas_task *t; in mpi_ssp_completion() local
1794 t = ccb->task; in mpi_ssp_completion()
1798 if (unlikely(!t || !t->lldd_task || !t->dev)) in mpi_ssp_completion()
1800 ts = &t->task_status; in mpi_ssp_completion()
1805 SAS_ADDR(t->dev->sas_addr)); in mpi_ssp_completion()
1810 status, tag, t); in mpi_ssp_completion()
1824 sas_ssp_task_response(pm8001_ha->dev, t, iu); in mpi_ssp_completion()
1887 if (!t->uldd_task) in mpi_ssp_completion()
1948 if (!t->uldd_task) in mpi_ssp_completion()
1984 spin_lock_irqsave(&t->task_state_lock, flags); in mpi_ssp_completion()
1985 t->task_state_flags &= ~SAS_TASK_STATE_PENDING; in mpi_ssp_completion()
1986 t->task_state_flags |= SAS_TASK_STATE_DONE; in mpi_ssp_completion()
1987 if (unlikely((t->task_state_flags & SAS_TASK_STATE_ABORTED))) { in mpi_ssp_completion()
1988 spin_unlock_irqrestore(&t->task_state_lock, flags); in mpi_ssp_completion()
1990 t, status, ts->resp, ts->stat); in mpi_ssp_completion()
1993 spin_unlock_irqrestore(&t->task_state_lock, flags); in mpi_ssp_completion()
1996 t->task_done(t); in mpi_ssp_completion()
2003 struct sas_task *t; in mpi_ssp_event() local
2016 t = ccb->task; in mpi_ssp_event()
2020 if (unlikely(!t || !t->lldd_task || !t->dev)) in mpi_ssp_event()
2022 ts = &t->task_status; in mpi_ssp_event()
2036 pm8001_handle_event(pm8001_ha, t, IO_XFER_ERROR_BREAK); in mpi_ssp_event()
2068 if (!t->uldd_task) in mpi_ssp_event()
2106 pm8001_handle_event(pm8001_ha, t, IO_XFER_OPEN_RETRY_TIMEOUT); in mpi_ssp_event()
2151 spin_lock_irqsave(&t->task_state_lock, flags); in mpi_ssp_event()
2152 t->task_state_flags &= ~SAS_TASK_STATE_PENDING; in mpi_ssp_event()
2153 t->task_state_flags |= SAS_TASK_STATE_DONE; in mpi_ssp_event()
2154 if (unlikely((t->task_state_flags & SAS_TASK_STATE_ABORTED))) { in mpi_ssp_event()
2155 spin_unlock_irqrestore(&t->task_state_lock, flags); in mpi_ssp_event()
2157 t, event, ts->resp, ts->stat); in mpi_ssp_event()
2160 spin_unlock_irqrestore(&t->task_state_lock, flags); in mpi_ssp_event()
2163 t->task_done(t); in mpi_ssp_event()
2171 struct sas_task *t; in mpi_sata_completion() local
2194 t = ccb->task; in mpi_sata_completion()
2197 if (t) { in mpi_sata_completion()
2198 if (t->dev && (t->dev->lldd_dev)) in mpi_sata_completion()
2199 pm8001_dev = t->dev->lldd_dev; in mpi_sata_completion()
2207 if (pm8001_dev && unlikely(!t || !t->lldd_task || !t->dev)) { in mpi_sata_completion()
2212 ts = &t->task_status; in mpi_sata_completion()
2217 status, tag, t); in mpi_sata_completion()
2222 if (!((t->dev->parent) && in mpi_sata_completion()
2223 (dev_is_expander(t->dev->parent->dev_type)))) { in mpi_sata_completion()
2256 SAS_ADDR(t->dev->sas_addr)); in mpi_sata_completion()
2275 if (t->ata_task.dma_xfer == 0 && in mpi_sata_completion()
2276 t->data_dir == DMA_FROM_DEVICE) { in mpi_sata_completion()
2280 } else if (t->ata_task.use_ncq && in mpi_sata_completion()
2281 t->data_dir != DMA_NONE) { in mpi_sata_completion()
2369 if (!t->uldd_task) { in mpi_sata_completion()
2385 if (!t->uldd_task) { in mpi_sata_completion()
2407 if (!t->uldd_task) { in mpi_sata_completion()
2479 if (!t->uldd_task) { in mpi_sata_completion()
2499 if (!t->uldd_task) { in mpi_sata_completion()
2526 spin_lock_irqsave(&t->task_state_lock, flags); in mpi_sata_completion()
2527 t->task_state_flags &= ~SAS_TASK_STATE_PENDING; in mpi_sata_completion()
2528 t->task_state_flags |= SAS_TASK_STATE_DONE; in mpi_sata_completion()
2529 if (unlikely((t->task_state_flags & SAS_TASK_STATE_ABORTED))) { in mpi_sata_completion()
2530 spin_unlock_irqrestore(&t->task_state_lock, flags); in mpi_sata_completion()
2533 t, status, ts->resp, ts->stat); in mpi_sata_completion()
2536 spin_unlock_irqrestore(&t->task_state_lock, flags); in mpi_sata_completion()
2544 struct sas_task *t; in mpi_sata_event() local
2570 t = ccb->task; in mpi_sata_event()
2575 if (unlikely(!t)) { in mpi_sata_event()
2582 if (unlikely(!t->lldd_task || !t->dev)) in mpi_sata_event()
2585 ts = &t->task_status; in mpi_sata_event()
2630 if (!t->uldd_task) { in mpi_sata_event()
2727 struct sas_task *t; in mpi_smp_completion() local
2741 t = ccb->task; in mpi_smp_completion()
2742 ts = &t->task_status; in mpi_smp_completion()
2748 status, tag, t); in mpi_smp_completion()
2750 if (unlikely(!t || !t->lldd_task || !t->dev)) in mpi_smp_completion()
2892 spin_lock_irqsave(&t->task_state_lock, flags); in mpi_smp_completion()
2893 t->task_state_flags &= ~SAS_TASK_STATE_PENDING; in mpi_smp_completion()
2894 t->task_state_flags |= SAS_TASK_STATE_DONE; in mpi_smp_completion()
2895 if (unlikely((t->task_state_flags & SAS_TASK_STATE_ABORTED))) { in mpi_smp_completion()
2896 spin_unlock_irqrestore(&t->task_state_lock, flags); in mpi_smp_completion()
2898 t, status, ts->resp, ts->stat); in mpi_smp_completion()
2901 spin_unlock_irqrestore(&t->task_state_lock, flags); in mpi_smp_completion()
3498 struct sas_task *t; in pm8001_mpi_task_abort_resp() local
3514 t = ccb->task; in pm8001_mpi_task_abort_resp()
3517 if (!t) { in pm8001_mpi_task_abort_resp()
3522 if (t->task_proto == SAS_PROTOCOL_INTERNAL_ABORT) in pm8001_mpi_task_abort_resp()
3525 ts = &t->task_status; in pm8001_mpi_task_abort_resp()
3540 spin_lock_irqsave(&t->task_state_lock, flags); in pm8001_mpi_task_abort_resp()
3541 t->task_state_flags &= ~SAS_TASK_STATE_PENDING; in pm8001_mpi_task_abort_resp()
3542 t->task_state_flags |= SAS_TASK_STATE_DONE; in pm8001_mpi_task_abort_resp()
3543 spin_unlock_irqrestore(&t->task_state_lock, flags); in pm8001_mpi_task_abort_resp()
3547 t->task_done(t); in pm8001_mpi_task_abort_resp()