Home
last modified time | relevance | path

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

12345678910>>...128

/freebsd/sys/contrib/libfdt/
H A Dfdt_ro.c58 static int fdt_nodename_eq_(const void *fdt, int offset, in fdt_nodename_eq_() argument
62 const char *p = fdt_get_name(fdt, offset, &olen); in fdt_nodename_eq_()
95 int offset; in fdt_get_max_phandle() local
97 for (offset = fdt_next_node(fdt, -1, NULL);; in fdt_get_max_phandle()
98 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_get_max_phandle()
101 if (offset == -FDT_ERR_NOTFOUND) in fdt_get_max_phandle()
104 if (offset < 0) in fdt_get_max_phandle()
107 phandle = fdt_get_phandle(fdt, offset); in fdt_get_max_phandle()
135 static int nextprop_(const void *fdt, int offset) in nextprop_() argument
141 tag = fdt_next_tag(fdt, offset, &nextoffset); in nextprop_()
[all …]
H A Dfdt.c77 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) in fdt_offset_ptr() argument
79 unsigned absoffset = offset + fdt_off_dt_struct(fdt); in fdt_offset_ptr()
81 if ((absoffset < offset) in fdt_offset_ptr()
87 if (((offset + len) < offset) in fdt_offset_ptr()
88 || ((offset + len) > fdt_size_dt_struct(fdt))) in fdt_offset_ptr()
91 return fdt_offset_ptr_(fdt, offset); in fdt_offset_ptr()
98 int offset = startoffset; in fdt_next_tag() local
102 tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE); in fdt_next_tag()
106 offset += FDT_TAGSIZE; in fdt_next_tag()
113 p = fdt_offset_ptr(fdt, offset++, 1); in fdt_next_tag()
[all …]
/freebsd/contrib/ofed/libibnetdisc/
H A Dibnetdisc_cache.c228 size_t offset = 0; in _load_header_info() local
234 offset += _unmarshall32(buf + offset, &magic); in _load_header_info()
241 offset += _unmarshall32(buf + offset, &version); in _load_header_info()
248 offset += _unmarshall32(buf + offset, node_count); in _load_header_info()
249 offset += _unmarshall32(buf + offset, port_count); in _load_header_info()
251 offset += _unmarshall64(buf + offset, &fabric_cache->from_node_guid); in _load_header_info()
252 offset += _unmarshall32(buf + offset, &tmp32); in _load_header_info()
316 size_t offset = 0; in _load_node() local
339 offset += _unmarshall16(buf + offset, &node->smalid); in _load_node()
340 offset += _unmarshall8(buf + offset, &node->smalmc); in _load_node()
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dqmi_wlfw_v01.c17 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01,
26 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01,
35 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01,
44 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01,
53 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01,
66 .offset = offsetof(struct wlfw_ce_svc_pipe_cfg_s_v01,
75 .offset = offsetof(struct wlfw_ce_svc_pipe_cfg_s_v01,
84 .offset = offsetof(struct wlfw_ce_svc_pipe_cfg_s_v01,
97 .offset = offsetof(struct wlfw_shadow_reg_cfg_s_v01,
106 .offset = offsetof(struct wlfw_shadow_reg_cfg_s_v01,
[all …]
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DDataEncoder.cpp50 uint32_t DataEncoder::PutU8(uint32_t offset, uint8_t value) { in PutU8() argument
51 if (ValidOffset(offset)) { in PutU8()
52 m_data_sp->GetBytes()[offset] = value; in PutU8()
53 return offset + 1; in PutU8()
58 uint32_t DataEncoder::PutU16(uint32_t offset, uint16_t value) { in PutU16() argument
59 if (ValidOffsetForDataOfSize(offset, sizeof(value))) { in PutU16()
61 write16be(m_data_sp->GetBytes() + offset, value); in PutU16()
63 write16le(m_data_sp->GetBytes() + offset, value); in PutU16()
65 return offset + sizeof(value); in PutU16()
70 uint32_t DataEncoder::PutU32(uint32_t offset, uint32_t value) { in PutU32() argument
[all …]
/freebsd/usr.sbin/fstyp/
H A Dhammer_disk.h89 #define HAMMER_BUFSIZE_DOALIGN(offset) \ argument
90 (((offset) + HAMMER_BUFMASK) & ~HAMMER_BUFMASK)
91 #define HAMMER_BUFSIZE64_DOALIGN(offset) \ argument
92 (((offset) + HAMMER_BUFMASK64) & ~HAMMER_BUFMASK64)
94 #define HAMMER_XBUFSIZE_DOALIGN(offset) \ argument
95 (((offset) + HAMMER_XBUFMASK) & ~HAMMER_XBUFMASK)
96 #define HAMMER_XBUFSIZE64_DOALIGN(offset) \ argument
97 (((offset) + HAMMER_XBUFMASK64) & ~HAMMER_XBUFMASK64)
249 #define HAMMER_ZONE(offset) ((offset) & HAMMER_OFF_ZONE_MASK) argument
251 #define hammer_is_zone_raw_volume(offset) \ argument
[all …]
/freebsd/stand/kshim/
H A Dbsd_busspace.c41 bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp) in bus_space_subregion() argument
44 *nbshp = bsh + offset; in bus_space_subregion()
50 bus_size_t offset, uint8_t *datap, bus_size_t count) in bus_space_read_multi_1() argument
53 *datap++ = bus_space_read_1(t, h, offset); in bus_space_read_multi_1()
59 bus_size_t offset, uint16_t *datap, bus_size_t count) in bus_space_read_multi_2() argument
62 *datap++ = bus_space_read_2(t, h, offset); in bus_space_read_multi_2()
68 bus_size_t offset, uint32_t *datap, bus_size_t count) in bus_space_read_multi_4() argument
70 h += offset; in bus_space_read_multi_4()
79 bus_size_t offset, uint8_t *datap, bus_size_t count) in bus_space_write_multi_1() argument
84 bus_space_write_1(t, h, offset, temp); in bus_space_write_multi_1()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.cpp26 lldb::offset_t *offset, uint64_t *value, in GetMaxU64() argument
28 const lldb::offset_t saved_offset = *offset; in GetMaxU64()
29 *value = data.GetMaxU64(offset, byte_size); in GetMaxU64()
30 return *offset != saved_offset; in GetMaxU64()
34 lldb::offset_t *offset, uint64_t *value, in GetMaxU64() argument
36 lldb::offset_t saved_offset = *offset; in GetMaxU64()
39 if (!GetMaxU64(data, offset, value, byte_size)) { in GetMaxU64()
40 *offset = saved_offset; in GetMaxU64()
48 lldb::offset_t *offset, int64_t *value, in GetMaxS64() argument
50 const lldb::offset_t saved_offset = *offset; in GetMaxS64()
[all …]
/freebsd/sys/dev/ofw/
H A Dofw_fdt.c220 fdt_offset_phandle(int offset) in fdt_offset_phandle() argument
222 if (offset < 0) in fdt_offset_phandle()
224 return ((phandle_t)offset + fdt_off_dt_struct(fdtp)); in fdt_offset_phandle()
242 int offset; in ofw_fdt_peer() local
246 offset = fdt_path_offset(fdtp, "/"); in ofw_fdt_peer()
248 return (fdt_offset_phandle(offset)); in ofw_fdt_peer()
251 offset = fdt_phandle_offset(node); in ofw_fdt_peer()
252 if (offset < 0) in ofw_fdt_peer()
254 offset = fdt_next_subnode(fdtp, offset); in ofw_fdt_peer()
255 return (fdt_offset_phandle(offset)); in ofw_fdt_peer()
[all …]
/freebsd/tools/regression/fsx/
H A Dfsx.c252 int offset = lp->args[0]; in logdump() local
257 offset, offset + len - 1, in logdump()
259 if (offset > oldlen) in logdump()
261 else if (offset + len > oldlen) in logdump()
263 if ((badoff >= offset || badoff >=oldlen) && in logdump()
264 badoff < offset + len) in logdump()
354 check_buffers(unsigned offset, unsigned size) in check_buffers() argument
362 if (memcmp(good_buf + offset, temp_buf, size) != 0) { in check_buffers()
364 offset, size); in check_buffers()
367 c = good_buf[offset]; in check_buffers()
[all …]
/freebsd/sys/dev/isci/scil/
H A Dsati_mode_sense.c354 U32 offset in sati_mode_sense_build_std_block_descriptor() argument
368 sati_set_data_byte(sequence, scsi_io, offset, (U8)((lba_low>>24) & 0xFF)); in sati_mode_sense_build_std_block_descriptor()
369 sati_set_data_byte(sequence, scsi_io, offset+1, (U8)((lba_low>>16) & 0xFF)); in sati_mode_sense_build_std_block_descriptor()
370 sati_set_data_byte(sequence, scsi_io, offset+2, (U8)((lba_low>>8) & 0xFF)); in sati_mode_sense_build_std_block_descriptor()
371 sati_set_data_byte(sequence, scsi_io, offset+3, (U8)(lba_low & 0xFF)); in sati_mode_sense_build_std_block_descriptor()
374 sati_set_data_byte(sequence, scsi_io, offset+4, 0); in sati_mode_sense_build_std_block_descriptor()
377 sati_set_data_byte(sequence,scsi_io, offset+5, (U8)((sector_size>>16) & 0xFF)); in sati_mode_sense_build_std_block_descriptor()
378 sati_set_data_byte(sequence,scsi_io, offset+6, (U8)((sector_size>>8) & 0xFF)); in sati_mode_sense_build_std_block_descriptor()
379 sati_set_data_byte(sequence,scsi_io, offset+7, (U8)(sector_size & 0xFF)); in sati_mode_sense_build_std_block_descriptor()
458 U32 offset in sati_mode_sense_read_write_error_translate_data() argument
[all …]
/freebsd/stand/kboot/kboot/arch/powerpc64/
H A Dfdt_arch.c36 int offset, len; in fdt_arch_fixups() local
44 offset = fdt_path_offset(fdtp, "/memory@0"); in fdt_arch_fixups()
45 if (offset > 0) in fdt_arch_fixups()
46 fdt_delprop(fdtp, offset, "available"); in fdt_arch_fixups()
52 offset = fdt_path_offset(fdtp, "/ibm,opal"); in fdt_arch_fixups()
53 if (offset > 0) { in fdt_arch_fixups()
55 base = fdt_getprop(fdtp, offset, "opal-base-address", in fdt_arch_fixups()
57 size = fdt_getprop(fdtp, offset, "opal-runtime-size", in fdt_arch_fixups()
63 offset = fdt_path_offset(fdtp, "/rtas"); in fdt_arch_fixups()
64 if (offset > 0) { in fdt_arch_fixups()
[all …]
/freebsd/contrib/llvm-project/lldb/source/API/
H A DSBData.cpp117 float SBData::GetFloat(lldb::SBError &error, lldb::offset_t offset) { in GetFloat() argument
118 LLDB_INSTRUMENT_VA(this, error, offset); in GetFloat()
124 uint32_t old_offset = offset; in GetFloat()
125 value = m_opaque_sp->GetFloat(&offset); in GetFloat()
126 if (offset == old_offset) in GetFloat()
132 double SBData::GetDouble(lldb::SBError &error, lldb::offset_t offset) { in GetDouble() argument
133 LLDB_INSTRUMENT_VA(this, error, offset); in GetDouble()
139 uint32_t old_offset = offset; in GetDouble()
140 value = m_opaque_sp->GetDouble(&offset); in GetDouble()
141 if (offset == old_offset) in GetDouble()
[all …]
/freebsd/sys/x86/include/
H A Dbus.h156 bus_size_t offset, bus_size_t size,
161 bus_size_t offset, bus_size_t size __unused, in bus_space_subregion() argument
165 *nbshp = bsh + offset; in bus_space_subregion()
197 bus_size_t offset);
201 bus_size_t offset);
205 bus_size_t offset);
210 bus_size_t offset);
215 bus_size_t offset) in bus_space_read_1() argument
219 return (inb(handle + offset)); in bus_space_read_1()
220 return (*(volatile u_int8_t *)(handle + offset)); in bus_space_read_1()
[all …]
/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_iores.c50 size_t offset; /**< offset within res */ member
76 bhnd_nvram_iores_new(struct bhnd_resource *r, bus_size_t offset, in bhnd_nvram_iores_new() argument
97 if (size > SIZE_MAX || offset > SIZE_MAX) { in bhnd_nvram_iores_new()
99 (uintmax_t)offset, (uintmax_t)offset); in bhnd_nvram_iores_new()
103 if (size > BUS_SPACE_MAXSIZE || offset > BUS_SPACE_MAXSIZE) in bhnd_nvram_iores_new()
106 (uintmax_t)offset, (uintmax_t)offset); in bhnd_nvram_iores_new()
113 if (r_size < offset || r_size < size || r_size - size < offset) in bhnd_nvram_iores_new()
117 if ((r_start + offset) % bus_width != 0) { in bhnd_nvram_iores_new()
119 "%u\n", (uintmax_t)r_start, (uintmax_t)offset, bus_width); in bhnd_nvram_iores_new()
133 iores->offset = offset; in bhnd_nvram_iores_new()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DDumpDataExtractor.cpp99 lldb::offset_t offset, lldb::offset_t byte_size, in DumpAPInt() argument
101 std::optional<llvm::APInt> apint = GetAPInt(data, &offset, byte_size); in DumpAPInt()
116 return offset; in DumpAPInt()
125 offset_t offset = start_offset; in DumpInstructions() local
151 offset += bytes_consumed; in DumpInstructions()
164 return offset; in DumpInstructions()
358 offset_t offset = start_offset; in DumpDataExtractor() local
363 GetMemoryTags(base_addr, DE.GetByteSize() - offset, exe_scope); in DumpDataExtractor()
374 for (uint32_t count = 0; DE.ValidOffset(offset) && count < item_count; in DumpDataExtractor()
382 offset > line_start_offset) { in DumpDataExtractor()
[all …]
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_read_disk_directory_traversals.c89 int64_t offset; in test_basic()
123 archive_read_data_block(a, &p, &size, &offset)); in test_basic()
125 assertEqualInt((int)offset, 0); in test_basic()
128 archive_read_data_block(a, &p, &size, &offset)); in test_basic()
130 assertEqualInt((int)offset, 10); in test_basic()
137 archive_read_data_block(a, &p, &size, &offset)); in test_basic()
139 assertEqualInt((int)offset, 0); in test_basic()
142 archive_read_data_block(a, &p, &size, &offset)); in test_basic()
144 assertEqualInt((int)offset, 11); in test_basic()
155 archive_read_data_block(a, &p, &size, &offset)); in test_basic()
90 int64_t offset; test_basic() local
582 int64_t offset; test_symlink_hybrid() local
739 int64_t offset; test_symlink_logical() local
969 int64_t offset; test_symlink_logical_loop() local
1048 int64_t offset; test_restore_atime() local
1340 int64_t offset; test_callbacks() local
1471 int64_t offset; test_nodump() local
1607 int64_t offset; test_parent() local
[all...]
H A Dtest_compat_solaris_pax_sparse.c36 int64_t offset, length; in test_compat_solaris_pax_sparse_1() local
66 archive_entry_sparse_next(ae, &offset, &length)); in test_compat_solaris_pax_sparse_1()
67 assertEqualInt(0, offset); in test_compat_solaris_pax_sparse_1()
70 archive_entry_sparse_next(ae, &offset, &length)); in test_compat_solaris_pax_sparse_1()
71 assertEqualInt(393216, offset); in test_compat_solaris_pax_sparse_1()
74 archive_entry_sparse_next(ae, &offset, &length)); in test_compat_solaris_pax_sparse_1()
75 assertEqualInt(786432, offset); in test_compat_solaris_pax_sparse_1()
78 archive_read_data_block(a, &buff, &bytes_read, &offset)) { in test_compat_solaris_pax_sparse_1()
80 assert((offset >= 0 && offset + bytes_read <= 131072) || in test_compat_solaris_pax_sparse_1()
81 (offset >= 393216 && offset + bytes_read <= 393216+131072) || in test_compat_solaris_pax_sparse_1()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Symbol/
H A DDWARFCallFrameInfo.cpp250 lldb::offset_t offset = cie_offset; in ParseCIE() local
253 uint32_t length = m_cfi_data.GetU32(&offset); in ParseCIE()
257 length = m_cfi_data.GetU64(&offset); in ParseCIE()
258 cie_id = m_cfi_data.GetU64(&offset); in ParseCIE()
261 cie_id = m_cfi_data.GetU32(&offset); in ParseCIE()
271 cie_sp->version = m_cfi_data.GetU8(&offset); in ParseCIE()
280 cie_sp->augmentation[i] = m_cfi_data.GetU8(&offset); in ParseCIE()
302 cie_sp->address_size = m_cfi_data.GetU8(&offset); in ParseCIE()
303 cie_sp->segment_size = m_cfi_data.GetU8(&offset); in ParseCIE()
306 cie_sp->code_align = (uint32_t)m_cfi_data.GetULEB128(&offset); in ParseCIE()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFDebugMacro.cpp22 lldb::offset_t *offset) { in ParseHeader()
26 header.m_version = debug_macro_data.GetU16(offset); in ParseHeader()
28 uint8_t flags = debug_macro_data.GetU8(offset); in ParseHeader()
33 header.m_debug_line_offset = debug_macro_data.GetU64(offset); in ParseHeader()
35 header.m_debug_line_offset = debug_macro_data.GetU32(offset); in ParseHeader()
40 SkipOperandTable(debug_macro_data, offset); in ParseHeader()
46 const DWARFDataExtractor &debug_macro_data, lldb::offset_t *offset) { in SkipOperandTable()
47 uint8_t entry_count = debug_macro_data.GetU8(offset); in SkipOperandTable()
50 debug_macro_data.GetU8(offset); in SkipOperandTable()
52 uint64_t operand_count = debug_macro_data.GetULEB128(offset); in SkipOperandTable()
21 ParseHeader(const DWARFDataExtractor & debug_macro_data,lldb::offset_t * offset) ParseHeader() argument
45 SkipOperandTable(const DWARFDataExtractor & debug_macro_data,lldb::offset_t * offset) SkipOperandTable() argument
63 ReadMacroEntries(const DWARFDataExtractor & debug_macro_data,const DWARFDataExtractor & debug_str_data,const bool offset_is_64_bit,lldb::offset_t * offset,SymbolFileDWARF * sym_file_dwarf,DebugMacrosSP & debug_macros_sp) ReadMacroEntries() argument
[all...]
/freebsd/sys/contrib/ck/src/
H A Dck_rhs.c135 ck_rhs_entry(struct ck_rhs_map *map, long offset) in ck_rhs_entry() argument
139 return (map->entries.no_entries.entries[offset]); in ck_rhs_entry()
141 return (map->entries.descs[offset].entry); in ck_rhs_entry()
145 ck_rhs_entry_addr(struct ck_rhs_map *map, long offset) in ck_rhs_entry_addr() argument
149 return (&map->entries.no_entries.entries[offset]); in ck_rhs_entry_addr()
151 return (&map->entries.descs[offset].entry); in ck_rhs_entry_addr()
155 ck_rhs_desc(struct ck_rhs_map *map, long offset) in ck_rhs_desc() argument
159 return ((struct ck_rhs_entry_desc *)(void *)&map->entries.no_entries.descs[offset]); in ck_rhs_desc()
161 return (&map->entries.descs[offset]); in ck_rhs_desc()
165 ck_rhs_wanted_inc(struct ck_rhs_map *map, long offset) in ck_rhs_wanted_inc() argument
[all …]
/freebsd/sys/kern/
H A Dsubr_stack.c48 long *offset, int flags);
49 static int stack_symbol_ddb(vm_offset_t pc, const char **name, long *offset);
96 long offset; in stack_print() local
102 &offset, M_WAITOK); in stack_print()
104 namebuf, offset); in stack_print()
112 long offset; in stack_print_short() local
120 &offset, M_WAITOK) == 0) in stack_print_short()
121 printf("%s+%#lx", namebuf, offset); in stack_print_short()
132 long offset; in stack_print_ddb() local
137 stack_symbol_ddb(st->pcs[i], &name, &offset); in stack_print_ddb()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/elf-core/
H A DThreadElfCore.cpp298 offset_t offset = 0; in Parse() local
299 si_signo = data.GetU32(&offset); in Parse()
300 si_code = data.GetU32(&offset); in Parse()
301 si_errno = data.GetU32(&offset); in Parse()
303 pr_cursig = data.GetU16(&offset); in Parse()
304 offset += 2; // pad in Parse()
306 pr_sigpend = data.GetAddress(&offset); in Parse()
307 pr_sighold = data.GetAddress(&offset); in Parse()
309 pr_pid = data.GetU32(&offset); in Parse()
310 pr_ppid = data.GetU32(&offset); in Parse()
[all …]
/freebsd/contrib/libpcap/
H A Dpcap-util.c248 bpf_u_int32 offset = 0; in swap_linux_usb_header() local
260 offset += 8; /* skip past id */ in swap_linux_usb_header()
261 if (hdr->caplen < offset) in swap_linux_usb_header()
265 offset += 4; /* skip past various 1-byte fields */ in swap_linux_usb_header()
267 offset += 2; /* skip past bus_id */ in swap_linux_usb_header()
268 if (hdr->caplen < offset) in swap_linux_usb_header()
272 offset += 2; /* skip past various 1-byte fields */ in swap_linux_usb_header()
274 offset += 8; /* skip past ts_sec */ in swap_linux_usb_header()
275 if (hdr->caplen < offset) in swap_linux_usb_header()
279 offset += 4; /* skip past ts_usec */ in swap_linux_usb_header()
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-lmp.c359 int total_subobj_len, int offset) in lmp_print_data_link_subobjs() argument
370 subobj_type = GET_U_1(obj_tptr + offset); in lmp_print_data_link_subobjs()
371 subobj_len = GET_U_1(obj_tptr + offset + 1); in lmp_print_data_link_subobjs()
395 GET_U_1(obj_tptr + offset + 2)), in lmp_print_data_link_subobjs()
396 GET_U_1(obj_tptr + offset + 2)); in lmp_print_data_link_subobjs()
400 GET_U_1(obj_tptr + offset + 3)), in lmp_print_data_link_subobjs()
401 GET_U_1(obj_tptr + offset + 3)); in lmp_print_data_link_subobjs()
402 bw.i = GET_BE_U_4(obj_tptr + offset + 4); in lmp_print_data_link_subobjs()
405 bw.i = GET_BE_U_4(obj_tptr + offset + 8); in lmp_print_data_link_subobjs()
411 GET_BE_U_4(obj_tptr + offset + 4)); in lmp_print_data_link_subobjs()
[all …]

12345678910>>...128