Lines Matching full:sg
74 struct sglist *sg; in sg_pager_alloc() local
90 sg = handle; in sg_pager_alloc()
91 for (i = 0; i < sg->sg_nseg; i++) { in sg_pager_alloc()
92 if ((sg->sg_segs[i].ss_paddr % PAGE_SIZE) != 0 || in sg_pager_alloc()
93 (sg->sg_segs[i].ss_len % PAGE_SIZE) != 0) in sg_pager_alloc()
95 npages += sg->sg_segs[i].ss_len / PAGE_SIZE; in sg_pager_alloc()
117 object->handle = sglist_hold(sg); in sg_pager_alloc()
125 struct sglist *sg; in sg_pager_dealloc() local
138 sg = object->handle; in sg_pager_dealloc()
139 sglist_free(sg); in sg_pager_dealloc()
148 struct sglist *sg; in sg_pager_getpages() local
159 sg = object->handle; in sg_pager_getpages()
171 for (i = 0; i < sg->sg_nseg; i++) { in sg_pager_getpages()
172 if (space + sg->sg_segs[i].ss_len <= (offset * PAGE_SIZE)) { in sg_pager_getpages()
173 space += sg->sg_segs[i].ss_len; in sg_pager_getpages()
176 paddr = sg->sg_segs[i].ss_paddr + offset * PAGE_SIZE - space; in sg_pager_getpages()
179 KASSERT(paddr != 1, ("invalid SG page index")); in sg_pager_getpages()
191 ("backing page for SG is fake")); in sg_pager_getpages()