Searched refs:htole16 (Results 1 - 25 of 165) sorted by relevance

1234567

/freebsd-11-stable/usr.sbin/kgzip/
H A Delfhdr.c48 htole16(ET_EXEC), /* e_type */
49 htole16(EM_386), /* e_machine */
55 htole16(sizeof(Elf32_Ehdr)), /* e_ehsize */
58 htole16(sizeof(Elf32_Shdr)), /* e_shentsize */
59 htole16(KGZ_SHNUM), /* e_shnum */
60 htole16(KGZ_SH_SHSTRTAB) /* e_shstrndx */
133 htole16(SHN_UNDEF) /* st_shndx */
141 htole16(KGZ_SH_DATA) /* st_shndx */
149 htole16(KGZ_SH_DATA) /* st_shndx */
/freebsd-11-stable/usr.sbin/btxld/
H A Delfh.c49 htole16(ET_EXEC), /* e_type */
50 htole16(EM_386), /* e_machine */
56 htole16(sizeof(elfhdr.e)), /* e_ehsize */
57 htole16(sizeof(elfhdr.p[0])), /* e_phentsize */
58 htole16(sizeof(elfhdr.p) / sizeof(elfhdr.p[0])), /* e_phnum */
59 htole16(sizeof(elfhdr.sh[0])), /* e_shentsize */
60 htole16(sizeof(elfhdr.sh) / sizeof(elfhdr.sh[0])), /* e_shnum */
61 htole16(1) /* e_shstrndx */
/freebsd-11-stable/sys/netgraph/bluetooth/l2cap/
H A Dng_l2cap_cmds.h68 c->param.reason = htole16((_reason)); \
71 c->data.mtu.mtu = htole16((_mtu)); \
74 c->data.cid.scid = htole16((_scid)); \
75 c->data.cid.dcid = htole16((_dcid)); \
82 c->hdr.length = htole16(c->hdr.length); \
102 c->hdr.length = htole16(sizeof(c->param)); \
104 c->param.psm = htole16((_psm)); \
105 c->param.scid = htole16((_scid)); \
125 c->hdr.length = htole16(sizeof(c->param)); \
127 c->param.dcid = htole16((_dci
[all...]
/freebsd-11-stable/sys/dev/bnxt/
H A Dbnxt_hwrm.c109 req->req_type = htole16(req_type);
129 req->seq_id = htole16(softc->hwrm_cmd_seq++);
142 htole16(HWRM_SHORT_INPUT_SIGNATURE_SHORT_CMD);
143 short_input.size = htole16(msg_len);
371 req.os_type = htole16(HWRM_FUNC_DRV_RGTR_INPUT_OS_TYPE_FREEBSD);
426 req.fid = htole16(0xffff);
482 req.fid = htole16(0xffff);
524 req->force_link_speed = htole16(fw_link_speed);
580 req->eee_link_speed_mask = htole16(eee_speeds);
650 req.vnic_id = htole16(vni
[all...]
H A Dbnxt_txrx.c117 tbd->len = htole16(pi->ipi_segs[seg].ds_len);
131 tbdh->mss = htole16(pi->ipi_tso_segsz);
132 tbdh->hdr_size = htole16((pi->ipi_ehdrlen + pi->ipi_ip_hlen +
155 tbdh->lflags = htole16(lflags);
162 tbd->flags_type = htole16(flags_type);
165 tbd->len = htole16(pi->ipi_segs[seg].ds_len);
170 tbd->flags_type = htole16(flags_type);
289 rxbd[pidx].flags_type = htole16(type);
290 rxbd[pidx].len = htole16(len);
/freebsd-11-stable/sys/dev/mwl/
H A Dmwlhal.c100 pCmd->CmdHdr.Cmd = htole16(cmd); \
101 pCmd->CmdHdr.Length = htole16(sizeof(type)); \
271 hvap->bss_type = htole16(WL_MAC_TYPE_PRIMARY_AP);
276 hvap->bss_type = htole16(WL_MAC_TYPE_SECONDARY_AP);
281 hvap->bss_type = htole16(WL_MAC_TYPE_PRIMARY_CLIENT);
286 hvap->bss_type = htole16(WL_MAC_TYPE_SECONDARY_CLIENT);
729 pCmd->Action = htole16(HostCmd_ACT_GEN_SET);
733 pCmd->Control = htole16(preamble);
734 pCmd->RadioOn = htole16(onoff);
760 pCmd->Action = htole16(dirSe
[all...]
/freebsd-11-stable/usr.sbin/bluetooth/hccontrol/
H A Dlink_policy.c57 cp.con_handle = htole16(cp.con_handle);
173 cp.con_handle = htole16(cp.con_handle);
216 cp.con_handle = htole16(cp.con_handle);
223 cp.settings = htole16(cp.settings);
H A Dstatus.c56 cp.con_handle = htole16(cp.con_handle);
98 cp.con_handle = htole16(cp.con_handle);
137 cp.con_handle = htole16(cp.con_handle);
179 cp.con_handle = htole16(cp.con_handle);
H A Dlink_control.c181 cp.pkt_type = htole16( NG_HCI_PKT_DM1 | NG_HCI_PKT_DH1 |
204 cp.clock_offset = htole16(cp.clock_offset);
232 cp.pkt_type = htole16(cp.pkt_type);
319 cp.con_handle = htole16(cp.con_handle);
376 cp.pkt_type = htole16(NG_HCI_PKT_HV1 | NG_HCI_PKT_HV2 | NG_HCI_PKT_HV3);
390 cp.pkt_type = htole16(cp.pkt_type);
398 cp.con_handle = htole16(cp.con_handle);
462 cp.con_handle = htole16(cp.con_handle);
469 cp.pkt_type = htole16(cp.pkt_type);
537 cp.clock_offset = htole16(c
[all...]
H A Dhost_controller_baseband.c198 cmd.hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_HC_BASEBAND,
496 cp.timeout = htole16(cp.timeout);
561 cp.timeout = htole16(cp.timeout);
703 cp.page_scan_interval = htole16(cp.page_scan_interval);
704 cp.page_scan_window = htole16(cp.page_scan_window);
785 htole16(cp.inquiry_scan_interval);
786 cp.inquiry_scan_window = htole16(cp.inquiry_scan_window);
1057 cp.settings = htole16(cp.settings);
1292 cp.con_handle = htole16(cp.con_handle);
1337 cp.con_handle = htole16(c
[all...]
/freebsd-11-stable/sys/dev/iwm/
H A Dif_iwm_power.c219 if (!(cmd->flags & htole16(IWM_POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK))) {
229 if (cmd->flags & htole16(IWM_POWER_FLAGS_SKIP_OVER_DTIM_MSK))
261 cmd->flags &= ~htole16(IWM_POWER_FLAGS_SKIP_OVER_DTIM_MSK);
277 cmd->flags |= htole16(IWM_POWER_FLAGS_SKIP_OVER_DTIM_MSK);
305 cmd->keep_alive_seconds = htole16(keep_alive);
310 cmd->flags |= htole16(IWM_POWER_FLAGS_POWER_SAVE_ENA_MSK);
311 cmd->flags |= htole16(IWM_POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK);
465 cmd.flags |= htole16(IWM_DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK);
H A Dif_iwm_scan.c176 return htole16(rx_chain);
242 chan->channel_num = htole16(ieee80211_mhz2ieee(c->ic_freq, 0));
243 chan->iter_count = htole16(1);
288 chan->iter_interval = htole16(0);
331 preq->mac_header.len = htole16(frm - (uint8_t *)wh);
342 preq->band_data[0].offset = htole16(frm - (uint8_t *)wh);
347 preq->band_data[0].len = htole16(frm - pos);
369 preq->band_data[1].offset = htole16(frm - (uint8_t *)wh);
374 preq->band_data[1].len = htole16(frm - pos);
379 preq->common_data.offset = htole16(fr
[all...]
/freebsd-11-stable/sys/dev/malo/
H A Dif_malohal.c64 pCmd->cmdhdr.cmd = htole16(_cmd); \
65 pCmd->cmdhdr.length = htole16(sizeof(_type)); \
346 mh->mh_cmdbuf[0] = htole16(MALO_HOSTCMD_CODE_DNLD);
347 mh->mh_cmdbuf[1] = htole16(bsize);
407 mh->mh_cmdbuf[0] = htole16(MALO_HOSTCMD_CODE_DNLD);
408 mh->mh_cmdbuf[1] = htole16(dsize);
409 mh->mh_cmdbuf[2] = htole16(seqnum);
608 cmd->action = htole16(dirset);
613 cmd->mode = htole16(ant);
638 cmd->action = htole16(MALO_HOSTCMD_ACT_GEN_SE
[all...]
/freebsd-11-stable/contrib/openbsm/compat/
H A Dendian.h128 #define htole16(x) ((uint16_t)(x)) macro
142 #define htole16(x) bswap16((x)) macro
/freebsd-11-stable/contrib/ofed/include/
H A Dbyteorder.h44 #define cpu_to_le16 htole16
58 #define cpu_to_le16p(x) htole16(*((uint16_t *)x))
/freebsd-11-stable/sys/compat/linuxkpi/common/include/asm/
H A Dbyteorder.h48 #define cpu_to_le16(x) htole16(x)
62 #define cpu_to_le16p(x) htole16(*((const uint16_t *)(x)))
/freebsd-11-stable/sys/netgraph/bluetooth/hci/
H A Dng_hci_ulpi.c250 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL,
267 req->cp.pkt_type = htole16(req->cp.pkt_type);
287 req->cp.clock_offset = htole16(n->clock_offset);
443 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL,
446 req->cp.con_handle = htole16(acl_con->con_handle);
460 req->cp.pkt_type = htole16(req->cp.pkt_type);
617 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LE,
623 req->cp.scan_interval = htole16(4);
624 req->cp.scan_window = htole16(4);
626 req->cp.conn_interval_min = htole16(
[all...]
/freebsd-11-stable/sys/net80211/
H A Dieee80211_radiotap.c72 th->it_len = htole16(roundup2(tlen, sizeof(uint32_t)));
88 rh->it_len = htole16(roundup2(rlen, sizeof(uint32_t)));
139 rc->freq = htole16(c->ic_freq);
140 rc->flags = htole16(c->ic_flags);
154 rc->freq = htole16(c->ic_freq);
/freebsd-11-stable/sys/dev/usb/wlan/
H A Dif_upgt.c415 stats->header1.len = htole16(
419 stats->header2.type = htole16(UPGT_H2_TYPE_STATS);
496 led->header1.len = htole16(
501 led->header2.type = htole16(UPGT_H2_TYPE_LED);
506 led->mode = htole16(UPGT_LED_MODE_SET);
508 led->action_tmp = htole16(UPGT_LED_ACTION_OFF);
512 led->mode = htole16(UPGT_LED_MODE_SET);
514 led->action_tmp = htole16(UPGT_LED_ACTION_ON);
527 led->mode = htole16(UPGT_LED_MODE_SET);
528 led->action_fix = htole16(UPGT_LED_ACTION_OF
[all...]
/freebsd-11-stable/sys/sys/
H A Dendian.h71 #define htole16(x) ((uint16_t)(x)) macro
85 #define htole16(x) bswap16((x)) macro
/freebsd-11-stable/sys/mips/nlm/
H A Dboard_cpld.c64 data = htole16(data);
/freebsd-11-stable/usr.sbin/bluetooth/hcsecd/
H A Dhcsecd.c281 cmd->opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL,
296 cmd->opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL,
340 cmd->opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL,
354 cmd->opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL,
/freebsd-11-stable/sys/dev/le/
H A Dlancevar.h132 #define LE_HTOLE16(v) (((sc)->sc_flags & LE_BSWAP) ? htole16(v) : (v))
/freebsd-11-stable/tools/tools/net80211/wlaninject/
H A Dwlaninject.c611 *(uint16_t*)wh->i_dur = htole16(atoi(optarg));
631 *(uint16_t*)wh->i_seq |= htole16((atoi(optarg) & 0xfff)
697 *x = htole16(atoi(optarg));
705 *x = htole16(atoi(optarg));
717 *x = htole16(atoi(optarg));
/freebsd-11-stable/sys/dev/ubsec/
H A Dubsec.c612 if ((dmap->d_dma->d_mcr.mcr_flags & htole16(UBS_MCR_DONE)) == 0)
658 if ((mcr->mcr_flags & htole16(UBS_MCR_DONE)) == 0) {
792 q->q_dma->d_dma->d_mcr.mcr_pkts = htole16(npkts);
1087 dmap->d_dma->d_mcr.mcr_pkts = htole16(1);
1145 ctx.pc_flags |= htole16(UBS_PKTCTX_ENC_3DES);
1162 ctx.pc_flags |= htole16(UBS_PKTCTX_INBOUND);
1191 ctx.pc_flags |= htole16(UBS_PKTCTX_AUTH_MD5);
1193 ctx.pc_flags |= htole16(UBS_PKTCTX_AUTH_SHA1);
1245 ctx.pc_offset = htole16(coffset >> 2);
1273 dmap->d_dma->d_mcr.mcr_pktlen = htole16(stheen
[all...]

Completed in 162 milliseconds

1234567