Lines Matching refs:range

16     UINT_RANGE range;  member
25 (size_t)(sf->range.end - sf->range.start)); in stream_frame_free()
30 static STREAM_FRAME *stream_frame_new(UINT_RANGE *range, OSSL_QRX_PKT *pkt, in stream_frame_new() argument
41 sf->range = *range; in stream_frame_new()
63 static int append_frame(SFRAME_LIST *fl, UINT_RANGE *range, in append_frame() argument
69 if ((new_frame = stream_frame_new(range, pkt, data)) == NULL) in append_frame()
79 int ossl_sframe_list_insert(SFRAME_LIST *fl, UINT_RANGE *range, in ossl_sframe_list_insert() argument
85 uint64_t curr_end = fl->tail != NULL ? fl->tail->range.end in ossl_sframe_list_insert()
89 assert((!fin || curr_end <= range->end) in ossl_sframe_list_insert()
90 && (!fl->fin || curr_end >= range->end)); in ossl_sframe_list_insert()
93 if (fl->offset >= range->end) in ossl_sframe_list_insert()
98 fl->tail = fl->head = stream_frame_new(range, pkt, data); in ossl_sframe_list_insert()
107 if (fl->tail->range.start < range->start) { in ossl_sframe_list_insert()
108 if (fl->tail->range.end >= range->end) in ossl_sframe_list_insert()
111 if (!append_frame(fl, range, pkt, data)) in ossl_sframe_list_insert()
117 for (sf = fl->head; sf != NULL && sf->range.start < range->start; in ossl_sframe_list_insert()
125 if (prev_frame != NULL && prev_frame->range.end >= range->end) in ossl_sframe_list_insert()
132 new_frame = stream_frame_new(range, pkt, data); in ossl_sframe_list_insert()
137 next_frame != NULL && next_frame->range.end <= range->end;) { in ossl_sframe_list_insert()
156 && next_frame->range.start <= prev_frame->range.end) { in ossl_sframe_list_insert()
182 UINT_RANGE *range, const unsigned char **data, in ossl_sframe_list_peek() argument
192 start = sf->range.end; in ossl_sframe_list_peek()
196 range->start = start; in ossl_sframe_list_peek()
198 if (sf == NULL || sf->range.start > start in ossl_sframe_list_peek()
199 || !ossl_assert(start < sf->range.end)) { in ossl_sframe_list_peek()
200 range->end = start; in ossl_sframe_list_peek()
208 range->end = sf->range.end; in ossl_sframe_list_peek()
210 *data = sf->data + (start - sf->range.start); in ossl_sframe_list_peek()
225 || limit <= fl->tail->range.end) in ossl_sframe_list_drop_frames()
232 for (sf = fl->head; sf != NULL && sf->range.end <= limit;) { in ossl_sframe_list_drop_frames()
251 int ossl_sframe_list_lock_head(SFRAME_LIST *fl, UINT_RANGE *range, in ossl_sframe_list_lock_head() argument
261 ret = ossl_sframe_list_peek(fl, &iter, range, data, fin); in ossl_sframe_list_lock_head()
289 if (limit < sf->range.start) in ossl_sframe_list_move_data()
290 limit = sf->range.start; in ossl_sframe_list_move_data()
293 if (limit > sf->range.start) in ossl_sframe_list_move_data()
294 data += (size_t)(limit - sf->range.start); in ossl_sframe_list_move_data()
295 len = (size_t)(sf->range.end - limit); in ossl_sframe_list_move_data()
303 (size_t)(sf->range.end - sf->range.start)); in ossl_sframe_list_move_data()
311 limit = sf->range.end; in ossl_sframe_list_move_data()
315 && prev_frame->range.end >= sf->range.start) { in ossl_sframe_list_move_data()
316 prev_frame->range.end = sf->range.end; in ossl_sframe_list_move_data()