val16 43 arch/x86/lib/csum-wrappers_64.c __u16 val16; val16 45 arch/x86/lib/csum-wrappers_64.c if (__get_user(val16, (const __u16 __user *)src)) val16 48 arch/x86/lib/csum-wrappers_64.c *(__u16 *)dst = val16; val16 50 arch/x86/lib/csum-wrappers_64.c (__force unsigned)isum, val16); val16 99 arch/x86/lib/csum-wrappers_64.c __u16 val16 = *(__u16 *)src; val16 102 arch/x86/lib/csum-wrappers_64.c (__force unsigned)isum, val16); val16 103 arch/x86/lib/csum-wrappers_64.c *errp = __put_user(val16, (__u16 __user *)dst); val16 71 drivers/ata/pata_bk3710.c u16 val16; val16 97 drivers/ata/pata_bk3710.c val16 = ioread16(base + BK3710_UDMACTL) | (1 << dev); val16 98 drivers/ata/pata_bk3710.c iowrite16(val16, base + BK3710_UDMACTL); val16 108 drivers/ata/pata_bk3710.c u16 val16; val16 129 drivers/ata/pata_bk3710.c val16 = ioread16(base + BK3710_UDMACTL) & ~(1 << dev); val16 130 drivers/ata/pata_bk3710.c iowrite16(val16, base + BK3710_UDMACTL); val16 154 drivers/bcma/driver_pci.c u16 val16, core_index; val16 160 drivers/bcma/driver_pci.c val16 = pcicore_read16(pc, regoff); val16 161 drivers/bcma/driver_pci.c if (((val16 & BCMA_CORE_PCI_SPROM_PI_MASK) >> BCMA_CORE_PCI_SPROM_PI_SHIFT) val16 163 drivers/bcma/driver_pci.c val16 = (core_index << BCMA_CORE_PCI_SPROM_PI_SHIFT) | val16 164 drivers/bcma/driver_pci.c (val16 & ~BCMA_CORE_PCI_SPROM_PI_MASK); val16 165 drivers/bcma/driver_pci.c pcicore_write16(pc, regoff, val16); val16 223 drivers/bcma/driver_pci.c u16 val16; val16 228 drivers/bcma/driver_pci.c val16 = pcicore_read16(pc, regoff); val16 230 drivers/bcma/driver_pci.c if (!(val16 & BCMA_CORE_PCI_SPROM_L23READY_EXIT_NOPERST)) { val16 231 drivers/bcma/driver_pci.c val16 |= BCMA_CORE_PCI_SPROM_L23READY_EXIT_NOPERST; val16 232 drivers/bcma/driver_pci.c pcicore_write16(pc, regoff, val16); val16 344 drivers/bcma/driver_pci_host.c u16 val16; val16 350 drivers/bcma/driver_pci_host.c bcma_extpci_read_config(pc, 0, 0, root_cap, &val16, sizeof(u16)); val16 351 drivers/bcma/driver_pci_host.c if (val16 & BCMA_CORE_PCI_RC_CRS_VISIBILITY) { val16 354 drivers/bcma/driver_pci_host.c val16 = PCI_EXP_RTCTL_CRSSVE; val16 355 drivers/bcma/driver_pci_host.c bcma_extpci_read_config(pc, 0, 0, root_ctrl, &val16, val16 374 drivers/bcma/driver_pci_host.c PCI_VENDOR_ID, &val16, val16 375 drivers/bcma/driver_pci_host.c sizeof(val16)); val16 376 drivers/bcma/driver_pci_host.c if (val16 != 0x1) val16 380 drivers/bcma/driver_pci_host.c if (val16 == 0x1) val16 499 drivers/bcma/driver_pci_host.c u16 val16; val16 501 drivers/bcma/driver_pci_host.c &val16, sizeof(val16)); val16 502 drivers/bcma/driver_pci_host.c val16 |= (2 << 5); /* Max payload size of 512 */ val16 503 drivers/bcma/driver_pci_host.c val16 |= (2 << 12); /* MRRS 512 */ val16 505 drivers/bcma/driver_pci_host.c &val16, sizeof(val16)); val16 943 drivers/char/sonypi.c u16 val16; val16 964 drivers/char/sonypi.c if (ec_read16(SONYPI_BAT1_FULL, &val16)) { val16 968 drivers/char/sonypi.c if (copy_to_user(argp, &val16, sizeof(val16))) val16 972 drivers/char/sonypi.c if (ec_read16(SONYPI_BAT1_LEFT, &val16)) { val16 976 drivers/char/sonypi.c if (copy_to_user(argp, &val16, sizeof(val16))) val16 980 drivers/char/sonypi.c if (ec_read16(SONYPI_BAT2_FULL, &val16)) { val16 984 drivers/char/sonypi.c if (copy_to_user(argp, &val16, sizeof(val16))) val16 988 drivers/char/sonypi.c if (ec_read16(SONYPI_BAT2_LEFT, &val16)) { val16 992 drivers/char/sonypi.c if (copy_to_user(argp, &val16, sizeof(val16))) val16 1097 drivers/dma/ioat/init.c u16 val16; val16 1196 drivers/dma/ioat/init.c err = pcie_capability_read_word(pdev, IOAT_DEVCTRL_OFFSET, &val16); val16 1201 drivers/dma/ioat/init.c val16 &= ~IOAT_DEVCTRL_ROE; val16 1202 drivers/dma/ioat/init.c err = pcie_capability_write_word(pdev, IOAT_DEVCTRL_OFFSET, val16); val16 410 drivers/edac/i7300_edac.c u16 val16; val16 431 drivers/edac/i7300_edac.c NRECMEMA, &val16); val16 432 drivers/edac/i7300_edac.c bank = NRECMEMA_BANK(val16); val16 433 drivers/edac/i7300_edac.c rank = NRECMEMA_RANK(val16); val16 470 drivers/edac/i7300_edac.c RECMEMA, &val16); val16 471 drivers/edac/i7300_edac.c bank = RECMEMA_BANK(val16); val16 472 drivers/edac/i7300_edac.c rank = RECMEMA_RANK(val16); val16 121 drivers/gpu/drm/drm_format_helper.c u16 val16; val16 124 drivers/gpu/drm/drm_format_helper.c val16 = ((sbuf[x] & 0x00F80000) >> 8) | val16 128 drivers/gpu/drm/drm_format_helper.c dbuf[x] = swab16(val16); val16 130 drivers/gpu/drm/drm_format_helper.c dbuf[x] = val16; val16 453 drivers/hwmon/i5k_amb.c u16 val16; val16 461 drivers/hwmon/i5k_amb.c if (pci_read_config_word(pcidev, I5K_REG_CHAN0_PRESENCE_ADDR, &val16)) val16 463 drivers/hwmon/i5k_amb.c amb_present[0] = val16; val16 465 drivers/hwmon/i5k_amb.c if (pci_read_config_word(pcidev, I5K_REG_CHAN1_PRESENCE_ADDR, &val16)) val16 467 drivers/hwmon/i5k_amb.c amb_present[1] = val16; val16 69 drivers/ide/palm_bk3710.c u16 val16; val16 94 drivers/ide/palm_bk3710.c val16 = readw(base + BK3710_UDMACTL) | (1 << dev); val16 95 drivers/ide/palm_bk3710.c writew(val16, base + BK3710_UDMACTL); val16 104 drivers/ide/palm_bk3710.c u16 val16; val16 126 drivers/ide/palm_bk3710.c val16 = readw(base + BK3710_UDMACTL) & ~(1 << dev); val16 127 drivers/ide/palm_bk3710.c writew(val16, base + BK3710_UDMACTL); val16 109 drivers/iio/accel/adis16201.c s16 val16; val16 169 drivers/iio/accel/adis16201.c ret = adis_read_reg_16(st, addr, &val16); val16 173 drivers/iio/accel/adis16201.c *val = sign_extend32(val16, bits - 1); val16 141 drivers/iio/accel/adis16209.c s16 val16; val16 205 drivers/iio/accel/adis16209.c ret = adis_read_reg_16(st, addr, &val16); val16 209 drivers/iio/accel/adis16209.c *val = sign_extend32(val16, bits - 1); val16 850 drivers/iio/adc/xilinx-xadc-core.c uint16_t val16; val16 853 drivers/iio/adc/xilinx-xadc-core.c ret = xadc_read_adc_reg(xadc, XADC_REG_CONF2, &val16); val16 857 drivers/iio/adc/xilinx-xadc-core.c div = (val16 & XADC_CONF2_DIV_MASK) >> XADC_CONF2_DIV_OFFSET; val16 868 drivers/iio/adc/xilinx-xadc-core.c uint16_t val16; val16 875 drivers/iio/adc/xilinx-xadc-core.c ret = xadc_read_adc_reg(xadc, chan->address, &val16); val16 879 drivers/iio/adc/xilinx-xadc-core.c val16 >>= 4; val16 881 drivers/iio/adc/xilinx-xadc-core.c *val = val16; val16 883 drivers/iio/adc/xilinx-xadc-core.c *val = sign_extend32(val16, 11); val16 274 drivers/iio/gyro/adis16136.c uint16_t val16; val16 279 drivers/iio/gyro/adis16136.c ret = adis_read_reg_16(&adis16136->adis, ADIS16136_REG_AVG_CNT, &val16); val16 287 drivers/iio/gyro/adis16136.c *val = freq / adis16136_3db_divisors[val16 & 0x07]; val16 201 drivers/iio/gyro/adis16260.c s16 val16; val16 238 drivers/iio/gyro/adis16260.c ret = adis_read_reg_16(adis, addr, &val16); val16 242 drivers/iio/gyro/adis16260.c *val = sign_extend32(val16, 11); val16 246 drivers/iio/gyro/adis16260.c ret = adis_read_reg_16(adis, addr, &val16); val16 250 drivers/iio/gyro/adis16260.c *val = val16; val16 253 drivers/iio/gyro/adis16260.c ret = adis_read_reg_16(adis, ADIS16260_SMPL_PRD, &val16); val16 259 drivers/iio/gyro/adis16260.c *val = (val16 & ADIS16260_SMPL_PRD_TIME_BASE) ? val16 262 drivers/iio/gyro/adis16260.c *val = (val16 & ADIS16260_SMPL_PRD_TIME_BASE) ? val16 264 drivers/iio/gyro/adis16260.c *val /= (val16 & ADIS16260_SMPL_PRD_DIV_MASK) + 1; val16 228 drivers/iio/imu/adis.c uint16_t val16; val16 231 drivers/iio/imu/adis.c ret = adis_read_reg_16(adis, reg, &val16); val16 232 drivers/iio/imu/adis.c *readval = val16; val16 410 drivers/iio/imu/adis16400.c uint16_t val16; val16 418 drivers/iio/imu/adis16400.c ret = adis_read_reg_16(&st->adis, ADIS16400_SENS_AVG, &val16); val16 423 drivers/iio/imu/adis16400.c (val16 & ~0x07) | i); val16 556 drivers/iio/imu/adis16400.c int16_t val16; val16 601 drivers/iio/imu/adis16400.c adis16400_addresses[chan->scan_index], &val16); val16 605 drivers/iio/imu/adis16400.c val16 = sign_extend32(val16, 11); val16 606 drivers/iio/imu/adis16400.c *val = val16; val16 617 drivers/iio/imu/adis16400.c &val16); val16 624 drivers/iio/imu/adis16400.c ret /= adis16400_3db_divisors[val16 & 0x07]; val16 449 drivers/iio/imu/adis16480.c uint16_t val16; val16 456 drivers/iio/imu/adis16480.c ret = adis_read_reg_16(&st->adis, reg, &val16); val16 458 drivers/iio/imu/adis16480.c *bias = sign_extend32(val16, 15); val16 493 drivers/iio/imu/adis16480.c uint16_t val16; val16 496 drivers/iio/imu/adis16480.c ret = adis_read_reg_16(&st->adis, reg, &val16); val16 500 drivers/iio/imu/adis16480.c *scale = sign_extend32(val16, 15); val16 755 drivers/infiniband/core/sa_query.c u16 val16; val16 791 drivers/infiniband/core/sa_query.c val16 = be16_to_cpu(sa_rec->pkey); val16 793 drivers/infiniband/core/sa_query.c sizeof(val16), &val16); val16 796 drivers/infiniband/core/sa_query.c val16 = be16_to_cpu(sa_rec->qos_class); val16 798 drivers/infiniband/core/sa_query.c sizeof(val16), &val16); val16 365 drivers/media/dvb-frontends/si2165.c u16 val16; val16 477 drivers/media/dvb-frontends/si2165.c ret = si2165_readreg16(state, REG_CRC, &val16); val16 481 drivers/media/dvb-frontends/si2165.c if (val16 != crc_expected) { val16 484 drivers/media/dvb-frontends/si2165.c val16, crc_expected); val16 904 drivers/media/platform/qcom/camss/camss-vfe-4-7.c u32 val16 = VFE_0_BUS_BDG_DS_CFG_16_CFG; val16 922 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val16, vfe->base + VFE_0_BUS_BDG_DS_CFG_16); val16 122 drivers/misc/cxl/vphb.c u16 val16; val16 140 drivers/misc/cxl/vphb.c rc = cxl_ops->afu_cr_read16(afu, record, offset, &val16); val16 141 drivers/misc/cxl/vphb.c *val = val16; val16 413 drivers/misc/ocxl/config.c u16 val16; val16 426 drivers/misc/ocxl/config.c pci_read_config_word(dev, pos + OCXL_DVSEC_AFU_CTRL_ACTAG_SUP, &val16); val16 427 drivers/misc/ocxl/config.c afu->actag_supported = EXTRACT_BITS(val16, 0, 11); val16 564 drivers/net/ethernet/atheros/alx/hw.c u16 val16; val16 567 drivers/net/ethernet/atheros/alx/hw.c pci_read_config_word(hw->pdev, PCI_COMMAND, &val16); val16 568 drivers/net/ethernet/atheros/alx/hw.c if (!(val16 & ALX_PCI_CMD) || (val16 & PCI_COMMAND_INTX_DISABLE)) { val16 569 drivers/net/ethernet/atheros/alx/hw.c val16 = (val16 | ALX_PCI_CMD) & ~PCI_COMMAND_INTX_DISABLE; val16 570 drivers/net/ethernet/atheros/alx/hw.c pci_write_config_word(hw->pdev, PCI_COMMAND, val16); val16 934 drivers/net/ethernet/atheros/alx/hw.c u16 val16; val16 995 drivers/net/ethernet/atheros/alx/hw.c val16 = ALX_MTU_STD_ALGN >> 3; val16 998 drivers/net/ethernet/atheros/alx/hw.c val16 = ALX_MTU_STD_ALGN >> 3; val16 1002 drivers/net/ethernet/atheros/alx/hw.c val16 << ALX_RXQ2_RXF_XOFF_THRESH_SHIFT | val16 4938 drivers/net/ethernet/broadcom/bnx2.c u16 val16; val16 4941 drivers/net/ethernet/broadcom/bnx2.c &val16); val16 4943 drivers/net/ethernet/broadcom/bnx2.c val16 & ~PCI_X_CMD_ERO); val16 3882 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u16 val16, i, lane; val16 3906 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c MDIO_WC_REG_XGXSBLK1_LANECTRL0, &val16); val16 3907 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16 &= ~(0x0011 << lane); val16 3909 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c MDIO_WC_REG_XGXSBLK1_LANECTRL0, val16); val16 3912 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c MDIO_WC_REG_XGXSBLK1_LANECTRL1, &val16); val16 3913 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16 |= (0x0303 << (lane << 1)); val16 3915 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c MDIO_WC_REG_XGXSBLK1_LANECTRL1, val16); val16 4194 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u16 val16, digctrl_kx1, digctrl_kx2; val16 4210 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c MDIO_WC_REG_COMBO_IEEE0_MIICTRL, &val16); val16 4211 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16 &= 0xcebf; val16 4216 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16 |= 0x2000; val16 4219 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16 |= 0x0040; val16 4228 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16 |= 0x0100; val16 4231 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c MDIO_WC_REG_COMBO_IEEE0_MIICTRL, val16); val16 4236 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c MDIO_WC_REG_COMBO_IEEE0_MIICTRL, &val16); val16 4237 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c DP(NETIF_MSG_LINK, " (readback) %x\n", val16); val16 4598 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u16 val16, lane; val16 4626 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c MDIO_WC_REG_XGXSBLK1_LANECTRL0, &val16); val16 4627 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16 |= (0x11 << lane); val16 4629 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16 |= (0x22 << lane); val16 4631 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c MDIO_WC_REG_XGXSBLK1_LANECTRL0, val16); val16 4634 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c MDIO_WC_REG_XGXSBLK1_LANECTRL1, &val16); val16 4635 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16 &= ~(0x0303 << (lane << 1)); val16 4636 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16 |= (0x0101 << (lane << 1)); val16 4638 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16 &= ~(0x0c0c << (lane << 1)); val16 4639 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16 |= (0x0404 << (lane << 1)); val16 4643 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c MDIO_WC_REG_XGXSBLK1_LANECTRL1, val16); val16 4653 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u16 val16; val16 4672 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c MDIO_WC_REG_XGXSBLK1_LANECTRL2, &val16); val16 4673 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16 |= (1<<lane); val16 4675 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16 |= (2<<lane); val16 4678 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16); val16 10656 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u16 val16; val16 10670 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c MDIO_84833_TOP_CFG_XGPHY_STRAP1, &val16); val16 10671 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val16 |= MDIO_84833_SUPER_ISOLATE; val16 10674 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c MDIO_84833_TOP_CFG_XGPHY_STRAP1, val16); val16 9201 drivers/net/ethernet/broadcom/tg3.c u16 val16; val16 9217 drivers/net/ethernet/broadcom/tg3.c val16 = PCI_EXP_DEVCTL_RELAX_EN | PCI_EXP_DEVCTL_NOSNOOP_EN; val16 9223 drivers/net/ethernet/broadcom/tg3.c val16 |= PCI_EXP_DEVCTL_PAYLOAD; val16 9224 drivers/net/ethernet/broadcom/tg3.c pcie_capability_clear_word(tp->pdev, PCI_EXP_DEVCTL, val16); val16 40 drivers/net/ethernet/chelsio/cxgb/my3126.c u16 val16; val16 48 drivers/net/ethernet/chelsio/cxgb/my3126.c val16 = (u16) val; val16 49 drivers/net/ethernet/chelsio/cxgb/my3126.c status = cphy->bmsr ^ val16; val16 53 drivers/net/ethernet/chelsio/cxgb/my3126.c cphy->bmsr = val16; val16 114 drivers/net/ethernet/chelsio/cxgb/my3126.c u16 val16; val16 119 drivers/net/ethernet/chelsio/cxgb/my3126.c val16 = (u16) val; val16 125 drivers/net/ethernet/chelsio/cxgb/my3126.c *link_ok = (val16 & MDIO_STAT1_LSTATUS); val16 2751 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c u16 val16 = act->vlan.vid & VLAN_VID_MASK; val16 2757 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c .mangle.val = (u32)be16_to_cpu(*(__be16 *)&val16), val16 3229 drivers/net/ethernet/neterion/s2io.c u16 val16 = 0x0; val16 3258 drivers/net/ethernet/neterion/s2io.c s2io_mdio_write(MDIO_MMD_PMAPMD, addr, val16, dev); val16 3397 drivers/net/ethernet/neterion/s2io.c u16 val16; val16 3419 drivers/net/ethernet/neterion/s2io.c pci_read_config_word(sp->pdev, 0x2, &val16); val16 3420 drivers/net/ethernet/neterion/s2io.c if (check_pci_device_id(val16) != (u16)PCI_ANY_ID) val16 3425 drivers/net/ethernet/neterion/s2io.c if (check_pci_device_id(val16) == (u16)PCI_ANY_ID) val16 669 drivers/net/ethernet/realtek/8139too.c #define RTL_W16_F(reg, val16) do { iowrite16 ((val16), ioaddr + (reg)); ioread16 (ioaddr + (reg)); } while (0) val16 674 drivers/net/ethernet/realtek/8139too.c #define RTL_W16(reg, val16) iowrite16 ((val16), ioaddr + (reg)) val16 80 drivers/net/ethernet/realtek/r8169_main.c #define RTL_W16(tp, reg, val16) writew((val16), tp->mmio_addr + (reg)) val16 1400 drivers/net/wireless/ath/ath6kl/debug.c u16 val16; val16 1486 drivers/net/wireless/ath/ath6kl/debug.c if (kstrtou16(token, 0, &val16)) val16 1488 drivers/net/wireless/ath/ath6kl/debug.c pstream.nominal_msdu = cpu_to_le16(val16); val16 1493 drivers/net/wireless/ath/ath6kl/debug.c if (kstrtou16(token, 0, &val16)) val16 1495 drivers/net/wireless/ath/ath6kl/debug.c pstream.max_msdu = cpu_to_le16(val16); val16 554 drivers/net/wireless/intel/iwlegacy/common.h u16 val16; val16 1276 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h __le16 val16; val16 441 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c u16 val16; val16 479 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c val16 = rtl8xxxu_read16(priv, REG_APS_FSMCO); val16 480 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c val16 |= APS_FSMCO_MAC_ENABLE; val16 481 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c rtl8xxxu_write16(priv, REG_APS_FSMCO, val16); val16 484 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c val16 = rtl8xxxu_read16(priv, REG_APS_FSMCO); val16 485 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c if (!(val16 & APS_FSMCO_MAC_ENABLE)) val16 496 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c val16 = APS_FSMCO_HW_SUSPEND | APS_FSMCO_ENABLE_POWERDOWN | val16 498 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c rtl8xxxu_write16(priv, REG_APS_FSMCO, val16); val16 503 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c val16 = rtl8xxxu_read16(priv, REG_SYS_ISO_CTRL); val16 504 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c val16 &= ~SYS_ISO_DIOR; val16 505 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c rtl8xxxu_write16(priv, REG_SYS_ISO_CTRL, val16); val16 524 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c val16 = rtl8xxxu_read16(priv, REG_CR); val16 525 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c val16 |= CR_HCI_TXDMA_ENABLE | CR_HCI_RXDMA_ENABLE | val16 528 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c rtl8xxxu_write16(priv, REG_CR, val16); val16 641 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c u16 val16; val16 643 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); val16 644 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c val16 |= SYS_FUNC_BB_GLB_RSTN | SYS_FUNC_BBRSTB | SYS_FUNC_DIO_RF; val16 645 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); val16 651 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); val16 652 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c val16 |= (SYS_FUNC_USBA | SYS_FUNC_USBD | SYS_FUNC_DIO_RF | val16 654 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); val16 1398 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c u16 val16; val16 1436 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c val16 = rtl8xxxu_read16(priv, REG_CR); val16 1437 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c val16 &= 0xff00; val16 1438 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c val16 |= (CR_HCI_TXDMA_ENABLE | CR_HCI_RXDMA_ENABLE); val16 1439 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c rtl8xxxu_write16(priv, REG_CR, val16); val16 1441 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c val16 = rtl8xxxu_read16(priv, REG_CR); val16 1442 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c val16 &= ~CR_SECURITY_ENABLE; val16 1443 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c rtl8xxxu_write16(priv, REG_CR, val16); val16 1506 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c u16 val16; val16 1542 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c val16 = rtl8xxxu_read16(priv, REG_CR); val16 1543 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c val16 |= (CR_HCI_TXDMA_ENABLE | CR_HCI_RXDMA_ENABLE | val16 1548 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c rtl8xxxu_write16(priv, REG_CR, val16); val16 1557 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c u16 val16; val16 1575 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); val16 1576 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c val16 &= ~SYS_FUNC_CPU_ENABLE; val16 1577 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); val16 317 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c u16 val16; val16 343 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c val16 = rtl8xxxu_read16(priv, REG_CR); val16 344 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c val16 |= (CR_HCI_TXDMA_ENABLE | CR_HCI_RXDMA_ENABLE | val16 349 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c rtl8xxxu_write16(priv, REG_CR, val16); val16 485 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c u16 val16; val16 487 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); val16 488 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c val16 |= SYS_FUNC_BB_GLB_RSTN | SYS_FUNC_BBRSTB | SYS_FUNC_DIO_RF; val16 489 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); val16 1213 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c u16 val16; val16 1221 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c val16 = rtl8xxxu_read16(priv, REG_GPIO_INTM); val16 1222 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c val16 &= ~GPIO_INTM_EDGE_TRIG_IRQ; val16 1223 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c rtl8xxxu_write16(priv, REG_GPIO_INTM, val16); val16 1392 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c u16 val16; val16 1406 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c val16 = rtl8xxxu_read16(priv, REG_CR); val16 1407 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c val16 |= (CR_HCI_TXDMA_ENABLE | CR_HCI_RXDMA_ENABLE | val16 1412 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c rtl8xxxu_write16(priv, REG_CR, val16); val16 1420 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); val16 1421 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c val16 |= SYS_FUNC_BBRSTB | SYS_FUNC_BB_GLB_RSTN; val16 1422 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); val16 1430 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c val16 = rtl8xxxu_read16(priv, REG_PWR_DATA); val16 1431 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c val16 |= PWR_DATA_EEPRPAD_RFE_CTRL_EN; val16 1432 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c rtl8xxxu_write16(priv, REG_PWR_DATA, val16); val16 1448 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c u16 val16; val16 1468 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); val16 1469 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c val16 &= ~SYS_FUNC_CPU_ENABLE; val16 1470 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); val16 678 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c addr, 0, &priv->usb_buf.val16, sizeof(u16), val16 680 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c data = le16_to_cpu(priv->usb_buf.val16); val16 735 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c priv->usb_buf.val16 = cpu_to_le16(val); val16 738 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c addr, 0, &priv->usb_buf.val16, sizeof(u16), val16 1553 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u16 val16; val16 1555 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = ((short_retry << RETRY_LIMIT_SHORT_SHIFT) & val16 1560 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write16(priv, REG_RETRY_LIMIT, val16); val16 1566 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u16 val16; val16 1568 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = ((cck << SPEC_SIFS_CCK_SHIFT) & SPEC_SIFS_CCK_MASK) | val16 1571 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write16(priv, REG_SPEC_SIFS, val16); val16 1612 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u16 val16; val16 1720 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = rtl8xxxu_read16(priv, REG_NORMAL_SIE_EP_TX); val16 1721 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (val16 & NORMAL_SIE_EP_TX_HIGH_MASK) { val16 1726 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (val16 & NORMAL_SIE_EP_TX_NORMAL_MASK) { val16 1731 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (val16 & NORMAL_SIE_EP_TX_LOW_MASK) { val16 1803 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u16 val16, efuse_addr, offset; val16 1806 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = rtl8xxxu_read16(priv, REG_9346CR); val16 1807 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (val16 & EEPROM_ENABLE) val16 1809 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (val16 & EEPROM_BOOT) val16 1824 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = rtl8xxxu_read16(priv, REG_SYS_ISO_CTRL); val16 1825 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (!(val16 & SYS_ISO_PWC_EV12V)) { val16 1826 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 |= SYS_ISO_PWC_EV12V; val16 1827 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write16(priv, REG_SYS_ISO_CTRL, val16); val16 1830 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); val16 1831 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (!(val16 & SYS_FUNC_ELDR)) { val16 1832 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 |= SYS_FUNC_ELDR; val16 1833 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); val16 1839 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = rtl8xxxu_read16(priv, REG_SYS_CLKR); val16 1840 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (!(val16 & SYS_CLK_LOADER_ENABLE) || !(val16 & SYS_CLK_ANA8M)) { val16 1841 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 |= (SYS_CLK_LOADER_ENABLE | SYS_CLK_ANA8M); val16 1842 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write16(priv, REG_SYS_CLKR, val16); val16 1989 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u16 val16; val16 1998 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); val16 1999 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 |= SYS_FUNC_CPU_ENABLE; val16 2000 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); val16 2059 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = rtl8xxxu_read16(priv, REG_MCU_FW_DL); val16 2060 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 &= ~MCU_FW_DL_ENABLE; val16 2061 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write16(priv, REG_MCU_FW_DL, val16); val16 2117 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u16 val16; val16 2124 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); val16 2126 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (!(val16 & SYS_FUNC_CPU_ENABLE)) { val16 2136 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); val16 2137 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 &= ~SYS_FUNC_CPU_ENABLE; val16 2138 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); val16 2201 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u16 val16; val16 2213 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); val16 2214 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 |= SYS_FUNC_BB_GLB_RSTN | SYS_FUNC_BBRSTB; val16 2215 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); val16 2390 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u16 val16, rfsi_rfenv; val16 2442 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = rtl8xxxu_read16(priv, reg_sw_ctrl); val16 2443 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 &= ~FPGA0_RF_RFENV; val16 2444 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 |= rfsi_rfenv; val16 2445 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write16(priv, reg_sw_ctrl, val16); val16 2532 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u16 val16, hi, lo; val16 2618 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = rtl8xxxu_read16(priv, REG_TRXDMA_CTRL); val16 2619 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 &= 0x7; val16 2620 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 |= (voq << TRXDMA_CTRL_VOQ_SHIFT) | val16 2626 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write16(priv, REG_TRXDMA_CTRL, val16); val16 3776 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u16 val16; val16 3800 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); val16 3801 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 &= ~SYS_FUNC_CPU_ENABLE; val16 3802 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); val16 3889 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u16 val16; val16 3894 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = rtl8xxxu_read16(priv, REG_SYS_CLKR); val16 3900 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (val8 == 0xea || !(val16 & SYS_CLK_MAC_CLK_ENABLE)) val16 4104 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = BEACON_DISABLE_TSF_UPDATE | (BEACON_DISABLE_TSF_UPDATE << 8); val16 4105 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write16(priv, REG_BEACON_CTRL, val16); val16 5500 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u16 val16; val16 5511 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = ((hw->conf.long_frame_max_tx_count << val16 5515 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write16(priv, REG_RETRY_LIMIT, val16); val16 5669 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u16 val16; val16 5705 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 = rtl8xxxu_read16(priv, REG_CR); val16 5706 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val16 |= CR_SECURITY_ENABLE; val16 5707 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write16(priv, REG_CR, val16); val16 3121 drivers/net/wireless/realtek/rtlwifi/wifi.h static inline void rtl_write_word(struct rtl_priv *rtlpriv, u32 addr, u16 val16) val16 3123 drivers/net/wireless/realtek/rtlwifi/wifi.h rtlpriv->io.write16_async(rtlpriv, addr, val16); val16 269 drivers/net/wireless/st/cw1200/fwio.c u16 val16; val16 272 drivers/net/wireless/st/cw1200/fwio.c &val16); val16 275 drivers/net/wireless/st/cw1200/fwio.c *val = val16; val16 307 drivers/net/wireless/st/cw1200/fwio.c u16 val16; val16 355 drivers/net/wireless/st/cw1200/fwio.c ret = cw1200_reg_read_16(priv, ST90TDS_CONTROL_REG_ID, &val16); val16 362 drivers/net/wireless/st/cw1200/fwio.c val16 | ST90TDS_CONT_WUP_BIT); val16 371 drivers/net/wireless/st/cw1200/fwio.c ST90TDS_CONTROL_REG_ID, &val16); val16 377 drivers/net/wireless/st/cw1200/fwio.c if (val16 & ST90TDS_CONT_RDY_BIT) val16 383 drivers/net/wireless/st/cw1200/fwio.c if ((val16 & ST90TDS_CONT_RDY_BIT) == 0) { val16 270 drivers/net/wireless/st/cw1200/hwio.c u16 val16; val16 291 drivers/net/wireless/st/cw1200/hwio.c ret = __cw1200_reg_read_16(priv, ST90TDS_CONFIG_REG_ID, &val16); val16 298 drivers/net/wireless/st/cw1200/hwio.c val16 |= ST90TDS_CONT_IRQ_RDY_ENABLE; val16 300 drivers/net/wireless/st/cw1200/hwio.c val16 &= ~ST90TDS_CONT_IRQ_RDY_ENABLE; val16 302 drivers/net/wireless/st/cw1200/hwio.c ret = __cw1200_reg_write_16(priv, ST90TDS_CONFIG_REG_ID, val16); val16 4138 drivers/platform/x86/sony-laptop.c u16 val16; val16 4177 drivers/platform/x86/sony-laptop.c if (ec_read16(SONYPI_BAT1_FULL, &val16)) { val16 4181 drivers/platform/x86/sony-laptop.c if (copy_to_user(argp, &val16, sizeof(val16))) val16 4185 drivers/platform/x86/sony-laptop.c if (ec_read16(SONYPI_BAT1_LEFT, &val16)) { val16 4189 drivers/platform/x86/sony-laptop.c if (copy_to_user(argp, &val16, sizeof(val16))) val16 4193 drivers/platform/x86/sony-laptop.c if (ec_read16(SONYPI_BAT2_FULL, &val16)) { val16 4197 drivers/platform/x86/sony-laptop.c if (copy_to_user(argp, &val16, sizeof(val16))) val16 4201 drivers/platform/x86/sony-laptop.c if (ec_read16(SONYPI_BAT2_LEFT, &val16)) { val16 4205 drivers/platform/x86/sony-laptop.c if (copy_to_user(argp, &val16, sizeof(val16))) val16 171 drivers/staging/iio/accel/adis16203.c s16 val16; val16 204 drivers/staging/iio/accel/adis16203.c ret = adis_read_reg_16(st, addr, &val16); val16 207 drivers/staging/iio/accel/adis16203.c *val = sign_extend32(val16, 13); val16 253 drivers/staging/iio/accel/adis16240.c s16 val16; val16 289 drivers/staging/iio/accel/adis16240.c ret = adis_read_reg_16(st, addr, &val16); val16 292 drivers/staging/iio/accel/adis16240.c *val = sign_extend32(val16, 9); val16 296 drivers/staging/iio/accel/adis16240.c ret = adis_read_reg_16(st, addr, &val16); val16 299 drivers/staging/iio/accel/adis16240.c *val = sign_extend32(val16, 9); val16 679 drivers/staging/media/soc_camera/soc_ov5642.c static int reg_write16(struct i2c_client *client, u16 reg, u16 val16) val16 683 drivers/staging/media/soc_camera/soc_ov5642.c ret = reg_write(client, reg, val16 >> 8); val16 686 drivers/staging/media/soc_camera/soc_ov5642.c return reg_write(client, reg + 1, val16 & 0x00ff); val16 276 drivers/staging/rtl8188eu/core/rtw_ieee80211.c u16 val16; val16 291 drivers/staging/rtl8188eu/core/rtw_ieee80211.c memcpy((u8 *)&le_tmp, (pbuf + 6), sizeof(val16)); val16 293 drivers/staging/rtl8188eu/core/rtw_ieee80211.c val16 = le16_to_cpu(le_tmp); val16 294 drivers/staging/rtl8188eu/core/rtw_ieee80211.c if (val16 != 0x0001) val16 743 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c u16 val16; val16 786 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c val16 = (u16)psta->authalg; val16 789 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c val16 = 0; val16 791 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if (val16) { val16 792 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c le_val16 = cpu_to_le16(val16); val16 802 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c val16 = (u16)psta->auth_seq; val16 803 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c le_val16 = cpu_to_le16(val16); val16 808 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c val16 = status; val16 809 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c le_val16 = cpu_to_le16(val16); val16 826 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c val16 = (pmlmeinfo->auth_algo == dot11AuthAlgrthm_Shared) ? 1 : 0;/* 0:OPEN System, 1:Shared key */ val16 827 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if (val16) val16 840 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c le_tmp16 = cpu_to_le16(val16); val16 845 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c val16 = pmlmeinfo->auth_seq; val16 846 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c le_tmp16 = cpu_to_le16(val16); val16 2016 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c u16 val16, subtype; val16 2140 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c val16 = rtw_get_capability((struct wlan_bssid_ex *)bssid); val16 2142 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if (val16 & BIT(0)) { val16 2150 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if (val16 & BIT(4)) val16 814 drivers/staging/rtl8188eu/core/rtw_wlan_util.c unsigned short val16, subtype; val16 937 drivers/staging/rtl8188eu/core/rtw_wlan_util.c val16 = rtw_get_capability((struct wlan_bssid_ex *)bssid); val16 939 drivers/staging/rtl8188eu/core/rtw_wlan_util.c if (val16 & BIT(4)) val16 932 drivers/staging/rtl8192e/rtllib_softmac.c u16 val16; val16 935 drivers/staging/rtl8192e/rtllib_softmac.c val16 = ieee->current_network.atim_window; val16 936 drivers/staging/rtl8192e/rtllib_softmac.c memcpy((u8 *)tag, (u8 *)&val16, 2); val16 210 drivers/staging/rtl8712/ieee80211.c u16 val16; val16 222 drivers/staging/rtl8712/ieee80211.c memcpy((u8 *)&val16, (buf + 6), sizeof(val16)); val16 223 drivers/staging/rtl8712/ieee80211.c le16_to_cpus(&val16); val16 224 drivers/staging/rtl8712/ieee80211.c if (val16 != 0x0001) val16 381 drivers/staging/rtl8723bs/core/rtw_ieee80211.c u16 val16; val16 397 drivers/staging/rtl8723bs/core/rtw_ieee80211.c memcpy((u8 *)&le_tmp, (pbuf + 6), sizeof(val16)); val16 399 drivers/staging/rtl8723bs/core/rtw_ieee80211.c val16 = le16_to_cpu(le_tmp); val16 400 drivers/staging/rtl8723bs/core/rtw_ieee80211.c if (val16 != 0x0001) val16 2967 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c unsigned short val16; val16 3004 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c val16 = (u16)psta->authalg; val16 3007 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c val16 = 0; val16 3009 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (val16) val16 3012 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c le_tmp = cpu_to_le16(val16); val16 3017 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c val16 = (u16)psta->auth_seq; val16 3018 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c le_tmp = cpu_to_le16(val16); val16 3022 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c val16 = status; val16 3023 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c le_tmp = cpu_to_le16(val16); val16 3036 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c val16 = (pmlmeinfo->auth_algo == dot11AuthAlgrthm_Shared) ? 1 : 0;/* 0:OPEN System, 1:Shared key */ val16 3037 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (val16) { val16 3040 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c le_tmp = cpu_to_le16(val16); val16 3233 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c __le16 val16; val16 3278 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c val16 = cpu_to_le16(3); val16 3279 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c memcpy(pframe, (unsigned char *)&val16, 2); val16 4416 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c u16 val16, subtype; val16 4532 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c val16 = rtw_get_capability((struct wlan_bssid_ex *)bssid); val16 4534 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (val16 & BIT(0)) { val16 4542 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (val16 & BIT(4)) val16 1279 drivers/staging/rtl8723bs/core/rtw_wlan_util.c unsigned short val16, subtype; val16 1418 drivers/staging/rtl8723bs/core/rtw_wlan_util.c val16 = rtw_get_capability((struct wlan_bssid_ex *)bssid); val16 1420 drivers/staging/rtl8723bs/core/rtw_wlan_util.c if (val16 & BIT(4)) val16 1936 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c u16 val16; val16 1941 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c val16 = val8 | (val8 << 8); /* port0 and port1 */ val16 1944 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c val16 |= EN_BCN_FUNCTION; val16 1946 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c rtw_write16(padapter, REG_BCN_CTRL, val16); val16 3578 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c u16 val16; val16 3619 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c val16 = (RetryLimit << RETRY_LIMIT_SHORT_SHIFT) | (RetryLimit << RETRY_LIMIT_LONG_SHIFT); val16 3620 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c rtw_write16(padapter, REG_RL, val16); val16 4254 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c u16 val16; val16 4318 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c val16 = rtw_read16(padapter, REG_TXPKT_EMPTY); val16 4319 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c *val = (val16 & BIT(10)) ? true:false; val16 64 drivers/staging/wilc1000/wilc_wlan_cfg.c static int wilc_wlan_cfg_set_hword(u8 *frame, u32 offset, u16 id, u16 val16) val16 71 drivers/staging/wilc1000/wilc_wlan_cfg.c put_unaligned_le16(val16, &frame[offset + 4]); val16 341 drivers/watchdog/iTCO_wdt.c unsigned int val16; val16 362 drivers/watchdog/iTCO_wdt.c val16 = inw(TCOv2_TMR(p)); val16 363 drivers/watchdog/iTCO_wdt.c val16 &= 0xfc00; val16 364 drivers/watchdog/iTCO_wdt.c val16 |= tmrval; val16 365 drivers/watchdog/iTCO_wdt.c outw(val16, TCOv2_TMR(p)); val16 366 drivers/watchdog/iTCO_wdt.c val16 = inw(TCOv2_TMR(p)); val16 369 drivers/watchdog/iTCO_wdt.c if ((val16 & 0x3ff) != tmrval) val16 391 drivers/watchdog/iTCO_wdt.c unsigned int val16; val16 398 drivers/watchdog/iTCO_wdt.c val16 = inw(TCO_RLD(p)); val16 399 drivers/watchdog/iTCO_wdt.c val16 &= 0x3ff; val16 402 drivers/watchdog/iTCO_wdt.c time_left = ticks_to_seconds(p, val16); val16 45 net/netfilter/xt_l2tp.c __be16 val16[2]; val16 99 net/netfilter/xt_l2tp.c flags = ntohs(lh->val16[0]); val16 126 net/netfilter/xt_l2tp.c data.tid = (u32) ntohs(lh->val16[0]); val16 127 net/netfilter/xt_l2tp.c data.sid = (u32) ntohs(lh->val16[1]);