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.c589 uint16_t val16; in show_options() local
617 if (olen < sizeof (val16)) in show_options()
619 (void) memcpy(&val16, data, sizeof (val16)); in show_options()
620 data += sizeof (val16); in show_options()
621 olen -= sizeof (val16); in show_options()
622 type = ntohs(val16); in show_options()
627 if (olen < sizeof (val16)) in show_options()
629 (void) memcpy(&val16, data, sizeof (val16)); in show_options()
630 data += sizeof (val16); in show_options()
631 olen -= sizeof (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()
1656 rtls_reg_set16(rtlsp, RT_INT_MASK_REG, val16 & (~RTLS_INT_MASK_ALL)); in rtls_chip_reset()
1662 val16 = rtls_reg_get16(rtlsp, RT_INT_STATUS_REG); in rtls_chip_reset()
1663 rtls_reg_set16(rtlsp, RT_INT_STATUS_REG, val16); in rtls_chip_reset()
1701 uint16_t val16; in rtls_chip_init() local
1767 val16 = rtls_reg_get16(rtlsp, RT_MUL_INTSEL_REG); in rtls_chip_init()
1768 val16 &= ~RT_MUL_INTSEL_BITS; in rtls_chip_init()
1769 rtls_reg_set16(rtlsp, RT_MUL_INTSEL_REG, val16); in rtls_chip_init()
1778 uint16_t val16; in rtls_chip_start() local
[all …]
/illumos-gate/usr/src/uts/common/io/rge/
H A Drge_chip.c699 uint16_t val16; in rge_chip_ident() local
708 PCI_CAP_ID_PCI_E, &val16) == DDI_SUCCESS; in rge_chip_ident()
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()
733 val16 = rge_reg_get16(rgep, RT_CONFIG_1_REG); 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
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/common/
H A Dbnxe_clc.c4187 u16 val16, i, lane; in elink_warpcore_set_10G_KR() local
4211 MDIO_WC_REG_XGXSBLK1_LANECTRL0, &val16); in elink_warpcore_set_10G_KR()
4212 val16 &= ~(0x0011 << lane); in elink_warpcore_set_10G_KR()
4214 MDIO_WC_REG_XGXSBLK1_LANECTRL0, val16); in elink_warpcore_set_10G_KR()
4217 MDIO_WC_REG_XGXSBLK1_LANECTRL1, &val16); in elink_warpcore_set_10G_KR()
4218 val16 |= (0x0303 << (lane << 1)); in elink_warpcore_set_10G_KR()
4220 MDIO_WC_REG_XGXSBLK1_LANECTRL1, val16); in elink_warpcore_set_10G_KR()
4483 u16 val16, digctrl_kx1, digctrl_kx2; in elink_warpcore_set_sgmii_speed() local
4499 MDIO_WC_REG_COMBO_IEEE0_MIICTRL, &val16); in elink_warpcore_set_sgmii_speed()
4500 val16 &= 0xcebf; in elink_warpcore_set_sgmii_speed()
[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()