Home
last modified time | relevance | path

Searched refs:sec (Results 1 – 25 of 47) sorted by relevance

12

/xen-4.10.0-shim-comet/xen/common/
A Dlivepatch_elf.c31 s = sec->sec; in elf_verify_strtab()
63 elf->sec = sec; in elf_resolve_sections()
73 sec[i].sec = data + delta; in elf_resolve_sections()
75 delta = sec[i].sec->sh_offset; in elf_resolve_sections()
89 else if ( sec[i].sec->sh_addralign & (sec[i].sec->sh_addralign - 1) ) in elf_resolve_sections()
96 sec[i].sec->sh_addr % sec[i].sec->sh_addralign ) in elf_resolve_sections()
99 elf->name, i, sec[i].sec->sh_addr, sec[i].sec->sh_addralign); in elf_resolve_sections()
183 sec = &elf->sec[elf->hdr->e_shstrndx]; in elf_resolve_section_names()
194 offset = sec->sec->sh_offset; in elf_resolve_section_names()
201 delta = elf->sec[i].sec->sh_name; in elf_resolve_section_names()
[all …]
A Dlivepatch.c308 const Elf_Shdr *s = sec->sec; in calc_section()
411 elf->sec[i].sec->sh_size); in move_payload()
416 memset(elf->sec[i].load_addr, 0, elf->sec[i].sec->sh_size); in move_payload()
469 if ( sec->sec->sh_size % sz ) in section_ok()
472 elf->name, sec->sec->sh_size, sec->name, sz); in section_ok()
499 if ( !sec->sec->sh_size ) in check_special_sections()
594 if ( sec->sec->sh_size <= sizeof(*n) ) in prepare_payload()
597 if ( xen_build_id_check(n, sec->sec->sh_size, in prepare_payload()
624 if ( sec->sec->sh_size <= sizeof(*n) ) in prepare_payload()
670 end = sec->load_addr + sec->sec->sh_size; in prepare_payload()
[all …]
A Dtime.c100 uint64_t sec; in update_domain_wallclock_time() local
108 sec = wc_sec + d->time_offset_seconds; in update_domain_wallclock_time()
109 shared_info(d, wc_sec) = sec; in update_domain_wallclock_time()
113 d->shared_info->native.wc_sec_hi = sec >> 32; in update_domain_wallclock_time()
115 d->shared_info->compat.arch.wc_sec_hi = sec >> 32; in update_domain_wallclock_time()
117 shared_info(d, wc_sec_hi) = sec >> 32; in update_domain_wallclock_time()
/xen-4.10.0-shim-comet/tools/blktap2/drivers/
A Dtapdisk-filter.c108 hash = filter->dhash + sec; in check_hash()
129 hash = filter->dhash + sec; in insert_hash()
139 if (sec >= filter->secs) in check_sector()
142 hash = filter->dhash + sec; in check_sector()
146 insert_hash(filter, sec, buf); in check_sector()
148 check_hash(filter, sec, buf, WRITE_INTEGRITY); in check_sector()
150 check_hash(filter, sec, buf, READ_INTEGRITY); in check_sector()
151 insert_hash(filter, sec, buf); in check_sector()
159 uint64_t i, sec; in check_data() local
165 uint64_t sec = (io->u.c.offset + i) >> 9; in check_data() local
[all …]
A Dblock-vhd.c918 r->treq.sec / SPB, r->treq.sec, tx, in add_to_transaction()
1141 u32 blk, sec; in read_bitmap_cache() local
1189 u32 blk, sec; in read_bitmap_cache_span() local
1206 for (ret = 0; sec < s->spb && ret < nr_secs; sec++, ret++) in read_bitmap_cache_span()
1459 sec = treq.sec % s->spb; in schedule_data_read()
1504 sec = treq.sec % s->spb; in schedule_data_write()
1851 "err: %d\n", r->treq.sec, r->treq.sec / s->spb, err); in signal_completion()
1888 u32 sec = r->treq.sec % s->spb; in start_new_bitmap_transaction() local
2145 req->treq.sec, req->treq.sec / s->spb); in finish_data_read()
2163 sec = req->treq.sec % s->spb; in finish_data_write()
[all …]
A Dblock-cache.c74 uint64_t sec; member
223 char *buf, uint64_t sec, size_t size) in radix_tree_allocate_page() argument
232 page->sec = sec; in radix_tree_allocate_page()
246 tree->cache->name, page->sec + i); in radix_tree_free_page()
618 cache->name, treq.sec + i, block_cache_hash(cache, iov[i])); in block_cache_hit()
652 cache->name, breq->treq.sec + i); in block_cache_populate_cache()
658 breq->treq.sec, breq->treq.secs)) in block_cache_populate_cache()
675 DBG("%s: block cache miss: sec 0x%08llx\n", cache->name, treq.sec); in block_cache_miss()
726 iov[i] = radix_tree_find_leaf(tree, treq.sec + i); in block_cache_queue_read()
A Dtapdisk-diff.c56 uint64_t sec; member
329 fprintf(stderr, "error reading sector 0x%"PRIx64"\n", sreq->sec); in tapdisk_stream_dequeue()
334 sreq->sec); in tapdisk_stream_dequeue()
360 sreq->sec = r->sec; in tapdisk_stream_enqueue_copy()
423 sreq->sec = s->cur; in tapdisk_stream_enqueue1()
430 breq->sector_number = sreq->sec; in tapdisk_stream_enqueue1()
478 if (itr->sec < s->cur) in tapdisk_stream_enqueue2()
485 if (itr->sec < s->cur) in tapdisk_stream_enqueue2()
A Dtapdisk-image.c106 if (treq.secs <= 0 || treq.sec + treq.secs > info->size) in tapdisk_image_check_td_request()
114 treq.sec + treq.secs); in tapdisk_image_check_td_request()
A Dtapdisk-ring.h64 uint64_t sec; member
A Dtapdisk-vbd.c1215 treq.secs, treq.sec); in __tapdisk_vbd_complete_td_request()
1224 uint64_t sec = tapdisk_vbd_breq_get_sector(breq, treq); in __tapdisk_vbd_complete_td_request() local
1230 sec, secs); in __tapdisk_vbd_complete_td_request()
1260 if (treq.sec + treq.secs > parent->info.size) { in __tapdisk_vbd_reissue_td_request()
1263 if (parent->info.size > treq.sec) { in __tapdisk_vbd_reissue_td_request()
1264 int secs = parent->info.size - treq.sec; in __tapdisk_vbd_reissue_td_request()
1265 clone.sec += secs; in __tapdisk_vbd_reissue_td_request()
1293 treq.sec, in __tapdisk_vbd_reissue_td_request()
1349 (int)treq.id, treq.sidx, treq.sec, treq.secs, in tapdisk_vbd_complete_td_request()
1397 treq.sec = sector_nr; in tapdisk_vbd_issue_request()
[all …]
A Dblock-ram.c205 uint64_t offset = treq.sec * (uint64_t)driver->info.sector_size; in tdram_queue_read()
216 uint64_t offset = treq.sec * (uint64_t)driver->info.sector_size; in tdram_queue_write()
/xen-4.10.0-shim-comet/xen/arch/x86/efi/
A Dmkreloc.c169 offs = sec->file_offset & (page_size - 1); in map_section()
172 sec->file_offset - offs); in map_section()
186 munmap((char *)ptr - offs, offs + sec->file_size); in unmap_section()
198 if ( !sec ) in diff_sections()
211 for ( i = 0; i < sec->file_size; ++i ) in diff_sections()
229 sec->name, i); in diff_sections()
241 sec->name, i, delta, diff); in diff_sections()
266 sec->name, i); in diff_sections()
270 if ( !(sec->flags & COFF_SECTION_WRITEABLE) ) in diff_sections()
273 sec->name, i); in diff_sections()
[all …]
/xen-4.10.0-shim-comet/xen/include/xen/
A Dlivepatch_elf.h13 const Elf_Shdr *sec; /* Hooked up in elf_resolve_sections.*/ member
31 struct livepatch_elf_sec *sec; /* Array of sections, allocated by us. */ member
49 static inline bool livepatch_elf_ignore_section(const Elf_Shdr *sec) in livepatch_elf_ignore_section() argument
51 return !(sec->sh_flags & SHF_ALLOC) || sec->sh_size == 0; in livepatch_elf_ignore_section()
/xen-4.10.0-shim-comet/tools/blktap2/vhd/lib/
A Dvhd-util-coalesce.c36 __raw_io_write(int fd, char* buf, uint64_t sec, uint32_t secs) in __raw_io_write() argument
42 off = lseek(fd, vhd_sectors_to_bytes(sec), SEEK_SET); in __raw_io_write()
45 vhd_sectors_to_bytes(sec), -errno); in __raw_io_write()
67 uint64_t sec, secs; in vhd_util_coalesce_block() local
71 sec = block * vhd->spb; in vhd_util_coalesce_block()
80 err = vhd_io_read(vhd, buf, sec, vhd->spb); in vhd_util_coalesce_block()
86 err = vhd_io_write(parent, buf, sec, vhd->spb); in vhd_util_coalesce_block()
88 err = __raw_io_write(parent_fd, buf, sec, vhd->spb); in vhd_util_coalesce_block()
107 sec + i, secs); in vhd_util_coalesce_block()
111 sec + i, secs); in vhd_util_coalesce_block()
A Dvhd-util-fill.c41 uint64_t i, sec, secs; in vhd_util_fill() local
80 sec = 0; in vhd_util_fill()
84 err = vhd_io_read(&vhd, buf, sec, secs); in vhd_util_fill()
88 err = vhd_io_write(&vhd, buf, sec, secs); in vhd_util_fill()
92 sec += secs; in vhd_util_fill()
A Dlibvhd.c2960 char *buf, uint64_t sec, uint32_t secs) in __vhd_io_fixed_read() argument
3000 uint32_t blk, sec; in __vhd_io_dynamic_read_link() local
3008 sec = sector % ctx->spb; in __vhd_io_dynamic_read_link()
3028 cnt = MIN(secs, ctx->spb - sec); in __vhd_io_dynamic_read_link()
3029 src = data + vhd_sectors_to_bytes(sec); in __vhd_io_dynamic_read_link()
3033 bitmap, sec, in __vhd_io_dynamic_read_link()
3251 uint32_t blk, sec; in __vhd_io_dynamic_write() local
3269 sec = sector % ctx->spb; in __vhd_io_dynamic_write()
3280 off += ctx->bm_secs + sec; in __vhd_io_dynamic_write()
3285 cnt = MIN(secs, ctx->spb - sec); in __vhd_io_dynamic_write()
[all …]
A Dvhd-util-read.c435 uint32_t blk, bm_blk, sec; in vhd_test_bitmap() local
448 sec = cur % vhd->spb; in vhd_test_bitmap()
469 printf("sec: %s: %d\n", conv(hex, sec), bit); in vhd_test_bitmap()
552 vhd_read_data(vhd_context_t *vhd, uint64_t sec, int count, int hex) in vhd_read_data() argument
558 if (vhd_sectors_to_bytes(sec + count) > vhd->footer.curr_size) in vhd_read_data()
566 cur = sec; in vhd_read_data()
/xen-4.10.0-shim-comet/xen/arch/x86/
A Dlivepatch.c166 for ( i = 0; i < (rela->sec->sh_size / rela->sec->sh_entsize); i++ ) in arch_livepatch_perform_rela()
168 const Elf_RelA *r = rela->data + i * rela->sec->sh_entsize; in arch_livepatch_perform_rela()
200 if ( r->r_offset >= base->sec->sh_size || in arch_livepatch_perform_rela()
201 (r->r_offset + sizeof(uint64_t)) > base->sec->sh_size ) in arch_livepatch_perform_rela()
217 if ( r->r_offset >= base->sec->sh_size || in arch_livepatch_perform_rela()
218 (r->r_offset + sizeof(uint32_t)) > base->sec->sh_size ) in arch_livepatch_perform_rela()
/xen-4.10.0-shim-comet/tools/memshr/
A Dinterface.c148 uint64_t sec, in memshr_vbd_issue_ro_request() argument
177 blk.sec = sec; in memshr_vbd_issue_ro_request()
209 uint64_t sec, in memshr_vbd_complete_ro_request() argument
220 blk.sec = sec; in memshr_vbd_complete_ro_request()
A Dbidir-hash.h26 uint64_t sec; member
88 return (uint32_t)(block.sec) ^ (uint32_t)(block.disk_id); in blockshr_block_hash()
98 return (b1.sec == b2.sec) && (b1.disk_id == b2.disk_id); in blockshr_block_cmp()
A Dmemshr.h42 uint64_t sec,
48 uint64_t sec,
/xen-4.10.0-shim-comet/xen/include/asm-arm/
A Dshort-desc.h32 bool sec:1; /* == 1 if section or supersection */ member
54 bool sec:1; /* == 1 if section or supersection */ member
124 short_desc_l1_sec_t sec; member
/xen-4.10.0-shim-comet/xen/arch/arm/arm64/
A Dlivepatch.c246 for ( i = 0; i < (rela->sec->sh_size / rela->sec->sh_entsize); i++ ) in arch_livepatch_perform_rela()
248 const Elf_RelA *r = rela->data + i * rela->sec->sh_entsize; in arch_livepatch_perform_rela()
277 if ( r->r_offset >= base->sec->sh_size || in arch_livepatch_perform_rela()
278 (r->r_offset + sizeof(uint32_t)) > base->sec->sh_size ) in arch_livepatch_perform_rela()
285 if ( r->r_offset + sizeof(uint64_t) > base->sec->sh_size ) in arch_livepatch_perform_rela()
300 if ( r->r_offset + sizeof(uint64_t) > base->sec->sh_size ) in arch_livepatch_perform_rela()
/xen-4.10.0-shim-comet/xen/arch/arm/arm32/
A Dlivepatch.c230 for ( i = 0; i < (rela->sec->sh_size / rela->sec->sh_entsize); i++ ) in arch_livepatch_perform()
240 const Elf_RelA *r_a = rela->data + i * rela->sec->sh_entsize; in arch_livepatch_perform()
249 const Elf_Rel *r = rela->data + i * rela->sec->sh_entsize; in arch_livepatch_perform()
/xen-4.10.0-shim-comet/xen/arch/arm/
A Dguest_walk.c157 if ( !pte.sec.supersec ) /* Section */ in guest_walk_sd()
160 *ipa = ((paddr_t)pte.sec.base << L1DESC_SECTION_SHIFT) | (gva & mask); in guest_walk_sd()
172 if ( !pte.sec.ro ) in guest_walk_sd()
174 if ( !pte.sec.xn ) in guest_walk_sd()

Completed in 50 milliseconds

12