| /freebsd/contrib/libarchive/libarchive/test/ |
| H A D | test_archive_match_time.c | 34 struct archive *m; in test_newer_time() local 36 if (!assert((m = archive_match_new()) != NULL)) in test_newer_time() 39 archive_match_free(m); in test_newer_time() 43 assertEqualIntA(m, 0, archive_match_include_time(m, in test_newer_time() 45 ARCHIVE_MATCH_NEWER, 7880, 0)); in test_newer_time() 48 archive_entry_set_mtime(ae, 7880, 0); in test_newer_time() 49 archive_entry_set_ctime(ae, 7880, 0); in test_newer_time() 51 assertEqualInt(1, archive_match_time_excluded(m, ae)); in test_newer_time() 52 assertEqualInt(1, archive_match_excluded(m, ae)); in test_newer_time() 56 assertEqualInt(1, archive_match_time_excluded(m, ae)); in test_newer_time() [all …]
|
| H A D | test_archive_match_path.c | 32 struct archive *m; in test_exclusion_mbs() 34 if (!assert((m = archive_match_new()) != NULL)) in test_exclusion_mbs() 37 archive_match_free(m); in test_exclusion_mbs() 42 assertEqualIntA(m, 0, archive_match_exclude_pattern(m, "^aa*")); in test_exclusion_mbs() 47 assertEqualInt(1, archive_match_path_excluded(m, ae)); in test_exclusion_mbs() 48 assertEqualInt(1, archive_match_excluded(m, ae)); in test_exclusion_mbs() 52 assertEqualInt(1, archive_match_path_excluded(m, ae)); in test_exclusion_mbs() 53 assertEqualInt(1, archive_match_excluded(m, a in test_exclusion_mbs() 33 struct archive *m; test_exclusion_mbs() local 76 struct archive *m; test_exclusion_wcs() local 116 exclusion_from_file(struct archive * m) exclusion_from_file() argument 176 struct archive *m; test_exclusion_from_file_mbs() local 201 struct archive *m; test_exclusion_from_file_wcs() local 227 struct archive *m; test_inclusion_mbs() local 276 struct archive *m; test_inclusion_wcs() local 324 struct archive *m; test_inclusion_from_file_mbs() local 348 struct archive *m; test_inclusion_from_file_wcs() local 375 struct archive *m; test_exclusion_and_inclusion() local [all...] |
| H A D | test_archive_match_owner.c | 32 struct archive *m; in test_uid() 34 if (!assert((m = archive_match_new()) != NULL)) in test_uid() 37 archive_match_free(m); in test_uid() 41 assertEqualIntA(m, 0, archive_match_include_uid(m, 1000)); in test_uid() 42 assertEqualIntA(m, 0, archive_match_include_uid(m, 1002)); in test_uid() 44 archive_entry_set_uid(ae, 0); in test_uid() 33 struct archive *m; test_uid() local 75 struct archive *m; test_gid() local 117 struct archive *m; test_uname_mbs() local 159 struct archive *m; test_uname_wcs() local 201 struct archive *m; test_gname_mbs() local 243 struct archive *m; test_gname_wcs() local [all...] |
| /freebsd/contrib/googletest/googletest/test/ |
| H A D | googletest-output-test-golden-lin.txt | 15 [0;32m[==========] [mRunning 90 tests from 43 test suites. 16 [0;32m[----------] [mGlobal test environment set-up. 19 [0;32m[----------] [m1 test from ADeathTest 20 [0;32m[ RUN ] [mADeathTest.ShouldRunFirst 21 [0;32m[ OK ] [mADeathTest.ShouldRunFirst 22 [0;32m[----------] [m1 test from ATypedDeathTest/0, where TypeParam = int 23 [0;32m[ RUN ] [mATypedDeathTest/0.ShouldRunFirst 24 [0;32m[ OK ] [mATypedDeathTest/0.ShouldRunFirst 25 [0;32m[----------] [m1 test from ATypedDeathTest/1, where TypeParam = double 26 [0;32m[ RUN ] [mATypedDeathTest/1.ShouldRunFirst [all …]
|
| /freebsd/sys/dev/mlx5/ |
| H A D | diagnostics.h | 40 #define MLX5_CORE_PCI_DIAGNOSTICS(m) \ argument 41 m(+1, pxd_ready_bp, 0x0401) \ 42 m(+1, pci_write_bp, 0x0402) \ 43 m(+1, pci_read_bp, 0x0403) \ 44 m(+1, pci_read_stuck_no_completion_buffer, 0x0404) \ 45 m(+1, max_pci_bw, 0x0405) \ 46 m(+1, used_pci_bw, 0x0406) \ 47 m(+1, rx_pci_errors, 0) \ 48 m(+1, tx_pci_errors, 0) \ 49 m(+1, tx_pci_correctable_errors, 0) \ [all …]
|
| /freebsd/contrib/bsddialog/lib/ |
| H A D | menubox.c | 89 build_privatemenu(struct bsddialog_conf *conf, struct privatemenu *m, in build_privatemenu() argument 102 m->nitems = 0; in build_privatemenu() 103 for (i = 0; i < (int)ngroups; i++) { in build_privatemenu() 105 m->nitems += (int)groups[i].nitems; in build_privatemenu() 109 m->pritems = calloc(m->nitems, sizeof (struct privateitem)); in build_privatemenu() 110 if (m->pritems == NULL) in build_privatemenu() 112 m->hasbottomdesc = false; in build_privatemenu() 113 abs = 0; in build_privatemenu() 114 for (i = 0; i < (int)ngroups; i++) { in build_privatemenu() 116 for (j = 0; j < (int)groups[i].nitems; j++) { in build_privatemenu() [all …]
|
| /freebsd/sys/dev/sound/midi/ |
| H A D | midi.c | 129 SYSCTL_NODE(_hw, OID_AUTO, midi, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, 134 SYSCTL_INT(_hw_midi, OID_AUTO, debug, CTLFLAG_RW, &midi_debug, 0, ""); 157 * Register a new rmidi device. cls midi_if interface unit == 0 means 158 * auto-assign new unit number unit != 0 already assigned a unit number, eg. 161 * unit=0, channel=1..(number of channels) and cookie=soft_c and won't care 169 struct snd_midi *m; in midi_init() local 181 TAILQ_FOREACH(m, &midi_devs, link) { in midi_init() 182 mtx_lock(&m->lock); in midi_init() 183 if (unit != 0) { in midi_init() 184 if (m->unit == unit && m->channel == channel) { in midi_init() [all …]
|
| H A D | mpu401.c | 56 #define MPU_DATAPORT 0 59 #define MPU_RESET 0xff 60 #define MPU_UART 0x3f 61 #define MPU_ACK 0xfe 62 #define MPU_STATMASK 0xc0 63 #define MPU_OUTPUTBUSY 0x40 64 #define MPU_INPUTBUSY 0x80 68 #define CMD(m,d) MPUFOI_WRITE(m, m->cookie, MPU_CMDPORT,d) argument 69 #define STATUS(m) MPUFOI_READ(m, m->cookie, MPU_STATPORT) argument 70 #define READ(m) MPUFOI_READ(m, m->cookie, MPU_DATAPORT) argument [all …]
|
| /freebsd/lib/libthr/thread/ |
| H A D | thr_mutex.c | 81 static int mutex_qidx(struct pthread_mutex *m); 82 static bool is_robust_mutex(struct pthread_mutex *m); 83 static bool is_pshared_mutex(struct pthread_mutex *m); 120 mutex_init_link(struct pthread_mutex *m __unused) in mutex_init_link() 124 m->m_qe.tqe_prev = NULL; in mutex_init_link() 125 m->m_qe.tqe_next = NULL; in mutex_init_link() 126 m->m_pqe.tqe_prev = NULL; in mutex_init_link() 127 m->m_pqe.tqe_next = NULL; in mutex_init_link() 132 mutex_assert_is_owned(struct pthread_mutex *m __unused) in mutex_assert_is_owned() 136 if (__predict_false(m->m_qe.tqe_prev == NULL)) in mutex_assert_is_owned() [all …]
|
| /freebsd/sys/vm/ |
| H A D | vm_page.c | 125 static SYSCTL_NODE(_vm_stats, OID_AUTO, page, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, 145 &nofreeq_size, 0, 164 CTLFLAG_MPSAFE, NULL, 0, sysctl_vm_page_blacklist, "A", "Blacklist pages"); 168 static void vm_page_alloc_check(vm_page_t m); 170 static bool _vm_page_busy_sleep(vm_object_t obj, vm_page_t m, 172 static void vm_page_clear_dirty_mask(vm_page_t m, vm_page_bits_t pagebits); 173 static void vm_page_enqueue(vm_page_t m, uint8_t queue); 174 static bool vm_page_free_prep(vm_page_t m); 175 static void vm_page_free_toq(vm_page_t m); 177 static void vm_page_insert_radixdone(vm_page_t m, vm_object_t object); [all …]
|
| /freebsd/sys/dev/sound/pcm/ |
| H A D | mixer.c | 44 &mixer_bypass, 0, 86 [SOUND_MIXER_IGAIN] = 0, 125 for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) in mixer_lookup() 127 strlen(snd_mixernames[i])) == 0) in mixer_lookup() 133 if ((y) != 0) \ 135 } while (0) 138 if ((y) != 0) \ 140 } while (0) 143 mixer_set_softpcmvol(struct snd_mixer *m, struct snddev_info *d, in mixer_set_softpcmvol() argument 152 if (mtx_owned(m->lock)) in mixer_set_softpcmvol() [all …]
|
| /freebsd/crypto/openssl/test/recipes/10-test_bn_data/ |
| H A D | bnmod.txt | 8 # These test vectors satisfy A * B = ModMul (mod M) and 0 <= ModMul < M. 16 M = c462c7cdd79b7604246a0cd97c017700feb25908656b4733353af8119ecfa0212e4bd24304edd566adb5c1e9daa4089… 21 M = c462c7cdd79b7604246a0cd97c017700feb25908656b4733353af8119ecfa0212e4bd24304edd566adb5c1e9daa4089… 26 M = c462c7cdd79b7604246a0cd97c017700feb25908656b4733353af8119ecfa0212e4bd24304edd566adb5c1e9daa4089… 31 M = c462c7cdd79b7604246a0cd97c017700feb25908656b4733353af8119ecfa0212e4bd24304edd566adb5c1e9daa4089… 36 M = c462c7cdd79b7604246a0cd97c017700feb25908656b4733353af8119ecfa0212e4bd24304edd566adb5c1e9daa4089… 41 M = c462c7cdd79b7604246a0cd97c017700feb25908656b4733353af8119ecfa0212e4bd24304edd566adb5c1e9daa4089… 46 M = c462c7cdd79b7604246a0cd97c017700feb25908656b4733353af8119ecfa0212e4bd24304edd566adb5c1e9daa4089… 51 M = c462c7cdd79b7604246a0cd97c017700feb25908656b4733353af8119ecfa0212e4bd24304edd566adb5c1e9daa4089… 56 M = c462c7cdd79b7604246a0cd97c017700feb25908656b4733353af8119ecfa0212e4bd24304edd566adb5c1e9daa4089… [all …]
|
| /freebsd/crypto/openssh/ |
| H A D | monitor_wrap.c | 100 if ((r = sshbuf_put_u32(log_msg, 0)) != 0 || /* length; filled below */ in mm_log_handler() 101 (r = sshbuf_put_u32(log_msg, level)) != 0 || in mm_log_handler() 102 (r = sshbuf_put_u32(log_msg, forced)) != 0 || in mm_log_handler() 103 (r = sshbuf_put_cstring(log_msg, msg)) != 0) in mm_log_handler() 105 if ((len = sshbuf_len(log_msg)) < 4 || len > 0xffffffff) in mm_log_handler() 121 while (waitpid(pmonitor->m_pid, &status, 0) == -1) { in mm_reap() 128 if (WEXITSTATUS(status) != 0) { in mm_reap() 139 error_f("preauth child terminated abnormally (status=0x%x)", in mm_reap() 146 mm_request_send(int sock, enum monitor_reqtype type, struct sshbuf *m) in mm_request_send() argument 148 size_t mlen = sshbuf_len(m); in mm_request_send() [all …]
|
| /freebsd/sys/crypto/ |
| H A D | sha1.c | 56 static uint32_t _K[] = { 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6 }; 68 #define BCOUNT (ctxt->c.b64[0] / 8) 69 #define W(n) (ctxt->m.b32[(n)]) 72 ctxt->m.b8[(COUNT % 64)] = (x); \ 75 ctxt->c.b64[0] += 8; \ 76 if (COUNT % 64 == 0) \ 81 ctxt->m.b8[(COUNT % 64)] = (x); \ 84 if (COUNT % 64 == 0) \ 99 bcopy(&ctxt->m.b8[0], &tctxt.m.b8[0], 64); in sha1_step() 100 ctxt->m.b8[0] = tctxt.m.b8[3]; ctxt->m.b8[1] = tctxt.m.b8[2]; in sha1_step() [all …]
|
| /freebsd/sys/kern/ |
| H A D | uipc_mbuf.c | 170 &m_defragpackets, 0, ""); 172 &m_defragbytes, 0, ""); 174 &m_defraguseless, 0, ""); 176 &m_defragfailure, 0, ""); 178 &m_defragrandomfailures, 0, ""); 192 CTASSERT(offsetof(struct mbuf, m_dat) % 8 == 0); 193 CTASSERT(offsetof(struct mbuf, m_pktdat) % 8 == 0); 234 * Attach the cluster from *m to *n, set up m_ext in *n 238 mb_dupcl(struct mbuf *n, struct mbuf *m) in mb_dupcl() argument 242 KASSERT(m->m_flags & (M_EXT | M_EXTPG), in mb_dupcl() [all …]
|
| H A D | kern_mutex.c | 93 #define mtx_unowned(m) ((m)->mtx_lock == MTX_UNOWNED) argument 95 #define mtx_destroyed(m) ((m)->mtx_lock == MTX_DESTROYED) argument 152 0, ""); 154 0, ""); 170 &mtx_spin_delay.base, 0, ""); 172 &mtx_spin_delay.max, 0, ""); 240 struct mtx *m; in unlock_mtx() local 242 m = (struct mtx *)lock; in unlock_mtx() 243 mtx_assert(m, MA_OWNED | MA_NOTRECURSED); in unlock_mtx() 244 mtx_unlock(m); in unlock_mtx() [all …]
|
| H A D | uipc_sockbuf.c | 74 static void sbcompress_ktls_rx(struct sockbuf *sb, struct mbuf *m, 84 sbm_clrprotoflags(struct mbuf *m, int flags) in sbm_clrprotoflags() argument 91 while (m) { in sbm_clrprotoflags() 92 m->m_flags &= mask; in sbm_clrprotoflags() 93 m = m->m_next; in sbm_clrprotoflags() 109 struct mbuf *m, *n; in sbready_compress() local 114 if ((sb->sb_flags & SB_NOCOALESCE) != 0) in sbready_compress() 117 for (m = m0; m != end; m = m->m_next) { in sbready_compress() 118 MPASS((m->m_flags & M_NOTREADY) == 0); in sbready_compress() 121 * socket buffer and 'm' is the new mbuf being copied in sbready_compress() [all …]
|
| H A D | kern_mbuf.c | 126 error = sysctl_handle_int(oidp, &extpg, 0, req); in sysctl_mb_use_ext_pgs() 127 if (error == 0 && req->newptr != NULL) { in sysctl_mb_use_ext_pgs() 128 if (extpg != 0 && !PMAP_HAS_DMAP) in sysctl_mb_use_ext_pgs() 131 mb_use_ext_pgs = extpg != 0; in sysctl_mb_use_ext_pgs() 137 &mb_use_ext_pgs, 0, sysctl_mb_use_ext_pgs, "IU", 142 SYSCTL_QUAD(_kern_ipc, OID_AUTO, maxmbufmem, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &maxmbufmem, 0, 170 if (nmbclusters == 0) in tunable_mbinit() 174 if (nmbjumbop == 0) in tunable_mbinit() 178 if (nmbjumbo9 == 0) in tunable_mbinit() 182 if (nmbjumbo16 == 0) in tunable_mbinit() [all …]
|
| /freebsd/sys/contrib/openzfs/scripts/ |
| H A D | zfs-tests-color.sh | 7 -e 's/\] \[PASS\]$/] [\x1b[92mPASS\x1b[0m]/' \ 8 -e 's/\] \[FAIL\]$/] [\x1b[1;91mFAIL\x1b[0m]/' \ 9 -e 's/\] \[KILLED\]$/] [\x1b[1;101mKILLED\x1b[0m]/' \ 10 -e 's/\] \[SKIP\]$/] [\x1b[1mSKIP\x1b[0m]/' \ 11 -e 's/\] \[RERAN\]$/] [\x1b[1;93mRERAN\x1b[0m]/' \ 12 -e 's/^\(PASS\W\)/\x1b[92m\1\x1b[0m/' \ 13 -e 's/^\(FAIL\W\)/\x1b[1;91m\1\x1b[0m/' \ 14 -e 's/^\(KILLED\W\)/\x1b[1;101m\1\x1b[0m/' \ 15 -e 's/^\(SKIP\W\)/\x1b[1m\1\x1b[0m/' \ 16 -e 's/^\(RERAN\W\)/\x1b[1;93m\1\x1b[0m/' \ [all …]
|
| /freebsd/crypto/openssl/test/recipes/04-test_pem_reading_data/ |
| H A D | cert-onecolumn.pem | 2 M 40 0 65 M 75 m 85 0 93 M 103 m 113 0 121 0 190 M [all …]
|
| /freebsd/lib/libmixer/ |
| H A D | mixer.c | 48 if (ioctl(dev->parent_mixer->fd, MIXER_READ(dev->devno), &v) < 0) in _mixer_readvol() 50 dev->vol.left = MIX_VOLNORM(v & 0x00ff); in _mixer_readvol() 51 dev->vol.right = MIX_VOLNORM((v >> 8) & 0x00ff); in _mixer_readvol() 53 return (0); in _mixer_readvol() 67 struct mixer *m = NULL; in mixer_open() local 72 if ((m = calloc(1, sizeof(struct mixer))) == NULL) in mixer_open() 77 if (strncmp(name, BASEPATH, strlen(BASEPATH)) != 0) { in mixer_open() 78 m->unit = -1; in mixer_open() 81 if (strncmp(name, BASEPATH, strlen(name)) == 0) in mixer_open() 83 m->unit = strtol(name + strlen(BASEPATH), NULL, 10); in mixer_open() [all …]
|
| /freebsd/contrib/smbfs/lib/smb/ |
| H A D | mbuf.c | 52 struct mbuf *m; in m_get() local 57 m = malloc(M_BASESIZE + len); in m_get() 58 if (m == NULL) in m_get() 60 bzero(m, M_BASESIZE + len); in m_get() 61 m->m_maxlen = len; in m_get() 62 m->m_data = M_TOP(m); in m_get() 63 *mpp = m; in m_get() 64 return 0; in m_get() 68 m_free(struct mbuf *m) in m_free() argument 70 free(m); in m_free() [all …]
|
| /freebsd/crypto/heimdal/lib/krb5/ |
| H A D | mcache.c | 69 krb5_mcache *m, *m_c; in mcc_alloc() local 70 int ret = 0; in mcc_alloc() 72 ALLOC(m, 1); in mcc_alloc() 73 if(m == NULL) in mcc_alloc() 76 ret = asprintf(&m->name, "%p", m); in mcc_alloc() 78 m->name = strdup(name); in mcc_alloc() 79 if(ret < 0 || m->name == NULL) { in mcc_alloc() 80 free(m); in mcc_alloc() 86 if (strcmp(m->name, m_c->name) == 0) in mcc_alloc() 89 free(m->name); in mcc_alloc() [all …]
|
| /freebsd/crypto/krb5/src/lib/crypto/builtin/sha2/ |
| H A D | sha512.c | 56 #define A m->counter[0] 57 #define B m->counter[1] 58 #define C m->counter[2] 59 #define D m->counter[3] 60 #define E m->counter[4] 61 #define F m->counter[5] 62 #define G m->counter[6] 63 #define H m->counter[7] 66 0x428a2f98d728ae22ULL, 0x7137449123ef65cdULL, 67 0xb5c0fbcfec4d3b2fULL, 0xe9b5dba58189dbbcULL, [all …]
|
| /freebsd/sys/dev/mlx5/mlx5_en/ |
| H A D | en.h | 84 #define MLX5E_PARAMS_MINIMUM_LOG_SQ_SIZE 0x7 85 #define MLX5E_PARAMS_DEFAULT_LOG_SQ_SIZE 0xa 86 #define MLX5E_PARAMS_MAXIMUM_LOG_SQ_SIZE 0xe 88 #define MLX5E_PARAMS_MINIMUM_LOG_RQ_SIZE 0x7 89 #define MLX5E_PARAMS_DEFAULT_LOG_RQ_SIZE 0xa 90 #define MLX5E_PARAMS_MAXIMUM_LOG_RQ_SIZE 0xe 102 #define MLX5E_PARAMS_DEFAULT_RX_CQ_MODERATION_USEC 0x10 103 #define MLX5E_PARAMS_DEFAULT_RX_CQ_MODERATION_USEC_FROM_CQE 0x3 104 #define MLX5E_PARAMS_DEFAULT_RX_CQ_MODERATION_PKTS 0x20 105 #define MLX5E_PARAMS_DEFAULT_TX_CQ_MODERATION_USEC 0x10 [all …]
|