Lines Matching refs:boardp
2062 #define ASC_NARROW_BOARD(boardp) (((boardp)->flags & ASC_IS_WIDE_BOARD) == 0) argument
2392 struct asc_board *boardp = shost_priv(s); in asc_prt_scsi_host() local
2394 printk("Scsi_Host at addr 0x%p, device %s\n", s, dev_name(boardp->dev)); in asc_prt_scsi_host()
2399 (ulong)s->base, (ulong)s->io_port, boardp->irq); in asc_prt_scsi_host()
2407 if (ASC_NARROW_BOARD(boardp)) { in asc_prt_scsi_host()
2408 asc_prt_asc_dvc_var(&boardp->dvc_var.asc_dvc_var); in asc_prt_scsi_host()
2409 asc_prt_asc_dvc_cfg(&boardp->dvc_cfg.asc_dvc_cfg); in asc_prt_scsi_host()
2411 asc_prt_adv_dvc_var(&boardp->dvc_var.adv_dvc_var); in asc_prt_scsi_host()
2412 asc_prt_adv_dvc_cfg(&boardp->dvc_cfg.adv_dvc_cfg); in asc_prt_scsi_host()
2612 struct asc_board *boardp = shost_priv(shost); in advansys_info() local
2618 if (ASC_NARROW_BOARD(boardp)) { in advansys_info()
2619 asc_dvc_varp = &boardp->dvc_var.asc_dvc_var; in advansys_info()
2642 boardp->irq); in advansys_info()
2651 adv_dvc_varp = &boardp->dvc_var.adv_dvc_var; in advansys_info()
2662 (ulong)adv_dvc_varp->iop_base + boardp->asc_n_io_port - 1, boardp->irq); in advansys_info()
2678 struct asc_board *boardp = shost_priv(shost); in asc_prt_board_devices() local
2686 if (ASC_NARROW_BOARD(boardp)) { in asc_prt_board_devices()
2687 chip_scsi_id = boardp->dvc_cfg.asc_dvc_cfg.chip_scsi_id; in asc_prt_board_devices()
2689 chip_scsi_id = boardp->dvc_var.adv_dvc_var.chip_scsi_id; in asc_prt_board_devices()
2694 if (boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) in asc_prt_board_devices()
2705 struct asc_board *boardp = shost_priv(shost); in asc_prt_adv_bios() local
2714 if (boardp->bios_signature != 0x55AA) { in asc_prt_adv_bios()
2719 major = (boardp->bios_version >> 12) & 0xF; in asc_prt_adv_bios()
2720 minor = (boardp->bios_version >> 8) & 0xF; in asc_prt_adv_bios()
2721 letter = (boardp->bios_version & 0xFF); in asc_prt_adv_bios()
2844 struct asc_board *boardp = shost_priv(shost); in asc_prt_asc_board_eeprom() local
2849 ep = &boardp->eep_config.asc_eep; in asc_prt_asc_board_eeprom()
2905 struct asc_board *boardp = shost_priv(shost); in asc_prt_adv_board_eeprom() local
2917 adv_dvc_varp = &boardp->dvc_var.adv_dvc_var; in asc_prt_adv_board_eeprom()
2919 ep_3550 = &boardp->eep_config.adv_3550_eep; in asc_prt_adv_board_eeprom()
2921 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; in asc_prt_adv_board_eeprom()
2923 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; in asc_prt_adv_board_eeprom()
3126 struct asc_board *boardp = shost_priv(shost); in asc_prt_driver_conf() local
3144 boardp->flags, shost->last_reset, jiffies, in asc_prt_driver_conf()
3145 boardp->asc_n_io_port); in asc_prt_driver_conf()
3157 struct asc_board *boardp = shost_priv(shost); in asc_prt_asc_board_info() local
3164 v = &boardp->dvc_var.asc_dvc_var; in asc_prt_asc_board_info()
3165 c = &boardp->dvc_cfg.asc_dvc_cfg; in asc_prt_asc_board_info()
3184 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_asc_board_info()
3196 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_asc_board_info()
3206 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_asc_board_info()
3216 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_asc_board_info()
3219 if (boardp->queue_full & ADV_TID_TO_TIDMASK(i)) in asc_prt_asc_board_info()
3221 i, boardp->queue_full_cnt[i]); in asc_prt_asc_board_info()
3229 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_asc_board_info()
3242 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0) || in asc_prt_asc_board_info()
3249 if ((boardp->sdtr_data[i] & ASC_SYN_MAX_OFFSET) == 0) { in asc_prt_asc_board_info()
3253 (boardp->sdtr_data[i] >> 4) & (v->max_sdtr_index - in asc_prt_asc_board_info()
3264 boardp->sdtr_data[i] & ASC_SYN_MAX_OFFSET); in asc_prt_asc_board_info()
3287 struct asc_board *boardp = shost_priv(shost); in asc_prt_adv_board_info() local
3301 v = &boardp->dvc_var.adv_dvc_var; in asc_prt_adv_board_info()
3302 c = &boardp->dvc_cfg.adv_dvc_cfg; in asc_prt_adv_board_info()
3324 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_adv_board_info()
3336 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_adv_board_info()
3349 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_adv_board_info()
3364 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_adv_board_info()
3378 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_adv_board_info()
3401 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { in asc_prt_adv_board_info()
3420 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0) || in asc_prt_adv_board_info()
3473 struct asc_board *boardp = shost_priv(shost); in asc_prt_board_stats() local
3474 struct asc_stats *s = &boardp->asc_stats; in asc_prt_board_stats()
3533 struct asc_board *boardp = shost_priv(shost); in advansys_show_info() local
3551 if (!ASC_NARROW_BOARD(boardp)) in advansys_show_info()
3562 if (ASC_NARROW_BOARD(boardp)) in advansys_show_info()
3583 if (ASC_NARROW_BOARD(boardp)) in advansys_show_info()
4212 struct asc_board *boardp = adv_dvc->drv_ptr; in adv_get_reqp() local
4215 return &boardp->adv_reqp[offset]; in adv_get_reqp()
5889 struct asc_board *boardp = adv_dvc_varp->drv_ptr; in adv_isr_callback() local
5905 scp = scsi_host_find_tag(boardp->shost, scsiqp->srb_tag); in adv_isr_callback()
5928 ASC_STATS(boardp->shost, callback); in adv_isr_callback()
5929 ASC_DBG(1, "shost 0x%p\n", boardp->shost); in adv_isr_callback()
5932 dma_unmap_single(boardp->dev, sense_addr, in adv_isr_callback()
5997 if ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(scp->device->id)) == 0 && in adv_isr_callback()
6000 boardp->init_tidmask |= ADV_TID_TO_TIDMASK(scp->device->id); in adv_isr_callback()
6012 dma_pool_free(boardp->adv_sgblk_pool, sgblkp, in adv_isr_callback()
6305 struct asc_board *boardp; in AscIsrChipHalted() local
6308 boardp = asc_dvc->drv_ptr; in AscIsrChipHalted()
6330 boardp->sdtr_data[tid_no] = 0; in AscIsrChipHalted()
6337 boardp->sdtr_data[tid_no] = asyn_sdtr; in AscIsrChipHalted()
6377 boardp->sdtr_data[tid_no] = asyn_sdtr; in AscIsrChipHalted()
6400 boardp->sdtr_data[tid_no] = sdtr_data; in AscIsrChipHalted()
6415 boardp->sdtr_data[tid_no] = sdtr_data; in AscIsrChipHalted()
6528 boardp->sdtr_data[tid_no] = asyn_sdtr; in AscIsrChipHalted()
6573 boardp->queue_full |= target_id; in AscIsrChipHalted()
6574 boardp->queue_full_cnt[tid_no] = in AscIsrChipHalted()
6666 struct asc_board *boardp = asc_dvc_varp->drv_ptr; in asc_isr_callback() local
6677 scp = scsi_host_find_tag(boardp->shost, srb_tag); in asc_isr_callback()
6683 ASC_STATS(boardp->shost, callback); in asc_isr_callback()
6685 dma_unmap_single(boardp->dev, scp->SCp.dma_handle, in asc_isr_callback()
6750 if ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(scp->device->id)) == 0 && in asc_isr_callback()
6753 boardp->init_tidmask |= ADV_TID_TO_TIDMASK(scp->device->id); in asc_isr_callback()
7017 struct asc_board *boardp = shost_priv(shost); in advansys_reset() local
7028 if (ASC_NARROW_BOARD(boardp)) { in advansys_reset()
7029 ASC_DVC_VAR *asc_dvc = &boardp->dvc_var.asc_dvc_var; in advansys_reset()
7055 ADV_DVC_VAR *adv_dvc = &boardp->dvc_var.adv_dvc_var; in advansys_reset()
7097 struct asc_board *boardp = shost_priv(sdev->host); in advansys_biosparam() local
7101 if (ASC_NARROW_BOARD(boardp)) { in advansys_biosparam()
7102 if ((boardp->dvc_var.asc_dvc_var.dvc_cntl & in advansys_biosparam()
7111 if ((boardp->dvc_var.adv_dvc_var.bios_ctrl & in advansys_biosparam()
7133 struct asc_board *boardp = shost_priv(shost); in advansys_interrupt() local
7137 ASC_DBG(2, "boardp 0x%p\n", boardp); in advansys_interrupt()
7139 if (ASC_NARROW_BOARD(boardp)) { in advansys_interrupt()
7144 AscISR(&boardp->dvc_var.asc_dvc_var); in advansys_interrupt()
7148 if (AdvISR(&boardp->dvc_var.adv_dvc_var)) { in advansys_interrupt()
7391 struct asc_board *boardp = shost_priv(sdev->host); in advansys_slave_configure() local
7393 if (ASC_NARROW_BOARD(boardp)) in advansys_slave_configure()
7395 &boardp->dvc_var.asc_dvc_var); in advansys_slave_configure()
7398 &boardp->dvc_var.adv_dvc_var); in advansys_slave_configure()
7417 static int asc_build_req(struct asc_board *boardp, struct scsi_cmnd *scp, in asc_build_req() argument
7420 struct asc_dvc_var *asc_dvc = &boardp->dvc_var.asc_dvc_var; in asc_build_req()
7459 (boardp->reqcnt[scp->device->id] % 255) == 0) { in asc_build_req()
7535 adv_get_sglist(struct asc_board *boardp, adv_req_t *reqp, in adv_get_sglist() argument
7557 sgblkp = dma_pool_alloc(boardp->adv_sgblk_pool, GFP_ATOMIC, in adv_get_sglist()
7571 dma_pool_free(boardp->adv_sgblk_pool, sgblkp, in adv_get_sglist()
7641 adv_build_req(struct asc_board *boardp, struct scsi_cmnd *scp, in adv_build_req() argument
7655 reqp = &boardp->adv_reqp[srb_tag]; in adv_build_req()
7662 reqp->req_addr = boardp->adv_reqp_addr + (srb_tag * sizeof(adv_req_t)); in adv_build_req()
7700 sense_addr = dma_map_single(boardp->dev, scp->sense_buffer, in adv_build_req()
7702 if (dma_mapping_error(boardp->dev, sense_addr)) { in adv_build_req()
7740 ret = adv_get_sglist(boardp, reqp, scsiqp, scp, use_sg); in adv_build_req()
8377 struct asc_board *boardp = shost_priv(scp->device->host); in asc_execute_scsi_cmnd() local
8381 if (ASC_NARROW_BOARD(boardp)) { in asc_execute_scsi_cmnd()
8382 ASC_DVC_VAR *asc_dvc = &boardp->dvc_var.asc_dvc_var; in asc_execute_scsi_cmnd()
8385 ret = asc_build_req(boardp, scp, &asc_scsi_q); in asc_execute_scsi_cmnd()
8395 ADV_DVC_VAR *adv_dvc = &boardp->dvc_var.adv_dvc_var; in asc_execute_scsi_cmnd()
8398 switch (adv_build_req(boardp, scp, &adv_reqp)) { in asc_execute_scsi_cmnd()
8429 boardp->reqcnt[scp->device->id]++; in asc_execute_scsi_cmnd()
10716 struct asc_board *boardp = shost_priv(shost); in advansys_board_found() local
10721 pdev = (bus_type == ASC_IS_PCI) ? to_pci_dev(boardp->dev) : NULL; in advansys_board_found()
10723 if (ASC_NARROW_BOARD(boardp)) { in advansys_board_found()
10725 asc_dvc_varp = &boardp->dvc_var.asc_dvc_var; in advansys_board_found()
10727 asc_dvc_varp->drv_ptr = boardp; in advansys_board_found()
10728 asc_dvc_varp->cfg = &boardp->dvc_cfg.asc_dvc_cfg; in advansys_board_found()
10732 adv_dvc_varp = &boardp->dvc_var.adv_dvc_var; in advansys_board_found()
10733 adv_dvc_varp->drv_ptr = boardp; in advansys_board_found()
10734 adv_dvc_varp->cfg = &boardp->dvc_cfg.adv_dvc_cfg; in advansys_board_found()
10746 boardp->asc_n_io_port = pci_resource_len(pdev, 1); in advansys_board_found()
10747 boardp->ioremap_addr = pci_ioremap_bar(pdev, 1); in advansys_board_found()
10748 if (!boardp->ioremap_addr) { in advansys_board_found()
10752 boardp->asc_n_io_port); in advansys_board_found()
10756 adv_dvc_varp->iop_base = (AdvPortAddr)boardp->ioremap_addr; in advansys_board_found()
10764 boardp->ioport = iop; in advansys_board_found()
10771 if (ASC_NARROW_BOARD(boardp)) { in advansys_board_found()
10828 if (ASC_NARROW_BOARD(boardp)) { in advansys_board_found()
10835 boardp->init_tidmask |= in advansys_board_found()
10841 ep = &boardp->eep_config.asc_eep; in advansys_board_found()
10877 ep_3550 = &boardp->eep_config.adv_3550_eep; in advansys_board_found()
10899 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; in advansys_board_found()
10927 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; in advansys_board_found()
10959 boardp->init_tidmask |= in advansys_board_found()
10969 if (ASC_NARROW_BOARD(boardp)) { in advansys_board_found()
10975 boardp->asc_n_io_port = ASC_IOADR_GAP; in advansys_board_found()
11003 if (ASC_NARROW_BOARD(boardp)) { in advansys_board_found()
11030 if (ASC_NARROW_BOARD(boardp)) { in advansys_board_found()
11039 BIOS_SIGNATURE, boardp->bios_signature); in advansys_board_found()
11041 BIOS_VERSION, boardp->bios_version); in advansys_board_found()
11043 BIOS_CODESEG, boardp->bios_codeseg); in advansys_board_found()
11045 BIOS_CODELEN, boardp->bios_codelen); in advansys_board_found()
11048 boardp->bios_signature, boardp->bios_version); in advansys_board_found()
11051 boardp->bios_codeseg, boardp->bios_codelen); in advansys_board_found()
11057 if (boardp->bios_signature == 0x55AA) { in advansys_board_found()
11062 shost->base = ((ulong)boardp->bios_codeseg << 4); in advansys_board_found()
11076 ASC_DBG(2, "request_irq(%d, %p)\n", boardp->irq, shost); in advansys_board_found()
11078 ret = request_irq(boardp->irq, advansys_interrupt, share_irq, in advansys_board_found()
11084 "already in use\n", boardp->irq); in advansys_board_found()
11087 "not valid\n", boardp->irq); in advansys_board_found()
11090 "failed with %d\n", boardp->irq, ret); in advansys_board_found()
11098 if (ASC_NARROW_BOARD(boardp)) { in advansys_board_found()
11127 ret = scsi_add_host(shost, boardp->dev); in advansys_board_found()
11135 if (ASC_NARROW_BOARD(boardp)) { in advansys_board_found()
11137 dma_unmap_single(boardp->dev, asc_dvc_varp->overrun_dma, in advansys_board_found()
11141 advansys_wide_free_mem(boardp); in advansys_board_found()
11143 free_irq(boardp->irq, shost); in advansys_board_found()
11145 if (boardp->ioremap_addr) in advansys_board_found()
11146 iounmap(boardp->ioremap_addr); in advansys_board_found()