Home
last modified time | relevance | path

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

12

/drivers/staging/iio/accel/
Dadis16240_core.c365 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 …]
Dadis16201_core.c298 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 …]
Dadis16209_core.c304 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 …]
Dadis16204_core.c341 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 …]
Dadis16203_core.c306 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/
Dnicpci.c585 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/
Dadis16260_core.c440 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/
Dmy3126.c39 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/
Ddriver_pci_host.c344 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/
Dadis16400_core.c202 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/
DiTCO_wdt.c563 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/
Dpalm_bk3710.c82 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/
Dieee80211.c222 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/
Dsonypi.c962 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/
Di7300_edac.c431 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/
Di5k_amb.c467 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/
Dsony-laptop.c2664 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/
Dov5642.c682 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/
Dbnx2x_link.c3732 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/
Ddebug.c1347 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/
D8139too.c665 #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/
Dwifi.h1942 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/
Dipg.c43 #define ipg_w16(val16, reg) iowrite16((val16), ioaddr + (reg)) argument
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_softmac.c806 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/
Drtllib_softmac.c951 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()

12