| /netbsd-src/tests/lib/libc/string/ |
| H A D | t_popcount.c | 40 static unsigned int byte_count[256]; variable 53 byte_count[i] = 0; in popcount_init() 56 ++byte_count[i]; in popcount_init() 147 r = byte_count[i & 255] + byte_count[(i >> 8) & 255] in ATF_TC_BODY() 148 + byte_count[(i >> 16) & 255] in ATF_TC_BODY() 149 + byte_count[(i >> 24) & 255]; in ATF_TC_BODY() 173 r2 = byte_count[p & 255] + byte_count[(p >> 8) & 255] in ATF_TC_BODY() 174 + byte_count[(p >> 16) & 255] in ATF_TC_BODY() 175 + byte_count[(p >> 24) & 255]; in ATF_TC_BODY() 178 r = byte_count[i & 255] + byte_count[(i >> 8) & 255] in ATF_TC_BODY() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/radeon/ |
| H A D | radeon_kv_smc.c | 124 const u8 *src, u32 byte_count, u32 limit) in kv_copy_bytes_to_smc() argument 129 if ((smc_start_address + byte_count) > limit) in kv_copy_bytes_to_smc() 152 } else if (byte_count > 0) { in kv_copy_bytes_to_smc() 154 byte_count--; in kv_copy_bytes_to_smc() 174 while (byte_count >= 4) { in kv_copy_bytes_to_smc() 185 byte_count -= 4; in kv_copy_bytes_to_smc() 190 if (byte_count > 0) { in kv_copy_bytes_to_smc() 199 extra_shift = 8 * (4 - byte_count); in kv_copy_bytes_to_smc() 201 while (byte_count > 0) { in kv_copy_bytes_to_smc() 204 byte_count--; in kv_copy_bytes_to_smc()
|
| H A D | radeon_rv770_smc.c | 302 u16 byte_count, u16 limit) in rv770_copy_bytes_to_smc() argument 311 if ((smc_start_address + byte_count) > limit) in rv770_copy_bytes_to_smc() 317 while (byte_count >= 4) { in rv770_copy_bytes_to_smc() 328 byte_count -= 4; in rv770_copy_bytes_to_smc() 333 if (byte_count > 0) { in rv770_copy_bytes_to_smc() 342 extra_shift = 8 * (4 - byte_count); in rv770_copy_bytes_to_smc() 344 while (byte_count > 0) { in rv770_copy_bytes_to_smc() 347 byte_count--; in rv770_copy_bytes_to_smc() 369 u32 byte_count) in rv770_program_interrupt_vectors() argument 373 if (byte_count % 4) in rv770_program_interrupt_vectors() [all …]
|
| H A D | radeon_ci_smc.c | 54 const u8 *src, u32 byte_count, u32 limit) in ci_copy_bytes_to_smc() argument 64 if ((smc_start_address + byte_count) > limit) in ci_copy_bytes_to_smc() 70 while (byte_count >= 4) { in ci_copy_bytes_to_smc() 81 byte_count -= 4; in ci_copy_bytes_to_smc() 86 if (byte_count > 0) { in ci_copy_bytes_to_smc() 95 extra_shift = 8 * (4 - byte_count); in ci_copy_bytes_to_smc() 97 while (byte_count > 0) { in ci_copy_bytes_to_smc() 99 byte_count--; in ci_copy_bytes_to_smc()
|
| H A D | radeon_si_smc.c | 54 const u8 *src, u32 byte_count, u32 limit) in si_copy_bytes_to_smc() argument 62 if ((smc_start_address + byte_count) > limit) in si_copy_bytes_to_smc() 68 while (byte_count >= 4) { in si_copy_bytes_to_smc() 79 byte_count -= 4; in si_copy_bytes_to_smc() 84 if (byte_count > 0) { in si_copy_bytes_to_smc() 93 extra_shift = 8 * (4 - byte_count); in si_copy_bytes_to_smc() 95 while (byte_count > 0) { in si_copy_bytes_to_smc() 98 byte_count--; in si_copy_bytes_to_smc()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
| H A D | amdgpu_kv_smc.c | 128 const u8 *src, u32 byte_count, u32 limit) in amdgpu_kv_copy_bytes_to_smc() argument 133 if ((smc_start_address + byte_count) > limit) in amdgpu_kv_copy_bytes_to_smc() 156 } else if (byte_count > 0) { in amdgpu_kv_copy_bytes_to_smc() 158 byte_count--; in amdgpu_kv_copy_bytes_to_smc() 178 while (byte_count >= 4) { in amdgpu_kv_copy_bytes_to_smc() 189 byte_count -= 4; in amdgpu_kv_copy_bytes_to_smc() 194 if (byte_count > 0) { in amdgpu_kv_copy_bytes_to_smc() 203 extra_shift = 8 * (4 - byte_count); in amdgpu_kv_copy_bytes_to_smc() 205 while (byte_count > 0) { in amdgpu_kv_copy_bytes_to_smc() 208 byte_count--; in amdgpu_kv_copy_bytes_to_smc()
|
| H A D | amdgpu_si_smc.c | 54 const u8 *src, u32 byte_count, u32 limit) in amdgpu_si_copy_bytes_to_smc() argument 62 if ((smc_start_address + byte_count) > limit) in amdgpu_si_copy_bytes_to_smc() 68 while (byte_count >= 4) { in amdgpu_si_copy_bytes_to_smc() 79 byte_count -= 4; in amdgpu_si_copy_bytes_to_smc() 84 if (byte_count > 0) { in amdgpu_si_copy_bytes_to_smc() 92 extra_shift = 8 * (4 - byte_count); in amdgpu_si_copy_bytes_to_smc() 94 while (byte_count > 0) { in amdgpu_si_copy_bytes_to_smc() 97 byte_count--; in amdgpu_si_copy_bytes_to_smc()
|
| H A D | amdgpu_sdma.h | 95 uint32_t byte_count); 110 uint32_t byte_count);
|
| /netbsd-src/sys/arch/hpcmips/stand/pbsdboot/ |
| H A D | elf.c | 73 vmem_sub(int opr, void* xxx, void *addr, int nbytes, int *byte_count) in vmem_sub() argument 114 int tmp_progress = *byte_count * 100 / total_bytes; in vmem_sub() 115 *byte_count += n; in vmem_sub() 133 long byte_count; in scanfile() local 187 byte_count = 0; in scanfile() 211 &byte_count) != 0) { in scanfile() 217 &byte_count) != 0) { in scanfile() 221 byte_count += phtbl[i].p_memsz; in scanfile() 232 total_bytes = byte_count; in scanfile() 289 &byte_count) != 0) { in scanfile() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/powerplay/smumgr/ |
| H A D | amdgpu_smu7_smumgr.c | 54 …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 63 …PP_ASSERT_WITH_CODE((limit > (smc_start_address + byte_count)), "SMC address is beyond the SMC RAM… in smu7_copy_bytes_from_smc() 67 while (byte_count >= 4) { in smu7_copy_bytes_from_smc() 73 byte_count -= 4; in smu7_copy_bytes_from_smc() 77 if (byte_count) { in smu7_copy_bytes_from_smc() 82 for (i = 0; i < byte_count; i++) in smu7_copy_bytes_from_smc() 91 const uint8_t *src, uint32_t byte_count, uint32_t limit) in smu7_copy_bytes_to_smc() argument 100 …PP_ASSERT_WITH_CODE((limit > (smc_start_address + byte_count)), "SMC address is beyond the SMC RAM… in smu7_copy_bytes_to_smc() 104 while (byte_count >= 4) { in smu7_copy_bytes_to_smc() 116 byte_count -= 4; in smu7_copy_bytes_to_smc() [all …]
|
| H A D | smu7_smumgr.h | 59 uint32_t *dest, uint32_t byte_count, uint32_t limit); 61 const uint8_t *src, uint32_t byte_count, uint32_t limit);
|
| /netbsd-src/usr.sbin/ndbootd/ |
| H A D | ndbootd.c | 179 unsigned int byte_count, bytes_left; in _ndbootd_ip_cksum() local 189 byte_count = ip_packet->ip_hl << 2; in _ndbootd_ip_cksum() 190 for (bytes_left = byte_count; bytes_left >= sizeof(*_word);) { in _ndbootd_ip_cksum() 334 ssize_t byte_count; in main() local 789 byte_count = ntohl(nd_packet->ndboot_packet_current_byte_count); in main() 790 for (; byte_count > 0;) { in main() 805 byte_count); in main() 817 byte_count); in main() 853 byte_count); in main() 864 byte_count); in main() [all …]
|
| /netbsd-src/sys/external/bsd/drm/dist/bsd-core/ |
| H A D | drm_bufs.c | 455 int byte_count; in drm_do_addbufs_agp() local 468 byte_count = 0; in drm_do_addbufs_agp() 519 buf->offset = (dma->byte_count + offset); in drm_do_addbufs_agp() 538 byte_count += PAGE_SIZE << page_order; in drm_do_addbufs_agp() 541 DRM_DEBUG("byte_count: %d\n", byte_count); in drm_do_addbufs_agp() 558 dma->byte_count += byte_count; in drm_do_addbufs_agp() 584 int byte_count; in drm_do_addbufs_pci() local 633 byte_count = 0; in drm_do_addbufs_pci() 666 buf->offset = (dma->byte_count + byte_count + offset); in drm_do_addbufs_pci() 688 byte_count += PAGE_SIZE << page_order; in drm_do_addbufs_pci() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/ |
| H A D | bio_ssl.c | 31 size_t byte_count; member 111 sb->byte_count += *readbytes; in ssl_read() 112 if (sb->byte_count > sb->renegotiate_count) { in ssl_read() 113 sb->byte_count = 0; in ssl_read() 180 bs->byte_count += *written; in ssl_write() 181 if (bs->byte_count > bs->renegotiate_count) { in ssl_write() 182 bs->byte_count = 0; in ssl_write() 375 dbs->byte_count = bs->byte_count; in ssl_ctrl()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/ |
| H A D | drm_bufs.c | 784 int byte_count; in drm_legacy_addbufs_agp() local 800 byte_count = 0; in drm_legacy_addbufs_agp() 868 buf->offset = (dma->byte_count + offset); in drm_legacy_addbufs_agp() 891 byte_count += PAGE_SIZE << page_order; in drm_legacy_addbufs_agp() 894 DRM_DEBUG("byte_count: %d\n", byte_count); in drm_legacy_addbufs_agp() 914 dma->page_count += byte_count >> PAGE_SHIFT; in drm_legacy_addbufs_agp() 915 dma->byte_count += byte_count; in drm_legacy_addbufs_agp() 948 int byte_count; in drm_legacy_addbufs_pci() local 1034 byte_count = 0; in drm_legacy_addbufs_pci() 1067 buf->offset = (dma->byte_count + byte_count + offset); in drm_legacy_addbufs_pci() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/gssapi/mech/ |
| H A D | gss_mech_switch.c | 50 size_t byte_count; in _gss_string_to_oid() local 82 byte_count = 0; in _gss_string_to_oid() 116 byte_count++; in _gss_string_to_oid() 137 byte_count++; in _gss_string_to_oid() 142 if (byte_count == 0) in _gss_string_to_oid() 145 res = malloc(byte_count); in _gss_string_to_oid() 148 oid->length = byte_count; in _gss_string_to_oid()
|
| /netbsd-src/external/ibm-public/postfix/dist/src/util/ |
| H A D | valid_hostname.c | 208 int byte_count = 0; in valid_ipv4_hostaddr() local 225 byte_count++; in valid_ipv4_hostaddr() 241 if (byte_count == 1 && byte_val == 0 && addr[strspn(addr, "0.")]) { in valid_ipv4_hostaddr() 255 if (byte_count != BYTES_NEEDED) { in valid_ipv4_hostaddr()
|
| /netbsd-src/external/mit/expat/dist/tests/ |
| H A D | structdata.c | 58 size_t byte_count = (xcstrlen(s) + 1) * sizeof(XML_Char); in xmlstrdup() local 59 XML_Char *dup = malloc(byte_count); in xmlstrdup() 62 memcpy(dup, s, byte_count); in xmlstrdup()
|
| /netbsd-src/external/gpl2/groff/dist/src/devices/grodvi/ |
| H A D | dvi.cpp | 120 int byte_count; member in dvi_printer 199 : fp(stdout), byte_count(0), last_bop(-1), page_count(0), max_h(0), max_v(0), in dvi_printer() 234 byte_count += 1; in out1() 240 byte_count += 2; in out2() 247 byte_count += 3; in out3() 255 byte_count += 4; in out4() 479 int tem = byte_count; in postamble() 495 for (i = 0; i < 4 || byte_count % 4 != 0; i++) in postamble() 502 int tem = byte_count; in begin_page()
|
| /netbsd-src/external/gpl2/groff/dist/src/utils/indxbib/ |
| H A D | indxbib.cpp | 481 int byte_count = 0; // bytes read in do_file() local 493 byte_count++; in do_file() 503 byte_count++; in do_file() 514 ref_start = byte_count - space_count - 1; in do_file() 542 byte_count - 1 - space_count - ref_start); in do_file() 585 byte_count - 1 - space_count - ref_start); in do_file() 646 byte_count - ref_start - space_count); in do_file()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/gvt/ |
| H A D | edid.c | 296 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), ®_data, byte_count); in gmbus3_mmio_read()
|
| /netbsd-src/libexec/ftpd/ |
| H A D | ftpd.c | 194 off_t byte_count; variable 1752 byte_count = -1; in retrieve() 1793 logxfer("get", byte_count, name, NULL, tdp, error); in retrieve() 1865 byte_count = -1; in store() 1912 logxfer(desc, byte_count, name, NULL, tdp, error); in store() 2005 byte_count = 0; in dataconn() 2133 byte_count += c; in write_data() 2294 byte_count++; in send_data() 2313 if ((byte_count % 4096) == 0) in send_data() 2445 FILESIZECHECK(byte_count + c); in receive_data() [all …]
|
| /netbsd-src/sys/arch/mac68k/dev/ |
| H A D | ams.c | 426 event.byte_count = buf[0]; in ms_adbcomplete() 427 memcpy(event.bytes, buf + 1, event.byte_count); in ms_adbcomplete() 461 max_byte = event->byte_count; in ms_processevent()
|
| /netbsd-src/sys/arch/sandpoint/stand/altboot/ |
| H A D | fxp.c | 107 volatile uint16_t byte_count; member 240 cbp->byte_count = 22; /* (22) bytes to config */ in fxp_init() 344 txd->byte_count = htole16(0x8000); in fxp_send()
|
| /netbsd-src/sys/dev/pci/ |
| H A D | pciidereg.h | 108 u_int32_t byte_count; /* memory region length */ member
|