/titanic_50/usr/src/uts/common/fs/pcfs/ |
H A D | pc_subr.c | 84 LE_16(23 << HOURSHIFT | 59 << MINSHIFT | (59/2) << SECSHIFT) 86 LE_16(127 << YEARSHIFT | 12 << MONSHIFT | 31 << DAYSHIFT) 174 LE_16(hour << HOURSHIFT | min << MINSHIFT | (sec / 2) << SECSHIFT); in pc_tvtopct() 176 LE_16(year << YEARSHIFT | month << MONSHIFT | day << DAYSHIFT); in pc_tvtopct() 194 sec = 2 * ((LE_16(pctp->pct_time) >> SECSHIFT) & SECMASK); in pc_pcttotv() 195 min = (LE_16(pctp->pct_time) >> MINSHIFT) & MINMASK; in pc_pcttotv() 196 hour = (LE_16(pctp->pct_time) >> HOURSHIFT) & HOURMASK; in pc_pcttotv() 197 day = (LE_16(pctp->pct_date) >> DAYSHIFT) & DAYMASK; in pc_pcttotv() 198 month = (LE_16(pctp->pct_date) >> MONSHIFT) & MONMASK; in pc_pcttotv() 199 year = (LE_16(pctp->pct_date) >> YEARSHIFT) & YEARMASK; in pc_pcttotv()
|
/titanic_50/usr/src/uts/common/io/zyd/ |
H A D | zyd_hw.c | 78 regs[0] = LE_16(ZYD_REG32_HI(reg)); in zyd_read32() 79 regs[1] = LE_16(ZYD_REG32_LO(reg)); in zyd_read32() 90 LE_16(regs[0]), LE_16(regs[1]), in zyd_read32() 91 LE_16(tmp[0]), LE_16(tmp[2])); in zyd_read32() 95 *val = ((uint32_t)LE_16(tmp[1]) << 16) | (uint32_t)LE_16(tmp[3]); in zyd_read32() 113 tmp[0] = LE_16(ZYD_REG32_HI(reg)); in zyd_write32() 114 tmp[1] = LE_16(val >> 16); in zyd_write32() 115 tmp[2] = LE_16(ZYD_REG32_LO(reg)); in zyd_write32() 116 tmp[3] = LE_16(val & 0xffff); in zyd_write32() 137 regbuf = LE_16(reg); in zyd_read16() [all …]
|
H A D | zyd.c | 389 buf_hdr->frame_size = LE_16(frame_size); in zyd_send() 397 buf_hdr->packet_size = LE_16(frame_size + additional_size); in zyd_send() 399 buf_hdr->packet_size = LE_16(additional_size); in zyd_send() 435 buf_hdr->frame_duration = LE_16((16 * frame_size + rate - 1) / rate); in zyd_send() 437 buf_hdr->next_frame_duration = LE_16(0); in zyd_send()
|
/titanic_50/usr/src/uts/common/io/net80211/ |
H A D | net80211_output.c | 87 LE_16(in->in_txseqs[IEEE80211_NONQOS_TID] << in ieee80211_send_setup() 234 LE_16(in->in_txseqs[tid] << IEEE80211_SEQ_SEQ_SHIFT); in ieee80211_encap() 238 LE_16(in->in_txseqs[IEEE80211_NONQOS_TID] << in ieee80211_encap() 536 *(uint16_t *)frm = LE_16(ic->ic_bss->in_intval); in ieee80211_send_mgmt() 539 *(uint16_t *)frm = LE_16(capinfo); in ieee80211_send_mgmt() 631 (is_shared_key) ? LE_16(IEEE80211_AUTH_ALG_SHARED) in ieee80211_send_mgmt() 632 : LE_16(IEEE80211_AUTH_ALG_OPEN); in ieee80211_send_mgmt() 633 ((uint16_t *)frm)[1] = LE_16(arg); /* sequence number */ in ieee80211_send_mgmt() 634 ((uint16_t *)frm)[2] = LE_16(status); /* status */ in ieee80211_send_mgmt() 654 *(uint16_t *)frm = LE_16(arg); /* reason */ in ieee80211_send_mgmt() [all …]
|
H A D | net80211_input.c | 193 rxseq = LE_16(*(uint16_t *)wh->i_seq); in ieee80211_input() 438 rxseq = LE_16(*(uint16_t *)wh->i_seq); in ieee80211_defrag() 473 last_rxseq = LE_16(*(uint16_t *)lwh->i_seq); in ieee80211_defrag() 876 scan.bintval = LE_16(*(uint16_t *)frm); in ieee80211_recv_beacon() 878 scan.capinfo = LE_16(*(uint16_t *)frm); in ieee80211_recv_beacon() 904 scan.fhdwell = LE_16(*(uint16_t *)(frm + 2)); in ieee80211_recv_beacon() 1273 algo = LE_16(*(uint16_t *)frm); in ieee80211_recv_mgmt() 1274 seq = LE_16(*(uint16_t *)(frm + 2)); in ieee80211_recv_mgmt() 1275 status = LE_16(*(uint16_t *)(frm + 4)); in ieee80211_recv_mgmt() 1321 capinfo = LE_16(*(uint16_t *)frm); in ieee80211_recv_mgmt() [all …]
|
/titanic_50/usr/src/uts/common/sys/scsi/adapters/pmcs/ |
H A D | ata.h | 269 ((LE_16(ati->word83) & (1 << 10)) == 0)? \ 270 (LE_16(ati->word60) | ((LE_16(ati->word61)) << 16)) : \ 271 ((LE_16(ati->word100)) | ((LE_16(ati->word101)) << 16) | \ 272 (((uint64_t)LE_16(ati->word102)) << 32) | \ 273 (((uint64_t)LE_16(ati->word103)) << 48))
|
/titanic_50/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_sata.c | 168 (LE_16(id->word76) & (1 << 8))) { in pmcs_sata_special_work() 170 xp->qdepth = (LE_16(id->word75) & 0x1f) + 1; in pmcs_sata_special_work() 229 if ((LE_16(id->word87) & 0x100) && in pmcs_sata_special_work() 230 (LE_16(id->word108) >> 12) == 5) { in pmcs_sata_special_work() 235 rp[8] = LE_16(id->word108) >> 8; in pmcs_sata_special_work() 236 rp[9] = LE_16(id->word108); in pmcs_sata_special_work() 237 rp[10] = LE_16(id->word109) >> 8; in pmcs_sata_special_work() 238 rp[11] = LE_16(id->word109); in pmcs_sata_special_work() 239 rp[12] = LE_16(id->word110) >> 8; in pmcs_sata_special_work() 240 rp[13] = LE_16(id->word110); in pmcs_sata_special_work() [all …]
|
/titanic_50/usr/src/uts/common/sys/ |
H A D | uuid.h | 92 (dest).time_mid = LE_16((dest).time_mid); \ 93 (dest).time_hi_and_version = LE_16((dest).time_hi_and_version); \
|
H A D | byteorder.h | 150 #define LE_16(x) BSWAP_16(x) macro 155 #define LE_16(x) BMASK_16(x)
|
/titanic_50/usr/src/uts/common/io/mwl/ |
H A D | mwl.c | 881 sc->sc_cmd_mem[0] = LE_16(HostCmd_CMD_CODE_DNLD); in mwlSendBlock() 882 sc->sc_cmd_mem[1] = LE_16(bsize); in mwlSendBlock() 1184 if (sc->sc_cmd_mem[0] == LE_16(cmdCode)) in mwlWaitForCmdComplete() 1258 len = LE_16(h->Length); in dumpresult() 1262 mwlcmdname(LE_16(h->Cmd) & ~0x8000), len, h->SeqNum, h->MacId); in dumpresult() 1266 mwlcmdname(LE_16(h->Cmd) & ~0x8000), len, LE_16(h->SeqNum)); in dumpresult() 1272 int result = LE_16(h->Result); in dumpresult() 1661 hw->regionCode = LE_16(pCmd->RegionCode) & 0x00ff; in mwl_gethwspecs() 1663 hw->maxNumWCB = LE_16(pCmd->NumOfWCB); in mwl_gethwspecs() 1664 hw->maxNumMCAddr = LE_16(pCmd->NumOfMCastAddr); in mwl_gethwspecs() [all …]
|
/titanic_50/usr/src/cmd/mdb/intel/modules/i40e/ |
H A D | i40e.c | 94 LE_16(rsrc.guaranteed), LE_16(rsrc.total), LE_16(rsrc.used), in i40e_switch_rsrcs_dcmd() 95 LE_16(rsrc.total_unalloced)); in i40e_switch_rsrcs_dcmd()
|
/titanic_50/usr/src/uts/common/io/iwk/ |
H A D | iwk2.c | 638 if (LE_16(sc->sc_eep_map.calib_version) < EEP_TX_POWER_VERSION_NEW) { in iwk_attach() 1891 LE_16(sc->sc_ibss.ibss_node_tb[index1]. in iwk_key_set() 1925 node.key_flags = LE_16(node.key_flags); in iwk_key_set() 2107 stat->non_cfg_phy[i] = LE_16(stat->non_cfg_phy[i]); in iwk_rx_intr() 2112 ants = (LE_16(stat->phy_flags) & RX_PHY_FLAGS_ANTENNAE_MASK) >> in iwk_rx_intr() 2128 len = LE_16(stat->byte_count); in iwk_rx_intr() 2135 len, stat->rate.r.s.rate, LE_16(stat->channel), in iwk_rx_intr() 2198 LE_16(stat->duration), LE_32(stat->status))); in iwk_tx_intr() 2853 tx->timeout.pm_frame_timeout = LE_16(3); in iwk_send() 2855 tx->timeout.pm_frame_timeout = LE_16(2); in iwk_send() [all …]
|
/titanic_50/usr/src/uts/common/io/iwh/ |
H A D | iwh.c | 1887 LE_16(sc->sc_config.chan), in iwh_newstate() 2364 len = LE_16(mpdu_size->byte_count); in iwh_rx_mpdu_intr() 3317 tx->timeout.pm_frame_timeout = LE_16(3); in iwh_send() 3319 tx->timeout.pm_frame_timeout = LE_16(2); in iwh_send() 3405 tx->len = LE_16(len); in iwh_send() 4014 sc->sc_config.chan = LE_16(ieee80211_chan2ieee(ic, in->in_chan)); in iwh_hw_set_before_auth() 4054 LE_16(sc->sc_config.chan), LE_32(sc->sc_config.flags), in iwh_hw_set_before_auth() 4132 hdr->quiet_time = LE_16(50); in iwh_scan() 4133 hdr->quiet_plcp_th = LE_16(1); in iwh_scan() 4136 hdr->rx_chain = LE_16(RXON_RX_CHAIN_DRIVER_FORCE_MSK | in iwh_scan() [all …]
|
/titanic_50/usr/src/uts/common/io/i40e/ |
H A D | i40e_main.c | 789 if (LE_16(sw_config->header.num_reported) != 1) { in i40e_set_def_vsi_seid() 792 LE_16(sw_config->header.num_reported)); in i40e_set_def_vsi_seid() 822 return (LE_16(sw_config->element[0].uplink_seid)); in i40e_get_mac_seid() 1004 LE_16(srp->guaranteed); in i40e_get_available_resources() 1005 i40e->i40e_resources.ifr_nvsis_used = LE_16(srp->used); in i40e_get_available_resources() 1009 LE_16(srp->guaranteed); in i40e_get_available_resources() 1011 LE_16(srp->used); in i40e_get_available_resources() 1015 LE_16(srp->guaranteed); in i40e_get_available_resources() 1017 LE_16(srp->used); in i40e_get_available_resources() 1029 LE_16(srp->total_unalloced) / idp->id_nfuncs; in i40e_get_available_resources() [all …]
|
H A D | i40e_osdep.h | 67 #define CPU_TO_LE16(o) LE_16(o) 70 #define LE16_TO_CPU(a) LE_16(a)
|
/titanic_50/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | osdep.h | 136 #define le16_to_cpu(x) LE_16((uint16_t)(x)) 139 #define cpu_to_le16(x) LE_16((uint16_t)(x))
|
/titanic_50/usr/src/lib/libipmi/common/ |
H A D | ipmi_sel.c | 86 data.ic_sel_ent_recid = LE_16(id); in ipmi_sel_get_entry() 193 off16 = LE_16(off16); in ipmi_sel_set_utc_offset()
|
/titanic_50/usr/src/lib/libefi/common/ |
H A D | rdwr_efi.c | 538 LE_16(efi_parts[i].efi_gpe_Attributes.PartitionAttrs); in efi_read() 546 (uchar_t)LE_16( in efi_read() 583 mb.signature = LE_16(MBB_MAGIC); in write_pmbr() 586 if (mb.signature != LE_16(MBB_MAGIC)) { in write_pmbr() 588 mb.signature = LE_16(MBB_MAGIC); in write_pmbr() 931 LE_16(vtoc->efi_parts[i].p_flag); in efi_write() 934 LE_16((ushort_t)vtoc->efi_parts[i].p_name[j]); in efi_write()
|
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_xioctl.c | 1584 LE_16(SNS_24XX_HDL) : in ql_fcct() 1585 LE_16(MANAGEMENT_SERVER_24XX_LOOP_ID)); in ql_fcct() 1588 pkt->ms24.timeout = LE_16(120); in ql_fcct() 1591 pkt->ms24.cmd_dseg_count = LE_16(1); in ql_fcct() 1592 pkt->ms24.resp_dseg_count = LE_16(1); in ql_fcct() 1619 comp_status = (uint16_t)LE_16(pkt->sts24.comp_status); in ql_fcct() 1654 pkt->ms.timeout = LE_16(120); in ql_fcct() 1658 pkt->ms.total_dseg_count = LE_16(2); in ql_fcct() 1681 comp_status = (uint16_t)LE_16(pkt->sts.comp_status); in ql_fcct() 2233 pkt->cmd24.n_port_hdl = (uint16_t)LE_16(tq->loop_id); in ql_scsi_passthru() [all …]
|
/titanic_50/usr/src/uts/common/io/wpi/ |
H A D | wpi.c | 1350 sc->sc_config.state = LE_16(WPI_CONFIG_ASSOCIATED); in wpi_newstate() 1674 tail = (wpi_rx_tail_t *)((caddr_t)(head + 1) + LE_16(head->len)); 1676 len = LE_16(head->len); 1712 LE_16(ic->ic_channels[head->chan].ic_freq); 1714 LE_16(ic->ic_channels[head->chan].ic_flags); 1716 tap->wr_dbm_antnoise = (int8_t)LE_16(stat->noise); 1718 tap->wr_antenna = (LE_16(head->flags) >> 4) & 0xf; 1737 if (LE_16(head->flags) & 0x4) 2211 tap->wt_chan_freq = LE_16(ic->ic_curchan->ic_freq); 2212 tap->wt_chan_flags = LE_16(ic->ic_curchan->ic_flags); [all …]
|
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_mbx.c | 453 LE_16(fwcmd->params.rsp.mac.size_of_struct)); in oce_read_mac_addr() 464 mac->size_of_struct = LE_16(fwcmd->params.rsp.mac.size_of_struct); in oce_read_mac_addr() 512 fwcmd->params.req.vlan_tag.u0.normal.vtag = LE_16(vlan_tag); in oce_if_create() 622 link->qos_link_speed = LE_16(link->qos_link_speed); in oce_get_link_status() 700 fwcmd->params.req.num_mac = LE_16(mca_cnt); in oce_set_multicast_table() 1199 fwcmd->params.req.enable_rss = LE_16(rss_type); in oce_config_rss() 1213 fwcmd->params.req.cpu_tbl_sz_log2 = LE_16(OCE_LOG2(tbl_sz)); in oce_config_rss()
|
/titanic_50/usr/src/uts/sun4v/io/ |
H A D | vdsk_common.c | 146 LE_16(gpe[i].efi_gpe_Attributes.PartitionAttrs); in vd_efi_swap_gpe() 149 LE_16(gpe[i].efi_gpe_PartitionName[j]); in vd_efi_swap_gpe()
|
/titanic_50/usr/src/uts/common/io/iwp/ |
H A D | iwp.c | 1823 LE_16(sc->sc_config.chan), in iwp_newstate() 2268 len = LE_16(mpdu_size->byte_count); in iwp_rx_mpdu_intr() 3178 tx->timeout.pm_frame_timeout = LE_16(3); in iwp_send() 3180 tx->timeout.pm_frame_timeout = LE_16(2); in iwp_send() 3238 tx->len = LE_16(len); in iwp_send() 3833 sc->sc_config.chan = LE_16(ieee80211_chan2ieee(ic, in->in_chan)); in iwp_hw_set_before_auth() 3870 LE_16(sc->sc_config.chan), LE_32(sc->sc_config.flags), in iwp_hw_set_before_auth() 3930 hdr->quiet_time = LE_16(50); in iwp_scan() 3931 hdr->quiet_plcp_th = LE_16(1); in iwp_scan() 3934 hdr->rx_chain = LE_16(RXON_RX_CHAIN_DRIVER_FORCE_MSK | in iwp_scan() [all …]
|
/titanic_50/usr/src/uts/common/io/aac/ |
H A D | aac_ioctl.c | 244 fib_command = LE_16(fibp->Header.Command); in aac_ioctl_send_fib() 245 fib_data_size = LE_16(fibp->Header.Size); in aac_ioctl_send_fib() 246 fib_sender_size = LE_16(fibp->Header.SenderSize); in aac_ioctl_send_fib() 263 fibp->Header.Size = LE_16(fib_size); in aac_ioctl_send_fib()
|
/titanic_50/usr/src/uts/common/io/rwn/ |
H A D | rt2860.c | 790 ring->txd[i].sdl0 &= ~LE_16(RT2860_TX_DDONE); in rt2860_reset_tx_ring() 864 rxd->sdl0 = LE_16(sc->sc_dmabuf_size); in rt2860_alloc_rx_ring() 884 ring->rxd[i].sdl0 &= ~LE_16(RT2860_RX_DDONE); in rt2860_reset_rx_ring() 1182 txwi->len = LE_16(pktlen); in rt2860_send() 1184 txwi->phy = LE_16(RT2860_PHY_CCK); in rt2860_send() 1188 txwi->phy = LE_16(RT2860_PHY_OFDM); in rt2860_send() 1189 txwi->phy |= LE_16(mcs); in rt2860_send() 1199 txwi->len |= LE_16(pid << RT2860_TX_PID_SHIFT); in rt2860_send() 1215 *(uint16_t *)wh->i_dur = LE_16(dur); in rt2860_send() 1228 txd->sdl0 = LE_16(16 + hdrlen); in rt2860_send() [all …]
|