Lines Matching refs:mem_tmp

346 	struct resource_node *mem_tmp;  in configure_device()  local
438 mem_tmp = kzalloc(sizeof(*mem_tmp), GFP_KERNEL); in configure_device()
439 if (!mem_tmp) { in configure_device()
443 mem_tmp->type = MEM; in configure_device()
444 mem_tmp->busno = pfmem[count]->busno; in configure_device()
445 mem_tmp->devfunc = pfmem[count]->devfunc; in configure_device()
446 mem_tmp->len = pfmem[count]->len; in configure_device()
448 if (ibmphp_check_resource(mem_tmp, 0) == 0) { in configure_device()
449 ibmphp_add_resource(mem_tmp); in configure_device()
451 pfmem[count]->rangeno = mem_tmp->rangeno; in configure_device()
452 pfmem[count]->start = mem_tmp->start; in configure_device()
453 pfmem[count]->end = mem_tmp->end; in configure_device()
459 kfree(mem_tmp); in configure_device()
563 struct resource_node *mem_tmp = NULL; in configure_bridge() local
698 mem_tmp = kzalloc(sizeof(*mem_tmp), GFP_KERNEL); in configure_bridge()
699 if (!mem_tmp) { in configure_bridge()
703 mem_tmp->type = MEM; in configure_bridge()
704 mem_tmp->busno = bus_pfmem[count]->busno; in configure_bridge()
705 mem_tmp->devfunc = bus_pfmem[count]->devfunc; in configure_bridge()
706 mem_tmp->len = bus_pfmem[count]->len; in configure_bridge()
707 if (ibmphp_check_resource(mem_tmp, 0) == 0) { in configure_bridge()
708 ibmphp_add_resource(mem_tmp); in configure_bridge()
710 bus_pfmem[count]->rangeno = mem_tmp->rangeno; in configure_bridge()
716 kfree(mem_tmp); in configure_bridge()
864 mem_tmp = kzalloc(sizeof(*mem_tmp), GFP_KERNEL); in configure_bridge()
865 if (!mem_tmp) { in configure_bridge()
869 mem_tmp->type = MEM; in configure_bridge()
870 mem_tmp->busno = pfmem->busno; in configure_bridge()
871 mem_tmp->devfunc = pfmem->devfunc; in configure_bridge()
872 mem_tmp->len = pfmem->len; in configure_bridge()
873 if (ibmphp_check_resource(mem_tmp, 1) == 0) { in configure_bridge()
874 ibmphp_add_resource(mem_tmp); in configure_bridge()
876 pfmem->rangeno = mem_tmp->rangeno; in configure_bridge()
1012 mem_tmp = NULL; in configure_bridge()