• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/scsi/aic7xxx/

Lines Matching refs:scb_data

910 		       ahc->scb_data->hscbs[scbptr].tag);
2144 for (i = 0; i < ahc->scb_data->maxhscbs; i++) {
3859 if (ahc->scb_data == NULL) {
3860 ahc->scb_data = malloc(sizeof(*ahc->scb_data),
3862 if (ahc->scb_data == NULL)
3864 memset(ahc->scb_data, 0, sizeof(*ahc->scb_data));
4126 for (i = 0; i < ahc->scb_data->maxhscbs; i++) {
4170 struct scb_data *scb_data;
4172 scb_data = ahc->scb_data;
4173 SLIST_INIT(&scb_data->free_scbs);
4174 SLIST_INIT(&scb_data->sg_maps);
4177 scb_data->scbarray =
4180 if (scb_data->scbarray == NULL)
4182 memset(scb_data->scbarray, 0, sizeof(struct scb) * AHC_SCB_MAX_ALLOC);
4186 scb_data->maxhscbs = ahc_probe_scbs(ahc);
4187 if (ahc->scb_data->maxhscbs == 0) {
4211 /*flags*/0, &scb_data->hscb_dmat) != 0) {
4215 scb_data->init_level++;
4218 if (ahc_dmamem_alloc(ahc, scb_data->hscb_dmat,
4219 (void **)&scb_data->hscbs,
4220 BUS_DMA_NOWAIT, &scb_data->hscb_dmamap) != 0) {
4224 scb_data->init_level++;
4227 ahc_dmamap_load(ahc, scb_data->hscb_dmat, scb_data->hscb_dmamap,
4228 scb_data->hscbs,
4230 ahc_dmamap_cb, &scb_data->hscb_busaddr, /*flags*/0);
4232 scb_data->init_level++;
4243 /*flags*/0, &scb_data->sense_dmat) != 0) {
4247 scb_data->init_level++;
4250 if (ahc_dmamem_alloc(ahc, scb_data->sense_dmat,
4251 (void **)&scb_data->sense,
4252 BUS_DMA_NOWAIT, &scb_data->sense_dmamap) != 0) {
4256 scb_data->init_level++;
4259 ahc_dmamap_load(ahc, scb_data->sense_dmat, scb_data->sense_dmamap,
4260 scb_data->sense,
4262 ahc_dmamap_cb, &scb_data->sense_busaddr, /*flags*/0);
4264 scb_data->init_level++;
4274 /*flags*/0, &scb_data->sg_dmat) != 0) {
4278 scb_data->init_level++;
4281 memset(scb_data->hscbs, 0,
4285 if (scb_data->numscbs == 0) {
4310 struct scb_data *scb_data;
4312 scb_data = ahc->scb_data;
4313 if (scb_data == NULL)
4316 switch (scb_data->init_level) {
4322 while ((sg_map = SLIST_FIRST(&scb_data->sg_maps))!= NULL) {
4323 SLIST_REMOVE_HEAD(&scb_data->sg_maps, links);
4324 ahc_dmamap_unload(ahc, scb_data->sg_dmat,
4326 ahc_dmamem_free(ahc, scb_data->sg_dmat,
4331 ahc_dma_tag_destroy(ahc, scb_data->sg_dmat);
4334 ahc_dmamap_unload(ahc, scb_data->sense_dmat,
4335 scb_data->sense_dmamap);
4337 ahc_dmamem_free(ahc, scb_data->sense_dmat, scb_data->sense,
4338 scb_data->sense_dmamap);
4339 ahc_dmamap_destroy(ahc, scb_data->sense_dmat,
4340 scb_data->sense_dmamap);
4342 ahc_dma_tag_destroy(ahc, scb_data->sense_dmat);
4344 ahc_dmamap_unload(ahc, scb_data->hscb_dmat,
4345 scb_data->hscb_dmamap);
4347 ahc_dmamem_free(ahc, scb_data->hscb_dmat, scb_data->hscbs,
4348 scb_data->hscb_dmamap);
4349 ahc_dmamap_destroy(ahc, scb_data->hscb_dmat,
4350 scb_data->hscb_dmamap);
4352 ahc_dma_tag_destroy(ahc, scb_data->hscb_dmat);
4357 if (scb_data->scbarray != NULL)
4358 free(scb_data->scbarray, M_DEVBUF);
4364 struct scb_data *scb_data;
4372 scb_data = ahc->scb_data;
4373 if (scb_data->numscbs >= AHC_SCB_MAX_ALLOC)
4377 next_scb = &scb_data->scbarray[scb_data->numscbs];
4385 if (ahc_dmamem_alloc(ahc, scb_data->sg_dmat,
4392 SLIST_INSERT_HEAD(&scb_data->sg_maps, sg_map, links);
4394 ahc_dmamap_load(ahc, scb_data->sg_dmat, sg_map->sg_dmamap,
4402 newcount = min(newcount, (AHC_SCB_MAX_ALLOC - scb_data->numscbs));
4428 next_scb->hscb = &scb_data->hscbs[scb_data->numscbs];
4429 next_scb->hscb->tag = ahc->scb_data->numscbs;
4430 SLIST_INSERT_HEAD(&ahc->scb_data->free_scbs,
4435 ahc->scb_data->numscbs++;
4475 ahc->scb_data->maxhscbs, AHC_MAX_QUEUE);
4477 sprintf(buf, "%d SCBs", ahc->scb_data->maxhscbs);
4558 physaddr = ahc->scb_data->hscb_busaddr;
4803 if (ahc->scb_data->maxhscbs == 0)
4826 if (ahc->scb_data->maxhscbs < AHC_SCB_MAX_ALLOC) {
5375 ahc->scb_data->scbindex[scb->hscb->tag] = NULL;
5401 if (scb_index >= ahc->scb_data->numscbs) {
5404 scb_index, ahc->scb_data->numscbs);
5587 if (scb_index >= ahc->scb_data->numscbs) {
5590 scb_index, ahc->scb_data->numscbs);
5813 for (i = 0; i < ahc->scb_data->maxhscbs; i++) {
6612 printf("\nSCB count = %d\n", ahc->scb_data->numscbs);
6670 for (i = 0; i < ahc->scb_data->maxhscbs; i++) {
6703 SLIST_FOREACH(scb, &ahc->scb_data->free_scbs, links.sle) {