| /drivers/net/wireless/realtek/rtl8xxxu/ |
| A D | 8192c.c | 494 u16 val16; in rtl8192cu_power_on() local 532 val16 = rtl8xxxu_read16(priv, REG_APS_FSMCO); in rtl8192cu_power_on() 533 val16 |= APS_FSMCO_MAC_ENABLE; in rtl8192cu_power_on() 534 rtl8xxxu_write16(priv, REG_APS_FSMCO, val16); in rtl8192cu_power_on() 537 val16 = rtl8xxxu_read16(priv, REG_APS_FSMCO); in rtl8192cu_power_on() 538 if (!(val16 & APS_FSMCO_MAC_ENABLE)) in rtl8192cu_power_on() 551 rtl8xxxu_write16(priv, REG_APS_FSMCO, val16); in rtl8192cu_power_on() 556 val16 = rtl8xxxu_read16(priv, REG_SYS_ISO_CTRL); in rtl8192cu_power_on() 557 val16 &= ~SYS_ISO_DIOR; in rtl8192cu_power_on() 577 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8192cu_power_on() [all …]
|
| A D | 8188e.c | 585 u16 val16; in rtl8188eu_init_phy_bb() local 995 u16 val16; in rtl8188e_disabled_to_emu() local 1006 u16 val16; in rtl8188e_emu_to_active() local 1091 u16 val16; in rtl8188eu_emu_to_disabled() local 1099 val16 &= ~APS_FSMCO_PCIE; in rtl8188eu_emu_to_disabled() 1100 val16 |= APS_FSMCO_HW_SUSPEND; in rtl8188eu_emu_to_disabled() 1121 u16 val16; in rtl8188eu_active_to_lps() local 1153 val16 |= 0xff; in rtl8188eu_active_to_lps() 1167 u16 val16; in rtl8188eu_power_on() local 1198 u16 val16; in rtl8188eu_power_off() local [all …]
|
| A D | 8192e.c | 655 u16 val16; in rtl8192eu_init_phy_bb() local 1441 u16 val16; in rtl8192eu_active_to_lps() local 1479 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8192eu_active_to_lps() 1480 val16 &= 0xff00; in rtl8192eu_active_to_lps() 1482 rtl8xxxu_write16(priv, REG_CR, val16); in rtl8192eu_active_to_lps() 1484 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8192eu_active_to_lps() 1485 val16 &= ~CR_SECURITY_ENABLE; in rtl8192eu_active_to_lps() 1486 rtl8xxxu_write16(priv, REG_CR, val16); in rtl8192eu_active_to_lps() 1549 u16 val16; in rtl8192eu_power_on() local 1598 u16 val16; in rtl8192eu_power_off() local [all …]
|
| A D | 8188f.c | 754 u16 val16; in rtl8188fu_init_phy_bb() local 1455 u16 val16; in rtl8188fu_active_to_lps() local 1500 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8188fu_active_to_lps() 1501 val16 |= 0x3f; in rtl8188fu_active_to_lps() 1503 rtl8xxxu_write16(priv, REG_CR, val16); in rtl8188fu_active_to_lps() 1516 u16 val16; in rtl8188fu_power_on() local 1527 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8188fu_power_on() 1542 u16 val16; in rtl8188fu_power_off() local 1547 val16 &= ~BIT(12); in rtl8188fu_power_off() 1569 val16 &= ~SYS_FUNC_CPU_ENABLE; in rtl8188fu_power_off() [all …]
|
| A D | 8723b.c | 501 u16 val16; in rtl8723bu_init_phy_bb() local 503 val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); in rtl8723bu_init_phy_bb() 505 rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); in rtl8723bu_init_phy_bb() 1229 u16 val16; in rtl8723bu_active_to_emu() local 1238 val16 &= ~GPIO_INTM_EDGE_TRIG_IRQ; in rtl8723bu_active_to_emu() 1408 u16 val16; in rtl8723bu_power_on() local 1422 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8723bu_power_on() 1428 rtl8xxxu_write16(priv, REG_CR, val16); in rtl8723bu_power_on() 1447 val16 |= PWR_DATA_EEPRPAD_RFE_CTRL_EN; in rtl8723bu_power_on() 1464 u16 val16; in rtl8723bu_power_off() local [all …]
|
| A D | 8710b.c | 685 u16 val16; in rtl8710bu_config_channel() local 708 val16 &= ~WMAC_TRXPTCL_CTL_BW_MASK; in rtl8710bu_config_channel() 710 val16 |= WMAC_TRXPTCL_CTL_BW_40; in rtl8710bu_config_channel() 1555 u16 val16; in rtl8710bu_active_to_lps() local 1595 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8710bu_active_to_lps() 1596 val16 &= 0xff00; in rtl8710bu_active_to_lps() 1598 val16 &= ~CR_SECURITY_ENABLE; in rtl8710bu_active_to_lps() 1599 rtl8xxxu_write16(priv, REG_CR, val16); in rtl8710bu_active_to_lps() 1612 u16 val16; in rtl8710bu_power_on() local 1642 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8710bu_power_on() [all …]
|
| A D | 8192f.c | 1605 u16 val16; in rtl8192fu_emu_to_active() local 1767 u16 val16; in rtl8192fu_emu_to_disabled() local 1774 val16 &= ~APS_FSMCO_PCIE; in rtl8192fu_emu_to_disabled() 1775 val16 |= APS_FSMCO_HW_SUSPEND; in rtl8192fu_emu_to_disabled() 1787 u16 val16; in rtl8192fu_active_to_lps() local 1819 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8192fu_active_to_lps() 1820 val16 &= 0xff00; in rtl8192fu_active_to_lps() 1822 val16 &= ~CR_SECURITY_ENABLE; in rtl8192fu_active_to_lps() 1823 rtl8xxxu_write16(priv, REG_CR, val16); in rtl8192fu_active_to_lps() 1833 u16 val16; in rtl8192fu_power_on() local [all …]
|
| A D | core.c | 770 u16 val16; in rtl8xxxu_write16_set() local 779 u16 val16; in rtl8xxxu_write16_clear() local 1632 u16 val16; in rtl8xxxu_set_retry() local 1645 u16 val16; in rtl8xxxu_set_spec_sifs() local 1699 u16 val16; in rtl8xxxu_config_endpoints_sie() local 1991 u16 val16; in rtl8xxxu_download_firmware() local 2142 u16 val16; in rtl8xxxu_firmware_self_reset() local 2238 u16 val16; in rtl8xxxu_gen1_init_phy_bb() local 3848 u16 val16; in rtl8xxxu_power_off() local 4030 u16 val16; in rtl8xxxu_init_device() local [all …]
|
| /drivers/bcma/ |
| A D | driver_pci.c | 154 u16 val16, core_index; in bcma_core_pci_fixcfg() local 160 val16 = pcicore_read16(pc, regoff); in bcma_core_pci_fixcfg() 161 if (((val16 & BCMA_CORE_PCI_SPROM_PI_MASK) >> BCMA_CORE_PCI_SPROM_PI_SHIFT) in bcma_core_pci_fixcfg() 163 val16 = (core_index << BCMA_CORE_PCI_SPROM_PI_SHIFT) | in bcma_core_pci_fixcfg() 164 (val16 & ~BCMA_CORE_PCI_SPROM_PI_MASK); in bcma_core_pci_fixcfg() 165 pcicore_write16(pc, regoff, val16); in bcma_core_pci_fixcfg() 223 u16 val16; in bcma_core_pci_config_fixup() local 228 val16 = pcicore_read16(pc, regoff); in bcma_core_pci_config_fixup() 230 if (!(val16 & BCMA_CORE_PCI_SPROM_L23READY_EXIT_NOPERST)) { in bcma_core_pci_config_fixup() 231 val16 |= BCMA_CORE_PCI_SPROM_L23READY_EXIT_NOPERST; in bcma_core_pci_config_fixup() [all …]
|
| A D | driver_pci_host.c | 344 u16 val16; in bcma_core_pci_enable_crs() local 351 if (val16 & BCMA_CORE_PCI_RC_RRS_VISIBILITY) { in bcma_core_pci_enable_crs() 354 val16 = PCI_EXP_RTCTL_RRS_SVE; 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() 499 u16 val16; in bcma_core_pci_hostmode_init() local 501 &val16, sizeof(val16)); in bcma_core_pci_hostmode_init() 503 val16 |= (2 << 12); /* MRRS 512 */ in bcma_core_pci_hostmode_init() [all …]
|
| /drivers/vfio/pci/virtio/ |
| A D | legacy_io.c | 135 __le16 val16; in virtiovf_pci_read_config() local 144 sizeof(val16), ©_offset, in virtiovf_pci_read_config() 146 val16 = cpu_to_le16(VIRTIO_TRANS_ID_NET); in virtiovf_pci_read_config() 153 sizeof(val16), ©_offset, in virtiovf_pci_read_config() 158 val16 |= cpu_to_le16(PCI_COMMAND_IO); in virtiovf_pci_read_config() 159 if (copy_to_user(buf + copy_offset, (void *)&val16 + register_offset, in virtiovf_pci_read_config() 185 sizeof(val16), ©_offset, in virtiovf_pci_read_config() 191 val16 = cpu_to_le16(VIRTIO_ID_NET); in virtiovf_pci_read_config() 192 if (copy_to_user(buf + copy_offset, (void *)&val16 + register_offset, in virtiovf_pci_read_config() 198 sizeof(val16), ©_offset, in virtiovf_pci_read_config() [all …]
|
| /drivers/net/ethernet/chelsio/cxgb/ |
| A D | my3126.c | 40 u16 val16; in my3126_interrupt_handler() local 48 val16 = (u16) val; in my3126_interrupt_handler() 49 status = cphy->bmsr ^ val16; in my3126_interrupt_handler() 53 cphy->bmsr = val16; in my3126_interrupt_handler() 114 u16 val16; in my3126_get_link_status() local 119 val16 = (u16) val; in my3126_get_link_status() 125 *link_ok = (val16 & MDIO_STAT1_LSTATUS); in my3126_get_link_status()
|
| /drivers/net/wireless/realtek/rtlwifi/rtl8192du/ |
| A D | rf.c | 18 u16 val16; in rtl92du_phy_enable_anotherphy() local 33 val16 = rtl_read_word(rtlpriv, REG_SYS_FUNC_EN | maskforphyset); in rtl92du_phy_enable_anotherphy() 34 val16 &= 0xfffc; in rtl92du_phy_enable_anotherphy() 35 rtl_write_word(rtlpriv, REG_SYS_FUNC_EN | maskforphyset, val16); in rtl92du_phy_enable_anotherphy() 37 val16 = rtl_read_word(rtlpriv, REG_SYS_FUNC_EN | maskforphyset); in rtl92du_phy_enable_anotherphy() 38 val16 |= BIT(13) | BIT(0) | BIT(1); in rtl92du_phy_enable_anotherphy() 39 rtl_write_word(rtlpriv, REG_SYS_FUNC_EN | maskforphyset, val16); in rtl92du_phy_enable_anotherphy()
|
| A D | hw.c | 448 u16 val16; in _rtl92du_init_edca() local 451 val16 = rtl_read_word(rtlpriv, REG_RD_CTRL); in _rtl92du_init_edca() 452 val16 |= DIS_EDCA_CNT_DWN; in _rtl92du_init_edca() 642 u16 val16; in rtl92du_hw_init() local 766 val16 |= BIT(12); in rtl92du_hw_init() 1014 u16 val16; in _rtl92du_poweroff_adapter() local 1036 while (val16 & FEN_CPUEN) { in _rtl92du_poweroff_adapter() 1072 u16p_replace_bits(&val16, val16 & 0xf, 0x00f0); in _rtl92du_poweroff_adapter() 1073 u16p_replace_bits(&val16, 0xf, 0x0780); in _rtl92du_poweroff_adapter() 1115 u16 val16; in rtl92du_card_disable() local [all …]
|
| /drivers/iio/gyro/ |
| A D | adis16260.c | 196 s16 val16; in adis16260_read_raw() local 233 ret = adis_read_reg_16(adis, addr, &val16); in adis16260_read_raw() 237 *val = sign_extend32(val16, 11); in adis16260_read_raw() 241 ret = adis_read_reg_16(adis, addr, &val16); in adis16260_read_raw() 245 *val = val16; in adis16260_read_raw() 248 ret = adis_read_reg_16(adis, ADIS16260_SMPL_PRD, &val16); in adis16260_read_raw() 254 *val = (val16 & ADIS16260_SMPL_PRD_TIME_BASE) ? in adis16260_read_raw() 257 *val = (val16 & ADIS16260_SMPL_PRD_TIME_BASE) ? in adis16260_read_raw() 259 *val /= (val16 & ADIS16260_SMPL_PRD_DIV_MASK) + 1; in adis16260_read_raw()
|
| /drivers/watchdog/ |
| A D | iTCO_wdt.c | 354 unsigned int val16; in iTCO_wdt_set_timeout() local 374 val16 = inw(TCOv2_TMR(p)); in iTCO_wdt_set_timeout() 375 val16 &= 0xfc00; in iTCO_wdt_set_timeout() 376 val16 |= tmrval; in iTCO_wdt_set_timeout() 377 outw(val16, TCOv2_TMR(p)); in iTCO_wdt_set_timeout() 378 val16 = inw(TCOv2_TMR(p)); in iTCO_wdt_set_timeout() 380 if ((val16 & 0x3ff) != tmrval) in iTCO_wdt_set_timeout() 400 unsigned int val16; in iTCO_wdt_get_timeleft() local 406 val16 = inw(TCO_RLD(p)); in iTCO_wdt_get_timeleft() 407 val16 &= 0x3ff; in iTCO_wdt_get_timeleft() [all …]
|
| /drivers/net/wireless/st/cw1200/ |
| A D | fwio.c | 269 u16 val16; in config_reg_read() local 272 &val16); in config_reg_read() 275 *val = val16; in config_reg_read() 307 u16 val16; in cw1200_load_firmware() local 355 ret = cw1200_reg_read_16(priv, ST90TDS_CONTROL_REG_ID, &val16); in cw1200_load_firmware() 362 val16 | ST90TDS_CONT_WUP_BIT); in cw1200_load_firmware() 371 ST90TDS_CONTROL_REG_ID, &val16); in cw1200_load_firmware() 377 if (val16 & ST90TDS_CONT_RDY_BIT) in cw1200_load_firmware() 383 if ((val16 & ST90TDS_CONT_RDY_BIT) == 0) { in cw1200_load_firmware()
|
| A D | hwio.c | 270 u16 val16; in __cw1200_irq_enable() local 291 ret = __cw1200_reg_read_16(priv, ST90TDS_CONFIG_REG_ID, &val16); in __cw1200_irq_enable() 298 val16 |= ST90TDS_CONT_IRQ_RDY_ENABLE; in __cw1200_irq_enable() 300 val16 &= ~ST90TDS_CONT_IRQ_RDY_ENABLE; in __cw1200_irq_enable() 302 ret = __cw1200_reg_write_16(priv, ST90TDS_CONFIG_REG_ID, val16); in __cw1200_irq_enable()
|
| /drivers/soc/qcom/ |
| A D | qmi_encdec.c | 308 u16 val16; in qmi_encode() local 358 val16 = *(u16 *)buf_src; in qmi_encode() 359 data_len_value = (u32)le16_to_cpu(val16); in qmi_encode() 360 rc = qmi_encode_basic_elem(buf_dst, &val16, in qmi_encode() 537 u16 val16; in qmi_decode_string_elem() local 549 rc = qmi_decode_basic_elem(&val16, buf_src, in qmi_decode_string_elem() 551 string_len = (u32)val16; in qmi_decode_string_elem() 627 u16 val16; in qmi_decode() local 672 rc = qmi_decode_basic_elem(&val16, buf_src, in qmi_decode() 674 data_len_value = (u32)val16; in qmi_decode()
|
| /drivers/char/ |
| A D | sonypi.c | 944 u16 val16; in sonypi_misc_ioctl() local 965 if (ec_read16(SONYPI_BAT1_FULL, &val16)) { in sonypi_misc_ioctl() 969 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl() 973 if (ec_read16(SONYPI_BAT1_LEFT, &val16)) { in sonypi_misc_ioctl() 977 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl() 981 if (ec_read16(SONYPI_BAT2_FULL, &val16)) { in sonypi_misc_ioctl() 985 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl() 989 if (ec_read16(SONYPI_BAT2_LEFT, &val16)) { in sonypi_misc_ioctl() 993 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl()
|
| /drivers/hwmon/ |
| A D | i5k_amb.c | 448 u16 val16; in i5k_channel_probe() local 456 pci_read_config_word(pcidev, I5K_REG_CHAN0_PRESENCE_ADDR, &val16); in i5k_channel_probe() 457 if (val16 == (u16)~0) in i5k_channel_probe() 459 amb_present[0] = val16; in i5k_channel_probe() 461 pci_read_config_word(pcidev, I5K_REG_CHAN1_PRESENCE_ADDR, &val16); in i5k_channel_probe() 462 if (val16 == (u16)~0) in i5k_channel_probe() 464 amb_present[1] = val16; in i5k_channel_probe()
|
| /drivers/regulator/ |
| A D | rtmv20-regulator.c | 239 u16 val16; in rtmv20_properties_init() local 259 val16 = be16_to_cpu(bval16); in rtmv20_properties_init() 260 val16 &= ~props[i].mask; in rtmv20_properties_init() 261 val16 |= (temp << shift); in rtmv20_properties_init() 262 bval16 = cpu_to_be16(val16); in rtmv20_properties_init()
|
| /drivers/staging/iio/accel/ |
| A D | adis16203.c | 165 s16 val16; in adis16203_read_raw() local 198 ret = adis_read_reg_16(st, addr, &val16); in adis16203_read_raw() 201 *val = sign_extend32(val16, 13); in adis16203_read_raw()
|
| /drivers/iio/accel/ |
| A D | adis16201.c | 106 s16 val16; in adis16201_read_raw() local 166 ret = adis_read_reg_16(st, addr, &val16); in adis16201_read_raw() 170 *val = sign_extend32(val16, bits - 1); in adis16201_read_raw()
|
| /drivers/iio/imu/ |
| A D | adis16400.c | 378 uint16_t val16; in __adis16400_set_filter() local 386 ret = __adis_read_reg_16(&st->adis, ADIS16400_SENS_AVG, &val16); in __adis16400_set_filter() 391 (val16 & ~0x07) | i); in __adis16400_set_filter() 518 int16_t val16; in adis16400_read_raw() local 562 adis16400_addresses[chan->scan_index], &val16); in adis16400_read_raw() 565 val16 = sign_extend32(val16, 11); in adis16400_read_raw() 566 *val = val16; in adis16400_read_raw() 579 &val16); in adis16400_read_raw() 587 ret /= adis16400_3db_divisors[val16 & 0x07]; in adis16400_read_raw()
|