Lines Matching refs:length
12 * @minlen: minimal length of the capability
16 * @len: the length that is actually mapped
28 u32 offset, length;
36 pci_read_config_dword(dev, off + offsetof(struct virtio_pci_cap, length),
37 &length);
46 if (length <= start) {
49 length, start);
53 if (length - start < minlen) {
56 length, minlen);
60 length -= start;
78 if (length > size)
79 length = size;
82 *len = length;
88 "out of range on bar %i length %lu\n",
94 p = pci_iomap_range(dev, bar, offset, length);
98 length, offset, bar);
162 offsetof(struct virtio_pci_cap, length));
318 /* Read notify length and offset from config space. */
321 cap.length),
330 * If notify length is small, map it all now.