Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 190) sorted by relevance

12345678

/xen/xen/include/xen/
A Dnospec.h23 static inline unsigned long array_index_mask_nospec(unsigned long index, in array_index_mask_nospec() argument
31 OPTIMIZER_HIDE_VAR(index); in array_index_mask_nospec()
32 return ~(long)(index | (size - 1UL - index)) >> (BITS_PER_LONG - 1); in array_index_mask_nospec()
51 #define array_index_nospec(index, size) \ argument
53 typeof(index) _i = (index); \
64 #define array_index_nospec(index, size) ((void)(size), (index)) argument
70 #define array_access_nospec(array, index) \ argument
71 (array)[array_index_nospec(index, ARRAY_SIZE(array))]
/xen/tools/hotplug/Linux/
A Dcolo-proxy-setup21 : ${index:?}
33 if [ $index -lt 0 ] || [ $index -gt 100 ]; then
53 $vifname -j PMYCOLO --index $index
55 $vifname -j PMYCOLO --index $index
70 $vifname -j PMYCOLO --index $index
72 $vifname -j PMYCOLO --index $index
94 $vifname -j SECCOLO --index $index
96 $vifname -j SECCOLO --index $index
114 $vifname -j SECCOLO --index $index
116 $vifname -j SECCOLO --index $index
[all …]
/xen/xen/common/
A Dradix-tree.c217 if (index > 0) in radix_tree_lookup_element()
308 index++; in radix_tree_next_hole()
309 if (index == 0) in radix_tree_next_hole()
313 return index; in radix_tree_next_hole()
345 index--; in radix_tree_prev_hole()
346 if (index == ULONG_MAX) in radix_tree_prev_hole()
350 return index; in radix_tree_prev_hole()
373 index += 1UL << shift; in __lookup()
374 if (index == 0) in __lookup()
389 index++; in __lookup()
[all …]
A Dbitmap.c285 int index = i/BITS_PER_LONG; in bitmap_find_free_region() local
286 int offset = i - (index * BITS_PER_LONG); in bitmap_find_free_region()
287 if((bitmap[index] & (mask << offset)) == 0) { in bitmap_find_free_region()
289 bitmap[index] |= (mask << offset); in bitmap_find_free_region()
310 int index = pos/BITS_PER_LONG; in bitmap_release_region() local
311 int offset = pos - (index * BITS_PER_LONG); in bitmap_release_region()
313 bitmap[index] &= ~(mask << offset); in bitmap_release_region()
321 int index = pos/BITS_PER_LONG; in bitmap_allocate_region() local
322 int offset = pos - (index * BITS_PER_LONG); in bitmap_allocate_region()
330 if (bitmap[index] & (mask << offset)) in bitmap_allocate_region()
[all …]
/xen/tools/xenstore/
A Dhashtable.c88 unsigned int newsize, i, index; in hashtable_expand() local
103 newtable[index] = e; in hashtable_expand()
120 if (index == i) in hashtable_expand()
128 newtable[index] = e; in hashtable_expand()
151 unsigned int index; in hashtable_insert() local
167 e->next = h->table[index]; in hashtable_insert()
168 h->table[index] = e; in hashtable_insert()
177 unsigned int hashvalue, index; in hashtable_search() local
180 e = h->table[index]; in hashtable_search()
200 unsigned int hashvalue, index; in hashtable_remove() local
[all …]
/xen/tools/firmware/hvmloader/
A Dhvm_param.c12 int hvm_param_get(uint32_t index, uint64_t *value) in hvm_param_get() argument
18 p.index = index; in hvm_param_get()
27 int hvm_param_set(uint32_t index, uint64_t value) in hvm_param_set() argument
32 p.index = index; in hvm_param_set()
/xen/xen/drivers/passthrough/vtd/
A Dintremap.c224 if ( index < 0 || index > IREMAP_ENTRY_NR - 1 ) in free_remap_entry()
287 if ( index < 0 || index > IREMAP_ENTRY_NR - 1 ) in remap_entry_to_ioapic_rte()
291 index); in remap_entry_to_ioapic_rte()
304 index); in remap_entry_to_ioapic_rte()
337 int index; in ioapic_rte_to_remap_entry() local
345 if ( index < 0 ) in ioapic_rte_to_remap_entry()
421 int index; in io_apic_read_remap_rte() local
553 index); in remap_entry_to_msi_msg()
566 index); in remap_entry_to_msi_msg()
684 i = index; in msi_msg_to_remap_entry()
[all …]
A Dqinval.c81 unsigned int index; in queue_invalidate_context_sync() local
86 index = qinval_next_index(iommu); in queue_invalidate_context_sync()
101 qinval_update_qtail(iommu, index); in queue_invalidate_context_sync()
115 unsigned int index; in queue_invalidate_iotlb_sync() local
120 index = qinval_next_index(iommu); in queue_invalidate_iotlb_sync()
140 qinval_update_qtail(iommu, index); in queue_invalidate_iotlb_sync()
151 unsigned int index; in queue_invalidate_wait() local
159 index = qinval_next_index(iommu); in queue_invalidate_wait()
242 unsigned int index; in qinval_device_iotlb_sync() local
248 index = qinval_next_index(iommu); in qinval_device_iotlb_sync()
[all …]
/xen/xen/lib/x86/
A Dprivate.h41 #define copy_to_buffer_offset(dst, index, src, nr) \ argument
45 typeof(index) index_ = (index); \
54 #define copy_from_buffer_offset(dst, src, index, nr) \ argument
58 typeof(index) index_ = (index); \
/xen/tools/libxc/
A Dxc_physdev.c38 int index, in xc_physdev_map_pirq() argument
52 map.index = index; in xc_physdev_map_pirq()
53 map.pirq = *pirq < 0 ? index : *pirq; in xc_physdev_map_pirq()
65 int index, in xc_physdev_map_pirq_msi() argument
83 map.index = index; in xc_physdev_map_pirq_msi()
A Dxc_hcall_buf.c142 unsigned index, in xc__hypercall_buffer_array_alloc() argument
148 if ( index >= array->max_bufs || array->bufs[index].hbuf ) in xc__hypercall_buffer_array_alloc()
153 array->bufs[index] = *hbuf; in xc__hypercall_buffer_array_alloc()
159 unsigned index, in xc__hypercall_buffer_array_get() argument
162 if ( index >= array->max_bufs || array->bufs[index].hbuf == NULL ) in xc__hypercall_buffer_array_get()
165 *hbuf = array->bufs[index]; in xc__hypercall_buffer_array_get()
166 return array->bufs[index].hbuf; in xc__hypercall_buffer_array_get()
/xen/xen/xsm/flask/ss/
A Debitmap.h87 unsigned int index = EBITMAP_NODE_INDEX(n, bit); in ebitmap_node_get_bit() local
90 BUG_ON( index >= EBITMAP_UNIT_NUMS ); in ebitmap_node_get_bit()
91 if ( (n->maps[index] & (EBITMAP_BIT << ofs)) ) in ebitmap_node_get_bit()
99 unsigned int index = EBITMAP_NODE_INDEX(n, bit); in ebitmap_node_set_bit() local
102 BUG_ON(index >= EBITMAP_UNIT_NUMS); in ebitmap_node_set_bit()
103 n->maps[index] |= (EBITMAP_BIT << ofs); in ebitmap_node_set_bit()
109 unsigned int index = EBITMAP_NODE_INDEX(n, bit); in ebitmap_node_clr_bit() local
112 BUG_ON( index >= EBITMAP_UNIT_NUMS ); in ebitmap_node_clr_bit()
113 n->maps[index] &= ~(EBITMAP_BIT << ofs); in ebitmap_node_clr_bit()
/xen/tools/libs/gnttab/
A Dfreebsd.c109 map.index); in osdep_gnttab_grant_map()
115 notify.index = map.index; in osdep_gnttab_grant_map()
119 notify.index += notify_offset; in osdep_gnttab_grant_map()
143 unmap_grant.index = map.index; in osdep_gnttab_grant_map()
194 unmap_grant.index = get_offset.offset; in osdep_gnttab_unmap()
258 fd, gref_info.index); in osdep_gntshr_share_pages()
267 notify.index = gref_info.index; in osdep_gntshr_share_pages()
271 notify.index += notify_offset; in osdep_gntshr_share_pages()
295 gref_drop.index = gref_info.index; in osdep_gntshr_share_pages()
A Dlinux.c131 map->index); in osdep_gnttab_grant_map()
153 notify.index = map->index; in osdep_gnttab_grant_map()
156 notify.index += notify_offset; in osdep_gnttab_grant_map()
179 unmap_grant.index = map->index; in osdep_gnttab_grant_map()
227 unmap_grant.index = get_offset.offset; in osdep_gnttab_unmap()
470 MAP_SHARED, fd, gref_info->index); in osdep_gntshr_share_pages()
478 notify.index = gref_info->index; in osdep_gntshr_share_pages()
481 notify.index += notify_offset; in osdep_gntshr_share_pages()
502 gref_drop.index = gref_info->index; in osdep_gntshr_share_pages()
/xen/tools/include/xen-sys/FreeBSD/
A Dgntdev.h121 uint64_t index; member
139 uint64_t index; member
150 uint64_t index; member
168 uint64_t index; member
177 uint64_t index; member
/xen/xen/include/asm-arm/
A Dasm_defns.h13 # define ASM_REG(index) asm("r" # index) argument
20 # define ASM_REG(index) asm("x" # index) argument
/xen/xen/common/xz/
A Ddec_stream.c116 } index; member
284 s->index.size += in_used; in index_update()
307 switch (s->index.sequence) { in dec_index()
309 s->index.count = s->vli; in dec_index()
323 s->index.hash.unpadded += s->vli; in dec_index()
329 s->index.hash.crc32 = xz_crc32( in dec_index()
331 sizeof(s->index.hash), in dec_index()
332 s->index.hash.crc32); in dec_index()
333 --s->index.count; in dec_index()
337 } while (s->index.count > 0); in dec_index()
[all …]
/xen/xen/arch/x86/
A Dmonitor.c74 u32 index = msr; in monitor_enable_msr() local
79 bitmap = monitor_bitmap_for_msr(d, &index); in monitor_enable_msr()
84 __set_bit(index, bitmap); in monitor_enable_msr()
89 __set_bit(index + sizeof(struct monitor_msr_bitmap) * 8, bitmap); in monitor_enable_msr()
91 __clear_bit(index + sizeof(struct monitor_msr_bitmap) * 8, bitmap); in monitor_enable_msr()
156 if ( unlikely(mop->u.mov_to_cr.index >= in arch_monitor_domctl_event()
163 ctrlreg_bitmask = monitor_ctrlreg_bitmask(mop->u.mov_to_cr.index); in arch_monitor_domctl_event()
183 ad->monitor.write_ctrlreg_mask[mop->u.mov_to_cr.index] = mop->u.mov_to_cr.bitmask; in arch_monitor_domctl_event()
188 ad->monitor.write_ctrlreg_mask[mop->u.mov_to_cr.index] = 0; in arch_monitor_domctl_event()
192 if ( VM_EVENT_X86_CR3 == mop->u.mov_to_cr.index || in arch_monitor_domctl_event()
[all …]
A Dxstate.c54 : "c" (index), "d" (hi)); in xsetbv()
208 unsigned int index = fls(feature) - 1; in expand_xsave_states() local
214 BUG_ON(!comp_offsets[index]); in expand_xsave_states()
215 BUG_ON((xstate_offsets[index] + xstate_sizes[index]) > size); in expand_xsave_states()
217 memcpy(dest + xstate_offsets[index], src + comp_offsets[index], in expand_xsave_states()
218 xstate_sizes[index]); in expand_xsave_states()
280 BUG_ON(!comp_offsets[index]); in compress_xsave_states()
281 BUG_ON((xstate_offsets[index] + xstate_sizes[index]) > size); in compress_xsave_states()
283 memcpy(dest + comp_offsets[index], src + xstate_offsets[index], in compress_xsave_states()
284 xstate_sizes[index]); in compress_xsave_states()
[all …]
/xen/xen/drivers/cpufreq/
A Dutility.c283 unsigned int *index) in cpufreq_frequency_table_target() argument
286 .index = ~0, in cpufreq_frequency_table_target()
290 .index = ~0, in cpufreq_frequency_table_target()
318 optimal.index = i; in cpufreq_frequency_table_target()
323 suboptimal.index = i; in cpufreq_frequency_table_target()
331 optimal.index = i; in cpufreq_frequency_table_target()
336 suboptimal.index = i; in cpufreq_frequency_table_target()
342 if (optimal.index > i) { in cpufreq_frequency_table_target()
343 if (suboptimal.index > i) in cpufreq_frequency_table_target()
345 *index = suboptimal.index; in cpufreq_frequency_table_target()
[all …]
/xen/tools/include/xen-sys/Linux/
A Dgntalloc.h29 uint64_t index; member
46 uint64_t index; member
70 uint64_t index; member
/xen/xen/arch/arm/
A Dhvm.c110 rc = hvm_allow_set_param(d, a.index); in do_hvm_op()
114 d->arch.hvm.params[a.index] = a.value; in do_hvm_op()
118 rc = hvm_allow_get_param(d, a.index); in do_hvm_op()
122 a.value = d->arch.hvm.params[a.index]; in do_hvm_op()
/xen/xen/arch/x86/oprofile/
A Dop_model_ppro.c209 static int ppro_is_arch_pmu_msr(u64 msr_index, int *type, int *index) in ppro_is_arch_pmu_msr() argument
215 *index = msr_index - MSR_IA32_PERFCTR0; in ppro_is_arch_pmu_msr()
222 *index = msr_index - MSR_P6_EVNTSEL(0); in ppro_is_arch_pmu_msr()
258 static void ppro_load_msr(struct vcpu *v, int type, int index, u64 *msr_content) in ppro_load_msr() argument
264 *msr_content = msrs[index].counter; in ppro_load_msr()
267 *msr_content = msrs[index].control; in ppro_load_msr()
272 static void ppro_save_msr(struct vcpu *v, int type, int index, u64 msr_content) in ppro_save_msr() argument
279 msrs[index].counter = msr_content; in ppro_save_msr()
282 msrs[index].control = msr_content; in ppro_save_msr()
A Dop_x86_model.h39 int (*is_arch_pmu_msr)(u64 msr_index, int *type, int *index);
42 void (*load_msr)(struct vcpu * const v, int type, int index, u64 *msr_content);
43 void (*save_msr)(struct vcpu * const v, int type, int index, u64 msr_content);
/xen/tools/ocaml/libs/xentoollog/
A Dgenlevels.py43 for index,level in enumerate(olevels):
44 s += '\t| %s -> %d\n' % (level, index)
71 for index,level in enumerate(levels):
72 s += "\tcase %s:\n\t\treturn Val_int(%d);\n" % (level, index)

Completed in 29 milliseconds

12345678