Lines Matching refs:slotp
1112 acc = softs->sync_ac.slotp->fib_acc_handle; in aac_shutdown()
1114 cc = (struct aac_close_command *)&softs->sync_ac.slotp->fibp->data[0]; in aac_shutdown()
1219 aac_send_command(struct aac_softstate *softs, struct aac_slot *slotp) in aac_send_command() argument
1232 (uint32_t)(slotp->fib_phyaddr & 0xfffffffful)); in aac_send_command()
1234 PCI_MEM_PUT32(softs, device, (uint32_t)(slotp->fib_phyaddr >> 32)); in aac_send_command()
1236 PCI_MEM_PUT32(softs, device, slotp->acp->fib_size); in aac_send_command()
1247 if (acp->slotp) { /* outstanding cmd */ in aac_end_io()
1249 aac_release_slot(softs, acp->slotp); in aac_end_io()
1250 acp->slotp = NULL; in aac_end_io()
1297 struct aac_slot *slotp; in aac_handle_io() local
1306 slotp = &softs->io_slot[index]; in aac_handle_io()
1307 ASSERT(slotp->index == index); in aac_handle_io()
1308 acp = slotp->acp; in aac_handle_io()
1310 if (acp == NULL || acp->slotp != slotp) { in aac_handle_io()
1317 (void) ddi_dma_sync(slotp->fib_dma_handle, 0, 0, DDI_DMA_SYNC_FORCPU); in aac_handle_io()
1319 if (aac_check_dma_handle(slotp->fib_dma_handle) == DDI_SUCCESS) { in aac_handle_io()
1328 state = ddi_get32(slotp->fib_acc_handle, in aac_handle_io()
1329 &slotp->fibp->Header.XferState); in aac_handle_io()
1334 ddi_put32(slotp->fib_acc_handle, in aac_handle_io()
1335 &slotp->fibp->Header.XferState, in aac_handle_io()
1337 ddi_put32(slotp->fib_acc_handle, in aac_handle_io()
1338 (void *)&slotp->fibp->data[0], ST_OK); in aac_handle_io()
1822 struct aac_slot *slotp = acp->slotp; in aac_ld_complete() local
1835 resp = (struct aac_blockread_response *)&slotp->fibp->data[0]; in aac_ld_complete()
1836 status = ddi_get32(slotp->fib_acc_handle, &resp->Status); in aac_ld_complete()
1851 ddi_acc_handle_t acc = acp->slotp->fib_acc_handle; in aac_pd_complete()
1852 struct aac_fib *fibp = acp->slotp->fibp; in aac_pd_complete()
2028 struct aac_slot *slotp = acp->slotp; in aac_ioctl_complete() local
2039 acp->fib_size = ddi_get16(slotp->fib_acc_handle, in aac_ioctl_complete()
2040 &slotp->fibp->Header.Size); in aac_ioctl_complete()
2043 ddi_rep_get8(slotp->fib_acc_handle, (uint8_t *)acp->fibp, in aac_ioctl_complete()
2044 (uint8_t *)slotp->fibp, acp->fib_size, DDI_DEV_AUTOINCR); in aac_ioctl_complete()
2063 struct aac_slot *slotp = acp->slotp; in aac_synccache_complete() local
2064 ddi_acc_handle_t acc = slotp->fib_acc_handle; in aac_synccache_complete()
2072 resp = (struct aac_synchronize_reply *)&slotp->fibp->data[0]; in aac_synccache_complete()
2082 struct aac_slot *slotp = acp->slotp; in aac_startstop_complete() local
2083 ddi_acc_handle_t acc = slotp->fib_acc_handle; in aac_startstop_complete()
2091 resp = (struct aac_Container_resp *)&slotp->fibp->data[0]; in aac_startstop_complete()
2482 ddi_acc_handle_t acc = softs->sync_ac.slotp->fib_acc_handle; in aac_fsa_rev()
2508 acc = acp->slotp->fib_acc_handle; in aac_get_adapter_info()
2509 fibp = acp->slotp->fibp; in aac_get_adapter_info()
2614 acc = acp->slotp->fib_acc_handle; in aac_get_bus_info()
2615 fibp = acp->slotp->fibp; in aac_get_bus_info()
2717 acc = acp->slotp->fib_acc_handle; in aac_handle_adapter_config_issues()
2718 fibp = acp->slotp->fibp; in aac_handle_adapter_config_issues()
3124 (void) ddi_dma_sync(acp->slotp->fib_dma_handle, 0, fibsize, in aac_sync_fib()
3344 ddi_acc_handle_t acc = softs->sync_ac.slotp->fib_acc_handle; in aac_get_mntinfo()
3345 struct aac_fib *fibp = softs->sync_ac.slotp->fibp; in aac_get_mntinfo()
3375 acc = softs->sync_ac.slotp->fib_acc_handle; in aac_get_container_count()
3398 ddi_acc_handle_t acc = softs->sync_ac.slotp->fib_acc_handle; in aac_get_container_uid()
3400 &softs->sync_ac.slotp->fibp->data[0]; in aac_get_container_uid()
3423 ddi_acc_handle_t acc = softs->sync_ac.slotp->fib_acc_handle; in aac_get_container_info()
3458 acc = softs->sync_ac.slotp->fib_acc_handle; in aac_probe_container()
4284 if (acp->slotp) { /* outstanding cmd */ in aac_abort_iocmd()
4492 acc = softs->sync_ac.slotp->fib_acc_handle; in aac_reset_adapter()
4494 fibp = softs->sync_ac.slotp->fibp; in aac_reset_adapter()
5128 ASSERT(acp->slotp == NULL); in aac_tran_destroy_pkt()
5555 struct aac_slot *slotp = acp->slotp; in aac_cmd_fib_header() local
5556 ddi_acc_handle_t acc = slotp->fib_acc_handle; in aac_cmd_fib_header()
5557 struct aac_fib *fibp = slotp->fibp; in aac_cmd_fib_header()
5578 ddi_put32(acc, &fibp->Header.SenderFibAddress, (slotp->index << 2)); in aac_cmd_fib_header()
5579 ddi_put32(acc, &fibp->Header.ReceiverFibAddress, slotp->fib_phyaddr); in aac_cmd_fib_header()
5589 ddi_acc_handle_t acc = acp->slotp->fib_acc_handle; in aac_cmd_fib_rawio()
5590 struct aac_raw_io *io = (struct aac_raw_io *)&acp->slotp->fibp->data[0]; in aac_cmd_fib_rawio()
5629 ddi_acc_handle_t acc = acp->slotp->fib_acc_handle; in aac_cmd_fib_brw64()
5631 &acp->slotp->fibp->data[0]; in aac_cmd_fib_brw64()
5669 ddi_acc_handle_t acc = acp->slotp->fib_acc_handle; in aac_cmd_fib_brw()
5671 &acp->slotp->fibp->data[0]; in aac_cmd_fib_brw()
5718 struct aac_slot *slotp = acp->slotp; in aac_cmd_fib_copy() local
5719 struct aac_fib *fibp = slotp->fibp; in aac_cmd_fib_copy()
5720 ddi_acc_handle_t acc = slotp->fib_acc_handle; in aac_cmd_fib_copy()
5725 ddi_put32(acc, &fibp->Header.ReceiverFibAddress, slotp->fib_phyaddr); in aac_cmd_fib_copy()
5726 ddi_put32(acc, &fibp->Header.SenderFibAddress, slotp->index << 2); in aac_cmd_fib_copy()
5732 ddi_acc_handle_t acc = acp->slotp->fib_acc_handle; in aac_cmd_fib_sync()
5734 (struct aac_synchronize_command *)&acp->slotp->fibp->data[0]; in aac_cmd_fib_sync()
5752 ddi_acc_handle_t acc = acp->slotp->fib_acc_handle; in aac_cmd_fib_startstop()
5754 (struct aac_Container *)&acp->slotp->fibp->data[0]; in aac_cmd_fib_startstop()
5776 ddi_acc_handle_t acc = acp->slotp->fib_acc_handle; in aac_cmd_fib_srb()
5777 struct aac_srb *srb = (struct aac_srb *)&acp->slotp->fibp->data[0]; in aac_cmd_fib_srb()
5809 ddi_acc_handle_t acc = acp->slotp->fib_acc_handle; in aac_cmd_fib_scsi32()
5810 struct aac_srb *srb = (struct aac_srb *)&acp->slotp->fibp->data[0]; in aac_cmd_fib_scsi32()
5836 ddi_acc_handle_t acc = acp->slotp->fib_acc_handle; in aac_cmd_fib_scsi64()
5837 struct aac_srb *srb = (struct aac_srb *)&acp->slotp->fibp->data[0]; in aac_cmd_fib_scsi64()
5865 struct aac_slot *slotp; in aac_cmd_slot_bind() local
5867 if (slotp = aac_get_slot(softs)) { in aac_cmd_slot_bind()
5868 acp->slotp = slotp; in aac_cmd_slot_bind()
5869 slotp->acp = acp; in aac_cmd_slot_bind()
5871 (void) ddi_dma_sync(slotp->fib_dma_handle, 0, 0, in aac_cmd_slot_bind()
5905 struct aac_slot *slotp; in aac_sync_fib_slot_bind() local
5907 while (softs->sync_ac.slotp) in aac_sync_fib_slot_bind()
5910 if (slotp = aac_get_slot(softs)) { in aac_sync_fib_slot_bind()
5911 ASSERT(acp->slotp == NULL); in aac_sync_fib_slot_bind()
5913 acp->slotp = slotp; in aac_sync_fib_slot_bind()
5914 slotp->acp = acp; in aac_sync_fib_slot_bind()
5923 ASSERT(acp->slotp); in aac_sync_fib_slot_release()
5925 aac_release_slot(softs, acp->slotp); in aac_sync_fib_slot_release()
5926 acp->slotp->acp = NULL; in aac_sync_fib_slot_release()
5927 acp->slotp = NULL; in aac_sync_fib_slot_release()
5935 struct aac_slot *slotp = acp->slotp; in aac_start_io() local
5952 AACDB_PRINT_FIB(softs, slotp); in aac_start_io()
5955 rval = aac_send_command(softs, slotp); in aac_start_io()
5962 slotp->fib_phyaddr, acp->fib_size); in aac_start_io()
5965 if (aac_check_dma_handle(slotp->fib_dma_handle) != DDI_SUCCESS) in aac_start_io()
6070 aac_alloc_fib(struct aac_softstate *softs, struct aac_slot *slotp) in aac_alloc_fib() argument
6082 &slotp->fib_dma_handle) != DDI_SUCCESS) { in aac_alloc_fib()
6088 slotp->fib_dma_handle, in aac_alloc_fib()
6094 (caddr_t *)&slotp->fibp, in aac_alloc_fib()
6096 &slotp->fib_acc_handle) != DDI_SUCCESS) { in aac_alloc_fib()
6102 slotp->fib_dma_handle, in aac_alloc_fib()
6104 (caddr_t)slotp->fibp, in aac_alloc_fib()
6117 if (aac_check_dma_handle(slotp->fib_dma_handle) != DDI_SUCCESS) { in aac_alloc_fib()
6123 if (aac_check_acc_handle(slotp->fib_acc_handle) != DDI_SUCCESS) { in aac_alloc_fib()
6128 slotp->fib_phyaddr = cookie.dmac_laddress; in aac_alloc_fib()
6132 if (slotp->fib_acc_handle) { in aac_alloc_fib()
6133 ddi_dma_mem_free(&slotp->fib_acc_handle); in aac_alloc_fib()
6134 slotp->fib_acc_handle = NULL; in aac_alloc_fib()
6136 if (slotp->fib_dma_handle) { in aac_alloc_fib()
6137 ddi_dma_free_handle(&slotp->fib_dma_handle); in aac_alloc_fib()
6138 slotp->fib_dma_handle = NULL; in aac_alloc_fib()
6144 aac_free_fib(struct aac_slot *slotp) in aac_free_fib() argument
6146 (void) ddi_dma_unbind_handle(slotp->fib_dma_handle); in aac_free_fib()
6147 ddi_dma_mem_free(&slotp->fib_acc_handle); in aac_free_fib()
6148 slotp->fib_acc_handle = NULL; in aac_free_fib()
6149 ddi_dma_free_handle(&slotp->fib_dma_handle); in aac_free_fib()
6150 slotp->fib_dma_handle = NULL; in aac_free_fib()
6151 slotp->fib_phyaddr = 0; in aac_free_fib()
6158 struct aac_slot *slotp; in aac_alloc_fibs() local
6162 slotp = &(softs->io_slot[i]); in aac_alloc_fibs()
6163 if (slotp->fib_phyaddr) in aac_alloc_fibs()
6165 if (aac_alloc_fib(softs, slotp) != AACOK) in aac_alloc_fibs()
6169 aac_release_slot(softs, slotp); in aac_alloc_fibs()
6177 struct aac_slot *slotp; in aac_destroy_fibs() local
6179 while ((slotp = softs->free_io_slot_head) != NULL) { in aac_destroy_fibs()
6180 ASSERT(slotp->fib_phyaddr); in aac_destroy_fibs()
6181 softs->free_io_slot_head = slotp->next; in aac_destroy_fibs()
6182 aac_free_fib(slotp); in aac_destroy_fibs()
6183 ASSERT(slotp->index == (slotp - softs->io_slot)); in aac_destroy_fibs()
6222 struct aac_slot *slotp; in aac_get_slot() local
6224 if ((slotp = softs->free_io_slot_head) != NULL) { in aac_get_slot()
6225 softs->free_io_slot_head = slotp->next; in aac_get_slot()
6226 slotp->next = NULL; in aac_get_slot()
6228 return (slotp); in aac_get_slot()
6232 aac_release_slot(struct aac_softstate *softs, struct aac_slot *slotp) in aac_release_slot() argument
6234 ASSERT((slotp->index >= 0) && (slotp->index < softs->total_slots)); in aac_release_slot()
6235 ASSERT(slotp == &softs->io_slot[slotp->index]); in aac_release_slot()
6237 slotp->acp = NULL; in aac_release_slot()
6238 slotp->next = softs->free_io_slot_head; in aac_release_slot()
6239 softs->free_io_slot_head = slotp; in aac_release_slot()
6588 AACDB_PRINT_FIB(softs, acp->slotp); in aac_cmd_timeout()
6633 acc = softs->sync_ac.slotp->fib_acc_handle; in aac_sync_tick()
6635 ddi_put32(acc, (void *)&softs->sync_ac.slotp->fibp->data[0], in aac_sync_tick()
8231 aac_print_fib(struct aac_softstate *softs, struct aac_slot *slotp) in aac_print_fib() argument
8233 struct aac_cmd *acp = slotp->acp; in aac_print_fib()
8234 struct aac_fib *fibp = slotp->fibp; in aac_print_fib()
8235 ddi_acc_handle_t acc = slotp->fib_acc_handle; in aac_print_fib()