| /freebsd-13-stable/contrib/libarchive/libarchive/test/ |
| HD | test_archive_match_path.c | 32 struct archive *m; in test_exclusion_mbs() local 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, ae)); in test_exclusion_mbs() 58 assertEqualInt(0, archive_match_path_excluded(m, ae)); in test_exclusion_mbs() 59 assertEqualInt(0, archive_match_excluded(m, ae)); in test_exclusion_mbs() [all …]
|
| HD | test_archive_match_owner.c | 32 struct archive *m; in test_uid() local 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() 46 assertEqualInt(1, archive_match_owner_excluded(m, ae)); in test_uid() 47 assertEqualInt(1, archive_match_excluded(m, ae)); in test_uid() 50 assertEqualInt(0, archive_match_owner_excluded(m, ae)); in test_uid() 51 assertEqualInt(0, archive_match_excluded(m, ae)); in test_uid() 54 assertEqualInt(1, archive_match_owner_excluded(m, ae)); in test_uid() [all …]
|
| HD | test_archive_match_time.c | 35 struct archive *m; in test_newer_time() local 37 if (!assert((m = archive_match_new()) != NULL)) in test_newer_time() 40 archive_match_free(m); in test_newer_time() 44 assertEqualIntA(m, 0, archive_match_include_time(m, in test_newer_time() 52 assertEqualInt(1, archive_match_time_excluded(m, ae)); in test_newer_time() 53 assertEqualInt(1, archive_match_excluded(m, ae)); in test_newer_time() 57 assertEqualInt(1, archive_match_time_excluded(m, ae)); in test_newer_time() 58 assertEqualInt(1, archive_match_excluded(m, ae)); in test_newer_time() 63 assertEqualInt(0, archive_match_time_excluded(m, ae)); in test_newer_time() 64 assertEqualInt(0, archive_match_excluded(m, ae)); in test_newer_time() [all …]
|
| /freebsd-13-stable/sys/dev/sound/midi/ |
| HD | midi.c | 130 struct snd_midi *m; member 281 struct snd_midi *m; in midi_init() local 293 TAILQ_FOREACH(m, &midi_devs, link) { in midi_init() 294 mtx_lock(&m->lock); in midi_init() 296 if (m->unit == unit && m->channel == channel) { in midi_init() 297 mtx_unlock(&m->lock); in midi_init() 304 if (m->unit > i) in midi_init() 305 i = m->unit; in midi_init() 307 mtx_unlock(&m->lock); in midi_init() 314 m = malloc(sizeof(*m), M_MIDI, M_WAITOK | M_ZERO); in midi_init() [all …]
|
| HD | mpu401.c | 69 #define CMD(m,d) MPUFOI_WRITE(m, m->cookie, MPU_CMDPORT,d) argument 70 #define STATUS(m) MPUFOI_READ(m, m->cookie, MPU_STATPORT) argument 71 #define READ(m) MPUFOI_READ(m, m->cookie, MPU_DATAPORT) argument 72 #define WRITE(m,d) MPUFOI_WRITE(m, m->cookie, MPU_DATAPORT,d) argument 83 static void mpu401_timeout(void *m); 112 struct mpu401 *m = (struct mpu401 *)a; in mpu401_timeout() local 114 if (m->si) in mpu401_timeout() 115 (m->si)(m->cookie); in mpu401_timeout() 119 mpu401_intr(struct mpu401 *m) in mpu401_intr() argument 129 #define RXRDY(m) ( (STATUS(m) & MPU_INPUTBUSY) == 0) in mpu401_intr() argument [all …]
|
| /freebsd-13-stable/sys/vm/ |
| HD | vm_page.c | 167 static void vm_page_alloc_check(vm_page_t m); 168 static bool _vm_page_busy_sleep(vm_object_t obj, vm_page_t m, 170 static void vm_page_clear_dirty_mask(vm_page_t m, vm_page_bits_t pagebits); 171 static void vm_page_enqueue(vm_page_t m, uint8_t queue); 172 static bool vm_page_free_prep(vm_page_t m); 173 static void vm_page_free_toq(vm_page_t m); 175 static int vm_page_insert_after(vm_page_t m, vm_object_t object, 177 static void vm_page_insert_radixdone(vm_page_t m, vm_object_t object, 179 static void vm_page_mvqueue(vm_page_t m, const uint8_t queue, 183 static void vm_page_release_toq(vm_page_t m, uint8_t nqueue, bool noreuse); [all …]
|
| HD | vm_page.h | 371 #define vm_page_lock(m) vm_page_lock_KBI((m), LOCK_FILE, LOCK_LINE) argument 372 #define vm_page_unlock(m) vm_page_unlock_KBI((m), LOCK_FILE, LOCK_LINE) argument 373 #define vm_page_trylock(m) vm_page_trylock_KBI((m), LOCK_FILE, LOCK_LINE) argument 375 #define vm_page_lockptr(m) (PA_LOCKPTR(VM_PAGE_TO_PHYS((m)))) argument 376 #define vm_page_lock(m) mtx_lock(vm_page_lockptr((m))) argument 377 #define vm_page_unlock(m) mtx_unlock(vm_page_lockptr((m))) argument 378 #define vm_page_trylock(m) mtx_trylock(vm_page_lockptr((m))) argument 381 #define vm_page_assert_locked(m) \ argument 382 vm_page_assert_locked_KBI((m), __FILE__, __LINE__) 383 #define vm_page_lock_assert(m, a) \ argument [all …]
|
| /freebsd-13-stable/sys/dev/mlx5/ |
| HD | 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-13-stable/sys/kern/ |
| HD | uipc_sockbuf.c | 73 static void sbcompress_ktls_rx(struct sockbuf *sb, struct mbuf *m, 83 sbm_clrprotoflags(struct mbuf *m, int flags) in sbm_clrprotoflags() argument 90 while (m) { in sbm_clrprotoflags() 91 m->m_flags &= mask; in sbm_clrprotoflags() 92 m = m->m_next; in sbm_clrprotoflags() 108 struct mbuf *m, *n; in sbready_compress() local 116 for (m = m0; m != end; m = m->m_next) { in sbready_compress() 117 MPASS((m->m_flags & M_NOTREADY) == 0); in sbready_compress() 126 n = m->m_next; in sbready_compress() 129 if ((n != NULL) && (n != end) && (m->m_flags & M_EOR) == 0 && in sbready_compress() [all …]
|
| HD | uipc_mbuf.c | 201 mb_dupcl(struct mbuf *n, struct mbuf *m) in mb_dupcl() argument 205 KASSERT(m->m_flags & (M_EXT | M_EXTPG), in mb_dupcl() 206 ("%s: M_EXT | M_EXTPG not set on %p", __func__, m)); in mb_dupcl() 222 if (m->m_flags & M_EXTPG) { in mb_dupcl() 223 bcopy(&m->m_epg_startcopy, &n->m_epg_startcopy, in mb_dupcl() 225 bcopy(&m->m_ext, &n->m_ext, m_epg_ext_copylen); in mb_dupcl() 226 } else if (m->m_ext.ext_type == EXT_EXTREF) in mb_dupcl() 227 bcopy(&m->m_ext, &n->m_ext, sizeof(struct m_ext)); in mb_dupcl() 229 bcopy(&m->m_ext, &n->m_ext, m_ext_copylen); in mb_dupcl() 231 n->m_flags |= m->m_flags & (M_RDONLY | M_EXT | M_EXTPG); in mb_dupcl() [all …]
|
| HD | 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 222 struct mtx *m; in unlock_mtx() local 224 m = (struct mtx *)lock; in unlock_mtx() 225 mtx_assert(m, MA_OWNED | MA_NOTRECURSED); in unlock_mtx() 226 mtx_unlock(m); in unlock_mtx() 233 struct mtx *m; in unlock_spin() local 235 m = (struct mtx *)lock; in unlock_spin() 236 mtx_assert(m, MA_OWNED | MA_NOTRECURSED); in unlock_spin() 237 mtx_unlock_spin(m); in unlock_spin() [all …]
|
| HD | kern_mbuf.c | 445 struct mbuf *m; in dn_buf_import() local 451 m = mbufq_dequeue(q); in dn_buf_import() 452 if (m == NULL) in dn_buf_import() 454 trash_init(m, q == &dn_mbufq ? MSIZE : dn_clsize, flags); in dn_buf_import() 455 store[i] = m; in dn_buf_import() 466 struct mbuf *m; in dn_buf_release() local 472 m = store[i]; in dn_buf_release() 473 (void)mbufq_enqueue(q, m); in dn_buf_release() 481 struct mbuf *m; in dn_pack_import() local 486 m = m_get(M_NOWAIT, MT_DATA); in dn_pack_import() [all …]
|
| /freebsd-13-stable/sys/dev/mlx5/mlx5_en/ |
| HD | en.h | 171 #define MLX5E_VPORT_STATS(m) \ argument 173 m(+1, u64, rx_packets, "rx_packets", "Received packets") \ 174 m(+1, u64, rx_bytes, "rx_bytes", "Received bytes") \ 175 m(+1, u64, tx_packets, "tx_packets", "Transmitted packets") \ 176 m(+1, u64, tx_bytes, "tx_bytes", "Transmitted bytes") \ 177 m(+1, u64, rx_error_packets, "rx_error_packets", "Received error packets") \ 178 m(+1, u64, rx_error_bytes, "rx_error_bytes", "Received error bytes") \ 179 m(+1, u64, tx_error_packets, "tx_error_packets", "Transmitted error packets") \ 180 m(+1, u64, tx_error_bytes, "tx_error_bytes", "Transmitted error bytes") \ 181 m(+1, u64, rx_unicast_packets, "rx_unicast_packets", "Received unicast packets") \ [all …]
|
| /freebsd-13-stable/contrib/wpa/src/eap_peer/ |
| HD | eap_methods.c | 33 struct eap_method *m; in eap_peer_get_eap_method() local 34 for (m = eap_methods; m; m = m->next) { in eap_peer_get_eap_method() 35 if (m->vendor == vendor && m->method == method) in eap_peer_get_eap_method() 36 return m; in eap_peer_get_eap_method() 53 struct eap_method *m; in eap_peer_get_type() local 54 for (m = eap_methods; m; m = m->next) { in eap_peer_get_type() 55 if (os_strcmp(m->name, name) == 0) { in eap_peer_get_type() 56 *vendor = m->vendor; in eap_peer_get_type() 57 return m->method; in eap_peer_get_type() 76 struct eap_method *m; in eap_get_name() local [all …]
|
| /freebsd-13-stable/sys/dev/sound/pcm/ |
| HD | mixer.c | 150 mixer_set_softpcmvol(struct snd_mixer *m, struct snddev_info *d, in mixer_set_softpcmvol() argument 159 if (mtx_owned(m->lock)) in mixer_set_softpcmvol() 176 MIXER_SET_UNLOCK(m, dropmtx); in mixer_set_softpcmvol() 189 MIXER_SET_LOCK(m, dropmtx); in mixer_set_softpcmvol() 195 mixer_set_eq(struct snd_mixer *m, struct snddev_info *d, in mixer_set_eq() argument 212 if (mtx_owned(m->lock)) in mixer_set_eq() 229 MIXER_SET_UNLOCK(m, dropmtx); in mixer_set_eq() 241 MIXER_SET_LOCK(m, dropmtx); in mixer_set_eq() 247 mixer_set(struct snd_mixer *m, u_int dev, u_int32_t muted, u_int lev) in mixer_set() argument 255 if (m == NULL || dev >= SOUND_MIXER_NRDEVICES || in mixer_set() [all …]
|
| /freebsd-13-stable/contrib/googletest/googlemock/include/gmock/ |
| HD | gmock-function-mocker.h | 357 #define MOCK_METHOD0(m, ...) GMOCK_INTERNAL_MOCK_METHODN(, , m, 0, __VA_ARGS__) argument 358 #define MOCK_METHOD1(m, ...) GMOCK_INTERNAL_MOCK_METHODN(, , m, 1, __VA_ARGS__) argument 359 #define MOCK_METHOD2(m, ...) GMOCK_INTERNAL_MOCK_METHODN(, , m, 2, __VA_ARGS__) argument 360 #define MOCK_METHOD3(m, ...) GMOCK_INTERNAL_MOCK_METHODN(, , m, 3, __VA_ARGS__) argument 361 #define MOCK_METHOD4(m, ...) GMOCK_INTERNAL_MOCK_METHODN(, , m, 4, __VA_ARGS__) argument 362 #define MOCK_METHOD5(m, ...) GMOCK_INTERNAL_MOCK_METHODN(, , m, 5, __VA_ARGS__) argument 363 #define MOCK_METHOD6(m, ...) GMOCK_INTERNAL_MOCK_METHODN(, , m, 6, __VA_ARGS__) argument 364 #define MOCK_METHOD7(m, ...) GMOCK_INTERNAL_MOCK_METHODN(, , m, 7, __VA_ARGS__) argument 365 #define MOCK_METHOD8(m, ...) GMOCK_INTERNAL_MOCK_METHODN(, , m, 8, __VA_ARGS__) argument 366 #define MOCK_METHOD9(m, ...) GMOCK_INTERNAL_MOCK_METHODN(, , m, 9, __VA_ARGS__) argument [all …]
|
| /freebsd-13-stable/sys/crypto/ |
| HD | sha1.c | 70 #define W(n) (ctxt->m.b32[(n)]) 73 ctxt->m.b8[(COUNT % 64)] = (x); \ 82 ctxt->m.b8[(COUNT % 64)] = (x); \ 100 bcopy(&ctxt->m.b8[0], &tctxt.m.b8[0], 64); in sha1_step() 101 ctxt->m.b8[0] = tctxt.m.b8[3]; ctxt->m.b8[1] = tctxt.m.b8[2]; in sha1_step() 102 ctxt->m.b8[2] = tctxt.m.b8[1]; ctxt->m.b8[3] = tctxt.m.b8[0]; in sha1_step() 103 ctxt->m.b8[4] = tctxt.m.b8[7]; ctxt->m.b8[5] = tctxt.m.b8[6]; in sha1_step() 104 ctxt->m.b8[6] = tctxt.m.b8[5]; ctxt->m.b8[7] = tctxt.m.b8[4]; in sha1_step() 105 ctxt->m.b8[8] = tctxt.m.b8[11]; ctxt->m.b8[9] = tctxt.m.b8[10]; in sha1_step() 106 ctxt->m.b8[10] = tctxt.m.b8[9]; ctxt->m.b8[11] = tctxt.m.b8[8]; in sha1_step() [all …]
|
| /freebsd-13-stable/lib/libthr/thread/ |
| HD | 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-13-stable/sys/sys/ |
| HD | mbuf.h | 112 #define mtod(m, t) ((t)((m)->m_data)) argument 113 #define mtodo(m, o) ((void *)(((m)->m_data) + (o))) argument 400 m_epg_pagelen(const struct mbuf *m, int pidx, int pgoff) in m_epg_pagelen() argument 404 ("page %d with non-zero offset %d in %p", pidx, pgoff, m)); in m_epg_pagelen() 406 if (pidx == m->m_epg_npgs - 1) { in m_epg_pagelen() 407 return (m->m_epg_last_len); in m_epg_pagelen() 416 m, __FILE__, __LINE__)) 421 #define MBUF_EXT_PGS_ASSERT_SANITY(m) do { \ argument 422 MCHECK(m->m_epg_npgs > 0, "no valid pages"); \ 423 MCHECK(m->m_epg_npgs <= nitems(m->m_epg_pa), \ [all …]
|
| /freebsd-13-stable/contrib/bmake/ |
| HD | bmake.cat1 | 3 [1mNAME[0m 4 [1mbmake [22m-- maintain program dependencies 6 [1mSYNOPSIS[0m 7 …[1mbmake [22m[[1m-BeikNnqrSstWwX[22m] [[1m-C [4m[22mdirectory[24m] [[1m-D [4m[22mvariab… 8 …[[1m-f [4m[22mmakefile[24m] [[1m-I [4m[22mdirectory[24m] [[1m-J [4m[22mprivate[24m] [… 9 …[[1m-m [4m[22mdirectory[24m] [[1m-T [4m[22mfile[24m] [[1m-V [4m[22mvariable[24m] [[1m… 10 [[4mvariable=value[24m] [[4mtarget[24m [4m...[24m] 12 [1mDESCRIPTION[0m 15 programs and other files depend. If no [1m-f [4m[22mmakefile[24m makefile option is 16 …given, [1mbmake [22mwill try to open `[4mmakefile[24m' then `[4mMakefile[24m' in order to fi… [all …]
|
| /freebsd-13-stable/crypto/openssh/ |
| HD | monitor_wrap.c | 156 mm_request_send(int sock, enum monitor_reqtype type, struct sshbuf *m) in mm_request_send() argument 158 size_t mlen = sshbuf_len(m); in mm_request_send() 168 atomicio(vwrite, sock, sshbuf_mutable_ptr(m), mlen) != mlen) { in mm_request_send() 179 mm_request_receive(int sock, struct sshbuf *m) in mm_request_receive() argument 198 sshbuf_reset(m); in mm_request_receive() 199 if ((r = sshbuf_reserve(m, msg_len, &p)) != 0) in mm_request_receive() 211 mm_request_receive_expect(int sock, enum monitor_reqtype type, struct sshbuf *m) in mm_request_receive_expect() argument 218 mm_request_receive(sock, m); in mm_request_receive_expect() 219 if ((r = sshbuf_get_u8(m, &rtype)) != 0) in mm_request_receive_expect() 232 struct sshbuf *m; in mm_choose_dh() local [all …]
|
| /freebsd-13-stable/contrib/wpa/src/eap_server/ |
| HD | eap_server_methods.c | 28 struct eap_method *m; in eap_server_get_eap_method() local 29 for (m = eap_methods; m; m = m->next) { in eap_server_get_eap_method() 30 if (m->vendor == vendor && m->method == method) in eap_server_get_eap_method() 31 return m; in eap_server_get_eap_method() 48 struct eap_method *m; in eap_server_get_type() local 49 for (m = eap_methods; m; m = m->next) { in eap_server_get_type() 50 if (os_strcmp(m->name, name) == 0) { in eap_server_get_type() 51 *vendor = m->vendor; in eap_server_get_type() 52 return m->method; in eap_server_get_type() 110 struct eap_method *m, *last = NULL; in eap_server_method_register() local [all …]
|
| /freebsd-13-stable/sys/net/ |
| HD | ifq.h | 77 #define _IF_ENQUEUE(ifq, m) do { \ argument 78 (m)->m_nextpkt = NULL; \ 80 (ifq)->ifq_head = m; \ 82 (ifq)->ifq_tail->m_nextpkt = m; \ 83 (ifq)->ifq_tail = m; \ 87 #define IF_ENQUEUE(ifq, m) do { \ argument 89 _IF_ENQUEUE(ifq, m); \ 93 #define _IF_PREPEND(ifq, m) do { \ argument 94 (m)->m_nextpkt = (ifq)->ifq_head; \ 96 (ifq)->ifq_tail = (m); \ [all …]
|
| /freebsd-13-stable/contrib/less/ |
| HD | mark.c | 52 static void cmark(struct mark *m, IFILE ifile, POSITION pos, int ln) in cmark() argument 54 m->m_ifile = ifile; in cmark() 55 m->m_scrpos.pos = pos; in cmark() 56 m->m_scrpos.ln = ln; in cmark() 57 if (m->m_filename != NULL) in cmark() 59 free(m->m_filename); in cmark() 60 m->m_filename = NULL; in cmark() 86 static void mark_set_ifile(struct mark *m, IFILE ifile) in mark_set_ifile() argument 88 m->m_ifile = ifile; in mark_set_ifile() 90 free(m->m_filename); in mark_set_ifile() [all …]
|
| /freebsd-13-stable/contrib/nvi/regex/ |
| HD | engine.c | 92 static const RCHAR_T *dissect(struct match *m, const RCHAR_T *start, const RCHAR_T *stop, sopno sta… 93 static const RCHAR_T *backref(struct match *m, const RCHAR_T *start, const RCHAR_T *stop, sopno sta… 94 static const RCHAR_T *fast(struct match *m, const RCHAR_T *start, const RCHAR_T *stop, sopno starts… 95 static const RCHAR_T *slow(struct match *m, const RCHAR_T *start, const RCHAR_T *stop, sopno starts… 104 static void print(struct match *m, char *caption, states st, int ch, FILE *d); 107 static void at(struct match *m, char *title, char *start, char *stop, sopno startst, sopno stopst); 119 #define SP(t, s, c) print(m, t, s, c, stdout) 120 #define AT(t, p1, p2, s1, s2) at(m, t, p1, p2, s1, s2) 121 #define NOTE(str) do { if (m->eflags®_TRACE) printf("=%s\n", (str)); } while(0); 138 struct match *m = &mv; in matcher() local [all …]
|