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

/linux-4.4.14/drivers/scsi/
H A Dadvansys.c2299 #define adv_dvc_to_board(adv_dvc) container_of(adv_dvc, struct asc_board, \
2301 #define adv_dvc_to_pdev(adv_dvc) to_pci_dev(adv_dvc_to_board(adv_dvc)->dev)
4212 static void AdvBuildCarrierFreelist(struct adv_dvc_var *adv_dvc) AdvBuildCarrierFreelist() argument
4221 carr_paddr = adv_dvc->carrier_addr + carr_offset; AdvBuildCarrierFreelist()
4223 adv_dvc->carrier[i].carr_pa = cpu_to_le32(carr_paddr); AdvBuildCarrierFreelist()
4224 adv_dvc->carrier[i].carr_va = cpu_to_le32(carr_offset); AdvBuildCarrierFreelist()
4225 adv_dvc->carrier[i].areq_vpa = 0; AdvBuildCarrierFreelist()
4229 adv_dvc->carrier[i].next_vpa = cpu_to_le32(next_offset); AdvBuildCarrierFreelist()
4237 adv_dvc->carr_freelist = &adv_dvc->carrier[1]; AdvBuildCarrierFreelist()
4240 static ADV_CARR_T *adv_get_carrier(struct adv_dvc_var *adv_dvc, u32 offset) adv_get_carrier() argument
4247 return &adv_dvc->carrier[index]; adv_get_carrier()
4250 static ADV_CARR_T *adv_get_next_carrier(struct adv_dvc_var *adv_dvc) adv_get_next_carrier() argument
4252 ADV_CARR_T *carrp = adv_dvc->carr_freelist; adv_get_next_carrier()
4260 adv_dvc->carr_freelist = adv_get_carrier(adv_dvc, next_vpa); adv_get_next_carrier()
4272 static adv_req_t * adv_get_reqp(struct adv_dvc_var *adv_dvc, u32 offset) adv_get_reqp() argument
4274 struct asc_board *boardp = adv_dvc->drv_ptr; adv_get_reqp()
4276 BUG_ON(offset > adv_dvc->max_host_qng); adv_get_reqp()
7153 ADV_DVC_VAR *adv_dvc = &boardp->dvc_var.adv_dvc_var; advansys_reset() local
7159 switch (AdvResetChipAndSB(adv_dvc)) { advansys_reset()
7171 AdvISR(adv_dvc); advansys_reset()
7432 static void advansys_wide_enable_ppr(ADV_DVC_VAR *adv_dvc, advansys_wide_enable_ppr() argument
7435 AdvReadWordLram(iop_base, ASC_MC_PPR_ABLE, adv_dvc->ppr_able); advansys_wide_enable_ppr()
7436 adv_dvc->ppr_able |= tidmask; advansys_wide_enable_ppr()
7437 AdvWriteWordLram(iop_base, ASC_MC_PPR_ABLE, adv_dvc->ppr_able); advansys_wide_enable_ppr()
7441 advansys_wide_slave_configure(struct scsi_device *sdev, ADV_DVC_VAR *adv_dvc) advansys_wide_slave_configure() argument
7443 AdvPortAddr iop_base = adv_dvc->iop_base; advansys_wide_slave_configure()
7453 if ((adv_dvc->wdtr_able & tidmask) && sdev->wdtr) advansys_wide_slave_configure()
7455 if ((adv_dvc->sdtr_able & tidmask) && sdev->sdtr) advansys_wide_slave_configure()
7457 if (adv_dvc->chip_type == ADV_CHIP_ASC38C1600 && sdev->ppr) advansys_wide_slave_configure()
7458 advansys_wide_enable_ppr(adv_dvc, iop_base, tidmask); advansys_wide_slave_configure()
7466 if ((adv_dvc->tagqng_able & tidmask) && advansys_wide_slave_configure()
7475 adv_dvc->max_dvc_qng); advansys_wide_slave_configure()
7479 if ((adv_dvc->tagqng_able & tidmask) && sdev->tagged_supported) advansys_wide_slave_configure()
7480 scsi_change_queue_depth(sdev, adv_dvc->max_dvc_qng); advansys_wide_slave_configure()
8493 ADV_DVC_VAR *adv_dvc = &boardp->dvc_var.adv_dvc_var; asc_execute_scsi_cmnd() local
8516 ret = AdvExeScsiQueue(adv_dvc, adv_reqp); asc_execute_scsi_cmnd()
8517 err_code = adv_dvc->err_code; asc_execute_scsi_cmnd()
10827 struct adv_dvc_var *adv_dvc = &board->dvc_var.adv_dvc_var; advansys_wide_init_chip() local
10835 adv_dvc->carrier = dma_alloc_coherent(board->dev, advansys_wide_init_chip()
10836 ADV_CARRIER_BUFSIZE, &adv_dvc->carrier_addr, GFP_KERNEL); advansys_wide_init_chip()
10837 ASC_DBG(1, "carrier 0x%p\n", adv_dvc->carrier); advansys_wide_init_chip()
10839 if (!adv_dvc->carrier) advansys_wide_init_chip()
10847 board->adv_reqp_size = adv_dvc->max_host_qng * sizeof(adv_req_t); advansys_wide_init_chip()
10859 adv_dvc->max_host_qng, board->adv_reqp_size); advansys_wide_init_chip()
10875 if (adv_dvc->chip_type == ADV_CHIP_ASC3550) { advansys_wide_init_chip()
10877 warn_code = AdvInitAsc3550Driver(adv_dvc); advansys_wide_init_chip()
10878 } else if (adv_dvc->chip_type == ADV_CHIP_ASC38C0800) { advansys_wide_init_chip()
10880 warn_code = AdvInitAsc38C0800Driver(adv_dvc); advansys_wide_init_chip()
10883 warn_code = AdvInitAsc38C1600Driver(adv_dvc); advansys_wide_init_chip()
10885 err_code = adv_dvc->err_code; advansys_wide_init_chip()
10903 struct adv_dvc_var *adv_dvc = &board->dvc_var.adv_dvc_var; advansys_wide_free_mem() local
10905 if (adv_dvc->carrier) { advansys_wide_free_mem()
10907 adv_dvc->carrier, adv_dvc->carrier_addr); advansys_wide_free_mem()
10908 adv_dvc->carrier = NULL; advansys_wide_free_mem()

Completed in 105 milliseconds