Searched refs:tmp_slot (Results 1 - 3 of 3) sorted by relevance
/linux-4.1.27/drivers/pci/hotplug/ |
H A D | ibmphp_ebda.c | 754 struct slot *tmp_slot; ebda_rsrc_controller() local 919 tmp_slot = kzalloc(sizeof(*tmp_slot), GFP_KERNEL); ebda_rsrc_controller() 920 if (!tmp_slot) { ebda_rsrc_controller() 925 tmp_slot->flag = 1; ebda_rsrc_controller() 927 tmp_slot->capabilities = hpc_ptr->slots[index].slot_cap; ebda_rsrc_controller() 929 tmp_slot->supported_speed = 3; ebda_rsrc_controller() 931 tmp_slot->supported_speed = 2; ebda_rsrc_controller() 933 tmp_slot->supported_speed = 1; ebda_rsrc_controller() 936 tmp_slot->supported_bus_mode = 1; ebda_rsrc_controller() 938 tmp_slot->supported_bus_mode = 0; ebda_rsrc_controller() 941 tmp_slot->bus = hpc_ptr->slots[index].slot_bus_num; ebda_rsrc_controller() 945 kfree(tmp_slot); ebda_rsrc_controller() 949 tmp_slot->bus_on = bus_info_ptr1; ebda_rsrc_controller() 951 tmp_slot->ctrl = hpc_ptr; ebda_rsrc_controller() 953 tmp_slot->ctlr_index = hpc_ptr->slots[index].ctl_index; ebda_rsrc_controller() 954 tmp_slot->number = hpc_ptr->slots[index].slot_num; ebda_rsrc_controller() 955 tmp_slot->hotplug_slot = hp_slot_ptr; ebda_rsrc_controller() 957 hp_slot_ptr->private = tmp_slot; ebda_rsrc_controller() 979 list_for_each_entry(tmp_slot, &ibmphp_slot_head, ibm_slot_list) { ebda_rsrc_controller() 980 snprintf(name, SLOT_NAME_SIZE, "%s", create_file_name(tmp_slot)); ebda_rsrc_controller() 981 pci_hp_register(tmp_slot->hotplug_slot, ebda_rsrc_controller() 982 pci_find_bus(0, tmp_slot->bus), tmp_slot->device, name); ebda_rsrc_controller()
|
H A D | rpaphp_slot.c | 89 struct slot *tmp_slot; is_registered() local 91 list_for_each_entry(tmp_slot, &rpaphp_slot_head, rpaphp_slot_list) { is_registered() 92 if (!strcmp(tmp_slot->name, slot->name)) is_registered()
|
H A D | ibmphp_core.c | 833 struct slot *tmp_slot; is_bus_empty() local 841 tmp_slot = ibmphp_get_slot_from_physical_num(i); is_bus_empty() 842 if (!tmp_slot) is_bus_empty() 844 rc = slot_update(&tmp_slot); is_bus_empty() 847 if (SLOT_PRESENT(tmp_slot->status) && is_bus_empty() 848 SLOT_PWRGD(tmp_slot->status)) is_bus_empty() 961 struct slot *tmp_slot; check_limitations() local 966 tmp_slot = ibmphp_get_slot_from_physical_num(i); check_limitations() 967 if (!tmp_slot) check_limitations() 969 if ((SLOT_PWRGD(tmp_slot->status)) && check_limitations() 970 !(SLOT_CONNECT(tmp_slot->status))) check_limitations()
|
Completed in 102 milliseconds