Lines Matching refs:adv_dvc_varp

4573     ADV_DVC_VAR         *adv_dvc_varp = NULL;  in ASC_INITFUNC()  local
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()
4874 adv_dvc_varp->isr_callback = adv_isr_callback; in ASC_INITFUNC()
4875 adv_dvc_varp->async_callback = adv_async_callback; in ASC_INITFUNC()
4880 adv_dvc_varp->chip_type = ADV_CHIP_ASC3550; in ASC_INITFUNC()
4884 adv_dvc_varp->chip_type = ADV_CHIP_ASC38C0800; in ASC_INITFUNC()
4888 adv_dvc_varp->chip_type = ADV_CHIP_ASC38C1600; in ASC_INITFUNC()
4903 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) in ASC_INITFUNC()
4906 } else if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800) in ASC_INITFUNC()
4933 adv_dvc_varp->iop_base = (AdvPortAddr) in ASC_INITFUNC()
4937 adv_dvc_varp->iop_base); in ASC_INITFUNC()
5014 shp->irq = adv_dvc_varp->irq_no = pci_devp->irq; in ASC_INITFUNC()
5015 adv_dvc_varp->cfg->pci_device_id = pci_devp->device; in ASC_INITFUNC()
5016 adv_dvc_varp->cfg->pci_slot_info = in ASC_INITFUNC()
5078 if ((ret = AdvInitGetConfig(adv_dvc_varp)) != 0) { in ASC_INITFUNC()
5082 if ((err_code = adv_dvc_varp->err_code) != 0) { in ASC_INITFUNC()
5085 boardp->id, adv_dvc_varp->err_code); in ASC_INITFUNC()
5201 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) in ASC_INITFUNC()
5205 ep_3550->adapter_scsi_id = adv_dvc_varp->chip_scsi_id; in ASC_INITFUNC()
5206 ep_3550->max_host_qng = adv_dvc_varp->max_host_qng; in ASC_INITFUNC()
5207 ep_3550->max_dvc_qng = adv_dvc_varp->max_dvc_qng; in ASC_INITFUNC()
5208 ep_3550->termination = adv_dvc_varp->cfg->termination; in ASC_INITFUNC()
5209 ep_3550->disc_enable = adv_dvc_varp->cfg->disc_enable; in ASC_INITFUNC()
5210 ep_3550->bios_ctrl = adv_dvc_varp->bios_ctrl; in ASC_INITFUNC()
5211 ep_3550->wdtr_able = adv_dvc_varp->wdtr_able; in ASC_INITFUNC()
5212 ep_3550->sdtr_able = adv_dvc_varp->sdtr_able; in ASC_INITFUNC()
5213 ep_3550->ultra_able = adv_dvc_varp->ultra_able; in ASC_INITFUNC()
5214 ep_3550->tagqng_able = adv_dvc_varp->tagqng_able; in ASC_INITFUNC()
5215 ep_3550->start_motor = adv_dvc_varp->start_motor; in ASC_INITFUNC()
5216 ep_3550->scsi_reset_delay = adv_dvc_varp->scsi_reset_wait; in ASC_INITFUNC()
5218 adv_dvc_varp->cfg->serial1; in ASC_INITFUNC()
5220 adv_dvc_varp->cfg->serial2; in ASC_INITFUNC()
5222 adv_dvc_varp->cfg->serial3; in ASC_INITFUNC()
5223 } else if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800) in ASC_INITFUNC()
5227 ep_38C0800->adapter_scsi_id = adv_dvc_varp->chip_scsi_id; in ASC_INITFUNC()
5228 ep_38C0800->max_host_qng = adv_dvc_varp->max_host_qng; in ASC_INITFUNC()
5229 ep_38C0800->max_dvc_qng = adv_dvc_varp->max_dvc_qng; in ASC_INITFUNC()
5231 adv_dvc_varp->cfg->termination; in ASC_INITFUNC()
5232 ep_38C0800->disc_enable = adv_dvc_varp->cfg->disc_enable; in ASC_INITFUNC()
5233 ep_38C0800->bios_ctrl = adv_dvc_varp->bios_ctrl; in ASC_INITFUNC()
5234 ep_38C0800->wdtr_able = adv_dvc_varp->wdtr_able; in ASC_INITFUNC()
5235 ep_38C0800->tagqng_able = adv_dvc_varp->tagqng_able; in ASC_INITFUNC()
5236 ep_38C0800->sdtr_speed1 = adv_dvc_varp->sdtr_speed1; in ASC_INITFUNC()
5237 ep_38C0800->sdtr_speed2 = adv_dvc_varp->sdtr_speed2; in ASC_INITFUNC()
5238 ep_38C0800->sdtr_speed3 = adv_dvc_varp->sdtr_speed3; in ASC_INITFUNC()
5239 ep_38C0800->sdtr_speed4 = adv_dvc_varp->sdtr_speed4; in ASC_INITFUNC()
5240 ep_38C0800->tagqng_able = adv_dvc_varp->tagqng_able; in ASC_INITFUNC()
5241 ep_38C0800->start_motor = adv_dvc_varp->start_motor; in ASC_INITFUNC()
5243 adv_dvc_varp->scsi_reset_wait; in ASC_INITFUNC()
5245 adv_dvc_varp->cfg->serial1; in ASC_INITFUNC()
5247 adv_dvc_varp->cfg->serial2; in ASC_INITFUNC()
5249 adv_dvc_varp->cfg->serial3; in ASC_INITFUNC()
5254 ep_38C1600->adapter_scsi_id = adv_dvc_varp->chip_scsi_id; in ASC_INITFUNC()
5255 ep_38C1600->max_host_qng = adv_dvc_varp->max_host_qng; in ASC_INITFUNC()
5256 ep_38C1600->max_dvc_qng = adv_dvc_varp->max_dvc_qng; in ASC_INITFUNC()
5258 adv_dvc_varp->cfg->termination; in ASC_INITFUNC()
5259 ep_38C1600->disc_enable = adv_dvc_varp->cfg->disc_enable; in ASC_INITFUNC()
5260 ep_38C1600->bios_ctrl = adv_dvc_varp->bios_ctrl; in ASC_INITFUNC()
5261 ep_38C1600->wdtr_able = adv_dvc_varp->wdtr_able; in ASC_INITFUNC()
5262 ep_38C1600->tagqng_able = adv_dvc_varp->tagqng_able; in ASC_INITFUNC()
5263 ep_38C1600->sdtr_speed1 = adv_dvc_varp->sdtr_speed1; in ASC_INITFUNC()
5264 ep_38C1600->sdtr_speed2 = adv_dvc_varp->sdtr_speed2; in ASC_INITFUNC()
5265 ep_38C1600->sdtr_speed3 = adv_dvc_varp->sdtr_speed3; in ASC_INITFUNC()
5266 ep_38C1600->sdtr_speed4 = adv_dvc_varp->sdtr_speed4; in ASC_INITFUNC()
5267 ep_38C1600->tagqng_able = adv_dvc_varp->tagqng_able; in ASC_INITFUNC()
5268 ep_38C1600->start_motor = adv_dvc_varp->start_motor; in ASC_INITFUNC()
5270 adv_dvc_varp->scsi_reset_wait; in ASC_INITFUNC()
5272 adv_dvc_varp->cfg->serial1; in ASC_INITFUNC()
5274 adv_dvc_varp->cfg->serial2; in ASC_INITFUNC()
5276 adv_dvc_varp->cfg->serial3; in ASC_INITFUNC()
5283 ADV_TID_TO_TIDMASK(adv_dvc_varp->chip_scsi_id); in ASC_INITFUNC()
5288 shp->irq = adv_dvc_varp->irq_no; in ASC_INITFUNC()
5320 shp->this_id = adv_dvc_varp->chip_scsi_id; in ASC_INITFUNC()
5323 shp->can_queue = adv_dvc_varp->max_host_qng; in ASC_INITFUNC()
5401 AdvReadWordLram(adv_dvc_varp->iop_base, BIOS_SIGNATURE, in ASC_INITFUNC()
5403 AdvReadWordLram(adv_dvc_varp->iop_base, BIOS_VERSION, in ASC_INITFUNC()
5405 AdvReadWordLram(adv_dvc_varp->iop_base, BIOS_CODESEG, in ASC_INITFUNC()
5407 AdvReadWordLram(adv_dvc_varp->iop_base, BIOS_CODELEN, in ASC_INITFUNC()
5576 for (req_cnt = adv_dvc_varp->max_host_qng; in ASC_INITFUNC()
5655 adv_dvc_varp->carrier_buf = carrp; in ASC_INITFUNC()
5668 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) in ASC_INITFUNC()
5672 warn_code = AdvInitAsc3550Driver(adv_dvc_varp); in ASC_INITFUNC()
5673 } else if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800) { in ASC_INITFUNC()
5676 warn_code = AdvInitAsc38C0800Driver(adv_dvc_varp); in ASC_INITFUNC()
5680 warn_code = AdvInitAsc38C1600Driver(adv_dvc_varp); in ASC_INITFUNC()
5682 err_code = adv_dvc_varp->err_code; in ASC_INITFUNC()
5796 ADV_DVC_VAR *adv_dvc_varp; in advansys_info() local
5851 adv_dvc_varp = &boardp->dvc_var.adv_dvc_var; in advansys_info()
5852 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) in advansys_info()
5856 } else if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800) in advansys_info()
5868 (ulong) adv_dvc_varp->iop_base, in advansys_info()
5869 (ulong) adv_dvc_varp->iop_base + iolen - 1, in advansys_info()
5990 ADV_DVC_VAR *adv_dvc_varp; in advansys_reset() local
6074 adv_dvc_varp = &boardp->dvc_var.adv_dvc_var; in advansys_reset()
6080 switch (AdvResetChipAndSB(adv_dvc_varp)) { in advansys_reset()
6097 (void) AdvISR(adv_dvc_varp); in advansys_reset()
6530 ADV_DVC_VAR *adv_dvc_varp; in asc_execute_scsi_cmnd() local
6607 adv_dvc_varp = &boardp->dvc_var.adv_dvc_var; in asc_execute_scsi_cmnd()
6647 switch (ret = AdvExeScsiQueue(adv_dvc_varp, adv_scsiqp)) { in asc_execute_scsi_cmnd()
6669 boardp->id, adv_dvc_varp->err_code); in asc_execute_scsi_cmnd()
6677 boardp->id, adv_dvc_varp->err_code); in asc_execute_scsi_cmnd()
7257 adv_isr_callback(ADV_DVC_VAR *adv_dvc_varp, ADV_SCSI_REQ_Q *scsiqp) in adv_isr_callback() argument
7271 (ulong) adv_dvc_varp, (ulong) scsiqp); in adv_isr_callback()
7334 ASC_ASSERT(adv_dvc_varp == &boardp->dvc_var.adv_dvc_var); in adv_isr_callback()
7460 adv_async_callback(ADV_DVC_VAR *adv_dvc_varp, uchar code) in adv_async_callback() argument
7478 AdvResetChipAndSB(adv_dvc_varp); in adv_async_callback()
8136 ADV_DVC_VAR *adv_dvc_varp; in asc_prt_adv_board_eeprom() local
8151 adv_dvc_varp = &boardp->dvc_var.adv_dvc_var; in asc_prt_adv_board_eeprom()
8152 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) in asc_prt_adv_board_eeprom()
8155 } else if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800) in asc_prt_adv_board_eeprom()
8170 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) in asc_prt_adv_board_eeprom()
8173 } else if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800) in asc_prt_adv_board_eeprom()
8190 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) in asc_prt_adv_board_eeprom()
8197 } else if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800) in asc_prt_adv_board_eeprom()
8212 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) in asc_prt_adv_board_eeprom()
8215 } else if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800) in asc_prt_adv_board_eeprom()
8238 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) in asc_prt_adv_board_eeprom()
8244 } else if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800) in asc_prt_adv_board_eeprom()
8268 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) in asc_prt_adv_board_eeprom()
8271 } else if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800) in asc_prt_adv_board_eeprom()
8289 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) in asc_prt_adv_board_eeprom()
8292 } else if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800) in asc_prt_adv_board_eeprom()
8310 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) in asc_prt_adv_board_eeprom()
8313 } else if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800) in asc_prt_adv_board_eeprom()
8331 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) in asc_prt_adv_board_eeprom()
8345 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) in asc_prt_adv_board_eeprom()
8359 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC3550) in asc_prt_adv_board_eeprom()
8362 } else if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800) in asc_prt_adv_board_eeprom()
8380 if (adv_dvc_varp->chip_type == ADV_CHIP_ASC38C0800 || in asc_prt_adv_board_eeprom()
8381 adv_dvc_varp->chip_type == ADV_CHIP_ASC38C1600) in asc_prt_adv_board_eeprom()
8391 sdtr_speed = adv_dvc_varp->sdtr_speed1; in asc_prt_adv_board_eeprom()
8394 sdtr_speed = adv_dvc_varp->sdtr_speed2; in asc_prt_adv_board_eeprom()
8397 sdtr_speed = adv_dvc_varp->sdtr_speed3; in asc_prt_adv_board_eeprom()
8400 sdtr_speed = adv_dvc_varp->sdtr_speed4; in asc_prt_adv_board_eeprom()