Lines Matching refs:scb_count
2639 unsigned long scb_count = 0; in aic7xxx_allocate_scb() local
2671 scb_count = MIN( (i-1), p->scb_data->maxscbs - p->scb_data->numscbs); in aic7xxx_allocate_scb()
2672 scb_ap = (struct aic7xxx_scb *)kmalloc(sizeof (struct aic7xxx_scb) * scb_count in aic7xxx_allocate_scb()
2676 scb_dma = (struct aic7xxx_scb_dma *)&scb_ap[scb_count]; in aic7xxx_allocate_scb()
2678 pci_alloc_consistent(p->pdev, scb_size * scb_count, in aic7xxx_allocate_scb()
2685 bufs = (unsigned char *)&hsgp[scb_count * AIC7XXX_MAX_SG]; in aic7xxx_allocate_scb()
2691 p->host_no, -1, -1, -1, scb_count); in aic7xxx_allocate_scb()
2694 p->host_no, -1, -1, -1, scb_count); in aic7xxx_allocate_scb()
2697 memset(scb_ap, 0, sizeof (struct aic7xxx_scb) * scb_count); in aic7xxx_allocate_scb()
2700 scb_dma->dma_len = scb_size * scb_count; in aic7xxx_allocate_scb()
2701 for (i=0; i < scb_count; i++) in aic7xxx_allocate_scb()
2720 return(scb_count); in aic7xxx_allocate_scb()