Lines Matching refs:new_res
1994 struct resource *new_res; in vmbus_walk_resources() local
2045 new_res = kzalloc(sizeof(*new_res), GFP_ATOMIC); in vmbus_walk_resources()
2046 if (!new_res) in vmbus_walk_resources()
2053 new_res->name = "hyperv mmio"; in vmbus_walk_resources()
2054 new_res->flags = IORESOURCE_MEM; in vmbus_walk_resources()
2055 new_res->start = start; in vmbus_walk_resources()
2056 new_res->end = end; in vmbus_walk_resources()
2063 *old_res = new_res; in vmbus_walk_resources()
2067 if (((*old_res)->end + 1) == new_res->start) { in vmbus_walk_resources()
2068 (*old_res)->end = new_res->end; in vmbus_walk_resources()
2069 kfree(new_res); in vmbus_walk_resources()
2073 if ((*old_res)->start == new_res->end + 1) { in vmbus_walk_resources()
2074 (*old_res)->start = new_res->start; in vmbus_walk_resources()
2075 kfree(new_res); in vmbus_walk_resources()
2079 if ((*old_res)->start > new_res->end) { in vmbus_walk_resources()
2080 new_res->sibling = *old_res; in vmbus_walk_resources()
2082 (*prev_res)->sibling = new_res; in vmbus_walk_resources()
2083 *old_res = new_res; in vmbus_walk_resources()