Home
last modified time | relevance | path

Searched refs:byte_count (Results 1 – 25 of 70) sorted by relevance

123

/openbsd-src/gnu/usr.bin/perl/t/
H A Dcharset_tools.pl87 my $byte_count = $utf8_skip[$byte];
91 die "Illegal start byte" if $byte_count < 0;
92 if ($i + $byte_count > $length) {
93 die "Attempt to read " . $i + $byte_count - $length . " beyond end-of-string";
97 if ($byte_count == 1) {
105 my $ord = $byte & (0x1F >> ($byte_count - 2));
106 my $bytes_remaining = $byte_count - 1;
134 if ($byte_count != $expected_bytes) {
136 $ord, $expected_bytes, $byte_count;
/openbsd-src/sys/dev/pci/drm/amd/pm/legacy-dpm/
H A Damdgpu_kv_smc.c123 const u8 *src, u32 byte_count, u32 limit) in amdgpu_kv_copy_bytes_to_smc() argument
128 if ((smc_start_address + byte_count) > limit) in amdgpu_kv_copy_bytes_to_smc()
151 } else if (byte_count > 0) { in amdgpu_kv_copy_bytes_to_smc()
153 byte_count--; in amdgpu_kv_copy_bytes_to_smc()
173 while (byte_count >= 4) { in amdgpu_kv_copy_bytes_to_smc()
184 byte_count -= 4; in amdgpu_kv_copy_bytes_to_smc()
189 if (byte_count > 0) { in amdgpu_kv_copy_bytes_to_smc()
198 extra_shift = 8 * (4 - byte_count); in amdgpu_kv_copy_bytes_to_smc()
200 while (byte_count > 0) { in amdgpu_kv_copy_bytes_to_smc()
203 byte_count--; in amdgpu_kv_copy_bytes_to_smc()
H A Damdgpu_si_smc.c49 const u8 *src, u32 byte_count, u32 limit) in amdgpu_si_copy_bytes_to_smc() argument
57 if ((smc_start_address + byte_count) > limit) in amdgpu_si_copy_bytes_to_smc()
63 while (byte_count >= 4) { in amdgpu_si_copy_bytes_to_smc()
74 byte_count -= 4; in amdgpu_si_copy_bytes_to_smc()
79 if (byte_count > 0) { in amdgpu_si_copy_bytes_to_smc()
87 extra_shift = 8 * (4 - byte_count); in amdgpu_si_copy_bytes_to_smc()
89 while (byte_count > 0) { in amdgpu_si_copy_bytes_to_smc()
92 byte_count--; in amdgpu_si_copy_bytes_to_smc()
/openbsd-src/sys/dev/pci/drm/radeon/
H A Dkv_smc.c119 const u8 *src, u32 byte_count, u32 limit) in kv_copy_bytes_to_smc() argument
124 if ((smc_start_address + byte_count) > limit) in kv_copy_bytes_to_smc()
147 } else if (byte_count > 0) { in kv_copy_bytes_to_smc()
149 byte_count--; in kv_copy_bytes_to_smc()
169 while (byte_count >= 4) { in kv_copy_bytes_to_smc()
180 byte_count -= 4; in kv_copy_bytes_to_smc()
185 if (byte_count > 0) { in kv_copy_bytes_to_smc()
194 extra_shift = 8 * (4 - byte_count); in kv_copy_bytes_to_smc()
196 while (byte_count > 0) { in kv_copy_bytes_to_smc()
199 byte_count--; in kv_copy_bytes_to_smc()
H A Drv770_smc.c285 u16 byte_count, u16 limit) in rv770_copy_bytes_to_smc() argument
294 if ((smc_start_address + byte_count) > limit) in rv770_copy_bytes_to_smc()
300 while (byte_count >= 4) { in rv770_copy_bytes_to_smc()
311 byte_count -= 4; in rv770_copy_bytes_to_smc()
316 if (byte_count > 0) { in rv770_copy_bytes_to_smc()
325 extra_shift = 8 * (4 - byte_count); in rv770_copy_bytes_to_smc()
327 while (byte_count > 0) { in rv770_copy_bytes_to_smc()
330 byte_count--; in rv770_copy_bytes_to_smc()
352 u32 byte_count) in rv770_program_interrupt_vectors() argument
356 if (byte_count % 4) in rv770_program_interrupt_vectors()
[all …]
H A Dci_smc.c49 const u8 *src, u32 byte_count, u32 limit) in ci_copy_bytes_to_smc() argument
59 if ((smc_start_address + byte_count) > limit) in ci_copy_bytes_to_smc()
65 while (byte_count >= 4) { in ci_copy_bytes_to_smc()
76 byte_count -= 4; in ci_copy_bytes_to_smc()
81 if (byte_count > 0) { in ci_copy_bytes_to_smc()
90 extra_shift = 8 * (4 - byte_count); in ci_copy_bytes_to_smc()
92 while (byte_count > 0) { in ci_copy_bytes_to_smc()
94 byte_count--; in ci_copy_bytes_to_smc()
H A Dsi_smc.c49 const u8 *src, u32 byte_count, u32 limit) in si_copy_bytes_to_smc() argument
57 if ((smc_start_address + byte_count) > limit) in si_copy_bytes_to_smc()
63 while (byte_count >= 4) { in si_copy_bytes_to_smc()
74 byte_count -= 4; in si_copy_bytes_to_smc()
79 if (byte_count > 0) { in si_copy_bytes_to_smc()
88 extra_shift = 8 * (4 - byte_count); in si_copy_bytes_to_smc()
90 while (byte_count > 0) { in si_copy_bytes_to_smc()
93 byte_count--; in si_copy_bytes_to_smc()
/openbsd-src/sys/dev/pci/drm/amd/pm/powerplay/smumgr/
H A Dsmu7_smumgr.c49 …t pp_hwmgr *hwmgr, uint32_t smc_start_address, uint32_t *dest, uint32_t byte_count, uint32_t limit) in smu7_copy_bytes_from_smc() argument
58 …PP_ASSERT_WITH_CODE((limit > (smc_start_address + byte_count)), "SMC address is beyond the SMC RAM… in smu7_copy_bytes_from_smc()
62 while (byte_count >= 4) { in smu7_copy_bytes_from_smc()
68 byte_count -= 4; in smu7_copy_bytes_from_smc()
72 if (byte_count) { in smu7_copy_bytes_from_smc()
77 for (i = 0; i < byte_count; i++) in smu7_copy_bytes_from_smc()
86 const uint8_t *src, uint32_t byte_count, uint32_t limit) in smu7_copy_bytes_to_smc() argument
95 …PP_ASSERT_WITH_CODE((limit > (smc_start_address + byte_count)), "SMC address is beyond the SMC RAM… in smu7_copy_bytes_to_smc()
99 while (byte_count >= 4) { in smu7_copy_bytes_to_smc()
111 byte_count -= 4; in smu7_copy_bytes_to_smc()
[all …]
H A Dsmu7_smumgr.h57 uint32_t *dest, uint32_t byte_count, uint32_t limit);
59 const uint8_t *src, uint32_t byte_count, uint32_t limit);
/openbsd-src/gnu/llvm/lldb/source/Symbol/
H A DArmUnwindInfo.cpp108 uint16_t byte_count = 0; in GetUnwindPlan() local
113 byte_count = 4; in GetUnwindPlan()
118 byte_count = 4 * ((data[0] >> 16) & 0xff) + 4; in GetUnwindPlan()
126 byte_count = 4 * ((data[1] >> 24) & 0xff) + 8; in GetUnwindPlan()
135 while (byte_offset < byte_count) { in GetUnwindPlan()
146 if (byte_offset >= byte_count) in GetUnwindPlan()
202 if (byte_offset >= byte_count) in GetUnwindPlan()
227 uint64_t uleb128 = GetULEB128(data, byte_offset, byte_count); in GetUnwindPlan()
233 if (byte_offset >= byte_count) in GetUnwindPlan()
279 if (byte_offset >= byte_count) in GetUnwindPlan()
[all …]
/openbsd-src/lib/libssl/
H A Dbio_ssl.c84 unsigned long byte_count; member
168 sb->byte_count += ret; in ssl_read()
169 if (sb->byte_count > sb->renegotiate_count) { in ssl_read()
170 sb->byte_count = 0; in ssl_read()
241 bs->byte_count += ret; in ssl_write()
242 if (bs->byte_count > bs->renegotiate_count) { in ssl_write()
243 bs->byte_count = 0; in ssl_write()
433 ((BIO_SSL *)dbio->ptr)->byte_count = in ssl_ctrl()
434 ((BIO_SSL *)b->ptr)->byte_count; in ssl_ctrl()
/openbsd-src/sys/dev/pci/drm/
H A Ddrm_bufs.c729 int byte_count; in drm_legacy_addbufs_agp() local
745 byte_count = 0; in drm_legacy_addbufs_agp()
813 buf->offset = (dma->byte_count + offset); in drm_legacy_addbufs_agp()
836 byte_count += PAGE_SIZE << page_order; in drm_legacy_addbufs_agp()
839 DRM_DEBUG("byte_count: %d\n", byte_count); in drm_legacy_addbufs_agp()
859 dma->page_count += byte_count >> PAGE_SHIFT; in drm_legacy_addbufs_agp()
860 dma->byte_count += byte_count; in drm_legacy_addbufs_agp()
893 int byte_count; in drm_legacy_addbufs_pci() local
979 byte_count = 0; in drm_legacy_addbufs_pci()
1028 buf->offset = (dma->byte_count + byte_count + offset); in drm_legacy_addbufs_pci()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/
H A D20000211-1.c28 size_t byte_count; member
65 …ffer[( lstr )->out_buffer_ind++] = (unsigned char) ( pad ), ( lstr )->byte_count++, ( lstr )->buf… in doprnt_1()
77 …ffer[( lstr )->out_buffer_ind++] = (unsigned char) ( pad ), ( lstr )->byte_count++, ( lstr )->buf… in doprnt_1()
/openbsd-src/gnu/usr.bin/perl/cpan/Text-Tabs/t/
H A DTabs-ElCid.t111 my($char_count, $byte_count, $chunk_count, $word_count, $tab_count);
113 $byte_count = bytes::length($_);
119 $bad++ unless check($byte_count, $., "OLD", "BYTES");
129 $byte_count = bytes::length($_);
135 $bad++ unless check($byte_count, $., "NEW", "BYTES");
H A DWrap-JLB.t91 my($char_count, $byte_count, $chunk_count, $word_count, $tab_count, $line_count);
93 $byte_count = bytes::length($_);
100 $bad++ unless check($byte_count, $., "OLD", "BYTES");
111 $byte_count = bytes::length($_);
118 $bad++ unless check($byte_count, $., "NEW", "BYTES");
/openbsd-src/lib/libexpat/tests/
H A Dstructdata.c63 size_t byte_count = (xcstrlen(s) + 1) * sizeof(XML_Char); in xmlstrdup() local
64 XML_Char *const dup = (XML_Char *)malloc(byte_count); in xmlstrdup()
67 memcpy(dup, s, byte_count); in xmlstrdup()
/openbsd-src/sys/dev/pci/drm/i915/gvt/
H A Dedid.c296 int byte_count = byte_left; in gmbus3_mmio_read() local
306 if (byte_count > 4) in gmbus3_mmio_read()
307 byte_count = 4; in gmbus3_mmio_read()
308 for (i = 0; i < byte_count; i++) { in gmbus3_mmio_read()
313 memcpy(&vgpu_vreg(vgpu, offset), &reg_data, byte_count); in gmbus3_mmio_read()
/openbsd-src/sys/dev/adb/
H A Dakbd.c279 event.byte_count = buffer[0]; in akbd_adbcomplete()
280 memcpy(event.bytes, buffer + 1, event.byte_count); in akbd_adbcomplete()
463 switch (event->byte_count) { in akbd_processevent()
496 sc->sc_dev.dv_xname, event->byte_count); in akbd_processevent()
H A Dams.c423 event.byte_count = buffer[0]; in ms_adbcomplete()
424 memcpy(event.bytes, buffer + 1, event.byte_count); in ms_adbcomplete()
455 max_byte = event->byte_count; in ms_processevent()
/openbsd-src/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_sdma.h134 uint32_t byte_count,
150 uint32_t byte_count);
/openbsd-src/libexec/ftpd/
H A Dftpd.c145 off_t byte_count; variable
1136 byte_count = -1; in retrieve()
1172 logxfer(name, byte_count, start); in retrieve()
1180 LOGBYTES("get", name, byte_count); in retrieve()
1217 byte_count = -1; in store()
1264 LOGBYTES(*mode == 'w' ? "put" : "append", name, byte_count); in store()
1345 byte_count = 0; in dataconn()
1513 byte_count++; in send_data()
1565 byte_count += cnt; in send_data()
1585 byte_count += cnt; in send_data()
[all …]
/openbsd-src/sys/dev/ic/
H A Dfxpreg.h131 volatile u_int8_t byte_count; member
183 volatile u_int16_t byte_count; member
/openbsd-src/gnu/llvm/lldb/source/Utility/
H A DDataExtractor.cpp847 unsigned byte_count = 0; in GetULEB128() local
848 uint64_t result = llvm::decodeULEB128(src, &byte_count, m_end); in GetULEB128()
849 *offset_ptr += byte_count; in GetULEB128()
864 unsigned byte_count = 0; in GetSLEB128() local
865 int64_t result = llvm::decodeSLEB128(src, &byte_count, m_end); in GetSLEB128()
866 *offset_ptr += byte_count; in GetSLEB128()
/openbsd-src/sys/dev/pci/
H A Dpciidereg.h112 u_int32_t byte_count; /* memory region length */ member
/openbsd-src/gnu/usr.bin/binutils/bfd/
H A Dxtensa-isa.c528 int fence_post, start, increment, i, byte_count; in xtensa_insnbuf_to_chars() local
548 byte_count = xtensa_insn_length (isa, opc); in xtensa_insnbuf_to_chars()
549 fence_post = start + (byte_count * increment); in xtensa_insnbuf_to_chars()

123