| /openbsd/src/sys/arch/sh/dev/ |
| D | shpcic.c | 367 bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp) in shpcic_iomem_subregion() argument 369 *nbshp = bsh + offset; in shpcic_iomem_subregion() 401 bus_size_t offset); 403 bus_size_t offset); 405 bus_size_t offset); 407 bus_size_t offset); 409 bus_size_t offset); 411 bus_size_t offset); 414 __shpcic_io_read_1(bus_space_handle_t bsh, bus_size_t offset) in __shpcic_io_read_1() argument 416 u_long adr = (u_long)(bsh + offset) & SH4_PCIC_IO_MASK; in __shpcic_io_read_1() [all …]
|
| D | shpcicvar.h | 71 int shpcic_iomem_subregion(void *v, bus_space_handle_t bsh, bus_size_t offset, 80 uint8_t shpcic_io_read_1(void *v, bus_space_handle_t bsh, bus_size_t offset); 81 uint16_t shpcic_io_read_2(void *v, bus_space_handle_t bsh, bus_size_t offset); 82 uint32_t shpcic_io_read_4(void *v, bus_space_handle_t bsh, bus_size_t offset); 83 uint8_t shpcic_mem_read_1(void *v, bus_space_handle_t bsh, bus_size_t offset); 84 uint16_t shpcic_mem_read_2(void *v, bus_space_handle_t bsh, bus_size_t offset); 85 uint32_t shpcic_mem_read_4(void *v, bus_space_handle_t bsh, bus_size_t offset); 89 bus_size_t offset, uint8_t *addr, bus_size_t count); 91 bus_size_t offset, uint16_t *addr, bus_size_t count); 93 bus_size_t offset, uint32_t *addr, bus_size_t count); [all …]
|
| /openbsd/src/gnu/llvm/lldb/source/Utility/ |
| D | DataEncoder.cpp | 50 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 …]
|
| /openbsd/src/gnu/usr.bin/perl/dist/Tie-File/t/ |
| D | 42_offset.t | 33 is ($o->offset(0), 0, 'first one always there'); 34 is ($o->offset(1), undef, 'no offsets yet'); 37 is ($o->offset(0), 0, 'first is ok'); 38 is ($o->offset(1), 8, 'and second ok'); 39 is ($o->offset(2), undef, 'third undef'); 42 is ($o->offset(0), 0, 'first is ok'); 43 is ($o->offset(1), 8, 'and second ok'); 44 is ($o->offset(2), 14, 'and third ok'); 45 is ($o->offset(3), undef, 'fourth undef'); 48 is ($o->offset(0), 0, 'first is ok'); [all …]
|
| /openbsd/src/gnu/llvm/lldb/source/Plugins/ObjectFile/ELF/ |
| D | ELFHeader.cpp | 26 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 …]
|
| /openbsd/src/sys/dev/pci/drm/i915/display/ |
| D | dvo_ns2501.c | 194 u8 offset; member 300 [0] = { .offset = 0x0a, .value = 0x81, }, 302 [1] = { .offset = 0x12, .value = 0x02, }, 303 [2] = { .offset = 0x18, .value = 0x07, }, 304 [3] = { .offset = 0x19, .value = 0x00, }, 305 [4] = { .offset = 0x1a, .value = 0x00, }, /* PLL?, ignored */ 307 [5] = { .offset = 0x1e, .value = 0x02, }, 308 [6] = { .offset = 0x1f, .value = 0x40, }, 309 [7] = { .offset = 0x20, .value = 0x00, }, 310 [8] = { .offset = 0x21, .value = 0x00, }, [all …]
|
| /openbsd/src/sys/dev/pci/drm/amd/display/dmub/src/ |
| D | dmub_dcn30.c | 91 union dmub_addr offset; in dmub_dcn30_backdoor_load() local 100 dmub_dcn30_translate_addr(&cw0->offset, fb_base, fb_offset, &offset); in dmub_dcn30_backdoor_load() 102 REG_WRITE(DMCUB_REGION3_CW0_OFFSET, offset.u.low_part); in dmub_dcn30_backdoor_load() 103 REG_WRITE(DMCUB_REGION3_CW0_OFFSET_HIGH, offset.u.high_part); in dmub_dcn30_backdoor_load() 109 dmub_dcn30_translate_addr(&cw1->offset, fb_base, fb_offset, &offset); in dmub_dcn30_backdoor_load() 111 REG_WRITE(DMCUB_REGION3_CW1_OFFSET, offset.u.low_part); in dmub_dcn30_backdoor_load() 112 REG_WRITE(DMCUB_REGION3_CW1_OFFSET_HIGH, offset.u.high_part); in dmub_dcn30_backdoor_load() 130 union dmub_addr offset; in dmub_dcn30_setup_windows() local 134 offset = cw2->offset; in dmub_dcn30_setup_windows() 137 REG_WRITE(DMCUB_REGION3_CW2_OFFSET, offset.u.low_part); in dmub_dcn30_setup_windows() [all …]
|
| /openbsd/src/regress/usr.bin/mandoc/mdoc/Bl/ |
| D | offset.out_markdown | 5 **Bl-offset** - various arguments for Bl offset 9 Bl item offset empty 11 Bl item offset left 13 Bl item offset indent 15 Bl item offset indent-two 17 Bl item offset 4n 19 Bl item offset mystring 21 Bl item offset Ds 23 Bl item offset 78n 25 Bl item offset -3n [all …]
|
| D | offset.out_ascii | 4 BBll--ooffffsseett - various arguments for Bl offset 7 Bl item offset empty 9 Bl item offset left 11 Bl item offset indent 13 Bl item offset indent-two 15 Bl item offset 4n 17 Bl item offset mystring 19 Bl item offset Ds 23 offset 26 Bl item offset -3n [all …]
|
| /openbsd/src/sys/arch/landisk/dev/ |
| D | obio.c | 217 bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp); 336 bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp) in obio_iomem_subregion() argument 338 *nbshp = bsh + offset; in obio_iomem_subregion() 368 uint8_t obio_iomem_read_1(void *v, bus_space_handle_t bsh, bus_size_t offset); 369 uint16_t obio_iomem_read_2(void *v, bus_space_handle_t bsh, bus_size_t offset); 370 uint32_t obio_iomem_read_4(void *v, bus_space_handle_t bsh, bus_size_t offset); 372 bus_size_t offset, uint8_t *addr, bus_size_t count); 374 bus_size_t offset, uint16_t *addr, bus_size_t count); 376 bus_size_t offset, uint32_t *addr, bus_size_t count); 378 bus_size_t offset, uint8_t *addr, bus_size_t count); [all …]
|
| /openbsd/src/gnu/llvm/lldb/source/API/ |
| D | SBData.cpp | 117 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 …]
|
| /openbsd/src/lib/libcrypto/cms/ |
| D | cms_asn1.c | 71 .offset = offsetof(CMS_IssuerAndSerialNumber, issuer), 78 .offset = offsetof(CMS_IssuerAndSerialNumber, serialNumber), 98 .offset = offsetof(CMS_OtherCertificateFormat, otherCertFormat), 105 .offset = offsetof(CMS_OtherCertificateFormat, otherCert), 125 .offset = offsetof(CMS_CertificateChoices, d.certificate), 132 .offset = offsetof(CMS_CertificateChoices, d.extendedCertificate), 139 .offset = offsetof(CMS_CertificateChoices, d.v1AttrCert), 146 .offset = offsetof(CMS_CertificateChoices, d.v2AttrCert), 153 .offset = offsetof(CMS_CertificateChoices, d.other), 173 .offset = offsetof(CMS_SignerIdentifier, d.issuerAndSerialNumber), [all …]
|
| /openbsd/src/sys/arch/luna88k/include/ |
| D | bus.h | 134 bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp) in bus_space_subregion() argument 136 *nbshp = bsh + offset; in bus_space_subregion() 202 bus_addr_t offset, u_int8_t *dest, size_t count) in bus_space_read_multi_1() argument 205 *dest++ = bus_space_read_1(tag, handle, offset); in bus_space_read_multi_1() 210 bus_addr_t offset, u_int16_t *dest, size_t count) in bus_space_read_multi_2() argument 213 *dest++ = bus_space_read_2(tag, handle, offset); in bus_space_read_multi_2() 218 bus_addr_t offset, u_int32_t *dest, size_t count) in bus_space_read_multi_4() argument 221 *dest++ = bus_space_read_4(tag, handle, offset); in bus_space_read_multi_4() 230 bus_addr_t offset, u_int8_t *dest, size_t size) in bus_space_read_raw_multi_2() argument 235 __bus_space_read_2(tag, handle, offset); in bus_space_read_raw_multi_2() [all …]
|
| /openbsd/src/gnu/llvm/lldb/source/Core/ |
| D | DumpDataExtractor.cpp | 99 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 …]
|
| /openbsd/src/usr.sbin/dhcrelay/ |
| D | packet.c | 101 size_t offset, struct packet_ctx *pc, unsigned int intfhtype) in assemble_hw_header() argument 107 if (buflen < offset + ETHER_HDR_LEN) in assemble_hw_header() 116 memcpy(&buf[offset], &eh, ETHER_HDR_LEN); in assemble_hw_header() 117 offset += ETHER_HDR_LEN; in assemble_hw_header() 123 return (offset); in assemble_hw_header() 127 assemble_udp_ip_header(unsigned char *buf, size_t buflen, size_t offset, in assemble_udp_ip_header() argument 133 if (buflen < offset + sizeof(ip) + sizeof(udp)) in assemble_udp_ip_header() 149 memcpy(&buf[offset], &ip, sizeof(ip)); in assemble_udp_ip_header() 150 offset += sizeof(ip); in assemble_udp_ip_header() 162 memcpy(&buf[offset], &udp, sizeof(udp)); in assemble_udp_ip_header() [all …]
|
| /openbsd/src/sys/dev/pci/drm/i915/gvt/ |
| D | handlers.c | 93 static void read_vreg(struct intel_vgpu *vgpu, unsigned int offset, in read_vreg() argument 96 memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes); in read_vreg() 99 static void write_vreg(struct intel_vgpu *vgpu, unsigned int offset, in write_vreg() argument 102 memcpy(&vgpu_vreg(vgpu, offset), p_data, bytes); in write_vreg() 106 unsigned int offset) in intel_gvt_find_mmio_info() argument 110 hash_for_each_possible(gvt->mmio.mmio_info_table, e, node, offset) { in intel_gvt_find_mmio_info() 111 if (e->offset == offset) in intel_gvt_find_mmio_info() 117 static int setup_mmio_info(struct intel_gvt *gvt, u32 offset, u32 size, in setup_mmio_info() argument 127 if (WARN_ON(!IS_ALIGNED(offset, 4))) in setup_mmio_info() 130 start = offset; in setup_mmio_info() [all …]
|
| /openbsd/src/usr.sbin/vmd/ |
| D | packet.c | 99 size_t offset, struct packet_ctx *pc, unsigned int intfhtype) in assemble_hw_header() argument 105 if (buflen < offset + ETHER_HDR_LEN) in assemble_hw_header() 114 memcpy(&buf[offset], &eh, ETHER_HDR_LEN); in assemble_hw_header() 115 offset += ETHER_HDR_LEN; in assemble_hw_header() 121 return (offset); in assemble_hw_header() 125 assemble_udp_ip_header(unsigned char *buf, size_t buflen, size_t offset, in assemble_udp_ip_header() argument 131 if (buflen < offset + sizeof(ip) + sizeof(udp)) in assemble_udp_ip_header() 147 memcpy(&buf[offset], &ip, sizeof(ip)); in assemble_udp_ip_header() 148 offset += sizeof(ip); in assemble_udp_ip_header() 160 memcpy(&buf[offset], &udp, sizeof(udp)); in assemble_udp_ip_header() [all …]
|
| /openbsd/src/gnu/llvm/lldb/source/Plugins/SymbolFile/DWARF/ |
| D | DWARFDebugMacro.cpp | 21 lldb::offset_t *offset) { in ParseHeader() argument 25 header.m_version = debug_macro_data.GetU16(offset); in ParseHeader() 27 uint8_t flags = debug_macro_data.GetU8(offset); in ParseHeader() 32 header.m_debug_line_offset = debug_macro_data.GetU64(offset); in ParseHeader() 34 header.m_debug_line_offset = debug_macro_data.GetU32(offset); in ParseHeader() 39 SkipOperandTable(debug_macro_data, offset); in ParseHeader() 45 const DWARFDataExtractor &debug_macro_data, lldb::offset_t *offset) { in SkipOperandTable() argument 46 uint8_t entry_count = debug_macro_data.GetU8(offset); in SkipOperandTable() 49 debug_macro_data.GetU8(offset); in SkipOperandTable() 51 uint64_t operand_count = debug_macro_data.GetULEB128(offset); in SkipOperandTable() [all …]
|
| /openbsd/src/gnu/llvm/lldb/source/Plugins/Process/MacOSX-Kernel/ |
| D | CommunicationKDP.cpp | 82 lldb::offset_t offset = 1; in SendRequestAndGetReply() local 91 offset = 0; in SendRequestAndGetReply() 92 const uint8_t reply_command = reply_packet.GetU8(&offset); in SendRequestAndGetReply() 93 const uint8_t reply_sequence_id = reply_packet.GetU8(&offset); in SendRequestAndGetReply() 251 lldb::offset_t offset = 0; in CheckForPacket() local 252 uint8_t reply_command = packet.GetU8(&offset); in CheckForPacket() 262 request_ack_packet.PutHex8(packet.GetU8(&offset)); in CheckForPacket() 263 request_ack_packet.PutHex16(packet.GetU16(&offset)); in CheckForPacket() 264 request_ack_packet.PutHex32(packet.GetU32(&offset)); in CheckForPacket() 301 offset = 2; in CheckForPacket() [all …]
|
| /openbsd/src/sys/dev/pci/drm/amd/display/dc/gpio/dce110/ |
| D | hw_translate_dce110.c | 40 uint32_t offset, in offset_to_id() argument 45 switch (offset) { in offset_to_id() 193 info->offset = mmDC_GPIO_DDC1_A; in id_to_offset() 196 info->offset = mmDC_GPIO_DDC2_A; in id_to_offset() 199 info->offset = mmDC_GPIO_DDC3_A; in id_to_offset() 202 info->offset = mmDC_GPIO_DDC4_A; in id_to_offset() 205 info->offset = mmDC_GPIO_DDC5_A; in id_to_offset() 208 info->offset = mmDC_GPIO_DDC6_A; in id_to_offset() 211 info->offset = mmDC_GPIO_DDCVGA_A; in id_to_offset() 214 info->offset = mmDC_GPIO_I2CPAD_A; in id_to_offset() [all …]
|
| /openbsd/src/gnu/llvm/lldb/source/Symbol/ |
| D | DWARFCallFrameInfo.cpp | 250 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 …]
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/f/ |
| D | bit.c | 74 ffebit_count (ffebit b, ffebitCount offset, bool value, ffebitCount range, in ffebit_count() argument 80 assert (offset + range <= b->size); in ffebit_count() 82 for (*number = 0; range != 0; --range, ++offset) in ffebit_count() 84 element = offset / CHAR_BIT; in ffebit_count() 85 bitno = offset % CHAR_BIT; in ffebit_count() 143 ffebit_set (ffebit b, ffebitCount offset, bool value, ffebitCount length) in ffebit_set() argument 149 assert (offset + length <= b->size); in ffebit_set() 151 for (i = 0; i < length; ++i, ++offset) in ffebit_set() 153 element = offset / CHAR_BIT; in ffebit_set() 154 bitno = offset % CHAR_BIT; in ffebit_set() [all …]
|
| /openbsd/src/sys/dev/pci/drm/radeon/ |
| D | r600_hdmi.c | 178 void r600_hdmi_update_acr(struct drm_encoder *encoder, long offset, in r600_hdmi_update_acr() argument 187 WREG32_P(acr_ctl + offset, in r600_hdmi_update_acr() 193 WREG32_P(HDMI0_ACR_32_0 + offset, in r600_hdmi_update_acr() 196 WREG32_P(HDMI0_ACR_32_1 + offset, in r600_hdmi_update_acr() 200 WREG32_P(HDMI0_ACR_44_0 + offset, in r600_hdmi_update_acr() 203 WREG32_P(HDMI0_ACR_44_1 + offset, in r600_hdmi_update_acr() 207 WREG32_P(HDMI0_ACR_48_0 + offset, in r600_hdmi_update_acr() 210 WREG32_P(HDMI0_ACR_48_1 + offset, in r600_hdmi_update_acr() 218 void r600_set_avi_packet(struct radeon_device *rdev, u32 offset, in r600_set_avi_packet() argument 223 WREG32(HDMI0_AVI_INFO0 + offset, in r600_set_avi_packet() [all …]
|
| /openbsd/src/sys/dev/pci/drm/amd/display/dc/gpio/dce80/ |
| D | hw_translate_dce80.c | 64 uint32_t offset, in offset_to_id() argument 69 switch (offset) { in offset_to_id() 222 info->offset = mmDC_GPIO_DDC1_A; in id_to_offset() 225 info->offset = mmDC_GPIO_DDC2_A; in id_to_offset() 228 info->offset = mmDC_GPIO_DDC3_A; in id_to_offset() 231 info->offset = mmDC_GPIO_DDC4_A; in id_to_offset() 234 info->offset = mmDC_GPIO_DDC5_A; in id_to_offset() 237 info->offset = mmDC_GPIO_DDC6_A; in id_to_offset() 240 info->offset = mmDC_GPIO_DDCVGA_A; in id_to_offset() 243 info->offset = mmDC_GPIO_I2CPAD_A; in id_to_offset() [all …]
|
| /openbsd/src/sys/dev/pci/drm/amd/display/dc/gpio/dce60/ |
| D | hw_translate_dce60.c | 64 uint32_t offset, in offset_to_id() argument 69 switch (offset) { in offset_to_id() 222 info->offset = mmDC_GPIO_DDC1_A; in id_to_offset() 225 info->offset = mmDC_GPIO_DDC2_A; in id_to_offset() 228 info->offset = mmDC_GPIO_DDC3_A; in id_to_offset() 231 info->offset = mmDC_GPIO_DDC4_A; in id_to_offset() 234 info->offset = mmDC_GPIO_DDC5_A; in id_to_offset() 237 info->offset = mmDC_GPIO_DDC6_A; in id_to_offset() 240 info->offset = mmDC_GPIO_DDCVGA_A; in id_to_offset() 243 info->offset = mmDC_GPIO_I2CPAD_A; in id_to_offset() [all …]
|