adv_dvc          2295 drivers/scsi/advansys.c #define adv_dvc_to_board(adv_dvc) container_of(adv_dvc, struct asc_board, \
adv_dvc          2297 drivers/scsi/advansys.c #define adv_dvc_to_pdev(adv_dvc) to_pci_dev(adv_dvc_to_board(adv_dvc)->dev)
adv_dvc          4208 drivers/scsi/advansys.c static void AdvBuildCarrierFreelist(struct adv_dvc_var *adv_dvc)
adv_dvc          4217 drivers/scsi/advansys.c 		carr_paddr = adv_dvc->carrier_addr + carr_offset;
adv_dvc          4219 drivers/scsi/advansys.c 		adv_dvc->carrier[i].carr_pa = cpu_to_le32(carr_paddr);
adv_dvc          4220 drivers/scsi/advansys.c 		adv_dvc->carrier[i].carr_va = cpu_to_le32(carr_offset);
adv_dvc          4221 drivers/scsi/advansys.c 		adv_dvc->carrier[i].areq_vpa = 0;
adv_dvc          4225 drivers/scsi/advansys.c 		adv_dvc->carrier[i].next_vpa = cpu_to_le32(next_offset);
adv_dvc          4233 drivers/scsi/advansys.c 	adv_dvc->carr_freelist = &adv_dvc->carrier[1];
adv_dvc          4236 drivers/scsi/advansys.c static ADV_CARR_T *adv_get_carrier(struct adv_dvc_var *adv_dvc, u32 offset)
adv_dvc          4243 drivers/scsi/advansys.c 	return &adv_dvc->carrier[index];
adv_dvc          4246 drivers/scsi/advansys.c static ADV_CARR_T *adv_get_next_carrier(struct adv_dvc_var *adv_dvc)
adv_dvc          4248 drivers/scsi/advansys.c 	ADV_CARR_T *carrp = adv_dvc->carr_freelist;
adv_dvc          4256 drivers/scsi/advansys.c 	adv_dvc->carr_freelist = adv_get_carrier(adv_dvc, next_vpa);
adv_dvc          4268 drivers/scsi/advansys.c static adv_req_t * adv_get_reqp(struct adv_dvc_var *adv_dvc, u32 offset)
adv_dvc          4270 drivers/scsi/advansys.c 	struct asc_board *boardp = adv_dvc->drv_ptr;
adv_dvc          4272 drivers/scsi/advansys.c 	BUG_ON(offset > adv_dvc->max_host_qng);
adv_dvc          7146 drivers/scsi/advansys.c 		ADV_DVC_VAR *adv_dvc = &boardp->dvc_var.adv_dvc_var;
adv_dvc          7152 drivers/scsi/advansys.c 		switch (AdvResetChipAndSB(adv_dvc)) {
adv_dvc          7164 drivers/scsi/advansys.c 		AdvISR(adv_dvc);
adv_dvc          7425 drivers/scsi/advansys.c static void advansys_wide_enable_ppr(ADV_DVC_VAR *adv_dvc,
adv_dvc          7428 drivers/scsi/advansys.c 	AdvReadWordLram(iop_base, ASC_MC_PPR_ABLE, adv_dvc->ppr_able);
adv_dvc          7429 drivers/scsi/advansys.c 	adv_dvc->ppr_able |= tidmask;
adv_dvc          7430 drivers/scsi/advansys.c 	AdvWriteWordLram(iop_base, ASC_MC_PPR_ABLE, adv_dvc->ppr_able);
adv_dvc          7434 drivers/scsi/advansys.c advansys_wide_slave_configure(struct scsi_device *sdev, ADV_DVC_VAR *adv_dvc)
adv_dvc          7436 drivers/scsi/advansys.c 	AdvPortAddr iop_base = adv_dvc->iop_base;
adv_dvc          7446 drivers/scsi/advansys.c 		if ((adv_dvc->wdtr_able & tidmask) && sdev->wdtr)
adv_dvc          7448 drivers/scsi/advansys.c 		if ((adv_dvc->sdtr_able & tidmask) && sdev->sdtr)
adv_dvc          7450 drivers/scsi/advansys.c 		if (adv_dvc->chip_type == ADV_CHIP_ASC38C1600 && sdev->ppr)
adv_dvc          7451 drivers/scsi/advansys.c 			advansys_wide_enable_ppr(adv_dvc, iop_base, tidmask);
adv_dvc          7459 drivers/scsi/advansys.c 		if ((adv_dvc->tagqng_able & tidmask) &&
adv_dvc          7468 drivers/scsi/advansys.c 					 adv_dvc->max_dvc_qng);
adv_dvc          7472 drivers/scsi/advansys.c 	if ((adv_dvc->tagqng_able & tidmask) && sdev->tagged_supported)
adv_dvc          7473 drivers/scsi/advansys.c 		scsi_change_queue_depth(sdev, adv_dvc->max_dvc_qng);
adv_dvc          8486 drivers/scsi/advansys.c 		ADV_DVC_VAR *adv_dvc = &boardp->dvc_var.adv_dvc_var;
adv_dvc          8509 drivers/scsi/advansys.c 		ret = AdvExeScsiQueue(adv_dvc, adv_reqp);
adv_dvc          8510 drivers/scsi/advansys.c 		err_code = adv_dvc->err_code;
adv_dvc          10812 drivers/scsi/advansys.c 	struct adv_dvc_var *adv_dvc = &board->dvc_var.adv_dvc_var;
adv_dvc          10820 drivers/scsi/advansys.c 	adv_dvc->carrier = dma_alloc_coherent(board->dev,
adv_dvc          10821 drivers/scsi/advansys.c 		ADV_CARRIER_BUFSIZE, &adv_dvc->carrier_addr, GFP_KERNEL);
adv_dvc          10822 drivers/scsi/advansys.c 	ASC_DBG(1, "carrier 0x%p\n", adv_dvc->carrier);
adv_dvc          10824 drivers/scsi/advansys.c 	if (!adv_dvc->carrier)
adv_dvc          10832 drivers/scsi/advansys.c 	board->adv_reqp_size = adv_dvc->max_host_qng * sizeof(adv_req_t);
adv_dvc          10844 drivers/scsi/advansys.c 		adv_dvc->max_host_qng, board->adv_reqp_size);
adv_dvc          10860 drivers/scsi/advansys.c 	if (adv_dvc->chip_type == ADV_CHIP_ASC3550) {
adv_dvc          10862 drivers/scsi/advansys.c 		warn_code = AdvInitAsc3550Driver(adv_dvc);
adv_dvc          10863 drivers/scsi/advansys.c 	} else if (adv_dvc->chip_type == ADV_CHIP_ASC38C0800) {
adv_dvc          10865 drivers/scsi/advansys.c 		warn_code = AdvInitAsc38C0800Driver(adv_dvc);
adv_dvc          10868 drivers/scsi/advansys.c 		warn_code = AdvInitAsc38C1600Driver(adv_dvc);
adv_dvc          10870 drivers/scsi/advansys.c 	err_code = adv_dvc->err_code;
adv_dvc          10888 drivers/scsi/advansys.c 	struct adv_dvc_var *adv_dvc = &board->dvc_var.adv_dvc_var;
adv_dvc          10890 drivers/scsi/advansys.c 	if (adv_dvc->carrier) {
adv_dvc          10892 drivers/scsi/advansys.c 				  adv_dvc->carrier, adv_dvc->carrier_addr);
adv_dvc          10893 drivers/scsi/advansys.c 		adv_dvc->carrier = NULL;