Home
last modified time | relevance | path

Searched refs:LE_16 (Results 1 – 25 of 63) sorted by relevance

123

/titanic_41/usr/src/uts/common/fs/pcfs/
H A Dpc_subr.c84 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_41/usr/src/uts/common/io/zyd/
H A Dzyd_hw.c78 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 Dzyd.c389 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_41/usr/src/cmd/mdb/intel/modules/i40e/
H A Di40e.c93 LE_16(rsrc.guaranteed), LE_16(rsrc.total), LE_16(rsrc.used), in i40e_switch_rsrcs_dcmd()
94 LE_16(rsrc.total_unalloced)); in i40e_switch_rsrcs_dcmd()
/titanic_41/usr/src/uts/common/io/net80211/
H A Dnet80211_output.c87 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 Dnet80211_input.c193 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_41/usr/src/uts/common/sys/scsi/adapters/pmcs/
H A Data.h269 ((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_41/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_sata.c168 (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_41/usr/src/uts/common/sys/
H A Duuid.h92 (dest).time_mid = LE_16((dest).time_mid); \
93 (dest).time_hi_and_version = LE_16((dest).time_hi_and_version); \
H A Dbyteorder.h150 #define LE_16(x) BSWAP_16(x) macro
155 #define LE_16(x) BMASK_16(x)
/titanic_41/usr/src/uts/common/io/mwl/
H A Dmwl.c881 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_41/usr/src/uts/common/io/iwk/
H A Diwk2.c638 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_41/usr/src/uts/common/io/iwh/
H A Diwh.c1887 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_41/usr/src/lib/libipmi/common/
H A Dipmi_sel.c86 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_41/usr/src/uts/common/io/cxgbe/t4nex/
H A Dosdep.h136 #define le16_to_cpu(x) LE_16((uint16_t)(x))
139 #define cpu_to_le16(x) LE_16((uint16_t)(x))
/titanic_41/usr/src/lib/libefi/common/
H A Drdwr_efi.c551 LE_16(efi_parts[i].efi_gpe_Attributes.PartitionAttrs); in efi_read()
559 (uchar_t)LE_16( in efi_read()
596 mb.signature = LE_16(MBB_MAGIC); in write_pmbr()
599 if (mb.signature != LE_16(MBB_MAGIC)) { in write_pmbr()
601 mb.signature = LE_16(MBB_MAGIC); in write_pmbr()
958 LE_16(vtoc->efi_parts[i].p_flag); in efi_write()
961 LE_16((ushort_t)vtoc->efi_parts[i].p_name[j]); in efi_write()
/titanic_41/usr/src/uts/common/io/i40e/
H A Di40e_osdep.h67 #define CPU_TO_LE16(o) LE_16(o)
70 #define LE16_TO_CPU(a) LE_16(a)
H A Di40e_main.c790 if (LE_16(sw_config->header.num_reported) != 1) { in i40e_get_vsi_id()
793 LE_16(sw_config->header.num_reported)); in i40e_get_vsi_id()
979 LE_16(srp->guaranteed); in i40e_get_available_resources()
980 i40e->i40e_resources.ifr_nvsis_used = LE_16(srp->used); in i40e_get_available_resources()
984 LE_16(srp->guaranteed); in i40e_get_available_resources()
986 LE_16(srp->used); in i40e_get_available_resources()
990 LE_16(srp->guaranteed); in i40e_get_available_resources()
992 LE_16(srp->used); in i40e_get_available_resources()
1004 LE_16(srp->total_unalloced) / idp->id_nfuncs; in i40e_get_available_resources()
1008 LE_16(srp->total_unalloced) / idp->id_nfuncs; in i40e_get_available_resources()
[all …]
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_xioctl.c1584 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_41/usr/src/uts/common/io/wpi/
H A Dwpi.c1350 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_41/usr/src/uts/common/io/fibre-channel/fca/oce/
H A Doce_mbx.c453 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_41/usr/src/uts/sun4v/io/
H A Dvdsk_common.c146 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_41/usr/src/uts/common/io/iwp/
H A Diwp.c1823 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_41/usr/src/uts/common/io/aac/
H A Daac_ioctl.c244 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_41/usr/src/uts/common/io/rwn/
H A Drt2860.c790 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 …]

123