setup-bus.c (3b5d1afd1f13bcab85eaa28223ad396694f929e3) | setup-bus.c (9b41d19aff40907bdd64ae230aaadbb3de3db710) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Support routines for initializing a PCI subsystem 4 * 5 * Extruded from code written by 6 * Dave Rusling (david.rusling@reo.mts.dec.com) 7 * David Mosberger (davidm@cs.arizona.edu) 8 * David Miller (davem@redhat.com) --- 41 unchanged lines hidden (view full) --- 50} 51 52/** 53 * add_to_list() - Add a new resource tracker to the list 54 * @head: Head of the list 55 * @dev: Device to which the resource belongs 56 * @res: Resource to be tracked 57 * @add_size: Additional size to be optionally added to the resource | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Support routines for initializing a PCI subsystem 4 * 5 * Extruded from code written by 6 * Dave Rusling (david.rusling@reo.mts.dec.com) 7 * David Mosberger (davidm@cs.arizona.edu) 8 * David Miller (davem@redhat.com) --- 41 unchanged lines hidden (view full) --- 50} 51 52/** 53 * add_to_list() - Add a new resource tracker to the list 54 * @head: Head of the list 55 * @dev: Device to which the resource belongs 56 * @res: Resource to be tracked 57 * @add_size: Additional size to be optionally added to the resource |
58 * @min_align: Minimum memory window alignment |
|
58 */ 59static int add_to_list(struct list_head *head, struct pci_dev *dev, 60 struct resource *res, resource_size_t add_size, 61 resource_size_t min_align) 62{ 63 struct pci_dev_resource *tmp; 64 65 tmp = kzalloc(sizeof(*tmp), GFP_KERNEL); --- 2176 unchanged lines hidden --- | 59 */ 60static int add_to_list(struct list_head *head, struct pci_dev *dev, 61 struct resource *res, resource_size_t add_size, 62 resource_size_t min_align) 63{ 64 struct pci_dev_resource *tmp; 65 66 tmp = kzalloc(sizeof(*tmp), GFP_KERNEL); --- 2176 unchanged lines hidden --- |