Lines Matching refs:dma_sectors
44 static unsigned int dma_sectors = 0; variable
86 for (i = 0; i < dma_sectors / SECTORS_PER_PAGE; i++) in scsi_malloc()
141 for (page = 0; page < dma_sectors / SECTORS_PER_PAGE; page++) { in scsi_free()
208 if (scsi_dma_free_sectors != dma_sectors) in scsi_resize_dma_pool()
209 panic("SCSI DMA pool memory leak %d %d\n", scsi_dma_free_sectors, dma_sectors); in scsi_resize_dma_pool()
211 for (i = 0; i < dma_sectors / SECTORS_PER_PAGE; i++) in scsi_resize_dma_pool()
219 dma_sectors = 0; in scsi_resize_dma_pool()
298 if (new_dma_sectors < dma_sectors) in scsi_resize_dma_pool()
299 new_dma_sectors = dma_sectors; in scsi_resize_dma_pool()
301 if (new_dma_sectors <= dma_sectors) { in scsi_resize_dma_pool()
329 if ((!out_of_space) && (new_dma_sectors > dma_sectors)) { in scsi_resize_dma_pool()
330 for (i = dma_sectors / SECTORS_PER_PAGE; in scsi_resize_dma_pool()
347 "wanted=%u, scaling\n", dma_sectors, new_dma_sectors); in scsi_resize_dma_pool()
352 if (new_dma_sectors <= dma_sectors) in scsi_resize_dma_pool()
367 size = (dma_sectors / SECTORS_PER_PAGE) * sizeof(FreeSectorBitmap); in scsi_resize_dma_pool()
374 size = (dma_sectors / SECTORS_PER_PAGE) * sizeof(*dma_malloc_pages); in scsi_resize_dma_pool()
378 scsi_dma_free_sectors += new_dma_sectors - dma_sectors; in scsi_resize_dma_pool()
380 dma_sectors = new_dma_sectors; in scsi_resize_dma_pool()
387 printk("resize_dma_pool: dma sectors = %d\n", dma_sectors); in scsi_resize_dma_pool()
413 dma_sectors = PAGE_SIZE / SECTOR_SIZE; in scsi_init_minimal_dma_pool()
414 scsi_dma_free_sectors = dma_sectors; in scsi_init_minimal_dma_pool()
421 size = (dma_sectors / SECTORS_PER_PAGE) * sizeof(FreeSectorBitmap); in scsi_init_minimal_dma_pool()
428 (dma_sectors / SECTORS_PER_PAGE) * sizeof(*dma_malloc_pages), in scsi_init_minimal_dma_pool()