Home
last modified time | relevance | path

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

1234

/illumos-gate/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()
/illumos-gate/usr/src/uts/common/io/qede/
H A Dqede_dbg.c296 cmn_err(CE_WARN, " pkt_len = %d", LE_16(cqe->pkt_len)); in qede_dump_reg_cqe()
299 LE_16(cqe->len_on_first_bd)); in qede_dump_reg_cqe()
304 LE_16((uint16_t)cqe->pars_flags.flags)); in qede_dump_reg_cqe()
316 cmn_err(CE_WARN, " seg_len = %d", LE_16(cqe->seg_len)); in qede_dump_start_lro_cqe()
320 LE_16(cqe->len_on_first_bd)); in qede_dump_start_lro_cqe()
325 LE_16(cqe->ext_bd_len_list[i])); in qede_dump_start_lro_cqe()
327 LE_16((uint16_t)cqe->pars_flags.flags)); in qede_dump_start_lro_cqe()
341 LE_16(cqe->len_list[i])); in qede_dump_cont_lro_cqe()
352 LE_16(cqe->total_packet_len)); in qede_dump_end_lro_cqe()
355 LE_16(cqe->num_of_coalesced_segs)); in qede_dump_end_lro_cqe()
[all …]
H A Dqede_fp.c105 uint16_t hw_consumer = LE_16(*tx_ring->hw_cons_ptr); in qede_print_tx_indexes()
145 hw_consumer = LE_16(*tx_ring->hw_cons_ptr); in qede_process_tx_completions()
217 u16 hw_bd_cons = LE_16(*tx_ring->hw_cons_ptr); in qede_has_tx_work()
323 lro_info->pars_flags = LE_16(cqe->pars_flags.flags); in qede_lro_start()
324 lro_info->pad = LE_16(cqe->placement_offset); in qede_lro_start()
326 lro_info->vlan_tag = LE_16(cqe->vlan_tag); in qede_lro_start()
329 seg_len = (int)LE_16(cqe->seg_len); in qede_lro_start()
330 len_on_first_bd = (int)LE_16(cqe->len_on_first_bd); in qede_lro_start()
398 work_length = total_packet_length = LE_16(cqe->total_packet_len); in qede_lro_end()
/illumos-gate/usr/src/uts/common/io/zyd/
H A Dzyd_hw.c90 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()
116 tmp[3] = LE_16(val & 0xffff); in zyd_write32()
137 regbuf = LE_16(reg); in zyd_read16()
148 LE_16(regbuf), LE_16(tmp[0])); in zyd_read16()
155 *val = LE_16(tmp[1]); in zyd_read16()
174 tmp[1] = LE_16(val & 0xffff); in zyd_write16()
[all …]
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_output.c541 *(uint16_t *)frm = LE_16(capinfo); in ieee80211_send_mgmt()
634 : LE_16(IEEE80211_AUTH_ALG_OPEN); in ieee80211_send_mgmt()
656 *(uint16_t *)frm = LE_16(arg); /* reason */ in ieee80211_send_mgmt()
701 *(uint16_t *)frm = LE_16(capinfo); in ieee80211_send_mgmt()
704 *(uint16_t *)frm = LE_16(ic->ic_lintval); in ieee80211_send_mgmt()
755 *(uint16_t *)frm = LE_16(capinfo); in ieee80211_send_mgmt()
762 *(uint16_t *)frm = LE_16(in->in_associd); in ieee80211_send_mgmt()
764 *(uint16_t *)frm = LE_16(0); in ieee80211_send_mgmt()
851 *(uint16_t *)frm = LE_16(in->in_intval); in ieee80211_beacon_alloc()
855 *(uint16_t *)frm = LE_16(capinfo); in ieee80211_beacon_alloc()
[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()
876 scan.bintval = LE_16(*(uint16_t *)frm); in ieee80211_recv_beacon()
878 scan.capinfo = LE_16(*(uint16_t *)frm); 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()
1321 capinfo = LE_16(*(uint16_t *)frm); in ieee80211_recv_mgmt()
1323 status = LE_16(*(uint16_t *)frm); in ieee80211_recv_mgmt()
1335 associd = LE_16(*(uint16_t *)frm); in ieee80211_recv_mgmt()
1482 status = LE_16(*(uint16_t *)frm); in ieee80211_recv_mgmt()
[all …]
/illumos-gate/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))
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_sata.c169 (LE_16(id->word76) & (1 << 8))) { in pmcs_sata_special_work()
230 if ((LE_16(id->word87) & 0x100) && in pmcs_sata_special_work()
231 (LE_16(id->word108) >> 12) == 5) { in pmcs_sata_special_work()
236 rp[8] = LE_16(id->word108) >> 8; in pmcs_sata_special_work()
237 rp[9] = LE_16(id->word108); in pmcs_sata_special_work()
238 rp[10] = LE_16(id->word109) >> 8; in pmcs_sata_special_work()
239 rp[11] = LE_16(id->word109); in pmcs_sata_special_work()
240 rp[12] = LE_16(id->word110) >> 8; in pmcs_sata_special_work()
241 rp[13] = LE_16(id->word110); in pmcs_sata_special_work()
242 rp[14] = LE_16(id->word111) >> 8; in pmcs_sata_special_work()
[all …]
/illumos-gate/usr/src/tools/btxld/
H A Dendian.h30 #define htole16 LE_16
36 #define le16toh LE_16
/illumos-gate/usr/src/uts/common/io/mwl/
H A Dmwl.c1267 len = LE_16(h->Length); in dumpresult()
1275 mwlcmdname(LE_16(h->Cmd) & ~0x8000), len, LE_16(h->SeqNum)); in dumpresult()
1281 int result = LE_16(h->Result); in dumpresult()
1724 pCmd->AID = LE_16(aid); in mwl_hal_newstation()
1725 pCmd->StnId = LE_16(sid); in mwl_hal_newstation()
1760 pCmd->Action = LE_16(dirSet); in mwl_hal_setantenna()
1763 pCmd->AntennaMode = LE_16(ant); in mwl_hal_setantenna()
1787 pCmd->RadioOn = LE_16(onoff); in mwl_hal_setradio()
1801 pCmd->Action = LE_16(onoff); in mwl_hal_setwmm()
2100 pCmd->CSMode = LE_16(csmode); in mwl_hal_setcsmode()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Duuid.h90 (dest).time_mid = LE_16((dest).time_mid); \
91 (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)
/illumos-gate/usr/src/cmd/mdb/intel/modules/i40e/
H A Di40e.c94 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()
/illumos-gate/usr/src/uts/common/io/iwn/
H A Dif_iwncompat.h151 #define le16toh(x) LE_16(x)
152 #define htole16(x) LE_16(x)
/illumos-gate/usr/src/uts/common/io/iwk/
H A Diwk2.c2128 len = LE_16(stat->byte_count); in iwk_rx_intr()
2872 tx->len = LE_16(len); in iwk_send()
3024 s.ramon_tx_gain = LE_16(0x3f3f); in iwk_m_ioctl()
3029 ramon_tx_gain = LE_16(0x3f3f); in iwk_m_ioctl()
3666 hdr->quiet_time = LE_16(50); in iwk_scan()
3667 hdr->quiet_plcp_th = LE_16(1); in iwk_scan()
3770 chan->active_dwell = LE_16(50); in iwk_scan()
3771 chan->passive_dwell = LE_16(120); in iwk_scan()
3817 powertable.flags = LE_16(0x8); in iwk_config()
4135 eep_p[addr/2] = LE_16(rv >> 16); in iwk_eep_load()
[all …]
/illumos-gate/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()
3406 tx->len = LE_16(len); in iwh_send()
4133 hdr->quiet_time = LE_16(50); in iwh_scan()
4134 hdr->quiet_plcp_th = LE_16(1); in iwh_scan()
4251 chan.active_dwell = LE_16(50); in iwh_scan()
4252 chan.passive_dwell = LE_16(120); in iwh_scan()
4306 powertable.flags = LE_16(0x8); in iwh_config()
4766 eep_p[addr/2] = LE_16(rv >> 16); in iwh_eep_load()
6219 sc->sc_config.rx_chain |= LE_16(3 << in iwh_config_rxon_chain()
[all …]
/illumos-gate/usr/src/uts/common/io/i40e/
H A Di40e_main.c802 if (LE_16(sw_config->header.num_reported) != 1) { in i40e_set_def_vsi_seid()
805 LE_16(sw_config->header.num_reported)); in i40e_set_def_vsi_seid()
835 return (LE_16(sw_config->element[0].uplink_seid)); in i40e_get_mac_seid()
1017 LE_16(srp->guaranteed); in i40e_get_available_resources()
1022 LE_16(srp->guaranteed); in i40e_get_available_resources()
1024 LE_16(srp->used); in i40e_get_available_resources()
1028 LE_16(srp->guaranteed); in i40e_get_available_resources()
1030 LE_16(srp->used); in i40e_get_available_resources()
1042 LE_16(srp->total_unalloced) / idp->id_nfuncs; in i40e_get_available_resources()
1046 LE_16(srp->total_unalloced) / idp->id_nfuncs; in i40e_get_available_resources()
[all …]
H A Di40e_osdep.h67 #define CPU_TO_LE16(o) LE_16(o)
70 #define LE16_TO_CPU(a) LE_16(a)
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_sel.c84 data.ic_sel_ent_recid = LE_16(id); in ipmi_sel_get_entry()
191 off16 = LE_16(off16); in ipmi_sel_set_utc_offset()
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dosdep.h154 #define le16_to_cpu(x) LE_16((uint16_t)(x))
157 #define cpu_to_le16(x) LE_16((uint16_t)(x))
/illumos-gate/usr/src/uts/common/io/usb/hcd/xhci/
H A Dxhci_hub.c176 stand = LE_16(USB_DEV_SLF_PWRD_STATUS); in xhci_root_hub_get_device_status()
531 cs = LE_16(cs); in xhci_root_hub_handle_port_get_status()
532 ps = LE_16(ps); in xhci_root_hub_handle_port_get_status()
766 hdp->wHubCharacteristics = LE_16(chars); in xhci_root_hub_fill_hub_desc()
/illumos-gate/usr/src/uts/common/io/wpi/
H A Dwpi.c1678 len = LE_16(head->len);
1714 LE_16(ic->ic_channels[head->chan].ic_freq);
1716 LE_16(ic->ic_channels[head->chan].ic_flags);
1718 tap->wr_dbm_antnoise = (int8_t)LE_16(stat->noise);
1739 if (LE_16(head->flags) & 0x4)
2257 tx->len = LE_16(len);
2920 hdr->quiet = LE_16(50);
2921 hdr->threshold = LE_16(1);
3006 chan->magic = LE_16(0x62ab);
3007 chan->active = LE_16(50);
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/
H A Doce_mbx.c456 LE_16(fwcmd->params.rsp.mac.size_of_struct)); in oce_read_mac_addr()
467 mac->size_of_struct = LE_16(fwcmd->params.rsp.mac.size_of_struct); in oce_read_mac_addr()
515 fwcmd->params.req.vlan_tag.u0.normal.vtag = LE_16(vlan_tag); in oce_if_create()
625 link->qos_link_speed = LE_16(link->qos_link_speed); in oce_get_link_status()
703 fwcmd->params.req.num_mac = LE_16(mca_cnt); in oce_set_multicast_table()
1202 fwcmd->params.req.enable_rss = LE_16(rss_type); in oce_config_rss()
1216 fwcmd->params.req.cpu_tbl_sz_log2 = LE_16(OCE_LOG2(tbl_sz)); in oce_config_rss()
/illumos-gate/usr/src/lib/libefi/common/
H A Drdwr_efi.c598 LE_16(efi_parts[i].efi_gpe_Attributes.PartitionAttrs); in efi_read()
606 (uchar_t)LE_16( in efi_read()
745 mb.signature = LE_16(MBB_MAGIC); in write_pmbr()
748 if (mb.signature != LE_16(MBB_MAGIC)) { in write_pmbr()
750 mb.signature = LE_16(MBB_MAGIC); in write_pmbr()
1208 LE_16(vtoc->efi_parts[i].p_flag); in efi_write()
1211 LE_16((ushort_t)vtoc->efi_parts[i].p_name[j]); in efi_write()
/illumos-gate/usr/src/uts/common/io/iwp/
H A Diwp.c1827 LE_16(sc->sc_config.chan), in iwp_newstate()
2272 len = LE_16(mpdu_size->byte_count); in iwp_rx_mpdu_intr()
3182 tx->timeout.pm_frame_timeout = LE_16(3); in iwp_send()
3184 tx->timeout.pm_frame_timeout = LE_16(2); in iwp_send()
3242 tx->len = LE_16(len); in iwp_send()
3934 hdr->quiet_time = LE_16(50); in iwp_scan()
3935 hdr->quiet_plcp_th = LE_16(1); in iwp_scan()
4052 chan.active_dwell = LE_16(50); in iwp_scan()
4053 chan.passive_dwell = LE_16(120); in iwp_scan()
4105 powertable.flags = LE_16(0x8); in iwp_config()
[all …]

1234