Lines Matching +full:hot +full:- +full:plug
1 // SPDX-License-Identifier: GPL-2.0+
3 * Compaq Hot Plug Controller Driver
6 * Copyright (c) 2001,2003 Greg Kroah-Hartman (greg@kroah.com)
22 /* A few routines that create sysfs entries for the hot plug controller */
33 bus = pdev->subordinate; in show_ctrl()
37 if (res && (res->flags & IORESOURCE_MEM) && in show_ctrl()
38 !(res->flags & IORESOURCE_PREFETCH)) { in show_ctrl()
40 (unsigned long long)res->start, in show_ctrl()
46 if (res && (res->flags & IORESOURCE_MEM) && in show_ctrl()
47 (res->flags & IORESOURCE_PREFETCH)) { in show_ctrl()
49 (unsigned long long)res->start, in show_ctrl()
55 if (res && (res->flags & IORESOURCE_IO)) { in show_ctrl()
57 (unsigned long long)res->start, in show_ctrl()
62 for (busnr = bus->busn_res.start; busnr <= bus->busn_res.end; busnr++) { in show_ctrl()
66 if (busnr < bus->busn_res.end) in show_ctrl()
68 busnr, (int)(bus->busn_res.end - busnr)); in show_ctrl()
70 return out - buf; in show_ctrl()
76 return device_create_file(&ctrl->pci_dev->dev, &dev_attr_ctrl); in shpchp_create_ctrl_files()
81 device_remove_file(&ctrl->pci_dev->dev, &dev_attr_ctrl); in shpchp_remove_ctrl_files()