Lines Matching refs:BLKIF_MAX_SEGMENTS_PER_REQUEST
76 #define HAS_EXTRA_REQ (BLKIF_MAX_SEGMENTS_PER_REQUEST < XEN_PFN_PER_PAGE)
603 grant_idx >= BLKIF_MAX_SEGMENTS_PER_REQUEST)) { in blkif_setup_rw_req_grant()
608 grant_idx -= BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_setup_rw_req_grant()
681 first->u.rw.nr_segments = BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_setup_extra_req()
683 second->u.rw.nr_segments = nr_segments - BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_setup_extra_req()
685 (BLKIF_MAX_SEGMENTS_PER_REQUEST * XEN_PAGE_SIZE) / 512; in blkif_setup_extra_req()
715 if (max_grefs > BLKIF_MAX_SEGMENTS_PER_REQUEST) in blkif_queue_rw_req()
748 num_grant > BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_queue_rw_req()
752 if (num_grant > BLKIF_MAX_SEGMENTS_PER_REQUEST && in blkif_queue_rw_req()
931 BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_set_queue_limits()
2025 segs = info->max_indirect_segments ? : BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_recover()
2196 grants = BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkfront_setup_indirect()
2318 if (indirect_segments <= BLKIF_MAX_SEGMENTS_PER_REQUEST) in blkfront_gather_backend_features()
2720 if (xen_blkif_max_segments < BLKIF_MAX_SEGMENTS_PER_REQUEST) in xlblk_init()
2721 xen_blkif_max_segments = BLKIF_MAX_SEGMENTS_PER_REQUEST; in xlblk_init()