/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | ieee80211.h | 792 fc &= htole16(IEEE80211_FC0_TYPE_MASK); in ieee80211_is_ctl() 793 v = htole16(IEEE80211_FC0_TYPE_CTL); in ieee80211_is_ctl() 804 fc &= htole16(IEEE80211_FC0_TYPE_MASK); in ieee80211_is_data() 805 v = htole16(IEEE80211_FC0_TYPE_DATA); in ieee80211_is_data() 816 fc &= htole16(IEEE80211_FC0_SUBTYPE_QOS_DATA | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_data_qos() 817 v = htole16(IEEE80211_FC0_SUBTYPE_QOS_DATA | IEEE80211_FC0_TYPE_DATA); in ieee80211_is_data_qos() 828 fc &= htole16(IEEE80211_FC0_TYPE_MASK); in ieee80211_is_mgmt() 829 v = htole16(IEEE80211_FC0_TYPE_MGT); in ieee80211_is_mgmt() 842 switch (fc & htole16(IEEE80211_FC0_SUBTYPE_MASK)) { in ieee80211_hdrlen() 843 case htole16(IEEE80211_FC0_SUBTYPE_CTS): in ieee80211_hdrlen() [all …]
|
/freebsd/sys/netgraph/bluetooth/l2cap/ |
H A D | ng_l2cap_cmds.h | 69 c->param.reason = htole16((_reason)); \ 72 c->data.mtu.mtu = htole16((_mtu)); \ 75 c->data.cid.scid = htole16((_scid)); \ 76 c->data.cid.dcid = htole16((_dcid)); \ 83 c->hdr.length = htole16(c->hdr.length); \ 103 c->hdr.length = htole16(sizeof(c->param)); \ 105 c->param.psm = htole16((_psm)); \ 106 c->param.scid = htole16((_scid)); \ 126 c->hdr.length = htole16(sizeof(c->param)); \ 128 c->param.dcid = htole16((_dcid)); \ [all …]
|
/freebsd/usr.sbin/btxld/ |
H A D | 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(nitems(elfhdr.p)), /* e_phnum */ 57 htole16(sizeof(elfhdr.sh[0])), /* e_shentsize */ 58 htole16(nitems(elfhdr.sh)), /* e_shnum */ 59 htole16(1) /* e_shstrndx */
|
/freebsd/sys/dev/bnxt/bnxt_en/ |
H A D | bnxt_hwrm.c | 136 req->req_type = htole16(req_type); in bnxt_hwrm_cmd_hdr_init() 155 req->seq_id = htole16(softc->hwrm_cmd_seq++); in _hwrm_send_message() 182 htole16(HWRM_SHORT_INPUT_SIGNATURE_SHORT_CMD); in _hwrm_send_message() 183 short_input.size = htole16(msg_len); in _hwrm_send_message() 664 req.fid = htole16(0xffff); in bnxt_hwrm_func_resc_qcaps() 986 req.os_type = htole16(HWRM_FUNC_DRV_RGTR_INPUT_OS_TYPE_FREEBSD); in bnxt_hwrm_func_drv_rgtr() 1076 req.fid = htole16(0xffff); in bnxt_hwrm_func_qcaps() 1202 req.fid = htole16(0xffff); in bnxt_hwrm_func_qcfg() 1292 req->auto_link_speed_mask = htole16(link_info->advertising); in bnxt_hwrm_set_link_common() 1306 req->force_pam4_link_speed = htole16(fw_link_speed); in bnxt_hwrm_set_link_common() [all …]
|
H A D | bnxt_dcb.c | 338 get.structure_id = htole16(HWRM_STRUCT_HDR_STRUCT_ID_DCBX_APP); in bnxt_hwrm_get_dcbx_app() 339 get.subtype = htole16(HWRM_STRUCT_DATA_SUBTYPE_HOST_OPERATIONAL); in bnxt_hwrm_get_dcbx_app() 348 if (data->struct_id != htole16(HWRM_STRUCT_HDR_STRUCT_ID_DCBX_APP)) { in bnxt_hwrm_get_dcbx_app() 390 get.structure_id = htole16(HWRM_STRUCT_HDR_STRUCT_ID_DCBX_APP); in bnxt_hwrm_set_dcbx_app() 391 get.subtype = htole16(HWRM_STRUCT_DATA_SUBTYPE_HOST_OPERATIONAL); in bnxt_hwrm_set_dcbx_app() 400 if (data->struct_id != htole16(HWRM_STRUCT_HDR_STRUCT_ID_DCBX_APP)) { in bnxt_hwrm_set_dcbx_app() 437 data->len = htole16(sizeof(*fw_app) * n); in bnxt_hwrm_set_dcbx_app() 438 data->subtype = htole16(HWRM_STRUCT_DATA_SUBTYPE_HOST_OPERATIONAL); in bnxt_hwrm_set_dcbx_app() 443 set.data_len = htole16(sizeof(*data) + sizeof(*fw_app) * n); in bnxt_hwrm_set_dcbx_app() 500 req.dest_data_buffer_size = htole16(sizeof(*dscp2pri) * 64); in bnxt_hwrm_queue_dscp2pri_qcfg() [all …]
|
H A D | bnxt_txrx.c | 114 tbd->len = htole16(pi->ipi_segs[seg].ds_len); in bnxt_isc_txd_encap() 128 tbdh->kid_or_ts_high_mss = htole16(pi->ipi_tso_segsz); in bnxt_isc_txd_encap() 129 tbdh->kid_or_ts_low_hdr_size = htole16((pi->ipi_ehdrlen + pi->ipi_ip_hlen + in bnxt_isc_txd_encap() 152 tbdh->lflags = htole16(lflags); in bnxt_isc_txd_encap() 159 tbd->flags_type = htole16(flags_type); in bnxt_isc_txd_encap() 162 tbd->len = htole16(pi->ipi_segs[seg].ds_len); in bnxt_isc_txd_encap() 167 tbd->flags_type = htole16(flags_type); in bnxt_isc_txd_encap() 281 rxbd[pidx].flags_type = htole16(type); in bnxt_isc_rxd_refill() 282 rxbd[pidx].len = htole16(softc->rx_buf_size); in bnxt_isc_rxd_refill()
|
/freebsd/sys/dev/mwl/ |
H A D | 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 …]
|
/freebsd/sys/dev/malo/ |
H A D | if_malohal.c | 61 pCmd->cmdhdr.cmd = htole16(_cmd); \ 62 pCmd->cmdhdr.length = htole16(sizeof(_type)); \ 341 mh->mh_cmdbuf[0] = htole16(MALO_HOSTCMD_CODE_DNLD); in malo_hal_send_helper() 342 mh->mh_cmdbuf[1] = htole16(bsize); in malo_hal_send_helper() 402 mh->mh_cmdbuf[0] = htole16(MALO_HOSTCMD_CODE_DNLD); in malo_hal_send_main() 403 mh->mh_cmdbuf[1] = htole16(dsize); in malo_hal_send_main() 404 mh->mh_cmdbuf[2] = htole16(seqnum); in malo_hal_send_main() 603 cmd->action = htole16(dirset); in malo_hal_setantenna() 608 cmd->mode = htole16(ant); in malo_hal_setantenna() 633 cmd->action = htole16(MALO_HOSTCMD_ACT_GEN_SET); in malo_hal_setradio() [all …]
|
/freebsd/sys/dev/iwm/ |
H A D | if_iwm_scan.c | 177 return htole16(rx_chain); in iwm_scan_rx_chain() 324 chan->channel_num = htole16(ieee80211_mhz2ieee(c->ic_freq, 0)); in iwm_lmac_scan_fill_channels() 325 chan->iter_count = htole16(1); in iwm_lmac_scan_fill_channels() 370 chan->iter_interval = htole16(0); in iwm_umac_scan_fill_channels() 413 preq->mac_header.len = htole16(frm - (uint8_t *)wh); in iwm_fill_probe_req() 424 preq->band_data[0].offset = htole16(frm - (uint8_t *)wh); in iwm_fill_probe_req() 429 preq->band_data[0].len = htole16(frm - pos); in iwm_fill_probe_req() 450 preq->band_data[1].offset = htole16(frm - (uint8_t *)wh); in iwm_fill_probe_req() 455 preq->band_data[1].len = htole16(frm - pos); in iwm_fill_probe_req() 460 preq->common_data.offset = htole16(frm - (uint8_t *)wh); in iwm_fill_probe_req() [all …]
|
H A D | if_iwm_power.c | 217 if (!(cmd->flags & htole16(IWM_POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK))) { in iwm_power_log() 227 if (cmd->flags & htole16(IWM_POWER_FLAGS_SKIP_OVER_DTIM_MSK)) in iwm_power_log() 259 cmd->flags &= ~htole16(IWM_POWER_FLAGS_SKIP_OVER_DTIM_MSK); in iwm_power_config_skip_dtim() 275 cmd->flags |= htole16(IWM_POWER_FLAGS_SKIP_OVER_DTIM_MSK); in iwm_power_config_skip_dtim() 302 cmd->keep_alive_seconds = htole16(keep_alive); in iwm_power_build_cmd() 307 cmd->flags |= htole16(IWM_POWER_FLAGS_POWER_SAVE_ENA_MSK); in iwm_power_build_cmd() 316 cmd->flags |= htole16(IWM_POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK); in iwm_power_build_cmd() 480 cmd.flags |= htole16(IWM_DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK); in iwm_power_update_device()
|
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_extents.c | 245 index->ei_leaf_hi = htole16((pb >> 32) & 0xffff); in ext4_index_store_pblock() 264 ex->e_start_hi = htole16((pb >> 32) & 0xffff); in ext4_ext_store_pblock() 280 ep->e_start_hi = htole16(ecp->ec_start >> 32 & 0xffff); in ext4_ext_in_cache() 281 ep->e_len = htole16(ecp->ec_len); in ext4_ext_in_cache() 716 ehp->eh_magic = htole16(EXT4_EXT_MAGIC); in ext4_ext_tree_init() 717 ehp->eh_max = htole16(ext4_ext_space_root(ip)); in ext4_ext_tree_init() 884 htole16(le16toh(path->ep_header->eh_ecount) + 1); in ext4_ext_insert_index() 998 neh->eh_ecount = htole16(le16toh(neh->eh_ecount) + m); in ext4_ext_split() 1008 htole16(le16toh(path[depth].ep_header->eh_ecount) - m); in ext4_ext_split() 1028 neh->eh_ecount = htole16( in ext4_ext_split() [all...] |
H A D | ext2_inode_cnv.c | 260 ei->e2di_mode = htole16(ip->i_mode); in ext2_i2ei() 261 ei->e2di_nlink = htole16(ip->i_nlink); in ext2_i2ei() 299 ei->e2di_nblock_high = htole16(ip->i_blocks >> 32 & 0xffff); in ext2_i2ei() 303 ei->e2di_nblock_high = htole16(dbtofsb(fs, ip->i_blocks) >> 32 & 0xffff); in ext2_i2ei() 307 ei->e2di_facl_high = htole16(ip->i_facl >> 32 & 0xffff); in ext2_i2ei() 309 ei->e2di_uid = htole16(ip->i_uid & 0xffff); in ext2_i2ei() 310 ei->e2di_uid_high = htole16(ip->i_uid >> 16 & 0xffff); in ext2_i2ei() 311 ei->e2di_gid = htole16(ip->i_gid & 0xffff); in ext2_i2ei() 312 ei->e2di_gid_high = htole16(ip->i_gid >> 16 & 0xffff); in ext2_i2ei()
|
H A D | ext2_htree.c | 176 ((struct ext2fs_htree_count *)(ep))->h_entries_num = htole16(cnt); in ext2_htree_set_count() 200 ((struct ext2fs_htree_count *)(ep))->h_entries_max = htole16(limit); in ext2_htree_set_limit() 524 last_entry->e2d_reclen = htole16(entry_len); in ext2_append_entry() 526 new_entry->e2d_reclen = htole16(block + blksize - (char *)last_entry - in ext2_append_entry() 573 sort_info->h_offset = htole16((char *)ep - block1); in ext2_htree_split_dirblock() 615 htole16(entry_len); in ext2_htree_split_dirblock() 633 last->e2d_reclen = htole16(entry_len); in ext2_htree_split_dirblock() 643 last->e2d_reclen = htole16(block1 + blksize - (char *)last - in ext2_htree_split_dirblock() 651 htole16(block2 + blksize - dest - csum_size); in ext2_htree_split_dirblock() 704 ep->e2d_reclen = htole16(buf1 + blksize - (char *)ep); in ext2_htree_create_index() [all …]
|
/freebsd/usr.sbin/bluetooth/hccontrol/ |
H A D | link_control.c | 180 cp.pkt_type = htole16( NG_HCI_PKT_DM1 | NG_HCI_PKT_DH1 | in hci_create_connection() 203 cp.clock_offset = htole16(cp.clock_offset); in hci_create_connection() 231 cp.pkt_type = htole16(cp.pkt_type); in hci_create_connection() 318 cp.con_handle = htole16(cp.con_handle); in hci_disconnect() 375 cp.pkt_type = htole16(NG_HCI_PKT_HV1 | NG_HCI_PKT_HV2 | NG_HCI_PKT_HV3); in hci_add_sco_connection() 389 cp.pkt_type = htole16(cp.pkt_type); in hci_add_sco_connection() 397 cp.con_handle = htole16(cp.con_handle); in hci_add_sco_connection() 461 cp.con_handle = htole16(cp.con_handle); in hci_change_connection_packet_type() 468 cp.pkt_type = htole16(cp.pkt_type); in hci_change_connection_packet_type() 536 cp.clock_offset = htole16(cp.clock_offset); in hci_remote_name_request() [all …]
|
H A D | status.c | 55 cp.con_handle = htole16(cp.con_handle); in hci_read_failed_contact_counter() 97 cp.con_handle = htole16(cp.con_handle); in hci_reset_failed_contact_counter() 136 cp.con_handle = htole16(cp.con_handle); in hci_get_link_quality() 178 cp.con_handle = htole16(cp.con_handle); in hci_read_rssi()
|
H A D | link_policy.c | 56 cp.con_handle = htole16(cp.con_handle); in hci_role_discovery() 172 cp.con_handle = htole16(cp.con_handle); in hci_read_link_policy_settings() 215 cp.con_handle = htole16(cp.con_handle); in hci_write_link_policy_settings() 222 cp.settings = htole16(cp.settings); in hci_write_link_policy_settings()
|
H A D | le.c | 957 cp.scan_interval = htole16(4); in le_connect() 958 cp.scan_window = htole16(4); in le_connect() 970 cp.conn_interval_min = htole16(0x000F); in le_connect() 972 cp.conn_interval_max = htole16(0x000F); in le_connect() 975 cp.conn_latency = htole16(0x0000); in le_connect() 978 cp.supervision_timeout = htole16(0x0C80); in le_connect() 981 cp.min_ce_length = htole16(1); in le_connect() 983 cp.max_ce_length = htole16(1); in le_connect() 1106 cp.connection_handle = htole16(cp.connection_handle); in le_read_channel_map() 1153 cp.connection_handle = htole16(cp.connection_handle); in le_read_remote_features()
|
/freebsd/sys/dev/usb/wlan/ |
H A D | 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 …]
|
/freebsd/sys/netgraph/bluetooth/hci/ |
H A D | ng_hci_ulpi.c | 251 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL, in ng_hci_lp_acl_con_req() 268 req->cp.pkt_type = htole16(req->cp.pkt_type); in ng_hci_lp_acl_con_req() 288 req->cp.clock_offset = htole16(n->clock_offset); in ng_hci_lp_acl_con_req() 444 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL, in ng_hci_lp_sco_con_req() 447 req->cp.con_handle = htole16(acl_con->con_handle); in ng_hci_lp_sco_con_req() 461 req->cp.pkt_type = htole16(req->cp.pkt_type); in ng_hci_lp_sco_con_req() 618 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LE, in ng_hci_lp_le_con_req() 624 req->cp.scan_interval = htole16(4); in ng_hci_lp_le_con_req() 625 req->cp.scan_window = htole16(4); in ng_hci_lp_le_con_req() 627 req->cp.conn_interval_min = htole16(0xf); in ng_hci_lp_le_con_req() [all …]
|
/freebsd/lib/libnvmf/ |
H A D | nvmf_controller.c | 26 cpl->status = htole16(status); in nvmf_init_cqe() 74 nc->nc_cqe.sqhd = htole16(qp->nq_sqhd); in nvmf_controller_transmit_response() 130 rsp.status_code_specific.invalid.ipo = htole16(offset); in nvmf_connect_invalid_parameters() 189 if (cmd->recfmt != htole16(0)) { in nvmf_accept() 345 rsp.sqhd = htole16(qp->nq_sqhd); in nvmf_finish_accept() 347 rsp.sqhd = htole16(0xffff); in nvmf_finish_accept() 348 rsp.status_code_specific.success.cntlid = htole16(cntlid); in nvmf_finish_accept() 400 cdata->ctrlr_id = htole16(qp->nq_cntlid); in nvmf_init_discovery_controller_data() 407 cdata->maxcmd = htole16(na->na_params.max_admin_qsize); in nvmf_init_discovery_controller_data()
|
/freebsd/usr.sbin/bluetooth/iwmbtfw/ |
H A D | iwmbt_hw.c | 62 cmd->opcode = htole16(0xfc09), in iwmbt_send_fragment() 370 if (cmd->opcode == htole16(0xfc0e)) { in iwmbt_load_fwfile() 416 .opcode = htole16(0xfc11), in iwmbt_enter_manufacturer() 445 .opcode = htole16(0xfc11), in iwmbt_exit_manufacturer() 477 .opcode = htole16(0xfc05), in iwmbt_exit_manufacturer() 511 .opcode = htole16(0xfc05), in iwmbt_get_version() 645 .opcode = htole16(0xfc0d), in iwmbt_get_version_tlv() 678 .opcode = htole16(0xfc01), in iwmbt_get_boot_params() 728 cmd->opcode = htole16(0xfc8b); in iwmbt_load_ddc() 760 .opcode = htole16( in iwmbt_load_ddc() [all...] |
/freebsd/sys/dev/nvmf/controller/ |
H A D | nvmft_qpair.c | 205 cpl.sqhd = htole16(qp->sqhd); in _nvmft_send_response() 252 cpl->status = htole16(status); in nvmft_init_cqe() 304 rsp->status = htole16(status); in nvmft_init_connect_rsp() 356 rsp.status_code_specific.invalid.ipo = htole16(offset); in nvmft_connect_invalid_parameters() 370 rsp.sqhd = htole16(qp->sqhd); in nvmft_finish_accept() 372 rsp.sqhd = htole16(0xffff); in nvmft_finish_accept() 373 rsp.status_code_specific.success.cntlid = htole16(ctrlr->cntlid); in nvmft_finish_accept()
|
/freebsd/sys/net80211/ |
H A D | 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()
|
/freebsd/usr.sbin/bluetooth/rtlbtfw/ |
H A D | rtlbt_hw.c | 120 .opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_INFO, in rtlbt_read_local_ver() 154 .opcode = htole16(0xfc6d), in rtlbt_read_rom_ver() 200 cmd->opcode = htole16(0xfc20); in rtlbt_load_fwfile()
|
/freebsd/usr.sbin/mpsutil/ |
H A D | mps_slot.c | 101 if (mps_set_slot_status(fd, htole16(handle), htole16(slot), in slot_set()
|