Lines Matching refs:size

91  * pci=hpmmiosize=nnM overrides non-prefetchable MMIO size,
92 * pci=hpmmioprefsize=nnM overrides prefetchable MMIO size;
1643 int bar_idx, size;
1648 size = ilog2(resource_size(res)) - 20;
1650 ctrl |= size << PCI_REBAR_CTRL_BAR_SHIFT;
1711 size_t size;
1716 size = sizeof(*state) + sizeof(struct pci_cap_saved_data);
1719 size += sizeof(struct pci_cap_saved_data) + tmp->cap.size;
1721 state = kzalloc(size, GFP_KERNEL);
1730 size_t len = sizeof(struct pci_cap_saved_data) + tmp->cap.size;
1759 while (cap->size) {
1763 if (!tmp || tmp->cap.size != cap->size)
1766 memcpy(tmp->cap.data, cap->data, tmp->cap.size);
1768 sizeof(struct pci_cap_saved_data) + cap->size);
3142 /* Entry size field indicates DWORDs after 1st */
3291 * @size: requested size of the buffer
3294 bool extended, unsigned int size)
3307 save_state = kzalloc(sizeof(*save_state) + size, GFP_KERNEL);
3313 save_state->cap.size = size;
3319 int pci_add_cap_save_buffer(struct pci_dev *dev, char cap, unsigned int size)
3321 return _pci_add_cap_save_buffer(dev, cap, false, size);
3324 int pci_add_ext_cap_save_buffer(struct pci_dev *dev, u16 cap, unsigned int size)
3326 return _pci_add_cap_save_buffer(dev, cap, true, size);
3607 * pci_rebar_get_current_size - get the current size of a BAR
3609 * @bar: BAR to set size to
3611 * Read the size of a BAR from the resizable BAR config.
3612 * Returns size if found or negative error code.
3628 * pci_rebar_set_size - set a new size for a BAR
3630 * @bar: BAR to set size to
3631 * @size: new size as defined in the spec (0=1MB, 19=512GB)
3633 * Set the new size of a BAR as defined in the spec.
3636 int pci_rebar_set_size(struct pci_dev *pdev, int bar, int size)
3647 ctrl |= size << PCI_REBAR_CTRL_BAR_SHIFT;
4004 * Record the PCI IO range (expressed as CPU physical address + size).
4008 resource_size_t size)
4014 if (!size || addr + size < addr)
4022 range->size = size;
4159 * @size: Size of map
4166 resource_size_t size)
4174 addr = pci_remap_cfgspace(offset, size);
4207 resource_size_t size;
4218 size = resource_size(res);
4221 if (!devm_request_mem_region(dev, res->start, size, name)) {
4226 dest_ptr = devm_pci_remap_cfgspace(dev, res->start, size);
4229 devm_release_mem_region(dev, res->start, size);
4348 pci_info(dev, "cache line size of %d is not supported\n",
5718 * pcie_get_readrq - get PCI Express read request size
5752 * size to the max packet size to keep the host bridge from
5781 * pcie_get_mps - get PCI Express maximum payload size
5784 * Returns maximum payload size in bytes
5797 * pcie_set_mps - set PCI Express maximum payload size
5799 * @mps: maximum payload size in bytes
5802 * If possible sets maximum payload size
6225 * @resize: whether or not to change resources' size when reassigning alignment
6288 resource_size_t size;
6299 size = resource_size(r);
6300 if (size >= align)
6307 * 1) Increase the size of the resource. BARs are aligned on their
6308 * size, so when we reallocate space for this resource, we'll
6316 * based on the resource size, e.g., to find registers at a
6319 * 2) Retain the resource size, but use IORESOURCE_STARTALIGN and
6341 r->end = r->start + size - 1;
6349 * It also rounds up size to specified alignment.