Lines Matching +full:bus +full:- +full:err
1 // SPDX-License-Identifier: GPL-2.0+
32 #define MY_NAME THIS_MODULE->name
41 #define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME, ## arg) macro
50 static struct pci_bus *bus; variable
68 return -EINVAL; in validate_parameters()
72 return -EINVAL; in validate_parameters()
76 err("Invalid hotplug bus bridge device bus number"); in validate_parameters()
77 return -EINVAL; in validate_parameters()
82 err("Invalid hotplug bus bridge device"); in validate_parameters()
83 return -EINVAL; in validate_parameters()
88 err("Invalid hotplug bus bridge device slot number"); in validate_parameters()
89 return -EINVAL; in validate_parameters()
97 err("Need to specify first_slot and last_slot"); in validate_parameters()
98 return -EINVAL; in validate_parameters()
101 err("first_slot must be less than last_slot"); in validate_parameters()
102 return -EINVAL; in validate_parameters()
108 err("Invalid #ENUM bit"); in validate_parameters()
109 return -EINVAL; in validate_parameters()
136 return -EBUSY; in cpcihp_generic_init()
140 if (!dev || dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) { in cpcihp_generic_init()
141 err("Invalid bridge device %s", bridge); in cpcihp_generic_init()
143 return -EINVAL; in cpcihp_generic_init()
145 bus = dev->subordinate; in cpcihp_generic_init()
154 err("Could not register cPCI hotplug controller"); in cpcihp_generic_init()
155 return -ENODEV; in cpcihp_generic_init()
159 status = cpci_hp_register_bus(bus, first_slot, last_slot); in cpcihp_generic_init()
161 err("Could not register cPCI hotplug bus"); in cpcihp_generic_init()
164 dbg("registered bus"); in cpcihp_generic_init()
168 err("Could not started cPCI hotplug system"); in cpcihp_generic_init()
174 cpci_hp_unregister_bus(bus); in cpcihp_generic_init()
177 err("status = %d", status); in cpcihp_generic_init()
185 cpci_hp_unregister_bus(bus); in cpcihp_generic_exit()
199 MODULE_PARM_DESC(bridge, "Hotswap bus bridge device, <bus>:<slot> (bus and slot are in hexadecimal)…
201 MODULE_PARM_DESC(first_slot, "Hotswap bus first slot number");
203 MODULE_PARM_DESC(last_slot, "Hotswap bus last slot number");
207 MODULE_PARM_DESC(enum_bit, "#ENUM signal bit (0-7)");