/drivers/staging/rtl8712/ |
D | usb_halinit.c | 38 u8 val8 = 0; in r8712_usb_hal_bus_init() local 44 val8 = 0x01; in r8712_usb_hal_bus_init() 46 r8712_write8(padapter, SYS_CLKR, val8); in r8712_usb_hal_bus_init() 47 val8 = r8712_read8(padapter, SPS1_CTRL); in r8712_usb_hal_bus_init() 48 val8 = val8 | 0x01; in r8712_usb_hal_bus_init() 50 r8712_write8(padapter, SPS1_CTRL, val8); in r8712_usb_hal_bus_init() 51 val8 = r8712_read8(padapter, AFE_MISC); in r8712_usb_hal_bus_init() 52 val8 = val8 | 0x01; in r8712_usb_hal_bus_init() 54 r8712_write8(padapter, AFE_MISC, val8); in r8712_usb_hal_bus_init() 55 val8 = r8712_read8(padapter, LDOA15_CTRL); in r8712_usb_hal_bus_init() [all …]
|
D | rtl871x_pwrctrl.c | 38 void r8712_set_rpwm(struct _adapter *padapter, u8 val8) in r8712_set_rpwm() argument 43 if (pwrpriv->rpwm == val8) { in r8712_set_rpwm() 49 rpwm = val8 | pwrpriv->tog; in r8712_set_rpwm() 50 switch (val8) { in r8712_set_rpwm() 52 pwrpriv->cpwm = val8; in r8712_set_rpwm() 59 pwrpriv->cpwm = val8; in r8712_set_rpwm() 65 pwrpriv->rpwm = val8; in r8712_set_rpwm()
|
D | rtl871x_io.h | 96 void (*_cmd52w)(struct intf_priv *pintfpriv, u32 addr, u8 val8); 98 void (*_cmdfunc152w)(struct intf_priv *pintfpriv, u32 addr, u8 val8);
|
D | rtl871x_pwrctrl.h | 125 void r8712_set_rpwm(struct _adapter *padapter, u8 val8);
|
/drivers/net/wireless/realtek/rtl8xxxu/ |
D | rtl8xxxu_8723a.c | 232 u8 val8; in rtl8723a_emu_to_active() local 237 val8 = rtl8xxxu_read8(priv, REG_LDOA15_CTRL); in rtl8723a_emu_to_active() 238 val8 |= LDOA15_ENABLE; in rtl8723a_emu_to_active() 239 rtl8xxxu_write8(priv, REG_LDOA15_CTRL, val8); in rtl8723a_emu_to_active() 242 val8 = rtl8xxxu_read8(priv, 0x0067); in rtl8723a_emu_to_active() 243 val8 &= ~BIT(4); in rtl8723a_emu_to_active() 244 rtl8xxxu_write8(priv, 0x0067, val8); in rtl8723a_emu_to_active() 249 val8 = rtl8xxxu_read8(priv, REG_SYS_ISO_CTRL); in rtl8723a_emu_to_active() 250 val8 &= ~SYS_ISO_ANALOG_IPS; in rtl8723a_emu_to_active() 251 rtl8xxxu_write8(priv, REG_SYS_ISO_CTRL, val8); in rtl8723a_emu_to_active() [all …]
|
D | rtl8xxxu_8723b.c | 338 u8 val8; in rtl8723bu_reset_8051() local 341 val8 = rtl8xxxu_read8(priv, REG_RSV_CTRL); in rtl8723bu_reset_8051() 342 val8 &= ~BIT(1); in rtl8723bu_reset_8051() 343 rtl8xxxu_write8(priv, REG_RSV_CTRL, val8); in rtl8723bu_reset_8051() 345 val8 = rtl8xxxu_read8(priv, REG_RSV_CTRL + 1); in rtl8723bu_reset_8051() 346 val8 &= ~BIT(0); in rtl8723bu_reset_8051() 347 rtl8xxxu_write8(priv, REG_RSV_CTRL + 1, val8); in rtl8723bu_reset_8051() 353 val8 = rtl8xxxu_read8(priv, REG_RSV_CTRL); in rtl8723bu_reset_8051() 354 val8 &= ~BIT(1); in rtl8723bu_reset_8051() 355 rtl8xxxu_write8(priv, REG_RSV_CTRL, val8); in rtl8723bu_reset_8051() [all …]
|
D | rtl8xxxu_8192e.c | 645 u8 val8; in rtl8192eu_init_phy_bb() local 653 val8 = RF_ENABLE | RF_RSTB | RF_SDMRSTB; in rtl8192eu_init_phy_bb() 654 rtl8xxxu_write8(priv, REG_RF_CTRL, val8); in rtl8192eu_init_phy_bb() 660 val8 = RF_ENABLE | RF_RSTB | RF_SDMRSTB; in rtl8192eu_init_phy_bb() 661 rtl8xxxu_write8(priv, REG_RF_CTRL, val8); in rtl8192eu_init_phy_bb() 1294 u8 val8; in rtl8192e_crystal_afe_adjust() local 1300 val8 = rtl8xxxu_read8(priv, REG_AFE_PLL_CTRL); in rtl8192e_crystal_afe_adjust() 1301 val8 &= 0xfb; in rtl8192e_crystal_afe_adjust() 1302 rtl8xxxu_write8(priv, REG_AFE_PLL_CTRL, val8); in rtl8192e_crystal_afe_adjust() 1312 val8 = rtl8xxxu_read8(priv, REG_AFE_PLL_CTRL); in rtl8192e_crystal_afe_adjust() [all …]
|
D | rtl8xxxu_core.c | 666 addr, 0, &priv->usb_buf.val8, sizeof(u8), in rtl8xxxu_read8() 668 data = priv->usb_buf.val8; in rtl8xxxu_read8() 723 priv->usb_buf.val8 = val; in rtl8xxxu_write8() 726 addr, 0, &priv->usb_buf.val8, sizeof(u8), in rtl8xxxu_write8() 903 u8 val8; in rtl8xxxu_gen1_h2c_cmd() local 916 val8 = rtl8xxxu_read8(priv, REG_HMTFR); in rtl8xxxu_gen1_h2c_cmd() 917 if (!(val8 & BIT(mbox_nr))) in rtl8xxxu_gen1_h2c_cmd() 953 u8 val8; in rtl8xxxu_gen2_h2c_cmd() local 966 val8 = rtl8xxxu_read8(priv, REG_HMTFR); in rtl8xxxu_gen2_h2c_cmd() 967 if (!(val8 & BIT(mbox_nr))) in rtl8xxxu_gen2_h2c_cmd() [all …]
|
D | rtl8xxxu_8192c.c | 448 u8 val8; in rtl8192cu_power_on() local 454 val8 = rtl8xxxu_read8(priv, REG_APS_FSMCO); in rtl8192cu_power_on() 455 if (val8 & APS_FSMCO_PFM_ALDN) in rtl8192cu_power_on() 471 val8 = rtl8xxxu_read8(priv, REG_LDOV12D_CTRL); in rtl8192cu_power_on() 472 if (!(val8 & LDOV12D_ENABLE)) { in rtl8192cu_power_on() 473 pr_info("%s: Enabling LDOV12D (%02x)\n", __func__, val8); in rtl8192cu_power_on() 474 val8 |= LDOV12D_ENABLE; in rtl8192cu_power_on() 475 rtl8xxxu_write8(priv, REG_LDOV12D_CTRL, val8); in rtl8192cu_power_on() 479 val8 = rtl8xxxu_read8(priv, REG_SYS_ISO_CTRL); in rtl8192cu_power_on() 480 val8 &= ~SYS_ISO_MD2PP; in rtl8192cu_power_on() [all …]
|
/drivers/edac/ |
D | amd8111_edac.c | 61 static void edac_pci_read_byte(struct pci_dev *dev, int reg, u8 *val8) in edac_pci_read_byte() argument 65 ret = pci_read_config_byte(dev, reg, val8); in edac_pci_read_byte() 81 static void edac_pci_write_byte(struct pci_dev *dev, int reg, u8 val8) in edac_pci_write_byte() argument 85 ret = pci_write_config_byte(dev, reg, val8); in edac_pci_write_byte() 247 u8 val8; in amd8111_lpc_bridge_init() local 258 val8 = __do_inb(REG_AT_COMPAT); in amd8111_lpc_bridge_init() 259 if (val8 == 0xff) { /* buggy port */ in amd8111_lpc_bridge_init() 267 if (val8 & AT_COMPAT_SERR) in amd8111_lpc_bridge_init() 269 if (val8 & AT_COMPAT_IOCHK) in amd8111_lpc_bridge_init() 277 edac_pci_read_byte(dev, REG_IO_CTRL_1, &val8); in amd8111_lpc_bridge_init() [all …]
|
/drivers/char/ |
D | sonypi.c | 956 u8 val8; in sonypi_misc_ioctl() local 962 if (sonypi_ec_read(SONYPI_LCD_LIGHT, &val8)) { in sonypi_misc_ioctl() 966 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl() 970 if (copy_from_user(&val8, argp, sizeof(val8))) { in sonypi_misc_ioctl() 974 if (sonypi_ec_write(SONYPI_LCD_LIGHT, val8)) in sonypi_misc_ioctl() 1010 if (sonypi_ec_read(SONYPI_BAT_FLAGS, &val8)) { in sonypi_misc_ioctl() 1014 val8 &= 0x07; in sonypi_misc_ioctl() 1015 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl() 1019 val8 = sonypi_device.bluetooth_power; in sonypi_misc_ioctl() 1020 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl() [all …]
|
/drivers/staging/rtl8188eu/hal/ |
D | usb_halinit.c | 641 u8 val8; in RfOnOffDetect() local 645 val8 = usb_read8(adapt, REG_HSISR); in RfOnOffDetect() 646 DBG_88E("pwrdown, 0x5c(BIT(7))=%02x\n", val8); in RfOnOffDetect() 647 rfpowerstate = (val8 & BIT(7)) ? rf_off : rf_on; in RfOnOffDetect() 650 val8 = usb_read8(adapt, REG_GPIO_IO_SEL); in RfOnOffDetect() 651 DBG_88E("GPIO_IN=%02x\n", val8); in RfOnOffDetect() 652 rfpowerstate = (val8 & BIT(3)) ? rf_on : rf_off; in RfOnOffDetect() 889 u8 val8; in CardDisableRTL8188EU() local 894 val8 = usb_read8(Adapter, REG_TX_RPT_CTRL); in CardDisableRTL8188EU() 895 usb_write8(Adapter, REG_TX_RPT_CTRL, val8&(~BIT(1))); in CardDisableRTL8188EU() [all …]
|
/drivers/staging/rtl8723bs/hal/ |
D | sdio_halinit.c | 756 u8 val8, bMacPwrCtrlOn = true; in rtl8723bs_hal_init() local 765 val8 = rtw_read8(padapter, SDIO_LOCAL_BASE|SDIO_REG_HRPWM1); in rtl8723bs_hal_init() 766 val8 &= 0x80; in rtl8723bs_hal_init() 767 val8 += 0x80; in rtl8723bs_hal_init() 768 val8 |= BIT(6); in rtl8723bs_hal_init() 769 rtw_write8(padapter, SDIO_LOCAL_BASE|SDIO_REG_HRPWM1, val8); in rtl8723bs_hal_init() 770 DBG_871X("%s: write rpwm =%02x\n", __func__, val8); in rtl8723bs_hal_init() 771 adapter_to_pwrctl(padapter)->tog = (val8 + 0x80) & 0x80; in rtl8723bs_hal_init() 1106 u8 val8 = 0; in rtl8723bs_hal_deinit() local 1113 val8 = rtw_read8(padapter, REG_HMETFR); in rtl8723bs_hal_deinit() [all …]
|
D | rtl8723b_hal_init.c | 1946 u8 val8; in rtl8723b_InitBeaconParameters() local 1949 val8 = DIS_TSF_UDT; in rtl8723b_InitBeaconParameters() 1950 val16 = val8 | (val8 << 8); /* port0 and port1 */ in rtl8723b_InitBeaconParameters() 2045 u8 val8; in rtl8723b_SetBeaconRelatedRegisters() local 2099 val8 = rtw_read8(padapter, bcn_ctrl_reg); in rtl8723b_SetBeaconRelatedRegisters() 2100 val8 |= DIS_BCNQ_SUB; in rtl8723b_SetBeaconRelatedRegisters() 2101 rtw_write8(padapter, bcn_ctrl_reg, val8); in rtl8723b_SetBeaconRelatedRegisters() 3328 u8 val8; in hw_var_set_opmode() local 3333 val8 = rtw_read8(padapter, REG_BCN_CTRL); in hw_var_set_opmode() 3334 val8 |= DIS_TSF_UDT; in hw_var_set_opmode() [all …]
|
D | rtl8723b_cmd.c | 1952 u8 val8; in rtl8723b_download_rsvd_page() local 1973 val8 = rtw_read8(padapter, REG_BCN_CTRL); in rtl8723b_download_rsvd_page() 1974 val8 &= ~EN_BCN_FUNCTION; in rtl8723b_download_rsvd_page() 1975 val8 |= DIS_TSF_UDT; in rtl8723b_download_rsvd_page() 1976 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_rsvd_page() 2025 val8 = rtw_read8(padapter, REG_BCN_CTRL); in rtl8723b_download_rsvd_page() 2026 val8 |= EN_BCN_FUNCTION; in rtl8723b_download_rsvd_page() 2027 val8 &= ~DIS_TSF_UDT; in rtl8723b_download_rsvd_page() 2028 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_rsvd_page() 2264 u8 val8; in rtl8723b_download_BTCoex_AP_mode_rsvd_page() local [all …]
|
/drivers/watchdog/ |
D | iTCO_wdt.c | 328 unsigned char val8; in iTCO_wdt_set_timeout() local 361 val8 = inb(TCOv1_TMR(p)); in iTCO_wdt_set_timeout() 362 val8 &= 0xc0; in iTCO_wdt_set_timeout() 363 val8 |= (tmrval & 0xff); in iTCO_wdt_set_timeout() 364 outb(val8, TCOv1_TMR(p)); in iTCO_wdt_set_timeout() 365 val8 = inb(TCOv1_TMR(p)); in iTCO_wdt_set_timeout() 368 if ((val8 & 0x3f) != tmrval) in iTCO_wdt_set_timeout() 380 unsigned char val8; in iTCO_wdt_get_timeleft() local 393 val8 = inb(TCO_RLD(p)); in iTCO_wdt_get_timeleft() 394 val8 &= 0x3f; in iTCO_wdt_get_timeleft() [all …]
|
/drivers/staging/rtl8723bs/core/ |
D | rtw_pwrctrl.c | 444 u8 val8; in rtw_set_ps_mode() local 448 rtw_hal_get_hwreg(padapter, HW_VAR_SYS_CLKR, &val8); in rtw_set_ps_mode() 449 if (!(val8 & BIT(4))) { /* 0x08 bit4 = 1 --> in 32k, bit4 = 0 --> leave 32k */ in rtw_set_ps_mode() 492 u8 val8; in rtw_set_ps_mode() local 494 val8 = rtw_btcoex_LpsVal(padapter); in rtw_set_ps_mode() 495 if (val8 & BIT(4)) in rtw_set_ps_mode() 926 u8 val8; in rtw_unregister_task_alive() local 928 val8 = rtw_btcoex_LpsVal(padapter); in rtw_unregister_task_alive() 929 if (val8 & BIT(4)) in rtw_unregister_task_alive() 1067 u8 val8; in rtw_unregister_tx_alive() local [all …]
|
/drivers/input/joystick/ |
D | walkera0701.c | 69 int val1, val2, val3, val4, val5, val6, val7, val8; in walkera0701_parse_frame() local 103 val8 = (w->buf[18] & 1) << 8 | (w->buf[19] << 4) | w->buf[20]; in walkera0701_parse_frame() 104 val8 *= (w->buf[18] & 2) - 1; /*sign */ in walkera0701_parse_frame() 109 val1, val2, val3, val4, val5, val6, val7, val8, in walkera0701_parse_frame()
|
/drivers/media/i2c/smiapp/ |
D | smiapp-regs.c | 143 u32 val8; in ____smiapp_read_8only() local 145 rval = ____smiapp_read(sensor, reg + i, 1, &val8); in ____smiapp_read_8only() 148 *val |= val8 << ((len - i - 1) << 3); in ____smiapp_read_8only()
|
/drivers/misc/cxl/ |
D | vphb.c | 114 u8 val8; in cxl_pcie_read_config() local 129 rc = cxl_ops->afu_cr_read8(afu, record, offset, &val8); in cxl_pcie_read_config() 130 *val = val8; in cxl_pcie_read_config()
|
/drivers/platform/x86/ |
D | sony-laptop.c | 4149 u8 val8; in sonypi_misc_ioctl() local 4165 val8 = ((value & 0xff) - 1) << 5; in sonypi_misc_ioctl() 4166 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl() 4174 if (copy_from_user(&val8, argp, sizeof(val8))) { in sonypi_misc_ioctl() 4178 value = (val8 >> 5) + 1; in sonypi_misc_ioctl() 4221 if (ec_read(SONYPI_BAT_FLAGS, &val8)) { in sonypi_misc_ioctl() 4225 val8 &= 0x07; in sonypi_misc_ioctl() 4226 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl() 4230 val8 = spic_dev.bluetooth_power; in sonypi_misc_ioctl() 4231 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl() [all …]
|
/drivers/infiniband/hw/hfi1/ |
D | pio_copy.c | 229 jcopy(&pbuf->carry.val8[0], from, nbytes); in read_low_bytes() 244 jcopy(&pbuf->carry.val8[pbuf->carry_bytes], from, nbytes); in read_extra_bytes()
|
/drivers/staging/wilc1000/ |
D | wilc_wlan_cfg.c | 167 static int wilc_wlan_cfg_set_byte(u8 *frame, u32 offset, u16 id, u8 val8) in wilc_wlan_cfg_set_byte() argument 180 buf[4] = val8; in wilc_wlan_cfg_set_byte()
|
/drivers/staging/rtlwifi/halmac/ |
D | rtl_halmac.c | 1304 u8 val8; in rtl_halmac_get_wow_reason() local 1307 val8 = rtl_read_byte(rtlpriv, 0x1C7); in rtl_halmac_get_wow_reason() 1308 if (val8 == 0xEA) in rtl_halmac_get_wow_reason() 1311 *reason = val8; in rtl_halmac_get_wow_reason()
|
/drivers/staging/rtl8188eu/core/ |
D | rtw_mlme_ext.c | 1925 unsigned char survey_channel = 0, val8; in site_survey() local 2016 val8 = 0; /* survey done */ in site_survey() 2017 rtw_hal_set_hwreg(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8)); in site_survey() 2204 u8 val8; in start_create_ibss() local 2220 val8 = 0xcf; in start_create_ibss() 2221 rtw_hal_set_hwreg(padapter, HW_VAR_SEC_CFG, (u8 *)(&val8)); in start_create_ibss() 2256 u8 val8; in start_clnt_join() local 2274 val8 = (pmlmeinfo->auth_algo == dot11AuthAlgrthm_8021X) ? 0xcc : 0xcf; in start_clnt_join() 2276 rtw_hal_set_hwreg(padapter, HW_VAR_SEC_CFG, (u8 *)(&val8)); in start_clnt_join() 2292 val8 = 0xcf; in start_clnt_join() [all …]
|