Home
last modified time | relevance | path

Searched refs:val16 (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_dhcpv6.c619 (void) memcpy(&val16, data, sizeof (val16)); in show_options()
629 (void) memcpy(&val16, data, sizeof (val16)); in show_options()
632 val16 = ntohs(val16); in show_options()
737 (void) memcpy(&val16, data, sizeof (val16)); in show_options()
738 val16 = ntohs(val16); in show_options()
758 (void) memcpy(&val16, data, sizeof (val16)); in show_options()
759 val16 = ntohs(val16); in show_options()
763 val16 / 100, val16 % 100); in show_options()
806 (void) memcpy(&val16, data, sizeof (val16)); in show_options()
807 val16 = ntohs(val16); in show_options()
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/
H A Dendian.c35 uint16_t val16 = 0x1122; in endian_fromhost() local
60 test16 = htobe16(val16); in endian_fromhost()
67 test16 = htole16(val16); in endian_fromhost()
78 uint16_t val16 = 0x1122; in endian_frombig() local
97 test16 = be16toh(val16); in endian_frombig()
99 test16 = betoh16(val16); in endian_frombig()
116 uint16_t val16 = 0x1122; in endian_fromlittle() local
135 test16 = le16toh(val16); in endian_fromlittle()
137 test16 = letoh16(val16); in endian_fromlittle()
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dmy3126.c73 u16 val16; in my3126_interrupt_handler() local
85 val16 = (u16) val; in my3126_interrupt_handler()
86 status = cphy->bmsr ^ val16; in my3126_interrupt_handler()
91 cphy->bmsr = val16; in my3126_interrupt_handler()
135 u16 val16; in my3126_get_link_status() local
144 val16 = (u16) val; in my3126_get_link_status()
146 *link_ok = (val16 & BMSR_LSTATUS); in my3126_get_link_status()
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/include/
H A Dbcm_utils.h66 static __inline u16_t SWAP_BYTES16(u16_t val16) in SWAP_BYTES16() argument
68 return (((val16 & 0x00ff) << 8) | in SWAP_BYTES16()
69 ((val16 & 0xff00) >> 8)); in SWAP_BYTES16()
/illumos-gate/usr/src/uts/common/io/rtls/
H A Drtls.c1642 uint16_t val16; in rtls_chip_reset() local
1655 val16 = rtls_reg_get16(rtlsp, RT_INT_MASK_REG); in rtls_chip_reset()
1701 uint16_t val16; in rtls_chip_init() local
1768 val16 &= ~RT_MUL_INTSEL_BITS; in rtls_chip_init()
1778 uint16_t val16; in rtls_chip_start() local
1791 val16 = rtls_reg_get16(rtlsp, RT_INT_MASK_REG); in rtls_chip_start()
1813 uint16_t val16; in rtls_chip_stop() local
1819 val16 = rtls_reg_get16(rtlsp, RT_INT_MASK_REG); in rtls_chip_stop()
2016 uint16_t val16; in rtls_reg_print() local
2026 mac_name(rtlsp->mh), val16); in rtls_reg_print()
[all …]
/illumos-gate/usr/src/uts/common/io/rge/
H A Drge_chip.c699 uint16_t val16; in rge_chip_ident() local
721 val16 = rge_mii_get16(rgep, PHY_ID_REG_2); in rge_chip_ident()
722 val16 &= PHY_VER_MASK; in rge_chip_ident()
723 chip->phy_ver = val16; in rge_chip_ident()
734 val16 &= 0x0300; in rge_chip_ident()
735 if (val16 == 0x1) /* 66Mhz PCI */ in rge_chip_ident()
737 else if (val16 == 0x0) /* 33Mhz PCI */ in rge_chip_ident()
886 uint32_t val16; in rge_chip_init() local
902 val16 = 0x12<<8 | val16; in rge_chip_init()
928 val16 |= RX_CKSM_OFFLOAD | RX_VLAN_DETAG; in rge_chip_init()
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/common/
H A Dbnxe_clc.c4500 val16 &= 0xcebf; in elink_warpcore_set_sgmii_speed()
4505 val16 |= 0x2000; in elink_warpcore_set_sgmii_speed()
4901 u16 val16, lane; in elink_warpcore_link_reset() local
4958 u16 val16; in elink_set_warpcore_loopback() local
4983 val16); in elink_set_warpcore_loopback()
5069 u16 val16; in elink_warpcore_sequencer() local
5073 val16 |= 0x2000; in elink_warpcore_sequencer()
5075 val16 &= 0xDFFF; in elink_warpcore_sequencer()
5096 val16 &= 0xFF00; in elink_warpcore_set_lane_swap()
5104 val16 &= 0xFF00; in elink_warpcore_set_lane_swap()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dr8169.c122 #define RTL_W16(reg, val16) writew ((val16), ioaddr + (reg)) argument
/illumos-gate/usr/src/uts/common/io/bge/
H A Dbge_chip2.c3253 uint16_t val16; in bge_chip_reset_engine() local
3372 val16 = pci_config_get16(bgep->cfg_handle, in bge_chip_reset_engine()
3374 val16 &= ~READ_REQ_SIZE_MASK; in bge_chip_reset_engine()
3375 val16 |= READ_REQ_SIZE_2K; in bge_chip_reset_engine()
3377 PCI_CONF_DEV_CTRL_5717, val16); in bge_chip_reset_engine()