/linux-6.6.21/drivers/staging/rtl8712/ |
D | usb_halinit.c | 26 u8 val8 = 0; in r8712_usb_hal_bus_init() local 32 val8 = 0x01; in r8712_usb_hal_bus_init() 34 r8712_write8(adapter, SYS_CLKR, val8); in r8712_usb_hal_bus_init() 35 val8 = r8712_read8(adapter, SPS1_CTRL); in r8712_usb_hal_bus_init() 36 val8 = val8 | 0x01; in r8712_usb_hal_bus_init() 38 r8712_write8(adapter, SPS1_CTRL, val8); in r8712_usb_hal_bus_init() 39 val8 = r8712_read8(adapter, AFE_MISC); in r8712_usb_hal_bus_init() 40 val8 = val8 | 0x01; in r8712_usb_hal_bus_init() 42 r8712_write8(adapter, AFE_MISC, val8); in r8712_usb_hal_bus_init() 43 val8 = r8712_read8(adapter, LDOA15_CTRL); in r8712_usb_hal_bus_init() [all …]
|
D | rtl871x_pwrctrl.c | 26 void r8712_set_rpwm(struct _adapter *padapter, u8 val8) in r8712_set_rpwm() argument 31 if (pwrpriv->rpwm == val8) { in r8712_set_rpwm() 37 rpwm = val8 | pwrpriv->tog; in r8712_set_rpwm() 38 switch (val8) { in r8712_set_rpwm() 40 pwrpriv->cpwm = val8; in r8712_set_rpwm() 47 pwrpriv->cpwm = val8; in r8712_set_rpwm() 53 pwrpriv->rpwm = val8; in r8712_set_rpwm()
|
/linux-6.6.21/drivers/net/wireless/realtek/rtl8xxxu/ |
D | rtl8xxxu_8723a.c | 269 u8 val8; in rtl8723a_emu_to_active() local 274 val8 = rtl8xxxu_read8(priv, REG_LDOA15_CTRL); in rtl8723a_emu_to_active() 275 val8 |= LDOA15_ENABLE; in rtl8723a_emu_to_active() 276 rtl8xxxu_write8(priv, REG_LDOA15_CTRL, val8); in rtl8723a_emu_to_active() 279 val8 = rtl8xxxu_read8(priv, 0x0067); in rtl8723a_emu_to_active() 280 val8 &= ~BIT(4); in rtl8723a_emu_to_active() 281 rtl8xxxu_write8(priv, 0x0067, val8); in rtl8723a_emu_to_active() 286 val8 = rtl8xxxu_read8(priv, REG_SYS_ISO_CTRL); in rtl8723a_emu_to_active() 287 val8 &= ~SYS_ISO_ANALOG_IPS; in rtl8723a_emu_to_active() 288 rtl8xxxu_write8(priv, REG_SYS_ISO_CTRL, val8); in rtl8723a_emu_to_active() [all …]
|
D | rtl8xxxu_8723b.c | 377 u8 val8; in rtl8723bu_reset_8051() local 380 val8 = rtl8xxxu_read8(priv, REG_RSV_CTRL); in rtl8723bu_reset_8051() 381 val8 &= ~BIT(1); in rtl8723bu_reset_8051() 382 rtl8xxxu_write8(priv, REG_RSV_CTRL, val8); in rtl8723bu_reset_8051() 384 val8 = rtl8xxxu_read8(priv, REG_RSV_CTRL + 1); in rtl8723bu_reset_8051() 385 val8 &= ~BIT(0); in rtl8723bu_reset_8051() 386 rtl8xxxu_write8(priv, REG_RSV_CTRL + 1, val8); in rtl8723bu_reset_8051() 392 val8 = rtl8xxxu_read8(priv, REG_RSV_CTRL); in rtl8723bu_reset_8051() 393 val8 &= ~BIT(1); in rtl8723bu_reset_8051() 394 rtl8xxxu_write8(priv, REG_RSV_CTRL, val8); in rtl8723bu_reset_8051() [all …]
|
D | rtl8xxxu_8192e.c | 670 u8 val8; in rtl8192eu_init_phy_bb() local 678 val8 = RF_ENABLE | RF_RSTB | RF_SDMRSTB; in rtl8192eu_init_phy_bb() 679 rtl8xxxu_write8(priv, REG_RF_CTRL, val8); in rtl8192eu_init_phy_bb() 685 val8 = RF_ENABLE | RF_RSTB | RF_SDMRSTB; in rtl8192eu_init_phy_bb() 686 rtl8xxxu_write8(priv, REG_RF_CTRL, val8); in rtl8192eu_init_phy_bb() 1348 u8 val8; in rtl8192e_crystal_afe_adjust() local 1354 val8 = rtl8xxxu_read8(priv, REG_AFE_PLL_CTRL); in rtl8192e_crystal_afe_adjust() 1355 val8 &= 0xfb; in rtl8192e_crystal_afe_adjust() 1356 rtl8xxxu_write8(priv, REG_AFE_PLL_CTRL, val8); in rtl8192e_crystal_afe_adjust() 1366 val8 = rtl8xxxu_read8(priv, REG_AFE_PLL_CTRL); in rtl8192e_crystal_afe_adjust() [all …]
|
D | rtl8xxxu_8710b.c | 867 u8 val8, word_mask, header, extheader; in rtl8710b_read_efuse() local 916 ret = rtl8710b_read_efuse8(priv, efuse_addr++, &val8); in rtl8710b_read_efuse() 925 priv->efuse_wifi.raw[map_addr++] = val8; in rtl8710b_read_efuse() 927 ret = rtl8710b_read_efuse8(priv, efuse_addr++, &val8); in rtl8710b_read_efuse() 930 priv->efuse_wifi.raw[map_addr++] = val8; in rtl8710b_read_efuse() 1499 u8 val8; in rtl8710b_emu_to_active() local 1503 val8 = rtl8xxxu_read8(priv, 0x5d); in rtl8710b_emu_to_active() 1504 val8 &= ~BIT(0); in rtl8710b_emu_to_active() 1505 rtl8xxxu_write8(priv, 0x5d, val8); in rtl8710b_emu_to_active() 1507 val8 = rtl8xxxu_read8(priv, REG_SYS_FUNC_8710B); in rtl8710b_emu_to_active() [all …]
|
D | rtl8xxxu_8188f.c | 754 u8 val8; in rtl8188fu_init_phy_bb() local 765 val8 = RF_ENABLE | RF_RSTB | RF_SDMRSTB; in rtl8188fu_init_phy_bb() 766 rtl8xxxu_write8(priv, REG_RF_CTRL, val8); in rtl8188fu_init_phy_bb() 772 val8 = SYS_FUNC_BB_GLB_RSTN | SYS_FUNC_BBRSTB | SYS_FUNC_USBA | SYS_FUNC_USBD; in rtl8188fu_init_phy_bb() 773 rtl8xxxu_write8(priv, REG_SYS_FUNC, val8); in rtl8188fu_init_phy_bb() 1321 u16 val8; in rtl8188f_disabled_to_emu() local 1324 val8 = rtl8xxxu_read8(priv, REG_APS_FSMCO + 1); in rtl8188f_disabled_to_emu() 1325 val8 &= ~((APS_FSMCO_PCIE | APS_FSMCO_HW_SUSPEND) >> 8); in rtl8188f_disabled_to_emu() 1326 rtl8xxxu_write8(priv, REG_APS_FSMCO + 1, val8); in rtl8188f_disabled_to_emu() 1329 val8 = rtl8xxxu_read8(priv, 0xc4); in rtl8188f_disabled_to_emu() [all …]
|
D | rtl8xxxu_8192c.c | 483 u8 val8; in rtl8192cu_power_on() local 489 val8 = rtl8xxxu_read8(priv, REG_APS_FSMCO); in rtl8192cu_power_on() 490 if (val8 & APS_FSMCO_PFM_ALDN) in rtl8192cu_power_on() 506 val8 = rtl8xxxu_read8(priv, REG_LDOV12D_CTRL); in rtl8192cu_power_on() 507 if (!(val8 & LDOV12D_ENABLE)) { in rtl8192cu_power_on() 508 pr_info("%s: Enabling LDOV12D (%02x)\n", __func__, val8); in rtl8192cu_power_on() 509 val8 |= LDOV12D_ENABLE; in rtl8192cu_power_on() 510 rtl8xxxu_write8(priv, REG_LDOV12D_CTRL, val8); in rtl8192cu_power_on() 514 val8 = rtl8xxxu_read8(priv, REG_SYS_ISO_CTRL); in rtl8192cu_power_on() 515 val8 &= ~SYS_ISO_MD2PP; in rtl8192cu_power_on() [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() 732 priv->usb_buf.val8 = val; in rtl8xxxu_write8() 735 addr, 0, &priv->usb_buf.val8, sizeof(u8), in rtl8xxxu_write8() 792 u8 val8; in rtl8xxxu_write8_set() local 794 val8 = rtl8xxxu_read8(priv, addr); in rtl8xxxu_write8_set() 795 val8 |= bits; in rtl8xxxu_write8_set() 796 return rtl8xxxu_write8(priv, addr, val8); in rtl8xxxu_write8_set() 801 u8 val8; in rtl8xxxu_write8_clear() local 803 val8 = rtl8xxxu_read8(priv, addr); in rtl8xxxu_write8_clear() [all …]
|
D | rtl8xxxu_8188e.c | 600 u8 val8; in rtl8188eu_init_phy_bb() local 610 val8 = RF_ENABLE | RF_RSTB | RF_SDMRSTB; in rtl8188eu_init_phy_bb() 611 rtl8xxxu_write8(priv, REG_RF_CTRL, val8); in rtl8188eu_init_phy_bb() 613 val8 = SYS_FUNC_USBA | SYS_FUNC_USBD | in rtl8188eu_init_phy_bb() 615 rtl8xxxu_write8(priv, REG_SYS_FUNC, val8); in rtl8188eu_init_phy_bb() 1020 u8 val8; in rtl8188e_emu_to_active() local 1040 val8 = rtl8xxxu_read8(priv, REG_SYS_FUNC); in rtl8188e_emu_to_active() 1041 val8 &= ~(SYS_FUNC_BBRSTB | SYS_FUNC_BB_GLB_RSTN); in rtl8188e_emu_to_active() 1042 rtl8xxxu_write8(priv, REG_SYS_FUNC, val8); in rtl8188e_emu_to_active() 1079 val8 = rtl8xxxu_read8(priv, REG_LPLDO_CTRL); in rtl8188e_emu_to_active() [all …]
|
/linux-6.6.21/drivers/edac/ |
D | amd8111_edac.c | 49 static void edac_pci_read_byte(struct pci_dev *dev, int reg, u8 *val8) in edac_pci_read_byte() argument 53 ret = pci_read_config_byte(dev, reg, val8); in edac_pci_read_byte() 69 static void edac_pci_write_byte(struct pci_dev *dev, int reg, u8 val8) in edac_pci_write_byte() argument 73 ret = pci_write_config_byte(dev, reg, val8); in edac_pci_write_byte() 235 u8 val8; in amd8111_lpc_bridge_init() local 246 val8 = __do_inb(REG_AT_COMPAT); in amd8111_lpc_bridge_init() 247 if (val8 == 0xff) { /* buggy port */ in amd8111_lpc_bridge_init() 255 if (val8 & AT_COMPAT_SERR) in amd8111_lpc_bridge_init() 257 if (val8 & AT_COMPAT_IOCHK) in amd8111_lpc_bridge_init() 265 edac_pci_read_byte(dev, REG_IO_CTRL_1, &val8); in amd8111_lpc_bridge_init() [all …]
|
/linux-6.6.21/drivers/staging/rtl8723bs/hal/ |
D | sdio_halinit.c | 604 u8 val8, bMacPwrCtrlOn = true; in rtl8723bs_hal_init() local 611 val8 = rtw_read8(padapter, SDIO_LOCAL_BASE | SDIO_REG_HRPWM1); in rtl8723bs_hal_init() 612 val8 &= 0x80; in rtl8723bs_hal_init() 613 val8 += 0x80; in rtl8723bs_hal_init() 614 val8 |= BIT(6); in rtl8723bs_hal_init() 615 rtw_write8(padapter, SDIO_LOCAL_BASE | SDIO_REG_HRPWM1, val8); in rtl8723bs_hal_init() 616 adapter_to_pwrctl(padapter)->tog = (val8 + 0x80) & 0x80; in rtl8723bs_hal_init() 897 u8 val8 = 0; in rtl8723bs_hal_deinit() local 902 val8 = rtw_read8(padapter, REG_HMETFR); in rtl8723bs_hal_deinit() 905 } while (cnt < 100 && (val8 != 0)); in rtl8723bs_hal_deinit() [all …]
|
D | rtl8723b_cmd.c | 639 u8 val8; in rtl8723b_download_rsvd_page() local 657 val8 = rtw_read8(padapter, REG_BCN_CTRL); in rtl8723b_download_rsvd_page() 658 val8 &= ~EN_BCN_FUNCTION; in rtl8723b_download_rsvd_page() 659 val8 |= DIS_TSF_UDT; in rtl8723b_download_rsvd_page() 660 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_rsvd_page() 697 val8 = rtw_read8(padapter, REG_BCN_CTRL); in rtl8723b_download_rsvd_page() 698 val8 |= EN_BCN_FUNCTION; in rtl8723b_download_rsvd_page() 699 val8 &= ~DIS_TSF_UDT; in rtl8723b_download_rsvd_page() 700 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_rsvd_page() 906 u8 val8; in rtl8723b_download_BTCoex_AP_mode_rsvd_page() local [all …]
|
D | rtl8723b_hal_init.c | 1676 u8 val8; in rtl8723b_InitBeaconParameters() local 1679 val8 = DIS_TSF_UDT; in rtl8723b_InitBeaconParameters() 1680 val16 = val8 | (val8 << 8); /* port0 and port1 */ in rtl8723b_InitBeaconParameters() 1763 u8 val8; in rtl8723b_SetBeaconRelatedRegisters() local 1817 val8 = rtw_read8(padapter, bcn_ctrl_reg); in rtl8723b_SetBeaconRelatedRegisters() 1818 val8 |= DIS_BCNQ_SUB; in rtl8723b_SetBeaconRelatedRegisters() 1819 rtw_write8(padapter, bcn_ctrl_reg, val8); in rtl8723b_SetBeaconRelatedRegisters() 2834 u8 val8; in hw_var_set_opmode() local 2839 val8 = rtw_read8(padapter, REG_BCN_CTRL); in hw_var_set_opmode() 2840 val8 |= DIS_TSF_UDT; in hw_var_set_opmode() [all …]
|
/linux-6.6.21/drivers/char/ |
D | sonypi.c | 942 u8 val8; in sonypi_misc_ioctl() local 948 if (sonypi_ec_read(SONYPI_LCD_LIGHT, &val8)) { in sonypi_misc_ioctl() 952 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl() 956 if (copy_from_user(&val8, argp, sizeof(val8))) { in sonypi_misc_ioctl() 960 if (sonypi_ec_write(SONYPI_LCD_LIGHT, val8)) in sonypi_misc_ioctl() 996 if (sonypi_ec_read(SONYPI_BAT_FLAGS, &val8)) { in sonypi_misc_ioctl() 1000 val8 &= 0x07; in sonypi_misc_ioctl() 1001 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl() 1005 val8 = sonypi_device.bluetooth_power; in sonypi_misc_ioctl() 1006 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl() [all …]
|
/linux-6.6.21/drivers/watchdog/ |
D | iTCO_wdt.c | 352 unsigned char val8; in iTCO_wdt_set_timeout() local 383 val8 = inb(TCOv1_TMR(p)); in iTCO_wdt_set_timeout() 384 val8 &= 0xc0; in iTCO_wdt_set_timeout() 385 val8 |= (tmrval & 0xff); in iTCO_wdt_set_timeout() 386 outb(val8, TCOv1_TMR(p)); in iTCO_wdt_set_timeout() 387 val8 = inb(TCOv1_TMR(p)); in iTCO_wdt_set_timeout() 390 if ((val8 & 0x3f) != tmrval) in iTCO_wdt_set_timeout() 402 unsigned char val8; in iTCO_wdt_get_timeleft() local 415 val8 = inb(TCO_RLD(p)); in iTCO_wdt_get_timeleft() 416 val8 &= 0x3f; in iTCO_wdt_get_timeleft() [all …]
|
/linux-6.6.21/drivers/ptp/ |
D | ptp_clockmatrix.h | 26 #define SET_U16_LSB(orig, val8) (orig = (0xff00 & (orig)) | (val8)) argument 27 #define SET_U16_MSB(orig, val8) (orig = (0x00ff & (orig)) | (val8 << 8)) argument
|
/linux-6.6.21/drivers/staging/rtl8723bs/core/ |
D | rtw_pwrctrl.c | 393 u8 val8; in rtw_set_ps_mode() local 395 val8 = hal_btcoex_LpsVal(padapter); in rtw_set_ps_mode() 396 if (val8 & BIT(4)) in rtw_set_ps_mode() 775 u8 val8; in rtw_unregister_task_alive() local 777 val8 = hal_btcoex_LpsVal(padapter); in rtw_unregister_task_alive() 778 if (val8 & BIT(4)) in rtw_unregister_task_alive() 902 u8 val8; in rtw_unregister_tx_alive() local 904 val8 = hal_btcoex_LpsVal(padapter); in rtw_unregister_tx_alive() 905 if (val8 & BIT(4)) in rtw_unregister_tx_alive() 938 u8 val8; in rtw_unregister_cmd_alive() local [all …]
|
/linux-6.6.21/drivers/net/wireless/realtek/rtw89/ |
D | efuse.c | 121 u8 val8; in rtw89_dump_physical_efuse_map_dav() local 143 !err && (val8 & XTAL_SI_RDY), in rtw89_dump_physical_efuse_map_dav() 145 rtwdev, XTAL_SI_CTRL, &val8); in rtw89_dump_physical_efuse_map_dav() 151 ret = rtw89_mac_read_xtal_si(rtwdev, XTAL_SI_READ_VAL, &val8); in rtw89_dump_physical_efuse_map_dav() 154 *map++ = val8; in rtw89_dump_physical_efuse_map_dav()
|
/linux-6.6.21/drivers/input/joystick/ |
D | walkera0701.c | 65 int val1, val2, val3, val4, val5, val6, val7, val8; in walkera0701_parse_frame() local 99 val8 = (w->buf[18] & 1) << 8 | (w->buf[19] << 4) | w->buf[20]; in walkera0701_parse_frame() 100 val8 *= (w->buf[18] & 2) - 1; /*sign */ in walkera0701_parse_frame() 105 val1, val2, val3, val4, val5, val6, val7, val8, in walkera0701_parse_frame()
|
/linux-6.6.21/drivers/misc/cxl/ |
D | vphb.c | 115 u8 val8; in cxl_pcie_read_config() local 130 rc = cxl_ops->afu_cr_read8(afu, record, offset, &val8); in cxl_pcie_read_config() 131 *val = val8; in cxl_pcie_read_config()
|
/linux-6.6.21/drivers/platform/x86/ |
D | sony-laptop.c | 4125 u8 val8; in sonypi_misc_ioctl() local 4141 val8 = ((value & 0xff) - 1) << 5; in sonypi_misc_ioctl() 4142 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl() 4150 if (copy_from_user(&val8, argp, sizeof(val8))) { in sonypi_misc_ioctl() 4154 value = (val8 >> 5) + 1; in sonypi_misc_ioctl() 4197 if (ec_read(SONYPI_BAT_FLAGS, &val8)) { in sonypi_misc_ioctl() 4201 val8 &= 0x07; in sonypi_misc_ioctl() 4202 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl() 4206 val8 = spic_dev.bluetooth_power; in sonypi_misc_ioctl() 4207 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl() [all …]
|
/linux-6.6.21/drivers/misc/ocxl/ |
D | config.c | 490 u8 val8; in read_afu_control() local 501 pci_read_config_byte(dev, pos + OCXL_DVSEC_AFU_CTRL_PASID_SUP, &val8); in read_afu_control() 502 afu->pasid_supported_log = EXTRACT_BITS(val8, 0, 4); in read_afu_control() 760 u8 val8; in ocxl_config_set_afu_pasid() local 763 val8 = pasid_count_log & OCXL_DVSEC_PASID_LOG_MASK; in ocxl_config_set_afu_pasid() 764 pci_write_config_byte(dev, pos + OCXL_DVSEC_AFU_CTRL_PASID_EN, val8); in ocxl_config_set_afu_pasid()
|
/linux-6.6.21/drivers/media/i2c/ccs/ |
D | ccs-reg-access.c | 125 u32 val8; in ____ccs_read_addr_8only() local 127 rval = ____ccs_read_addr(sensor, reg + i, 1, &val8); in ____ccs_read_addr_8only() 130 *val |= val8 << ((len - i - 1) << 3); in ____ccs_read_addr_8only()
|
/linux-6.6.21/drivers/nvmem/ |
D | stm32-romem.c | 78 u8 *buf8 = buf, *val8 = (u8 *)&val; in stm32_bsec_read() local 110 memcpy(&buf8[j], &val8[skip_bytes], size); in stm32_bsec_read()
|