| /NextBSD/sys/netgraph/bluetooth/l2cap/ |
| HD | ng_l2cap_cmds.h | 68 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((_dcid)); \ [all …]
|
| /NextBSD/usr.sbin/kgzip/ |
| HD | elfhdr.c | 46 htole16(ET_EXEC), /* e_type */ 47 htole16(EM_386), /* e_machine */ 53 htole16(sizeof(Elf32_Ehdr)), /* e_ehsize */ 56 htole16(sizeof(Elf32_Shdr)), /* e_shentsize */ 57 htole16(KGZ_SHNUM), /* e_shnum */ 58 htole16(KGZ_SH_SHSTRTAB) /* e_shstrndx */ 131 htole16(SHN_UNDEF) /* st_shndx */ 139 htole16(KGZ_SH_DATA) /* st_shndx */ 147 htole16(KGZ_SH_DATA) /* st_shndx */
|
| /NextBSD/usr.sbin/btxld/ |
| HD | elfh.c | 47 htole16(ET_EXEC), /* e_type */ 48 htole16(EM_386), /* e_machine */ 54 htole16(sizeof(elfhdr.e)), /* e_ehsize */ 55 htole16(sizeof(elfhdr.p[0])), /* e_phentsize */ 56 htole16(sizeof(elfhdr.p) / sizeof(elfhdr.p[0])), /* e_phnum */ 57 htole16(sizeof(elfhdr.sh[0])), /* e_shentsize */ 58 htole16(sizeof(elfhdr.sh) / sizeof(elfhdr.sh[0])), /* e_shnum */ 59 htole16(1) /* e_shstrndx */
|
| /NextBSD/sys/dev/mwl/ |
| HD | mwlhal.c | 100 pCmd->CmdHdr.Cmd = htole16(cmd); \ 101 pCmd->CmdHdr.Length = htole16(sizeof(type)); \ 271 hvap->bss_type = htole16(WL_MAC_TYPE_PRIMARY_AP); in mwl_hal_attach() 276 hvap->bss_type = htole16(WL_MAC_TYPE_SECONDARY_AP); in mwl_hal_attach() 281 hvap->bss_type = htole16(WL_MAC_TYPE_PRIMARY_CLIENT); in mwl_hal_attach() 286 hvap->bss_type = htole16(WL_MAC_TYPE_SECONDARY_CLIENT); in mwl_hal_attach() 729 pCmd->Action = htole16(HostCmd_ACT_GEN_SET); in mwl_hal_setradio() 733 pCmd->Control = htole16(preamble); in mwl_hal_setradio() 734 pCmd->RadioOn = htole16(onoff); in mwl_hal_setradio() 760 pCmd->Action = htole16(dirSet); in mwl_hal_setantenna() [all …]
|
| /NextBSD/sys/dev/iwm/ |
| HD | if_iwm_scan.c | 178 return htole16(rx_chain); in iwm_mvm_scan_rx_chain() 294 chan->channel = htole16(ieee80211_mhz2ieee(c->ic_freq, flags)); in iwm_mvm_scan_fill_channels() 298 chan->active_dwell = htole16(active_dwell); in iwm_mvm_scan_fill_channels() 299 chan->passive_dwell = htole16(passive_dwell); in iwm_mvm_scan_fill_channels() 300 chan->iteration_count = htole16(1); in iwm_mvm_scan_fill_channels() 384 cmd->quiet_time = htole16(IWM_ACTIVE_QUIET_TIME); in iwm_mvm_scan_request() 385 cmd->quiet_plcp_th = htole16(IWM_PLCP_QUIET_THRESH); in iwm_mvm_scan_request() 401 cmd->passive2active = htole16(1); in iwm_mvm_scan_request() 420 cmd->tx_cmd.len = htole16(iwm_mvm_fill_probe_req(sc, in iwm_mvm_scan_request() 428 cmd->len = htole16(sizeof(struct iwm_scan_cmd) + in iwm_mvm_scan_request()
|
| HD | if_iwm_power.c | 229 if (!(cmd->flags & htole16(IWM_POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK))) { in iwm_mvm_power_log() 284 cmd->keep_alive_seconds = htole16(keep_alive); in iwm_mvm_power_build_cmd() 304 htole16(IWM_POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK)); in iwm_mvm_power_mac_update_mode() 312 .flags = htole16(IWM_DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK), in iwm_mvm_power_update_device() 318 cmd.flags |= htole16(IWM_DEVICE_POWER_FLAGS_CAM_MSK); in iwm_mvm_power_update_device()
|
| /NextBSD/sys/dev/malo/ |
| HD | if_malohal.c | 64 pCmd->cmdhdr.cmd = htole16(_cmd); \ 65 pCmd->cmdhdr.length = htole16(sizeof(_type)); \ 346 mh->mh_cmdbuf[0] = htole16(MALO_HOSTCMD_CODE_DNLD); in malo_hal_send_helper() 347 mh->mh_cmdbuf[1] = htole16(bsize); in malo_hal_send_helper() 407 mh->mh_cmdbuf[0] = htole16(MALO_HOSTCMD_CODE_DNLD); in malo_hal_send_main() 408 mh->mh_cmdbuf[1] = htole16(dsize); in malo_hal_send_main() 409 mh->mh_cmdbuf[2] = htole16(seqnum); in malo_hal_send_main() 608 cmd->action = htole16(dirset); in malo_hal_setantenna() 613 cmd->mode = htole16(ant); in malo_hal_setantenna() 638 cmd->action = htole16(MALO_HOSTCMD_ACT_GEN_SET); in malo_hal_setradio() [all …]
|
| /NextBSD/usr.sbin/bluetooth/hccontrol/ |
| HD | link_control.c | 179 cp.pkt_type = htole16( NG_HCI_PKT_DM1 | NG_HCI_PKT_DH1 | in hci_create_connection() 202 cp.clock_offset = htole16(cp.clock_offset); in hci_create_connection() 230 cp.pkt_type = htole16(cp.pkt_type); in hci_create_connection() 317 cp.con_handle = htole16(cp.con_handle); in hci_disconnect() 374 cp.pkt_type = htole16(NG_HCI_PKT_HV1 | NG_HCI_PKT_HV2 | NG_HCI_PKT_HV3); in hci_add_sco_connection() 388 cp.pkt_type = htole16(cp.pkt_type); in hci_add_sco_connection() 396 cp.con_handle = htole16(cp.con_handle); in hci_add_sco_connection() 460 cp.con_handle = htole16(cp.con_handle); in hci_change_connection_packet_type() 467 cp.pkt_type = htole16(cp.pkt_type); in hci_change_connection_packet_type() 535 cp.clock_offset = htole16(cp.clock_offset); in hci_remote_name_request() [all …]
|
| HD | status.c | 54 cp.con_handle = htole16(cp.con_handle); in hci_read_failed_contact_counter() 96 cp.con_handle = htole16(cp.con_handle); in hci_reset_failed_contact_counter() 135 cp.con_handle = htole16(cp.con_handle); in hci_get_link_quality() 177 cp.con_handle = htole16(cp.con_handle); in hci_read_rssi()
|
| HD | link_policy.c | 55 cp.con_handle = htole16(cp.con_handle); in hci_role_discovery() 171 cp.con_handle = htole16(cp.con_handle); in hci_read_link_policy_settings() 214 cp.con_handle = htole16(cp.con_handle); in hci_write_link_policy_settings() 221 cp.settings = htole16(cp.settings); in hci_write_link_policy_settings()
|
| HD | host_controller_baseband.c | 196 cmd.hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_HC_BASEBAND, in hci_read_stored_link_key() 494 cp.timeout = htole16(cp.timeout); in hci_write_connection_accept_timeout() 559 cp.timeout = htole16(cp.timeout); in hci_write_page_timeout() 701 cp.page_scan_interval = htole16(cp.page_scan_interval); in hci_write_page_scan_activity() 702 cp.page_scan_window = htole16(cp.page_scan_window); in hci_write_page_scan_activity() 783 htole16(cp.inquiry_scan_interval); in hci_write_inquiry_scan_activity() 784 cp.inquiry_scan_window = htole16(cp.inquiry_scan_window); in hci_write_inquiry_scan_activity() 1055 cp.settings = htole16(cp.settings); in hci_write_voice_settings() 1290 cp.con_handle = htole16(cp.con_handle); in hci_read_link_supervision_timeout() 1335 cp.con_handle = htole16(cp.con_handle); in hci_write_link_supervision_timeout() [all …]
|
| /NextBSD/sys/dev/usb/wlan/ |
| HD | if_upgt.c | 416 stats->header1.len = htole16( in upgt_get_stats() 420 stats->header2.type = htole16(UPGT_H2_TYPE_STATS); in upgt_get_stats() 497 led->header1.len = htole16( in upgt_set_led() 502 led->header2.type = htole16(UPGT_H2_TYPE_LED); in upgt_set_led() 507 led->mode = htole16(UPGT_LED_MODE_SET); in upgt_set_led() 509 led->action_tmp = htole16(UPGT_LED_ACTION_OFF); in upgt_set_led() 513 led->mode = htole16(UPGT_LED_MODE_SET); in upgt_set_led() 515 led->action_tmp = htole16(UPGT_LED_ACTION_ON); in upgt_set_led() 528 led->mode = htole16(UPGT_LED_MODE_SET); in upgt_set_led() 529 led->action_fix = htole16(UPGT_LED_ACTION_OFF); in upgt_set_led() [all …]
|
| /NextBSD/sys/netgraph/bluetooth/hci/ |
| HD | ng_hci_ulpi.c | 250 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL, in ng_hci_lp_acl_con_req() 267 req->cp.pkt_type = htole16(req->cp.pkt_type); in ng_hci_lp_acl_con_req() 287 req->cp.clock_offset = htole16(n->clock_offset); in ng_hci_lp_acl_con_req() 443 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL, in ng_hci_lp_sco_con_req() 446 req->cp.con_handle = htole16(acl_con->con_handle); in ng_hci_lp_sco_con_req() 460 req->cp.pkt_type = htole16(req->cp.pkt_type); in ng_hci_lp_sco_con_req() 617 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LE, in ng_hci_lp_le_con_req() 623 req->cp.scan_interval = htole16(4); in ng_hci_lp_le_con_req() 624 req->cp.scan_window = htole16(4); in ng_hci_lp_le_con_req() 626 req->cp.conn_interval_min = htole16(0xf); in ng_hci_lp_le_con_req() [all …]
|
| /NextBSD/sys/gnu/fs/reiserfs/ |
| HD | reiserfs_fs_sb.h | 55 #define set_sb_version(sbi, v) ((sbi)->s_v1.s_version = htole16(v)) 58 #define set_sb_blocksize(sbi, v) ((sbi)->s_v1.s_blocksize = htole16(v)) 66 #define set_sb_bmap_nr(sbi, v) ((sbi)->s_v1.s_bmap_nr = htole16(v))
|
| /NextBSD/sys/net80211/ |
| HD | ieee80211_radiotap.c | 72 th->it_len = htole16(roundup2(tlen, sizeof(uint32_t))); in ieee80211_radiotap_attachv() 88 rh->it_len = htole16(roundup2(rlen, sizeof(uint32_t))); in ieee80211_radiotap_attachv() 139 rc->freq = htole16(c->ic_freq); in set_channel() 140 rc->flags = htole16(c->ic_flags); in set_channel() 154 rc->freq = htole16(c->ic_freq); in set_xchannel()
|
| HD | ieee80211_output.c | 770 htole16(seqno << IEEE80211_SEQ_SEQ_SHIFT); in ieee80211_send_setup() 1524 htole16(seqno << IEEE80211_SEQ_SEQ_SHIFT); in ieee80211_encap() 1530 htole16(seqno << IEEE80211_SEQ_SEQ_SHIFT); in ieee80211_encap() 1671 *(uint16_t *)&whf->i_seq[0] |= htole16( in ieee80211_fragment() 1945 quiet->duration = htole16(vap->iv_quiet_duration); in ieee80211_add_quiet() 1946 quiet->offset = htole16(vap->iv_quiet_offset); in ieee80211_add_quiet() 2239 (is_shared_key) ? htole16(IEEE80211_AUTH_ALG_SHARED) in ieee80211_send_mgmt() 2240 : htole16(IEEE80211_AUTH_ALG_OPEN); in ieee80211_send_mgmt() 2241 ((uint16_t *)frm)[1] = htole16(arg); /* sequence number */ in ieee80211_send_mgmt() 2242 ((uint16_t *)frm)[2] = htole16(status);/* status */ in ieee80211_send_mgmt() [all …]
|
| /NextBSD/sys/dev/ubsec/ |
| HD | ubsec.c | 611 if ((dmap->d_dma->d_mcr.mcr_flags & htole16(UBS_MCR_DONE)) == 0) in ubsec_intr() 657 if ((mcr->mcr_flags & htole16(UBS_MCR_DONE)) == 0) { in ubsec_intr() 791 q->q_dma->d_dma->d_mcr.mcr_pkts = htole16(npkts); in ubsec_feed() 1086 dmap->d_dma->d_mcr.mcr_pkts = htole16(1); in ubsec_process() 1144 ctx.pc_flags |= htole16(UBS_PKTCTX_ENC_3DES); in ubsec_process() 1161 ctx.pc_flags |= htole16(UBS_PKTCTX_INBOUND); in ubsec_process() 1190 ctx.pc_flags |= htole16(UBS_PKTCTX_AUTH_MD5); in ubsec_process() 1192 ctx.pc_flags |= htole16(UBS_PKTCTX_AUTH_SHA1); in ubsec_process() 1244 ctx.pc_offset = htole16(coffset >> 2); in ubsec_process() 1272 dmap->d_dma->d_mcr.mcr_pktlen = htole16(stheend); in ubsec_process() [all …]
|
| /NextBSD/sys/dev/iwn/ |
| HD | if_iwn.c | 2174 if (val & htole16(IWN_EEPROM_SKU_CAP_11N)) in iwn_read_eeprom() 3067 if (stat->flags & htole16(IWN_STAT_FLAG_SHPREAMBLE)) in iwn_rx_done() 4169 *w = htole16(len + 8); in iwn4965_update_sched() 4187 *w = htole16(id << 12 | (len + 8)); in iwn5000_update_sched() 4205 *w = (*w & htole16(0xf000)) | htole16(1); in iwn5000_reset_sched() 4383 htole16(seqno << IEEE80211_SEQ_SEQ_SHIFT); in iwn_tx_data() 4506 tx->timeout = htole16(3); in iwn_tx_data() 4508 tx->timeout = htole16(2); in iwn_tx_data() 4510 tx->timeout = htole16(0); in iwn_tx_data() 4519 tx->len = htole16(totlen); in iwn_tx_data() [all …]
|
| /NextBSD/sys/dev/nfe/ |
| HD | if_nfe.c | 1960 desc64->length = htole16(m->m_len); in nfe_discard_rxbuf() 1961 desc64->flags = htole16(NFE_RX_READY); in nfe_discard_rxbuf() 1964 desc32->length = htole16(m->m_len); in nfe_discard_rxbuf() 1965 desc32->flags = htole16(NFE_RX_READY); in nfe_discard_rxbuf() 1986 desc64->length = htole16(m->m_len); in nfe_discard_jrxbuf() 1987 desc64->flags = htole16(NFE_RX_READY); in nfe_discard_jrxbuf() 1990 desc32->length = htole16(m->m_len); in nfe_discard_jrxbuf() 1991 desc32->flags = htole16(NFE_RX_READY); in nfe_discard_jrxbuf() 2039 desc64->length = htole16(segs[0].ds_len); in nfe_newbuf() 2040 desc64->flags = htole16(NFE_RX_READY); in nfe_newbuf() [all …]
|
| /NextBSD/usr.sbin/bluetooth/hcsecd/ |
| HD | hcsecd.c | 279 cmd->opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL, in send_pin_code_reply() 294 cmd->opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL, in send_pin_code_reply() 338 cmd->opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL, in send_link_key_reply() 352 cmd->opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL, in send_link_key_reply()
|
| /NextBSD/contrib/ofed/include/infiniband/ |
| HD | byteorder.h | 44 #define cpu_to_le16 htole16 58 #define cpu_to_le16p(x) htole16(*((uint16_t *)x))
|
| /NextBSD/sys/compat/linuxkpi/common/include/asm/ |
| HD | byteorder.h | 48 #define cpu_to_le16 htole16 62 #define cpu_to_le16p(x) htole16(*((uint16_t *)x))
|
| /NextBSD/sys/dev/wi/ |
| HD | if_wi.c | 166 val = htole16(val); in wi_write_val() 339 val = htole16(0x1fff); /* assume 1-11 */ in wi_attach() 411 val != htole16(0)) in wi_attach() 820 join.wi_chan = htole16( in wi_newstate_sta() 967 frmhdr.wi_tx_ctl = htole16(WI_ENC_TX_802_11|WI_TXCNTL_TX_EX); in wi_start() 975 frmhdr.wi_tx_ctl |= htole16(WI_TXCNTL_NOCRYPT); in wi_start() 986 frmhdr.wi_dat_len = htole16(m0->m_pkthdr.len); in wi_start() 1054 frmhdr.wi_tx_ctl = htole16(WI_ENC_TX_802_11|WI_TXCNTL_TX_EX); in wi_raw_xmit() 1056 frmhdr.wi_tx_ctl |= htole16(WI_TXCNTL_ALTRTRY); in wi_raw_xmit() 1064 frmhdr.wi_tx_ctl |= htole16(WI_TXCNTL_NOCRYPT); in wi_raw_xmit() [all …]
|
| /NextBSD/contrib/openbsm/compat/ |
| HD | endian.h | 128 #define htole16(x) ((uint16_t)(x)) macro 142 #define htole16(x) bswap16((x)) macro
|
| /NextBSD/tools/tools/net80211/wlaninject/ |
| HD | wlaninject.c | 611 *(uint16_t*)wh->i_dur = htole16(atoi(optarg)); in main() 631 *(uint16_t*)wh->i_seq |= htole16((atoi(optarg) & 0xfff) in main() 697 *x = htole16(atoi(optarg)); in main() 705 *x = htole16(atoi(optarg)); in main() 717 *x = htole16(atoi(optarg)); in main()
|