tag | line | file | source code |
dma_sectors | 73 | drivers/scsi/scsi.c | static unsigned int dma_sectors = 0; |
dma_sectors | 2159 | drivers/scsi/scsi.c | for(i=0;i < (dma_sectors >> (MALLOC_PAGEBITS - 9)); i++) |
dma_sectors | 2186 | drivers/scsi/scsi.c | for (page = 0; page < (dma_sectors >> 3); page++) |
dma_sectors | 2195 | drivers/scsi/scsi.c | if (page == (dma_sectors >> 3)) panic("scsi_free:Bad offset"); |
dma_sectors | 2197 | drivers/scsi/scsi.c | if(sector >= dma_sectors) panic ("scsi_free:Bad page"); |
dma_sectors | 2529 | drivers/scsi/scsi.c | if( dma_free_sectors != dma_sectors ) |
dma_sectors | 2530 | drivers/scsi/scsi.c | panic("SCSI DMA pool memory leak %d %d\n",dma_free_sectors,dma_sectors); |
dma_sectors | 2532 | drivers/scsi/scsi.c | for(i=0; i < dma_sectors >> 3; i++) |
dma_sectors | 2536 | drivers/scsi/scsi.c | (dma_sectors>>3)*sizeof(*dma_malloc_pages)); |
dma_sectors | 2539 | drivers/scsi/scsi.c | scsi_init_free(dma_malloc_freelist, dma_sectors>>3); |
dma_sectors | 2541 | drivers/scsi/scsi.c | dma_sectors = 0; |
dma_sectors | 2582 | drivers/scsi/scsi.c | if( new_dma_sectors < dma_sectors ) |
dma_sectors | 2583 | drivers/scsi/scsi.c | new_dma_sectors = dma_sectors; |
dma_sectors | 2601 | drivers/scsi/scsi.c | if( new_dma_sectors > dma_sectors ) { |
dma_sectors | 2602 | drivers/scsi/scsi.c | for(i=dma_sectors >> 3; i< new_dma_sectors >> 3; i++) |
dma_sectors | 2614 | drivers/scsi/scsi.c | memcpy(new_dma_malloc_freelist, dma_malloc_freelist, dma_sectors >> 3); |
dma_sectors | 2615 | drivers/scsi/scsi.c | scsi_init_free(dma_malloc_freelist, dma_sectors>>3); |
dma_sectors | 2622 | drivers/scsi/scsi.c | (dma_sectors>>3)*sizeof(*dma_malloc_pages)); |
dma_sectors | 2624 | drivers/scsi/scsi.c | (dma_sectors>>3)*sizeof(*dma_malloc_pages)); |
dma_sectors | 2627 | drivers/scsi/scsi.c | dma_free_sectors += new_dma_sectors - dma_sectors; |
dma_sectors | 2629 | drivers/scsi/scsi.c | dma_sectors = new_dma_sectors; |
dma_sectors | 3117 | drivers/scsi/scsi.c | dma_sectors = PAGE_SIZE / 512; |
dma_sectors | 3118 | drivers/scsi/scsi.c | dma_free_sectors= dma_sectors; |
dma_sectors | 3126 | drivers/scsi/scsi.c | scsi_init_malloc(dma_sectors >> 3, GFP_ATOMIC); |
dma_sectors | 3127 | drivers/scsi/scsi.c | memset(dma_malloc_freelist, 0, dma_sectors >> 3); |
dma_sectors | 3131 | drivers/scsi/scsi.c | scsi_init_malloc((dma_sectors >> 3)*sizeof(*dma_malloc_pages), GFP_ATOMIC); |