Searched refs:md (Results 1 - 25 of 577) sorted by relevance

1234567891011>>

/freebsd-13-stable/sys/geom/virstor/
H A Dg_virstor_md.c43 virstor_metadata_encode(struct g_virstor_metadata *md, unsigned char *data) argument
49 bs_write_buf(&bs, md->md_magic, sizeof(md->md_magic));
50 bs_write_u32(&bs, md->md_version);
51 bs_write_buf(&bs, md->md_name, sizeof(md->md_name));
52 bs_write_u64(&bs, md->md_virsize);
53 bs_write_u32(&bs, md->md_chunk_size);
54 bs_write_u32(&bs, md->md_id);
55 bs_write_u16(&bs, md
71 virstor_metadata_decode(unsigned char *data, struct g_virstor_metadata *md) argument
[all...]
/freebsd-13-stable/sys/geom/multipath/
H A Dg_multipath.h78 multipath_metadata_encode(const struct g_multipath_metadata *md, u_char *data) argument
80 bcopy(md->md_magic, data, sizeof(md->md_magic));
81 data += sizeof(md->md_magic);
82 bcopy(md->md_uuid, data, sizeof(md->md_uuid));
83 data += sizeof(md->md_uuid);
84 bcopy(md->md_name, data, sizeof(md->md_name));
85 data += sizeof(md
96 multipath_metadata_decode(u_char *data, struct g_multipath_metadata *md) argument
[all...]
/freebsd-13-stable/sys/dev/wtap/
H A Dif_medium.c37 init_medium(struct wtap_medium *md) argument
41 STAILQ_INIT(&md->md_pktbuf);
42 mtx_init(&md->md_mtx, "wtap_medium mtx", NULL, MTX_DEF | MTX_RECURSE);
50 md->tx_handler = eh;
52 md->open = 0;
56 deinit_medium(struct wtap_medium *md) argument
60 taskqueue_free(md->tx_handler->tq);
61 free(md->tx_handler, M_WTAP);
65 medium_transmit(struct wtap_medium *md, int id, struct mbuf*m) argument
68 mtx_lock(&md
90 medium_get_next_packet(struct wtap_medium *md) argument
107 medium_open(struct wtap_medium *md) argument
116 medium_close(struct wtap_medium *md) argument
[all...]
/freebsd-13-stable/crypto/openssl/crypto/mdc2/
H A Dmdc2_one.c14 unsigned char *MDC2(const unsigned char *d, size_t n, unsigned char *md) argument
19 if (md == NULL)
20 md = m;
24 MDC2_Final(md, &c);
26 return md;
/freebsd-13-stable/sys/geom/stripe/
H A Dg_stripe.h83 stripe_metadata_encode(const struct g_stripe_metadata *md, u_char *data) argument
86 bcopy(md->md_magic, data, sizeof(md->md_magic));
87 le32enc(data + 16, md->md_version);
88 bcopy(md->md_name, data + 20, sizeof(md->md_name));
89 le32enc(data + 36, md->md_id);
90 le16enc(data + 40, md->md_no);
91 le16enc(data + 42, md->md_all);
92 le32enc(data + 44, md
97 stripe_metadata_decode(const u_char *data, struct g_stripe_metadata *md) argument
[all...]
/freebsd-13-stable/contrib/wpa/src/crypto/
H A Dsha384_i.h18 void sha384_init(struct sha384_state *md);
19 int sha384_process(struct sha384_state *md, const unsigned char *in,
21 int sha384_done(struct sha384_state *md, unsigned char *out);
H A Dsha384-internal.c49 @param md The hash state you wish to initialize
52 void sha384_init(struct sha384_state *md) argument
54 md->curlen = 0;
55 md->length = 0;
56 md->state[0] = CONST64(0xcbbb9d5dc1059ed8);
57 md->state[1] = CONST64(0x629a292a367cd507);
58 md->state[2] = CONST64(0x9159015a3070dd17);
59 md->state[3] = CONST64(0x152fecd8f70e5939);
60 md->state[4] = CONST64(0x67332667ffc00b31);
61 md
66 sha384_process(struct sha384_state *md, const unsigned char *in, unsigned long inlen) argument
78 sha384_done(struct sha384_state *md, unsigned char *out) argument
[all...]
H A Dsha256-internal.c84 static int sha256_compress(struct sha256_state *md, unsigned char *buf) argument
92 S[i] = md->state[i];
120 md->state[i] = md->state[i] + S[i];
127 void sha256_init(struct sha256_state *md) argument
129 md->curlen = 0;
130 md->length = 0;
131 md->state[0] = 0x6A09E667UL;
132 md->state[1] = 0xBB67AE85UL;
133 md
148 sha256_process(struct sha256_state *md, const unsigned char *in, unsigned long inlen) argument
188 sha256_done(struct sha256_state *md, unsigned char *out) argument
[all...]
H A Dsha256_i.h20 void sha256_init(struct sha256_state *md);
21 int sha256_process(struct sha256_state *md, const unsigned char *in,
23 int sha256_done(struct sha256_state *md, unsigned char *out);
H A Dsha512_i.h20 void sha512_init(struct sha512_state *md);
21 int sha512_process(struct sha512_state *md, const unsigned char *in,
23 int sha512_done(struct sha512_state *md, unsigned char *out);
/freebsd-13-stable/contrib/libarchive/libarchive/test/
H A Dtest_archive_digest.c37 unsigned char md[16]; local
46 assertEqualInt(ARCHIVE_OK, archive_md5_final(&ctx, md));
47 assertEqualMem(md, actualmd, sizeof(md));
54 unsigned char md[20]; local
63 assertEqualInt(ARCHIVE_OK, archive_rmd160_final(&ctx, md));
64 assertEqualMem(md, actualmd, sizeof(md));
71 unsigned char md[20]; local
80 assertEqualInt(ARCHIVE_OK, archive_sha1_final(&ctx, md));
88 unsigned char md[32]; local
107 unsigned char md[48]; local
128 unsigned char md[64]; local
[all...]
/freebsd-13-stable/sys/geom/concat/
H A Dg_concat.h90 concat_metadata_encode(const struct g_concat_metadata *md, u_char *data) argument
93 bcopy(md->md_magic, data, sizeof(md->md_magic));
94 le32enc(data + 16, md->md_version);
95 bcopy(md->md_name, data + 20, sizeof(md->md_name));
96 le32enc(data + 36, md->md_id);
97 le16enc(data + 40, md->md_no);
98 le16enc(data + 42, md->md_all);
99 bcopy(md
103 concat_metadata_decode(const u_char *data, struct g_concat_metadata *md) argument
[all...]
/freebsd-13-stable/sys/geom/shsec/
H A Dg_shsec.h76 shsec_metadata_encode(const struct g_shsec_metadata *md, u_char *data) argument
79 bcopy(md->md_magic, data, sizeof(md->md_magic));
80 le32enc(data + 16, md->md_version);
81 bcopy(md->md_name, data + 20, sizeof(md->md_name));
82 le32enc(data + 36, md->md_id);
83 le16enc(data + 40, md->md_no);
84 le16enc(data + 42, md->md_all);
85 bcopy(md
89 shsec_metadata_decode(const u_char *data, struct g_shsec_metadata *md) argument
[all...]
/freebsd-13-stable/sys/geom/mirror/
H A Dg_mirror.h224 const struct g_mirror_metadata *md, u_int type);
232 struct g_mirror_metadata *md);
233 int g_mirror_read_metadata(struct g_consumer *cp, struct g_mirror_metadata *md);
235 struct g_mirror_disk *disk, struct g_mirror_metadata *md);
264 mirror_metadata_encode(struct g_mirror_metadata *md, u_char *data) argument
268 bcopy(md->md_magic, data, 16);
269 le32enc(data + 16, md->md_version);
270 bcopy(md->md_name, data + 20, 16);
271 le32enc(data + 36, md->md_mid);
272 le32enc(data + 40, md
292 mirror_metadata_decode_v0v1(const u_char *data, struct g_mirror_metadata *md) argument
324 mirror_metadata_decode_v2(const u_char *data, struct g_mirror_metadata *md) argument
356 mirror_metadata_decode_v3v4(const u_char *data, struct g_mirror_metadata *md) argument
385 mirror_metadata_decode(const u_char *data, struct g_mirror_metadata *md) argument
448 mirror_metadata_dump(const struct g_mirror_metadata *md) argument
[all...]
/freebsd-13-stable/contrib/file/python/
H A DMakefile.am2 EXTRA_DIST = LICENSE CHANGELOG.md README.md example.py magic.py setup.py \
/freebsd-13-stable/crypto/openssl/crypto/ripemd/
H A Drmd_one.c15 unsigned char *RIPEMD160(const unsigned char *d, size_t n, unsigned char *md) argument
20 if (md == NULL)
21 md = m;
25 RIPEMD160_Final(md, &c);
27 return md;
/freebsd-13-stable/crypto/openssl/crypto/sha/
H A Dsha1_one.c15 unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md) argument
20 if (md == NULL)
21 md = m;
25 SHA1_Final(md, &c);
27 return md;
/freebsd-13-stable/sys/geom/raid3/
H A Dg_raid3.h243 struct g_raid3_metadata *md);
244 int g_raid3_read_metadata(struct g_consumer *cp, struct g_raid3_metadata *md);
246 struct g_raid3_metadata *md);
272 raid3_metadata_encode(struct g_raid3_metadata *md, u_char *data) argument
276 bcopy(md->md_magic, data, 16);
277 le32enc(data + 16, md->md_version);
278 bcopy(md->md_name, data + 20, 16);
279 le32enc(data + 36, md->md_id);
280 le16enc(data + 40, md->md_no);
281 le16enc(data + 42, md
297 raid3_metadata_decode_v0v1v2(const u_char *data, struct g_raid3_metadata *md) argument
326 raid3_metadata_decode_v3(const u_char *data, struct g_raid3_metadata *md) argument
355 raid3_metadata_decode_v4v5(const u_char *data, struct g_raid3_metadata *md) argument
381 raid3_metadata_decode(const u_char *data, struct g_raid3_metadata *md) argument
408 raid3_metadata_dump(const struct g_raid3_metadata *md) argument
[all...]
/freebsd-13-stable/crypto/heimdal/lib/krb5/
H A Dpadata.c46 krb5_padata_add(krb5_context context, METHOD_DATA *md, argument
51 pa = realloc (md->val, (md->len + 1) * sizeof(*md->val));
57 md->val = pa;
59 pa[md->len].padata_type = type;
60 pa[md->len].padata_value.length = len;
61 pa[md->len].padata_value.data = buf;
62 md->len++;
/freebsd-13-stable/sbin/mdconfig/tests/
H A Dmdconfig_test.sh29 local md=$1
37 -o match:"/dev/$md *$sectorsize *$mediasize_in_bytes *$mediasize_in_sectors *$stripesize *$stripeoffset" \
38 -x "diskinfo /dev/$md | expand"
44 mdconfig -d -u $(sed -e 's/md//' mdconfig.out)
55 local md
60 md=$(cat mdconfig.out)
61 atf_check -s exit:0 -o match:'^md[0-9]+$' -x "echo $md"
62 check_diskinfo "$md" "1073741824" "2097152"
64 atf_check -s exit:0 -o match:"^$md vnod
[all...]
/freebsd-13-stable/tests/sys/geom/class/eli/
H A Dconfigure_test.sh16 md=$(attach_md -t malloc -s `expr $sectors + 1`)
18 atf_check geli init -B none -P -K /dev/null ${md}
20 atf_check -s exit:0 -o match:'flags: 0x200$' geli dump ${md}
22 atf_check geli init -B none -b -P -K /dev/null ${md}
24 atf_check -s exit:0 -o match:'flags: 0x202$' geli dump ${md}
26 atf_check geli configure -B ${md}
28 atf_check -s exit:0 -o match:'flags: 0x200$' geli dump ${md}
30 atf_check geli configure -b ${md}
32 atf_check -s exit:0 -o match:'flags: 0x202$' geli dump ${md}
34 atf_check geli attach -p -k /dev/null ${md}
[all...]
/freebsd-13-stable/sys/dev/hwpmc/
H A Dhwpmc_soft.h45 void pmc_soft_initialize(struct pmc_mdep *md);
46 void pmc_soft_finalize(struct pmc_mdep *md);
/freebsd-13-stable/tools/regression/sockets/sendfile/
H A DMakefile7 LIBADD= md
/freebsd-13-stable/sys/dev/proto/
H A Dproto_busdma.c60 struct proto_md *md; member in struct:proto_callback_bundle
148 struct proto_md *md)
151 LIST_REMOVE(md, mds);
152 LIST_REMOVE(md, peers);
153 if (md->physaddr)
154 bus_dmamap_unload(md->bd_tag, md->bd_map);
155 if (md->virtaddr != NULL)
156 bus_dmamem_free(md->bd_tag, md
147 proto_busdma_md_destroy_internal(struct proto_busdma *busdma, struct proto_md *md) argument
179 struct proto_md *md; local
221 proto_busdma_mem_free(struct proto_busdma *busdma, struct proto_md *md) argument
233 struct proto_md *md; local
260 proto_busdma_md_destroy(struct proto_busdma *busdma, struct proto_md *md) argument
279 proto_busdma_md_load(struct proto_busdma *busdma, struct proto_md *md, struct proto_ioc_busdma *ioc, struct thread *td) argument
315 proto_busdma_md_unload(struct proto_busdma *busdma, struct proto_md *md) argument
326 proto_busdma_sync(struct proto_busdma *busdma, struct proto_md *md, struct proto_ioc_busdma *ioc) argument
344 struct proto_md *md; local
376 struct proto_md *md, *md1; local
393 struct proto_md *md; local
489 struct proto_md *md; local
[all...]
/freebsd-13-stable/lib/geom/virstor/
H A Dgeom_virstor.c154 struct g_virstor_metadata md; local
183 bzero(&md, sizeof(md));
184 strlcpy(md.md_magic, G_VIRSTOR_MAGIC, sizeof(md.md_magic));
185 md.md_version = G_VIRSTOR_VERSION;
191 strlcpy(md.md_name, name, sizeof(md.md_name));
193 md.md_virsize = (off_t)gctl_get_intmax(req, "vir_size");
194 md
477 virstor_metadata_dump(const struct g_virstor_metadata *md) argument
499 struct g_virstor_metadata md; local
[all...]

Completed in 398 milliseconds

1234567891011>>