Lines Matching refs:ccb
53 struct pm8001_ccb_info *ccb; in pm8001_find_tag() local
54 ccb = task->lldd_task; in pm8001_find_tag()
55 *tag = ccb->ccb_tag; in pm8001_find_tag()
303 struct pm8001_ccb_info *ccb) in pm8001_task_prep_smp() argument
305 return PM8001_CHIP_DISP->smp_req(pm8001_ha, ccb); in pm8001_task_prep_smp()
326 struct pm8001_ccb_info *ccb) in pm8001_task_prep_ata() argument
328 return PM8001_CHIP_DISP->sata_req(pm8001_ha, ccb); in pm8001_task_prep_ata()
338 struct pm8001_ccb_info *ccb) in pm8001_task_prep_internal_abort() argument
340 return PM8001_CHIP_DISP->task_abort(pm8001_ha, ccb); in pm8001_task_prep_internal_abort()
350 struct pm8001_ccb_info *ccb, struct sas_tmf_task *tmf) in pm8001_task_prep_ssp_tm() argument
352 return PM8001_CHIP_DISP->ssp_tm_req(pm8001_ha, ccb, tmf); in pm8001_task_prep_ssp_tm()
361 struct pm8001_ccb_info *ccb) in pm8001_task_prep_ssp() argument
363 return PM8001_CHIP_DISP->ssp_io_req(pm8001_ha, ccb); in pm8001_task_prep_ssp()
388 struct pm8001_ccb_info *ccb) in pm8001_deliver_command() argument
390 struct sas_task *task = ccb->task; in pm8001_deliver_command()
397 return pm8001_task_prep_smp(pm8001_ha, ccb); in pm8001_deliver_command()
400 return pm8001_task_prep_ssp_tm(pm8001_ha, ccb, tmf); in pm8001_deliver_command()
401 return pm8001_task_prep_ssp(pm8001_ha, ccb); in pm8001_deliver_command()
404 return pm8001_task_prep_ata(pm8001_ha, ccb); in pm8001_deliver_command()
406 return pm8001_task_prep_internal_abort(pm8001_ha, ccb); in pm8001_deliver_command()
430 struct pm8001_ccb_info *ccb; in pm8001_queue_command() local
472 ccb = pm8001_ccb_alloc(pm8001_ha, pm8001_dev, task); in pm8001_queue_command()
473 if (!ccb) { in pm8001_queue_command()
491 task->lldd_task = ccb; in pm8001_queue_command()
492 ccb->n_elem = n_elem; in pm8001_queue_command()
496 rc = pm8001_deliver_command(pm8001_ha, ccb); in pm8001_queue_command()
503 pm8001_ccb_free(pm8001_ha, ccb); in pm8001_queue_command()
520 struct pm8001_ccb_info *ccb) in pm8001_ccb_task_free() argument
522 struct sas_task *task = ccb->task; in pm8001_ccb_task_free()
529 if (!sas_protocol_ata(task->task_proto) && ccb->n_elem) in pm8001_ccb_task_free()
552 pm8001_dev = ccb->device; in pm8001_ccb_task_free()
555 ccb->ccb_tag, 0 /* ctlr_opcode not known */, in pm8001_ccb_task_free()
561 pm8001_ccb_free(pm8001_ha, ccb); in pm8001_ccb_task_free()
755 struct pm8001_ccb_info *ccb = &pm8001_ha->ccb_info[i]; in pm8001_open_reject_retry() local
757 if (ccb->ccb_tag == PM8001_INVALID_TAG) in pm8001_open_reject_retry()
760 pm8001_dev = ccb->device; in pm8001_open_reject_retry()
771 task = ccb->task; in pm8001_open_reject_retry()
790 pm8001_ccb_task_free(pm8001_ha, ccb); in pm8001_open_reject_retry()
794 pm8001_ccb_task_free(pm8001_ha, ccb); in pm8001_open_reject_retry()
1175 struct pm8001_ccb_info *ccb = task->lldd_task; in pm8001_tmf_aborted() local
1177 if (ccb) in pm8001_tmf_aborted()
1178 ccb->task = NULL; in pm8001_tmf_aborted()