Lines Matching refs:hp_slot_ptr
747 struct hotplug_slot *hp_slot_ptr; in ebda_rsrc_controller() local
907 hp_slot_ptr = (struct hotplug_slot *) kmalloc (sizeof (struct hotplug_slot), GFP_KERNEL); in ebda_rsrc_controller()
908 if (!hp_slot_ptr) { in ebda_rsrc_controller()
912 memset (hp_slot_ptr, 0, sizeof (struct hotplug_slot)); in ebda_rsrc_controller()
914 …hp_slot_ptr->info = (struct hotplug_slot_info *) kmalloc (sizeof (struct hotplug_slot_info), GFP_K… in ebda_rsrc_controller()
915 if (!hp_slot_ptr->info) { in ebda_rsrc_controller()
919 memset (hp_slot_ptr->info, 0, sizeof (struct hotplug_slot_info)); in ebda_rsrc_controller()
921 hp_slot_ptr->name = (char *) kmalloc (30, GFP_KERNEL); in ebda_rsrc_controller()
922 if (!hp_slot_ptr->name) { in ebda_rsrc_controller()
963 tmp_slot->hotplug_slot = hp_slot_ptr; in ebda_rsrc_controller()
965 hp_slot_ptr->private = tmp_slot; in ebda_rsrc_controller()
967 rc = ibmphp_hpc_fillhpslotinfo (hp_slot_ptr); in ebda_rsrc_controller()
971 rc = ibmphp_init_devno ((struct slot **) &hp_slot_ptr->private); in ebda_rsrc_controller()
974 hp_slot_ptr->ops = &ibmphp_hotplug_slot_ops; in ebda_rsrc_controller()
978 list_add (& ((struct slot *)(hp_slot_ptr->private))->ibm_slot_list, &ibmphp_slot_head); in ebda_rsrc_controller()
998 kfree (hp_slot_ptr->private); in ebda_rsrc_controller()
1000 kfree (hp_slot_ptr->name); in ebda_rsrc_controller()
1002 kfree (hp_slot_ptr->info); in ebda_rsrc_controller()
1004 kfree (hp_slot_ptr); in ebda_rsrc_controller()