• Home
  • Raw
  • Download

Lines Matching refs:range

118 	struct acrn_ioreq_range *range;  in acrn_ioreq_range_add()  local
126 range = kzalloc(sizeof(*range), GFP_KERNEL); in acrn_ioreq_range_add()
127 if (!range) in acrn_ioreq_range_add()
130 range->type = type; in acrn_ioreq_range_add()
131 range->start = start; in acrn_ioreq_range_add()
132 range->end = end; in acrn_ioreq_range_add()
135 list_add(&range->list, &client->range_list); in acrn_ioreq_range_add()
151 struct acrn_ioreq_range *range; in acrn_ioreq_range_del() local
154 list_for_each_entry(range, &client->range_list, list) { in acrn_ioreq_range_del()
155 if (type == range->type && in acrn_ioreq_range_del()
156 start == range->start && in acrn_ioreq_range_del()
157 end == range->end) { in acrn_ioreq_range_del()
158 list_del(&range->list); in acrn_ioreq_range_del()
159 kfree(range); in acrn_ioreq_range_del()
359 static bool in_range(struct acrn_ioreq_range *range, in in_range() argument
364 if (range->type == req->type) { in in_range()
367 if (req->reqs.mmio_request.address >= range->start && in in_range()
369 req->reqs.mmio_request.size - 1) <= range->end) in in_range()
373 if (req->reqs.pio_request.address >= range->start && in in_range()
375 req->reqs.pio_request.size - 1) <= range->end) in in_range()
390 struct acrn_ioreq_range *range; in find_ioreq_client() local
396 list_for_each_entry(range, &client->range_list, list) { in find_ioreq_client()
397 if (in_range(range, req)) { in find_ioreq_client()
472 struct acrn_ioreq_range *range, *next; in acrn_ioreq_client_destroy() local
492 list_for_each_entry_safe(range, next, &client->range_list, list) { in acrn_ioreq_client_destroy()
493 list_del(&range->list); in acrn_ioreq_client_destroy()
494 kfree(range); in acrn_ioreq_client_destroy()