Lines Matching refs:start
285 unsigned long start; member
296 unsigned long start, unsigned long size) in apei_res_add() argument
299 unsigned long end = start + size; in apei_res_add()
301 if (end <= start) in apei_res_add()
305 if (res->start > end || res->end < start) in apei_res_add()
307 else if (end <= res->end && start >= res->start) { in apei_res_add()
312 res->start = start = min(res->start, start); in apei_res_add()
325 res_ins->start = start; in apei_res_add()
341 if (res1->start >= res2->end || in apei_res_sub()
342 res1->end <= res2->start) in apei_res_sub()
345 res1->start >= res2->start) { in apei_res_sub()
350 res1->start < res2->start) { in apei_res_sub()
354 res->start = res2->end; in apei_res_sub()
356 res1->end = res2->start; in apei_res_sub()
360 if (res1->start < res2->start) in apei_res_sub()
361 res1->end = res2->start; in apei_res_sub()
363 res1->start = res2->end; in apei_res_sub()
397 rc = apei_res_add(&resources1->iomem, res->start, in apei_resources_merge()
398 res->end - res->start); in apei_resources_merge()
403 rc = apei_res_add(&resources1->ioport, res->start, in apei_resources_merge()
404 res->end - res->start); in apei_resources_merge()
413 unsigned long start, unsigned long size, in apei_resources_add() argument
417 return apei_res_add(&resources->iomem, start, size); in apei_resources_add()
419 return apei_res_add(&resources->ioport, start, size); in apei_resources_add()
440 static int apei_get_res_callback(__u64 start, __u64 size, void *data) in apei_get_res_callback() argument
443 return apei_res_add(&resources->iomem, start, size); in apei_get_res_callback()
451 int (*arch_apei_filter_addr)(int (*func)(__u64 start, __u64 size,
501 r = request_mem_region(res->start, res->end - res->start, in apei_resources_request()
506 (unsigned long long)res->start, in apei_resources_request()
514 r = request_region(res->start, res->end - res->start, desc); in apei_resources_request()
518 (unsigned long long)res->start, in apei_resources_request()
537 release_region(res->start, res->end - res->start); in apei_resources_request()
544 release_mem_region(res->start, res->end - res->start); in apei_resources_request()
561 release_mem_region(res->start, res->end - res->start); in apei_resources_release()
563 release_region(res->start, res->end - res->start); in apei_resources_release()