scb_data         1056 drivers/scsi/aic7xxx/aic79xx.h 	struct scb_data		  scb_data;
scb_data          521 drivers/scsi/aic7xxx/aic79xx_core.c 	ahd_dmamap_sync(ahd, ahd->scb_data.hscb_dmat,
scb_data          533 drivers/scsi/aic7xxx/aic79xx_core.c 	ahd_dmamap_sync(ahd, ahd->scb_data.sg_dmat,
scb_data          542 drivers/scsi/aic7xxx/aic79xx_core.c 	ahd_dmamap_sync(ahd, ahd->scb_data.sense_dmat,
scb_data          794 drivers/scsi/aic7xxx/aic79xx_core.c 	scb = ahd->scb_data.scbindex[tag];
scb_data          834 drivers/scsi/aic7xxx/aic79xx_core.c 	ahd->scb_data.scbindex[SCB_GET_TAG(scb)] = scb;
scb_data         6381 drivers/scsi/aic7xxx/aic79xx_core.c 	for (i = 0; i < ahd->scb_data.maxhscbs; i++) {
scb_data         6395 drivers/scsi/aic7xxx/aic79xx_core.c 	struct	scb_data *scb_data;
scb_data         6398 drivers/scsi/aic7xxx/aic79xx_core.c 	scb_data = &ahd->scb_data;
scb_data         6399 drivers/scsi/aic7xxx/aic79xx_core.c 	TAILQ_INIT(&scb_data->free_scbs);
scb_data         6401 drivers/scsi/aic7xxx/aic79xx_core.c 		LIST_INIT(&scb_data->free_scb_lists[i]);
scb_data         6402 drivers/scsi/aic7xxx/aic79xx_core.c 	LIST_INIT(&scb_data->any_dev_free_scb_list);
scb_data         6403 drivers/scsi/aic7xxx/aic79xx_core.c 	SLIST_INIT(&scb_data->hscb_maps);
scb_data         6404 drivers/scsi/aic7xxx/aic79xx_core.c 	SLIST_INIT(&scb_data->sg_maps);
scb_data         6405 drivers/scsi/aic7xxx/aic79xx_core.c 	SLIST_INIT(&scb_data->sense_maps);
scb_data         6408 drivers/scsi/aic7xxx/aic79xx_core.c 	scb_data->maxhscbs = ahd_probe_scbs(ahd);
scb_data         6409 drivers/scsi/aic7xxx/aic79xx_core.c 	if (scb_data->maxhscbs == 0) {
scb_data         6434 drivers/scsi/aic7xxx/aic79xx_core.c 			       /*flags*/0, &scb_data->hscb_dmat) != 0) {
scb_data         6438 drivers/scsi/aic7xxx/aic79xx_core.c 	scb_data->init_level++;
scb_data         6448 drivers/scsi/aic7xxx/aic79xx_core.c 			       /*flags*/0, &scb_data->sg_dmat) != 0) {
scb_data         6457 drivers/scsi/aic7xxx/aic79xx_core.c 	scb_data->init_level++;
scb_data         6467 drivers/scsi/aic7xxx/aic79xx_core.c 			       /*flags*/0, &scb_data->sense_dmat) != 0) {
scb_data         6471 drivers/scsi/aic7xxx/aic79xx_core.c 	scb_data->init_level++;
scb_data         6476 drivers/scsi/aic7xxx/aic79xx_core.c 	if (scb_data->numscbs == 0) {
scb_data         6509 drivers/scsi/aic7xxx/aic79xx_core.c 	TAILQ_FOREACH(scb, &ahd->scb_data.free_scbs, links.tqe) {
scb_data         6523 drivers/scsi/aic7xxx/aic79xx_core.c 	LIST_FOREACH(scb, &ahd->scb_data.any_dev_free_scb_list, links.le) {
scb_data         6534 drivers/scsi/aic7xxx/aic79xx_core.c 	struct scb_data *scb_data;
scb_data         6536 drivers/scsi/aic7xxx/aic79xx_core.c 	scb_data = &ahd->scb_data;
scb_data         6537 drivers/scsi/aic7xxx/aic79xx_core.c 	if (scb_data == NULL)
scb_data         6540 drivers/scsi/aic7xxx/aic79xx_core.c 	switch (scb_data->init_level) {
scb_data         6546 drivers/scsi/aic7xxx/aic79xx_core.c 		while ((sns_map = SLIST_FIRST(&scb_data->sense_maps)) != NULL) {
scb_data         6547 drivers/scsi/aic7xxx/aic79xx_core.c 			SLIST_REMOVE_HEAD(&scb_data->sense_maps, links);
scb_data         6548 drivers/scsi/aic7xxx/aic79xx_core.c 			ahd_dmamap_unload(ahd, scb_data->sense_dmat,
scb_data         6550 drivers/scsi/aic7xxx/aic79xx_core.c 			ahd_dmamem_free(ahd, scb_data->sense_dmat,
scb_data         6554 drivers/scsi/aic7xxx/aic79xx_core.c 		ahd_dma_tag_destroy(ahd, scb_data->sense_dmat);
scb_data         6561 drivers/scsi/aic7xxx/aic79xx_core.c 		while ((sg_map = SLIST_FIRST(&scb_data->sg_maps)) != NULL) {
scb_data         6562 drivers/scsi/aic7xxx/aic79xx_core.c 			SLIST_REMOVE_HEAD(&scb_data->sg_maps, links);
scb_data         6563 drivers/scsi/aic7xxx/aic79xx_core.c 			ahd_dmamap_unload(ahd, scb_data->sg_dmat,
scb_data         6565 drivers/scsi/aic7xxx/aic79xx_core.c 			ahd_dmamem_free(ahd, scb_data->sg_dmat,
scb_data         6569 drivers/scsi/aic7xxx/aic79xx_core.c 		ahd_dma_tag_destroy(ahd, scb_data->sg_dmat);
scb_data         6576 drivers/scsi/aic7xxx/aic79xx_core.c 		while ((hscb_map = SLIST_FIRST(&scb_data->hscb_maps)) != NULL) {
scb_data         6577 drivers/scsi/aic7xxx/aic79xx_core.c 			SLIST_REMOVE_HEAD(&scb_data->hscb_maps, links);
scb_data         6578 drivers/scsi/aic7xxx/aic79xx_core.c 			ahd_dmamap_unload(ahd, scb_data->hscb_dmat,
scb_data         6580 drivers/scsi/aic7xxx/aic79xx_core.c 			ahd_dmamem_free(ahd, scb_data->hscb_dmat,
scb_data         6584 drivers/scsi/aic7xxx/aic79xx_core.c 		ahd_dma_tag_destroy(ahd, scb_data->hscb_dmat);
scb_data         6658 drivers/scsi/aic7xxx/aic79xx_core.c 	free_list = &ahd->scb_data.free_scb_lists[col_idx];
scb_data         6659 drivers/scsi/aic7xxx/aic79xx_core.c 	free_tailq = &ahd->scb_data.free_scbs;
scb_data         6679 drivers/scsi/aic7xxx/aic79xx_core.c 	free_list = &ahd->scb_data.free_scb_lists[col_idx];
scb_data         6680 drivers/scsi/aic7xxx/aic79xx_core.c 	free_tailq = &ahd->scb_data.free_scbs;
scb_data         6711 drivers/scsi/aic7xxx/aic79xx_core.c 	TAILQ_FOREACH(scb, &ahd->scb_data.free_scbs, links.tqe) {
scb_data         6717 drivers/scsi/aic7xxx/aic79xx_core.c 	if ((scb = LIST_FIRST(&ahd->scb_data.any_dev_free_scb_list)) == NULL) {
scb_data         6745 drivers/scsi/aic7xxx/aic79xx_core.c 	ahd->scb_data.scbindex[SCB_GET_TAG(scb)] = NULL;
scb_data         6752 drivers/scsi/aic7xxx/aic79xx_core.c 		LIST_INSERT_HEAD(&ahd->scb_data.any_dev_free_scb_list,
scb_data         6762 drivers/scsi/aic7xxx/aic79xx_core.c 		LIST_INSERT_HEAD(&ahd->scb_data.any_dev_free_scb_list,
scb_data         6764 drivers/scsi/aic7xxx/aic79xx_core.c 		LIST_INSERT_HEAD(&ahd->scb_data.any_dev_free_scb_list,
scb_data         6784 drivers/scsi/aic7xxx/aic79xx_core.c 		LIST_INSERT_HEAD(&ahd->scb_data.any_dev_free_scb_list,
scb_data         6794 drivers/scsi/aic7xxx/aic79xx_core.c 	struct scb_data *scb_data;
scb_data         6808 drivers/scsi/aic7xxx/aic79xx_core.c 	scb_data = &ahd->scb_data;
scb_data         6809 drivers/scsi/aic7xxx/aic79xx_core.c 	if (scb_data->numscbs >= AHD_SCB_MAX_ALLOC)
scb_data         6813 drivers/scsi/aic7xxx/aic79xx_core.c 	if (scb_data->scbs_left != 0) {
scb_data         6816 drivers/scsi/aic7xxx/aic79xx_core.c 		offset = (PAGE_SIZE / sizeof(*hscb)) - scb_data->scbs_left;
scb_data         6817 drivers/scsi/aic7xxx/aic79xx_core.c 		hscb_map = SLIST_FIRST(&scb_data->hscb_maps);
scb_data         6827 drivers/scsi/aic7xxx/aic79xx_core.c 		if (ahd_dmamem_alloc(ahd, scb_data->hscb_dmat,
scb_data         6834 drivers/scsi/aic7xxx/aic79xx_core.c 		SLIST_INSERT_HEAD(&scb_data->hscb_maps, hscb_map, links);
scb_data         6836 drivers/scsi/aic7xxx/aic79xx_core.c 		ahd_dmamap_load(ahd, scb_data->hscb_dmat, hscb_map->dmamap,
scb_data         6842 drivers/scsi/aic7xxx/aic79xx_core.c 		scb_data->scbs_left = PAGE_SIZE / sizeof(*hscb);
scb_data         6845 drivers/scsi/aic7xxx/aic79xx_core.c 	if (scb_data->sgs_left != 0) {
scb_data         6849 drivers/scsi/aic7xxx/aic79xx_core.c 		       - scb_data->sgs_left) * ahd_sglist_size(ahd);
scb_data         6850 drivers/scsi/aic7xxx/aic79xx_core.c 		sg_map = SLIST_FIRST(&scb_data->sg_maps);
scb_data         6860 drivers/scsi/aic7xxx/aic79xx_core.c 		if (ahd_dmamem_alloc(ahd, scb_data->sg_dmat,
scb_data         6867 drivers/scsi/aic7xxx/aic79xx_core.c 		SLIST_INSERT_HEAD(&scb_data->sg_maps, sg_map, links);
scb_data         6869 drivers/scsi/aic7xxx/aic79xx_core.c 		ahd_dmamap_load(ahd, scb_data->sg_dmat, sg_map->dmamap,
scb_data         6875 drivers/scsi/aic7xxx/aic79xx_core.c 		scb_data->sgs_left =
scb_data         6883 drivers/scsi/aic7xxx/aic79xx_core.c 	if (scb_data->sense_left != 0) {
scb_data         6886 drivers/scsi/aic7xxx/aic79xx_core.c 		offset = PAGE_SIZE - (AHD_SENSE_BUFSIZE * scb_data->sense_left);
scb_data         6887 drivers/scsi/aic7xxx/aic79xx_core.c 		sense_map = SLIST_FIRST(&scb_data->sense_maps);
scb_data         6897 drivers/scsi/aic7xxx/aic79xx_core.c 		if (ahd_dmamem_alloc(ahd, scb_data->sense_dmat,
scb_data         6904 drivers/scsi/aic7xxx/aic79xx_core.c 		SLIST_INSERT_HEAD(&scb_data->sense_maps, sense_map, links);
scb_data         6906 drivers/scsi/aic7xxx/aic79xx_core.c 		ahd_dmamap_load(ahd, scb_data->sense_dmat, sense_map->dmamap,
scb_data         6912 drivers/scsi/aic7xxx/aic79xx_core.c 		scb_data->sense_left = PAGE_SIZE / AHD_SENSE_BUFSIZE;
scb_data         6919 drivers/scsi/aic7xxx/aic79xx_core.c 	newcount = min(scb_data->sense_left, scb_data->scbs_left);
scb_data         6920 drivers/scsi/aic7xxx/aic79xx_core.c 	newcount = min(newcount, scb_data->sgs_left);
scb_data         6921 drivers/scsi/aic7xxx/aic79xx_core.c 	newcount = min(newcount, (AHD_SCB_MAX_ALLOC - scb_data->numscbs));
scb_data         6958 drivers/scsi/aic7xxx/aic79xx_core.c 		next_scb->hscb->tag = ahd_htole16(scb_data->numscbs);
scb_data         6959 drivers/scsi/aic7xxx/aic79xx_core.c 		col_tag = scb_data->numscbs ^ 0x100;
scb_data         6970 drivers/scsi/aic7xxx/aic79xx_core.c 		scb_data->numscbs++;
scb_data         6971 drivers/scsi/aic7xxx/aic79xx_core.c 		scb_data->sense_left--;
scb_data         6972 drivers/scsi/aic7xxx/aic79xx_core.c 		scb_data->scbs_left--;
scb_data         6973 drivers/scsi/aic7xxx/aic79xx_core.c 		scb_data->sgs_left--;
scb_data         6998 drivers/scsi/aic7xxx/aic79xx_core.c 		ahd->scb_data.maxhscbs);
scb_data         8266 drivers/scsi/aic7xxx/aic79xx_core.c 		if (scbid >= ahd->scb_data.numscbs) {
scb_data         8269 drivers/scsi/aic7xxx/aic79xx_core.c 			       ahd_name(ahd), scbid, ahd->scb_data.numscbs);
scb_data         8392 drivers/scsi/aic7xxx/aic79xx_core.c 		if (scbid >= ahd->scb_data.numscbs) {
scb_data         8395 drivers/scsi/aic7xxx/aic79xx_core.c 			       ahd_name(ahd), scbid, ahd->scb_data.numscbs);
scb_data         9751 drivers/scsi/aic7xxx/aic79xx_core.c 	       ahd->scb_data.numscbs, ahd_inw(ahd, CMDS_PENDING),
scb_data         9777 drivers/scsi/aic7xxx/aic79xx_core.c 	TAILQ_FOREACH(scb, &ahd->scb_data.free_scbs, links.tqe) {
scb_data         9787 drivers/scsi/aic7xxx/aic79xx_core.c 	LIST_FOREACH(scb, &ahd->scb_data.any_dev_free_scb_list, links.le) {
scb_data          287 drivers/scsi/aic7xxx/aic79xx_proc.c 		  ahd->scb_data.numscbs, AHD_NSEG);
scb_data          906 drivers/scsi/aic7xxx/aic7xxx.h 	struct scb_data		 *scb_data;
scb_data          390 drivers/scsi/aic7xxx/aic7xxx_core.c 	return (ahc->scb_data->hscb_busaddr
scb_data          397 drivers/scsi/aic7xxx/aic7xxx_core.c 	ahc_dmamap_sync(ahc, ahc->scb_data->hscb_dmat,
scb_data          398 drivers/scsi/aic7xxx/aic7xxx_core.c 			ahc->scb_data->hscb_dmamap,
scb_data          409 drivers/scsi/aic7xxx/aic7xxx_core.c 	ahc_dmamap_sync(ahc, ahc->scb_data->sg_dmat, scb->sg_map->sg_dmamap,
scb_data          524 drivers/scsi/aic7xxx/aic7xxx_core.c 	if ((scb = SLIST_FIRST(&ahc->scb_data->free_scbs)) == NULL) {
scb_data          526 drivers/scsi/aic7xxx/aic7xxx_core.c 		scb = SLIST_FIRST(&ahc->scb_data->free_scbs);
scb_data          530 drivers/scsi/aic7xxx/aic7xxx_core.c 	SLIST_REMOVE_HEAD(&ahc->scb_data->free_scbs, links.sle);
scb_data          544 drivers/scsi/aic7xxx/aic7xxx_core.c 	ahc->scb_data->scbindex[hscb->tag] = NULL;
scb_data          548 drivers/scsi/aic7xxx/aic7xxx_core.c 	SLIST_INSERT_HEAD(&ahc->scb_data->free_scbs, scb, links.sle);
scb_data          559 drivers/scsi/aic7xxx/aic7xxx_core.c 	scb = ahc->scb_data->scbindex[tag];
scb_data          600 drivers/scsi/aic7xxx/aic7xxx_core.c 	ahc->scb_data->scbindex[scb->hscb->tag] = scb;
scb_data          651 drivers/scsi/aic7xxx/aic7xxx_core.c 	offset = scb - ahc->scb_data->scbarray;
scb_data          652 drivers/scsi/aic7xxx/aic7xxx_core.c 	return (&ahc->scb_data->sense[offset]);
scb_data          660 drivers/scsi/aic7xxx/aic7xxx_core.c 	offset = scb - ahc->scb_data->scbarray;
scb_data          661 drivers/scsi/aic7xxx/aic7xxx_core.c 	return (ahc->scb_data->sense_busaddr
scb_data         1481 drivers/scsi/aic7xxx/aic7xxx_core.c 		       ahc->scb_data->hscbs[scbptr].tag);
scb_data         2736 drivers/scsi/aic7xxx/aic7xxx_core.c 	for (i = 0; i < ahc->scb_data->maxhscbs; i++) {
scb_data         4459 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (ahc->scb_data == NULL) {
scb_data         4460 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc->scb_data = kzalloc(sizeof(*ahc->scb_data), GFP_ATOMIC);
scb_data         4461 drivers/scsi/aic7xxx/aic7xxx_core.c 		if (ahc->scb_data == NULL)
scb_data         4718 drivers/scsi/aic7xxx/aic7xxx_core.c 	for (i = 0; i < ahc->scb_data->maxhscbs; i++) {
scb_data         4762 drivers/scsi/aic7xxx/aic7xxx_core.c 	struct scb_data *scb_data;
scb_data         4764 drivers/scsi/aic7xxx/aic7xxx_core.c 	scb_data = ahc->scb_data;
scb_data         4765 drivers/scsi/aic7xxx/aic7xxx_core.c 	SLIST_INIT(&scb_data->free_scbs);
scb_data         4766 drivers/scsi/aic7xxx/aic7xxx_core.c 	SLIST_INIT(&scb_data->sg_maps);
scb_data         4769 drivers/scsi/aic7xxx/aic7xxx_core.c 	scb_data->scbarray = kcalloc(AHC_SCB_MAX_ALLOC, sizeof(struct scb),
scb_data         4771 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (scb_data->scbarray == NULL)
scb_data         4776 drivers/scsi/aic7xxx/aic7xxx_core.c 	scb_data->maxhscbs = ahc_probe_scbs(ahc);
scb_data         4777 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (ahc->scb_data->maxhscbs == 0) {
scb_data         4801 drivers/scsi/aic7xxx/aic7xxx_core.c 			       /*flags*/0, &scb_data->hscb_dmat) != 0) {
scb_data         4805 drivers/scsi/aic7xxx/aic7xxx_core.c 	scb_data->init_level++;
scb_data         4808 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (ahc_dmamem_alloc(ahc, scb_data->hscb_dmat,
scb_data         4809 drivers/scsi/aic7xxx/aic7xxx_core.c 			     (void **)&scb_data->hscbs,
scb_data         4810 drivers/scsi/aic7xxx/aic7xxx_core.c 			     BUS_DMA_NOWAIT, &scb_data->hscb_dmamap) != 0) {
scb_data         4814 drivers/scsi/aic7xxx/aic7xxx_core.c 	scb_data->init_level++;
scb_data         4817 drivers/scsi/aic7xxx/aic7xxx_core.c 	ahc_dmamap_load(ahc, scb_data->hscb_dmat, scb_data->hscb_dmamap,
scb_data         4818 drivers/scsi/aic7xxx/aic7xxx_core.c 			scb_data->hscbs,
scb_data         4820 drivers/scsi/aic7xxx/aic7xxx_core.c 			ahc_dmamap_cb, &scb_data->hscb_busaddr, /*flags*/0);
scb_data         4822 drivers/scsi/aic7xxx/aic7xxx_core.c 	scb_data->init_level++;
scb_data         4833 drivers/scsi/aic7xxx/aic7xxx_core.c 			       /*flags*/0, &scb_data->sense_dmat) != 0) {
scb_data         4837 drivers/scsi/aic7xxx/aic7xxx_core.c 	scb_data->init_level++;
scb_data         4840 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (ahc_dmamem_alloc(ahc, scb_data->sense_dmat,
scb_data         4841 drivers/scsi/aic7xxx/aic7xxx_core.c 			     (void **)&scb_data->sense,
scb_data         4842 drivers/scsi/aic7xxx/aic7xxx_core.c 			     BUS_DMA_NOWAIT, &scb_data->sense_dmamap) != 0) {
scb_data         4846 drivers/scsi/aic7xxx/aic7xxx_core.c 	scb_data->init_level++;
scb_data         4849 drivers/scsi/aic7xxx/aic7xxx_core.c 	ahc_dmamap_load(ahc, scb_data->sense_dmat, scb_data->sense_dmamap,
scb_data         4850 drivers/scsi/aic7xxx/aic7xxx_core.c 			scb_data->sense,
scb_data         4852 drivers/scsi/aic7xxx/aic7xxx_core.c 			ahc_dmamap_cb, &scb_data->sense_busaddr, /*flags*/0);
scb_data         4854 drivers/scsi/aic7xxx/aic7xxx_core.c 	scb_data->init_level++;
scb_data         4864 drivers/scsi/aic7xxx/aic7xxx_core.c 			       /*flags*/0, &scb_data->sg_dmat) != 0) {
scb_data         4868 drivers/scsi/aic7xxx/aic7xxx_core.c 	scb_data->init_level++;
scb_data         4871 drivers/scsi/aic7xxx/aic7xxx_core.c 	memset(scb_data->hscbs, 0,
scb_data         4875 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (scb_data->numscbs == 0) {
scb_data         4900 drivers/scsi/aic7xxx/aic7xxx_core.c 	struct scb_data *scb_data;
scb_data         4902 drivers/scsi/aic7xxx/aic7xxx_core.c 	scb_data = ahc->scb_data;
scb_data         4903 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (scb_data == NULL)
scb_data         4906 drivers/scsi/aic7xxx/aic7xxx_core.c 	switch (scb_data->init_level) {
scb_data         4912 drivers/scsi/aic7xxx/aic7xxx_core.c 		while ((sg_map = SLIST_FIRST(&scb_data->sg_maps))!= NULL) {
scb_data         4913 drivers/scsi/aic7xxx/aic7xxx_core.c 			SLIST_REMOVE_HEAD(&scb_data->sg_maps, links);
scb_data         4914 drivers/scsi/aic7xxx/aic7xxx_core.c 			ahc_dmamap_unload(ahc, scb_data->sg_dmat,
scb_data         4916 drivers/scsi/aic7xxx/aic7xxx_core.c 			ahc_dmamem_free(ahc, scb_data->sg_dmat,
scb_data         4921 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc_dma_tag_destroy(ahc, scb_data->sg_dmat);
scb_data         4925 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc_dmamap_unload(ahc, scb_data->sense_dmat,
scb_data         4926 drivers/scsi/aic7xxx/aic7xxx_core.c 				  scb_data->sense_dmamap);
scb_data         4929 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc_dmamem_free(ahc, scb_data->sense_dmat, scb_data->sense,
scb_data         4930 drivers/scsi/aic7xxx/aic7xxx_core.c 				scb_data->sense_dmamap);
scb_data         4931 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc_dmamap_destroy(ahc, scb_data->sense_dmat,
scb_data         4932 drivers/scsi/aic7xxx/aic7xxx_core.c 				   scb_data->sense_dmamap);
scb_data         4935 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc_dma_tag_destroy(ahc, scb_data->sense_dmat);
scb_data         4938 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc_dmamap_unload(ahc, scb_data->hscb_dmat,
scb_data         4939 drivers/scsi/aic7xxx/aic7xxx_core.c 				  scb_data->hscb_dmamap);
scb_data         4942 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc_dmamem_free(ahc, scb_data->hscb_dmat, scb_data->hscbs,
scb_data         4943 drivers/scsi/aic7xxx/aic7xxx_core.c 				scb_data->hscb_dmamap);
scb_data         4944 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc_dmamap_destroy(ahc, scb_data->hscb_dmat,
scb_data         4945 drivers/scsi/aic7xxx/aic7xxx_core.c 				   scb_data->hscb_dmamap);
scb_data         4948 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc_dma_tag_destroy(ahc, scb_data->hscb_dmat);
scb_data         4953 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (scb_data->scbarray != NULL)
scb_data         4954 drivers/scsi/aic7xxx/aic7xxx_core.c 		kfree(scb_data->scbarray);
scb_data         4960 drivers/scsi/aic7xxx/aic7xxx_core.c 	struct scb_data *scb_data;
scb_data         4968 drivers/scsi/aic7xxx/aic7xxx_core.c 	scb_data = ahc->scb_data;
scb_data         4969 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (scb_data->numscbs >= AHC_SCB_MAX_ALLOC)
scb_data         4973 drivers/scsi/aic7xxx/aic7xxx_core.c 	next_scb = &scb_data->scbarray[scb_data->numscbs];
scb_data         4981 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (ahc_dmamem_alloc(ahc, scb_data->sg_dmat,
scb_data         4988 drivers/scsi/aic7xxx/aic7xxx_core.c 	SLIST_INSERT_HEAD(&scb_data->sg_maps, sg_map, links);
scb_data         4990 drivers/scsi/aic7xxx/aic7xxx_core.c 	ahc_dmamap_load(ahc, scb_data->sg_dmat, sg_map->sg_dmamap,
scb_data         4998 drivers/scsi/aic7xxx/aic7xxx_core.c 	newcount = min(newcount, (AHC_SCB_MAX_ALLOC - scb_data->numscbs));
scb_data         5015 drivers/scsi/aic7xxx/aic7xxx_core.c 		next_scb->hscb = &scb_data->hscbs[scb_data->numscbs];
scb_data         5016 drivers/scsi/aic7xxx/aic7xxx_core.c 		next_scb->hscb->tag = ahc->scb_data->numscbs;
scb_data         5017 drivers/scsi/aic7xxx/aic7xxx_core.c 		SLIST_INSERT_HEAD(&ahc->scb_data->free_scbs,
scb_data         5022 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc->scb_data->numscbs++;
scb_data         5062 drivers/scsi/aic7xxx/aic7xxx_core.c 			ahc->scb_data->maxhscbs, AHC_MAX_QUEUE);
scb_data         5064 drivers/scsi/aic7xxx/aic7xxx_core.c 		sprintf(buf, "%d SCBs", ahc->scb_data->maxhscbs);
scb_data         5145 drivers/scsi/aic7xxx/aic7xxx_core.c 	physaddr = ahc->scb_data->hscb_busaddr;
scb_data         5372 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (ahc->scb_data->maxhscbs == 0)
scb_data         5395 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (ahc->scb_data->maxhscbs < AHC_SCB_MAX_ALLOC) {
scb_data         5950 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc->scb_data->scbindex[scb->hscb->tag] = NULL;
scb_data         5976 drivers/scsi/aic7xxx/aic7xxx_core.c 		if (scb_index >= ahc->scb_data->numscbs) {
scb_data         5979 drivers/scsi/aic7xxx/aic7xxx_core.c 			       scb_index, ahc->scb_data->numscbs);
scb_data         6162 drivers/scsi/aic7xxx/aic7xxx_core.c 		if (scb_index >= ahc->scb_data->numscbs) {
scb_data         6165 drivers/scsi/aic7xxx/aic7xxx_core.c 			       scb_index, ahc->scb_data->numscbs);
scb_data         6388 drivers/scsi/aic7xxx/aic7xxx_core.c 	for (i = 0; i < ahc->scb_data->maxhscbs; i++) {
scb_data         7197 drivers/scsi/aic7xxx/aic7xxx_core.c 	printk("\nSCB count = %d\n", ahc->scb_data->numscbs);
scb_data         7255 drivers/scsi/aic7xxx/aic7xxx_core.c 	for (i = 0; i < ahc->scb_data->maxhscbs; i++) {
scb_data         7288 drivers/scsi/aic7xxx/aic7xxx_core.c 	SLIST_FOREACH(scb, &ahc->scb_data->free_scbs, links.sle) {
scb_data          302 drivers/scsi/aic7xxx/aic7xxx_proc.c 		  ahc->scb_data->numscbs, AHC_NSEG);
scb_data          105 sound/pci/cs46xx/cs46xx_lib.h 						   u32 * scb_data, u32 dest);
scb_data          882 sound/pci/cs46xx/dsp_spos.c static void _dsp_create_scb (struct snd_cs46xx *chip, u32 * scb_data, u32 dest)
scb_data          890 sound/pci/cs46xx/dsp_spos.c 			spdst, scb_data[i]);
scb_data          891 sound/pci/cs46xx/dsp_spos.c 		writel(scb_data[i],spdst);
scb_data          974 sound/pci/cs46xx/dsp_spos.c cs46xx_dsp_create_scb (struct snd_cs46xx *chip, char * name, u32 * scb_data, u32 dest)
scb_data          980 sound/pci/cs46xx/dsp_spos.c 	scb_data = kmemdup(scb_data, SCB_BYTES, GFP_KERNEL);
scb_data          981 sound/pci/cs46xx/dsp_spos.c 	if (!scb_data)
scb_data          987 sound/pci/cs46xx/dsp_spos.c 		desc->data = scb_data;
scb_data          988 sound/pci/cs46xx/dsp_spos.c 		_dsp_create_scb(chip,scb_data,dest);
scb_data          992 sound/pci/cs46xx/dsp_spos.c 		kfree(scb_data);
scb_data          265 sound/pci/cs46xx/dsp_spos_scb_lib.c _dsp_create_generic_scb (struct snd_cs46xx *chip, char * name, u32 * scb_data, u32 dest,
scb_data          279 sound/pci/cs46xx/dsp_spos_scb_lib.c 	scb_data[SCBsubListPtr] = 
scb_data          282 sound/pci/cs46xx/dsp_spos_scb_lib.c 	scb_data[SCBfuncEntryPtr] &= 0xFFFF0000;
scb_data          283 sound/pci/cs46xx/dsp_spos_scb_lib.c 	scb_data[SCBfuncEntryPtr] |= task_entry->address;
scb_data          287 sound/pci/cs46xx/dsp_spos_scb_lib.c 	scb = cs46xx_dsp_create_scb(chip,name,scb_data,dest);
scb_data          343 sound/pci/cs46xx/dsp_spos_scb_lib.c cs46xx_dsp_create_generic_scb (struct snd_cs46xx *chip, char * name, u32 * scb_data,
scb_data          359 sound/pci/cs46xx/dsp_spos_scb_lib.c 	return _dsp_create_generic_scb (chip,name,scb_data,dest,task_entry,