| /freebsd/contrib/libarchive/libarchive/test/ |
| 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, ae)); in test_exclusion_mbs() 58 assertEqualInt(0, archive_match_path_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() 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, a 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...] |
| 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() 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() 57 assertEqualInt(1, archive_match_excluded(m, ae)); in test_newer_time() 62 assertEqualInt(0, archive_match_time_excluded(m, ae)); in test_newer_time() 63 assertEqualInt(0, archive_match_excluded(m, ae)); in test_newer_time() [all …]
|
| /freebsd/sys/dev/sound/midi/ |
| H A D | midi.c | 109 struct snd_midi *m; in midi_init() local 114 m = malloc(sizeof(*m), M_MIDI, M_WAITOK | M_ZERO); in midi_init() 115 kobj_init((kobj_t)m, cls); in midi_init() 116 inqsize = MPU_INQSIZE(m, cookie); in midi_init() 117 outqsize = MPU_OUTQSIZE(m, cookie); in midi_init() 122 mtx_init(&m->lock, "raw midi", NULL, 0); in midi_init() 129 mtx_lock(&m->lock); in midi_init() 131 m->hiwat = outqsize / 2; in midi_init() 133 MIDIQ_INIT(m->inq, ibuf, inqsize); in midi_init() 134 MIDIQ_INIT(m->outq, obuf, outqsize); in midi_init() [all …]
|
| H A D | mpu401.c | 57 #define CMD(m,d) MPUFOI_WRITE(m, m->cookie, MPU_CMDPORT,d) argument 58 #define STATUS(m) MPUFOI_READ(m, m->cookie, MPU_STATPORT) argument 59 #define READ(m) MPUFOI_READ(m, m->cookie, MPU_DATAPORT) argument 60 #define WRITE(m,d) MPUFOI_WRITE(m, m->cookie, MPU_DATAPORT,d) argument 71 static void mpu401_timeout(void *m); 94 struct mpu401 *m = (struct mpu401 *)a; in mpu401_timeout() local 96 if (m->si) in mpu401_timeout() 97 (m->si)(m->cookie); in mpu401_timeout() 101 mpu401_intr(struct mpu401 *m) in mpu401_intr() argument 108 #define RXRDY(m) ( (STATUS(m) & MPU_INPUTBUSY) == 0) in mpu401_intr() argument [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() 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() 118 pritem = &m->pritems[abs]; in build_privatemenu() 121 m->pritems[abs].on = false; in build_privatemenu() 123 m->pritems[abs].on = onetrue ? false : item->on; in build_privatemenu() 124 if (m->pritems[abs].on) in build_privatemenu() [all …]
|
| /freebsd/sys/vm/ |
| H A D | vm_page.c | 180 static void vm_page_alloc_check(vm_page_t m); 182 static bool _vm_page_busy_sleep(vm_object_t obj, vm_page_t m, 184 static void vm_page_clear_dirty_mask(vm_page_t m, vm_page_bits_t pagebits); 185 static void vm_page_enqueue(vm_page_t m, uint8_t queue); 186 static bool vm_page_free_prep(vm_page_t m); 187 static void vm_page_free_toq(vm_page_t m); 189 static void vm_page_insert_radixdone(vm_page_t m, vm_object_t object); 190 static void vm_page_mvqueue(vm_page_t m, const uint8_t queue, 194 static void vm_page_release_toq(vm_page_t m, uint8_t nqueue, bool noreuse); 346 vm_page_t m; in vm_page_blacklist_add() local [all …]
|
| H A D | vm_page.h | 556 void vm_page_advise(vm_page_t m, int advice); 577 void vm_page_bits_set(vm_page_t m, vm_page_bits_t *bits, vm_page_bits_t set); 579 bool vm_page_busy_acquire(vm_page_t m, int allocflags); 580 void vm_page_busy_downgrade(vm_page_t m); 581 int vm_page_busy_tryupgrade(vm_page_t m); 582 bool vm_page_busy_sleep(vm_page_t m, const char *msg, int allocflags); 583 void vm_page_busy_sleep_unlocked(vm_object_t obj, vm_page_t m, 585 void vm_page_deactivate(vm_page_t m); 586 void vm_page_deactivate_noreuse(vm_page_t m); 587 void vm_page_dequeue(vm_page_t m); [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/sys/dev/mlx5/mlx5_en/ |
| H A D | en.h | 168 #define MLX5E_VPORT_STATS(m) \ argument 170 m(+1, u64, rx_packets, "rx_packets", "Received packets") \ 171 m(+1, u64, rx_bytes, "rx_bytes", "Received bytes") \ 172 m(+1, u64, tx_packets, "tx_packets", "Transmitted packets") \ 173 m(+1, u64, tx_bytes, "tx_bytes", "Transmitted bytes") \ 174 m(+1, u64, rx_error_packets, "rx_error_packets", "Received error packets") \ 175 m(+1, u64, rx_error_bytes, "rx_error_bytes", "Received error bytes") \ 176 m(+1, u64, tx_error_packets, "tx_error_packets", "Transmitted error packets") \ 177 m(+1, u64, tx_error_bytes, "tx_error_bytes", "Transmitted error bytes") \ 178 m(+1, u64, rx_unicast_packets, "rx_unicast_packets", "Received unicast packets") \ [all …]
|
| /freebsd/sys/kern/ |
| 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 117 for (m = m0; m != end; m = m->m_next) { in sbready_compress() 118 MPASS((m->m_flags & M_NOTREADY) == 0); in sbready_compress() 127 n = m->m_next; in sbready_compress() 130 if ((n != NULL) && (n != end) && (m->m_flags & M_EOR) == 0 && in sbready_compress() [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 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() 251 struct mtx *m; in unlock_spin() local 253 m = (struct mtx *)lock; in unlock_spin() 254 mtx_assert(m, MA_OWNED | MA_NOTRECURSED); in unlock_spin() 255 mtx_unlock_spin(m); in unlock_spin() [all …]
|
| H A D | uipc_mbuf.c | 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() 243 ("%s: M_EXT | M_EXTPG not set on %p", __func__, m)); in mb_dupcl() 259 if (m->m_flags & M_EXTPG) { in mb_dupcl() 260 bcopy(&m->m_epg_startcopy, &n->m_epg_startcopy, in mb_dupcl() 262 bcopy(&m->m_ext, &n->m_ext, m_epg_ext_copylen); in mb_dupcl() 263 } else if (m->m_ext.ext_type == EXT_EXTREF) in mb_dupcl() 264 bcopy(&m->m_ext, &n->m_ext, sizeof(struct m_ext)); in mb_dupcl() 266 bcopy(&m->m_ext, &n->m_ext, m_ext_copylen); in mb_dupcl() 268 n->m_flags |= m->m_flags & (M_RDONLY | M_EXT | M_EXTPG); in mb_dupcl() [all …]
|
| H A D | kern_mbuf.c | 438 struct mbuf *m; in dn_buf_import() local 444 m = mbufq_dequeue(q); in dn_buf_import() 445 if (m == NULL) in dn_buf_import() 447 trash_init(m, q == &dn_mbufq ? MSIZE : dn_clsize, flags); in dn_buf_import() 448 store[i] = m; in dn_buf_import() 459 struct mbuf *m; in dn_buf_release() local 465 m = store[i]; in dn_buf_release() 466 (void)mbufq_enqueue(q, m); in dn_buf_release() 474 struct mbuf *m; in dn_pack_import() local 479 m = m_get(M_NOWAIT, MT_DATA); in dn_pack_import() [all …]
|
| /freebsd/contrib/wpa/src/eap_peer/ |
| H A D | 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/contrib/googletest/googlemock/include/gmock/ |
| H A D | 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/sys/crypto/ |
| H A D | sha1.c | 69 #define W(n) (ctxt->m.b32[(n)]) 72 ctxt->m.b8[(COUNT % 64)] = (x); \ 81 ctxt->m.b8[(COUNT % 64)] = (x); \ 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() 101 ctxt->m.b8[2] = tctxt.m.b8[1]; ctxt->m.b8[3] = tctxt.m.b8[0]; in sha1_step() 102 ctxt->m.b8[4] = tctxt.m.b8[7]; ctxt->m.b8[5] = tctxt.m.b8[6]; in sha1_step() 103 ctxt->m.b8[6] = tctxt.m.b8[5]; ctxt->m.b8[7] = tctxt.m.b8[4]; in sha1_step() 104 ctxt->m.b8[8] = tctxt.m.b8[11]; ctxt->m.b8[9] = tctxt.m.b8[10]; in sha1_step() 105 ctxt->m.b8[10] = tctxt.m.b8[9]; ctxt->m.b8[11] = tctxt.m.b8[8]; in sha1_step() [all …]
|
| /freebsd/lib/libmixer/ |
| H A D | mixer.c | 65 struct mixer *m = NULL; in mixer_open() local 70 if ((m = calloc(1, sizeof(struct mixer))) == NULL) in mixer_open() 76 m->unit = -1; in mixer_open() 81 m->unit = strtol(name + strlen(BASEPATH), NULL, 10); in mixer_open() 83 (void)strlcpy(m->name, name, sizeof(m->name)); in mixer_open() 86 if ((m->unit = mixer_get_dunit()) < 0) in mixer_open() 88 (void)snprintf(m->name, sizeof(m->name), BASEPATH "%d", m->unit); in mixer_open() 91 if ((m->fd = open(m->name, O_RDWR)) < 0) in mixer_open() 94 m->devmask = m->recmask = m->recsrc = 0; in mixer_open() 95 m->f_default = m->unit == mixer_get_dunit(); in mixer_open() [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/sys/ |
| H A D | mbuf.h | 108 #define mtod(m, t) ((t)((m)->m_data)) argument 109 #define mtodo(m, o) ((void *)(((m)->m_data) + (o))) argument 415 m_epg_pagelen(const struct mbuf *m, int pidx, int pgoff) in m_epg_pagelen() argument 419 ("page %d with non-zero offset %d in %p", pidx, pgoff, m)); in m_epg_pagelen() 421 if (pidx == m->m_epg_npgs - 1) { in m_epg_pagelen() 422 return (m->m_epg_last_len); in m_epg_pagelen() 431 m, __FILE__, __LINE__)) 436 #define MBUF_EXT_PGS_ASSERT_SANITY(m) do { \ argument 437 MCHECK(m->m_epg_npgs > 0, "no valid pages"); \ 438 MCHECK(m->m_epg_npgs <= nitems(m->m_epg_pa), \ [all …]
|
| /freebsd/sys/dev/sound/pcm/ |
| H A D | mixer.c | 111 mixer_set_softpcmvol(struct snd_mixer *m, struct snddev_info *d, in mixer_set_softpcmvol() argument 120 if (mtx_owned(&m->lock)) in mixer_set_softpcmvol() 137 MIXER_SET_UNLOCK(m, dropmtx); in mixer_set_softpcmvol() 150 MIXER_SET_LOCK(m, dropmtx); in mixer_set_softpcmvol() 156 mixer_set_eq(struct snd_mixer *m, struct snddev_info *d, in mixer_set_eq() argument 173 if (mtx_owned(&m->lock)) in mixer_set_eq() 190 MIXER_SET_UNLOCK(m, dropmtx); in mixer_set_eq() 202 MIXER_SET_LOCK(m, dropmtx); in mixer_set_eq() 208 mixer_set(struct snd_mixer *m, u_int dev, u_int32_t muted, u_int lev) in mixer_set() argument 216 if (m == NULL || dev >= SOUND_MIXER_NRDEVICES || in mixer_set() [all …]
|
| /freebsd/crypto/openssh/ |
| H A D | monitor_wrap.c | 151 mm_request_send(int sock, enum monitor_reqtype type, struct sshbuf *m) in mm_request_send() argument 153 size_t mlen = sshbuf_len(m); in mm_request_send() 163 atomicio(vwrite, sock, sshbuf_mutable_ptr(m), mlen) != mlen) { in mm_request_send() 174 mm_request_receive(int sock, struct sshbuf *m) in mm_request_receive() argument 193 sshbuf_reset(m); in mm_request_receive() 194 if ((r = sshbuf_reserve(m, msg_len, &p)) != 0) in mm_request_receive() 206 mm_request_receive_expect(int sock, enum monitor_reqtype type, struct sshbuf *m) in mm_request_receive_expect() argument 213 mm_request_receive(sock, m); in mm_request_receive_expect() 214 if ((r = sshbuf_get_u8(m, &rtype)) != 0) in mm_request_receive_expect() 227 struct sshbuf *m; in mm_choose_dh() local [all …]
|
| /freebsd/contrib/less/ |
| H A D | mark.c | 53 static void cmark(struct mark *m, IFILE ifile, POSITION pos, int ln) in cmark() argument 55 m->m_ifile = ifile; in cmark() 56 m->m_scrpos.pos = pos; in cmark() 57 m->m_scrpos.ln = ln; in cmark() 58 if (m->m_filename != NULL) in cmark() 60 free(m->m_filename); in cmark() 61 m->m_filename = NULL; in cmark() 80 static void mark_clear(struct mark *m) in mark_clear() argument 82 m->m_scrpos.pos = NULL_POSITION; in mark_clear() 85 static lbool mark_is_set(struct mark *m) in mark_is_set() argument [all …]
|
| /freebsd/tools/test/stress2/misc/ |
| H A D | backingstore.sh | 38 m=$mdstart 40 mount | grep "$mntpoint" | grep -q md$m && umount $mntpoint$m 41 mdconfig -l | grep -q md$m && mdconfig -d -u $m 43 dd if=/dev/zero of=$D$m bs=100m count=1 status=none || exit 1 45 mdconfig -a -t vnode -f $D$m -u $m 47 newfs md${m} > /dev/null 2>&1 48 [ -d $mntpoint$m ] || mkdir -p $mntpoint$m 49 mount $opt /dev/md$m $mntpoint$m 51 n=$m 52 m=$((m + 1)) [all …]
|
| /freebsd/contrib/wpa/src/eap_server/ |
| H A D | 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 …]
|