Lines Matching refs:mem_tmp

362 	struct resource_node *mem_tmp;  in configure_device()  local
458 mem_tmp = kmalloc (sizeof (struct resource_node), GFP_KERNEL); in configure_device()
459 if (!mem_tmp) { in configure_device()
464 memset (mem_tmp, 0, sizeof (struct resource_node)); in configure_device()
465 mem_tmp->type = MEM; in configure_device()
466 mem_tmp->busno = pfmem[count]->busno; in configure_device()
467 mem_tmp->devfunc = pfmem[count]->devfunc; in configure_device()
468 mem_tmp->len = pfmem[count]->len; in configure_device()
470 if (ibmphp_check_resource (mem_tmp, 0) == 0) { in configure_device()
471 ibmphp_add_resource (mem_tmp); in configure_device()
473 pfmem[count]->rangeno = mem_tmp->rangeno; in configure_device()
474 pfmem[count]->start = mem_tmp->start; in configure_device()
475 pfmem[count]->end = mem_tmp->end; in configure_device()
481 kfree (mem_tmp); in configure_device()
586 struct resource_node *mem_tmp = NULL; in configure_bridge() local
724 mem_tmp = kmalloc (sizeof (struct resource_node), GFP_KERNEL); in configure_bridge()
725 if (!mem_tmp) { in configure_bridge()
730 memset (mem_tmp, 0, sizeof (struct resource_node)); in configure_bridge()
731 mem_tmp->type = MEM; in configure_bridge()
732 mem_tmp->busno = bus_pfmem[count]->busno; in configure_bridge()
733 mem_tmp->devfunc = bus_pfmem[count]->devfunc; in configure_bridge()
734 mem_tmp->len = bus_pfmem[count]->len; in configure_bridge()
735 if (ibmphp_check_resource (mem_tmp, 0) == 0) { in configure_bridge()
736 ibmphp_add_resource (mem_tmp); in configure_bridge()
738 bus_pfmem[count]->rangeno = mem_tmp->rangeno; in configure_bridge()
744 kfree (mem_tmp); in configure_bridge()
898 mem_tmp = kmalloc (sizeof (struct resource_node), GFP_KERNEL); in configure_bridge()
899 if (!mem_tmp) { in configure_bridge()
904 memset (mem_tmp, 0, sizeof (struct resource_node)); in configure_bridge()
905 mem_tmp->type = MEM; in configure_bridge()
906 mem_tmp->busno = pfmem->busno; in configure_bridge()
907 mem_tmp->devfunc = pfmem->devfunc; in configure_bridge()
908 mem_tmp->len = pfmem->len; in configure_bridge()
909 if (ibmphp_check_resource (mem_tmp, 1) == 0) { in configure_bridge()
910 ibmphp_add_resource (mem_tmp); in configure_bridge()
912 pfmem->rangeno = mem_tmp->rangeno; in configure_bridge()
1049 mem_tmp = NULL; in configure_bridge()