Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 231) sorted by relevance

12345678910

/xen/tools/firmware/rombios/
A Dbiossums.c281 offset = offset + 0x0F; in chksum__32__get_offset()
282 offset = offset & ~( 0x0F ); in chksum__32__get_offset()
284 offset = offset + 16; in chksum__32__get_offset()
335 offset = offset + 0x0F; in chksum__mp__get_offset()
336 offset = offset & ~( 0x0F ); in chksum__mp__get_offset()
338 offset = offset + 16; in chksum__mp__get_offset()
395 offset = offset + 0x0F; in chksum_pcmp_get_offset()
396 offset = offset & ~( 0x0F ); in chksum_pcmp_get_offset()
398 offset = offset + 16; in chksum_pcmp_get_offset()
450 offset = offset + 0x0F; in chksum__pir_get_offset()
[all …]
/xen/xen/common/libfdt/
A Dfdt_ro.c139 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
221 int offset; in fdt_first_property_offset() local
367 (offset >= 0) && (offset <= nodeoffset); in fdt_get_path()
368 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
399 if ((offset == -FDT_ERR_NOTFOUND) || (offset >= 0)) in fdt_get_path()
419 (offset >= 0) && (offset <= nodeoffset); in fdt_supernode_atdepth_offset()
420 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_supernode_atdepth_offset()
435 if ((offset == -FDT_ERR_NOTFOUND) || (offset >= 0)) in fdt_supernode_atdepth_offset()
481 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_node_offset_by_prop_value()
508 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_node_offset_by_phandle()
[all …]
A Dfdt.c85 if (((offset + len) < offset) in fdt_offset_ptr()
144 if ((offset < 0) || (offset % FDT_TAGSIZE) in _fdt_check_node_offset()
148 return offset; in _fdt_check_node_offset()
153 if ((offset < 0) || (offset % FDT_TAGSIZE) in _fdt_check_prop_offset()
154 || (fdt_next_tag(fdt, offset, &offset) != FDT_PROP)) in _fdt_check_prop_offset()
157 return offset; in _fdt_check_prop_offset()
197 return offset; in fdt_next_node()
204 offset = fdt_next_node(fdt, offset, &depth); in fdt_first_subnode()
208 return offset; in fdt_first_subnode()
220 offset = fdt_next_node(fdt, offset, &depth); in fdt_next_subnode()
[all …]
A Dfdt_sw.c79 if ((offset + len < offset) || (offset + len > spaceleft)) in _fdt_grab_space()
111 int offset; in fdt_add_reservemap_entry() local
118 offset = fdt_off_dt_struct(fdt); in fdt_add_reservemap_entry()
172 int struct_top, offset; in _fdt_find_add_string() local
179 offset = -strtabsize - len; in _fdt_find_add_string()
184 memcpy(strtab + offset, s, len); in _fdt_find_add_string()
186 return offset; in _fdt_find_add_string()
217 int offset, nextoffset; in fdt_finish() local
234 offset = 0; in fdt_finish()
238 _fdt_offset_ptr_w(fdt, offset); in fdt_finish()
[all …]
A Dlibfdt_internal.h63 int _fdt_check_node_offset(const void *fdt, int offset);
64 int _fdt_check_prop_offset(const void *fdt, int offset);
68 static inline const void *_fdt_offset_ptr(const void *fdt, int offset) in _fdt_offset_ptr() argument
70 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; in _fdt_offset_ptr()
73 static inline void *_fdt_offset_ptr_w(void *fdt, int offset) in _fdt_offset_ptr_w() argument
75 return (void *)(uintptr_t)_fdt_offset_ptr(fdt, offset); in _fdt_offset_ptr_w()
A Dfdt_wip.c95 int _fdt_node_end_offset(void *fdt, int offset) in _fdt_node_end_offset() argument
99 while ((offset >= 0) && (depth >= 0)) in _fdt_node_end_offset()
100 offset = fdt_next_node(fdt, offset, &depth); in _fdt_node_end_offset()
102 return offset; in _fdt_node_end_offset()
/xen/tools/firmware/vgabios/
A Dbiossums.c91 offset = 0L; in main()
93 offset = tmp_offset; in main()
117 offset = 0L; in main()
131 offset = 0L; in main()
133 offset = chksum_bios_get_offset(bios_data, offset); in main()
205 return( *( data + offset ) ); in chksum_bios_get_value()
211 *( data + offset ) = value; in chksum_bios_set_value()
239 offset = offset + 1; in chksum_pmid_get_offset()
244 result = offset; in chksum_pmid_get_offset()
271 offset = offset + 1; in chksum_pcir_get_offset()
[all …]
/xen/xen/drivers/vpci/
A Dvpci.c90 if ( r1->offset < r2->offset + r2->size && in vpci_register_cmp()
91 r2->offset < r1->offset + r1->size ) in vpci_register_cmp()
93 if ( r1->offset < r2->offset ) in vpci_register_cmp()
95 if ( r1->offset > r2->offset ) in vpci_register_cmp()
146 r->offset = offset; in vpci_add_register()
342 if ( emu.offset < r->offset ) in vpci_read()
345 read_size = r->offset - emu.offset; in vpci_read()
354 if ( r->offset < emu.offset ) in vpci_read()
359 max(emu.offset, r->offset); in vpci_read()
454 if ( emu.offset < r->offset ) in vpci_write()
[all …]
/xen/xen/arch/x86/
A Dbitops.c33 ASSERT(offset <= size); in __find_next_bit()
40 return (offset + set); in __find_next_bit()
41 offset += BITS_PER_LONG - bit; in __find_next_bit()
45 if ( offset >= size ) in __find_next_bit()
49 set = __find_first_bit(p, size - offset); in __find_next_bit()
50 return (offset + set); in __find_next_bit()
83 ASSERT(offset <= size); in __find_next_zero_bit()
90 return (offset + set); in __find_next_zero_bit()
91 offset += BITS_PER_LONG - bit; in __find_next_zero_bit()
95 if ( offset >= size ) in __find_next_zero_bit()
[all …]
A Dpci.c14 uint32_t pci_conf_read(uint32_t cf8, uint8_t offset, uint8_t bytes) in pci_conf_read() argument
19 BUG_ON((offset + bytes) > 4); in pci_conf_read()
28 value = inb(0xcfc + offset); in pci_conf_read()
31 value = inw(0xcfc + offset); in pci_conf_read()
34 value = inl(0xcfc + offset); in pci_conf_read()
46 void pci_conf_write(uint32_t cf8, uint8_t offset, uint8_t bytes, uint32_t data) in pci_conf_write() argument
50 BUG_ON((offset + bytes) > 4); in pci_conf_write()
59 outb((uint8_t)data, 0xcfc + offset); in pci_conf_write()
62 outw((uint16_t)data, 0xcfc + offset); in pci_conf_write()
65 outl(data, 0xcfc + offset); in pci_conf_write()
/xen/xen/arch/arm/arm64/lib/
A Dfind_next_bit.c26 if (offset >= size) in find_next_bit()
29 offset %= BITS_PER_LONG; in find_next_bit()
30 if (offset) { in find_next_bit()
32 tmp &= (~0UL << offset); in find_next_bit()
72 if (offset >= size) in find_next_zero_bit()
76 if (offset) { in find_next_zero_bit()
196 if (offset >= size) in find_next_zero_bit_le()
198 p += BIT_WORD(offset); in find_next_zero_bit_le()
201 if (offset) { in find_next_zero_bit_le()
242 if (offset >= size) in find_next_bit_le()
[all …]
/xen/tools/libxl/
A Dlibxl_libfdt_compat.c65 _hidden int fdt_first_subnode(const void *fdt, int offset) in fdt_first_subnode() argument
69 offset = fdt_next_node(fdt, offset, &depth); in fdt_first_subnode()
70 if (offset < 0 || depth != 1) in fdt_first_subnode()
73 return offset; in fdt_first_subnode()
78 _hidden int fdt_next_subnode(const void *fdt, int offset) in fdt_next_subnode() argument
87 offset = fdt_next_node(fdt, offset, &depth); in fdt_next_subnode()
88 if (offset < 0 || depth < 1) in fdt_next_subnode()
92 return offset; in fdt_next_subnode()
/xen/xen/common/
A Dlzo.c169 size_t offset; in lzo1x_decompress_safe() local
176 offset = ip - ip_last; in lzo1x_decompress_safe()
180 offset = (offset << 8) - offset; in lzo1x_decompress_safe()
237 size_t offset; in lzo1x_decompress_safe() local
244 offset = ip - ip_last; in lzo1x_decompress_safe()
248 offset = (offset << 8) - offset; in lzo1x_decompress_safe()
249 t += offset + 31 + *ip++; in lzo1x_decompress_safe()
262 size_t offset; in lzo1x_decompress_safe() local
269 offset = ip - ip_last; in lzo1x_decompress_safe()
273 offset = (offset << 8) - offset; in lzo1x_decompress_safe()
[all …]
A Dtrace.c179 uint16_t offset; in alloc_trace_bufs() local
209 t_info->mfn_offset[cpu] = offset; in alloc_trace_bufs()
218 t_info_mfn_list[offset + i] = 0; in alloc_trace_bufs()
234 offset = t_info->mfn_offset[cpu]; in alloc_trace_bufs()
241 cpu, t_info_mfn_list[offset], offset); in alloc_trace_bufs()
267 offset = t_info->mfn_offset[cpu]; in alloc_trace_bufs()
268 if ( !offset ) in alloc_trace_bufs()
564 uint32_t offset; in __insert_record() local
574 remaining = PAGE_SIZE - offset; in __insert_record()
588 rec = (struct t_rec*)(this_page + offset); in __insert_record()
[all …]
/xen/xen/arch/arm/acpi/
A Dlib.c30 unsigned long base, offset, mapped_size; in __acpi_map_table() local
33 offset = phys & (PAGE_SIZE - 1); in __acpi_map_table()
34 mapped_size = PAGE_SIZE - offset; in __acpi_map_table()
49 return ((char *) base + offset); in __acpi_map_table()
68 paddr_t offset = 0; in acpi_get_table_offset() local
73 offset += ROUNDUP(tbl_add[i].size, 8); in acpi_get_table_offset()
76 return offset; in acpi_get_table_offset()
/xen/xen/arch/arm/arm64/
A Dinsn.c162 long offset; in branch_imm_common() local
169 offset = ((long)addr - (long)pc); in branch_imm_common()
171 if (offset < -range || offset >= range) { in branch_imm_common()
176 return offset; in branch_imm_common()
183 long offset; in aarch64_insn_gen_branch_imm() local
190 offset = branch_imm_common(pc, addr, SZ_128M); in aarch64_insn_gen_branch_imm()
191 if (offset >= SZ_128M) in aarch64_insn_gen_branch_imm()
207 offset >> 2); in aarch64_insn_gen_branch_imm()
257 offset >> 2); in aarch64_set_branch_offset()
262 offset >> 2); in aarch64_set_branch_offset()
[all …]
/xen/xen/arch/arm/arm32/
A Dinsn.c26 static uint32_t branch_insn_encode_immediate(uint32_t insn, int32_t offset) in branch_insn_encode_immediate() argument
36 imm = ((offset >> 2) & BRANCH_INSN_IMM_MASK) << BRANCH_INSN_IMM_SHIFT; in branch_insn_encode_immediate()
71 uint32_t aarch32_set_branch_offset(uint32_t insn, int32_t offset) in aarch32_set_branch_offset() argument
74 if ( offset < -SZ_32M || offset >= SZ_32M ) in aarch32_set_branch_offset()
81 return branch_insn_encode_immediate(insn, offset); in aarch32_set_branch_offset()
/xen/tools/xentrace/
A Dmread.c33 ssize_t mread64(mread_handle_t h, void *rec, ssize_t len, off_t offset) in mread64() argument
55 offset, len); in mread64()
56 if ( offset > h->file_size ) in mread64()
62 if ( offset + len > h->file_size ) in mread64()
66 len = h->file_size - offset; in mread64()
72 && (offset & MREAD_BUF_MASK) == h->map[h->last].start_offset ) in mread64()
82 && (offset & MREAD_BUF_MASK) == h->map[bind].start_offset ) in mread64()
117 h->map[h->clock].start_offset = offset & MREAD_BUF_MASK; in mread64()
138 boffset=offset - h->map[bind].start_offset; in mread64()
153 len-bsize, offset+bsize); in mread64()
[all …]
/xen/tools/firmware/rombios/32bit/tcgbios/
A Dtpm_drivers.c92 uint32_t offset = 0; in tis_senddata() local
112 tis_addr[TPM_DATA_FIFO] = data[offset]; in tis_senddata()
113 offset++; in tis_senddata()
116 if (burst == 0 || offset == len) { in tis_senddata()
121 if (offset == len) { in tis_senddata()
132 uint32_t offset = 0; in tis_readresp() local
136 while (offset < len) { in tis_readresp()
137 buffer[offset] = mmio_readb(&tis_addr[TPM_DATA_FIFO]); in tis_readresp()
138 offset++; in tis_readresp()
/xen/xen/arch/x86/pv/
A Dro-page-fault.c43 unsigned long addr = offset; in ptwr_emulated_read()
68 unsigned int offset = 0; in ptwr_emulated_update() local
89 offset = (addr & (sizeof(full) - 1)) * 8; in ptwr_emulated_update()
101 full &= ~((((intpte_t)1 << (bytes * 8)) - 1) << offset); in ptwr_emulated_update()
104 val <<= offset; in ptwr_emulated_update()
108 old <<= offset; in ptwr_emulated_update()
178 *p_old = old >> offset; in ptwr_emulated_update()
215 offset, bytes); in ptwr_emulated_write()
221 return ptwr_emulated_update(offset, NULL, val, bytes, ctxt); in ptwr_emulated_write()
234 offset, bytes); in ptwr_emulated_cmpxchg()
[all …]
/xen/xen/drivers/passthrough/amd/
A Diommu_intr.c257 rte->vector = (u8)offset; in set_rte_index()
258 rte->delivery_mode = offset >> 8; in set_rte_index()
278 unsigned int dest, offset; in update_intremap_entry_from_ioapic() local
291 offset = *index; in update_intremap_entry_from_ioapic()
301 *index = offset; in update_intremap_entry_from_ioapic()
349 set_rte_index(rte, offset); in update_intremap_entry_from_ioapic()
464 unsigned int offset; in amd_iommu_read_ioapic_from_ire() local
514 unsigned int dest, offset, i; in update_intremap_entry_from_msi_msg() local
549 offset = *remap_index; in update_intremap_entry_from_msi_msg()
559 *remap_index = offset; in update_intremap_entry_from_msi_msg()
[all …]
/xen/tools/libfsimage/xfs/
A Dfsys_xfs.c26 xfs_fileoff_t offset; member
169 return (key >= offset) ? (key < offset + len ? 1 : 0) : 0; in isinxt()
204 int offset; in di_read() local
209 offset = ino2offset (ino); in di_read()
276 xad.offset = xt_offset (xfs.xt); in next_extent()
292 xfs_fileoff_t offset;; in xfs_dabread() local
296 offset = xad->offset; in xfs_dabread()
489 xfs_fileoff_t endofprev, endofcur, offset; in xfs_read() local
504 offset = xad->offset; in xfs_read()
519 } else if (offset > endofprev) { in xfs_read()
[all …]
/xen/tools/xenpaging/
A Dfile_ops.c28 off_t offset = i; in file_op() local
32 offset = lseek(fd, offset << PAGE_SHIFT, SEEK_SET); in file_op()
33 if ( offset == (off_t)-1 ) in file_op()
/xen/xen/include/asm-arm/
A Dvreg.h123 unsigned int offset, in vreg_reg_extract() argument
126 reg >>= 8 * offset; in vreg_reg_extract()
133 unsigned int offset, in vreg_reg_update() argument
137 int shift = offset * 8; in vreg_reg_update()
144 unsigned int offset, in vreg_reg_setbits() argument
148 int shift = offset * 8; in vreg_reg_setbits()
154 unsigned int offset, in vreg_reg_clearbits() argument
158 int shift = offset * 8; in vreg_reg_clearbits()
/xen/xen/arch/arm/efi/
A Defi-dom0.c59 u64 table_addr, table_size, offset = 0; in acpi_create_efi_system_table() local
79 offset += sizeof(EFI_SYSTEM_TABLE); in acpi_create_efi_system_table()
80 memcpy(base_ptr + offset, xen_efi_fw_vendor, sizeof(xen_efi_fw_vendor)); in acpi_create_efi_system_table()
81 efi_sys_tbl->FirmwareVendor = (CHAR16 *)(table_addr + offset); in acpi_create_efi_system_table()
83 offset += sizeof(xen_efi_fw_vendor); in acpi_create_efi_system_table()
84 efi_conf_tbl = (EFI_CONFIGURATION_TABLE *)(base_ptr + offset); in acpi_create_efi_system_table()
88 + offset); in acpi_create_efi_system_table()

Completed in 56 milliseconds

12345678910