Lines Matching defs:size
200 * @size is the size of the structure to be allocated, including any
207 struct vfio_device *_vfio_alloc_device(size_t size, struct device *dev,
213 if (WARN_ON(size < sizeof(struct vfio_device)))
216 device = kvzalloc(size, GFP_KERNEL);
1399 * reallocate a buffer with additional @size, filling in @id and @version
1407 size_t size, u16 id, u16 version)
1413 size = ALIGN(size, sizeof(u64));
1415 buf = krealloc(caps->buf, caps->size + size, GFP_KERNEL);
1419 caps->size = 0;
1424 header = buf + caps->size;
1427 memset(header, 0, size);
1436 tmp->next = caps->size;
1437 caps->size += size;
1457 struct vfio_info_cap_header *cap, size_t size)
1461 header = vfio_info_cap_add(caps, size, cap->id, cap->version);
1465 memcpy(header + 1, cap + 1, size - sizeof(*header));
1475 size_t size;
1493 size = 0;
1496 size = sizeof(uint8_t);
1499 size = sizeof(int32_t);
1505 if (size) {
1506 if (hdr->argsz - minsz < hdr->count * size)
1512 *data_size = hdr->count * size;