/dragonfly/sys/dev/virtual/hyperv/vmbus/ |
H A D | vmbus.c | 397 mh = kmalloc(sizeof(*mh), M_DEVBUF, M_WAITOK | M_ZERO); in vmbus_msghc_alloc() 406 return mh; in vmbus_msghc_alloc() 412 hyperv_dmamem_free(&mh->mh_inprm_dma, mh->mh_inprm); in vmbus_msghc_free() 455 mh = NULL; in vmbus_msghc_get1() 466 return mh; in vmbus_msghc_get1() 479 if (mh == NULL) in vmbus_msghc_get() 488 return mh; in vmbus_msghc_get() 523 if (mh == NULL) in vmbus_msghc_ctx_destroy() 564 memcpy(mh->mh_inprm, &mh->mh_inprm_save, in vmbus_msghc_exec_noresult() 623 memcpy(&mh->mh_resp0, msg, sizeof(mh->mh_resp0)); in vmbus_msghc_wakeup() [all …]
|
/dragonfly/sbin/camcontrol/ |
H A D | modeedit.c | 65 #define MODE_PAGE_HEADER(mh) \ argument 539 mh = (struct scsi_mode_header_6 *)data; in editlist_populate() 540 mph = MODE_PAGE_HEADER(mh); in editlist_populate() 578 mph = MODE_PAGE_HEADER(mh); in editlist_save() 586 bcopy(mph, ((u_int8_t *)mh) + sizeof(*mh), in editlist_save() 592 mph = MODE_PAGE_HEADER(mh); in editlist_save() 605 retries, timeout, (u_int8_t *)mh, in editlist_save() 606 sizeof(*mh) + mh->blk_desc_len + sizeof(*mph) + mph->page_length); in editlist_save() 788 mph = MODE_PAGE_HEADER(mh); in modepage_dump() 888 while (len < mh->data_length) { in mode_list() [all …]
|
/dragonfly/contrib/tcpdump/ |
H A D | print-mobility.c | 208 const struct ip6_mobility *mh; in mobility_print() local 214 mh = (const struct ip6_mobility *)bp; in mobility_print() 219 if (!ND_TTEST_1(mh->ip6m_len)) { in mobility_print() 235 mhlen = (GET_U_1(mh->ip6m_len) + 1) << 3; in mobility_print() 239 type = GET_U_1(mh->ip6m_type); in mobility_print() 262 ND_PRINT(" nonce id=0x%x", GET_BE_U_2(mh->ip6m_data16[0])); in mobility_print() 282 ND_PRINT(" seq#=%u", GET_BE_U_2(mh->ip6m_data16[0])); in mobility_print() 302 ND_PRINT(" status=%u", GET_U_1(mh->ip6m_data8[0])); in mobility_print() 303 if (GET_U_1(mh->ip6m_data8[1]) & 0x80) in mobility_print() 314 ND_PRINT(" status=%u", GET_U_1(mh->ip6m_data8[0])); in mobility_print() [all …]
|
H A D | print-sctp.c | 245 struct sctpHeader mh; member 284 struct sctpHeader mh; member 289 struct sctpHeader mh; member 322 struct sctpHeader mh; member 330 struct sctpHeader mh; member 341 struct sctpHeader mh; member
|
H A D | print-juniper.c | 622 const struct juniper_monitor_header *mh; in juniper_monitor_if_print() local 633 mh = (const struct juniper_monitor_header *)p; in juniper_monitor_if_print() 635 ND_TCHECK_SIZE(mh); in juniper_monitor_if_print() 638 GET_BE_U_4(mh->service_id), in juniper_monitor_if_print() 639 GET_BE_U_2(mh->iif), in juniper_monitor_if_print() 640 GET_U_1(mh->pkt_type)); in juniper_monitor_if_print()
|
/dragonfly/sys/dev/disk/iscsi/initiator/ |
H A D | isc_soc.c | 103 struct mbuf *mh, **mp; in isc_sendPDU() local 111 MGETHDR(mh, M_WAITOK, MT_DATA); in isc_sendPDU() 112 mh->m_len = mh->m_pkthdr.len = sizeof(union ipdu_u); in isc_sendPDU() 113 mh->m_pkthdr.rcvif = NULL; in isc_sendPDU() 116 mh->m_next = NULL; in isc_sendPDU() 125 bcopy(pp->ahs, (mh->m_data + mh->m_len), pp->ahs_len); in isc_sendPDU() 126 mh->m_len += pp->ahs_len; in isc_sendPDU() 138 bcopy(&pp->hdr_dig, (mh->m_data + mh->m_len), sizeof(int)); in isc_sendPDU() 139 mh->m_len += sizeof(int); in isc_sendPDU() 142 mp = &mh->m_next; in isc_sendPDU() [all …]
|
/dragonfly/contrib/gcc-4.7/libgcc/config/ |
H A D | darwin-crt-tm.c | 33 #define GET_DATA_TMCT(mh,size) \ argument 34 getsectdatafromheader_64 ((struct mach_header_64*) mh, \ 37 #define GET_DATA_TMCT(mh,size) \ argument 38 getsectdatafromheader (mh, "__DATA", "__tm_clone_table", (uint32_t *)size) 52 struct mach_header *mh; in getTMCloneTable() local 58 mh = (struct mach_header *) info.dli_fbase; in getTMCloneTable() 59 tmct_fixed = GET_DATA_TMCT (mh, tmct_siz); in getTMCloneTable() 68 if (mh == _dyld_get_image_header(i)) in getTMCloneTable()
|
H A D | unwind-dw2-fde-darwin.c | 75 struct mach_header *mh; /* the image info */ member 158 fde = getsectdatafromheader (image->mh, "__DATA", "__eh_frame", &sz); in examine_objects() 164 fde = getsectdatafromheader_64 ((struct mach_header_64 *) image->mh, in examine_objects() 167 fde = getsectdatafromheader (image->mh, "__TEXT", in examine_objects()
|
/dragonfly/sys/netinet6/ |
H A D | mld6.c | 409 struct mbuf *mh, *md; in mld6_sendpkt() local 430 MGETHDR(mh, M_NOWAIT, MT_HEADER); in mld6_sendpkt() 431 if (mh == NULL) in mld6_sendpkt() 435 m_free(mh); in mld6_sendpkt() 438 mh->m_next = md; in mld6_sendpkt() 440 mh->m_pkthdr.rcvif = NULL; in mld6_sendpkt() 441 mh->m_pkthdr.len = sizeof(struct ip6_hdr) + sizeof(struct mld_hdr); in mld6_sendpkt() 442 mh->m_len = sizeof(struct ip6_hdr); in mld6_sendpkt() 443 MH_ALIGN(mh, sizeof(struct ip6_hdr)); in mld6_sendpkt() 446 ip6 = mtod(mh, struct ip6_hdr *); in mld6_sendpkt() [all …]
|
H A D | ip6_output.c | 3063 struct mbuf *mh; in ip6_splithdr() local 3068 MGETHDR(mh, M_NOWAIT, MT_HEADER); in ip6_splithdr() 3069 if (mh == NULL) in ip6_splithdr() 3071 mh->m_len = sizeof(struct ip6_hdr); in ip6_splithdr() 3072 M_MOVE_PKTHDR(mh, m); in ip6_splithdr() 3073 MH_ALIGN(mh, sizeof(struct ip6_hdr)); in ip6_splithdr() 3074 bcopy(mtod(m, caddr_t), mtod(mh, caddr_t), sizeof(struct ip6_hdr)); in ip6_splithdr() 3077 mh->m_next = m; in ip6_splithdr() 3078 return (mh); in ip6_splithdr()
|
/dragonfly/tools/tools/net80211/w00t/redir/ |
H A D | buddy.c | 59 struct msghdr mh; in handle_data() local 91 memset(&mh, 0, sizeof(mh)); in handle_data() 92 mh.msg_iov = iov; in handle_data() 93 mh.msg_iovlen = sizeof(iov)/sizeof(struct iovec); in handle_data() 96 if (sendmsg(dude, &mh, 0) != (4 + len)) in handle_data()
|
/dragonfly/sys/netinet/ |
H A D | ip_gre.c | 223 if(ntohs(mip->mh.proto) & MOB_H_SBIT) { in gre_mobile_input() 225 mip->mi.ip_src.s_addr = mip->mh.osrc; in gre_mobile_input() 229 mip->mi.ip_dst.s_addr = mip->mh.odst; in gre_mobile_input() 230 mip->mi.ip_p = (ntohs(mip->mh.proto) >> 8); in gre_mobile_input() 232 if (gre_in_cksum((u_short*)&mip->mh,msiz) != 0) { in gre_mobile_input()
|
/dragonfly/sys/netproto/802_11/wlan/ |
H A D | ieee80211_power.c | 372 struct mbuf *mh; in ieee80211_pwrsave() local 382 mh = psq->psq_head[0].head; in ieee80211_pwrsave() 383 if (mh != NULL) in ieee80211_pwrsave() 384 age-= M_AGE_GET(mh); in ieee80211_pwrsave() 386 mh = psq->psq_head[1].head; in ieee80211_pwrsave() 387 if (mh != NULL) { in ieee80211_pwrsave() 388 int nage = M_AGE_GET(mh) - age; in ieee80211_pwrsave() 390 M_AGE_SET(mh, nage < 0 ? 0 : nage); in ieee80211_pwrsave()
|
/dragonfly/usr.sbin/ppp/ |
H A D | mp.c | 418 struct mp_header mh, h; in mp_Assemble() local 428 if (m && mp_ReadHeader(mp, m, &mh) == 0) { in mp_Assemble() 435 p->dl->mp.seq = mh.seq; in mp_Assemble() 471 h = mh; in mp_Assemble() 475 if (m && isbefore(mp->local_is12bit, mh.seq, h.seq)) { in mp_Assemble() 483 h = mh; in mp_Assemble() 600 if (isbefore(mp->local_is12bit, mh.seq, h.seq)) in mp_Assemble() 844 struct mp_header mh; in mp_ShowStatus() local 847 first = mp_ReadHeader(mp, mp->inbufs, &mh) ? mh.seq : 0; in mp_ShowStatus() 848 last = mp_ReadHeader(mp, lm, &mh) ? mh.seq : 0; in mp_ShowStatus() [all …]
|
/dragonfly/sys/dev/raid/mly/ |
H A D | mly.c | 976 struct mly_health_status *mh; in mly_get_eventstatus() local 982 mh = NULL; in mly_get_eventstatus() 985 if ((error = mly_ioctl(sc, &mci, (void **)&mh, sizeof(*mh), &status, NULL, NULL))) in mly_get_eventstatus() 991 sc->mly_event_change = mh->change_counter; in mly_get_eventstatus() 992 sc->mly_event_waiting = mh->next_event; in mly_get_eventstatus() 993 sc->mly_event_counter = mh->next_event; in mly_get_eventstatus() 996 bcopy(mh, &sc->mly_mmbox->mmm_health.status, sizeof(*mh)); in mly_get_eventstatus() 998 debug(1, "initial change counter %d, event counter %d", mh->change_counter, mh->next_event); in mly_get_eventstatus() 1000 kfree(mh, M_DEVBUF); in mly_get_eventstatus() 2951 struct mly_health_status mh; in mly_user_health() local [all …]
|
/dragonfly/crypto/libressl/apps/nc/ |
H A D | netcat.c | 1392 struct msghdr mh; in fdpass() local 1407 memset(&mh, 0, sizeof(mh)); in fdpass() 1411 mh.msg_control = (caddr_t)&cmsgbuf.buf; in fdpass() 1412 mh.msg_controllen = sizeof(cmsgbuf.buf); in fdpass() 1413 cmsg = CMSG_FIRSTHDR(&mh); in fdpass() 1421 mh.msg_iov = &iov; in fdpass() 1422 mh.msg_iovlen = 1; in fdpass() 1428 r = sendmsg(STDOUT_FILENO, &mh, 0); in fdpass()
|
/dragonfly/crypto/libressl/crypto/bn/ |
H A D | bn_asm.c | 914 BN_ULONG mh; in bn_mul_mont() local 931 mh = HBITS(ml); in bn_mul_mont() 934 mul(tp[j], ap[j], ml, mh, c0); in bn_mul_mont() 948 mh = HBITS(ml); in bn_mul_mont() 951 mul_add(tp[j], ap[j], ml, mh, c0); in bn_mul_mont() 964 mh = HBITS(ml); in bn_mul_mont() 966 mul_add(c1, np[0], ml, mh, c0); in bn_mul_mont() 973 mul_add(c1, np[j], ml, mh, c0); in bn_mul_mont()
|
/dragonfly/contrib/gdb-7/ |
H A D | README.DELETED | 503 gdb/config/i386/cygwin.mh 504 gdb/config/i386/darwin.mh 505 gdb/config/i386/fbsd.mh 506 gdb/config/i386/fbsd64.mh 507 gdb/config/i386/go32.mh 510 gdb/config/i386/linux.mh 512 gdb/config/i386/mingw.mh 514 gdb/config/i386/nbsd64.mh 519 gdb/config/i386/nto.mh 520 gdb/config/i386/obsd.mh [all …]
|
/dragonfly/sys/net/ |
H A D | bpf.c | 1351 struct m_hdr mh; in bpf_mtap_hdr() local 1353 mh.mh_flags = 0; in bpf_mtap_hdr() 1354 mh.mh_next = m; in bpf_mtap_hdr() 1355 mh.mh_len = dlen; in bpf_mtap_hdr() 1356 mh.mh_data = data; in bpf_mtap_hdr() 1358 bpf_mtap(arg, (struct mbuf *) &mh); in bpf_mtap_hdr()
|
/dragonfly/sys/net/gre/ |
H A D | if_gre.h | 143 struct mobile_h mh; member
|
/dragonfly/contrib/gcc-8.0/gcc/ |
H A D | tree-vect-generic.c | 490 unsigned HOST_WIDE_INT mh; in expand_vector_divmod() local 505 mh = choose_multiplier (d, prec, prec, &ml, &post_shift, &dummy_int); in expand_vector_divmod() 509 if ((mh != 0 && (d & 1) == 0) in expand_vector_divmod() 547 mh = choose_multiplier (d >> pre_shift, prec, in expand_vector_divmod() 550 gcc_assert (!mh); in expand_vector_divmod() 554 if (!mh) in expand_vector_divmod()
|
/dragonfly/contrib/gcc-4.7/libgcc/ |
H A D | fp-bit.c | 866 USItype mh = b->fraction.ll >> BITS_PER_SI; 868 UDItype pp_hl = (UDItype) mh * nl; 870 UDItype pp_hh = (UDItype) mh * nh;
|
/dragonfly/contrib/binutils-2.34/bfd/ |
H A D | cofflink.c | 1644 struct coff_debug_merge_hash_entry *mh; in _bfd_coff_link_input_bfd() local 1663 mh = coff_debug_merge_hash_lookup (&flaginfo->debug_merge, name, in _bfd_coff_link_input_bfd() 1665 if (mh == NULL) in _bfd_coff_link_input_bfd() 1761 for (mtl = mh->types; mtl != NULL; mtl = mtl->next) in _bfd_coff_link_input_bfd() 1786 mt->next = mh->types; in _bfd_coff_link_input_bfd() 1787 mh->types = mt; in _bfd_coff_link_input_bfd()
|
/dragonfly/contrib/binutils-2.27/bfd/ |
H A D | cofflink.c | 1633 struct coff_debug_merge_hash_entry *mh; in _bfd_coff_link_input_bfd() local 1652 mh = coff_debug_merge_hash_lookup (&flaginfo->debug_merge, name, in _bfd_coff_link_input_bfd() 1654 if (mh == NULL) in _bfd_coff_link_input_bfd() 1750 for (mtl = mh->types; mtl != NULL; mtl = mtl->next) in _bfd_coff_link_input_bfd() 1775 mt->next = mh->types; in _bfd_coff_link_input_bfd() 1776 mh->types = mt; in _bfd_coff_link_input_bfd()
|
/dragonfly/sys/dev/virtual/vmware/vmxnet3/ |
H A D | if_vmx.c | 3609 uint32_t ml, mh; in vmxnet3_set_lladdr() local 3617 mh = sc->vmx_lladdr[4]; in vmxnet3_set_lladdr() 3618 mh |= sc->vmx_lladdr[5] << 8; in vmxnet3_set_lladdr() 3619 vmxnet3_write_bar1(sc, VMXNET3_BAR1_MACH, mh); in vmxnet3_set_lladdr() 3625 uint32_t ml, mh; in vmxnet3_get_lladdr() local 3628 mh = vmxnet3_read_cmd(sc, VMXNET3_CMD_GET_MACH); in vmxnet3_get_lladdr() 3634 sc->vmx_lladdr[4] = mh; in vmxnet3_get_lladdr() 3635 sc->vmx_lladdr[5] = mh >> 8; in vmxnet3_get_lladdr()
|