Lines Matching refs:platform_data
257 ahc->platform_data->host->host_no, in ahc_print_path()
482 scb->platform_data->xfer_len += len; in ahc_linux_map_seg()
531 if (ahc->platform_data->qfrozen == 0) { in ahc_linux_queue_lck()
553 return &ahc->platform_data->starget[target_offset]; in DEF_SCSI_QCMD()
1083 ahc->platform_data->host = host; in ahc_linux_register_host()
1088 host->irq = ahc->platform_data->irq; in ahc_linux_register_host()
1195 ahc->platform_data = in ahc_platform_alloc()
1197 if (ahc->platform_data == NULL) in ahc_platform_alloc()
1199 ahc->platform_data->irq = AHC_LINUX_NOIRQ; in ahc_platform_alloc()
1215 if (ahc->platform_data != NULL) { in ahc_platform_free()
1218 starget = ahc->platform_data->starget[i]; in ahc_platform_free()
1220 ahc->platform_data->starget[i] = NULL; in ahc_platform_free()
1224 if (ahc->platform_data->irq != AHC_LINUX_NOIRQ) in ahc_platform_free()
1225 free_irq(ahc->platform_data->irq, ahc); in ahc_platform_free()
1232 release_mem_region(ahc->platform_data->mem_busaddr, in ahc_platform_free()
1236 if (ahc->platform_data->host) in ahc_platform_free()
1237 scsi_host_put(ahc->platform_data->host); in ahc_platform_free()
1239 kfree(ahc->platform_data); in ahc_platform_free()
1417 if (ahc->platform_data->qfrozen != 0) in ahc_linux_run_command()
1452 scb->platform_data->dev = dev; in ahc_linux_run_command()
1497 scb->platform_data->xfer_len = 0; in ahc_linux_run_command()
1624 starget = ahc->platform_data->starget[target_offset]; in ahc_send_async()
1652 scsi_report_device_reset(ahc->platform_data->host, in ahc_send_async()
1657 if (ahc->platform_data->host != NULL) { in ahc_send_async()
1658 scsi_report_bus_reset(ahc->platform_data->host, in ahc_send_async()
1696 dev = scb->platform_data->dev; in ahc_done()
1784 if (ahc->platform_data->eh_done) in ahc_done()
1785 complete(ahc->platform_data->eh_done); in ahc_done()
1996 ahc->platform_data->qfrozen++; in ahc_linux_freeze_simq()
1997 if (ahc->platform_data->qfrozen == 1) { in ahc_linux_freeze_simq()
1998 scsi_block_requests(ahc->platform_data->host); in ahc_linux_freeze_simq()
2016 if (ahc->platform_data->qfrozen > 0) in ahc_linux_release_simq()
2017 ahc->platform_data->qfrozen--; in ahc_linux_release_simq()
2018 if (ahc->platform_data->qfrozen == 0) in ahc_linux_release_simq()
2028 scsi_unblock_requests(ahc->platform_data->host); in ahc_linux_release_simq()
2293 ahc->platform_data->eh_done = &done; in ahc_linux_queue_recovery_cmd()
2299 ahc->platform_data->eh_done = NULL; in ahc_linux_queue_recovery_cmd()