Lines Matching refs:qout
169 struct qout64 *qout; in query_segment_type() local
173 qout = kmalloc(sizeof(*qout), GFP_KERNEL | GFP_DMA); in query_segment_type()
174 if ((qin == NULL) || (qout == NULL)) { in query_segment_type()
181 qin->qoutptr = (unsigned long) qout; in query_segment_type()
197 if (qout->segcnt > 6) { in query_segment_type()
202 if (qout->segcnt == 1) { in query_segment_type()
203 seg->vm_segtype = qout->range[0].start & 0xff; in query_segment_type()
209 unsigned long start = qout->segstart >> PAGE_SHIFT; in query_segment_type()
210 for (i=0; i<qout->segcnt; i++) { in query_segment_type()
211 if (((qout->range[i].start & 0xff) != SEG_TYPE_EW) && in query_segment_type()
212 ((qout->range[i].start & 0xff) != SEG_TYPE_EN)) { in query_segment_type()
216 if (start != qout->range[i].start >> PAGE_SHIFT) { in query_segment_type()
220 start = (qout->range[i].end >> PAGE_SHIFT) + 1; in query_segment_type()
226 seg->start_addr = qout->segstart; in query_segment_type()
227 seg->end = qout->segend; in query_segment_type()
229 memcpy (seg->range, qout->range, 6*sizeof(struct qrange)); in query_segment_type()
230 seg->segcnt = qout->segcnt; in query_segment_type()
236 kfree(qout); in query_segment_type()