/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_write_disk_lookup.c | 30 int *mp = d; in group_cleanup() local 31 assertEqualInt(*mp, 0x13579); in group_cleanup() 32 *mp = 0x2468; in group_cleanup() 38 int *mp = d; in group_lookup() local 42 assertEqualInt(*mp, 0x13579); in group_lookup() 51 int *mp = d; in user_cleanup() local 52 assertEqualInt(*mp, 0x1234); in user_cleanup() 53 *mp = 0x2345; in user_cleanup() 59 int *mp = d; in user_lookup() local 63 assertEqualInt(*mp, 0x1234); in user_lookup()
|
H A D | test_read_disk.c | 30 int *mp = d; in gname_cleanup() local 31 assertEqualInt(*mp, 0x13579); in gname_cleanup() 32 *mp = 0x2468; in gname_cleanup() 38 int *mp = d; in gname_lookup() local 39 assertEqualInt(*mp, 0x13579); in gname_lookup() 48 int *mp = d; in uname_cleanup() local 49 assertEqualInt(*mp, 0x1234); in uname_cleanup() 50 *mp = 0x2345; in uname_cleanup() 56 int *mp = d; in uname_lookup() local 57 assertEqualInt(*mp, 0x1234); in uname_lookup()
|
/freebsd/lib/libc/gen/ |
H A D | getcap.c | 783 char *bp, *mp; in cgetstr() local 803 mp = mem; in cgetstr() 833 *mp++ = n; in cgetstr() 837 *mp++ = '\b'; in cgetstr() 840 *mp++ = '\t'; in cgetstr() 852 *mp++ = ESC; in cgetstr() 855 *mp++ = ':'; in cgetstr() 866 *mp++ = *bp++; in cgetstr() 910 char *bp, *mp; in cgetustr() local 929 mp = mem; in cgetustr() [all …]
|
/freebsd/contrib/bearssl/src/rsa/ |
H A D | rsa_i15_priv.c | 41 uint16_t *mp, *mq, *s1, *s2, *t1, *t2, *t3; in br_rsa_i15_private() local 141 mp = mq + 2 * fwlen; in br_rsa_i15_private() 142 memmove(mp, t1, fwlen * sizeof *t1); in br_rsa_i15_private() 156 p0i = br_i15_ninv15(mp[1]); in br_rsa_i15_private() 158 br_i15_decode_reduce(s1, x, xlen, mp); in br_rsa_i15_private() 159 r &= br_i15_modpow_opt(s1, sk->dp, sk->dplen, mp, p0i, in br_rsa_i15_private() 177 br_i15_reduce(t2, s2, mp); in br_rsa_i15_private() 178 br_i15_add(s1, mp, br_i15_sub(s1, t2, 1)); in br_rsa_i15_private() 179 br_i15_to_monty(s1, mp); in br_rsa_i15_private() 180 br_i15_decode_reduce(t1, sk->iq, sk->iqlen, mp); in br_rsa_i15_private() [all …]
|
H A D | rsa_i31_priv.c | 41 uint32_t *mp, *mq, *s1, *s2, *t1, *t2, *t3; in br_rsa_i31_private() local 135 mp = mq + 2 * fwlen; in br_rsa_i31_private() 136 memmove(mp, t1, fwlen * sizeof *t1); in br_rsa_i31_private() 150 p0i = br_i31_ninv31(mp[1]); in br_rsa_i31_private() 152 br_i31_decode_reduce(s1, x, xlen, mp); in br_rsa_i31_private() 153 r &= br_i31_modpow_opt(s1, sk->dp, sk->dplen, mp, p0i, in br_rsa_i31_private() 171 br_i31_reduce(t2, s2, mp); in br_rsa_i31_private() 172 br_i31_add(s1, mp, br_i31_sub(s1, t2, 1)); in br_rsa_i31_private() 173 br_i31_to_monty(s1, mp); in br_rsa_i31_private() 174 br_i31_decode_reduce(t1, sk->iq, sk->iqlen, mp); in br_rsa_i31_private() [all …]
|
H A D | rsa_i62_priv.c | 43 uint32_t *mp, *mq, *s1, *s2, *t1, *t2, *t3; in br_rsa_i62_private() local 137 mp = (uint32_t *)(tmp + 2 * fwlen); in br_rsa_i62_private() 138 memmove(mp, t1, 2 * fwlen * sizeof *t1); in br_rsa_i62_private() 152 p0i = br_i31_ninv31(mp[1]); in br_rsa_i62_private() 154 br_i31_decode_reduce(s1, x, xlen, mp); in br_rsa_i62_private() 155 r &= br_i62_modpow_opt(s1, sk->dp, sk->dplen, mp, p0i, in br_rsa_i62_private() 173 br_i31_reduce(t2, s2, mp); in br_rsa_i62_private() 174 br_i31_add(s1, mp, br_i31_sub(s1, t2, 1)); in br_rsa_i62_private() 175 br_i31_to_monty(s1, mp); in br_rsa_i62_private() 176 br_i31_decode_reduce(t1, sk->iq, sk->iqlen, mp); in br_rsa_i62_private() [all …]
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | zfs_context.h | 270 #define MUTEX_HELD(mp) pthread_equal((mp)->m_owner, pthread_self()) 271 #define MUTEX_NOT_HELD(mp) !MUTEX_HELD(mp) 281 #define mutex_enter_nested(mp, class) mutex_enter(mp) 282 #define mutex_enter_interruptible(mp) mutex_enter_check_return(mp) 338 #define cv_timedwait_io(cv, mp, at) cv_timedwait(cv, mp, at) 339 #define cv_timedwait_idle(cv, mp, at) cv_timedwait(cv, mp, at) 340 #define cv_timedwait_sig(cv, mp, at) cv_timedwait(cv, mp, at) 341 #define cv_wait_io(cv, mp) cv_wait(cv, mp) 342 #define cv_wait_idle(cv, mp) cv_wait(cv, mp) 343 #define cv_wait_io_sig(cv, mp) cv_wait_sig(cv, mp) [all …]
|
/freebsd/sys/geom/raid/ |
H A D | g_raid_ctl.c | 48 g_raid_find_node(struct g_class *mp, const char *name) in g_raid_find_node() argument 56 LIST_FOREACH(gp, &mp->geom, geom) { in g_raid_find_node() 67 LIST_FOREACH(gp, &mp->geom, geom) { in g_raid_find_node() 83 LIST_FOREACH(gp, &mp->geom, geom) { in g_raid_find_node() 98 g_raid_ctl_label(struct gctl_req *req, struct g_class *mp) in g_raid_ctl_label() argument 147 g_raid_ctl_stop(struct gctl_req *req, struct g_class *mp) in g_raid_ctl_stop() argument 168 sc = g_raid_find_node(mp, nodename); in g_raid_ctl_stop() 208 sc = g_raid_find_node(mp, nodename); in g_raid_ctl_other() 242 g_raid_ctl_label(req, mp); in g_raid_ctl() 244 g_raid_ctl_stop(req, mp); in g_raid_ctl() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | mp.h | 72 struct mp { struct 132 extern void mp_Init(struct mp *, struct bundle *); argument 134 extern int mp_Up(struct mp *, struct datalink *); 135 extern void mp_Down(struct mp *); 142 extern void mp_LinkLost(struct mp *, struct datalink *); 143 extern void mp_RestartAutoloadTimer(struct mp *); 144 extern void mp_CheckAutoloadTimer(struct mp *); 145 extern void mp_StopAutoloadTimer(struct mp *); 146 extern size_t mp_QueueLen(struct mp *);
|
/freebsd/usr.bin/mail/ |
H A D | edit.c | 72 struct message *mp; in edit1() local 95 dot = mp = &message[msgvec[i] - 1]; in edit1() 96 touch(mp); in edit1() 98 fp = run_editor(setinput(mp), mp->m_size, type, readonly); in edit1() 102 mp->m_block = blockof(size); in edit1() 103 mp->m_offset = boffsetof(size); in edit1() 104 mp->m_size = (long)fsize(fp); in edit1() 105 mp->m_lines = 0; in edit1() 106 mp->m_flag |= MODIFY; in edit1() 110 mp->m_lines++; in edit1()
|
H A D | lex.c | 608 struct message *mp; in newfileinfo() local 612 for (mp = &message[omsgCount]; mp < &message[msgCount]; mp++) in newfileinfo() 613 if (mp->m_flag & MNEW) in newfileinfo() 615 if (mp >= &message[msgCount]) in newfileinfo() 616 for (mp = &message[omsgCount]; mp < &message[msgCount]; mp++) in newfileinfo() 619 if (mp < &message[msgCount]) in newfileinfo() 620 mdot = mp - &message[0] + 1; in newfileinfo() 624 for (mp = &message[0], n = 0, u = 0; mp < &message[msgCount]; mp++) { in newfileinfo() 625 if (mp->m_flag & MNEW) in newfileinfo() 629 if (mp->m_flag & MDELETED) in newfileinfo() [all …]
|
/freebsd/sys/dev/qlxge/ |
H A D | qls_isr.c | 127 struct mbuf *mp = NULL; in qls_rx_comp() local 161 mp = rxb->m_head; in qls_rx_comp() 164 if (mp == NULL) { in qls_rx_comp() 167 mp->m_flags |= M_PKTHDR; in qls_rx_comp() 168 mp->m_pkthdr.len = cq_e->length; in qls_rx_comp() 169 mp->m_pkthdr.rcvif = ifp; in qls_rx_comp() 170 mp->m_len = cq_e->length; in qls_rx_comp() 178 mp->m_flags |= M_VLANTAG; in qls_rx_comp() 184 m_adj(mp, ETHER_VLAN_ENCAP_LEN); in qls_rx_comp() 194 mp->m_pkthdr.csum_flags = 0; in qls_rx_comp() [all …]
|
/freebsd/contrib/mandoc/ |
H A D | demandoc.c | 46 struct mparse *mp; in main() local 57 mp = NULL; in main() 82 mp = mparse_alloc(MPARSE_SO | MPARSE_UTF8 | MPARSE_LATIN1 | in main() 84 assert(mp); in main() 87 pmandoc(mp, STDIN_FILENO, "<stdin>", list); in main() 90 mparse_reset(mp); in main() 91 if ((fd = mparse_open(mp, argv[i])) == -1) { in main() 95 pmandoc(mp, fd, argv[i], list); in main() 98 mparse_free(mp); in main() 116 mparse_readfd(mp, fd, fn); in pmandoc() [all …]
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | statfs.cc | 66 char mp[PATH_MAX]; in TEST_F() local 70 ASSERT_NE(nullptr, getcwd(mp, PATH_MAX)) << strerror(errno); in TEST_F() 71 strlcat(mp, "/mountpoint", PATH_MAX); in TEST_F() 77 EXPECT_EQ(0, strcmp(mp, statbuf.f_mntonname)); in TEST_F() 100 char mp[PATH_MAX]; in TEST_F() local 115 ASSERT_NE(nullptr, getcwd(mp, PATH_MAX)) << strerror(errno); in TEST_F() 116 strlcat(mp, "/mountpoint", PATH_MAX); in TEST_F() 129 EXPECT_EQ(0, strcmp(mp, statbuf.f_mntonname)); in TEST_F() 135 char mp[PATH_MAX]; in TEST_F() local 154 strlcat(mp, "/mountpoint", PATH_MAX); in TEST_F() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | trim7.sh | 50 mp=$2 51 [ $mp = /media ] || exit 0 52 fs=`mount | grep "on $mp " | sed 's/ .*//'` 54 image=`echo $mp/diskimage | sed s#//#/#` # fix "//" for case mp = "/" 59 while mount | grep -q "on $mp "; do 60 umount $mp 62 mount $fs $mp
|
/freebsd/contrib/netbsd-tests/fs/ptyfs/ |
H A D | t_nullpts.c | 25 mountptyfs(const char *mp, int flags) in mountptyfs() argument 29 if (rump_sys_mkdir(mp, 0777) == -1) { in mountptyfs() 31 atf_tc_fail_errno("null create %s", mp); in mountptyfs() 36 if (rump_sys_mount(MOUNT_PTYFS, mp, flags, &args, sizeof(args)) == -1) in mountptyfs() 41 mountnull(const char *what, const char *mp, int flags) in mountnull() argument 49 if (rump_sys_mkdir(mp, 0777) == -1) { in mountnull() 51 atf_tc_fail_errno("null create %s", mp); in mountnull() 55 if (rump_sys_mount(MOUNT_NULL, mp, flags, &nargs, sizeof(nargs)) == -1) in mountnull()
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | condvar.h | 107 cv_wait_sig(kcondvar_t *cvp, kmutex_t *mp) in cv_wait_sig() argument 110 return (_cv_wait_sig(cvp, &(mp)->lock_object) == 0); in cv_wait_sig() 114 cv_timedwait(kcondvar_t *cvp, kmutex_t *mp, clock_t timo) in cv_timedwait() argument 121 rc = _cv_timedwait_sbt((cvp), &(mp)->lock_object, \ in cv_timedwait() 129 cv_timedwait_sig(kcondvar_t *cvp, kmutex_t *mp, clock_t timo) in cv_timedwait_sig() argument 136 rc = _cv_timedwait_sig_sbt(cvp, &(mp)->lock_object, \ in cv_timedwait_sig() 156 cv_timedwait_hires(kcondvar_t *cvp, kmutex_t *mp, hrtime_t tim, hrtime_t res, in cv_timedwait_hires() argument 170 rc = cv_timedwait_sbt(cvp, mp, zfs_nstosbt(tim), in cv_timedwait_hires() 181 cv_timedwait_sig_hires(kcondvar_t *cvp, kmutex_t *mp, hrtime_t tim, in cv_timedwait_sig_hires() argument 198 rc = cv_timedwait_sig_sbt(cvp, mp, sbt, zfs_nstosbt(res), C_ABSOLUTE); in cv_timedwait_sig_hires()
|
/freebsd/sys/fs/nullfs/ |
H A D | null_subr.c | 93 null_hashget_locked(struct mount *mp, struct vnode *lowervp) in null_hashget_locked() argument 126 null_hashget(struct mount *mp, struct vnode *lowervp) in null_hashget() argument 136 vp = null_hashget_locked(mp, lowervp); in null_hashget() 143 null_hashins(struct mount *mp, struct null_node *xp) in null_hashins() argument 156 NULLTOV(oxp)->v_mount == mp) { in null_hashins() 199 *vpp = null_hashget(mp, lowervp); in null_nodeget() 213 error = getnewvnode("nullfs", mp, &null_vnodeops, &vp); in null_nodeget() 230 *vpp = null_hashget_locked(mp, lowervp); in null_nodeget() 248 if (lowervp == MOUNTTONULLMOUNT(mp)->nullm_lowerrootvp) in null_nodeget() 251 error = insmntque1(vp, mp); in null_nodeget() [all …]
|
/freebsd/sys/cddl/contrib/opensolaris/uts/common/ctf/ |
H A D | ctf_mod.c | 120 ctf_modopen(struct module *mp, int *error) in ctf_modopen() argument 132 ctfsect.cts_data = mp->ctfdata; in ctf_modopen() 133 ctfsect.cts_size = mp->ctfsize; in ctf_modopen() 140 symsect.cts_data = mp->symtbl; in ctf_modopen() 141 symsect.cts_size = mp->symhdr->sh_size; in ctf_modopen() 152 strsect.cts_data = mp->strings; in ctf_modopen() 153 strsect.cts_size = mp->strhdr->sh_size; in ctf_modopen() 162 if (!ctf_leave_compressed && (caddr_t)fp->ctf_base != mp->ctfdata) { in ctf_modopen() 171 kobj_set_ctf(mp, (caddr_t)fp->ctf_base, fp->ctf_size); in ctf_modopen()
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_quota.c | 508 ump = VFSTOUFS(mp); in quotaon() 513 vfs_ref(mp); in quotaon() 515 vfs_unbusy(mp); in quotaon() 519 vfs_rel(mp); in quotaon() 525 vfs_rel(mp); in quotaon() 555 MNT_ILOCK(mp); in quotaon() 558 MNT_IUNLOCK(mp); in quotaon() 756 MNT_ILOCK(mp); in quotaoff_inchange() 759 MNT_IUNLOCK(mp); in quotaoff_inchange() 1553 struct mount *mp; in dqsync() local [all …]
|
/freebsd/contrib/netbsd-tests/fs/vfs/ |
H A D | t_ro.c | 53 nullgen(const atf_tc_t *tc, const char *mp) in nullgen() argument 60 filegen(const atf_tc_t *tc, const char *mp) in filegen() argument 78 create(const atf_tc_t *tc, const char *mp) in create() argument 87 rmfile(const atf_tc_t *tc, const char *mp) in rmfile() argument 96 fileio(const atf_tc_t *tc, const char *mp) in fileio() argument 120 attrs(const atf_tc_t *tc, const char *mp) in attrs() argument 146 createdir(const atf_tc_t *tc, const char *mp) in createdir() argument 155 createfifo(const atf_tc_t *tc, const char *mp) in createfifo() argument 164 createsymlink(const atf_tc_t *tc, const char *mp) in createsymlink() argument 173 createlink(const atf_tc_t *tc, const char *mp) in createlink() argument
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | getcap.c | 855 char *mp; in cgetstr() local 877 mp = mem; in cgetstr() 903 *mp++ = n; in cgetstr() 907 *mp++ = '\b'; in cgetstr() 910 *mp++ = '\t'; in cgetstr() 913 *mp++ = '\n'; in cgetstr() 916 *mp++ = '\f'; in cgetstr() 922 *mp++ = ESC; in cgetstr() 925 *mp++ = ':'; in cgetstr() 988 char *mp; in cgetustr() local [all …]
|
/freebsd/sys/security/audit/ |
H A D | audit_worker.c | 122 vfs_unbusy(mp); in audit_worker_sync_vp() 143 struct mount *mp; in audit_record_write() local 153 mp = vp->v_mount; in audit_record_write() 154 if (mp == NULL) { in audit_record_write() 158 error = vfs_busy(mp, 0); in audit_record_write() 160 mp = NULL; in audit_record_write() 163 mnt_stat = &mp->mnt_stat; in audit_record_write() 291 vfs_unbusy(mp); in audit_record_write() 301 audit_worker_sync_vp(vp, mp, in audit_record_write() 319 if (mp != NULL) in audit_record_write() [all …]
|
/freebsd/sys/geom/ |
H A D | geom_dump.c | 92 LIST_FOREACH(gp, &mp->geom, geom) in g_confdot_class() 99 struct g_class *mp; in g_confdot() local 106 LIST_FOREACH(mp, &g_classes, class) in g_confdot() 107 g_confdot_class(sb, mp); in g_confdot() 136 LIST_FOREACH(gp, &mp->geom, geom) in g_conftxt_class() 143 struct g_class *mp; in g_conftxt() local 149 LIST_FOREACH(mp, &g_classes, class) { in g_conftxt() 150 if (!strcmp(mp->name, G_DISK_CLASS_NAME) || !strcmp(mp->name, "MD")) in g_conftxt() 151 g_conftxt_class(sb, mp); in g_conftxt() 288 g_conf_cat_escaped(sb, mp->name); in g_conf_class() [all …]
|
/freebsd/sys/ddb/ |
H A D | db_pprint.c | 110 struct ctf_member_v3 *mp, *endp; in db_pprint_struct() local 112 mp = (struct ctf_member_v3 *)((db_addr_t)type + in db_pprint_struct() 114 endp = mp + vlen; in db_pprint_struct() 115 for (; mp < endp; mp++) { in db_pprint_struct() 120 maddr = addr + mp->ctm_offset; in db_pprint_struct() 121 mname = db_ctf_stroff_to_str(&sym_data, mp->ctm_name); in db_pprint_struct() 133 struct ctf_lmember_v3 *mp, *endp; in db_pprint_struct() local 135 mp = (struct ctf_lmember_v3 *)((db_addr_t)type + in db_pprint_struct() 137 endp = mp + vlen; in db_pprint_struct() 138 for (; mp < endp; mp++) { in db_pprint_struct() [all …]
|