OpenCores
URL https://opencores.org/ocsvn/test_project/test_project/trunk

Subversion Repositories test_project

[/] [test_project/] [trunk/] [linux_sd_driver/] [block/] [ll_rw_blk.c] - Diff between revs 62 and 81

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 62 Rev 81
Line 624... Line 624...
 *    scatter list the driver could handle.
 *    scatter list the driver could handle.
 **/
 **/
void blk_queue_max_phys_segments(struct request_queue *q,
void blk_queue_max_phys_segments(struct request_queue *q,
                                 unsigned short max_segments)
                                 unsigned short max_segments)
{
{
 
        //printk("%s: set to minimum %d\n", __FUNCTION__, max_segments);
        if (!max_segments) {
        if (!max_segments) {
                max_segments = 1;
                max_segments = 1;
                printk("%s: set to minimum %d\n", __FUNCTION__, max_segments);
                printk("%s: set to minimum %d\n", __FUNCTION__, max_segments);
        }
        }
 
 
Line 1923... Line 1924...
        if (blk_init_free_list(q)) {
        if (blk_init_free_list(q)) {
                kmem_cache_free(requestq_cachep, q);
                kmem_cache_free(requestq_cachep, q);
                return NULL;
                return NULL;
        }
        }
 
 
 
 
        /*
        /*
         * if caller didn't supply a lock, they get per-queue locking with
         * if caller didn't supply a lock, they get per-queue locking with
         * our embedded lock
         * our embedded lock
         */
         */
        if (!lock) {
        if (!lock) {
Line 1941... Line 1943...
        q->queue_lock           = lock;
        q->queue_lock           = lock;
 
 
        blk_queue_segment_boundary(q, 0xffffffff);
        blk_queue_segment_boundary(q, 0xffffffff);
 
 
        blk_queue_make_request(q, __make_request);
        blk_queue_make_request(q, __make_request);
 
 
        blk_queue_max_segment_size(q, MAX_SEGMENT_SIZE);
        blk_queue_max_segment_size(q, MAX_SEGMENT_SIZE);
 
 
        blk_queue_max_hw_segments(q, MAX_HW_SEGMENTS);
        blk_queue_max_hw_segments(q, MAX_HW_SEGMENTS);
 
 
        blk_queue_max_phys_segments(q, MAX_PHYS_SEGMENTS);
        blk_queue_max_phys_segments(q, MAX_PHYS_SEGMENTS);
 
 
        q->sg_reserved_size = INT_MAX;
        q->sg_reserved_size = INT_MAX;
 
 
        /*
        /*

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.