Lines Matching refs:platform_data
257 ahc->platform_data->host->host_no, in ahc_print_path()
483 scb->platform_data->xfer_len += len; in ahc_linux_map_seg()
532 if (ahc->platform_data->qfrozen == 0) { in ahc_linux_queue_lck()
554 return &ahc->platform_data->starget[target_offset]; in DEF_SCSI_QCMD()
1091 ahc->platform_data->host = host; in ahc_linux_register_host()
1096 host->irq = ahc->platform_data->irq; in ahc_linux_register_host()
1203 ahc->platform_data = in ahc_platform_alloc()
1205 if (ahc->platform_data == NULL) in ahc_platform_alloc()
1207 ahc->platform_data->irq = AHC_LINUX_NOIRQ; in ahc_platform_alloc()
1223 if (ahc->platform_data != NULL) { in ahc_platform_free()
1226 starget = ahc->platform_data->starget[i]; in ahc_platform_free()
1228 ahc->platform_data->starget[i] = NULL; in ahc_platform_free()
1232 if (ahc->platform_data->irq != AHC_LINUX_NOIRQ) in ahc_platform_free()
1233 free_irq(ahc->platform_data->irq, ahc); in ahc_platform_free()
1240 release_mem_region(ahc->platform_data->mem_busaddr, in ahc_platform_free()
1244 if (ahc->platform_data->host) in ahc_platform_free()
1245 scsi_host_put(ahc->platform_data->host); in ahc_platform_free()
1247 kfree(ahc->platform_data); in ahc_platform_free()
1425 if (ahc->platform_data->qfrozen != 0) in ahc_linux_run_command()
1460 scb->platform_data->dev = dev; in ahc_linux_run_command()
1505 scb->platform_data->xfer_len = 0; in ahc_linux_run_command()
1632 starget = ahc->platform_data->starget[target_offset]; in ahc_send_async()
1660 scsi_report_device_reset(ahc->platform_data->host, in ahc_send_async()
1665 if (ahc->platform_data->host != NULL) { in ahc_send_async()
1666 scsi_report_bus_reset(ahc->platform_data->host, in ahc_send_async()
1704 dev = scb->platform_data->dev; in ahc_done()
1792 if (ahc->platform_data->eh_done) in ahc_done()
1793 complete(ahc->platform_data->eh_done); in ahc_done()
2004 ahc->platform_data->qfrozen++; in ahc_linux_freeze_simq()
2005 if (ahc->platform_data->qfrozen == 1) { in ahc_linux_freeze_simq()
2006 scsi_block_requests(ahc->platform_data->host); in ahc_linux_freeze_simq()
2024 if (ahc->platform_data->qfrozen > 0) in ahc_linux_release_simq()
2025 ahc->platform_data->qfrozen--; in ahc_linux_release_simq()
2026 if (ahc->platform_data->qfrozen == 0) in ahc_linux_release_simq()
2036 scsi_unblock_requests(ahc->platform_data->host); in ahc_linux_release_simq()
2306 ahc->platform_data->eh_done = &done; in ahc_linux_queue_recovery_cmd()
2312 ahc->platform_data->eh_done = NULL; in ahc_linux_queue_recovery_cmd()