Lines Matching refs:boardp
3575 #define ASC_NARROW_BOARD(boardp) (((boardp)->flags & ASC_IS_WIDE_BOARD) == 0) argument
3576 #define ASC_WIDE_BOARD(boardp) ((boardp)->flags & ASC_IS_WIDE_BOARD) argument
4324 asc_board_t *boardp; in advansys_proc_info() local
4362 boardp = ASC_BOARDP(shp); in advansys_proc_info()
4393 if (ASC_WIDE_BOARD(boardp)) { in advansys_proc_info()
4394 cp = boardp->prtbuf; in advansys_proc_info()
4411 cp = boardp->prtbuf; in advansys_proc_info()
4431 cp = boardp->prtbuf; in advansys_proc_info()
4453 cp = boardp->prtbuf; in advansys_proc_info()
4454 if (ASC_NARROW_BOARD(boardp)) { in advansys_proc_info()
4473 cp = boardp->prtbuf; in advansys_proc_info()
4490 cp = boardp->prtbuf; in advansys_proc_info()
4507 cp = boardp->prtbuf; in advansys_proc_info()
4526 cp = boardp->prtbuf; in advansys_proc_info()
4527 if (ASC_NARROW_BOARD(boardp)) { in advansys_proc_info()
4571 asc_board_t *boardp = NULL; in ASC_INITFUNC() local
4836 boardp = ASC_BOARDP(shp); in ASC_INITFUNC()
4837 memset(boardp, 0, sizeof(asc_board_t)); in ASC_INITFUNC()
4838 boardp->id = asc_board_count - 1; in ASC_INITFUNC()
4841 boardp->lock = SPIN_LOCK_UNLOCKED; in ASC_INITFUNC()
4856 boardp->flags |= ASC_IS_WIDE_BOARD; in ASC_INITFUNC()
4860 if (ASC_NARROW_BOARD(boardp)) { in ASC_INITFUNC()
4862 asc_dvc_varp = &boardp->dvc_var.asc_dvc_var; in ASC_INITFUNC()
4864 asc_dvc_varp->drv_ptr = boardp; in ASC_INITFUNC()
4865 asc_dvc_varp->cfg = &boardp->dvc_cfg.asc_dvc_cfg; in ASC_INITFUNC()
4871 adv_dvc_varp = &boardp->dvc_var.adv_dvc_var; in ASC_INITFUNC()
4872 adv_dvc_varp->drv_ptr = boardp; in ASC_INITFUNC()
4873 adv_dvc_varp->cfg = &boardp->dvc_cfg.adv_dvc_cfg; in ASC_INITFUNC()
4921 if ((boardp->ioremap_addr = in ASC_INITFUNC()
4926 boardp->id, pci_memory_address, iolen); in ASC_INITFUNC()
4932 (ulong) boardp->ioremap_addr); in ASC_INITFUNC()
4934 (boardp->ioremap_addr + in ASC_INITFUNC()
4945 boardp->ioport = iop; in ASC_INITFUNC()
4957 if ((boardp->prtbuf = in ASC_INITFUNC()
4961 boardp->id, ASC_PRTBUF_SIZE, GFP_ATOMIC); in ASC_INITFUNC()
4968 if (ASC_NARROW_BOARD(boardp)) { in ASC_INITFUNC()
5003 boardp->id, asc_dvc_varp->bus_type); in ASC_INITFUNC()
5028 if (ASC_NARROW_BOARD(boardp)) { in ASC_INITFUNC()
5042 boardp->id); in ASC_INITFUNC()
5047 boardp->id); in ASC_INITFUNC()
5052 boardp->id); in ASC_INITFUNC()
5057 boardp->id); in ASC_INITFUNC()
5062 boardp->id); in ASC_INITFUNC()
5067 boardp->id, ret); in ASC_INITFUNC()
5073 boardp->id, asc_dvc_varp->init_state, in ASC_INITFUNC()
5080 boardp->id, ret); in ASC_INITFUNC()
5085 boardp->id, adv_dvc_varp->err_code); in ASC_INITFUNC()
5091 kfree(boardp->prtbuf); in ASC_INITFUNC()
5102 if (ASC_NARROW_BOARD(boardp)) { in ASC_INITFUNC()
5109 boardp->init_tidmask |= in ASC_INITFUNC()
5115 ep = &boardp->eep_config.asc_eep; in ASC_INITFUNC()
5145 boardp->id); in ASC_INITFUNC()
5150 boardp->id); in ASC_INITFUNC()
5155 boardp->id); in ASC_INITFUNC()
5160 boardp->id); in ASC_INITFUNC()
5165 boardp->id); in ASC_INITFUNC()
5170 boardp->id, ret); in ASC_INITFUNC()
5176 boardp->id, asc_dvc_varp->init_state, in ASC_INITFUNC()
5179 kfree(boardp->prtbuf); in ASC_INITFUNC()
5203 ep_3550 = &boardp->eep_config.adv_3550_eep; in ASC_INITFUNC()
5225 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; in ASC_INITFUNC()
5252 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; in ASC_INITFUNC()
5282 boardp->init_tidmask |= in ASC_INITFUNC()
5297 if (ASC_NARROW_BOARD(boardp)) { in ASC_INITFUNC()
5302 boardp->asc_n_io_port = ASC_IOADR_GAP; in ASC_INITFUNC()
5318 boardp->asc_n_io_port = iolen; in ASC_INITFUNC()
5332 shp->n_io_port = boardp->asc_n_io_port <= 255 ? in ASC_INITFUNC()
5333 boardp->asc_n_io_port : 255; in ASC_INITFUNC()
5359 if (ASC_NARROW_BOARD(boardp)) { in ASC_INITFUNC()
5387 if (ASC_NARROW_BOARD(boardp)) { in ASC_INITFUNC()
5402 boardp->bios_signature); in ASC_INITFUNC()
5404 boardp->bios_version); in ASC_INITFUNC()
5406 boardp->bios_codeseg); in ASC_INITFUNC()
5408 boardp->bios_codelen); in ASC_INITFUNC()
5412 boardp->bios_signature, boardp->bios_version); in ASC_INITFUNC()
5416 boardp->bios_codeseg, boardp->bios_codelen); in ASC_INITFUNC()
5422 if (boardp->bios_signature == 0x55AA) { in ASC_INITFUNC()
5431 ((ulong) boardp->bios_codeseg << 4); in ASC_INITFUNC()
5451 (ulong) shp->io_port, boardp->asc_n_io_port); in ASC_INITFUNC()
5453 if (request_region(shp->io_port, boardp->asc_n_io_port, in ASC_INITFUNC()
5457 boardp->id, (ulong) shp->io_port, boardp->asc_n_io_port); in ASC_INITFUNC()
5459 kfree(boardp->prtbuf); in ASC_INITFUNC()
5466 request_region(shp->io_port, boardp->asc_n_io_port, "advansys"); in ASC_INITFUNC()
5472 if (ASC_NARROW_BOARD(boardp)) { in ASC_INITFUNC()
5480 boardp->id, shp->dma_channel, ret); in ASC_INITFUNC()
5481 release_region(shp->io_port, boardp->asc_n_io_port); in ASC_INITFUNC()
5483 kfree(boardp->prtbuf); in ASC_INITFUNC()
5507 "advansys", boardp)) != 0) && in ASC_INITFUNC()
5510 "advansys", boardp)) != 0)) in ASC_INITFUNC()
5515 boardp->id, shp->irq); in ASC_INITFUNC()
5519 boardp->id, shp->irq); in ASC_INITFUNC()
5523 boardp->id, shp->irq, ret); in ASC_INITFUNC()
5525 release_region(shp->io_port, boardp->asc_n_io_port); in ASC_INITFUNC()
5526 iounmap(boardp->ioremap_addr); in ASC_INITFUNC()
5531 kfree(boardp->prtbuf); in ASC_INITFUNC()
5541 if (ASC_NARROW_BOARD(boardp)) { in ASC_INITFUNC()
5549 boardp->id, asc_dvc_varp->init_state, in ASC_INITFUNC()
5600 boardp->adv_sgblkp = NULL; in ASC_INITFUNC()
5610 sgp->next_sgblkp = boardp->adv_sgblkp; in ASC_INITFUNC()
5611 boardp->adv_sgblkp = sgp; in ASC_INITFUNC()
5629 boardp->id); in ASC_INITFUNC()
5635 boardp->id); in ASC_INITFUNC()
5637 } else if (boardp->adv_sgblkp == NULL) { in ASC_INITFUNC()
5642 boardp->id); in ASC_INITFUNC()
5647 boardp->orig_carrp = carrp; in ASC_INITFUNC()
5653 boardp->orig_reqp = reqp; in ASC_INITFUNC()
5666 boardp->adv_reqp = &reqp[0]; in ASC_INITFUNC()
5687 boardp->id, warn_code, err_code); in ASC_INITFUNC()
5693 release_region(shp->io_port, boardp->asc_n_io_port); in ASC_INITFUNC()
5694 if (ASC_WIDE_BOARD(boardp)) { in ASC_INITFUNC()
5695 iounmap(boardp->ioremap_addr); in ASC_INITFUNC()
5696 if (boardp->orig_carrp) { in ASC_INITFUNC()
5697 kfree(boardp->orig_carrp); in ASC_INITFUNC()
5698 boardp->orig_carrp = NULL; in ASC_INITFUNC()
5700 if (boardp->orig_reqp) { in ASC_INITFUNC()
5701 kfree(boardp->orig_reqp); in ASC_INITFUNC()
5702 boardp->orig_reqp = boardp->adv_reqp = NULL; in ASC_INITFUNC()
5704 while ((sgp = boardp->adv_sgblkp) != NULL) in ASC_INITFUNC()
5706 boardp->adv_sgblkp = sgp->next_sgblkp; in ASC_INITFUNC()
5714 kfree(boardp->prtbuf); in ASC_INITFUNC()
5716 free_irq(shp->irq, boardp); in ASC_INITFUNC()
5744 asc_board_t *boardp; in advansys_release() local
5747 boardp = ASC_BOARDP(shp); in advansys_release()
5748 free_irq(shp->irq, boardp); in advansys_release()
5753 release_region(shp->io_port, boardp->asc_n_io_port); in advansys_release()
5754 if (ASC_WIDE_BOARD(boardp)) { in advansys_release()
5757 iounmap(boardp->ioremap_addr); in advansys_release()
5758 if (boardp->orig_carrp) { in advansys_release()
5759 kfree(boardp->orig_carrp); in advansys_release()
5760 boardp->orig_carrp = NULL; in advansys_release()
5762 if (boardp->orig_reqp) { in advansys_release()
5763 kfree(boardp->orig_reqp); in advansys_release()
5764 boardp->orig_reqp = boardp->adv_reqp = NULL; in advansys_release()
5766 while ((sgp = boardp->adv_sgblkp) != NULL) in advansys_release()
5768 boardp->adv_sgblkp = sgp->next_sgblkp; in advansys_release()
5773 ASC_ASSERT(boardp->prtbuf != NULL); in advansys_release()
5774 kfree(boardp->prtbuf); in advansys_release()
5794 asc_board_t *boardp; in advansys_info() local
5801 boardp = ASC_BOARDP(shp); in advansys_info()
5802 if (ASC_NARROW_BOARD(boardp)) { in advansys_info()
5803 asc_dvc_varp = &boardp->dvc_var.asc_dvc_var; in advansys_info()
5816 (ulong) shp->io_port + boardp->asc_n_io_port - 1, in advansys_info()
5833 boardp->id, asc_dvc_varp->bus_type); in advansys_info()
5840 (ulong) shp->io_port + boardp->asc_n_io_port - 1, in advansys_info()
5851 adv_dvc_varp = &boardp->dvc_var.adv_dvc_var; in advansys_info()
5887 asc_board_t *boardp; in advansys_queuecommand() local
5892 boardp = ASC_BOARDP(shp); in advansys_queuecommand()
5902 spin_lock_irqsave(&boardp->lock, flags); in advansys_queuecommand()
5907 if (boardp->flags & ASC_HOST_IN_RESET) { in advansys_queuecommand()
5918 asc_enqueue(&boardp->done, scp, ASC_BACK); in advansys_queuecommand()
5919 spin_unlock_irqrestore(&boardp->lock, flags); in advansys_queuecommand()
5926 if (!ASC_QUEUE_EMPTY(&boardp->waiting)) { in advansys_queuecommand()
5929 asc_execute_queue(&boardp->waiting); in advansys_queuecommand()
5953 asc_enqueue(&boardp->waiting, scp, ASC_BACK); in advansys_queuecommand()
5957 done_scp = asc_dequeue_list(&boardp->done, NULL, ASC_TID_ALL); in advansys_queuecommand()
5963 spin_unlock_irqrestore(&boardp->lock, flags); in advansys_queuecommand()
5988 asc_board_t *boardp; in advansys_reset() local
6010 boardp = ASC_BOARDP(shp); in advansys_reset()
6013 boardp->id); in advansys_reset()
6017 spin_lock_irqsave(&boardp->lock, flags); in advansys_reset()
6018 if (boardp->flags & ASC_HOST_IN_RESET) { in advansys_reset()
6019 spin_unlock_irqrestore(&boardp->lock, flags); in advansys_reset()
6022 boardp->flags |= ASC_HOST_IN_RESET; in advansys_reset()
6023 spin_unlock_irqrestore(&boardp->lock, flags); in advansys_reset()
6032 if (ASC_NARROW_BOARD(boardp)) { in advansys_reset()
6036 asc_dvc_varp = &boardp->dvc_var.asc_dvc_var; in advansys_reset()
6048 boardp->id, asc_dvc_varp->err_code); in advansys_reset()
6053 boardp->id, status); in advansys_reset()
6057 boardp->id); in advansys_reset()
6065 spin_lock_irqsave(&boardp->lock, flags); in advansys_reset()
6074 adv_dvc_varp = &boardp->dvc_var.adv_dvc_var; in advansys_reset()
6083 boardp->id); in advansys_reset()
6088 boardp->id); in advansys_reset()
6096 spin_lock_irqsave(&boardp->lock, flags); in advansys_reset()
6106 done_scp = asc_dequeue_list(&boardp->done, &last_scp, ASC_TID_ALL); in advansys_reset()
6114 done_scp = asc_dequeue_list(&boardp->active, &last_scp, ASC_TID_ALL); in advansys_reset()
6122 &boardp->active, &new_last_scp, ASC_TID_ALL); in advansys_reset()
6137 done_scp = asc_dequeue_list(&boardp->waiting, &last_scp, ASC_TID_ALL); in advansys_reset()
6145 &boardp->waiting, &new_last_scp, ASC_TID_ALL); in advansys_reset()
6156 boardp->last_reset = jiffies; in advansys_reset()
6159 boardp->flags &= ~ASC_HOST_IN_RESET; in advansys_reset()
6162 spin_unlock_irqrestore(&boardp->lock, flags); in advansys_reset()
6197 asc_board_t *boardp; in advansys_biosparam() local
6201 boardp = ASC_BOARDP(dp->device->host); in advansys_biosparam()
6202 if (ASC_NARROW_BOARD(boardp)) { in advansys_biosparam()
6203 if ((boardp->dvc_var.asc_dvc_var.dvc_cntl & in advansys_biosparam()
6212 if ((boardp->dvc_var.adv_dvc_var.bios_ctrl & in advansys_biosparam()
6335 asc_board_t *boardp; in advansys_interrupt() local
6346 boardp = ASC_BOARDP(asc_host[i]); in advansys_interrupt()
6348 i, (ulong) boardp); in advansys_interrupt()
6349 spin_lock_irqsave(&boardp->lock, flags); in advansys_interrupt()
6350 if (ASC_NARROW_BOARD(boardp)) { in advansys_interrupt()
6357 AscISR(&boardp->dvc_var.asc_dvc_var); in advansys_interrupt()
6364 if (AdvISR(&boardp->dvc_var.adv_dvc_var)) { in advansys_interrupt()
6375 if ((boardp->flags & ASC_HOST_IN_RESET) == 0) { in advansys_interrupt()
6380 if (!ASC_QUEUE_EMPTY(&boardp->waiting)) { in advansys_interrupt()
6382 asc_execute_queue(&boardp->waiting); in advansys_interrupt()
6393 done_scp = asc_dequeue_list(&boardp->done, &last_scp, in advansys_interrupt()
6398 &boardp->done, &new_last_scp, ASC_TID_ALL); in advansys_interrupt()
6405 spin_unlock_irqrestore(&boardp->lock, flags); in advansys_interrupt()
6428 asc_board_t *boardp; in advansys_select_queue_depths() local
6430 boardp = ASC_BOARDP(shp); in advansys_select_queue_depths()
6431 boardp->flags |= ASC_SELECT_QUEUE_DEPTHS; in advansys_select_queue_depths()
6440 boardp->device[device->id] = device; in advansys_select_queue_depths()
6441 if (ASC_NARROW_BOARD(boardp)) { in advansys_select_queue_depths()
6443 boardp->dvc_var.asc_dvc_var.max_dvc_qng[device->id]; in advansys_select_queue_depths()
6446 boardp->dvc_var.adv_dvc_var.max_dvc_qng; in advansys_select_queue_depths()
6528 asc_board_t *boardp; in asc_execute_scsi_cmnd() local
6538 boardp = ASC_BOARDP(scp->host); in asc_execute_scsi_cmnd()
6539 device = boardp->device[scp->target]; in asc_execute_scsi_cmnd()
6541 if (ASC_NARROW_BOARD(boardp)) { in asc_execute_scsi_cmnd()
6546 asc_dvc_varp = &boardp->dvc_var.asc_dvc_var; in asc_execute_scsi_cmnd()
6558 if (asc_build_req(boardp, scp) == ASC_ERROR) { in asc_execute_scsi_cmnd()
6574 boardp->reqcnt[scp->target]++; in asc_execute_scsi_cmnd()
6575 asc_enqueue(&boardp->active, scp, ASC_BACK); in asc_execute_scsi_cmnd()
6589 boardp->id, asc_dvc_varp->err_code); in asc_execute_scsi_cmnd()
6592 asc_enqueue(&boardp->done, scp, ASC_BACK); in asc_execute_scsi_cmnd()
6597 boardp->id, asc_dvc_varp->err_code); in asc_execute_scsi_cmnd()
6600 asc_enqueue(&boardp->done, scp, ASC_BACK); in asc_execute_scsi_cmnd()
6607 adv_dvc_varp = &boardp->dvc_var.adv_dvc_var; in asc_execute_scsi_cmnd()
6615 switch (adv_build_req(boardp, scp, &adv_scsiqp)) { in asc_execute_scsi_cmnd()
6654 boardp->reqcnt[scp->target]++; in asc_execute_scsi_cmnd()
6655 asc_enqueue(&boardp->active, scp, ASC_BACK); in asc_execute_scsi_cmnd()
6669 boardp->id, adv_dvc_varp->err_code); in asc_execute_scsi_cmnd()
6672 asc_enqueue(&boardp->done, scp, ASC_BACK); in asc_execute_scsi_cmnd()
6677 boardp->id, adv_dvc_varp->err_code); in asc_execute_scsi_cmnd()
6680 asc_enqueue(&boardp->done, scp, ASC_BACK); in asc_execute_scsi_cmnd()
6699 asc_build_req(asc_board_t *boardp, Scsi_Cmnd *scp) in asc_build_req() argument
6721 boardp->id, scp->cmd_len, ASC_MAX_CDB_LEN); in asc_build_req()
6723 asc_enqueue(&boardp->done, scp, ASC_BACK); in asc_build_req()
6745 if ((boardp->dvc_var.asc_dvc_var.cur_dvc_qng[scp->target] > 0) && in asc_build_req()
6746 (boardp->reqcnt[scp->target] % 255) == 0) { in asc_build_req()
6778 boardp->id, scp->use_sg, scp->host->sg_tablesize); in asc_build_req()
6780 asc_enqueue(&boardp->done, scp, ASC_BACK); in asc_build_req()
6829 adv_build_req(asc_board_t *boardp, Scsi_Cmnd *scp, in adv_build_req() argument
6841 if (boardp->adv_reqp == NULL) { in adv_build_req()
6846 reqp = boardp->adv_reqp; in adv_build_req()
6847 boardp->adv_reqp = reqp->next_reqp; in adv_build_req()
6883 boardp->id, scp->cmd_len, ADV_MAX_CDB_LEN); in adv_build_req()
6885 asc_enqueue(&boardp->done, scp, ASC_BACK); in adv_build_req()
6929 boardp->id, scp->use_sg, scp->host->sg_tablesize); in adv_build_req()
6931 asc_enqueue(&boardp->done, scp, ASC_BACK); in adv_build_req()
6937 reqp->next_reqp = boardp->adv_reqp; in adv_build_req()
6938 boardp->adv_reqp = reqp; in adv_build_req()
6943 if ((ret = adv_get_sglist(boardp, reqp, scp)) != ADV_SUCCESS) { in adv_build_req()
6948 reqp->next_reqp = boardp->adv_reqp; in adv_build_req()
6949 boardp->adv_reqp = reqp; in adv_build_req()
6979 adv_get_sglist(asc_board_t *boardp, adv_req_t *reqp, Scsi_Cmnd *scp) in adv_get_sglist() argument
7002 if ((sgblkp = boardp->adv_sgblkp) == NULL) { in adv_get_sglist()
7016 sgblkp->next_sgblkp = boardp->adv_sgblkp; in adv_get_sglist()
7017 boardp->adv_sgblkp = sgblkp; in adv_get_sglist()
7022 boardp->adv_sgblkp = sgblkp->next_sgblkp; in adv_get_sglist()
7091 asc_board_t *boardp; in asc_isr_callback() local
7138 boardp = ASC_BOARDP(shp); in asc_isr_callback()
7139 ASC_ASSERT(asc_dvc_varp == &boardp->dvc_var.asc_dvc_var); in asc_isr_callback()
7140 if (asc_rmqueue(&boardp->active, scp) == ASC_FALSE) { in asc_isr_callback()
7143 boardp->id, (ulong) scp); in asc_isr_callback()
7234 if ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(scp->target)) == 0 && in asc_isr_callback()
7237 boardp->init_tidmask |= ADV_TID_TO_TIDMASK(scp->target); in asc_isr_callback()
7246 asc_enqueue(&boardp->done, scp, ASC_BACK); in asc_isr_callback()
7259 asc_board_t *boardp; in adv_isr_callback() local
7333 boardp = ASC_BOARDP(shp); in adv_isr_callback()
7334 ASC_ASSERT(adv_dvc_varp == &boardp->dvc_var.adv_dvc_var); in adv_isr_callback()
7335 if (asc_rmqueue(&boardp->active, scp) == ASC_FALSE) { in adv_isr_callback()
7338 boardp->id, (ulong) scp); in adv_isr_callback()
7417 if ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(scp->target)) == 0 && in adv_isr_callback()
7420 boardp->init_tidmask |= ADV_TID_TO_TIDMASK(scp->target); in adv_isr_callback()
7429 asc_enqueue(&boardp->done, scp, ASC_BACK); in adv_isr_callback()
7440 sgblkp->next_sgblkp = boardp->adv_sgblkp; in adv_isr_callback()
7441 boardp->adv_sgblkp = sgblkp; in adv_isr_callback()
7448 reqp->next_reqp = boardp->adv_reqp; in adv_isr_callback()
7449 boardp->adv_reqp = reqp; in adv_isr_callback()
7798 asc_board_t *boardp; in asc_prt_board_devices() local
7805 boardp = ASC_BOARDP(shp); in asc_prt_board_devices()
7813 if (ASC_NARROW_BOARD(boardp)) { in asc_prt_board_devices()
7814 chip_scsi_id = boardp->dvc_cfg.asc_dvc_cfg.chip_scsi_id; in asc_prt_board_devices()
7816 chip_scsi_id = boardp->dvc_var.adv_dvc_var.chip_scsi_id; in asc_prt_board_devices()
7822 if (boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) { in asc_prt_board_devices()
7839 asc_board_t *boardp; in asc_prt_adv_bios() local
7845 boardp = ASC_BOARDP(shp); in asc_prt_adv_bios()
7856 if (boardp->bios_signature != 0x55AA) { in asc_prt_adv_bios()
7866 major = (boardp->bios_version >> 12) & 0xF; in asc_prt_adv_bios()
7867 minor = (boardp->bios_version >> 8) & 0xF; in asc_prt_adv_bios()
7868 letter = (boardp->bios_version & 0xFF); in asc_prt_adv_bios()
8006 asc_board_t *boardp; in asc_prt_asc_board_eeprom() local
8018 boardp = ASC_BOARDP(shp); in asc_prt_asc_board_eeprom()
8019 asc_dvc_varp = &boardp->dvc_var.asc_dvc_var; in asc_prt_asc_board_eeprom()
8020 ep = &boardp->eep_config.asc_eep; in asc_prt_asc_board_eeprom()
8135 asc_board_t *boardp; in asc_prt_adv_board_eeprom() local
8150 boardp = ASC_BOARDP(shp); in asc_prt_adv_board_eeprom()
8151 adv_dvc_varp = &boardp->dvc_var.adv_dvc_var; in asc_prt_adv_board_eeprom()
8154 ep_3550 = &boardp->eep_config.adv_3550_eep; in asc_prt_adv_board_eeprom()
8157 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; in asc_prt_adv_board_eeprom()
8160 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; in asc_prt_adv_board_eeprom()
8440 asc_board_t *boardp; in asc_prt_driver_conf() local
8447 boardp = ASC_BOARDP(shp); in asc_prt_driver_conf()
8476 boardp->flags, boardp->last_reset, jiffies, boardp->asc_n_io_port); in asc_prt_driver_conf()
8485 if (ASC_NARROW_BOARD(boardp)) { in asc_prt_driver_conf()
8486 chip_scsi_id = boardp->dvc_cfg.asc_dvc_cfg.chip_scsi_id; in asc_prt_driver_conf()
8488 chip_scsi_id = boardp->dvc_var.adv_dvc_var.chip_scsi_id; in asc_prt_driver_conf()
8491 if (boardp->flags & ASC_SELECT_QUEUE_DEPTHS) { in asc_prt_driver_conf()
8496 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_driver_conf()
8499 if (boardp->device[i] == NULL) { in asc_prt_driver_conf()
8503 i, boardp->device[i]->queue_depth); in asc_prt_driver_conf()
8527 asc_board_t *boardp; in asc_prt_asc_board_info() local
8537 boardp = ASC_BOARDP(shp); in asc_prt_asc_board_info()
8538 v = &boardp->dvc_var.asc_dvc_var; in asc_prt_asc_board_info()
8539 c = &boardp->dvc_cfg.asc_dvc_cfg; in asc_prt_asc_board_info()
8570 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_asc_board_info()
8586 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_asc_board_info()
8601 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_asc_board_info()
8616 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_asc_board_info()
8619 if (boardp->queue_full & ADV_TID_TO_TIDMASK(i)) { in asc_prt_asc_board_info()
8621 i, boardp->queue_full_cnt[i]); in asc_prt_asc_board_info()
8635 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_asc_board_info()
8649 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0) || in asc_prt_asc_board_info()
8657 if ((boardp->sdtr_data[i] & ASC_SYN_MAX_OFFSET) == 0) in asc_prt_asc_board_info()
8664 (boardp->sdtr_data[i] >> 4) & (v->max_sdtr_index - 1); in asc_prt_asc_board_info()
8674 boardp->sdtr_data[i] & ASC_SYN_MAX_OFFSET); in asc_prt_asc_board_info()
8712 asc_board_t *boardp; in asc_prt_adv_board_info() local
8729 boardp = ASC_BOARDP(shp); in asc_prt_adv_board_info()
8730 v = &boardp->dvc_var.adv_dvc_var; in asc_prt_adv_board_info()
8731 c = &boardp->dvc_cfg.adv_dvc_cfg; in asc_prt_adv_board_info()
8761 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_adv_board_info()
8777 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_adv_board_info()
8794 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_adv_board_info()
8812 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_adv_board_info()
8829 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_adv_board_info()
8856 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_adv_board_info()
8875 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0) || in asc_prt_adv_board_info()
9285 asc_board_t *boardp; in asc_prt_board_stats() local
9290 boardp = ASC_BOARDP(shp); in asc_prt_board_stats()
9291 s = &boardp->asc_stats; in asc_prt_board_stats()
9391 asc_board_t *boardp; in asc_prt_target_stats() local
9398 boardp = ASC_BOARDP(shp); in asc_prt_target_stats()
9399 s = &boardp->asc_stats; in asc_prt_target_stats()
9404 if (ASC_NARROW_BOARD(boardp)) { in asc_prt_target_stats()
9405 chip_scsi_id = boardp->dvc_cfg.asc_dvc_cfg.chip_scsi_id; in asc_prt_target_stats()
9407 chip_scsi_id = boardp->dvc_var.adv_dvc_var.chip_scsi_id; in asc_prt_target_stats()
9411 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(tgt_id)) == 0)) { in asc_prt_target_stats()
9458 asc_board_t *boardp; in asc_prt_scsi_host() local
9460 boardp = ASC_BOARDP(s); in asc_prt_scsi_host()
9491 if (ASC_NARROW_BOARD(boardp)) { in asc_prt_scsi_host()
10270 asc_board_t *boardp; in AscIsrChipHalted() local
10273 boardp = asc_dvc->drv_ptr; in AscIsrChipHalted()
10294 boardp->sdtr_data[tid_no] = 0; in AscIsrChipHalted()
10301 boardp->sdtr_data[tid_no] = asyn_sdtr; in AscIsrChipHalted()
10338 boardp->sdtr_data[tid_no] = asyn_sdtr; in AscIsrChipHalted()
10357 boardp->sdtr_data[tid_no] = sdtr_data; in AscIsrChipHalted()
10368 boardp->sdtr_data[tid_no] = sdtr_data; in AscIsrChipHalted()
10472 boardp->sdtr_data[tid_no] = asyn_sdtr; in AscIsrChipHalted()
10511 boardp->queue_full |= target_id; in AscIsrChipHalted()
10512 boardp->queue_full_cnt[tid_no] = cur_dvc_qng; in AscIsrChipHalted()