/freebsd-11-stable/usr.sbin/bhyve/ |
H A D | pci_emul.c | 241 pci_valid_pba_offset(struct pci_devinst *pi, uint64_t offset) argument 244 if (offset < pi->pi_msix.pba_offset) 247 if (offset >= pi->pi_msix.pba_offset + pi->pi_msix.pba_size) { 255 pci_emul_msix_twrite(struct pci_devinst *pi, uint64_t offset, int size, argument 269 tab_index = offset / MSIX_TABLE_ENTRY_SIZE; 273 msix_entry_offset = offset % MSIX_TABLE_ENTRY_SIZE; 291 pci_emul_msix_tread(struct pci_devinst *pi, uint64_t offset, int size) argument 306 msix_entry_offset = offset % MSIX_TABLE_ENTRY_SIZE; 313 tab_index = offset / MSIX_TABLE_ENTRY_SIZE; 326 } else if (pci_valid_pba_offset(pi, offset)) { 360 uint64_t offset; local 386 uint64_t offset; local 861 msixcap_cfgwrite(struct pci_devinst *pi, int capoff, int offset, int bytes, uint32_t val) argument 885 msicap_cfgwrite(struct pci_devinst *pi, int capoff, int offset, int bytes, uint32_t val) argument 924 pciecap_cfgwrite(struct pci_devinst *pi, int capoff, int offset, int bytes, uint32_t val) argument 958 pci_emul_capwrite(struct pci_devinst *pi, int offset, int bytes, uint32_t val) argument 1012 pci_emul_iscap(struct pci_devinst *pi, int offset) argument 1973 pci_emul_diow(struct vmctx *ctx, int vcpu, struct pci_devinst *pi, int baridx, uint64_t offset, int size, uint64_t value) argument 2040 pci_emul_dior(struct vmctx *ctx, int vcpu, struct pci_devinst *pi, int baridx, uint64_t offset, int size) argument [all...] |
H A D | vga.c | 217 int offset; local 222 offset = (y * sc->gc_width / 8) + (x / 8); 225 data = (((sc->vga_ram[offset + 0 * 64*KB] >> bit) & 0x1) << 0) | 226 (((sc->vga_ram[offset + 1 * 64*KB] >> bit) & 0x1) << 1) | 227 (((sc->vga_ram[offset + 2 * 64*KB] >> bit) & 0x1) << 2) | 228 (((sc->vga_ram[offset + 3 * 64*KB] >> bit) & 0x1) << 3); 250 int offset; local 252 offset = y * sc->gc_width + x; 253 sc->gc_image->data[offset] = vga_get_pixel(sc, x, y); 261 int dots, offset, bi local 313 int offset; local 346 int offset; local 410 int offset; local [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Instruction/MIPS/ |
H A D | EmulateInstructionMIPS.cpp | 684 {"SW", &EmulateInstructionMIPS::Emulate_SW, "SW rt, offset(rs)"}, 685 {"LW", &EmulateInstructionMIPS::Emulate_LW, "LW rt, offset(base)"}, 695 {"SWSP_MM", &EmulateInstructionMIPS::Emulate_SWSP, "SWSP rt,offset(sp)"}, 697 "SWM16 reglist,offset(sp)"}, 699 "SWM32 reglist,offset(base)"}, 701 "SWP rs1,offset(base)"}, 702 {"LWSP_MM", &EmulateInstructionMIPS::Emulate_LWSP, "LWSP rt,offset(sp)"}, 704 "LWM16 reglist,offset(sp)"}, 706 "LWM32 reglist,offset(base)"}, 708 "LWP rd,offset(bas 1803 int32_t offset, pc, target = 0, rs_val, rt_val; local 1852 int32_t offset, pc, target = 0, rs_val, rt_val; local 1931 int32_t offset, pc, target = 0; local 2000 int32_t offset, pc, target = 0; local 2050 int32_t offset, pc, target = 0; local 2103 int32_t offset, pc, target = 0; local 2162 int32_t offset, pc, target; local 2213 int32_t offset = insn.getOperand(1).getImm(); local 2329 uint32_t offset = 0, target = 0, pc = 0, ra_offset = 0; local 2411 int32_t offset, pc, target; local 2442 int32_t offset, pc, target; local 2473 int32_t offset, pc, target; local 2496 uint32_t offset, pc; local 2519 uint32_t offset, target, pc; local 2586 int32_t target, offset, pc, rt_val; local 2624 int32_t target, offset, rt_val; local 2677 int32_t pc, offset, target = 0; local 2715 int32_t target, pc, offset; local 2751 int32_t target, pc, offset; local 2793 int32_t pc, offset, target = 0; local 2883 int32_t offset = insn.getOperand(1).getImm(); local 2952 int32_t offset = insn.getOperand(1).getImm(); local [all...] |
/freebsd-11-stable/contrib/subversion/subversion/libsvn_fs_fs/ |
H A D | index.c | 78 /* global offset on the page within the index file */ 79 apr_uint64_t offset; member in struct:l2p_page_table_entry_t 130 /* phys offset + 1 of the data container. 0 for "new revision" entries. */ 131 apr_uint64_t offset; member in struct:l2p_proto_entry_t 138 * an array with one offset value for each rev file cluster. 190 * (i.e. which offset will reported as offset 0 by packed_stream_offset). */ 193 /* First offset within FILE after the stream data. 205 /* offset in FILE from which the first entry in BUFFER has been read */ 208 /* offset i 231 apr_off_t offset; local 424 packed_stream_seek(svn_fs_fs__packed_number_stream_t *stream, apr_off_t offset) argument 746 svn_fs_fs__l2p_proto_index_add_entry(apr_file_t *proto_index, apr_off_t offset, apr_uint64_t item_index, apr_pool_t *scratch_pool) argument 977 apr_off_t offset; local 1477 apr_uint64_t offset; member in struct:l2p_entry_baton_t 1529 l2p_index_lookup(apr_off_t *offset, svn_fs_t *fs, svn_fs_fs__revision_file_t *rev_file, svn_revnum_t revision, apr_uint64_t item_index, apr_pool_t *scratch_pool) argument 1640 l2p_proto_index_lookup(apr_off_t *offset, svn_fs_t *fs, const svn_fs_fs__id_part_t *txn_id, apr_uint64_t item_index, apr_pool_t *scratch_pool) argument 1938 apr_off_t offset = 0; local 2169 apr_off_t offset; local 2253 apr_off_t offset; member in struct:p2l_page_info_baton_t 2460 apr_off_t offset; local 2597 get_p2l_keys(p2l_page_info_baton_t *page_info_p, svn_fs_fs__page_cache_key_t *key_p, svn_fs_fs__revision_file_t *rev_file, svn_fs_t *fs, svn_revnum_t revision, apr_off_t offset, apr_pool_t *scratch_pool) argument 2934 apr_off_t offset = *(const apr_off_t *)rhs; local 2945 get_p2l_entry_from_cached_page(const void *data, apr_uint64_t offset, apr_pool_t *result_pool, apr_pool_t *scratch_pool) argument 2990 svn_fs_fs__p2l_entry_lookup(svn_fs_fs__p2l_entry_t **entry_p, svn_fs_t *fs, svn_fs_fs__revision_file_t *rev_file, svn_revnum_t revision, apr_off_t offset, apr_pool_t *result_pool, apr_pool_t *scratch_pool) argument 3049 p2l_get_max_offset(apr_off_t *offset, svn_fs_t *fs, svn_fs_fs__revision_file_t *rev_file, svn_revnum_t revision, apr_pool_t *scratch_pool) argument 3083 svn_fs_fs__p2l_get_max_offset(apr_off_t *offset, svn_fs_t *fs, svn_fs_fs__revision_file_t *rev_file, svn_revnum_t revision, apr_pool_t *scratch_pool) argument [all...] |
/freebsd-11-stable/contrib/ntp/scripts/monitoring/ |
H A D | ntp.pl | 39 ;# n offset 82 local($junksize,$junk,$packet,$offset,$ret); 83 $offset = 0; 98 $offset, $junksize, $junk); 103 $offset += $junksize; 359 local($li_vn_mode,$r_e_m_op,$seq,$status,$associd,$offset,$count,$data); 370 ($li_vn_mode,$r_e_m_op,$seq,$status,$associd,$offset,$count,$data) = 395 if ($offset == 0 && &pkt_M($r_e_m_op) == 0) 426 $FRAGS{$offset} = $data; 434 if (defined($FRAGS{$offset})) [all...] |
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/sys/ |
H A D | ctf.h | 68 * flags, and the byte offset of each of the sections relative to the end of the 89 * Strings are recorded as a string table ID (0 or 1) and a byte offset into the 103 #define CTF_MAX_NAME 0x7fffffff /* max offset into a string table */ 105 #define CTF_MAX_INTOFF 0xff /* max offset of intrinsic value in bits */ 123 uint_t cth_lbloff; /* offset of label section */ 124 uint_t cth_objtoff; /* offset of object section */ 125 uint_t cth_funcoff; /* offset of function section */ 126 uint_t cth_typeoff; /* offset of type section */ 127 uint_t cth_stroff; /* offset of string section */ 206 * offset [all...] |
/freebsd-11-stable/sys/dev/dcons/ |
H A D | dcons.c | 128 dcons_init_port(int port, int offset, int size, struct dcons_buf *buf, argument 140 dc->o.buf = (char *)buf + offset; 149 buf->ooffset[port] = htonl(offset); 150 buf->ioffset[port] = htonl(offset + osize); 196 int size0, size1, offset; local 198 offset = DCONS_HEADER_SIZE; 199 size0 = (size - offset); 202 dcons_init_port(0, offset, size1, buf, sc); 203 offset += size1; 204 dcons_init_port(1, offset, size [all...] |
/freebsd-11-stable/sys/dev/gxemul/disk/ |
H A D | gxemul_disk.c | 84 off_t offset; local 97 offset = bp->bio_offset; 103 error = gxemul_disk_read(diskid, buf, offset); 108 error = gxemul_disk_write(diskid, buf, offset); 121 offset += GXEMUL_DISK_DEV_BLOCKSIZE; 145 * If we can read at offset 0, this disk id must be 246 uint64_t offset, ogood; local 255 offset = (ogood * s) + (m * GXEMUL_DISK_DEV_BLOCKSIZE); 257 error = gxemul_disk_read(diskid, NULL, offset); 269 if (ogood == offset) { [all...] |
/freebsd-11-stable/sys/gnu/dev/bwn/phy_n/ |
H A D | if_bwn_phy_n_tables.h | 104 #define BWN_NTAB8(table, offset) (((table) << 10) | (offset) | BWN_NTAB_8BIT) 105 #define BWN_NTAB16(table, offset) (((table) << 10) | (offset) | BWN_NTAB_16BIT) 106 #define BWN_NTAB32(table, offset) (((table) << 10) | (offset) | BWN_NTAB_32BIT) 210 uint32_t bwn_ntab_read(struct bwn_mac *mac, uint32_t offset); 211 void bwn_ntab_read_bulk(struct bwn_mac *mac, uint32_t offset, 213 void bwn_ntab_write(struct bwn_mac *mac, uint32_t offset, uint32_t value); 214 void bwn_ntab_write_bulk(struct bwn_mac *mac, uint32_t offset, [all...] |
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/ |
H A D | ib_packer.c | 43 static u64 value_read(int offset, int size, void *structure) argument 46 case 1: return *(u8 *) ((char *)structure + offset); 47 case 2: return be16_to_cpup((__be16 *) ((char *)structure + offset)); 48 case 4: return be32_to_cpup((__be32 *) ((char *)structure + offset)); 49 case 8: return be64_to_cpup((__be64 *) ((char *)structure + offset)); 130 static void value_write(int offset, int size, u64 val, void *structure) argument 133 case 8: *( u8 *) ((char *)structure + offset) = val; break; 134 case 16: *(__be16 *) ((char *)structure + offset) = cpu_to_be16(val); break; 135 case 32: *(__be32 *) ((char *)structure + offset) = cpu_to_be32(val); break; 136 case 64: *(__be64 *) ((char *)structure + offset) [all...] |
/freebsd-11-stable/sys/arm/xscale/pxa/ |
H A D | pxa_space.c | 188 pxa_bus_tag_alloc(bus_addr_t offset) argument 199 tag->bs_privdata = (void *)offset; 207 proto(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset) \ 212 value = base(NULL, bsh + tag_offset, offset); \ 224 proto(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, \ 229 base(NULL, bsh + tag_offset, offset, value); \ 240 proto(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, \ 245 base(NULL, bsh + tag_offset, offset, dest, count); \ 257 proto(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, \ 262 base(NULL, bsh + tag_offset, offset, sr [all...] |
/freebsd-11-stable/sbin/adjkerntz/ |
H A D | adjkerntz.c | 45 * Use Joerg Wunsch idea for seconds accurate offset calculation 88 long offset, localsec, diff; local 98 case 'i': /* initial call, save offset */ 103 case 'a': /* adjustment call, use saved offset */ 168 /* get local CMOS clock and possible kernel offset */ 207 offset = -local.tm_gmtoff; 209 fprintf(stderr, "Initial offset: %ld secs\n", offset); 213 /* subtract kernel offset, if present, old offset to [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/ |
H A D | DataExtractor.cpp | 34 uint64_t offset = *offset_ptr; 35 if (!de->isValidOffsetForDataOfSize(offset, sizeof(T))) { 39 std::memcpy(&val, &Data[offset], sizeof(val)); 43 // Advance the offset 56 uint64_t offset = *offset_ptr; 58 if (!de->isValidOffsetForDataOfSize(offset, sizeof(*dst) * count)) { 63 ++value_ptr, offset += sizeof(*dst)) 65 // Advance the offset 66 *offset_ptr = offset; 155 uint64_t offset local [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/Host/ |
H A D | File.h | 76 /// that takes an "off_t &offset" to ensure correct operation in multi- 91 /// that takes an "off_t &offset" to ensure correct operation in multi- 154 /// Seek to an offset relative to the beginning of the file. 162 /// \param[in] offset 163 /// The offset to seek to within the file relative to the 171 /// The resulting seek offset, or -1 on error. 172 virtual off_t SeekFromStart(off_t offset, Status *error_ptr = nullptr); 174 /// Seek to an offset relative to the current file position. 182 /// \param[in] offset 183 /// The offset t [all...] |
/freebsd-11-stable/contrib/gcclibs/libmudflap/ |
H A D | mf-hooks1.c | 322 int flags, int fd, off_t offset) 327 BEGIN_PROTECT (mmap, start, length, prot, flags, fd, offset); 330 flags, fd, offset); 346 uintptr_t offset; local 348 for (offset=0; offset<length; offset+=ps) 353 __mf_register ((void *) CLAMPADD (base, offset), ps, 392 uintptr_t offset; local 394 for (offset 320 WRAPPER(void *, mmap, void *start, size_t length, int prot, int flags, int fd, off_t offset) argument [all...] |
/freebsd-11-stable/sys/dev/sound/pcm/ |
H A D | matrix_map.h | 44 * [interleave offset] = { 55 * .offset = { 56 * channel offset that directly translate to the above interleave 57 * offset according to SND_CHN_T_* definitions. 88 .offset = { 0, 0, 0, 0, 0, 0, -1, -1, 0, \ 119 .offset = { 0, 1, -1, -1, -1, -1, -1, -1, -1, \ 156 .offset = { 0, 1, -1, 2, -1, -1, -1, -1, -1, \ 194 .offset = { 0, 1, -1, -1, -1, -1, -1, -1, 2, \ 237 .offset = { 0, 1, -1, 2, -1, -1, -1, -1, 3, \ 281 .offset [all...] |
/freebsd-11-stable/sys/geom/ |
H A D | geom_map.c | 56 off_t offset[MAP_MAXSLICE]; /* offset in flash */ member in struct:g_map_softc 134 find_marker(struct g_consumer *cp, const char *line, off_t *offset) argument 143 *offset = strtouq(line, &op, 0); 202 /* Marker found, so return their offset */ 203 *offset = search_offset; 219 off_t start, end, offset, size, dsize; local 277 /* offset of partition data, from partition begin */ 278 if (resource_string_value("map", i, "offset", &value) == 0) { 279 offset [all...] |
/freebsd-11-stable/crypto/openssl/crypto/ |
H A D | o_time.c | 278 * Take a tm structure and add an offset to it. This avoids any OS issues 295 /* Convert time and offset into julian day and seconds */ 350 /* Convert tm structure and offset into julian day and seconds */ 357 /* split offset into days and day seconds */ 362 /* Add current time seconds to offset */ 432 long offset; local 433 for (offset = 0; offset < 1000000; offset++) { 434 check_time(offset); 441 check_time(long offset) argument [all...] |
/freebsd-11-stable/lib/libkvm/ |
H A D | kvm_minidump_amd64.c | 158 amd64_physaddr_t offset; local 165 offset = va & AMD64_PAGE_MASK; 185 *pa = ofs + offset; 186 return (AMD64_PAGE_SIZE - offset); 196 *pa = ofs + offset; 197 return (AMD64_PAGE_SIZE - offset); 215 amd64_physaddr_t offset; local 224 offset = va & AMD64_PAGE_MASK; 264 a += (va & AMD64_PDRMASK) ^ offset; 273 *pa = ofs + offset; [all...] |
/freebsd-11-stable/contrib/file/src/ |
H A D | readelf.c | 354 size_t offset, len; local 402 offset = 0; 404 if (offset >= CAST(size_t, bufsize)) 406 offset = donote(ms, nbuf, offset, CAST(size_t, bufsize), 409 if (offset == 0) 828 * Unfortunately, it's at a different offset 852 * isn't the right offset. 966 off_t offset; local 971 offset 1101 dodynamic(struct magic_set *ms, void *vbuf, size_t offset, size_t size, int clazz, int swap) argument 1133 donote(struct magic_set *ms, void *vbuf, size_t offset, size_t size, int clazz, int swap, size_t align, int *flags, uint16_t *notecount, int fd, off_t ph_off, int ph_num, off_t fsize) argument 1627 size_t offset, align, len; local [all...] |
/freebsd-11-stable/contrib/elftoolchain/libdwarf/ |
H A D | libdwarf_elf_init.c | 60 uint64_t offset; local 76 offset = rel.r_offset; 77 if (offset + size >= bufsize) 81 addend = _dwarf_read_msb(buf, &offset, size); 83 addend = _dwarf_read_lsb(buf, &offset, size); 85 offset = rel.r_offset; 87 _dwarf_write_msb(buf, &offset, sym.st_value + addend, 90 _dwarf_write_lsb(buf, &offset, sym.st_value + addend, 103 uint64_t offset; local 114 offset [all...] |
/freebsd-11-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-pci-defs.h | 56 static inline uint64_t CVMX_PCI_BAR1_INDEXX(unsigned long offset) argument 59 (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset <= 31))) || 60 (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 31))) || 61 (OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 31))) || 62 (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 31))) || 63 (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 31))))) 64 cvmx_warn("CVMX_PCI_BAR1_INDEXX(%lu) is invalid on this chip\n", offset); 65 return 0x0000000000000100ull + ((offset) & 31) * 4; 68 #define CVMX_PCI_BAR1_INDEXX(offset) (0x0000000000000100ull + ((offset) 434 CVMX_PCI_DBELL_X(unsigned long offset) argument 451 CVMX_PCI_DMA_CNTX(unsigned long offset) argument 468 CVMX_PCI_DMA_INT_LEVX(unsigned long offset) argument 485 CVMX_PCI_DMA_TIMEX(unsigned long offset) argument 504 CVMX_PCI_INSTR_COUNTX(unsigned long offset) argument 578 CVMX_PCI_PKTS_SENTX(unsigned long offset) argument 597 CVMX_PCI_PKTS_SENT_INT_LEVX(unsigned long offset) argument 616 CVMX_PCI_PKTS_SENT_TIMEX(unsigned long offset) argument 635 CVMX_PCI_PKT_CREDITSX(unsigned long offset) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/common/ |
H A D | File.cpp | 124 off_t File::SeekFromStart(off_t offset, Status *error_ptr) { argument 130 off_t File::SeekFromCurrent(off_t offset, Status *error_ptr) { argument 136 off_t File::SeekFromEnd(off_t offset, Status *error_ptr) { argument 142 Status File::Read(void *dst, size_t &num_bytes, off_t &offset) { argument 146 Status File::Write(const void *src, size_t &num_bytes, off_t &offset) { argument 368 off_t NativeFile::SeekFromStart(off_t offset, Status *error_ptr) { argument 371 result = ::lseek(m_descriptor, offset, SEEK_SET); 380 result = ::fseek(m_stream, offset, SEEK_SET); 394 off_t NativeFile::SeekFromCurrent(off_t offset, Status *error_ptr) { argument 397 result = ::lseek(m_descriptor, offset, SEEK_CU 420 SeekFromEnd(off_t offset, Status *error_ptr) argument 601 Read(void *buf, size_t &num_bytes, off_t &offset) argument 661 Write(const void *buf, size_t &num_bytes, off_t &offset) argument [all...] |
/freebsd-11-stable/sys/dev/drm2/radeon/ |
H A D | radeon_combios.c | 71 /* absolute offset tables */ 106 /* relative offset tables */ 107 COMBIOS_ASIC_INIT_3_TABLE, /* offset from misc info */ 108 COMBIOS_ASIC_INIT_4_TABLE, /* offset from misc info */ 109 COMBIOS_DETECTED_MEM_TABLE, /* offset from misc info */ 110 COMBIOS_ASIC_INIT_5_TABLE, /* offset from misc info */ 111 COMBIOS_RAM_RESET_TABLE, /* offset from mem config */ 112 COMBIOS_POWERPLAY_INFO_TABLE, /* offset from mobile info */ 113 COMBIOS_GPIO_INFO_TABLE, /* offset from mobile info */ 114 COMBIOS_LCD_DDC_INFO_TABLE, /* offset fro 157 uint16_t offset = 0, check_offset; local 733 u16 offset; local 1491 uint16_t offset; local 2716 u16 offset, misc, misc2 = 0; local 2969 uint16_t offset; local 3095 combios_parse_mmio_table(struct drm_device *dev, uint16_t offset) argument 3174 combios_parse_pll_table(struct drm_device *dev, uint16_t offset) argument 3264 combios_parse_ram_reset_table(struct drm_device *dev, uint16_t offset) argument 3347 uint16_t offset; local [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Expression/ |
H A D | DWARFExpression.cpp | 49 lldb::offset_t offset = addr_base + index * index_size; local 52 if (data.ValidOffsetForDataOfSize(offset, index_size)) 53 return data.GetMaxU64_unchecked(&offset, index_size); 136 lldb::offset_t offset = 0; local 143 &offset, s->AsRawOstream(), 204 lldb::offset_t offset = data_offset; local 207 case DW_OP_call_ref: // 0x9a 1 address sized offset of DIE (DWARF3) 323 case DW_OP_call2: // 0x98 1 2-byte offset of DIE (DWARF3) 329 case DW_OP_call4: // 0x99 1 4-byte offset of DIE (DWARF3) 375 case DW_OP_fbreg: // 0x91 1 SLEB128 offset 534 lldb::offset_t offset = 0; local 932 lldb::offset_t offset = 0; local [all...] |