Lines Matching refs:bouncesz
139 unsigned int bouncesz; in mmc_init_queue() local
141 bouncesz = MMC_QUEUE_BOUNCESZ; in mmc_init_queue()
143 if (bouncesz > host->max_req_size) in mmc_init_queue()
144 bouncesz = host->max_req_size; in mmc_init_queue()
145 if (bouncesz > host->max_seg_size) in mmc_init_queue()
146 bouncesz = host->max_seg_size; in mmc_init_queue()
147 if (bouncesz > (host->max_blk_count * 512)) in mmc_init_queue()
148 bouncesz = host->max_blk_count * 512; in mmc_init_queue()
150 if (bouncesz > 512) { in mmc_init_queue()
151 mq->bounce_buf = kmalloc(bouncesz, GFP_KERNEL); in mmc_init_queue()
161 blk_queue_max_sectors(mq->queue, bouncesz / 512); in mmc_init_queue()
162 blk_queue_max_phys_segments(mq->queue, bouncesz / 512); in mmc_init_queue()
163 blk_queue_max_hw_segments(mq->queue, bouncesz / 512); in mmc_init_queue()
164 blk_queue_max_segment_size(mq->queue, bouncesz); in mmc_init_queue()
175 bouncesz / 512, GFP_KERNEL); in mmc_init_queue()
180 sg_init_table(mq->bounce_sg, bouncesz / 512); in mmc_init_queue()