Lines Matching refs:size
65 size_t size;
93 size = ncpu_guest_max * sizeof (uint16_t);
94 if (size < INTR_REPORT_SIZE)
95 size = INTR_REPORT_SIZE;
98 * contig_mem_alloc() requires size to be a power of 2.
99 * Increase size to a power of 2 if necessary.
101 if ((size & (size - 1)) != 0) {
102 size = 1 << highbit(size);
105 mcpup->cpu_list = contig_mem_alloc(size);
117 size = cpu_q_entries * INTR_REPORT_SIZE;
119 mcpup->cpu_q_va = contig_mem_alloc(size);
127 mcpup->cpu_q_size = size;
132 size = dev_q_entries * INTR_REPORT_SIZE;
134 mcpup->dev_q_va = contig_mem_alloc(size);
142 mcpup->dev_q_size = size;
147 size = cpu_rq_entries * Q_ENTRY_SIZE;
149 mcpup->cpu_rq_va = contig_mem_alloc(2 * size);
157 mcpup->cpu_rq_size = size;
159 bzero(mcpup->cpu_rq_va, 2 * size);
164 size = cpu_nrq_entries * Q_ENTRY_SIZE;
166 mcpup->cpu_nrq_va = contig_mem_alloc(2 * size);
174 mcpup->cpu_nrq_size = size;
176 bzero(mcpup->cpu_nrq_va, 2 * size);
208 * contig_mem_alloc() requires size to be a power of 2.
209 * Increase size to a power of 2 if necessary.