Lines Matching defs:size
116 * pci=hpmmiosize=nnM overrides non-prefetchable MMIO size,
117 * pci=hpmmioprefsize=nnM overrides prefetchable MMIO size;
236 resource_size_t size = resource_size(res);
247 return ioremap_wc(start, size);
249 return ioremap(start, size);
1792 int bar_idx, size;
1797 size = pci_rebar_bytes_to_size(resource_size(res));
1799 ctrl |= size << PCI_REBAR_CTRL_BAR_SHIFT;
1861 size_t size;
1866 size = sizeof(*state) + sizeof(struct pci_cap_saved_data);
1869 size += sizeof(struct pci_cap_saved_data) + tmp->cap.size;
1871 state = kzalloc(size, GFP_KERNEL);
1880 size_t len = sizeof(struct pci_cap_saved_data) + tmp->cap.size;
1909 while (cap->size) {
1913 if (!tmp || tmp->cap.size != cap->size)
1916 memcpy(tmp->cap.data, cap->data, tmp->cap.size);
1918 sizeof(struct pci_cap_saved_data) + cap->size);
3317 /* Entry size field indicates DWORDs after 1st */
3466 * @size: requested size of the buffer
3469 bool extended, unsigned int size)
3482 save_state = kzalloc(sizeof(*save_state) + size, GFP_KERNEL);
3488 save_state->cap.size = size;
3494 int pci_add_cap_save_buffer(struct pci_dev *dev, char cap, unsigned int size)
3496 return _pci_add_cap_save_buffer(dev, cap, false, size);
3499 int pci_add_ext_cap_save_buffer(struct pci_dev *dev, u16 cap, unsigned int size)
3501 return _pci_add_cap_save_buffer(dev, cap, true, size);
3783 * pci_rebar_get_current_size - get the current size of a BAR
3785 * @bar: BAR to set size to
3787 * Read the size of a BAR from the resizable BAR config.
3788 * Returns size if found or negative error code.
3804 * pci_rebar_set_size - set a new size for a BAR
3806 * @bar: BAR to set size to
3807 * @size: new size as defined in the spec (0=1MB, 19=512GB)
3809 * Set the new size of a BAR as defined in the spec.
3812 int pci_rebar_set_size(struct pci_dev *pdev, int bar, int size)
3823 ctrl |= size << PCI_REBAR_CTRL_BAR_SHIFT;
4188 * Record the PCI IO range (expressed as CPU physical address + size).
4192 resource_size_t size)
4198 if (!size || addr + size < addr)
4206 range->size = size;
4341 * @size: Size of map
4348 resource_size_t size)
4356 addr = pci_remap_cfgspace(offset, size);
4389 resource_size_t size;
4400 size = resource_size(res);
4410 if (!devm_request_mem_region(dev, res->start, size, name)) {
4415 dest_ptr = devm_pci_remap_cfgspace(dev, res->start, size);
4418 devm_release_mem_region(dev, res->start, size);
4537 pci_dbg(dev, "cache line size of %d is not supported\n",
6136 * pcie_get_readrq - get PCI Express read request size
6170 * size to the max packet size to keep the host bridge from
6199 * pcie_get_mps - get PCI Express maximum payload size
6202 * Returns maximum payload size in bytes
6215 * pcie_set_mps - set PCI Express maximum payload size
6217 * @mps: maximum payload size in bytes
6220 * If possible sets maximum payload size
6643 * @resize: whether or not to change resources' size when reassigning alignment
6706 resource_size_t size;
6717 size = resource_size(r);
6718 if (size >= align)
6725 * 1) Increase the size of the resource. BARs are aligned on their
6726 * size, so when we reallocate space for this resource, we'll
6734 * based on the resource size, e.g., to find registers at a
6737 * 2) Retain the resource size, but use IORESOURCE_STARTALIGN and
6759 r->end = r->start + size - 1;
6767 * It also rounds up size to specified alignment.