Searched refs:start_idx (Results 1 – 2 of 2) sorted by relevance
119 size_t i, start_idx, end_idx, page_idx, tmp; in thread_mutate() local126 start_idx = rand_r(&seed) & PAGE_IDX_MASK; in thread_mutate()128 if (start_idx > end_idx) { in thread_mutate()129 tmp = start_idx; in thread_mutate()130 start_idx = end_idx; in thread_mutate()134 for (page_idx = start_idx & REGION_MASK; page_idx <= end_idx; in thread_mutate()147 ret = mprotect(&ctx->ptr[start_idx * ctx->pagesize], in thread_mutate()148 (end_idx - start_idx + 1) * ctx->pagesize, prot); in thread_mutate()
523 const unsigned int start_idx = offset / vmem->memslot_size; in virtio_mem_activate_memslots_to_plug() local532 for (idx = start_idx; idx < end_idx; idx++) { in virtio_mem_activate_memslots_to_plug()543 const unsigned int start_idx = offset / vmem->memslot_size; in virtio_mem_deactivate_unplugged_memslots() local552 for (idx = start_idx; idx < end_idx; idx++) { in virtio_mem_deactivate_unplugged_memslots()