Lines Matching refs:size

27  * hv_gpadl_size - Return the real size of a gpadl, the size that Hyper-V uses
29 * For BUFFER gpadl, Hyper-V uses the exact same size as the guest does.
35 * ringbuffer, the total size for a RING gpadl that Hyper-V uses is the
36 * total size that the guest uses minus twice of the gap size.
38 static inline u32 hv_gpadl_size(enum hv_gpadl_type type, u32 size)
42 return size;
44 /* The size of a ringbuffer must be page-aligned */
45 BUG_ON(size % PAGE_SIZE);
50 * the first guest-size page of each of the two ring buffers.
51 * So we effectively subtract out two guest-size pages, and add
52 * back two Hyper-V size pages.
54 return size - 2 * (PAGE_SIZE - HV_HYP_PAGE_SIZE);
89 * @size: the total size (in bytes) of the gpadl
95 u32 size, u32 send_offset, int i)
310 u32 size, u32 send_offset,
323 pagecount = hv_gpadl_size(type, size) >> HV_HYP_PAGE_SHIFT;
350 gpadl_header->range[0].byte_count = hv_gpadl_size(type, size);
353 type, kbuffer, size, send_offset, i);
405 kbuffer, size, send_offset, pfnsum + i);
431 gpadl_header->range[0].byte_count = hv_gpadl_size(type, size);
434 type, kbuffer, size, send_offset, i);
452 * @size: page-size multiple
459 u32 size, u32 send_offset,
474 ret = create_gpadl_header(type, kbuffer, size, send_offset, &msginfo);
479 PFN_UP(size));
552 gpadl->size = size;
568 PFN_UP(size));
578 * @size: page-size multiple
582 u32 size, struct vmbus_gpadl *gpadl)
584 return __vmbus_establish_gpadl(channel, HV_GPADL_BUFFER, kbuffer, size,
594 * @size The size of the array
596 static u64 *request_arr_init(u32 size)
601 req_arr = kcalloc(size, sizeof(u64), GFP_KERNEL);
605 for (i = 0; i < size - 1; i++)
617 * @size: Size of the requestor array
619 static int vmbus_alloc_requestor(struct vmbus_requestor *rqstor, u32 size)
624 rqst_arr = request_arr_init(size);
628 bitmap = bitmap_zalloc(size, GFP_KERNEL);
636 rqstor->size = size;
885 PFN_UP(gpadl->size));
1028 * @bufferlen: Maximum size of what the buffer holds.
1076 * @bufferlen: Maximum size of what the buffer holds.
1120 * Adjust the size down since vmbus_channel_packet_page_buffer is the
1121 * largest size we support
1197 * @bufferlen: Maximum size of what the buffer can hold.
1198 * @buffer_actual_len: The actual size of the data after it was received.
1259 if (current_id >= rqstor->size) {
1301 if (trans_id >= rqstor->size || !test_bit(trans_id, rqstor->req_bitmap))