Searched refs:boardp (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/scsi/
H A Dadvansys.c2079 #define ASC_NARROW_BOARD(boardp) (((boardp)->flags & ASC_IS_WIDE_BOARD) == 0)
2416 struct asc_board *boardp = shost_priv(s); asc_prt_scsi_host() local
2418 printk("Scsi_Host at addr 0x%p, device %s\n", s, dev_name(boardp->dev)); asc_prt_scsi_host()
2423 (ulong)s->base, (ulong)s->io_port, boardp->irq); asc_prt_scsi_host()
2431 if (ASC_NARROW_BOARD(boardp)) { asc_prt_scsi_host()
2432 asc_prt_asc_dvc_var(&boardp->dvc_var.asc_dvc_var); asc_prt_scsi_host()
2433 asc_prt_asc_dvc_cfg(&boardp->dvc_cfg.asc_dvc_cfg); asc_prt_scsi_host()
2435 asc_prt_adv_dvc_var(&boardp->dvc_var.adv_dvc_var); asc_prt_scsi_host()
2436 asc_prt_adv_dvc_cfg(&boardp->dvc_cfg.adv_dvc_cfg); asc_prt_scsi_host()
2636 struct asc_board *boardp = shost_priv(shost); advansys_info() local
2642 if (ASC_NARROW_BOARD(boardp)) { advansys_info()
2643 asc_dvc_varp = &boardp->dvc_var.asc_dvc_var; advansys_info()
2657 boardp->irq, shost->dma_channel); advansys_info()
2679 boardp->irq); advansys_info()
2689 adv_dvc_varp = &boardp->dvc_var.adv_dvc_var; advansys_info()
2700 (ulong)adv_dvc_varp->iop_base + boardp->asc_n_io_port - 1, boardp->irq); advansys_info()
2716 struct asc_board *boardp = shost_priv(shost); asc_prt_board_devices() local
2724 if (ASC_NARROW_BOARD(boardp)) { asc_prt_board_devices()
2725 chip_scsi_id = boardp->dvc_cfg.asc_dvc_cfg.chip_scsi_id; asc_prt_board_devices()
2727 chip_scsi_id = boardp->dvc_var.adv_dvc_var.chip_scsi_id; asc_prt_board_devices()
2732 if (boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) asc_prt_board_devices()
2743 struct asc_board *boardp = shost_priv(shost); asc_prt_adv_bios() local
2752 if (boardp->bios_signature != 0x55AA) { asc_prt_adv_bios()
2757 major = (boardp->bios_version >> 12) & 0xF; asc_prt_adv_bios()
2758 minor = (boardp->bios_version >> 8) & 0xF; asc_prt_adv_bios()
2759 letter = (boardp->bios_version & 0xFF); asc_prt_adv_bios()
2882 struct asc_board *boardp = shost_priv(shost); asc_prt_asc_board_eeprom() local
2891 asc_dvc_varp = &boardp->dvc_var.asc_dvc_var; asc_prt_asc_board_eeprom()
2892 ep = &boardp->eep_config.asc_eep; asc_prt_asc_board_eeprom()
2956 struct asc_board *boardp = shost_priv(shost); asc_prt_adv_board_eeprom() local
2968 adv_dvc_varp = &boardp->dvc_var.adv_dvc_var; asc_prt_adv_board_eeprom()
2970 ep_3550 = &boardp->eep_config.adv_3550_eep; asc_prt_adv_board_eeprom()
2972 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; asc_prt_adv_board_eeprom()
2974 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; asc_prt_adv_board_eeprom()
3177 struct asc_board *boardp = shost_priv(shost); asc_prt_driver_conf() local
3200 boardp->flags, shost->last_reset, jiffies, asc_prt_driver_conf()
3201 boardp->asc_n_io_port); asc_prt_driver_conf()
3205 if (ASC_NARROW_BOARD(boardp)) { asc_prt_driver_conf()
3206 chip_scsi_id = boardp->dvc_cfg.asc_dvc_cfg.chip_scsi_id; asc_prt_driver_conf()
3208 chip_scsi_id = boardp->dvc_var.adv_dvc_var.chip_scsi_id; asc_prt_driver_conf()
3219 struct asc_board *boardp = shost_priv(shost); asc_prt_asc_board_info() local
3226 v = &boardp->dvc_var.asc_dvc_var; asc_prt_asc_board_info()
3227 c = &boardp->dvc_cfg.asc_dvc_cfg; asc_prt_asc_board_info()
3246 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { asc_prt_asc_board_info()
3258 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { asc_prt_asc_board_info()
3268 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { asc_prt_asc_board_info()
3278 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { asc_prt_asc_board_info()
3281 if (boardp->queue_full & ADV_TID_TO_TIDMASK(i)) asc_prt_asc_board_info()
3283 i, boardp->queue_full_cnt[i]); asc_prt_asc_board_info()
3291 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { asc_prt_asc_board_info()
3304 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0) || asc_prt_asc_board_info()
3311 if ((boardp->sdtr_data[i] & ASC_SYN_MAX_OFFSET) == 0) { asc_prt_asc_board_info()
3315 (boardp->sdtr_data[i] >> 4) & (v->max_sdtr_index - asc_prt_asc_board_info()
3326 boardp->sdtr_data[i] & ASC_SYN_MAX_OFFSET); asc_prt_asc_board_info()
3349 struct asc_board *boardp = shost_priv(shost); asc_prt_adv_board_info() local
3363 v = &boardp->dvc_var.adv_dvc_var; asc_prt_adv_board_info()
3364 c = &boardp->dvc_cfg.adv_dvc_cfg; asc_prt_adv_board_info()
3386 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { asc_prt_adv_board_info()
3398 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { asc_prt_adv_board_info()
3411 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { asc_prt_adv_board_info()
3426 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { asc_prt_adv_board_info()
3440 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { asc_prt_adv_board_info()
3463 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0)) { asc_prt_adv_board_info()
3482 ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(i)) == 0) || asc_prt_adv_board_info()
3535 struct asc_board *boardp = shost_priv(shost); asc_prt_board_stats() local
3536 struct asc_stats *s = &boardp->asc_stats; asc_prt_board_stats()
3595 struct asc_board *boardp = shost_priv(shost); advansys_show_info() local
3613 if (!ASC_NARROW_BOARD(boardp)) advansys_show_info()
3624 if (ASC_NARROW_BOARD(boardp)) advansys_show_info()
3645 if (ASC_NARROW_BOARD(boardp)) advansys_show_info()
4274 struct asc_board *boardp = adv_dvc->drv_ptr; adv_get_reqp() local
4277 return &boardp->adv_reqp[offset]; adv_get_reqp()
5951 struct asc_board *boardp = adv_dvc_varp->drv_ptr; adv_isr_callback() local
5969 scp = scsi_host_find_tag(boardp->shost, scsiqp->srb_tag); adv_isr_callback()
5992 ASC_STATS(boardp->shost, callback); adv_isr_callback()
5993 ASC_DBG(1, "shost 0x%p\n", boardp->shost); adv_isr_callback()
5996 dma_unmap_single(boardp->dev, sense_addr, adv_isr_callback()
6075 if ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(scp->device->id)) == 0 && adv_isr_callback()
6078 boardp->init_tidmask |= ADV_TID_TO_TIDMASK(scp->device->id); adv_isr_callback()
6090 dma_pool_free(boardp->adv_sgblk_pool, sgblkp, adv_isr_callback()
6387 struct asc_board *boardp; AscIsrChipHalted() local
6390 boardp = asc_dvc->drv_ptr; AscIsrChipHalted()
6412 boardp->sdtr_data[tid_no] = 0; AscIsrChipHalted()
6419 boardp->sdtr_data[tid_no] = asyn_sdtr; AscIsrChipHalted()
6459 boardp->sdtr_data[tid_no] = asyn_sdtr; AscIsrChipHalted()
6482 boardp->sdtr_data[tid_no] = sdtr_data; AscIsrChipHalted()
6497 boardp->sdtr_data[tid_no] = sdtr_data; AscIsrChipHalted()
6610 boardp->sdtr_data[tid_no] = asyn_sdtr; AscIsrChipHalted()
6655 boardp->queue_full |= target_id; AscIsrChipHalted()
6656 boardp->queue_full_cnt[tid_no] = AscIsrChipHalted()
6748 struct asc_board *boardp = asc_dvc_varp->drv_ptr; asc_isr_callback() local
6759 scp = scsi_host_find_tag(boardp->shost, srb_tag); asc_isr_callback()
6765 ASC_STATS(boardp->shost, callback); asc_isr_callback()
6767 dma_unmap_single(boardp->dev, scp->SCp.dma_handle, asc_isr_callback()
6848 if ((boardp->init_tidmask & ADV_TID_TO_TIDMASK(scp->device->id)) == 0 && asc_isr_callback()
6851 boardp->init_tidmask |= ADV_TID_TO_TIDMASK(scp->device->id); asc_isr_callback()
7115 struct asc_board *boardp = shost_priv(shost); advansys_reset() local
7126 if (ASC_NARROW_BOARD(boardp)) { advansys_reset()
7127 ASC_DVC_VAR *asc_dvc = &boardp->dvc_var.asc_dvc_var; advansys_reset()
7153 ADV_DVC_VAR *adv_dvc = &boardp->dvc_var.adv_dvc_var; advansys_reset()
7195 struct asc_board *boardp = shost_priv(sdev->host); advansys_biosparam() local
7199 if (ASC_NARROW_BOARD(boardp)) { advansys_biosparam()
7200 if ((boardp->dvc_var.asc_dvc_var.dvc_cntl & advansys_biosparam()
7209 if ((boardp->dvc_var.adv_dvc_var.bios_ctrl & advansys_biosparam()
7231 struct asc_board *boardp = shost_priv(shost); advansys_interrupt() local
7235 ASC_DBG(2, "boardp 0x%p\n", boardp); advansys_interrupt()
7237 if (ASC_NARROW_BOARD(boardp)) { advansys_interrupt()
7242 AscISR(&boardp->dvc_var.asc_dvc_var); advansys_interrupt()
7246 if (AdvISR(&boardp->dvc_var.adv_dvc_var)) { advansys_interrupt()
7489 struct asc_board *boardp = shost_priv(sdev->host); advansys_slave_configure() local
7491 if (ASC_NARROW_BOARD(boardp)) advansys_slave_configure()
7493 &boardp->dvc_var.asc_dvc_var); advansys_slave_configure()
7496 &boardp->dvc_var.adv_dvc_var); advansys_slave_configure()
7515 static int asc_build_req(struct asc_board *boardp, struct scsi_cmnd *scp, asc_build_req() argument
7518 struct asc_dvc_var *asc_dvc = &boardp->dvc_var.asc_dvc_var; asc_build_req()
7557 (boardp->reqcnt[scp->device->id] % 255) == 0) { asc_build_req()
7633 adv_get_sglist(struct asc_board *boardp, adv_req_t *reqp, adv_get_sglist() argument
7655 sgblkp = dma_pool_alloc(boardp->adv_sgblk_pool, GFP_ATOMIC, adv_get_sglist()
7669 dma_pool_free(boardp->adv_sgblk_pool, sgblkp, adv_get_sglist()
7739 adv_build_req(struct asc_board *boardp, struct scsi_cmnd *scp, adv_build_req() argument
7753 reqp = &boardp->adv_reqp[srb_tag]; adv_build_req()
7760 reqp->req_addr = boardp->adv_reqp_addr + (srb_tag * sizeof(adv_req_t)); adv_build_req()
7798 sense_addr = dma_map_single(boardp->dev, scp->sense_buffer, adv_build_req()
7800 if (dma_mapping_error(boardp->dev, sense_addr)) { adv_build_req()
7838 ret = adv_get_sglist(boardp, reqp, scsiqp, scp, use_sg); adv_build_req()
8475 struct asc_board *boardp = shost_priv(scp->device->host); asc_execute_scsi_cmnd() local
8479 if (ASC_NARROW_BOARD(boardp)) { asc_execute_scsi_cmnd()
8480 ASC_DVC_VAR *asc_dvc = &boardp->dvc_var.asc_dvc_var; asc_execute_scsi_cmnd()
8483 ret = asc_build_req(boardp, scp, &asc_scsi_q); asc_execute_scsi_cmnd()
8493 ADV_DVC_VAR *adv_dvc = &boardp->dvc_var.adv_dvc_var; asc_execute_scsi_cmnd()
8496 switch (adv_build_req(boardp, scp, &adv_reqp)) { asc_execute_scsi_cmnd()
8527 boardp->reqcnt[scp->device->id]++; asc_execute_scsi_cmnd()
10925 struct asc_board *boardp = shost_priv(shost); advansys_board_found() local
10930 pdev = (bus_type == ASC_IS_PCI) ? to_pci_dev(boardp->dev) : NULL; advansys_board_found()
10932 if (ASC_NARROW_BOARD(boardp)) { advansys_board_found()
10934 asc_dvc_varp = &boardp->dvc_var.asc_dvc_var; advansys_board_found()
10936 asc_dvc_varp->drv_ptr = boardp; advansys_board_found()
10937 asc_dvc_varp->cfg = &boardp->dvc_cfg.asc_dvc_cfg; advansys_board_found()
10941 adv_dvc_varp = &boardp->dvc_var.adv_dvc_var; advansys_board_found()
10942 adv_dvc_varp->drv_ptr = boardp; advansys_board_found()
10943 adv_dvc_varp->cfg = &boardp->dvc_cfg.adv_dvc_cfg; advansys_board_found()
10955 boardp->asc_n_io_port = pci_resource_len(pdev, 1); advansys_board_found()
10956 boardp->ioremap_addr = pci_ioremap_bar(pdev, 1); advansys_board_found()
10957 if (!boardp->ioremap_addr) { advansys_board_found()
10961 boardp->asc_n_io_port); advansys_board_found()
10965 adv_dvc_varp->iop_base = (AdvPortAddr)boardp->ioremap_addr; advansys_board_found()
10973 boardp->ioport = iop; advansys_board_found()
10980 if (ASC_NARROW_BOARD(boardp)) { advansys_board_found()
11043 if (ASC_NARROW_BOARD(boardp)) { advansys_board_found()
11050 boardp->init_tidmask |= advansys_board_found()
11056 ep = &boardp->eep_config.asc_eep; advansys_board_found()
11092 ep_3550 = &boardp->eep_config.adv_3550_eep; advansys_board_found()
11114 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; advansys_board_found()
11142 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; advansys_board_found()
11174 boardp->init_tidmask |= advansys_board_found()
11184 if (ASC_NARROW_BOARD(boardp)) { advansys_board_found()
11190 boardp->asc_n_io_port = ASC_IOADR_GAP; advansys_board_found()
11218 if (ASC_NARROW_BOARD(boardp)) { advansys_board_found()
11245 if (ASC_NARROW_BOARD(boardp)) { advansys_board_found()
11254 BIOS_SIGNATURE, boardp->bios_signature); advansys_board_found()
11256 BIOS_VERSION, boardp->bios_version); advansys_board_found()
11258 BIOS_CODESEG, boardp->bios_codeseg); advansys_board_found()
11260 BIOS_CODELEN, boardp->bios_codelen); advansys_board_found()
11263 boardp->bios_signature, boardp->bios_version); advansys_board_found()
11266 boardp->bios_codeseg, boardp->bios_codelen); advansys_board_found()
11272 if (boardp->bios_signature == 0x55AA) { advansys_board_found()
11277 shost->base = ((ulong)boardp->bios_codeseg << 4); advansys_board_found()
11290 if (ASC_NARROW_BOARD(boardp)) { advansys_board_found()
11307 ASC_DBG(2, "request_irq(%d, %p)\n", boardp->irq, shost); advansys_board_found()
11309 ret = request_irq(boardp->irq, advansys_interrupt, share_irq, advansys_board_found()
11315 "already in use\n", boardp->irq); advansys_board_found()
11318 "not valid\n", boardp->irq); advansys_board_found()
11321 "failed with %d\n", boardp->irq, ret); advansys_board_found()
11329 if (ASC_NARROW_BOARD(boardp)) { advansys_board_found()
11358 ret = scsi_add_host(shost, boardp->dev); advansys_board_found()
11366 if (ASC_NARROW_BOARD(boardp)) { advansys_board_found()
11368 dma_unmap_single(boardp->dev, asc_dvc_varp->overrun_dma, advansys_board_found()
11372 advansys_wide_free_mem(boardp); advansys_board_found()
11374 free_irq(boardp->irq, shost); advansys_board_found()
11381 if (boardp->ioremap_addr) advansys_board_found()
11382 iounmap(boardp->ioremap_addr); advansys_board_found()
/linux-4.4.14/drivers/nubus/
H A Dnubus.c802 struct nubus_board** boardp; nubus_add_board() local
906 for (boardp=&nubus_boards; *boardp!=NULL; boardp=&((*boardp)->next)) nubus_add_board()
908 *boardp = board; nubus_add_board()

Completed in 174 milliseconds