| /xen/tools/firmware/rombios/ |
| A D | biossums.c | 281 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/tools/firmware/vgabios/ |
| A D | biossums.c | 91 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/common/libfdt/ |
| A D | fdt_ro.c | 122 offset = fdt_next_node(fdt, offset, NULL); in fdt_find_max_phandle() 234 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen() 340 int offset; in fdt_first_property_offset() local 554 (offset >= 0) && (offset <= nodeoffset); in fdt_get_path() 555 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path() 586 if ((offset == -FDT_ERR_NOTFOUND) || (offset >= 0)) in fdt_get_path() 606 (offset >= 0) && (offset <= nodeoffset); in fdt_supernode_atdepth_offset() 607 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_supernode_atdepth_offset() 671 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_node_offset_by_prop_value() 698 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_node_offset_by_phandle() [all …]
|
| A D | fdt.c | 148 if (offset < 0) in fdt_offset_ptr() 200 offset += 4; in fdt_next_tag() 222 && ((offset < 0) || (offset % FDT_TAGSIZE))) in fdt_check_node_offset_() 225 if (fdt_next_tag(fdt, offset, &offset) != FDT_BEGIN_NODE) in fdt_check_node_offset_() 228 return offset; in fdt_check_node_offset_() 234 && ((offset < 0) || (offset % FDT_TAGSIZE))) in fdt_check_prop_offset_() 237 if (fdt_next_tag(fdt, offset, &offset) != FDT_PROP) in fdt_check_prop_offset_() 240 return offset; in fdt_check_prop_offset_() 280 return offset; in fdt_next_node() 287 offset = fdt_next_node(fdt, offset, &depth); in fdt_first_subnode() [all …]
|
| A D | fdt_sw.c | 102 if ((offset + len < offset) || (offset + len > spaceleft)) in fdt_grab_space_() 191 int offset; in fdt_add_reservemap_entry() local 195 offset = fdt_off_dt_struct(fdt); in fdt_add_reservemap_entry() 255 unsigned int struct_top, offset; in fdt_add_string_() local 257 offset = strtabsize + len; in fdt_add_string_() 262 memcpy(strtab - offset, s, len); in fdt_add_string_() 264 return -offset; in fdt_add_string_() 343 int offset, nextoffset; in fdt_finish() local 360 offset = 0; in fdt_finish() 364 fdt_offset_ptr_w_(fdt, offset); in fdt_finish() [all …]
|
| A D | libfdt_internal.h | 21 int fdt_check_node_offset_(const void *fdt, int offset); 22 int fdt_check_prop_offset_(const void *fdt, int offset); 26 static inline const void *fdt_offset_ptr_(const void *fdt, int offset) in fdt_offset_ptr_() argument 28 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; in fdt_offset_ptr_() 31 static inline void *fdt_offset_ptr_w_(void *fdt, int offset) in fdt_offset_ptr_w_() argument 33 return (void *)(uintptr_t)fdt_offset_ptr_(fdt, offset); in fdt_offset_ptr_w_()
|
| A D | fdt_check.c | 17 int offset, nextoffset = 0; in fdt_check_full() local 39 offset = nextoffset; in fdt_check_full() 40 tag = fdt_next_tag(fdt, offset, &nextoffset); in fdt_check_full() 68 name = fdt_get_name(fdt, offset, &len); in fdt_check_full() 83 prop = fdt_getprop_by_offset(fdt, offset, &propname, in fdt_check_full()
|
| A D | fdt_wip.c | 73 int fdt_node_end_offset_(void *fdt, int offset) in fdt_node_end_offset_() argument 77 while ((offset >= 0) && (depth >= 0)) in fdt_node_end_offset_() 78 offset = fdt_next_node(fdt, offset, &depth); in fdt_node_end_offset_() 80 return offset; in fdt_node_end_offset_()
|
| /xen/xen/arch/x86/ |
| A D | bitops.c | 33 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 D | pci.c | 14 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/lib/ |
| A D | find-next-bit.c | 29 if (offset >= size) in find_next_bit() 32 offset %= BITS_PER_LONG; in find_next_bit() 33 if (offset) { in find_next_bit() 35 tmp &= (~0UL << offset); in find_next_bit() 75 if (offset >= size) in find_next_zero_bit() 79 if (offset) { in find_next_zero_bit() 199 if (offset >= size) in find_next_zero_bit_le() 201 p += BIT_WORD(offset); in find_next_zero_bit_le() 204 if (offset) { in find_next_zero_bit_le() 245 if (offset >= size) in find_next_bit_le() [all …]
|
| /xen/tools/libs/light/ |
| A D | libxl_libfdt_compat.c | 65 _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/drivers/vpci/ |
| A D | vpci.c | 181 if ( r1->offset < r2->offset + r2->size && in vpci_register_cmp() 182 r2->offset < r1->offset + r1->size ) in vpci_register_cmp() 184 if ( r1->offset < r2->offset ) in vpci_register_cmp() 186 if ( r1->offset > r2->offset ) in vpci_register_cmp() 264 r->offset = offset; in vpci_add_register_mask() 483 if ( emu.offset < r->offset ) in vpci_read() 486 read_size = r->offset - emu.offset; in vpci_read() 496 if ( r->offset < emu.offset ) in vpci_read() 501 max(emu.offset, r->offset); in vpci_read() 606 if ( emu.offset < r->offset ) in vpci_write() [all …]
|
| /xen/xen/arch/arm/arm64/ |
| A D | sve-asm.S | 42 .macro _sve_str_v nz, nxbase, offset=0 45 _check_num (\offset), -0x100, 0xff 49 | (((\offset) & 7) << 10) \ 50 | (((\offset) & 0x1f8) << 13) 54 .macro _sve_ldr_v nz, nxbase, offset=0 57 _check_num (\offset), -0x100, 0xff 61 | (((\offset) & 7) << 10) \ 62 | (((\offset) & 0x1f8) << 13) 73 | (((\offset) & 7) << 10) \ 74 | (((\offset) & 0x1f8) << 13) [all …]
|
| A D | insn.c | 163 long offset; in branch_imm_common() local 170 offset = ((long)addr - (long)pc); in branch_imm_common() 172 if (offset < -range || offset >= range) { in branch_imm_common() 177 return offset; in branch_imm_common() 184 long offset; in aarch64_insn_gen_branch_imm() local 191 offset = branch_imm_common(pc, addr, SZ_128M); in aarch64_insn_gen_branch_imm() 192 if (offset >= SZ_128M) in aarch64_insn_gen_branch_imm() 208 offset >> 2); in aarch64_insn_gen_branch_imm() 258 offset >> 2); in aarch64_set_branch_offset() 263 offset >> 2); in aarch64_set_branch_offset() [all …]
|
| /xen/xen/common/ |
| A D | lzo.c | 161 size_t offset; in lzo1x_decompress_safe() local 168 offset = ip - ip_last; in lzo1x_decompress_safe() 172 offset = (offset << 8) - offset; in lzo1x_decompress_safe() 229 size_t offset; in lzo1x_decompress_safe() local 236 offset = ip - ip_last; in lzo1x_decompress_safe() 240 offset = (offset << 8) - offset; in lzo1x_decompress_safe() 241 t += offset + 31 + *ip++; in lzo1x_decompress_safe() 254 size_t offset; in lzo1x_decompress_safe() local 261 offset = ip - ip_last; in lzo1x_decompress_safe() 265 offset = (offset << 8) - offset; in lzo1x_decompress_safe() [all …]
|
| /xen/xen/arch/arm/arm32/ |
| A D | insn.c | 27 static uint32_t branch_insn_encode_immediate(uint32_t insn, int32_t offset) in branch_insn_encode_immediate() argument 37 imm = ((offset >> 2) & BRANCH_INSN_IMM_MASK) << BRANCH_INSN_IMM_SHIFT; in branch_insn_encode_immediate() 72 uint32_t aarch32_set_branch_offset(uint32_t insn, int32_t offset) in aarch32_set_branch_offset() argument 75 if ( offset < -SZ_32M || offset >= SZ_32M ) in aarch32_set_branch_offset() 82 return branch_insn_encode_immediate(insn, offset); in aarch32_set_branch_offset()
|
| /xen/tools/xentrace/ |
| A D | mread.c | 33 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/xen/common/efi/ |
| A D | pe.c | 111 UINTN offset, i; in pe_find_section() local 118 offset = dos->ExeHeader; in pe_find_section() 119 pe = image + offset; in pe_find_section() 121 offset += sizeof(*pe); in pe_find_section() 122 if ( image_size < offset || in pe_find_section() 132 offset += pe->FileHeader.SizeOfOptionalHeader; in pe_find_section() 136 sect = image + offset; in pe_find_section() 137 if ( image_size < offset + sizeof(*sect) ) in pe_find_section() 142 offset += sizeof(*sect); in pe_find_section()
|
| /xen/xen/arch/arm/acpi/ |
| A D | lib.c | 34 unsigned long base, offset; in __acpi_map_table() local 42 offset = phys & (PAGE_SIZE - 1); in __acpi_map_table() 43 base = FIXMAP_ADDR(FIX_ACPI_BEGIN) + offset; in __acpi_map_table() 55 size += offset; in __acpi_map_table() 121 paddr_t offset = 0; in acpi_get_table_offset() local 126 offset += ROUNDUP(tbl_add[i].size, 8); in acpi_get_table_offset() 129 return offset; in acpi_get_table_offset()
|
| /xen/xen/arch/x86/pv/ |
| A D | ro-page-fault.c | 34 enum x86_segment seg, unsigned long offset, void *p_data, in ptwr_emulated_read() argument 38 unsigned long addr = offset; in ptwr_emulated_read() 51 unsigned long offset, void *p_data, unsigned int bytes, in ptwr_emulated_insn_fetch() argument 78 unsigned int offset = 0; in ptwr_emulated_update() local 99 offset = (addr & (sizeof(full) - 1)) * 8; in ptwr_emulated_update() 115 val <<= offset; in ptwr_emulated_update() 119 old <<= offset; in ptwr_emulated_update() 188 *p_old = old >> offset; in ptwr_emulated_update() 217 enum x86_segment seg, unsigned long offset, void *p_data, in ptwr_emulated_write() argument 225 offset, bytes); in ptwr_emulated_write() [all …]
|
| /xen/tools/firmware/rombios/32bit/tcgbios/ |
| A D | tpm_drivers.c | 92 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/arm/ |
| A D | dm.c | 20 size_t offset; in dm_op() local 41 offset = offsetof(struct xen_dm_op, u); in dm_op() 44 if ( op_args->buf[0].size < offset ) in dm_op() 47 if ( copy_from_guest_offset((void *)&op, op_args->buf[0].h, 0, offset) ) in dm_op() 58 if ( op_args->buf[0].size < offset + op_size[op.op] ) in dm_op() 61 if ( copy_from_guest_offset((void *)&op.u, op_args->buf[0].h, offset, in dm_op() 131 !const_op && copy_to_guest_offset(op_args->buf[0].h, offset, in dm_op()
|
| /xen/tools/libfsimage/xfs/ |
| A D | fsys_xfs.c | 29 xfs_fileoff_t offset; member 155 return (key >= offset) ? (key < offset + len ? 1 : 0) : 0; in isinxt() 187 int offset; in di_read() local 192 offset = ino2offset (ino); in di_read() 259 xad.offset = xt_offset (xfs.xt); in next_extent() 275 xfs_fileoff_t offset;; in xfs_dabread() local 279 offset = xad->offset; in xfs_dabread() 499 xfs_fileoff_t endofprev, endofcur, offset; in xfs_read() local 514 offset = xad->offset; in xfs_read() 529 } else if (offset > endofprev) { in xfs_read() [all …]
|
| /xen/xen/arch/arm/include/asm/ |
| A D | vreg.h | 101 unsigned int offset = info->gpa & (offmask); \ 103 reg >>= 8 * offset; \ 113 unsigned int offset = info->gpa & (offmask); \ 115 unsigned int shift = offset * 8; \ 125 unsigned int offset = info->gpa & (offmask); \ 127 unsigned int shift = offset * 8; \ 136 unsigned int offset = info->gpa & (offmask); \ 138 unsigned int shift = offset * 8; \
|