/freebsd/contrib/sendmail/libsm/ |
H A D | memstat.c | 36 if (sc_page_size == -1) in sm_memstat_open() 37 return (errno != 0) ? errno : -1; in sm_memstat_open() 78 if (r == -1) 79 return (errno != 0) ? errno : -1; 111 return (errno != 0) ? errno : -1; 138 return (errno != 0) ? errno : -1; 163 return -1; 164 if (kstat_read(kc, kst, NULL) == -1) 181 MemTotal: 255340 kB 182 MemFree: 9100 kB [all …]
|
/freebsd/sys/contrib/edk2/Include/Library/ |
H A D | MemoryAllocationLib.h | 18 Allocates one or more 4KB pages of type EfiBootServicesData. 20 Allocates the number of 4KB pages of type EfiBootServicesData and returns a pointer to the 21 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL 25 @param Pages The number of 4 KB pages to allocate. 37 Allocates one or more 4KB pages of type EfiRuntimeServicesData. 39 Allocates the number of 4KB pages of type EfiRuntimeServicesData and returns a pointer to the 40 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL 44 @param Pages The number of 4 KB pages to allocate. 56 Allocates one or more 4KB pages of type EfiReservedMemoryType. 58 Allocates the number of 4KB pages of type EfiReservedMemoryType and returns a pointer to the [all …]
|
/freebsd/contrib/bearssl/src/ssl/ |
H A D | ssl_engine.c | 52 #define BR_USE_URANDOM 1 63 #define BR_USE_WIN32_RAND 1 254 * With TLS-1.0 and CBC mode, we apply a 1/n-1 split, for a maximum 257 * 32 bytes for the first record payload (AES-CBC + HMAC/SHA-1) 259 * 20 bytes for the MAC (HMAC/SHA-1) 261 * -1 byte to account for the payload byte in the first record 263 * Note that with TLS-1.0, the MAC is HMAC with either MD5 or SHA-1, but 432 flen = (size_t)1 << u; in br_ssl_engine_set_buffers_bidi() 445 rc->max_frag_len = (size_t)1 << u; in br_ssl_engine_set_buffers_bidi() 474 return 1; in rng_init() [all …]
|
/freebsd/usr.sbin/bhyve/amd64/ |
H A D | vga.c | 10 * 1. Redistributions of source code must retain the above copyright 46 #define KB (1024UL) macro 200 sc->gc_width = (sc->vga_crtc.crtc_horiz_disp_end + 1) * in vga_check_size() 205 (((sc->vga_crtc.crtc_overflow & CRTC_OF_VDE9) >> CRTC_OF_VDE9_SHIFT) << 9)) + 1; in vga_check_size() 222 data = (((sc->vga_ram[offset + 0 * 64*KB] >> bit) & 0x1) << 0) | in vga_get_pixel() 223 (((sc->vga_ram[offset + 1 * 64*KB] >> bit) & 0x1) << 1) | in vga_get_pixel() 224 (((sc->vga_ram[offset + 2 * 64*KB] >> bit) & 0x1) << 2) | in vga_get_pixel() 225 (((sc->vga_ram[offset + 3 * 64*KB] >> bit) & 0x1) << 3); in vga_get_pixel() 269 ch = sc->vga_ram[offset + 0 * 64*KB]; in vga_get_text_pixel() 270 attr = sc->vga_ram[offset + 1 * 64*KB]; in vga_get_text_pixel() [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | crypto-arcfour.c | 10 * 1. Redistributions of source code must retain the above copyright 71 krb5_keyblock kb; in _krb5_HMAC_MD5_checksum() local 90 ksign.key = &kb; in _krb5_HMAC_MD5_checksum() 91 kb.keyvalue = ksign_c.checksum; in _krb5_HMAC_MD5_checksum() 94 t[1] = (usage >> 8) & 0xFF; in _krb5_HMAC_MD5_checksum() 136 krb5_keyblock kb; in ARCFOUR_subencrypt() local 143 t[1] = (usage >> 8) & 0xFF; in ARCFOUR_subencrypt() 159 ke.key = &kb; in ARCFOUR_subencrypt() 160 kb.keyvalue = k2_c.checksum; in ARCFOUR_subencrypt() 169 ke.key = &kb; in ARCFOUR_subencrypt() [all …]
|
/freebsd/tools/diag/prtblknos/ |
H A D | README | 8 Filesystem 1K-blocks Used Avail Capacity Mounted on 30 size blocks which by today's default is 32Kb. 34 fragment. Since the default size for fragments today is 4Kb, the 35 physical block numbers reference 4Kb blocks. The distances listed 37 means a separation of just one 32Kb block. For example lbn 11, ends 38 at 3217895, the 32Kb first level indirect immediately follows it at 43 half the block size (say 32Kb blocks with 16Kb fragments) then the 44 physical block numbers listed would be 16Kb in size.
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/block_cloning/ |
H A D | block_cloning_lwb_buffer_overflow.ksh | 32 # Test for LWB buffer overflow with multiple VDEVs ZIL when 128KB 33 # block write is split into two 68KB ones, trying to write maximum 34 # sizes 128KB TX_CLONE_RANGE record with 1022 block pointers into 35 # 68KB buffer. 38 # 1. Create a pool with multiple VDEVs ZIL 40 # pointers into 68KB buffer 75 # an assert is hit when 128KB block write is split into two 68KB ones 86 # FreeBSD's seq(1) leaves a trailing space, remove it with sed(1).
|
/freebsd/contrib/kyua/utils/ |
H A D | units_test.cpp | 65 using units::KB; in ATF_TEST_CASE_BODY() 67 ATF_REQUIRE_EQ("1.00M", units::bytes(1 * MB).format()); in ATF_TEST_CASE_BODY() 68 ATF_REQUIRE_EQ("1023.50M", units::bytes(1023 * MB + 512 * KB).format()); in ATF_TEST_CASE_BODY() 75 using units::KB; in ATF_TEST_CASE_BODY() 77 ATF_REQUIRE_EQ("3.00K", units::bytes(3 * KB).format()); in ATF_TEST_CASE_BODY() 78 ATF_REQUIRE_EQ("1.33K", units::bytes(1 * KB + 340).format()); in ATF_TEST_CASE_BODY() 98 ATF_REQUIRE_EQ(units::bytes(TB), units::bytes::parse("1T")); in ATF_TEST_CASE_BODY() 99 ATF_REQUIRE_EQ(units::bytes(TB), units::bytes::parse("1t")); in ATF_TEST_CASE_BODY() 111 ATF_REQUIRE_EQ(units::bytes(GB), units::bytes::parse("1G")); in ATF_TEST_CASE_BODY() 112 ATF_REQUIRE_EQ(units::bytes(GB), units::bytes::parse("1g")); in ATF_TEST_CASE_BODY() [all …]
|
/freebsd/usr.sbin/fstyp/ |
H A D | hammer2_disk.h | 12 * 1. Redistributions of source code must retain the above copyright 76 * are always 64KB. Logical file buffers are typically 16KB. All data 85 * to optimize storage efficiency. The minimum fragment size is 1KB. 94 * A full indirect block use supports 512 x 128-byte blockrefs in a 64KB 95 * buffer. Indirect blocks down to 1KB are supported to keep small 98 * A maximally sized file (2^64-1 bytes) requires ~6 indirect block levels 99 * using 64KB indirec [all...] |
/freebsd/share/man/man4/man4.i386/ |
H A D | sbni.4 | 6 .\" 1. Redistributions of source code must retain the above copyright 75 0 baud rate (2Mb in fast mode/500kb in slow) 77 1 baud rate (1Mb/250kb) 79 2 baud rate (500kb/125kb) 81 3 baud rate (250kb/62.5kb)
|
/freebsd/sys/dev/bhnd/bhndb/ |
H A D | bhndb_pcireg.h | 37 * BAR0 size: 8KB 49 * BAR0 size: 16KB 60 * BAR0 size: 16KB 64 * [0x1000+0x1000] dynamic mapped backplane address space (window 1). 71 * BAR0 size: 32KB 75 * [0x1000+0x1000] dynamic mapped backplane address space (window 1). 84 * 4KB mapping, newer devices will vary. 131 #define BHNDB_PCI_V0_BAR0_SIZE 0x2000 /* 8KB BAR0 */ 146 #define BHNDB_PCI_V1_BAR0_SIZE 0x4000 /* 16KB BAR0 */ 161 #define BHNDB_PCI_V2_BAR0_SIZE 0x4000 /* 16KB BAR0 */ [all …]
|
/freebsd/share/man/man4/ |
H A D | fdc.4 | 9 .\" 1. Redistributions of source code must retain the above copyright 47 .Cd hint.fd.1.at="fdc0" 48 .Cd hint.fd.1.drive="1" 49 .Cd hint.fd.1.flags="0x0" 91 possible to use either a 720 KB medium or a 1440 KB medium in a 120 numbered 1 through 15, or to use a number that describes the medium 124 (like 1200 KB for 5.25 inch HD drives or 1440 KB for 3.5 inch HD 134 .It Ar 1 135 5.25 inch double-density device with 40 cylinders (360 KB native 138 5.25 inch high-density device with 80 cylinders (1200 KB native [all …]
|
H A D | sym.4 | 37 .\" 1. Redistributions of source code must retain the above copyright 110 As a result, it guarantees that no more than 1 interrupt 143 a value of 1, the driver will also probe against HVD for 825a, 875, 876 and 210 .It "sym53c825a 10MHz 16Bit 4KB N Y" 212 .It "sym53c875 20MHz 16Bit 4KB N Y" 213 .It "sym53c876 20MHz 16Bit 4KB N Y" 214 .It "sym53c885 20MHz 16Bit 4KB N Y" 215 .It "sym53c895 40MHz 16Bit 4KB N Y" 216 .It "sym53c895A 40MHz 16Bit 8KB N Y" 217 .It "sym53c896 40MHz 16Bit 8KB Y Y" [all …]
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | brt_impl.h | 39 * by a 16bit counter, thus 1TB VDEV requires 128kB of memory: (1TB / 16MB) * 2B 56 * block size of entcounts. For example if we have a 1PB vdev then all 58 * 128MB array of entcounts into 32kB disk blocks, as we don't want to update 60 * We maintain a bitmap where each 32kB disk block within 128MB entcounts array 63 * that reside on a 32kB disk block (32kB / sizeof (uint16_t)). 67 (((size) - 1) / BRT_BLOCKSIZE / sizeof (uint16_t) + 1) 70 #define BRT_BIG_ENDIAN 1 140 * (so the whole array is 128kB). We updated bv_entcount[2] and 142 * be set and we will write only first BRT_BLOCKSIZE out of 128kB. 172 #define BRT_KEY_WORDS (1)
|
/freebsd/contrib/netbsd-tests/lib/libc/db/ |
H A D | h_lfsr.c | 11 * 1. Redistributions of source code must retain the above copyright 50 uint16_t lsb = *cur & 1; in next() 51 *cur >>= 1; in next() 60 char kb[256]; in main() local 66 uint32_t pagesize = atoi(argv[1]); in main() 74 key.data = kb; in main() 83 key.size = (len & 0xff) + 1; in main() 85 memset(kb, c, key.size); in main() 86 val.size = (next(&len) & 0xff) + 1; in main() 92 case -1: in main() [all …]
|
/freebsd/share/examples/pf/ |
H A D | faq-example3 | 24 queue std_ext bandwidth 500Kb cbq(default borrow) 25 queue www_ext bandwidth 500Kb { www_ext_http, www_ext_misc } 27 queue www_ext_misc bandwidth 50% priority 1 cbq(borrow) 28 queue boss_ext bandwidth 500Kb priority 3 cbq(borrow) 49 queue std_int bandwidth 250Kb cbq(default borrow) 50 queue it_int bandwidth 500Kb cbq(borrow) 51 queue boss_int bandwidth 250Kb priority 3 cbq(borrow) 70 queue net_dmz bandwidth 500Kb { net_dmz_http, net_dmz_misc } 72 queue net_dmz_misc bandwidth 50% priority 1 cbq(default borrow)
|
H A D | ackpri | 9 # Example: 512/128 kbps ADSL. Download is 50 kB/s. When a concurrent 10 # upload saturates the uplink, download drops to 7 kB/s. With the 11 # priority queue below, download drops only to 48 kB/s. 17 # For a 512/128 kbps ADSL with PPPoE link, using "bandwidth 100Kb" 23 altq on $ext_if priq bandwidth 100Kb queue { q_pri, q_def } 25 queue q_def priority 1 priq(default)
|
/freebsd/sys/contrib/device-tree/src/arm64/xilinx/ |
H A D | zynqmp-sm-k26-revA.dts | 3 * dts file for Xilinx ZynqMP SM-K26 rev2/1/B/A 21 model = "ZynqMP SM-K26 Rev2/1/B/A"; 95 io-channels = <&xilinx_ams 0>, <&xilinx_ams 1>, <&xilinx_ams 2>, 155 #address-cells = <1>; 156 #size-cells = <1>; 160 reg = <0x0 0x80000>; /* 512KB */ 166 reg = <0x80000 0x80000>; /* 512KB */ 172 reg = <0x100000 0x20000>; /* 128KB */ 176 reg = <0x120000 0x20000>; /* 128KB */ 180 reg = <0x140000 0xC0000>; /* 768KB */ [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_platform_mac.cpp | 79 dts->ignore_interceptors = 1; in InitializeThreadStateStorage() 176 "shadow (0x%016zx-0x%016zx): resident %zd kB, dirty %zd kB\n" in WriteMemoryProfile() 177 "meta (0x%016zx-0x%016zx): resident %zd kB, dirty %zd kB\n" in WriteMemoryProfile() 179 "low app (0x%016zx-0x%016zx): resident %zd kB, dirty %zd kB\n" in WriteMemoryProfile() 180 "high app (0x%016zx-0x%016zx): resident %zd kB, dirty %zd kB\n" in WriteMemoryProfile() 181 "heap (0x%016zx-0x%016zx): resident %zd kB, dirty %zd kB\n" in WriteMemoryProfile() 183 "app (0x%016zx-0x%016zx): resident %zd kB, dirty %zd kB\n" in WriteMemoryProfile() 185 "stacks: %zd unique IDs, %zd kB allocated\n" in WriteMemoryProfile() 228 uptr max_vm = GetMaxUserVirtualAddress() + 1; in InitializePlatformEarly()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/ |
H A D | CSKYBaseInfo.h | 30 AddrMode32B = 1, // ld32.b, ld32.bs, st32.b, st32.bs, +4kb 31 AddrMode32H = 2, // ld32.h, ld32.hs, st32.h, st32.hs, +8kb 32 AddrMode32WD = 3, // ld32.w, st32.w, ld32.d, st32.d, +16kb 35 AddrMode16W = 6, // ld16.w, +128b or +1kb 36 AddrMode32SDF = 7, // flds, fldd, +1kb
|
/freebsd/sys/contrib/device-tree/src/powerpc/fsl/ |
H A D | p1021rdb-pc.dtsi | 37 #address-cells = <1>; 38 #size-cells = <1>; 42 device-width = <1>; 46 /* 256KB for Vitesse 7385 Switch firmware */ 53 /* 256KB for DTB Image */ 72 /* 256KB for QE ucode firmware*/ 80 /* 512KB for u-boot Bootloader Image */ 81 /* 512KB for u-boot Environment Variables */ 87 nand@1,0 { 88 #address-cells = <1>; [all …]
|
H A D | p1024rdb.dtsi | 37 #address-cells = <1>; 38 #size-cells = <1>; 42 device-width = <1>; 46 /* 256KB for Vitesse 7385 Switch firmware */ 53 /* 256KB for DTB Image */ 72 /* 512KB for u-boot Bootloader Image */ 73 /* 512KB for u-boot Environment Variables */ 80 nand@1,0 { 81 #address-cells = <1>; 82 #size-cells = <1>; [all …]
|
/freebsd/sys/arm64/include/ |
H A D | vmparam.h | 13 * 1. Redistributions of source code must retain the above copyright 47 #define MAXTSIZ (1*1024*1024*1024) /* max text size */ 53 #define MAXDSIZ (1*1024*1024*1024) /* max data size */ 59 #define MAXSSIZ (1*1024*1024*1024) /* max stack size */ 84 #define VM_FREEPOOL_DEFAULT 1 94 #define VM_FREELIST_DMA32 1 97 * When PAGE_SIZE is 4KB, an allocation size of 16MB is supported in order 105 * When PAGE_SIZE is 16KB, an allocation size of 32MB is supported. This 124 * Level 0 reservations consist of 16 pages when PAGE_SIZE is 4KB, and 128 125 * pages when PAGE_SIZE is 16KB. Level 1 reservations consist of 32 64KB [all …]
|
/freebsd/contrib/bearssl/src/symcipher/ |
H A D | aes_x86ni.c | 25 #define BR_ENABLE_INTRINSICS 1 41 * 19 SSE4.1 (used for _mm_insert_epi32(), for AES-CTR) in br_aes_x86ni_supported() 122 const unsigned char *kb; in x86ni_keysched() local 131 sk[(i) + 1] = t3; \ in x86ni_keysched() 134 sk[(i) + 1] = _mm_castpd_si128(_mm_shuffle_pd( \ in x86ni_keysched() 135 _mm_castsi128_pd(sk[(i) + 1]), \ in x86ni_keysched() 139 _mm_castsi128_pd(t3), 1)); \ in x86ni_keysched() 148 sk[(i) + 1] = t1; \ in x86ni_keysched() 152 kb = key; in x86ni_keysched() 157 t1 = _mm_loadu_si128((const void *)kb); in x86ni_keysched() [all …]
|
/freebsd/sys/x86/x86/ |
H A D | identcpu.c | 13 * 1. Redistributions of source code must retain the above copyright 76 #define IDENTBLUE_IBMCPU 1 187 static const char *cpu_brandtable[MAX_BRAND_INDEX + 1] = { 352 has_f00f_bug = 1; in printcpuinfo() 444 strcat(cpu_model, "K5 model 1"); in printcpuinfo() 456 strcat(cpu_model, "K6 266 (model 1)"); in printcpuinfo() 851 "\024SSE4.1" /* SSE 4.1 */ in printcpuinfo() 896 "\033Page1GB" /* 1-GB large page support */ in printcpuinfo() 1291 * F E D C B A 9 8 7 6 5 4 3 2 1 0 1294 * | (DIR 1) | (DIR 0) | [all …]
|