Lines Matching refs:BLKIF_MAX_SEGMENTS_PER_REQUEST
78 #define HAS_EXTRA_REQ (BLKIF_MAX_SEGMENTS_PER_REQUEST < XEN_PFN_PER_PAGE)
606 grant_idx >= BLKIF_MAX_SEGMENTS_PER_REQUEST)) { in blkif_setup_rw_req_grant()
611 grant_idx -= BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_setup_rw_req_grant()
684 first->u.rw.nr_segments = BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_setup_extra_req()
686 second->u.rw.nr_segments = nr_segments - BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_setup_extra_req()
688 (BLKIF_MAX_SEGMENTS_PER_REQUEST * XEN_PAGE_SIZE) / 512; in blkif_setup_extra_req()
719 if (max_grefs > BLKIF_MAX_SEGMENTS_PER_REQUEST) in blkif_queue_rw_req()
753 num_grant > BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_queue_rw_req()
757 if (num_grant > BLKIF_MAX_SEGMENTS_PER_REQUEST && in blkif_queue_rw_req()
940 BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_set_queue_limits()
2020 segs = info->max_indirect_segments ? : BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_recover()
2169 grants = BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkfront_setup_indirect()
2296 if (indirect_segments <= BLKIF_MAX_SEGMENTS_PER_REQUEST) in blkfront_gather_backend_features()
2592 if (xen_blkif_max_segments < BLKIF_MAX_SEGMENTS_PER_REQUEST) in xlblk_init()
2593 xen_blkif_max_segments = BLKIF_MAX_SEGMENTS_PER_REQUEST; in xlblk_init()