Symbol: mh
crypto/openssl/crypto/bio/bss_dgram.c
1060
static void translate_msg_win(BIO *b, WSAMSG *mh, WSABUF *iov,
crypto/openssl/crypto/bio/bss_dgram.c
1067
mh->name = msg->peer != NULL ? &msg->peer->sa : NULL;
crypto/openssl/crypto/bio/bss_dgram.c
1069
mh->namelen = sizeof(struct sockaddr_in);
crypto/openssl/crypto/bio/bss_dgram.c
1072
mh->namelen = sizeof(struct sockaddr_in6);
crypto/openssl/crypto/bio/bss_dgram.c
1075
mh->namelen = 0;
crypto/openssl/crypto/bio/bss_dgram.c
1084
mh->lpBuffers = iov;
crypto/openssl/crypto/bio/bss_dgram.c
1085
mh->dwBufferCount = 1;
crypto/openssl/crypto/bio/bss_dgram.c
1086
mh->Control.len = BIO_CMSG_ALLOC_LEN;
crypto/openssl/crypto/bio/bss_dgram.c
1087
mh->Control.buf = control;
crypto/openssl/crypto/bio/bss_dgram.c
1088
mh->dwFlags = 0;
crypto/openssl/crypto/bio/bss_dgram.c
1094
static void translate_msg(BIO *b, struct msghdr *mh, struct iovec *iov,
crypto/openssl/crypto/bio/bss_dgram.c
1105
mh->msg_name = msg->peer != NULL ? &msg->peer->sa : NULL;
crypto/openssl/crypto/bio/bss_dgram.c
1107
mh->msg_namelen = sizeof(struct sockaddr_in);
crypto/openssl/crypto/bio/bss_dgram.c
1110
mh->msg_namelen = sizeof(struct sockaddr_in6);
crypto/openssl/crypto/bio/bss_dgram.c
1113
mh->msg_namelen = 0;
crypto/openssl/crypto/bio/bss_dgram.c
1115
mh->msg_name = NULL;
crypto/openssl/crypto/bio/bss_dgram.c
1116
mh->msg_namelen = 0;
crypto/openssl/crypto/bio/bss_dgram.c
1119
mh->msg_iov = iov;
crypto/openssl/crypto/bio/bss_dgram.c
1120
mh->msg_iovlen = 1;
crypto/openssl/crypto/bio/bss_dgram.c
1121
mh->msg_control = msg->local != NULL ? control : NULL;
crypto/openssl/crypto/bio/bss_dgram.c
1122
mh->msg_controllen = msg->local != NULL ? BIO_CMSG_ALLOC_LEN : 0;
crypto/openssl/crypto/bio/bss_dgram.c
1123
mh->msg_flags = 0;
crypto/openssl/crypto/bio/bss_dgram.c
1129
static int extract_local(BIO *b, MSGHDR_TYPE *mh, BIO_ADDR *local)
crypto/openssl/crypto/bio/bss_dgram.c
1135
for (cmsg = BIO_CMSG_FIRSTHDR(mh); cmsg != NULL;
crypto/openssl/crypto/bio/bss_dgram.c
1136
cmsg = BIO_CMSG_NXTHDR(mh, cmsg)) {
crypto/openssl/crypto/bio/bss_dgram.c
1192
static int pack_local(BIO *b, MSGHDR_TYPE *mh, const BIO_ADDR *local)
crypto/openssl/crypto/bio/bss_dgram.c
1205
cmsg = (CMSGHDR_TYPE *)mh->Control.buf;
crypto/openssl/crypto/bio/bss_dgram.c
1207
cmsg = (CMSGHDR_TYPE *)mh->msg_control;
crypto/openssl/crypto/bio/bss_dgram.c
1234
mh->Control.len = BIO_CMSG_SPACE(sizeof(struct in_pktinfo));
crypto/openssl/crypto/bio/bss_dgram.c
1236
mh->msg_controllen = BIO_CMSG_SPACE(sizeof(struct in_pktinfo));
crypto/openssl/crypto/bio/bss_dgram.c
1251
mh->msg_control = NULL;
crypto/openssl/crypto/bio/bss_dgram.c
1252
mh->msg_controllen = 0;
crypto/openssl/crypto/bio/bss_dgram.c
1256
cmsg = (struct cmsghdr *)mh->msg_control;
crypto/openssl/crypto/bio/bss_dgram.c
1271
mh->msg_controllen = BIO_CMSG_SPACE(sizeof(struct in_addr));
crypto/openssl/crypto/bio/bss_dgram.c
1281
cmsg = (CMSGHDR_TYPE *)mh->Control.buf;
crypto/openssl/crypto/bio/bss_dgram.c
1283
cmsg = (CMSGHDR_TYPE *)mh->msg_control;
crypto/openssl/crypto/bio/bss_dgram.c
1310
mh->Control.len = BIO_CMSG_SPACE(sizeof(struct in6_pktinfo));
crypto/openssl/crypto/bio/bss_dgram.c
1312
mh->msg_controllen = BIO_CMSG_SPACE(sizeof(struct in6_pktinfo));
crypto/openssl/crypto/bio/bss_dgram.c
1346
struct mmsghdr mh[BIO_MAX_MSGS_PER_CALL];
crypto/openssl/crypto/bio/bss_dgram.c
1354
struct msghdr mh;
crypto/openssl/crypto/bio/bss_dgram.c
1394
translate_msg(b, &mh[i].msg_hdr, &iov[i],
crypto/openssl/crypto/bio/bss_dgram.c
1405
if (pack_local(b, &mh[i].msg_hdr,
crypto/openssl/crypto/bio/bss_dgram.c
1416
ret = sendmmsg(b->num, mh, num_msg, sysflags);
crypto/openssl/crypto/bio/bss_dgram.c
1424
BIO_MSG_N(msg, stride, i).data_len = mh[i].msg_len;
crypto/openssl/crypto/bio/bss_dgram.c
1435
translate_msg(b, &mh, &iov, control, msg);
crypto/openssl/crypto/bio/bss_dgram.c
1444
if (pack_local(b, &mh, msg->local) < 1) {
crypto/openssl/crypto/bio/bss_dgram.c
1451
l = sendmsg(b->num, &mh, sysflags);
crypto/openssl/crypto/bio/bss_dgram.c
1548
struct mmsghdr mh[BIO_MAX_MSGS_PER_CALL];
crypto/openssl/crypto/bio/bss_dgram.c
1556
struct msghdr mh;
crypto/openssl/crypto/bio/bss_dgram.c
1597
translate_msg(b, &mh[i].msg_hdr, &iov[i],
crypto/openssl/crypto/bio/bss_dgram.c
1609
ret = recvmmsg(b->num, mh, num_msg, sysflags, NULL);
crypto/openssl/crypto/bio/bss_dgram.c
1617
BIO_MSG_N(msg, stride, i).data_len = mh[i].msg_len;
crypto/openssl/crypto/bio/bss_dgram.c
1624
if (extract_local(b, &mh[i].msg_hdr,
crypto/openssl/crypto/bio/bss_dgram.c
1643
translate_msg(b, &mh, &iov, control, msg);
crypto/openssl/crypto/bio/bss_dgram.c
1656
l = recvmsg(b->num, &mh, sysflags);
crypto/openssl/crypto/bio/bss_dgram.c
1667
if (extract_local(b, &mh, msg->local) < 1)
crypto/openssl/crypto/bn/bn_asm.c
896
BN_ULONG mh;
crypto/openssl/crypto/bn/bn_asm.c
913
mh = HBITS(ml);
crypto/openssl/crypto/bn/bn_asm.c
916
mul(tp[j], ap[j], ml, mh, c0);
crypto/openssl/crypto/bn/bn_asm.c
930
mh = HBITS(ml);
crypto/openssl/crypto/bn/bn_asm.c
933
mul_add(tp[j], ap[j], ml, mh, c0);
crypto/openssl/crypto/bn/bn_asm.c
946
mh = HBITS(ml);
crypto/openssl/crypto/bn/bn_asm.c
948
mul_add(c1, np[0], ml, mh, c0);
crypto/openssl/crypto/bn/bn_asm.c
955
mul_add(c1, np[j], ml, mh, c0);
sbin/camcontrol/modeedit.c
1014
struct scsi_mode_header_6 *mh =
sbin/camcontrol/modeedit.c
1016
mph = find_mode_page_6(mh);
sbin/camcontrol/modeedit.c
1018
struct scsi_mode_header_10 *mh =
sbin/camcontrol/modeedit.c
1020
mph = find_mode_page_10(mh);
sbin/camcontrol/modeedit.c
1051
struct scsi_mode_header_6 *mh =
sbin/camcontrol/modeedit.c
1053
desc = (uint8_t *)(mh + 1);
sbin/camcontrol/modeedit.c
1054
len = mh->blk_desc_len;
sbin/camcontrol/modeedit.c
1056
struct scsi_mode_header_10 *mh =
sbin/camcontrol/modeedit.c
1058
desc = (uint8_t *)(mh + 1);
sbin/camcontrol/modeedit.c
1059
len = scsi_2btoul(mh->blk_desc_len);
sbin/camcontrol/modeedit.c
1176
struct scsi_mode_header_6 *mh =
sbin/camcontrol/modeedit.c
1178
len = mh->data_length;
sbin/camcontrol/modeedit.c
1179
off = sizeof(*mh) + mh->blk_desc_len;
sbin/camcontrol/modeedit.c
1181
struct scsi_mode_header_10 *mh =
sbin/camcontrol/modeedit.c
1183
len = scsi_2btoul(mh->data_length);
sbin/camcontrol/modeedit.c
1184
off = sizeof(*mh) + scsi_2btoul(mh->blk_desc_len);
sbin/camcontrol/modeedit.c
609
struct scsi_mode_header_6 *mh =
sbin/camcontrol/modeedit.c
611
mph = find_mode_page_6(mh);
sbin/camcontrol/modeedit.c
613
struct scsi_mode_header_10 *mh =
sbin/camcontrol/modeedit.c
615
mph = find_mode_page_10(mh);
sbin/camcontrol/modeedit.c
654
struct scsi_mode_header_6 *mh =
sbin/camcontrol/modeedit.c
656
desc = (uint8_t *)(mh + 1);
sbin/camcontrol/modeedit.c
657
len = mh->blk_desc_len;
sbin/camcontrol/modeedit.c
660
struct scsi_mode_header_10 *mh =
sbin/camcontrol/modeedit.c
662
desc = (uint8_t *)(mh + 1);
sbin/camcontrol/modeedit.c
663
len = scsi_2btoul(mh->blk_desc_len);
sbin/camcontrol/modeedit.c
664
longlba = (mh->flags & SMH_LONGLBA) != 0;
sbin/camcontrol/modeedit.c
729
struct scsi_mode_header_6 *mh =
sbin/camcontrol/modeedit.c
731
hlen = sizeof(*mh);
sbin/camcontrol/modeedit.c
733
if (mh->blk_desc_len > 0) {
sbin/camcontrol/modeedit.c
734
bcopy(find_mode_page_6(mh), mh + 1,
sbin/camcontrol/modeedit.c
735
mh->data_length + 1 - hlen -
sbin/camcontrol/modeedit.c
736
mh->blk_desc_len);
sbin/camcontrol/modeedit.c
737
mh->blk_desc_len = 0;
sbin/camcontrol/modeedit.c
739
mh->data_length = 0; /* Reserved for MODE SELECT command. */
sbin/camcontrol/modeedit.c
741
mh->dev_spec = 0; /* See comment above */
sbin/camcontrol/modeedit.c
742
mph = find_mode_page_6(mh);
sbin/camcontrol/modeedit.c
744
struct scsi_mode_header_10 *mh =
sbin/camcontrol/modeedit.c
746
hlen = sizeof(*mh);
sbin/camcontrol/modeedit.c
748
if (scsi_2btoul(mh->blk_desc_len) > 0) {
sbin/camcontrol/modeedit.c
749
bcopy(find_mode_page_10(mh), mh + 1,
sbin/camcontrol/modeedit.c
750
scsi_2btoul(mh->data_length) + 1 - hlen -
sbin/camcontrol/modeedit.c
751
scsi_2btoul(mh->blk_desc_len));
sbin/camcontrol/modeedit.c
752
scsi_ulto2b(0, mh->blk_desc_len);
sbin/camcontrol/modeedit.c
754
scsi_ulto2b(0, mh->data_length); /* Reserved for MODE SELECT. */
sbin/camcontrol/modeedit.c
756
mh->dev_spec = 0; /* See comment above */
sbin/camcontrol/modeedit.c
757
mph = find_mode_page_10(mh);
sbin/camcontrol/modeedit.c
803
struct scsi_mode_header_6 *mh =
sbin/camcontrol/modeedit.c
805
hlen = sizeof(*mh);
sbin/camcontrol/modeedit.c
806
desc = (uint8_t *)(mh + 1);
sbin/camcontrol/modeedit.c
807
len = mh->blk_desc_len;
sbin/camcontrol/modeedit.c
808
mh->data_length = 0; /* Reserved for MODE SELECT command. */
sbin/camcontrol/modeedit.c
810
mh->dev_spec = 0; /* See comment above */
sbin/camcontrol/modeedit.c
812
struct scsi_mode_header_10 *mh =
sbin/camcontrol/modeedit.c
814
hlen = sizeof(*mh);
sbin/camcontrol/modeedit.c
815
desc = (uint8_t *)(mh + 1);
sbin/camcontrol/modeedit.c
816
len = scsi_2btoul(mh->blk_desc_len);
sbin/camcontrol/modeedit.c
817
scsi_ulto2b(0, mh->data_length); /* Reserved for MODE SELECT. */
sbin/camcontrol/modeedit.c
819
mh->dev_spec = 0; /* See comment above */
sys/arm/allwinner/if_awg.c
1197
struct mbuf *m, *mh, *mt;
sys/arm/allwinner/if_awg.c
1202
mh = mt = NULL;
sys/arm/allwinner/if_awg.c
1250
if (mh == NULL)
sys/arm/allwinner/if_awg.c
1251
mh = m;
sys/arm/allwinner/if_awg.c
1260
if_input(ifp, mh);
sys/arm/allwinner/if_awg.c
1262
mh = mt = NULL;
sys/arm/allwinner/if_awg.c
1272
if (mh != NULL) {
sys/arm/allwinner/if_awg.c
1274
if_input(ifp, mh);
sys/arm64/broadcom/genet/if_genet.c
1374
struct mbuf *m, *mh, *mt;
sys/arm64/broadcom/genet/if_genet.c
1380
mh = mt = NULL;
sys/arm64/broadcom/genet/if_genet.c
1451
if (mh == NULL)
sys/arm64/broadcom/genet/if_genet.c
1452
mh = m;
sys/arm64/broadcom/genet/if_genet.c
1466
if_input(ifp, mh);
sys/arm64/broadcom/genet/if_genet.c
1468
mh = mt = NULL;
sys/arm64/broadcom/genet/if_genet.c
1473
if (mh != NULL) {
sys/arm64/broadcom/genet/if_genet.c
1475
if_input(ifp, mh);
sys/cam/scsi/scsi_da.c
4857
struct scsi_mode_header_10 *mh =
sys/cam/scsi/scsi_da.c
4859
len = 2 + scsi_2btoul(mh->data_length);
sys/cam/scsi/scsi_da.c
4860
off = sizeof(*mh) + scsi_2btoul(mh->blk_desc_len);
sys/cam/scsi/scsi_da.c
4861
dev_spec = mh->dev_spec;
sys/cam/scsi/scsi_da.c
4863
struct scsi_mode_header_6 *mh =
sys/cam/scsi/scsi_da.c
4865
len = 1 + mh->data_length;
sys/cam/scsi/scsi_da.c
4866
off = sizeof(*mh) + mh->blk_desc_len;
sys/cam/scsi/scsi_da.c
4867
dev_spec = mh->dev_spec;
sys/dev/cxgb/cxgb_sge.c
2674
struct t3_mbuf_hdr *mh, struct rsp_desc *r)
sys/dev/cxgb/cxgb_sge.c
2706
mh->mh_head = mh->mh_tail = m;
sys/dev/cxgb/cxgb_sge.c
2734
mh->mh_head = mh->mh_tail = m;
sys/dev/cxgb/cxgb_sge.c
2741
if (mh->mh_tail == NULL) {
sys/dev/cxgb/cxgb_sge.c
2747
mh->mh_tail->m_next = m;
sys/dev/cxgb/cxgb_sge.c
2748
mh->mh_tail = m;
sys/dev/cxgb/cxgb_sge.c
2749
mh->mh_head->m_pkthdr.len += len;
sys/dev/cxgb/cxgb_sge.c
2831
struct t3_mbuf_hdr *mh = &rspq->rspq_mh;
sys/dev/cxgb/cxgb_sge.c
2855
if (mh->mh_head == NULL) {
sys/dev/cxgb/cxgb_sge.c
2856
mh->mh_head = m_gethdr(M_NOWAIT, MT_DATA);
sys/dev/cxgb/cxgb_sge.c
2857
m = mh->mh_head;
sys/dev/cxgb/cxgb_sge.c
2880
if (mh->mh_head == NULL)
sys/dev/cxgb/cxgb_sge.c
2881
mh->mh_head = m;
sys/dev/cxgb/cxgb_sge.c
2883
mh->mh_tail->m_next = m;
sys/dev/cxgb/cxgb_sge.c
2884
mh->mh_tail = m;
sys/dev/cxgb/cxgb_sge.c
2887
mh->mh_head->m_pkthdr.len += m->m_len;
sys/dev/cxgb/cxgb_sge.c
2893
eop = get_packet(adap, drop_thresh, qs, mh, r);
sys/dev/cxgb/cxgb_sge.c
2896
M_HASHTYPE_SET(mh->mh_head,
sys/dev/cxgb/cxgb_sge.c
2898
mh->mh_head->m_pkthdr.flowid = rss_hash;
sys/dev/cxgb/cxgb_sge.c
2915
adap->cpl_handler[opcode](qs, r, mh->mh_head);
sys/dev/cxgb/cxgb_sge.c
2917
m_freem(mh->mh_head);
sys/dev/cxgb/cxgb_sge.c
2919
mh->mh_head = NULL;
sys/dev/cxgb/cxgb_sge.c
2921
struct mbuf *m = mh->mh_head;
sys/dev/cxgb/cxgb_sge.c
2951
mh->mh_head = NULL;
sys/dev/hyperv/vmbus/vmbus.c
245
vmbus_msghc_reset(struct vmbus_msghc *mh, size_t dsize)
sys/dev/hyperv/vmbus/vmbus.c
252
inprm = vmbus_xact_req_data(mh->mh_xact);
sys/dev/hyperv/vmbus/vmbus.c
262
struct vmbus_msghc *mh;
sys/dev/hyperv/vmbus/vmbus.c
273
mh = vmbus_xact_priv(xact, sizeof(*mh));
sys/dev/hyperv/vmbus/vmbus.c
274
mh->mh_xact = xact;
sys/dev/hyperv/vmbus/vmbus.c
276
vmbus_msghc_reset(mh, dsize);
sys/dev/hyperv/vmbus/vmbus.c
277
return (mh);
sys/dev/hyperv/vmbus/vmbus.c
281
vmbus_msghc_put(struct vmbus_softc *sc __unused, struct vmbus_msghc *mh)
sys/dev/hyperv/vmbus/vmbus.c
284
vmbus_xact_put(mh->mh_xact);
sys/dev/hyperv/vmbus/vmbus.c
288
vmbus_msghc_dataptr(struct vmbus_msghc *mh)
sys/dev/hyperv/vmbus/vmbus.c
292
inprm = vmbus_xact_req_data(mh->mh_xact);
sys/dev/hyperv/vmbus/vmbus.c
297
vmbus_msghc_exec_noresult(struct vmbus_msghc *mh)
sys/dev/hyperv/vmbus/vmbus.c
304
inprm = vmbus_xact_req_data(mh->mh_xact);
sys/dev/hyperv/vmbus/vmbus.c
305
inprm_paddr = vmbus_xact_req_paddr(mh->mh_xact);
sys/dev/hyperv/vmbus/vmbus.c
315
memcpy(&mh->mh_inprm_save, inprm, HYPERCALL_POSTMSGIN_SIZE);
sys/dev/hyperv/vmbus/vmbus.c
336
memcpy(inprm, &mh->mh_inprm_save, HYPERCALL_POSTMSGIN_SIZE);
sys/dev/hyperv/vmbus/vmbus.c
345
vmbus_msghc_exec(struct vmbus_softc *sc __unused, struct vmbus_msghc *mh)
sys/dev/hyperv/vmbus/vmbus.c
349
vmbus_xact_activate(mh->mh_xact);
sys/dev/hyperv/vmbus/vmbus.c
350
error = vmbus_msghc_exec_noresult(mh);
sys/dev/hyperv/vmbus/vmbus.c
352
vmbus_xact_deactivate(mh->mh_xact);
sys/dev/hyperv/vmbus/vmbus.c
357
vmbus_msghc_exec_cancel(struct vmbus_softc *sc __unused, struct vmbus_msghc *mh)
sys/dev/hyperv/vmbus/vmbus.c
360
vmbus_xact_deactivate(mh->mh_xact);
sys/dev/hyperv/vmbus/vmbus.c
364
vmbus_msghc_wait_result(struct vmbus_softc *sc __unused, struct vmbus_msghc *mh)
sys/dev/hyperv/vmbus/vmbus.c
368
return (vmbus_xact_wait(mh->mh_xact, &resp_len));
sys/dev/hyperv/vmbus/vmbus.c
372
vmbus_msghc_poll_result(struct vmbus_softc *sc __unused, struct vmbus_msghc *mh)
sys/dev/hyperv/vmbus/vmbus.c
376
return (vmbus_xact_poll(mh->mh_xact, &resp_len));
sys/dev/hyperv/vmbus/vmbus.c
405
struct vmbus_msghc *mh;
sys/dev/hyperv/vmbus/vmbus.c
411
mh = vmbus_msghc_get(sc, sizeof(*req));
sys/dev/hyperv/vmbus/vmbus.c
412
if (mh == NULL) {
sys/dev/hyperv/vmbus/vmbus.c
418
req = vmbus_msghc_dataptr(mh);
sys/dev/hyperv/vmbus/vmbus.c
423
error = vmbus_msghc_exec_noresult(mh);
sys/dev/hyperv/vmbus/vmbus.c
424
vmbus_msghc_put(sc, mh);
sys/dev/hyperv/vmbus/vmbus.c
439
struct vmbus_msghc *mh;
sys/dev/hyperv/vmbus/vmbus.c
442
mh = vmbus_msghc_get(sc, sizeof(*req));
sys/dev/hyperv/vmbus/vmbus.c
443
if (mh == NULL)
sys/dev/hyperv/vmbus/vmbus.c
446
req = vmbus_msghc_dataptr(mh);
sys/dev/hyperv/vmbus/vmbus.c
453
error = vmbus_msghc_exec(sc, mh);
sys/dev/hyperv/vmbus/vmbus.c
455
vmbus_msghc_put(sc, mh);
sys/dev/hyperv/vmbus/vmbus.c
459
msg = vmbus_msghc_wait_result(sc, mh);
sys/dev/hyperv/vmbus/vmbus.c
463
vmbus_msghc_put(sc, mh);
sys/dev/hyperv/vmbus/vmbus.c
493
struct vmbus_msghc *mh;
sys/dev/hyperv/vmbus/vmbus.c
496
mh = vmbus_msghc_get(sc, sizeof(*req));
sys/dev/hyperv/vmbus/vmbus.c
497
if (mh == NULL) {
sys/dev/hyperv/vmbus/vmbus.c
503
req = vmbus_msghc_dataptr(mh);
sys/dev/hyperv/vmbus/vmbus.c
506
error = vmbus_msghc_exec_noresult(mh);
sys/dev/hyperv/vmbus/vmbus.c
507
vmbus_msghc_put(sc, mh);
sys/dev/hyperv/vmbus/vmbus.c
519
struct vmbus_msghc *mh;
sys/dev/hyperv/vmbus/vmbus.c
522
mh = vmbus_msghc_get(sc, sizeof(*req));
sys/dev/hyperv/vmbus/vmbus.c
523
if (mh == NULL)
sys/dev/hyperv/vmbus/vmbus.c
526
req = vmbus_msghc_dataptr(mh);
sys/dev/hyperv/vmbus/vmbus.c
529
error = vmbus_msghc_exec_noresult(mh);
sys/dev/hyperv/vmbus/vmbus.c
530
vmbus_msghc_put(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
2004
struct vmbus_msghc *mh;
sys/dev/hyperv/vmbus/vmbus_chan.c
2007
mh = vmbus_msghc_get(sc, sizeof(*req));
sys/dev/hyperv/vmbus/vmbus_chan.c
2008
if (mh == NULL) {
sys/dev/hyperv/vmbus/vmbus_chan.c
2015
req = vmbus_msghc_dataptr(mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
2019
error = vmbus_msghc_exec_noresult(mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
2020
vmbus_msghc_put(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
384
struct vmbus_msghc *mh;
sys/dev/hyperv/vmbus/vmbus_chan.c
455
mh = vmbus_msghc_get(sc, sizeof(*req));
sys/dev/hyperv/vmbus/vmbus_chan.c
456
if (mh == NULL) {
sys/dev/hyperv/vmbus/vmbus_chan.c
464
req = vmbus_msghc_dataptr(mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
474
error = vmbus_msghc_exec(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
479
vmbus_msghc_put(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
484
msg = vmbus_msghc_poll_result(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
508
msg = vmbus_msghc_poll_result(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
515
vmbus_msghc_exec_cancel(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
528
vmbus_msghc_put(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
565
struct vmbus_msghc *mh;
sys/dev/hyperv/vmbus/vmbus_chan.c
618
mh = vmbus_msghc_get(sc, reqsz);
sys/dev/hyperv/vmbus/vmbus_chan.c
619
if (mh == NULL) {
sys/dev/hyperv/vmbus/vmbus_chan.c
626
req = vmbus_msghc_dataptr(mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
637
error = vmbus_msghc_exec(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
642
vmbus_msghc_put(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
657
vmbus_msghc_reset(mh, reqsz);
sys/dev/hyperv/vmbus/vmbus_chan.c
659
subreq = vmbus_msghc_dataptr(mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
665
vmbus_msghc_exec_noresult(mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
669
msg = vmbus_msghc_wait_result(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
673
vmbus_msghc_put(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
717
struct vmbus_msghc *mh;
sys/dev/hyperv/vmbus/vmbus_chan.c
723
mh = vmbus_msghc_get(sc, sizeof(*req));
sys/dev/hyperv/vmbus/vmbus_chan.c
724
if (mh == NULL) {
sys/dev/hyperv/vmbus/vmbus_chan.c
731
req = vmbus_msghc_dataptr(mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
736
error = vmbus_msghc_exec(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
738
vmbus_msghc_put(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
756
vmbus_msghc_wait_result(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
758
vmbus_msghc_put(sc, mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
833
struct vmbus_msghc *mh;
sys/dev/hyperv/vmbus/vmbus_chan.c
882
mh = vmbus_msghc_get(sc, sizeof(*req));
sys/dev/hyperv/vmbus/vmbus_chan.c
883
if (mh == NULL) {
sys/dev/hyperv/vmbus/vmbus_chan.c
891
req = vmbus_msghc_dataptr(mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
895
error = vmbus_msghc_exec_noresult(mh);
sys/dev/hyperv/vmbus/vmbus_chan.c
896
vmbus_msghc_put(sc, mh);
sys/dev/malo/if_malo.c
1308
struct malo_hal *mh = sc->malo_mh;
sys/dev/malo/if_malo.c
1320
malo_hal_setantenna(mh, MHA_ANTENNATYPE_RX, sc->malo_rxantenna);
sys/dev/malo/if_malo.c
1321
malo_hal_setantenna(mh, MHA_ANTENNATYPE_TX, sc->malo_txantenna);
sys/dev/malo/if_malo.c
1322
malo_hal_setradio(mh, 1, MHP_AUTO_PREAMBLE);
sys/dev/malo/if_malo.c
1438
struct malo_hal *mh = sc->malo_mh;
sys/dev/malo/if_malo.c
1482
malo_hal_intrset(mh, sc->malo_imask);
sys/dev/malo/if_malo.c
1553
struct malo_hal *mh = sc->malo_mh;
sys/dev/malo/if_malo.c
1555
malo_hal_setpromisc(mh, ic->ic_promisc > 0);
sys/dev/malo/if_malo.c
1613
struct malo_hal *mh = sc->malo_mh;
sys/dev/malo/if_malo.c
1637
malo_hal_intrset(mh, 0);
sys/dev/malo/if_malo.c
1639
malo_hal_setradio(mh, 0, MHP_AUTO_PREAMBLE);
sys/dev/malo/if_malo.c
168
struct malo_hal *mh;
sys/dev/malo/if_malo.c
1690
struct malo_hal *mh = sc->malo_mh;
sys/dev/malo/if_malo.c
1703
error = malo_hal_set_slot(mh, 1);
sys/dev/malo/if_malo.c
1705
error = malo_hal_set_slot(mh, 0);
sys/dev/malo/if_malo.c
1717
struct malo_hal *mh = sc->malo_mh;
sys/dev/malo/if_malo.c
1744
malo_hal_setradio(mh, 1,
sys/dev/malo/if_malo.c
1748
malo_hal_set_rate(mh, mode,
sys/dev/malo/if_malo.c
176
mh = malo_hal_attach(sc->malo_dev, devid,
sys/dev/malo/if_malo.c
178
if (mh == NULL) {
sys/dev/malo/if_malo.c
183
sc->malo_mh = mh;
sys/dev/malo/if_malo.c
1869
struct malo_hal *mh = sc->malo_mh;
sys/dev/malo/if_malo.c
1880
malo_hal_intrset(mh, 0); /* disable interrupts */
sys/dev/malo/if_malo.c
1881
malo_hal_setchannel(mh, &hchan);
sys/dev/malo/if_malo.c
1882
malo_hal_settxpower(mh, &hchan);
sys/dev/malo/if_malo.c
1897
malo_hal_intrset(mh, sc->malo_imask);
sys/dev/malo/if_malo.c
190
error = malo_hal_fwload(mh, "malo8335-h", "malo8335-m");
sys/dev/malo/if_malo.c
196
error = malo_hal_gethwspecs(mh, &sc->malo_hwspecs);
sys/dev/malo/if_malo.c
311
malo_hal_detach(mh);
sys/dev/malo/if_malo.c
372
struct malo_hal *mh = sc->malo_mh;
sys/dev/malo/if_malo.c
387
malo_hal_getisr(mh, &status); /* NB: clears ISR too */
sys/dev/malo/if_malo.c
399
malo_hal_cmddone(mh);
sys/dev/malo/if_malohal.c
101
mh = malloc(sizeof(struct malo_hal), M_DEVBUF, M_NOWAIT | M_ZERO);
sys/dev/malo/if_malohal.c
102
if (mh == NULL)
sys/dev/malo/if_malohal.c
105
mh->mh_dev = dev;
sys/dev/malo/if_malohal.c
106
mh->mh_ioh = ioh;
sys/dev/malo/if_malohal.c
107
mh->mh_iot = iot;
sys/dev/malo/if_malohal.c
109
snprintf(mh->mh_mtxname, sizeof(mh->mh_mtxname),
sys/dev/malo/if_malohal.c
111
mtx_init(&mh->mh_mtx, mh->mh_mtxname, NULL, MTX_DEF);
sys/dev/malo/if_malohal.c
129
&mh->mh_dmat);
sys/dev/malo/if_malohal.c
137
error = bus_dmamem_alloc(mh->mh_dmat, (void**) &mh->mh_cmdbuf,
sys/dev/malo/if_malohal.c
139
&mh->mh_dmamap);
sys/dev/malo/if_malohal.c
146
error = bus_dmamap_load(mh->mh_dmat, mh->mh_dmamap,
sys/dev/malo/if_malohal.c
147
mh->mh_cmdbuf, MALO_CMDBUF_SIZE,
sys/dev/malo/if_malohal.c
148
malo_hal_load_cb, &mh->mh_cmdaddr,
sys/dev/malo/if_malohal.c
156
return (mh);
sys/dev/malo/if_malohal.c
159
if (mh->mh_cmdbuf != NULL)
sys/dev/malo/if_malohal.c
160
bus_dmamem_free(mh->mh_dmat, mh->mh_cmdbuf,
sys/dev/malo/if_malohal.c
161
mh->mh_dmamap);
sys/dev/malo/if_malohal.c
162
if (mh->mh_dmat)
sys/dev/malo/if_malohal.c
163
bus_dma_tag_destroy(mh->mh_dmat);
sys/dev/malo/if_malohal.c
164
free(mh, M_DEVBUF);
sys/dev/malo/if_malohal.c
174
malo_hal_send_cmd(struct malo_hal *mh)
sys/dev/malo/if_malohal.c
177
bus_dmamap_sync(mh->mh_dmat, mh->mh_dmamap,
sys/dev/malo/if_malohal.c
180
malo_hal_write4(mh, MALO_REG_GEN_PTR, mh->mh_cmdaddr);
sys/dev/malo/if_malohal.c
181
malo_hal_read4(mh, MALO_REG_INT_CODE);
sys/dev/malo/if_malohal.c
183
malo_hal_write4(mh, MALO_REG_H2A_INTERRUPT_EVENTS,
sys/dev/malo/if_malohal.c
188
malo_hal_waitforcmd(struct malo_hal *mh, uint16_t cmd)
sys/dev/malo/if_malohal.c
194
if (mh->mh_cmdbuf[0] == le16toh(cmd))
sys/dev/malo/if_malohal.c
205
malo_hal_execute_cmd(struct malo_hal *mh, unsigned short cmd)
sys/dev/malo/if_malohal.c
207
MALO_HAL_LOCK_ASSERT(mh);
sys/dev/malo/if_malohal.c
209
if ((mh->mh_flags & MHF_FWHANG) &&
sys/dev/malo/if_malohal.c
210
(mh->mh_debug & MALO_HAL_DEBUG_IGNHANG) == 0) {
sys/dev/malo/if_malohal.c
211
device_printf(mh->mh_dev, "firmware hung, skipping cmd 0x%x\n",
sys/dev/malo/if_malohal.c
216
if (malo_hal_read4(mh, MALO_REG_INT_CODE) == 0xffffffff) {
sys/dev/malo/if_malohal.c
217
device_printf(mh->mh_dev, "%s: device not present!\n",
sys/dev/malo/if_malohal.c
222
malo_hal_send_cmd(mh);
sys/dev/malo/if_malohal.c
223
if (!malo_hal_waitforcmd(mh, cmd | 0x8000)) {
sys/dev/malo/if_malohal.c
224
device_printf(mh->mh_dev,
sys/dev/malo/if_malohal.c
226
mh->mh_flags |= MHF_FWHANG;
sys/dev/malo/if_malohal.c
230
bus_dmamap_sync(mh->mh_dmat, mh->mh_dmamap,
sys/dev/malo/if_malohal.c
237
malo_hal_get_cal_table(struct malo_hal *mh, uint8_t annex, uint8_t index)
sys/dev/malo/if_malohal.c
242
MALO_HAL_LOCK_ASSERT(mh);
sys/dev/malo/if_malohal.c
248
ret = malo_hal_execute_cmd(mh, MALO_HOSTCMD_GET_CALTABLE);
sys/dev/malo/if_malohal.c
255
malo_hal_get_pwrcal_table(struct malo_hal *mh, struct malo_hal_caldata *cal)
sys/dev/malo/if_malohal.c
260
MALO_HAL_LOCK(mh);
sys/dev/malo/if_malohal.c
262
data = ((const struct malo_cmd_caltable *) mh->mh_cmdbuf)->caltbl;
sys/dev/malo/if_malohal.c
263
if (malo_hal_get_cal_table(mh, 33, 0) == 0) {
sys/dev/malo/if_malohal.c
268
mh->mh_flags |= MHF_CALDATA;
sys/dev/malo/if_malohal.c
269
MALO_HAL_UNLOCK(mh);
sys/dev/malo/if_malohal.c
278
malo_hal_resetstate(struct malo_hal *mh)
sys/dev/malo/if_malohal.c
284
if ((mh->mh_flags & MHF_CALDATA) == 0)
sys/dev/malo/if_malohal.c
285
malo_hal_get_pwrcal_table(mh, &mh->mh_caldata);
sys/dev/malo/if_malohal.c
290
malo_hal_fw_reset(struct malo_hal *mh)
sys/dev/malo/if_malohal.c
293
if (malo_hal_read4(mh, MALO_REG_INT_CODE) == 0xffffffff) {
sys/dev/malo/if_malohal.c
294
device_printf(mh->mh_dev, "%s: device not present!\n",
sys/dev/malo/if_malohal.c
299
malo_hal_write4(mh, MALO_REG_H2A_INTERRUPT_EVENTS, MALO_ISR_RESET);
sys/dev/malo/if_malohal.c
300
mh->mh_flags &= ~MHF_FWHANG;
sys/dev/malo/if_malohal.c
304
malo_hal_trigger_pcicmd(struct malo_hal *mh)
sys/dev/malo/if_malohal.c
307
bus_dmamap_sync(mh->mh_dmat, mh->mh_dmamap, BUS_DMASYNC_PREWRITE);
sys/dev/malo/if_malohal.c
309
malo_hal_write4(mh, MALO_REG_GEN_PTR, mh->mh_cmdaddr);
sys/dev/malo/if_malohal.c
310
malo_hal_read4(mh, MALO_REG_INT_CODE);
sys/dev/malo/if_malohal.c
312
malo_hal_write4(mh, MALO_REG_INT_CODE, 0x00);
sys/dev/malo/if_malohal.c
313
malo_hal_read4(mh, MALO_REG_INT_CODE);
sys/dev/malo/if_malohal.c
315
malo_hal_write4(mh, MALO_REG_H2A_INTERRUPT_EVENTS,
sys/dev/malo/if_malohal.c
317
malo_hal_read4(mh, MALO_REG_INT_CODE);
sys/dev/malo/if_malohal.c
321
malo_hal_waitfor(struct malo_hal *mh, uint32_t val)
sys/dev/malo/if_malohal.c
327
if (malo_hal_read4(mh, MALO_REG_INT_CODE) == val)
sys/dev/malo/if_malohal.c
338
malo_hal_send_helper(struct malo_hal *mh, int bsize,
sys/dev/malo/if_malohal.c
341
mh->mh_cmdbuf[0] = htole16(MALO_HOSTCMD_CODE_DNLD);
sys/dev/malo/if_malohal.c
342
mh->mh_cmdbuf[1] = htole16(bsize);
sys/dev/malo/if_malohal.c
343
memcpy(&mh->mh_cmdbuf[4], data , dsize);
sys/dev/malo/if_malohal.c
345
malo_hal_trigger_pcicmd(mh);
sys/dev/malo/if_malohal.c
351
if (malo_hal_waitfor(mh, MALO_INT_CODE_CMD_FINISHED) != 0) {
sys/dev/malo/if_malohal.c
352
device_printf(mh->mh_dev,
sys/dev/malo/if_malohal.c
354
__func__, malo_hal_read4(mh, MALO_REG_INT_CODE));
sys/dev/malo/if_malohal.c
360
malo_hal_write4(mh, MALO_REG_INT_CODE, 0);
sys/dev/malo/if_malohal.c
366
malo_hal_fwload_helper(struct malo_hal *mh, char *helper)
sys/dev/malo/if_malohal.c
373
device_printf(mh->mh_dev, "could not read microcode %s!\n",
sys/dev/malo/if_malohal.c
378
device_printf(mh->mh_dev, "load %s firmware image (%zu bytes)\n",
sys/dev/malo/if_malohal.c
381
error = malo_hal_send_helper(mh, fw->datasize, fw->data, fw->datasize,
sys/dev/malo/if_malohal.c
387
error = malo_hal_send_helper(mh, 0, NULL, 0, MALO_NOWAIT);
sys/dev/malo/if_malohal.c
399
malo_hal_send_main(struct malo_hal *mh, const void *data, size_t dsize,
sys/dev/malo/if_malohal.c
402
mh->mh_cmdbuf[0] = htole16(MALO_HOSTCMD_CODE_DNLD);
sys/dev/malo/if_malohal.c
403
mh->mh_cmdbuf[1] = htole16(dsize);
sys/dev/malo/if_malohal.c
404
mh->mh_cmdbuf[2] = htole16(seqnum);
sys/dev/malo/if_malohal.c
405
mh->mh_cmdbuf[3] = 0;
sys/dev/malo/if_malohal.c
406
memcpy(&mh->mh_cmdbuf[4], data, dsize);
sys/dev/malo/if_malohal.c
408
malo_hal_trigger_pcicmd(mh);
sys/dev/malo/if_malohal.c
413
if (malo_hal_waitfor(mh, MALO_INT_CODE_CMD_FINISHED) != 0) {
sys/dev/malo/if_malohal.c
414
device_printf(mh->mh_dev,
sys/dev/malo/if_malohal.c
416
__func__, malo_hal_read4(mh, MALO_REG_INT_CODE));
sys/dev/malo/if_malohal.c
422
malo_hal_write4(mh, MALO_REG_INT_CODE, 0);
sys/dev/malo/if_malohal.c
428
malo_hal_fwload_main(struct malo_hal *mh, char *firmware)
sys/dev/malo/if_malohal.c
441
device_printf(mh->mh_dev, "could not read firmware %s!\n",
sys/dev/malo/if_malohal.c
446
device_printf(mh->mh_dev, "load %s firmware image (%zu bytes)\n",
sys/dev/malo/if_malohal.c
454
error = malo_hal_send_main(mh, fp, blocksize, seqnum++,
sys/dev/malo/if_malohal.c
465
error = malo_hal_send_main(mh, NULL, 0, seqnum++, MALO_NOWAIT);
sys/dev/malo/if_malohal.c
475
malo_hal_fwload(struct malo_hal *mh, char *helper, char *firmware)
sys/dev/malo/if_malohal.c
487
malo_hal_fw_reset(mh);
sys/dev/malo/if_malohal.c
489
malo_hal_write4(mh, MALO_REG_A2H_INTERRUPT_CLEAR_SEL,
sys/dev/malo/if_malohal.c
491
malo_hal_write4(mh, MALO_REG_A2H_INTERRUPT_CAUSE, 0x00);
sys/dev/malo/if_malohal.c
492
malo_hal_write4(mh, MALO_REG_A2H_INTERRUPT_MASK, 0x00);
sys/dev/malo/if_malohal.c
493
malo_hal_write4(mh, MALO_REG_A2H_INTERRUPT_STATUS_MASK,
sys/dev/malo/if_malohal.c
496
error = malo_hal_fwload_helper(mh, helper);
sys/dev/malo/if_malohal.c
498
device_printf(mh->mh_dev, "failed to load bootrom loader.\n");
sys/dev/malo/if_malohal.c
504
error = malo_hal_fwload_main(mh, firmware);
sys/dev/malo/if_malohal.c
506
device_printf(mh->mh_dev, "failed to load firmware.\n");
sys/dev/malo/if_malohal.c
514
mh->mh_cmdbuf[1] = 0;
sys/dev/malo/if_malohal.c
517
malo_hal_trigger_pcicmd(mh);
sys/dev/malo/if_malohal.c
520
malo_hal_write4(mh, MALO_REG_GEN_PTR, opmode);
sys/dev/malo/if_malohal.c
522
if (malo_hal_read4(mh, MALO_REG_INT_CODE) == fwreadysig) {
sys/dev/malo/if_malohal.c
523
malo_hal_write4(mh, MALO_REG_INT_CODE, 0x00);
sys/dev/malo/if_malohal.c
524
return malo_hal_resetstate(mh);
sys/dev/malo/if_malohal.c
530
malo_hal_fw_reset(mh);
sys/dev/malo/if_malohal.c
540
malo_hal_gethwspecs(struct malo_hal *mh, struct malo_hal_hwspec *hw)
sys/dev/malo/if_malohal.c
545
MALO_HAL_LOCK(mh);
sys/dev/malo/if_malohal.c
549
cmd->ul_fw_awakecookie = htole32((unsigned int)mh->mh_cmdaddr + 2048);
sys/dev/malo/if_malohal.c
551
ret = malo_hal_execute_cmd(mh, MALO_HOSTCMD_GET_HW_SPEC);
sys/dev/malo/if_malohal.c
569
MALO_HAL_UNLOCK(mh);
sys/dev/malo/if_malohal.c
575
malo_hal_detach(struct malo_hal *mh)
sys/dev/malo/if_malohal.c
578
bus_dmamem_free(mh->mh_dmat, mh->mh_cmdbuf, mh->mh_dmamap);
sys/dev/malo/if_malohal.c
579
bus_dma_tag_destroy(mh->mh_dmat);
sys/dev/malo/if_malohal.c
580
mtx_destroy(&mh->mh_mtx);
sys/dev/malo/if_malohal.c
581
free(mh, M_DEVBUF);
sys/dev/malo/if_malohal.c
59
pCmd = (_type *)&mh->mh_cmdbuf[0]; \
sys/dev/malo/if_malohal.c
591
malo_hal_setantenna(struct malo_hal *mh, enum malo_hal_antenna dirset, int ant)
sys/dev/malo/if_malohal.c
599
MALO_HAL_LOCK(mh);
sys/dev/malo/if_malohal.c
610
ret = malo_hal_execute_cmd(mh, MALO_HOSTCMD_802_11_RF_ANTENNA);
sys/dev/malo/if_malohal.c
612
MALO_HAL_UNLOCK(mh);
sys/dev/malo/if_malohal.c
623
malo_hal_setradio(struct malo_hal *mh, int onoff,
sys/dev/malo/if_malohal.c
629
MALO_HAL_LOCK(mh);
sys/dev/malo/if_malohal.c
640
ret = malo_hal_execute_cmd(mh, MALO_HOSTCMD_802_11_RADIO_CONTROL);
sys/dev/malo/if_malohal.c
642
MALO_HAL_UNLOCK(mh);
sys/dev/malo/if_malohal.c
651
malo_hal_intrset(struct malo_hal *mh, uint32_t mask)
sys/dev/malo/if_malohal.c
654
malo_hal_write4(mh, MALO_REG_A2H_INTERRUPT_MASK, 0);
sys/dev/malo/if_malohal.c
655
(void)malo_hal_read4(mh, MALO_REG_INT_CODE);
sys/dev/malo/if_malohal.c
657
mh->mh_imask = mask;
sys/dev/malo/if_malohal.c
658
malo_hal_write4(mh, MALO_REG_A2H_INTERRUPT_MASK, mask);
sys/dev/malo/if_malohal.c
659
(void)malo_hal_read4(mh, MALO_REG_INT_CODE);
sys/dev/malo/if_malohal.c
66
malo_hal_read4(struct malo_hal *mh, bus_size_t off)
sys/dev/malo/if_malohal.c
663
malo_hal_setchannel(struct malo_hal *mh, const struct malo_hal_channel *chan)
sys/dev/malo/if_malohal.c
668
MALO_HAL_LOCK(mh);
sys/dev/malo/if_malohal.c
675
ret = malo_hal_execute_cmd(mh, MALO_HOSTCMD_SET_RF_CHANNEL);
sys/dev/malo/if_malohal.c
677
MALO_HAL_UNLOCK(mh);
sys/dev/malo/if_malohal.c
68
return bus_space_read_4(mh->mh_iot, mh->mh_ioh, off);
sys/dev/malo/if_malohal.c
683
malo_hal_settxpower(struct malo_hal *mh, const struct malo_hal_channel *c)
sys/dev/malo/if_malohal.c
686
const struct malo_hal_caldata *cal = &mh->mh_caldata;
sys/dev/malo/if_malohal.c
691
MALO_HAL_LOCK(mh);
sys/dev/malo/if_malohal.c
701
ret = malo_hal_execute_cmd(mh, MALO_HOSTCMD_802_11_RF_TX_POWER);
sys/dev/malo/if_malohal.c
703
MALO_HAL_UNLOCK(mh);
sys/dev/malo/if_malohal.c
709
malo_hal_setpromisc(struct malo_hal *mh, int enable)
sys/dev/malo/if_malohal.c
716
malo_hal_setassocid(struct malo_hal *mh,
sys/dev/malo/if_malohal.c
72
malo_hal_write4(struct malo_hal *mh, bus_size_t off, uint32_t val)
sys/dev/malo/if_malohal.c
722
MALO_HAL_LOCK(mh);
sys/dev/malo/if_malohal.c
730
ret = malo_hal_execute_cmd(mh, MALO_HOSTCMD_SET_AID);
sys/dev/malo/if_malohal.c
731
MALO_HAL_UNLOCK(mh);
sys/dev/malo/if_malohal.c
74
bus_space_write_4(mh->mh_iot, mh->mh_ioh, off, val);
sys/dev/malo/if_malohal.c
741
malo_hal_txstart(struct malo_hal *mh, int qnum)
sys/dev/malo/if_malohal.c
743
bus_space_write_4(mh->mh_iot, mh->mh_ioh,
sys/dev/malo/if_malohal.c
745
(void) bus_space_read_4(mh->mh_iot, mh->mh_ioh, MALO_REG_INT_CODE);
sys/dev/malo/if_malohal.c
752
malo_hal_getisr(struct malo_hal *mh, uint32_t *status)
sys/dev/malo/if_malohal.c
756
cause = bus_space_read_4(mh->mh_iot, mh->mh_ioh,
sys/dev/malo/if_malohal.c
762
bus_space_write_4(mh->mh_iot, mh->mh_ioh,
sys/dev/malo/if_malohal.c
763
MALO_REG_A2H_INTERRUPT_CAUSE, cause &~ mh->mh_imask);
sys/dev/malo/if_malohal.c
764
(void) bus_space_read_4(mh->mh_iot, mh->mh_ioh,
sys/dev/malo/if_malohal.c
766
cause &= mh->mh_imask;
sys/dev/malo/if_malohal.c
777
malo_hal_cmddone(struct malo_hal *mh)
sys/dev/malo/if_malohal.c
783
malo_hal_prescan(struct malo_hal *mh)
sys/dev/malo/if_malohal.c
788
MALO_HAL_LOCK(mh);
sys/dev/malo/if_malohal.c
793
ret = malo_hal_execute_cmd(mh, MALO_HOSTCMD_SET_PRE_SCAN);
sys/dev/malo/if_malohal.c
795
MALO_HAL_UNLOCK(mh);
sys/dev/malo/if_malohal.c
801
malo_hal_postscan(struct malo_hal *mh, uint8_t *macaddr, uint8_t ibsson)
sys/dev/malo/if_malohal.c
806
MALO_HAL_LOCK(mh);
sys/dev/malo/if_malohal.c
813
ret = malo_hal_execute_cmd(mh, MALO_HOSTCMD_SET_POST_SCAN);
sys/dev/malo/if_malohal.c
815
MALO_HAL_UNLOCK(mh);
sys/dev/malo/if_malohal.c
821
malo_hal_set_slot(struct malo_hal *mh, int is_short)
sys/dev/malo/if_malohal.c
826
MALO_HAL_LOCK(mh);
sys/dev/malo/if_malohal.c
832
ret = malo_hal_execute_cmd(mh, MALO_HOSTCMD_SET_SLOT);
sys/dev/malo/if_malohal.c
834
MALO_HAL_UNLOCK(mh);
sys/dev/malo/if_malohal.c
840
malo_hal_set_rate(struct malo_hal *mh, uint16_t curmode, uint8_t rate)
sys/dev/malo/if_malohal.c
845
MALO_HAL_LOCK(mh);
sys/dev/malo/if_malohal.c
875
ret = malo_hal_execute_cmd(mh, MALO_HOSTCMD_SET_RATE);
sys/dev/malo/if_malohal.c
877
MALO_HAL_UNLOCK(mh);
sys/dev/malo/if_malohal.c
883
malo_hal_setmcast(struct malo_hal *mh, int nmc, const uint8_t macs[])
sys/dev/malo/if_malohal.c
891
MALO_HAL_LOCK(mh);
sys/dev/malo/if_malohal.c
898
ret = malo_hal_execute_cmd(mh, MALO_HOSTCMD_MAC_MULTICAST_ADR);
sys/dev/malo/if_malohal.c
900
MALO_HAL_UNLOCK(mh);
sys/dev/malo/if_malohal.c
99
struct malo_hal *mh;
sys/dev/malo/if_malohal.h
202
#define MALO_HAL_LOCK(mh) mtx_lock(&mh->mh_mtx)
sys/dev/malo/if_malohal.h
203
#define MALO_HAL_LOCK_ASSERT(mh) mtx_assert(&mh->mh_mtx, MA_OWNED)
sys/dev/malo/if_malohal.h
204
#define MALO_HAL_UNLOCK(mh) mtx_unlock(&mh->mh_mtx)
sys/dev/mwl/if_mwl.c
1111
struct mwl_hal *mh = sc->sc_mh;
sys/dev/mwl/if_mwl.c
1113
mwl_hal_setantenna(mh, WL_ANTENNATYPE_RX, sc->sc_rxantenna);
sys/dev/mwl/if_mwl.c
1114
mwl_hal_setantenna(mh, WL_ANTENNATYPE_TX, sc->sc_txantenna);
sys/dev/mwl/if_mwl.c
1115
mwl_hal_setradio(mh, 1, WL_AUTO_PREAMBLE);
sys/dev/mwl/if_mwl.c
1119
mwl_hal_setrateadaptmode(mh, 0);
sys/dev/mwl/if_mwl.c
1120
mwl_hal_setoptimizationlevel(mh,
sys/dev/mwl/if_mwl.c
1123
mwl_hal_setregioncode(mh, mwl_map2regioncode(&ic->ic_regdomain));
sys/dev/mwl/if_mwl.c
1125
mwl_hal_setaggampduratemode(mh, 1, 80); /* XXX */
sys/dev/mwl/if_mwl.c
1126
mwl_hal_setcfend(mh, 0); /* XXX */
sys/dev/mwl/if_mwl.c
1134
struct mwl_hal *mh = sc->sc_mh;
sys/dev/mwl/if_mwl.c
1182
mwl_hal_intrset(mh, sc->sc_imask);
sys/dev/mwl/if_mwl.c
1247
struct mwl_hal *mh = sc->sc_mh;
sys/dev/mwl/if_mwl.c
1251
mwl_hal_intrset(mh, 0); /* disable interrupts */
sys/dev/mwl/if_mwl.c
1253
mwl_hal_intrset(mh, sc->sc_imask);
sys/dev/mwl/if_mwl.c
1760
struct mwl_hal *mh = sc->sc_mh;
sys/dev/mwl/if_mwl.c
1762
mwl_hal_setpromisc(mh, ic->ic_promisc > 0);
sys/dev/mwl/if_mwl.c
1804
struct mwl_hal *mh = sc->sc_mh;
sys/dev/mwl/if_mwl.c
1831
mwl_hal_setgprot(mh, prot);
sys/dev/mwl/if_mwl.c
288
struct mwl_hal *mh;
sys/dev/mwl/if_mwl.c
2894
struct mwl_hal *mh = sc->sc_mh;
sys/dev/mwl/if_mwl.c
2906
if (mwl_hal_setedcaparams(mh, txq->qnum, cwmin, cwmax, aifs, txoplim)) {
sys/dev/mwl/if_mwl.c
299
mh = mwl_hal_attach(sc->sc_dev, devid,
sys/dev/mwl/if_mwl.c
301
if (mh == NULL) {
sys/dev/mwl/if_mwl.c
306
sc->sc_mh = mh;
sys/dev/mwl/if_mwl.c
312
if (mwl_hal_fwload(mh, NULL) != 0) {
sys/dev/mwl/if_mwl.c
317
if (mwl_hal_gethwspecs(mh, &sc->sc_hwspecs) != 0) {
sys/dev/mwl/if_mwl.c
3799
struct mwl_hal *mh = sc->sc_mh;
sys/dev/mwl/if_mwl.c
3813
mwl_hal_intrset(mh, 0); /* disable interrupts */
sys/dev/mwl/if_mwl.c
3817
mwl_hal_setchannel(mh, &hchan);
sys/dev/mwl/if_mwl.c
3828
mwl_hal_settxpower(mh, &hchan, maxtxpow / 2);
sys/dev/mwl/if_mwl.c
3848
mwl_hal_intrset(mh, sc->sc_imask);
sys/dev/mwl/if_mwl.c
4090
struct mwl_hal *mh = sc->sc_mh;
sys/dev/mwl/if_mwl.c
4104
mwl_hal_setradardetection(mh, DR_CHK_CHANNEL_AVAILABLE_STOP);
sys/dev/mwl/if_mwl.c
4107
mwl_hal_setradardetection(mh, DR_DFS_DISABLE);
sys/dev/mwl/if_mwl.c
4138
mwl_hal_setradardetection(mh, DR_CHK_CHANNEL_AVAILABLE_START);
sys/dev/mwl/if_mwl.c
4170
mwl_hal_setradardetection(mh,
sys/dev/mwl/if_mwl.c
4199
mwl_hal_setdwds(mh, 1);
sys/dev/mwl/if_mwl.c
4217
mwl_hal_setcsmode(mh, CSMODE_AGGRESSIVE);
sys/dev/mwl/if_mwl.c
4219
mwl_hal_setcsmode(mh, CSMODE_AUTO_ENA);
sys/dev/mwl/if_mwl.c
4230
mwl_hal_setdwds(mh, 0);
sys/dev/mwl/if_mwl.c
4328
struct mwl_hal *mh = sc->sc_mh;
sys/dev/mwl/if_mwl.c
4337
mwl_hal_getchannelinfo(mh, MWL_FREQ_BAND_2DOT4GHZ,
sys/dev/mwl/if_mwl.c
4341
mwl_hal_getchannelinfo(mh, MWL_FREQ_BAND_5GHZ,
sys/dev/mwl/if_mwl.c
4602
struct mwl_hal *mh = sc->sc_mh;
sys/dev/mwl/if_mwl.c
4637
if (mwl_hal_getdiagstate(mh, id, indata, insize, &outdata, &outsize)) {
sys/dev/mwl/if_mwl.c
4657
struct mwl_hal *mh = sc->sc_mh;
sys/dev/mwl/if_mwl.c
4662
if (md->md_id == 0 && mwl_hal_fwload(mh, NULL) != 0) {
sys/dev/mwl/if_mwl.c
4666
if (mwl_hal_gethwspecs(mh, &sc->sc_hwspecs) != 0) {
sys/dev/mwl/if_mwl.c
516
mwl_hal_detach(mh);
sys/dev/mwl/if_mwl.c
594
struct mwl_hal *mh = sc->sc_mh;
sys/dev/mwl/if_mwl.c
606
hvap = mwl_hal_newvap(mh, MWL_HAL_AP, mac);
sys/dev/mwl/if_mwl.c
616
hvap = mwl_hal_newvap(mh, MWL_HAL_STA, mac);
sys/dev/mwl/if_mwl.c
720
struct mwl_hal *mh = sc->sc_mh;
sys/dev/mwl/if_mwl.c
727
mwl_hal_intrset(mh, 0); /* disable interrupts */
sys/dev/mwl/if_mwl.c
753
mwl_hal_intrset(mh, sc->sc_imask);
sys/dev/mwl/if_mwl.c
796
struct mwl_hal *mh = sc->sc_mh;
sys/dev/mwl/if_mwl.c
810
mwl_hal_getisr(mh, &status); /* NB: clears ISR too */
sys/dev/mwl/if_mwl.c
823
mwl_hal_cmddone(mh);
sys/dev/mwl/if_mwl.c
893
struct mwl_hal *mh = sc->sc_mh;
sys/dev/mwl/if_mwl.c
899
if (mwl_hal_getwatchdogbitmap(mh, &bitmap) != 0) {
sys/dev/mwl/if_mwl.c
910
sp = mwl_hal_bastream_lookup(mh, bitmap);
sys/dev/mwl/if_mwl.c
923
sp = mwl_hal_bastream_lookup(mh, bitmap);
sys/dev/mwl/mwlhal.c
1009
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_FIXED_RATE);
sys/dev/mwl/mwlhal.c
1010
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1020
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1027
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1033
retval = mwlExecuteCmd(mh, HostCmd_CMD_802_11_SET_SLOT);
sys/dev/mwl/mwlhal.c
1034
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1041
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1045
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1058
retval = mwlExecuteCmd(mh, HostCmd_CMD_802_11_RF_TX_POWER);
sys/dev/mwl/mwlhal.c
1059
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1064
findchannel(const struct mwl_hal_priv *mh, const MWL_HAL_CHANNEL *c)
sys/dev/mwl/mwlhal.c
1073
ci = &mh->mh_40M;
sys/dev/mwl/mwlhal.c
1077
ci = &mh->mh_20M;
sys/dev/mwl/mwlhal.c
1082
ci = &mh->mh_40M_5G;
sys/dev/mwl/mwlhal.c
1086
ci = &mh->mh_20M_5G;
sys/dev/mwl/mwlhal.c
1100
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1105
hc = findchannel(mh, c);
sys/dev/mwl/mwlhal.c
1108
device_printf(mh->mh_dev,
sys/dev/mwl/mwlhal.c
1115
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1129
retval = mwlExecuteCmd(mh, HostCmd_CMD_802_11_RF_TX_POWER);
sys/dev/mwl/mwlhal.c
1130
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1138
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1142
*ci = (chw == MWL_CH_20_MHz_WIDTH) ? &mh->mh_20M : &mh->mh_40M;
sys/dev/mwl/mwlhal.c
1146
&mh->mh_20M_5G : &mh->mh_40M_5G;
sys/dev/mwl/mwlhal.c
1157
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1164
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1171
retval = mwlExecuteCmd(mh, HostCmd_CMD_MAC_MULTICAST_ADR);
sys/dev/mwl/mwlhal.c
1172
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1180
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1184
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1221
retval = mwlExecuteCmd(mh, HostCmd_CMD_UPDATE_ENCRYPTION);
sys/dev/mwl/mwlhal.c
1222
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1229
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1233
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1246
retval = mwlExecuteCmd(mh, HostCmd_CMD_UPDATE_ENCRYPTION);
sys/dev/mwl/mwlhal.c
1247
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1255
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1264
return mwlExecuteCmd(mh, HostCmd_CMD_SET_MAC_ADDR);
sys/dev/mwl/mwlhal.c
127
struct mwl_hal_priv *mh; /* back pointer */
sys/dev/mwl/mwlhal.c
1270
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1273
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1275
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1282
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1287
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1294
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_BEACON);
sys/dev/mwl/mwlhal.c
1295
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1302
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1306
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1311
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_POWERSAVESTATION);
sys/dev/mwl/mwlhal.c
1312
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1319
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1323
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1328
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_TIM);
sys/dev/mwl/mwlhal.c
1329
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1337
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1338
HostCmd_FW_SET_AID *pCmd = (HostCmd_FW_SET_AID *) &mh->mh_cmdbuf[0];
sys/dev/mwl/mwlhal.c
1341
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1346
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_AID);
sys/dev/mwl/mwlhal.c
1347
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1354
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1358
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
136
#define MWLVAP(_vap) ((_vap)->mh)
sys/dev/mwl/mwlhal.c
1364
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_RF_CHANNEL);
sys/dev/mwl/mwlhal.c
1365
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1374
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1378
MWL_HAL_LOCK_ASSERT(mh);
sys/dev/mwl/mwlhal.c
1399
retval = mwlExecuteCmd(mh, HostCmd_CMD_BASTREAM);
sys/dev/mwl/mwlhal.c
1417
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1421
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1422
if (mh->mh_bastreams == 0) {
sys/dev/mwl/mwlhal.c
1424
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1427
for (s = 0; (mh->mh_bastreams & (1<<s)) == 0; s++)
sys/dev/mwl/mwlhal.c
1430
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1433
sp = &mh->mh_streams[s];
sys/dev/mwl/mwlhal.c
1434
mh->mh_bastreams &= ~(1<<s);
sys/dev/mwl/mwlhal.c
1442
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1449
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1453
if (mh->mh_bastreams & (1<<s))
sys/dev/mwl/mwlhal.c
1455
return &mh->mh_streams[s].public;
sys/dev/mwl/mwlhal.c
1466
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1471
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1500
retval = mwlExecuteCmd(mh, HostCmd_CMD_BASTREAM);
sys/dev/mwl/mwlhal.c
1512
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1519
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1528
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1535
retval = mwlExecuteCmd(mh, HostCmd_CMD_BASTREAM);
sys/dev/mwl/mwlhal.c
1539
mh->mh_bastreams |= 1<<sp->stream;
sys/dev/mwl/mwlhal.c
1543
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1552
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1557
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1562
retval = mwlExecuteCmd(mh, HostCmd_CMD_GET_SEQNO);
sys/dev/mwl/mwlhal.c
1565
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1572
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1576
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1580
retval = mwlExecuteCmd(mh, HostCmd_CMD_GET_WATCHDOG_BITMAP);
sys/dev/mwl/mwlhal.c
1587
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1597
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1601
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1608
retval = mwlExecuteCmd(mh, HostCmd_CMD_AMPDU_RETRY_RATEDROP_MODE);
sys/dev/mwl/mwlhal.c
1609
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1616
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1620
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1625
retval = mwlExecuteCmd(mh, HostCmd_CMD_AMPDU_RETRY_RATEDROP_MODE);
sys/dev/mwl/mwlhal.c
1626
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1638
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1642
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1647
retval = mwlExecuteCmd(mh, HostCmd_CMD_CFEND_ENABLE);
sys/dev/mwl/mwlhal.c
1648
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1656
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1659
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1662
retval = mwlExecuteCmd(mh, HostCmd_CMD_DWDS_ENABLE);
sys/dev/mwl/mwlhal.c
1663
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1687
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1691
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1704
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_NEW_STN);
sys/dev/mwl/mwlhal.c
1707
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1715
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1719
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1726
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_NEW_STN);
sys/dev/mwl/mwlhal.c
1731
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1742
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1746
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1755
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_KEEP_ALIVE);
sys/dev/mwl/mwlhal.c
1756
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1763
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1769
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1773
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_APMODE);
sys/dev/mwl/mwlhal.c
1774
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1781
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1785
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1790
retval = mwlExecuteCmd(mh, HostCmd_CMD_BSS_START);
sys/dev/mwl/mwlhal.c
1795
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1802
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1806
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1810
retval = mwlExecuteCmd(mh, HostCmd_CMD_BSS_START);
sys/dev/mwl/mwlhal.c
1813
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1820
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1824
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1829
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_G_PROTECT_FLAG);
sys/dev/mwl/mwlhal.c
1830
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1837
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1841
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1846
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_WMM_MODE);
sys/dev/mwl/mwlhal.c
1847
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1855
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1859
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1874
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_EDCA_PARAMS);
sys/dev/mwl/mwlhal.c
1875
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1883
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1887
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1893
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_RATE_ADAPT_MODE);
sys/dev/mwl/mwlhal.c
1894
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1901
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1905
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1911
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_LINKADAPT_CS_MODE);
sys/dev/mwl/mwlhal.c
1912
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1919
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1924
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1929
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_N_PROTECT_FLAG);
sys/dev/mwl/mwlhal.c
1930
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1937
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
1941
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1946
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_N_PROTECT_OPMODE);
sys/dev/mwl/mwlhal.c
1947
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1954
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1958
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1963
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_OPTIMIZATION_LEVEL);
sys/dev/mwl/mwlhal.c
1964
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
197
MWL_HAL_LOCK(struct mwl_hal_priv *mh)
sys/dev/mwl/mwlhal.c
1972
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
1976
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
1982
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_MIMOPSHT);
sys/dev/mwl/mwlhal.c
1983
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
1988
mwlGetCalTable(struct mwl_hal_priv *mh, uint8_t annex, uint8_t index)
sys/dev/mwl/mwlhal.c
199
mtx_lock(&mh->mh_mtx);
sys/dev/mwl/mwlhal.c
1993
MWL_HAL_LOCK_ASSERT(mh);
sys/dev/mwl/mwlhal.c
2000
retval = mwlExecuteCmd(mh, HostCmd_CMD_GET_CALTABLE);
sys/dev/mwl/mwlhal.c
203
MWL_HAL_LOCK_ASSERT(struct mwl_hal_priv *mh)
sys/dev/mwl/mwlhal.c
205
mtx_assert(&mh->mh_mtx, MA_OWNED);
sys/dev/mwl/mwlhal.c
209
MWL_HAL_UNLOCK(struct mwl_hal_priv *mh)
sys/dev/mwl/mwlhal.c
2097
mwlGetPwrCalTable(struct mwl_hal_priv *mh)
sys/dev/mwl/mwlhal.c
2103
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
2105
data = ((const HostCmd_FW_GET_CALTABLE *) mh->mh_cmdbuf)->calTbl;
sys/dev/mwl/mwlhal.c
2106
if (mwlGetCalTable(mh, 33, 0) == 0) {
sys/dev/mwl/mwlhal.c
211
mtx_unlock(&mh->mh_mtx);
sys/dev/mwl/mwlhal.c
2113
get2Ghz(&mh->mh_20M, &data[12], len);
sys/dev/mwl/mwlhal.c
2115
if (mwlGetCalTable(mh, 34, 0) == 0) {
sys/dev/mwl/mwlhal.c
2122
ci = &mh->mh_40M;
sys/dev/mwl/mwlhal.c
2125
if (mwlGetCalTable(mh, 35, 0) == 0) {
sys/dev/mwl/mwlhal.c
2132
get5Ghz(&mh->mh_20M_5G, &data[20], len);
sys/dev/mwl/mwlhal.c
2134
if (mwlGetCalTable(mh, 36, 0) == 0) {
sys/dev/mwl/mwlhal.c
2141
ci = &mh->mh_40M_5G;
sys/dev/mwl/mwlhal.c
2144
mh->mh_flags |= MHF_CALDATA;
sys/dev/mwl/mwlhal.c
2145
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
215
RD4(struct mwl_hal_priv *mh, bus_size_t off)
sys/dev/mwl/mwlhal.c
2152
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
2155
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
2156
retval = mwlGetCalTable(mh, 0, 0);
sys/dev/mwl/mwlhal.c
2159
(const HostCmd_FW_GET_CALTABLE *) mh->mh_cmdbuf;
sys/dev/mwl/mwlhal.c
2162
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
2169
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
217
return bus_space_read_4(mh->public.mh_iot, mh->public.mh_ioh, off);
sys/dev/mwl/mwlhal.c
2172
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
2173
v = RD4(mh, MACREG_REG_PROMISCUOUS);
sys/dev/mwl/mwlhal.c
2174
WR4(mh, MACREG_REG_PROMISCUOUS, ena ? v | 1 : v &~ 1);
sys/dev/mwl/mwlhal.c
2175
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
2182
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
2185
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
2186
v = RD4(mh, MACREG_REG_PROMISCUOUS);
sys/dev/mwl/mwlhal.c
2187
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
2194
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
2198
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
2202
retval = mwlExecuteCmd(mh, HostCmd_CMD_GET_BEACON);
sys/dev/mwl/mwlhal.c
2208
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
221
WR4(struct mwl_hal_priv *mh, bus_size_t off, uint32_t val)
sys/dev/mwl/mwlhal.c
2215
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
2219
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
2223
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_RIFS);
sys/dev/mwl/mwlhal.c
2224
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
223
bus_space_write_4(mh->public.mh_iot, mh->public.mh_ioh, off, val);
sys/dev/mwl/mwlhal.c
2233
getRFReg(struct mwl_hal_priv *mh, int flag, uint32_t reg, uint32_t *val)
sys/dev/mwl/mwlhal.c
2238
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
2244
retval = mwlExecuteCmd(mh, HostCmd_CMD_RF_REG_ACCESS);
sys/dev/mwl/mwlhal.c
2247
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
2252
getBBReg(struct mwl_hal_priv *mh, int flag, uint32_t reg, uint32_t *val)
sys/dev/mwl/mwlhal.c
2257
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
2263
retval = mwlExecuteCmd(mh, HostCmd_CMD_BBP_REG_ACCESS);
sys/dev/mwl/mwlhal.c
2266
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
2271
mwl_hal_getregdump(struct mwl_hal_priv *mh, const MWL_DIAG_REGRANGE *regs,
sys/dev/mwl/mwlhal.c
2284
*dp = RD4(mh, r);
sys/dev/mwl/mwlhal.c
2286
getBBReg(mh, HostCmd_ACT_GEN_READ,
sys/dev/mwl/mwlhal.c
2289
getRFReg(mh, HostCmd_ACT_GEN_READ,
sys/dev/mwl/mwlhal.c
2292
*dp = RD4(mh, r);
sys/dev/mwl/mwlhal.c
2308
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
2312
*result = &mh->mh_revs;
sys/dev/mwl/mwlhal.c
2313
*resultsize = sizeof(mh->mh_revs);
sys/dev/mwl/mwlhal.c
2316
*resultsize = mwl_hal_getregdump(mh, args, *result, *resultsize);
sys/dev/mwl/mwlhal.c
2319
FWCmdHdr *pCmd = (FWCmdHdr *) &mh->mh_cmdbuf[0];
sys/dev/mwl/mwlhal.c
2322
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
2324
retval = mwlExecuteCmd(mh, le16toh(pCmd->Cmd));
sys/dev/mwl/mwlhal.c
2326
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
2331
device_printf(mh->mh_dev, "problem loading fw image\n");
sys/dev/mwl/mwlhal.c
2344
mwlSendCmd(struct mwl_hal_priv *mh)
sys/dev/mwl/mwlhal.c
2347
bus_dmamap_sync(mh->mh_dmat, mh->mh_dmamap,
sys/dev/mwl/mwlhal.c
2350
WR4(mh, MACREG_REG_GEN_PTR, mh->mh_cmdaddr);
sys/dev/mwl/mwlhal.c
2351
RD4(mh, MACREG_REG_INT_CODE);
sys/dev/mwl/mwlhal.c
2353
WR4(mh, MACREG_REG_H2A_INTERRUPT_EVENTS, MACREG_H2ARIC_BIT_DOOR_BELL);
sys/dev/mwl/mwlhal.c
2357
mwlWaitForCmdComplete(struct mwl_hal_priv *mh, uint16_t cmdCode)
sys/dev/mwl/mwlhal.c
2363
if (mh->mh_cmdbuf[0] == le16toh(cmdCode))
sys/dev/mwl/mwlhal.c
2372
mwlExecuteCmd(struct mwl_hal_priv *mh, unsigned short cmd)
sys/dev/mwl/mwlhal.c
2375
MWL_HAL_LOCK_ASSERT(mh);
sys/dev/mwl/mwlhal.c
2377
if ((mh->mh_flags & MHF_FWHANG) &&
sys/dev/mwl/mwlhal.c
2378
(mh->mh_debug & MWL_HAL_DEBUG_IGNHANG) == 0) {
sys/dev/mwl/mwlhal.c
2380
device_printf(mh->mh_dev, "firmware hung, skipping cmd %s\n",
sys/dev/mwl/mwlhal.c
2383
device_printf(mh->mh_dev, "firmware hung, skipping cmd 0x%x\n",
sys/dev/mwl/mwlhal.c
2388
if (RD4(mh, MACREG_REG_INT_CODE) == 0xffffffff) {
sys/dev/mwl/mwlhal.c
2389
device_printf(mh->mh_dev, "%s: device not present!\n",
sys/dev/mwl/mwlhal.c
2394
if (mh->mh_debug & MWL_HAL_DEBUG_SENDCMD)
sys/dev/mwl/mwlhal.c
2395
dumpresult(mh, 0);
sys/dev/mwl/mwlhal.c
2397
mwlSendCmd(mh);
sys/dev/mwl/mwlhal.c
2398
if (!mwlWaitForCmdComplete(mh, 0x8000 | cmd)) {
sys/dev/mwl/mwlhal.c
2400
device_printf(mh->mh_dev,
sys/dev/mwl/mwlhal.c
2403
device_printf(mh->mh_dev,
sys/dev/mwl/mwlhal.c
2406
mh->mh_flags |= MHF_FWHANG;
sys/dev/mwl/mwlhal.c
2409
bus_dmamap_sync(mh->mh_dmat, mh->mh_dmamap,
sys/dev/mwl/mwlhal.c
2412
if (mh->mh_debug & MWL_HAL_DEBUG_CMDDONE)
sys/dev/mwl/mwlhal.c
2413
dumpresult(mh, 1);
sys/dev/mwl/mwlhal.c
2432
mwlFwReset(struct mwl_hal_priv *mh)
sys/dev/mwl/mwlhal.c
2434
if (RD4(mh, MACREG_REG_INT_CODE) == 0xffffffff) {
sys/dev/mwl/mwlhal.c
2435
device_printf(mh->mh_dev, "%s: device not present!\n",
sys/dev/mwl/mwlhal.c
2439
WR4(mh, MACREG_REG_H2A_INTERRUPT_EVENTS, ISR_RESET);
sys/dev/mwl/mwlhal.c
2440
mh->mh_flags &= ~MHF_FWHANG;
sys/dev/mwl/mwlhal.c
2444
mwlTriggerPciCmd(struct mwl_hal_priv *mh)
sys/dev/mwl/mwlhal.c
2447
bus_dmamap_sync(mh->mh_dmat, mh->mh_dmamap, BUS_DMASYNC_PREWRITE);
sys/dev/mwl/mwlhal.c
2449
WR4(mh, MACREG_REG_GEN_PTR, mh->mh_cmdaddr);
sys/dev/mwl/mwlhal.c
2450
RD4(mh, MACREG_REG_INT_CODE);
sys/dev/mwl/mwlhal.c
2452
WR4(mh, MACREG_REG_INT_CODE, 0x00);
sys/dev/mwl/mwlhal.c
2453
RD4(mh, MACREG_REG_INT_CODE);
sys/dev/mwl/mwlhal.c
2455
WR4(mh, MACREG_REG_H2A_INTERRUPT_EVENTS, MACREG_H2ARIC_BIT_DOOR_BELL);
sys/dev/mwl/mwlhal.c
2456
RD4(mh, MACREG_REG_INT_CODE);
sys/dev/mwl/mwlhal.c
246
struct mwl_hal_priv *mh;
sys/dev/mwl/mwlhal.c
2460
mwlWaitFor(struct mwl_hal_priv *mh, uint32_t val)
sys/dev/mwl/mwlhal.c
2466
if (RD4(mh, MACREG_REG_INT_CODE) == val)
sys/dev/mwl/mwlhal.c
2476
mwlSendBlock(struct mwl_hal_priv *mh, int bsize, const void *data, size_t dsize)
sys/dev/mwl/mwlhal.c
2478
mh->mh_cmdbuf[0] = htole16(HostCmd_CMD_CODE_DNLD);
sys/dev/mwl/mwlhal.c
2479
mh->mh_cmdbuf[1] = htole16(bsize);
sys/dev/mwl/mwlhal.c
2480
memcpy(&mh->mh_cmdbuf[4], data , dsize);
sys/dev/mwl/mwlhal.c
2481
mwlTriggerPciCmd(mh);
sys/dev/mwl/mwlhal.c
2483
if (mwlWaitFor(mh, MACREG_INT_CODE_CMD_FINISHED)) {
sys/dev/mwl/mwlhal.c
2484
WR4(mh, MACREG_REG_INT_CODE, 0);
sys/dev/mwl/mwlhal.c
2487
device_printf(mh->mh_dev,
sys/dev/mwl/mwlhal.c
2489
__func__, RD4(mh, MACREG_REG_INT_CODE));
sys/dev/mwl/mwlhal.c
2497
mwlSendBlock2(struct mwl_hal_priv *mh, const void *data, size_t dsize)
sys/dev/mwl/mwlhal.c
2499
memcpy(&mh->mh_cmdbuf[0], data, dsize);
sys/dev/mwl/mwlhal.c
250
mh = malloc(sizeof(struct mwl_hal_priv), M_DEVBUF, M_NOWAIT | M_ZERO);
sys/dev/mwl/mwlhal.c
2500
mwlTriggerPciCmd(mh);
sys/dev/mwl/mwlhal.c
2501
if (mwlWaitFor(mh, MACREG_INT_CODE_CMD_FINISHED)) {
sys/dev/mwl/mwlhal.c
2502
WR4(mh, MACREG_REG_INT_CODE, 0);
sys/dev/mwl/mwlhal.c
2505
device_printf(mh->mh_dev,
sys/dev/mwl/mwlhal.c
2507
__func__, RD4(mh, MACREG_REG_INT_CODE));
sys/dev/mwl/mwlhal.c
251
if (mh == NULL)
sys/dev/mwl/mwlhal.c
2512
mwlPokeSdramController(struct mwl_hal_priv *mh, int SDRAMSIZE_Addr)
sys/dev/mwl/mwlhal.c
2515
WR4(mh, 0x00006014, 0x33);
sys/dev/mwl/mwlhal.c
2516
WR4(mh, 0x00006018, 0xa3a2632);
sys/dev/mwl/mwlhal.c
2517
WR4(mh, 0x00006010, SDRAMSIZE_Addr);
sys/dev/mwl/mwlhal.c
2523
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
253
mh->mh_dev = dev;
sys/dev/mwl/mwlhal.c
2538
device_printf(mh->mh_dev,
sys/dev/mwl/mwlhal.c
254
mh->public.mh_ioh = ioh;
sys/dev/mwl/mwlhal.c
2545
device_printf(mh->mh_dev, "firmware image %s too small\n",
sys/dev/mwl/mwlhal.c
255
mh->public.mh_iot = iot;
sys/dev/mwl/mwlhal.c
2557
device_printf(mh->mh_dev,
sys/dev/mwl/mwlhal.c
2565
mwlFwReset(mh);
sys/dev/mwl/mwlhal.c
2567
WR4(mh, MACREG_REG_A2H_INTERRUPT_CLEAR_SEL, MACREG_A2HRIC_BIT_MASK);
sys/dev/mwl/mwlhal.c
2568
WR4(mh, MACREG_REG_A2H_INTERRUPT_CAUSE, 0x00);
sys/dev/mwl/mwlhal.c
2569
WR4(mh, MACREG_REG_A2H_INTERRUPT_MASK, 0x00);
sys/dev/mwl/mwlhal.c
257
mh->mh_streams[i].public.txq = ba2qid[i];
sys/dev/mwl/mwlhal.c
2570
WR4(mh, MACREG_REG_A2H_INTERRUPT_STATUS_MASK, MACREG_A2HRIC_BIT_MASK);
sys/dev/mwl/mwlhal.c
2571
if (mh->mh_SDRAMSIZE_Addr != 0) {
sys/dev/mwl/mwlhal.c
2573
mwlPokeSdramController(mh, mh->mh_SDRAMSIZE_Addr);
sys/dev/mwl/mwlhal.c
2575
device_printf(mh->mh_dev, "load %s firmware image (%u bytes)\n",
sys/dev/mwl/mwlhal.c
258
mh->mh_streams[i].stream = i;
sys/dev/mwl/mwlhal.c
2588
if (!mwlSendBlock(mh, fwboot->datasize, fwboot->data, fwboot->datasize) ||
sys/dev/mwl/mwlhal.c
2589
!mwlSendBlock(mh, 0, NULL, 0)) {
sys/dev/mwl/mwlhal.c
2594
if (mh->mh_SDRAMSIZE_Addr != 0) {
sys/dev/mwl/mwlhal.c
2596
mwlPokeSdramController(mh, mh->mh_SDRAMSIZE_Addr);
sys/dev/mwl/mwlhal.c
260
if (mh->mh_streams[i].public.txq < MWL_BAQID_MAX)
sys/dev/mwl/mwlhal.c
2600
WR4(mh, MACREG_REG_INT_CODE, 0);
sys/dev/mwl/mwlhal.c
2601
blocksize = RD4(mh, MACREG_REG_SCRATCH);
sys/dev/mwl/mwlhal.c
261
qid2ba[mh->mh_streams[i].public.txq] = i;
sys/dev/mwl/mwlhal.c
2629
if (!mwlSendBlock2(mh, fp, nbytes)) {
sys/dev/mwl/mwlhal.c
2639
if (!mwlSendBlock(mh, FW_DOWNLOAD_BLOCK_SIZE, fp, nbytes)) {
sys/dev/mwl/mwlhal.c
264
"stream %d\n", mh->mh_streams[i].public.txq, i);
sys/dev/mwl/mwlhal.c
2655
mh->mh_cmdbuf[1] = 0;
sys/dev/mwl/mwlhal.c
2660
mwlTriggerPciCmd(mh);
sys/dev/mwl/mwlhal.c
2662
WR4(mh, MACREG_REG_GEN_PTR, OpMode);
sys/dev/mwl/mwlhal.c
2664
if (RD4(mh, MACREG_REG_INT_CODE) == FwReadySignature) {
sys/dev/mwl/mwlhal.c
2665
WR4(mh, MACREG_REG_INT_CODE, 0x00);
sys/dev/mwl/mwlhal.c
2666
return mwlResetHalState(mh);
sys/dev/mwl/mwlhal.c
2671
mwlFwReset(mh);
sys/dev/mwl/mwlhal.c
269
hvap = &mh->mh_vaps[i];
sys/dev/mwl/mwlhal.c
274
hvap = &mh->mh_vaps[i];
sys/dev/mwl/mwlhal.c
2742
dumpresult(struct mwl_hal_priv *mh, int showresult)
sys/dev/mwl/mwlhal.c
2744
const FWCmdHdr *h = (const FWCmdHdr *)mh->mh_cmdbuf;
sys/dev/mwl/mwlhal.c
2750
device_printf(mh->mh_dev, "Cmd %s Length %d SeqNum %d MacId %d",
sys/dev/mwl/mwlhal.c
2753
device_printf(mh->mh_dev, "Cmd %s Length %d SeqNum %d",
sys/dev/mwl/mwlhal.c
279
hvap = &mh->mh_vaps[i];
sys/dev/mwl/mwlhal.c
284
hvap = &mh->mh_vaps[i];
sys/dev/mwl/mwlhal.c
289
mh->mh_revs.mh_devid = devid;
sys/dev/mwl/mwlhal.c
290
snprintf(mh->mh_mtxname, sizeof(mh->mh_mtxname),
sys/dev/mwl/mwlhal.c
292
mtx_init(&mh->mh_mtx, mh->mh_mtxname, NULL, MTX_DEF);
sys/dev/mwl/mwlhal.c
310
&mh->mh_dmat);
sys/dev/mwl/mwlhal.c
318
error = bus_dmamem_alloc(mh->mh_dmat, (void**) &mh->mh_cmdbuf,
sys/dev/mwl/mwlhal.c
320
&mh->mh_dmamap);
sys/dev/mwl/mwlhal.c
327
error = bus_dmamap_load(mh->mh_dmat, mh->mh_dmamap,
sys/dev/mwl/mwlhal.c
328
mh->mh_cmdbuf, MWL_CMDBUF_SIZE,
sys/dev/mwl/mwlhal.c
329
mwl_hal_load_cb, &mh->mh_cmdaddr,
sys/dev/mwl/mwlhal.c
349
mh->mh_SDRAMSIZE_Addr = 0x40fe70b7; /* 8M SDRAM */
sys/dev/mwl/mwlhal.c
352
mh->mh_SDRAMSIZE_Addr = 0x40fc70b7; /* 16M SDRAM */
sys/dev/mwl/mwlhal.c
357
return &mh->public;
sys/dev/mwl/mwlhal.c
359
bus_dmamem_free(mh->mh_dmat, mh->mh_cmdbuf, mh->mh_dmamap);
sys/dev/mwl/mwlhal.c
361
bus_dma_tag_destroy(mh->mh_dmat);
sys/dev/mwl/mwlhal.c
363
mtx_destroy(&mh->mh_mtx);
sys/dev/mwl/mwlhal.c
364
free(mh, M_DEVBUF);
sys/dev/mwl/mwlhal.c
371
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
373
bus_dmamem_free(mh->mh_dmat, mh->mh_cmdbuf, mh->mh_dmamap);
sys/dev/mwl/mwlhal.c
374
bus_dma_tag_destroy(mh->mh_dmat);
sys/dev/mwl/mwlhal.c
375
mtx_destroy(&mh->mh_mtx);
sys/dev/mwl/mwlhal.c
376
free(mh, M_DEVBUF);
sys/dev/mwl/mwlhal.c
383
mwlResetHalState(struct mwl_hal_priv *mh)
sys/dev/mwl/mwlhal.c
388
mh->mh_bastreams = (1<<MWL_BASTREAMS_MAX)-1;
sys/dev/mwl/mwlhal.c
390
mh->mh_vaps[i].mh = NULL;
sys/dev/mwl/mwlhal.c
394
mh->mh_RTSSuccesses = 0;
sys/dev/mwl/mwlhal.c
395
mh->mh_RTSFailures = 0;
sys/dev/mwl/mwlhal.c
396
mh->mh_RxDuplicateFrames = 0;
sys/dev/mwl/mwlhal.c
397
mh->mh_FCSErrorCount = 0;
sys/dev/mwl/mwlhal.c
403
if ((mh->mh_flags & MHF_CALDATA) == 0)
sys/dev/mwl/mwlhal.c
404
mwlGetPwrCalTable(mh);
sys/dev/mwl/mwlhal.c
412
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
416
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
419
vap = &mh->mh_vaps[i];
sys/dev/mwl/mwlhal.c
420
if (vap->vap_type == type && vap->mh == NULL) {
sys/dev/mwl/mwlhal.c
421
vap->mh = mh;
sys/dev/mwl/mwlhal.c
426
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
434
vap->mh = NULL;
sys/dev/mwl/mwlhal.c
444
mwl_hal_setdebug(struct mwl_hal *mh, int debug)
sys/dev/mwl/mwlhal.c
446
MWLPRIV(mh)->mh_debug = debug;
sys/dev/mwl/mwlhal.c
450
mwl_hal_getdebug(struct mwl_hal *mh)
sys/dev/mwl/mwlhal.c
452
return MWLPRIV(mh)->mh_debug;
sys/dev/mwl/mwlhal.c
456
mwl_hal_setbastreams(struct mwl_hal *mh, int mask)
sys/dev/mwl/mwlhal.c
458
MWLPRIV(mh)->mh_bastreams = mask & ((1<<MWL_BASTREAMS_MAX)-1);
sys/dev/mwl/mwlhal.c
462
mwl_hal_getbastreams(struct mwl_hal *mh)
sys/dev/mwl/mwlhal.c
464
return MWLPRIV(mh)->mh_bastreams;
sys/dev/mwl/mwlhal.c
468
mwl_hal_ismbsscapable(struct mwl_hal *mh)
sys/dev/mwl/mwlhal.c
470
return (MWLPRIV(mh)->mh_flags & MHF_MBSS) != 0;
sys/dev/mwl/mwlhal.c
482
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
485
cause = RD4(mh, MACREG_REG_A2H_INTERRUPT_CAUSE);
sys/dev/mwl/mwlhal.c
487
device_printf(mh->mh_dev, "%s: cause 0x%x\n", __func__, cause);
sys/dev/mwl/mwlhal.c
491
WR4(mh, MACREG_REG_A2H_INTERRUPT_CAUSE,
sys/dev/mwl/mwlhal.c
492
cause &~ mh->public.mh_imask);
sys/dev/mwl/mwlhal.c
493
RD4(mh, MACREG_REG_INT_CODE); /* XXX flush write? */
sys/dev/mwl/mwlhal.c
505
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
507
WR4(mh, MACREG_REG_A2H_INTERRUPT_MASK, 0);
sys/dev/mwl/mwlhal.c
508
RD4(mh, MACREG_REG_INT_CODE);
sys/dev/mwl/mwlhal.c
510
mh->public.mh_imask = mask;
sys/dev/mwl/mwlhal.c
511
WR4(mh, MACREG_REG_A2H_INTERRUPT_MASK, mask);
sys/dev/mwl/mwlhal.c
512
RD4(mh, MACREG_REG_INT_CODE);
sys/dev/mwl/mwlhal.c
525
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
528
WR4(mh, MACREG_REG_H2A_INTERRUPT_EVENTS, MACREG_H2ARIC_BIT_PPA_READY);
sys/dev/mwl/mwlhal.c
529
dummy = RD4(mh, MACREG_REG_INT_CODE);
sys/dev/mwl/mwlhal.c
542
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
544
if (mh->mh_debug & MWL_HAL_DEBUG_CMDDONE) {
sys/dev/mwl/mwlhal.c
545
device_printf(mh->mh_dev, "cmd done interrupt:\n");
sys/dev/mwl/mwlhal.c
546
dumpresult(mh, 1);
sys/dev/mwl/mwlhal.c
560
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
564
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
567
pCmd->ulFwAwakeCookie = htole32((unsigned int)mh->mh_cmdaddr+2048);
sys/dev/mwl/mwlhal.c
569
retval = mwlExecuteCmd(mh, HostCmd_CMD_GET_HW_SPEC);
sys/dev/mwl/mwlhal.c
586
mh->mh_revs.mh_macRev = hw->hwVersion; /* XXX */
sys/dev/mwl/mwlhal.c
587
mh->mh_revs.mh_phyRev = hw->hostInterface; /* XXX */
sys/dev/mwl/mwlhal.c
592
mh->mh_bastreams &= (1<<MWL_BASTREAMS_MAX)-1;
sys/dev/mwl/mwlhal.c
594
mh->mh_bastreams &= (1<<2)-1;
sys/dev/mwl/mwlhal.c
596
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
608
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
612
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
628
if (mh->mh_revs.mh_macRev < 5)
sys/dev/mwl/mwlhal.c
631
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_HW_SPEC);
sys/dev/mwl/mwlhal.c
634
mh->mh_flags &= ~MHF_MBSS;
sys/dev/mwl/mwlhal.c
636
mh->mh_flags |= MHF_MBSS;
sys/dev/mwl/mwlhal.c
638
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
649
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
653
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
657
retval = mwlExecuteCmd(mh, HostCmd_CMD_802_11_GET_STAT);
sys/dev/mwl/mwlhal.c
671
mh->mh_RTSSuccesses += RD4(mh, 0xa834);
sys/dev/mwl/mwlhal.c
672
mh->mh_RTSFailures += RD4(mh, 0xa830);
sys/dev/mwl/mwlhal.c
673
mh->mh_RxDuplicateFrames += RD4(mh, 0xa84c);
sys/dev/mwl/mwlhal.c
674
mh->mh_FCSErrorCount += RD4(mh, 0xa840);
sys/dev/mwl/mwlhal.c
676
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
678
stats->RTSSuccesses = mh->mh_RTSSuccesses;
sys/dev/mwl/mwlhal.c
679
stats->RTSFailures = mh->mh_RTSFailures;
sys/dev/mwl/mwlhal.c
680
stats->RxDuplicateFrames = mh->mh_RxDuplicateFrames;
sys/dev/mwl/mwlhal.c
681
stats->FCSErrorCount = mh->mh_FCSErrorCount;
sys/dev/mwl/mwlhal.c
692
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
696
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
709
retval = mwlExecuteCmd(mh, HostCmd_CMD_HT_GUARD_INTERVAL);
sys/dev/mwl/mwlhal.c
710
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
722
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
726
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
736
retval = mwlExecuteCmd(mh, HostCmd_CMD_802_11_RADIO_CONTROL);
sys/dev/mwl/mwlhal.c
737
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
750
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
757
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
765
retval = mwlExecuteCmd(mh, HostCmd_CMD_802_11_RF_ANTENNA);
sys/dev/mwl/mwlhal.c
766
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
778
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
782
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
788
retval = mwlExecuteCmd(mh, HostCmd_CMD_802_11_RTS_THSD);
sys/dev/mwl/mwlhal.c
789
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
799
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
803
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
807
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_INFRA_MODE);
sys/dev/mwl/mwlhal.c
808
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
818
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
822
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
827
if (mh->mh_regioncode == DOMAIN_CODE_ETSI_131)
sys/dev/mwl/mwlhal.c
830
retval = mwlExecuteCmd(mh, HostCmd_CMD_802_11H_DETECT_RADAR);
sys/dev/mwl/mwlhal.c
831
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
887
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
891
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
899
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_SWITCH_CHANNEL);
sys/dev/mwl/mwlhal.c
900
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
910
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
914
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
927
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_REGION_CODE);
sys/dev/mwl/mwlhal.c
929
mh->mh_regioncode = regionCode;
sys/dev/mwl/mwlhal.c
930
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
941
struct mwl_hal_priv *mh = MWLVAP(vap);
sys/dev/mwl/mwlhal.c
946
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.c
98
pCmd = (type *)&mh->mh_cmdbuf[0]; \
sys/dev/mwl/mwlhal.c
986
retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_FIXED_RATE);
sys/dev/mwl/mwlhal.c
987
MWL_HAL_UNLOCK(mh);
sys/dev/mwl/mwlhal.c
994
struct mwl_hal_priv *mh = MWLPRIV(mh0);
sys/dev/mwl/mwlhal.c
998
MWL_HAL_LOCK(mh);
sys/dev/mwl/mwlhal.h
126
mwl_hal_getisr(struct mwl_hal *mh, uint32_t *status)
sys/dev/mwl/mwlhal.h
132
cause = bus_space_read_4(mh->mh_iot, mh->mh_ioh,
sys/dev/mwl/mwlhal.h
138
bus_space_write_4(mh->mh_iot, mh->mh_ioh,
sys/dev/mwl/mwlhal.h
139
MACREG_REG_A2H_INTERRUPT_CAUSE, cause &~ mh->mh_imask);
sys/dev/mwl/mwlhal.h
140
(void) bus_space_read_4(mh->mh_iot, mh->mh_ioh,
sys/dev/mwl/mwlhal.h
142
cause &= mh->mh_imask;
sys/dev/mwl/mwlhal.h
149
void mwl_hal_intrset(struct mwl_hal *mh, uint32_t mask);
sys/dev/mwl/mwlhal.h
157
mwl_hal_txstart(struct mwl_hal *mh, int qnum)
sys/dev/mwl/mwlhal.h
163
bus_space_write_4(mh->mh_iot, mh->mh_ioh,
sys/dev/mwl/mwlhal.h
165
(void) bus_space_read_4(mh->mh_iot, mh->mh_ioh, MACREG_REG_INT_CODE);
sys/dev/mwl/mwlhal.h
171
void mwl_hal_cmddone(struct mwl_hal *mh);
sys/dev/mwl/mwlhal.h
212
int mwl_hal_gethwspecs(struct mwl_hal *mh, struct mwl_hal_hwspec *);
sys/dev/mwl/mwlhal.h
224
int mwl_hal_sethwdma(struct mwl_hal *mh, const struct mwl_hal_txrxdma *);
sys/dev/mwl/mwlhal.h
265
int mwl_hal_gethwstats(struct mwl_hal *mh, struct mwl_hal_hwstats *);
sys/dev/mwl/mwlhal.h
287
int mwl_hal_setradio(struct mwl_hal *mh, int onoff, MWL_HAL_PREAMBLE preamble);
sys/dev/mwl/mwlhal.h
300
int mwl_hal_setantenna(struct mwl_hal *mh, MWL_HAL_ANTENNA dirSet, int ant);
sys/dev/mwl/mwlhal.h
321
int mwl_hal_setradardetection(struct mwl_hal *mh, MWL_HAL_RADAR action);
sys/dev/mwl/mwlhal.h
325
int mwl_hal_setregioncode(struct mwl_hal *mh, int regionCode);
sys/dev/mwl/mwlhal.h
386
int mwl_hal_setslottime(struct mwl_hal *mh, int usecs);
sys/dev/mwl/mwlhal.h
406
int mwl_hal_setmcast(struct mwl_hal *mh, int nmc, const uint8_t macs[]);
sys/dev/mwl/mwlhal.h
494
int mwl_hal_setchannel(struct mwl_hal *mh, const MWL_HAL_CHANNEL *c);
sys/dev/mwl/mwlhal.h
512
const MWL_HAL_BASTREAM *mwl_hal_bastream_lookup(struct mwl_hal *mh, int s);
sys/dev/mwl/mwlhal.h
515
int mwl_hal_bastream_destroy(struct mwl_hal *mh, const MWL_HAL_BASTREAM *);
sys/dev/mwl/mwlhal.h
516
int mwl_hal_getwatchdogbitmap(struct mwl_hal *mh, uint8_t bitmap[1]);
sys/dev/mwl/mwlhal.h
517
int mwl_hal_bastream_get_seqno(struct mwl_hal *mh, const MWL_HAL_BASTREAM *,
sys/dev/mwl/mwlhal.h
520
void mwl_hal_setbastreams(struct mwl_hal *mh, int mask);
sys/dev/mwl/mwlhal.h
521
int mwl_hal_getbastreams(struct mwl_hal *mh);
sys/dev/mwl/mwlhal.h
562
int mwl_hal_setkeepalive(struct mwl_hal *mh);
sys/dev/mwl/mwlhal.h
602
int mwl_hal_setwmm(struct mwl_hal *mh, int onoff);
sys/dev/mwl/mwlhal.h
607
int mwl_hal_setedcaparams(struct mwl_hal *mh, uint8_t qnum,
sys/dev/mwl/mwlhal.h
614
int mwl_hal_setrateadaptmode(struct mwl_hal *mh, uint16_t mode);
sys/dev/mwl/mwlhal.h
622
int mwl_hal_setcsmode(struct mwl_hal *mh, MWL_HAL_CSMODE csmode);
sys/dev/mwl/mwlhal.h
643
int mwl_hal_setoptimizationlevel(struct mwl_hal *mh, int onoff);
sys/dev/mwl/mwlhal.h
649
int mwl_hal_setmimops(struct mwl_hal *mh, const uint8_t addr[6],
sys/dev/mwl/mwlhal.h
655
int mwl_hal_getregioncode(struct mwl_hal *mh, uint8_t *countryCode);
sys/dev/mwl/mwlhal.h
656
int mwl_hal_GetBeacon(struct mwl_hal *mh, uint8_t *pBcn, uint16_t *pLen);
sys/dev/mwl/mwlhal.h
657
int mwl_hal_SetRifs(struct mwl_hal *mh, uint8_t QNum);
sys/dev/mwl/mwlhal.h
683
int mwl_hal_getdiagstate(struct mwl_hal *mh, int request,
sys/dev/mwl/mwlhal.h
687
int mwl_hal_fwload(struct mwl_hal *mh, void *fwargs);
sys/dev/vmware/vmxnet3/if_vmx.c
2181
uint32_t ml, mh;
sys/dev/vmware/vmxnet3/if_vmx.c
2189
mh = sc->vmx_lladdr[4];
sys/dev/vmware/vmxnet3/if_vmx.c
2190
mh |= sc->vmx_lladdr[5] << 8;
sys/dev/vmware/vmxnet3/if_vmx.c
2191
vmxnet3_write_bar1(sc, VMXNET3_BAR1_MACH, mh);
sys/dev/vmware/vmxnet3/if_vmx.c
2197
uint32_t ml, mh;
sys/dev/vmware/vmxnet3/if_vmx.c
2200
mh = vmxnet3_read_cmd(sc, VMXNET3_CMD_GET_MACH);
sys/dev/vmware/vmxnet3/if_vmx.c
2206
sc->vmx_lladdr[4] = mh;
sys/dev/vmware/vmxnet3/if_vmx.c
2207
sc->vmx_lladdr[5] = mh >> 8;
sys/kern/kern_sendfile.c
1093
m = mh;
sys/kern/kern_sendfile.c
1094
mh = NULL;
sys/kern/kern_sendfile.c
1199
if (mh)
sys/kern/kern_sendfile.c
1200
m_freem(mh);
sys/kern/kern_sendfile.c
722
struct mbuf *m, *mh, *mhtail;
sys/kern/kern_sendfile.c
735
m = mh = NULL;
sys/kern/kern_sendfile.c
808
mh = m_uiotombuf(hdr_uio, M_WAITOK, space,
sys/kern/kern_sendfile.c
812
mh = m_uiotombuf(hdr_uio, M_WAITOK,
sys/kern/kern_sendfile.c
814
hdrlen = m_length(mh, &mhtail);
sys/net/if_me.c
471
struct mobhdr *mh;
sys/net/if_me.c
487
mh = (struct mobhdr *)mtodo(m, sizeof(struct ip));
sys/net/if_me.c
489
if (mh->mob_flags & (~MOB_FLAGS_SP)) {
sys/net/if_me.c
493
if (mh->mob_flags) {
sys/net/if_me.c
501
if (me_in_cksum((uint16_t *)mh, hlen / sizeof(uint16_t)) != 0) {
sys/net/if_me.c
509
ip->ip_dst = mh->mob_dst;
sys/net/if_me.c
510
ip->ip_p = mh->mob_proto;
sys/net/if_me.c
513
if (mh->mob_flags)
sys/net/if_me.c
514
ip->ip_src = mh->mob_src;
sys/net/if_me.c
555
struct mobhdr mh;
sys/net/if_me.c
597
mh.mob_proto = ip->ip_p;
sys/net/if_me.c
598
mh.mob_src = ip->ip_src;
sys/net/if_me.c
599
mh.mob_dst = ip->ip_dst;
sys/net/if_me.c
602
mh.mob_flags = 0;
sys/net/if_me.c
605
mh.mob_flags = MOB_FLAGS_SP;
sys/net/if_me.c
629
mh.mob_csum = 0;
sys/net/if_me.c
630
mh.mob_csum = me_in_cksum((uint16_t *)&mh, hlen / sizeof(uint16_t));
sys/net/if_me.c
631
bcopy(&mh, mtodo(m, sizeof(struct ip)), hlen);
sys/net/iflib.c
2776
struct mbuf *m, *mh, *mt;
sys/net/iflib.c
2782
mh = NULL;
sys/net/iflib.c
2798
if (mh == NULL) {
sys/net/iflib.c
2809
if (mh == NULL) {
sys/net/iflib.c
2811
mh = mt = m;
sys/net/iflib.c
2834
return (mh);
sys/net/iflib.c
2916
struct mbuf *m, *mh, *mt;
sys/net/iflib.c
2921
mh = mt = NULL;
sys/net/iflib.c
2996
if (mh == NULL)
sys/net/iflib.c
2997
mh = mt = m;
sys/net/iflib.c
3008
if (mh != NULL) {
sys/net/iflib.c
3009
if_input(ifp, mh);
sys/net80211/ieee80211_power.c
368
struct mbuf *mh;
sys/net80211/ieee80211_power.c
378
mh = psq->psq_head[0].head;
sys/net80211/ieee80211_power.c
379
if (mh != NULL)
sys/net80211/ieee80211_power.c
380
age-= M_AGE_GET(mh);
sys/net80211/ieee80211_power.c
382
mh = psq->psq_head[1].head;
sys/net80211/ieee80211_power.c
383
if (mh != NULL) {
sys/net80211/ieee80211_power.c
384
int nage = M_AGE_GET(mh) - age;
sys/net80211/ieee80211_power.c
386
M_AGE_SET(mh, nage < 0 ? 0 : nage);
sys/netgraph/ng_bridge.c
670
struct ng_bridge_move_host *mh;
sys/netgraph/ng_bridge.c
673
if (msg->header.arglen < sizeof(*mh)) {
sys/netgraph/ng_bridge.c
677
mh = (struct ng_bridge_move_host *)msg->data;
sys/netgraph/ng_bridge.c
678
hook = (mh->hook[0] == 0)
sys/netgraph/ng_bridge.c
680
: ng_findhook(node, mh->hook);
sys/netgraph/ng_bridge.c
685
error = ng_bridge_put(priv, mh->addr, NG_HOOK_PRIVATE(hook));
sys/netgraph/ng_bridge.c
864
struct ng_bridge_move_host *mh;
sys/netgraph/ng_bridge.c
868
sizeof(*mh), M_NOWAIT);
sys/netgraph/ng_bridge.c
875
mh = (struct ng_bridge_move_host *)msg->data;
sys/netgraph/ng_bridge.c
876
strncpy(mh->hook, NG_HOOK_NAME(ctx.incoming->hook),
sys/netgraph/ng_bridge.c
877
sizeof(mh->hook));
sys/netgraph/ng_bridge.c
878
memcpy(mh->addr, eh->ether_shost, sizeof(mh->addr));
sys/netgraph/ng_ksocket.c
1200
struct mbuf *mh;
sys/netgraph/ng_ksocket.c
1202
mh = m_gethdr(M_NOWAIT, MT_DATA);
sys/netgraph/ng_ksocket.c
1203
if (mh == NULL) {
sys/netgraph/ng_ksocket.c
1210
mh->m_next = m;
sys/netgraph/ng_ksocket.c
1212
mh->m_pkthdr.len += m->m_len;
sys/netgraph/ng_ksocket.c
1213
m = mh;
sys/netinet6/ip6_output.c
3177
struct mbuf *mh;
sys/netinet6/ip6_output.c
3182
mh = m_gethdr(M_NOWAIT, MT_DATA);
sys/netinet6/ip6_output.c
3183
if (mh == NULL) {
sys/netinet6/ip6_output.c
3187
m_move_pkthdr(mh, m);
sys/netinet6/ip6_output.c
3188
M_ALIGN(mh, sizeof(*ip6));
sys/netinet6/ip6_output.c
3191
mh->m_next = m;
sys/netinet6/ip6_output.c
3192
m = mh;
sys/netinet6/mld6.c
1749
struct mbuf *mh, *md;
sys/netinet6/mld6.c
1763
mh = m_gethdr(M_NOWAIT, MT_DATA);
sys/netinet6/mld6.c
1764
if (mh == NULL) {
sys/netinet6/mld6.c
1771
m_free(mh);
sys/netinet6/mld6.c
1776
mh->m_next = md;
sys/netinet6/mld6.c
1783
M_ALIGN(mh, sizeof(struct ip6_hdr));
sys/netinet6/mld6.c
1784
mh->m_pkthdr.len = sizeof(struct ip6_hdr) + sizeof(struct mld_hdr);
sys/netinet6/mld6.c
1785
mh->m_len = sizeof(struct ip6_hdr);
sys/netinet6/mld6.c
1787
ip6 = mtod(mh, struct ip6_hdr *);
sys/netinet6/mld6.c
1804
mld->mld_cksum = in6_cksum(mh, IPPROTO_ICMPV6,
sys/netinet6/mld6.c
1807
mld_save_context(mh, ifp);
sys/netinet6/mld6.c
1808
mh->m_flags |= M_MLDV1;
sys/netinet6/mld6.c
1810
mld_dispatch_packet(mh);
sys/netinet6/mld6.c
3140
struct mbuf *mh;
sys/netinet6/mld6.c
3158
mh = m_gethdr(M_NOWAIT, MT_DATA);
sys/netinet6/mld6.c
3159
if (mh == NULL) {
sys/netinet6/mld6.c
3165
M_ALIGN(mh, sizeof(struct ip6_hdr) + sizeof(struct mldv2_report));
sys/netinet6/mld6.c
3170
mh->m_len = sizeof(struct ip6_hdr) + sizeof(struct mldv2_report);
sys/netinet6/mld6.c
3171
mh->m_pkthdr.len = sizeof(struct ip6_hdr) +
sys/netinet6/mld6.c
3174
ip6 = mtod(mh, struct ip6_hdr *);
sys/netinet6/mld6.c
3193
mh->m_next = m;
sys/netinet6/mld6.c
3194
mld->mld_cksum = in6_cksum(mh, IPPROTO_ICMPV6,
sys/netinet6/mld6.c
3196
return (mh);
sys/netipsec/key.c
8083
struct sadb_msghdr mh;
sys/netipsec/key.c
8144
error = key_align(m, &mh);
sys/netipsec/key.c
8148
msg = mh.msg;
sys/netipsec/key.c
8226
if (mh.ext[SADB_EXT_ADDRESS_SRC] != NULL
sys/netipsec/key.c
8227
&& mh.ext[SADB_EXT_ADDRESS_DST] != NULL) {
sys/netipsec/key.c
8231
src0 = (struct sadb_address *)(mh.ext[SADB_EXT_ADDRESS_SRC]);
sys/netipsec/key.c
8232
dst0 = (struct sadb_address *)(mh.ext[SADB_EXT_ADDRESS_DST]);
sys/netipsec/key.c
8321
return (*key_typesw[msg->sadb_msg_type])(so, m, &mh);
tests/sys/capsicum/capability-fd.cc
1022
mh.msg_controllen = CMSG_LEN(sizeof(int));
tests/sys/capsicum/capability-fd.cc
1023
cmptr = CMSG_FIRSTHDR(&mh);
tests/sys/capsicum/capability-fd.cc
1030
int rc = sendmsg(sock_fds[1], &mh, 0);
tests/sys/capsicum/capability-fd.cc
958
struct msghdr mh;
tests/sys/capsicum/capability-fd.cc
959
mh.msg_name = NULL; // No address needed
tests/sys/capsicum/capability-fd.cc
960
mh.msg_namelen = 0;
tests/sys/capsicum/capability-fd.cc
965
mh.msg_iov = iov;
tests/sys/capsicum/capability-fd.cc
966
mh.msg_iovlen = 1;
tests/sys/capsicum/capability-fd.cc
968
mh.msg_control = buffer2;
tests/sys/capsicum/capability-fd.cc
969
mh.msg_controllen = sizeof(buffer2);
tests/sys/capsicum/capability-fd.cc
983
int rc = recvmsg(sock_fds[0], &mh, 0);
tests/sys/capsicum/capability-fd.cc
985
EXPECT_LE(CMSG_LEN(sizeof(int)), mh.msg_controllen);
tests/sys/capsicum/capability-fd.cc
986
cmptr = CMSG_FIRSTHDR(&mh);
tests/sys/capsicum/capability-fd.cc
989
cmptr = CMSG_NXTHDR(&mh, cmptr);
tests/sys/capsicum/linux.cc
651
struct msghdr mh;
tests/sys/capsicum/linux.cc
652
mh.msg_name = NULL; // No address needed
tests/sys/capsicum/linux.cc
653
mh.msg_namelen = 0;
tests/sys/capsicum/linux.cc
658
mh.msg_iov = iov;
tests/sys/capsicum/linux.cc
659
mh.msg_iovlen = 1;
tests/sys/capsicum/linux.cc
661
mh.msg_control = buffer2;
tests/sys/capsicum/linux.cc
662
mh.msg_controllen = CMSG_LEN(sizeof(int));
tests/sys/capsicum/linux.cc
663
struct cmsghdr *cmptr = CMSG_FIRSTHDR(&mh);
tests/sys/capsicum/linux.cc
670
int rc = sendmsg(over, &mh, 0);
tests/sys/capsicum/linux.cc
675
struct msghdr mh;
tests/sys/capsicum/linux.cc
676
mh.msg_name = NULL; // No address needed
tests/sys/capsicum/linux.cc
677
mh.msg_namelen = 0;
tests/sys/capsicum/linux.cc
682
mh.msg_iov = iov;
tests/sys/capsicum/linux.cc
683
mh.msg_iovlen = 1;
tests/sys/capsicum/linux.cc
685
mh.msg_control = buffer2;
tests/sys/capsicum/linux.cc
686
mh.msg_controllen = sizeof(buffer2);
tests/sys/capsicum/linux.cc
687
int rc = recvmsg(over, &mh, 0);
tests/sys/capsicum/linux.cc
689
EXPECT_LE(CMSG_LEN(sizeof(int)), mh.msg_controllen);
tests/sys/capsicum/linux.cc
690
struct cmsghdr *cmptr = CMSG_FIRSTHDR(&mh);
tests/sys/capsicum/linux.cc
693
cmptr = CMSG_NXTHDR(&mh, cmptr);
tests/sys/capsicum/procdesc.cc
1022
mh.msg_controllen = CMSG_LEN(sizeof(int));
tests/sys/capsicum/procdesc.cc
1023
cmptr = CMSG_FIRSTHDR(&mh);
tests/sys/capsicum/procdesc.cc
1031
int rc = sendmsg(sock_fds[1], &mh, 0);
tests/sys/capsicum/procdesc.cc
969
struct msghdr mh;
tests/sys/capsicum/procdesc.cc
970
mh.msg_name = NULL; // No address needed
tests/sys/capsicum/procdesc.cc
971
mh.msg_namelen = 0;
tests/sys/capsicum/procdesc.cc
976
mh.msg_iov = iov;
tests/sys/capsicum/procdesc.cc
977
mh.msg_iovlen = 1;
tests/sys/capsicum/procdesc.cc
979
mh.msg_control = buffer2;
tests/sys/capsicum/procdesc.cc
980
mh.msg_controllen = sizeof(buffer2);
tests/sys/capsicum/procdesc.cc
991
int rc = recvmsg(sock_fds[0], &mh, 0);
tests/sys/capsicum/procdesc.cc
993
EXPECT_LE(CMSG_LEN(sizeof(int)), mh.msg_controllen);
tests/sys/capsicum/procdesc.cc
994
cmptr = CMSG_FIRSTHDR(&mh);
tests/sys/capsicum/procdesc.cc
997
cmptr = CMSG_NXTHDR(&mh, cmptr);
tests/sys/capsicum/socket.cc
311
struct msghdr mh;
tests/sys/capsicum/socket.cc
312
memset(&mh, 0, sizeof(mh));
tests/sys/capsicum/socket.cc
313
mh.msg_iov = &iov;
tests/sys/capsicum/socket.cc
314
mh.msg_iovlen = 1;
tests/sys/capsicum/socket.cc
321
mh.msg_name = &addr;
tests/sys/capsicum/socket.cc
322
mh.msg_namelen = sizeof(addr);
tests/sys/capsicum/socket.cc
324
EXPECT_NOTCAPABLE(sendmsg(cap_sock_rw, &mh, 0));
tests/sys/capsicum/socket.cc
325
EXPECT_OK(sendmsg(cap_sock_connect, &mh, 0));
tests/sys/capsicum/socket.cc
330
memcpy(&mv.msg_hdr, &mh, sizeof(struct msghdr));
tools/build/cross-build/include/mac/sys/linker_set.h
67
const struct mach_header *mh;
tools/build/cross-build/include/mac/sys/linker_set.h
72
mh = _dyld_get_image_header(image_index);
tools/build/cross-build/include/mac/sys/linker_set.h
73
if (mh == NULL)
tools/build/cross-build/include/mac/sys/linker_set.h
76
ret = getsectiondata((const struct mach_header_64 *)mh,
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
223
struct msghdr mh;
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
234
init_hdrs(&mh, &cmh, ancbuf, sizeof(ancbuf));
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
235
mh.msg_control = (caddr_t)ancbuf;
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
236
mh.msg_controllen = CMSG_SPACE(0) * 2; /* 2 cmsghdr with no data */
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
248
cmhp = CMSG_FIRSTHDR(&mh);
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
249
cmhnextp = CMSG_NXTHDR(&mh, cmhp);
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
256
init_hdrs(&mh, &cmh, ancbuf, sizeof(ancbuf));
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
257
mh.msg_control = (caddr_t)ancbuf;
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
258
mh.msg_controllen = CMSG_SPACE(0);
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
261
cmhp = CMSG_FIRSTHDR(&mh);
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
262
cmhnextp = CMSG_NXTHDR(&mh, cmhp);
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
268
init_hdrs(&mh, &cmh, ancbuf, sizeof(ancbuf));
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
269
mh.msg_control = (caddr_t)ancbuf;
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
270
mh.msg_controllen = sizeof(ancbuf);
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
273
cmhp = CMSG_FIRSTHDR(&mh);
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
274
cmhnextp = CMSG_NXTHDR(&mh, NULL);
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
281
struct msghdr mh;
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
290
init_hdrs(&mh, NULL, NULL, 0);
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
291
mh.msg_control = NULL;
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
292
cmhp = CMSG_FIRSTHDR(&mh);
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
297
init_hdrs(&mh, NULL, NULL, 0);
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
298
mh.msg_control = (caddr_t)&cmh;
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
299
mh.msg_controllen = sizeof(cmh) - 1;
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
300
cmhp = CMSG_FIRSTHDR(&mh);
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
305
init_hdrs(&mh, NULL, NULL, 0);
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
306
mh.msg_control = (caddr_t)&cmh;
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
307
mh.msg_controllen = 0;
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
308
cmhp = CMSG_FIRSTHDR(&mh);
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
313
init_hdrs(&mh, &cmh, ancbuf, sizeof(ancbuf));
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
315
mh.msg_control = (caddr_t)ancbuf;
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
316
mh.msg_controllen = sizeof(ancbuf);
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
319
cmhp = CMSG_FIRSTHDR(&mh);
tools/regression/sockets/unix_gc/unix_gc.c
100
mh.msg_control = &m;
tools/regression/sockets/unix_gc/unix_gc.c
101
mh.msg_controllen = sizeof(m);
tools/regression/sockets/unix_gc/unix_gc.c
106
len = sendmsg(fd, &mh, 0);
tools/regression/sockets/unix_gc/unix_gc.c
91
struct msghdr mh;
tools/regression/sockets/unix_gc/unix_gc.c
98
bzero(&mh, sizeof(mh));
tools/tools/ath/ath_ee_9287_print/9287.c
100
printf("| switchSettling: 0x%.2x |\n", mh->switchSettling);
tools/tools/ath/ath_ee_9287_print/9287.c
101
printf("| adcDesiredSize: %d |\n", mh->adcDesiredSize);
tools/tools/ath/ath_ee_9287_print/9287.c
105
printf("| antCtrlChain: 0:0x%.4x |\n", mh->antCtrlChain[i]);
tools/tools/ath/ath_ee_9287_print/9287.c
106
printf("| antennaGainCh: 0:0x%.2x |\n", mh->antennaGainCh[i]);
tools/tools/ath/ath_ee_9287_print/9287.c
107
printf("| txRxAttenCh: 0:0x%.2x |\n", mh->txRxAttenCh[i]);
tools/tools/ath/ath_ee_9287_print/9287.c
108
printf("| rxTxMarginCh: 0:0x%.2x |\n", mh->rxTxMarginCh[i]);
tools/tools/ath/ath_ee_9287_print/9287.c
109
printf("| noiseFloorThresCh: 0:0x%.2x |\n", mh->noiseFloorThreshCh[i]);
tools/tools/ath/ath_ee_9287_print/9287.c
110
printf("| iqCalICh: 0:0x%.2x |\n", mh->iqCalICh[i]);
tools/tools/ath/ath_ee_9287_print/9287.c
111
printf("| iqCalQCh: 0:0x%.2x |\n", mh->iqCalQCh[i]);
tools/tools/ath/ath_ee_9287_print/9287.c
112
printf("| bswAtten: 0:0x%.2x |\n", mh->bswAtten[i]);
tools/tools/ath/ath_ee_9287_print/9287.c
113
printf("| bswMargin: 0:0x%.2x |\n", mh->bswMargin[i]);
tools/tools/ath/ath_ee_9287_print/9287.c
118
mh->txEndToXpaOff, mh->txEndToRxOn, mh->txFrameToXpaOn);
tools/tools/ath/ath_ee_9287_print/9287.c
119
printf("| thres62: 0x%.2x\n", mh->thresh62);
tools/tools/ath/ath_ee_9287_print/9287.c
120
printf("| xpdGain: 0x%.2x | xpd: 0x%.2x |\n", mh->xpdGain, mh->xpd);
tools/tools/ath/ath_ee_9287_print/9287.c
122
printf("| pdGainOverlap: 0x%.2x xpaBiasLvl: 0x%.2x |\n", mh->pdGainOverlap, mh->xpaBiasLvl);
tools/tools/ath/ath_ee_9287_print/9287.c
123
printf("| txFrameToDataStart: 0x%.2x | txFrameToPaOn: 0x%.2x |\n", mh->txFrameToDataStart, mh->txFrameToPaOn);
tools/tools/ath/ath_ee_9287_print/9287.c
124
printf("| ht40PowerIncForPdadc: 0x%.2x |\n", mh->ht40PowerIncForPdadc);
tools/tools/ath/ath_ee_9287_print/9287.c
125
printf("| swSettleHt40: 0x%.2x |\n", mh->swSettleHt40);
tools/tools/ath/ath_ee_9287_print/9287.c
127
printf("| Modal Version: %.2x |\n", mh->version);
tools/tools/ath/ath_ee_9287_print/9287.c
128
printf("| db1 = %d | db2 = %d |\n", mh->db1, mh->db2);
tools/tools/ath/ath_ee_9287_print/9287.c
130
mh->ob_cck, mh->ob_psk, mh->ob_qam, mh->ob_pal_off);
tools/tools/ath/ath_ee_9287_print/9287.c
133
for (i = 0; i < sizeof(mh->futureModal) / sizeof(uint16_t); i++) {
tools/tools/ath/ath_ee_9287_print/9287.c
134
printf("0x%.2x ", mh->futureModal[i]);
tools/tools/ath/ath_ee_9287_print/9287.c
141
i, mh->spurChans[i].spurChan,
tools/tools/ath/ath_ee_9287_print/9287.c
142
(int) mh->spurChans[i].spurRangeLow,
tools/tools/ath/ath_ee_9287_print/9287.c
143
(int) mh->spurChans[i].spurRangeHigh);
tools/tools/ath/ath_ee_9287_print/9287.c
96
MODAL_EEP_9287_HEADER *mh = &eep->ee_base.modalHeader;
tools/tools/ath/ath_ee_9287_print/9287.c
99
printf("| antCtrlCommon: 0x%.8x |\n", mh->antCtrlCommon);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
146
MODAL_EEP_HEADER *mh = &eep->ee_base.modalHeader[m];
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
149
printf("| antCtrlCommon: 0x%.8x |\n", mh->antCtrlCommon);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
150
printf("| switchSettling: 0x%.2x |\n", mh->switchSettling);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
152
mh->adcDesiredSize, (float) mh->pgaDesiredSize / 2.0);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
155
mh->antCtrlChain[0], mh->antCtrlChain[1], mh->antCtrlChain[2]);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
157
mh->antennaGainCh[0], mh->antennaGainCh[1], mh->antennaGainCh[2]);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
159
mh->txRxAttenCh[0], mh->txRxAttenCh[1], mh->txRxAttenCh[2]);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
161
mh->rxTxMarginCh[0], mh->rxTxMarginCh[1], mh->rxTxMarginCh[2]);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
163
mh->noiseFloorThreshCh[0], mh->noiseFloorThreshCh[1], mh->noiseFloorThreshCh[2]);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
165
mh->xlnaGainCh[0], mh->xlnaGainCh[1], mh->xlnaGainCh[2]);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
167
mh->iqCalICh[0], mh->iqCalICh[1], mh->iqCalICh[2],
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
168
mh->iqCalQCh[0], mh->iqCalQCh[1], mh->iqCalQCh[2]);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
170
mh->bswAtten[0], mh->bswAtten[1], mh->bswAtten[2]);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
172
mh->bswMargin[0], mh->bswMargin[1], mh->bswMargin[2]);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
174
mh->xatten2Db[0], mh->xatten2Db[1], mh->xatten2Db[2]);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
176
mh->xatten2Margin[0], mh->xatten2Margin[1], mh->xatten2Margin[2]);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
179
mh->txEndToXpaOff, mh->txEndToRxOn, mh->txFrameToXpaOn);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
181
printf("| thres62: 0x%.2x\n", mh->thresh62);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
183
printf("| xpdGain: 0x%.2x | xpd: 0x%.2x |\n", mh->xpdGain, mh->xpd);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
185
mh->xpaBiasLvlFreq[0], mh->xpaBiasLvlFreq[1], mh->xpaBiasLvlFreq[2]);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
188
mh->pdGainOverlap, mh->ob, mh->db, mh->xpaBiasLvl);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
191
mh->pwrDecreaseFor2Chain, mh->pwrDecreaseFor3Chain, mh->txFrameToDataStart,
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
192
mh->txFrameToPaOn);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
194
printf("| ht40PowerIncForPdadc: 0x%.2x |\n", mh->ht40PowerIncForPdadc);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
196
printf("| swSettleHt40: 0x%.2x |\n", mh->swSettleHt40);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
198
printf("| ob_ch1: 0x%.2x | db_ch1: 0x%.2x |\n", mh->ob_ch1, mh->db_ch1);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
200
printf("| flagBits: 0x%.2x | miscBits: 0x%.2x |\n", mh->flagBits, mh->miscBits);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
204
mh->futureModal[0],
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
205
mh->futureModal[1],
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
206
mh->futureModal[2],
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
207
mh->futureModal[3],
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
208
mh->futureModal[4],
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
209
mh->futureModal[5]);
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
214
i, mh->spurChans[i].spurChan,
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
215
(int) mh->spurChans[i].spurRangeLow,
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
216
(int) mh->spurChans[i].spurRangeHigh);
tools/tools/ath/ath_ee_v4k_print/v4k.c
100
printf("| noiseFloorThresCh: 0:0x%.2x |\n", mh->noiseFloorThreshCh[0]);
tools/tools/ath/ath_ee_v4k_print/v4k.c
101
printf("| xlnaGainCh: 0:0x%.2x |\n", mh->xlnaGainCh[0]);
tools/tools/ath/ath_ee_v4k_print/v4k.c
102
printf("| iqCalICh: 0:0x%.2x |\n", mh->iqCalICh[0]);
tools/tools/ath/ath_ee_v4k_print/v4k.c
103
printf("| iqCalQCh: 0:0x%.2x |\n", mh->iqCalQCh[0]);
tools/tools/ath/ath_ee_v4k_print/v4k.c
104
printf("| bswAtten: 0:0x%.2x |\n", mh->bswAtten[0]);
tools/tools/ath/ath_ee_v4k_print/v4k.c
105
printf("| bswMargin: 0:0x%.2x |\n", mh->bswMargin[0]);
tools/tools/ath/ath_ee_v4k_print/v4k.c
106
printf("| xatten2Db: 0:0x%.2x |\n", mh->xatten2Db[0]);
tools/tools/ath/ath_ee_v4k_print/v4k.c
107
printf("| xatten2Margin: 0:0x%.2x |\n", mh->xatten2Margin[0]);
tools/tools/ath/ath_ee_v4k_print/v4k.c
110
mh->txEndToXpaOff, mh->txEndToRxOn, mh->txFrameToXpaOn);
tools/tools/ath/ath_ee_v4k_print/v4k.c
111
printf("| thres62: 0x%.2x\n", mh->thresh62);
tools/tools/ath/ath_ee_v4k_print/v4k.c
112
printf("| xpdGain: 0x%.2x | xpd: 0x%.2x |\n", mh->xpdGain, mh->xpd);
tools/tools/ath/ath_ee_v4k_print/v4k.c
114
printf("| pdGainOverlap: 0x%.2x xpaBiasLvl: 0x%.2x |\n", mh->pdGainOverlap, mh->xpaBiasLvl);
tools/tools/ath/ath_ee_v4k_print/v4k.c
115
printf("| txFrameToDataStart: 0x%.2x | txFrameToPaOn: 0x%.2x |\n", mh->txFrameToDataStart, mh->txFrameToPaOn);
tools/tools/ath/ath_ee_v4k_print/v4k.c
116
printf("| ht40PowerIncForPdadc: 0x%.2x |\n", mh->ht40PowerIncForPdadc);
tools/tools/ath/ath_ee_v4k_print/v4k.c
117
printf("| swSettleHt40: 0x%.2x |\n", mh->swSettleHt40);
tools/tools/ath/ath_ee_v4k_print/v4k.c
120
mh->ob_0, mh->ob_1, mh->ob_2, mh->ob_3);
tools/tools/ath/ath_ee_v4k_print/v4k.c
122
mh->db1_0, mh->db1_1, mh->db1_2, mh->db1_3, mh->db1_4);
tools/tools/ath/ath_ee_v4k_print/v4k.c
124
mh->db2_0, mh->db2_1, mh->db2_2, mh->db2_3, mh->db2_4);
tools/tools/ath/ath_ee_v4k_print/v4k.c
126
printf("| antdiv_ctl1: 0x%.2x antdiv_ctl2: 0x%.2x |\n", mh->antdiv_ctl1, mh->antdiv_ctl2);
tools/tools/ath/ath_ee_v4k_print/v4k.c
128
printf("| Modal Version: %.2x |\n", mh->version);
tools/tools/ath/ath_ee_v4k_print/v4k.c
130
printf("| tx_diversity: 0x%.2x |\n", mh->tx_diversity);
tools/tools/ath/ath_ee_v4k_print/v4k.c
131
printf("| flc_pwr_thresh: 0x%.2x |\n", mh->flc_pwr_thresh);
tools/tools/ath/ath_ee_v4k_print/v4k.c
132
printf("| bb_scale_smrt_antenna: 0x%.2x |\n", mh->bb_scale_smrt_antenna);
tools/tools/ath/ath_ee_v4k_print/v4k.c
133
printf("| futureModal: 0x%.2x |\n", mh->futureModal[0]);
tools/tools/ath/ath_ee_v4k_print/v4k.c
138
i, mh->spurChans[i].spurChan,
tools/tools/ath/ath_ee_v4k_print/v4k.c
139
(int) mh->spurChans[i].spurRangeLow,
tools/tools/ath/ath_ee_v4k_print/v4k.c
140
(int) mh->spurChans[i].spurRangeHigh);
tools/tools/ath/ath_ee_v4k_print/v4k.c
88
MODAL_EEP4K_HEADER *mh = &eep->ee_base.modalHeader;
tools/tools/ath/ath_ee_v4k_print/v4k.c
91
printf("| antCtrlCommon: 0x%.8x |\n", mh->antCtrlCommon);
tools/tools/ath/ath_ee_v4k_print/v4k.c
92
printf("| switchSettling: 0x%.2x |\n", mh->switchSettling);
tools/tools/ath/ath_ee_v4k_print/v4k.c
94
mh->adcDesiredSize, (float) mh->pgaDesiredSize / 2.0);
tools/tools/ath/ath_ee_v4k_print/v4k.c
96
printf("| antCtrlChain: 0:0x%.4x |\n", mh->antCtrlChain[0]);
tools/tools/ath/ath_ee_v4k_print/v4k.c
97
printf("| antennaGainCh: 0:0x%.2x |\n", mh->antennaGainCh[0]);
tools/tools/ath/ath_ee_v4k_print/v4k.c
98
printf("| txRxAttenCh: 0:0x%.2x |\n", mh->txRxAttenCh[0]);
tools/tools/ath/ath_ee_v4k_print/v4k.c
99
printf("| rxTxMarginCh: 0:0x%.2x |\n", mh->rxTxMarginCh[0]);
tools/tools/net80211/w00t/redir/buddy.c
57
struct msghdr mh;
tools/tools/net80211/w00t/redir/buddy.c
89
memset(&mh, 0, sizeof(mh));
tools/tools/net80211/w00t/redir/buddy.c
90
mh.msg_iov = iov;
tools/tools/net80211/w00t/redir/buddy.c
91
mh.msg_iovlen = sizeof(iov)/sizeof(struct iovec);
tools/tools/net80211/w00t/redir/buddy.c
94
if (sendmsg(dude, &mh, 0) != (4 + len))
usr.sbin/ppp/mp.c
417
struct mp_header mh, h;
usr.sbin/ppp/mp.c
427
if (m && mp_ReadHeader(mp, m, &mh) == 0) {
usr.sbin/ppp/mp.c
434
p->dl->mp.seq = mh.seq;
usr.sbin/ppp/mp.c
470
h = mh;
usr.sbin/ppp/mp.c
474
if (m && isbefore(mp->local_is12bit, mh.seq, h.seq)) {
usr.sbin/ppp/mp.c
482
h = mh;
usr.sbin/ppp/mp.c
599
if (isbefore(mp->local_is12bit, mh.seq, h.seq))
usr.sbin/ppp/mp.c
843
struct mp_header mh;
usr.sbin/ppp/mp.c
846
first = mp_ReadHeader(mp, mp->inbufs, &mh) ? mh.seq : 0;
usr.sbin/ppp/mp.c
847
last = mp_ReadHeader(mp, lm, &mh) ? mh.seq : 0;
usr.sbin/ppp/mp.c
852
"%send bit", mh.begin ? "" : "no ", mh.end ? "" : "no ");