/drivers/staging/iio/accel/ |
D | adis16240_core.c | 365 s16 val16; in adis16240_read_raw() local 371 ret = adis16240_spi_read_reg_16(indio_dev, addr, &val16); in adis16240_read_raw() 377 if (val16 & ADIS16240_ERROR_ACTIVE) { in adis16240_read_raw() 384 val16 = val16 & ((1 << chan->scan_type.realbits) - 1); in adis16240_read_raw() 386 val16 = (s16)(val16 << in adis16240_read_raw() 389 *val = val16; in adis16240_read_raw() 424 ret = adis16240_spi_read_reg_16(indio_dev, addr, &val16); in adis16240_read_raw() 429 val16 &= (1 << bits) - 1; in adis16240_read_raw() 430 val16 = (s16)(val16 << (16 - bits)) >> (16 - bits); in adis16240_read_raw() 431 *val = val16; in adis16240_read_raw() [all …]
|
D | adis16201_core.c | 298 s16 val16; in adis16201_read_raw() local 304 ret = adis16201_spi_read_reg_16(indio_dev, addr, &val16); in adis16201_read_raw() 310 if (val16 & ADIS16201_ERROR_ACTIVE) { in adis16201_read_raw() 317 val16 = val16 & ((1 << chan->scan_type.realbits) - 1); in adis16201_read_raw() 319 val16 = (s16)(val16 << in adis16201_read_raw() 322 *val = val16; in adis16201_read_raw() 366 ret = adis16201_spi_read_reg_16(indio_dev, addr, &val16); in adis16201_read_raw() 371 val16 &= (1 << bits) - 1; in adis16201_read_raw() 372 val16 = (s16)(val16 << (16 - bits)) >> (16 - bits); in adis16201_read_raw() 373 *val = val16; in adis16201_read_raw() [all …]
|
D | adis16209_core.c | 304 s16 val16; in adis16209_write_raw() local 316 val16 = val & ((1 << bits) - 1); in adis16209_write_raw() 318 return adis16209_spi_write_reg_16(indio_dev, addr, val16); in adis16209_write_raw() 331 s16 val16; in adis16209_read_raw() local 337 ret = adis16209_spi_read_reg_16(indio_dev, addr, &val16); in adis16209_read_raw() 343 if (val16 & ADIS16209_ERROR_ACTIVE) { in adis16209_read_raw() 350 val16 = val16 & ((1 << chan->scan_type.realbits) - 1); in adis16209_read_raw() 352 val16 = (s16)(val16 << in adis16209_read_raw() 355 *val = val16; in adis16209_read_raw() 396 ret = adis16209_spi_read_reg_16(indio_dev, addr, &val16); in adis16209_read_raw() [all …]
|
D | adis16204_core.c | 341 s16 val16; in adis16204_read_raw() local 348 ret = adis16204_spi_read_reg_16(indio_dev, addr, &val16); in adis16204_read_raw() 354 if (val16 & ADIS16204_ERROR_ACTIVE) { in adis16204_read_raw() 361 val16 = val16 & ((1 << chan->scan_type.realbits) - 1); in adis16204_read_raw() 363 val16 = (s16)(val16 << in adis16204_read_raw() 366 *val = val16; in adis16204_read_raw() 407 ret = adis16204_spi_read_reg_16(indio_dev, addr, &val16); in adis16204_read_raw() 412 val16 &= (1 << bits) - 1; in adis16204_read_raw() 413 val16 = (s16)(val16 << (16 - bits)) >> (16 - bits); in adis16204_read_raw() 414 *val = val16; in adis16204_read_raw() [all …]
|
D | adis16203_core.c | 306 s16 val16; in adis16203_read_raw() local 311 ret = adis16203_spi_read_reg_16(indio_dev, addr, &val16); in adis16203_read_raw() 317 if (val16 & ADIS16203_ERROR_ACTIVE) { in adis16203_read_raw() 324 val16 = val16 & ((1 << chan->scan_type.realbits) - 1); in adis16203_read_raw() 326 val16 = (s16)(val16 << in adis16203_read_raw() 329 *val = val16; in adis16203_read_raw() 359 ret = adis16203_spi_read_reg_16(indio_dev, addr, &val16); in adis16203_read_raw() 364 val16 &= (1 << bits) - 1; in adis16203_read_raw() 365 val16 = (s16)(val16 << (16 - bits)) >> (16 - bits); in adis16203_read_raw() 366 *val = val16; in adis16203_read_raw()
|
/drivers/net/wireless/brcm80211/brcmsmac/ |
D | nicpci.c | 585 u16 val16; in pcie_war_aspm_clkreq() local 592 val16 = bcma_read16(pi->core, PCIEREGOFFS(sprom[SRSH_ASPM_OFFSET])); in pcie_war_aspm_clkreq() 594 val16 &= ~SRSH_ASPM_ENB; in pcie_war_aspm_clkreq() 596 val16 |= SRSH_ASPM_ENB; in pcie_war_aspm_clkreq() 598 val16 |= SRSH_ASPM_L1_ENB; in pcie_war_aspm_clkreq() 600 val16 |= SRSH_ASPM_L0s_ENB; in pcie_war_aspm_clkreq() 602 bcma_write16(pi->core, PCIEREGOFFS(sprom[SRSH_ASPM_OFFSET]), val16); in pcie_war_aspm_clkreq() 609 val16 = bcma_read16(pi->core, in pcie_war_aspm_clkreq() 613 val16 |= SRSH_CLKREQ_ENB; in pcie_war_aspm_clkreq() 616 val16 &= ~SRSH_CLKREQ_ENB; in pcie_war_aspm_clkreq() [all …]
|
/drivers/staging/iio/gyro/ |
D | adis16260_core.c | 440 s16 val16; in adis16260_read_raw() local 446 ret = adis16260_spi_read_reg_16(indio_dev, addr, &val16); in adis16260_read_raw() 452 if (val16 & ADIS16260_ERROR_ACTIVE) { in adis16260_read_raw() 459 val16 = val16 & ((1 << chan->scan_type.realbits) - 1); in adis16260_read_raw() 461 val16 = (s16)(val16 << in adis16260_read_raw() 464 *val = val16; in adis16260_read_raw() 504 ret = adis16260_spi_read_reg_16(indio_dev, addr, &val16); in adis16260_read_raw() 509 val16 &= (1 << bits) - 1; in adis16260_read_raw() 510 val16 = (s16)(val16 << (16 - bits)) >> (16 - bits); in adis16260_read_raw() 511 *val = val16; in adis16260_read_raw() [all …]
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | my3126.c | 39 u16 val16; in my3126_interrupt_handler() local 47 val16 = (u16) val; in my3126_interrupt_handler() 48 status = cphy->bmsr ^ val16; in my3126_interrupt_handler() 52 cphy->bmsr = val16; in my3126_interrupt_handler() 113 u16 val16; in my3126_get_link_status() local 118 val16 = (u16) val; in my3126_get_link_status() 124 *link_ok = (val16 & MDIO_STAT1_LSTATUS); in my3126_get_link_status()
|
/drivers/bcma/ |
D | driver_pci_host.c | 344 u16 val16; in bcma_core_pci_enable_crs() local 350 bcma_extpci_read_config(pc, 0, 0, root_cap, &val16, sizeof(u16)); in bcma_core_pci_enable_crs() 351 if (val16 & BCMA_CORE_PCI_RC_CRS_VISIBILITY) { in bcma_core_pci_enable_crs() 354 val16 = PCI_EXP_RTCTL_CRSSVE; in bcma_core_pci_enable_crs() 355 bcma_extpci_read_config(pc, 0, 0, root_ctrl, &val16, in bcma_core_pci_enable_crs() 374 PCI_VENDOR_ID, &val16, in bcma_core_pci_enable_crs() 375 sizeof(val16)); in bcma_core_pci_enable_crs() 376 if (val16 != 0x1) in bcma_core_pci_enable_crs() 380 if (val16 == 0x1) in bcma_core_pci_enable_crs()
|
/drivers/staging/iio/imu/ |
D | adis16400_core.c | 202 u16 val16; in adis16400_set_filter() local 211 &val16); in adis16400_set_filter() 217 (val16 & ~0x03) | i); in adis16400_set_filter() 545 s16 val16; in adis16400_read_raw() local 552 &val16); in adis16400_read_raw() 557 val16 &= (1 << chan->scan_type.realbits) - 1; in adis16400_read_raw() 560 val16 = (s16)(val16 << shift) >> shift; in adis16400_read_raw() 562 *val = val16; in adis16400_read_raw() 597 &val16); in adis16400_read_raw() 601 val16 = ((val16 & 0xFFF) << 4) >> 4; in adis16400_read_raw() [all …]
|
/drivers/watchdog/ |
D | iTCO_wdt.c | 563 unsigned int val16; in iTCO_wdt_set_heartbeat() local 586 val16 = inw(TCOv2_TMR); in iTCO_wdt_set_heartbeat() 587 val16 &= 0xfc00; in iTCO_wdt_set_heartbeat() 588 val16 |= tmrval; in iTCO_wdt_set_heartbeat() 589 outw(val16, TCOv2_TMR); in iTCO_wdt_set_heartbeat() 590 val16 = inw(TCOv2_TMR); in iTCO_wdt_set_heartbeat() 593 if ((val16 & 0x3ff) != tmrval) in iTCO_wdt_set_heartbeat() 614 unsigned int val16; in iTCO_wdt_get_timeleft() local 620 val16 = inw(TCO_RLD); in iTCO_wdt_get_timeleft() 621 val16 &= 0x3ff; in iTCO_wdt_get_timeleft() [all …]
|
/drivers/ide/ |
D | palm_bk3710.c | 82 u16 val16; in palm_bk3710_setudmamode() local 107 val16 = readw(base + BK3710_UDMACTL) | (1 << dev); in palm_bk3710_setudmamode() 108 writew(val16, base + BK3710_UDMACTL); in palm_bk3710_setudmamode() 117 u16 val16; in palm_bk3710_setdmamode() local 139 val16 = readw(base + BK3710_UDMACTL) & ~(1 << dev); in palm_bk3710_setdmamode() 140 writew(val16, base + BK3710_UDMACTL); in palm_bk3710_setdmamode()
|
/drivers/staging/rtl8712/ |
D | ieee80211.c | 222 u16 val16; in r8712_get_wpa_ie() local 234 memcpy((u8 *)&val16, (pbuf + 6), sizeof(val16)); in r8712_get_wpa_ie() 235 val16 = le16_to_cpu(val16); in r8712_get_wpa_ie() 236 if (val16 != 0x0001) in r8712_get_wpa_ie()
|
/drivers/char/ |
D | sonypi.c | 962 u16 val16; in sonypi_misc_ioctl() local 983 if (ec_read16(SONYPI_BAT1_FULL, &val16)) { in sonypi_misc_ioctl() 987 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl() 991 if (ec_read16(SONYPI_BAT1_LEFT, &val16)) { in sonypi_misc_ioctl() 995 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl() 999 if (ec_read16(SONYPI_BAT2_FULL, &val16)) { in sonypi_misc_ioctl() 1003 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl() 1007 if (ec_read16(SONYPI_BAT2_LEFT, &val16)) { in sonypi_misc_ioctl() 1011 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl()
|
/drivers/edac/ |
D | i7300_edac.c | 431 u16 val16; in i7300_process_fbd_error() local 452 NRECMEMA, &val16); in i7300_process_fbd_error() 453 bank = NRECMEMA_BANK(val16); in i7300_process_fbd_error() 454 rank = NRECMEMA_RANK(val16); in i7300_process_fbd_error() 494 RECMEMA, &val16); in i7300_process_fbd_error() 495 bank = RECMEMA_BANK(val16); in i7300_process_fbd_error() 496 rank = RECMEMA_RANK(val16); in i7300_process_fbd_error()
|
/drivers/hwmon/ |
D | i5k_amb.c | 467 u16 val16; in i5k_channel_probe() local 475 if (pci_read_config_word(pcidev, I5K_REG_CHAN0_PRESENCE_ADDR, &val16)) in i5k_channel_probe() 477 amb_present[0] = val16; in i5k_channel_probe() 479 if (pci_read_config_word(pcidev, I5K_REG_CHAN1_PRESENCE_ADDR, &val16)) in i5k_channel_probe() 481 amb_present[1] = val16; in i5k_channel_probe()
|
/drivers/platform/x86/ |
D | sony-laptop.c | 2664 u16 val16; in sonypi_misc_ioctl() local 2701 if (ec_read16(SONYPI_BAT1_FULL, &val16)) { in sonypi_misc_ioctl() 2705 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl() 2709 if (ec_read16(SONYPI_BAT1_LEFT, &val16)) { in sonypi_misc_ioctl() 2713 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl() 2717 if (ec_read16(SONYPI_BAT2_FULL, &val16)) { in sonypi_misc_ioctl() 2721 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl() 2725 if (ec_read16(SONYPI_BAT2_LEFT, &val16)) { in sonypi_misc_ioctl() 2729 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl()
|
/drivers/media/video/ |
D | ov5642.c | 682 static int reg_write16(struct i2c_client *client, u16 reg, u16 val16) in reg_write16() argument 686 ret = reg_write(client, reg, val16 >> 8); in reg_write16() 689 return reg_write(client, reg + 1, val16 & 0x00ff); in reg_write16()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_link.c | 3732 u16 val16 = 0, lane, bam37 = 0; in bnx2x_warpcore_enable_AN_KR() local 3761 val16 |= (1<<5); in bnx2x_warpcore_enable_AN_KR() 3776 val16 |= (1<<7); in bnx2x_warpcore_enable_AN_KR() 3800 MDIO_WC_REG_AN_IEEE1BLK_AN_ADVERTISEMENT1, val16); in bnx2x_warpcore_enable_AN_KR() 3827 MDIO_WC_REG_UC_INFO_B1_VERSION, &val16); in bnx2x_warpcore_enable_AN_KR() 3828 if (val16 < 0xd108) { in bnx2x_warpcore_enable_AN_KR() 3834 MDIO_WC_REG_DIGITAL5_MISC7, &val16); in bnx2x_warpcore_enable_AN_KR() 3837 MDIO_WC_REG_DIGITAL5_MISC7, val16 | 0x100); in bnx2x_warpcore_enable_AN_KR() 4116 u16 val16, digctrl_kx1, digctrl_kx2; in bnx2x_warpcore_set_sgmii_speed() local 4120 MDIO_WC_REG_RX66_CONTROL, &val16); in bnx2x_warpcore_set_sgmii_speed() [all …]
|
/drivers/net/wireless/ath/ath6kl/ |
D | debug.c | 1347 u16 val16; in ath6kl_create_qos_write() local 1433 if (kstrtou16(token, 0, &val16)) in ath6kl_create_qos_write() 1435 pstream.nominal_msdu = cpu_to_le16(val16); in ath6kl_create_qos_write() 1440 if (kstrtou16(token, 0, &val16)) in ath6kl_create_qos_write() 1442 pstream.max_msdu = cpu_to_le16(val16); in ath6kl_create_qos_write()
|
/drivers/net/ethernet/realtek/ |
D | 8139too.c | 665 #define RTL_W16_F(reg, val16) do { iowrite16 ((val16), ioaddr + (reg)); ioread16 (ioaddr + (reg)); … argument 670 #define RTL_W16(reg, val16) iowrite16 ((val16), ioaddr + (reg)) argument
|
/drivers/net/wireless/rtlwifi/ |
D | wifi.h | 1942 static inline void rtl_write_word(struct rtl_priv *rtlpriv, u32 addr, u16 val16) in rtl_write_word() argument 1944 rtlpriv->io.write16_async(rtlpriv, addr, val16); in rtl_write_word()
|
/drivers/net/ethernet/icplus/ |
D | ipg.c | 43 #define ipg_w16(val16, reg) iowrite16((val16), ioaddr + (reg)) argument
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_softmac.c | 806 u16 val16; in ieee80211_probe_resp() local 810 val16 = cpu_to_le16(ieee->current_network.atim_window); in ieee80211_probe_resp() 811 memcpy((u8 *)tag, (u8 *)&val16, 2); in ieee80211_probe_resp()
|
/drivers/staging/rtl8192e/ |
D | rtllib_softmac.c | 951 u16 val16; in rtllib_probe_resp() local 954 val16 = cpu_to_le16(ieee->current_network.atim_window); in rtllib_probe_resp() 955 memcpy((u8 *)tag, (u8 *)&val16, 2); in rtllib_probe_resp()
|