Home
last modified time | relevance | path

Searched refs:val8 (Results 1 – 25 of 47) sorted by relevance

12

/Linux-v5.10/drivers/staging/rtl8712/
Dusb_halinit.c26 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 …]
Drtl871x_pwrctrl.c26 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()
Drtl871x_io.h84 void (*_cmd52w)(struct intf_priv *pintfpriv, u32 addr, u8 val8);
86 void (*_cmdfunc152w)(struct intf_priv *pintfpriv, u32 addr, u8 val8);
/Linux-v5.10/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu_8723a.c224 u8 val8; in rtl8723a_emu_to_active() local
229 val8 = rtl8xxxu_read8(priv, REG_LDOA15_CTRL); in rtl8723a_emu_to_active()
230 val8 |= LDOA15_ENABLE; in rtl8723a_emu_to_active()
231 rtl8xxxu_write8(priv, REG_LDOA15_CTRL, val8); in rtl8723a_emu_to_active()
234 val8 = rtl8xxxu_read8(priv, 0x0067); in rtl8723a_emu_to_active()
235 val8 &= ~BIT(4); in rtl8723a_emu_to_active()
236 rtl8xxxu_write8(priv, 0x0067, val8); in rtl8723a_emu_to_active()
241 val8 = rtl8xxxu_read8(priv, REG_SYS_ISO_CTRL); in rtl8723a_emu_to_active()
242 val8 &= ~SYS_ISO_ANALOG_IPS; in rtl8723a_emu_to_active()
243 rtl8xxxu_write8(priv, REG_SYS_ISO_CTRL, val8); in rtl8723a_emu_to_active()
[all …]
Drtl8xxxu_8723b.c330 u8 val8; in rtl8723bu_reset_8051() local
333 val8 = rtl8xxxu_read8(priv, REG_RSV_CTRL); in rtl8723bu_reset_8051()
334 val8 &= ~BIT(1); in rtl8723bu_reset_8051()
335 rtl8xxxu_write8(priv, REG_RSV_CTRL, val8); in rtl8723bu_reset_8051()
337 val8 = rtl8xxxu_read8(priv, REG_RSV_CTRL + 1); in rtl8723bu_reset_8051()
338 val8 &= ~BIT(0); in rtl8723bu_reset_8051()
339 rtl8xxxu_write8(priv, REG_RSV_CTRL + 1, val8); in rtl8723bu_reset_8051()
345 val8 = rtl8xxxu_read8(priv, REG_RSV_CTRL); in rtl8723bu_reset_8051()
346 val8 &= ~BIT(1); in rtl8723bu_reset_8051()
347 rtl8xxxu_write8(priv, REG_RSV_CTRL, val8); in rtl8723bu_reset_8051()
[all …]
Drtl8xxxu_8192e.c640 u8 val8; in rtl8192eu_init_phy_bb() local
648 val8 = RF_ENABLE | RF_RSTB | RF_SDMRSTB; in rtl8192eu_init_phy_bb()
649 rtl8xxxu_write8(priv, REG_RF_CTRL, val8); in rtl8192eu_init_phy_bb()
655 val8 = RF_ENABLE | RF_RSTB | RF_SDMRSTB; in rtl8192eu_init_phy_bb()
656 rtl8xxxu_write8(priv, REG_RF_CTRL, val8); in rtl8192eu_init_phy_bb()
1289 u8 val8; in rtl8192e_crystal_afe_adjust() local
1295 val8 = rtl8xxxu_read8(priv, REG_AFE_PLL_CTRL); in rtl8192e_crystal_afe_adjust()
1296 val8 &= 0xfb; in rtl8192e_crystal_afe_adjust()
1297 rtl8xxxu_write8(priv, REG_AFE_PLL_CTRL, val8); in rtl8192e_crystal_afe_adjust()
1307 val8 = rtl8xxxu_read8(priv, REG_AFE_PLL_CTRL); in rtl8192e_crystal_afe_adjust()
[all …]
Drtl8xxxu_8192c.c440 u8 val8; in rtl8192cu_power_on() local
446 val8 = rtl8xxxu_read8(priv, REG_APS_FSMCO); in rtl8192cu_power_on()
447 if (val8 & APS_FSMCO_PFM_ALDN) in rtl8192cu_power_on()
463 val8 = rtl8xxxu_read8(priv, REG_LDOV12D_CTRL); in rtl8192cu_power_on()
464 if (!(val8 & LDOV12D_ENABLE)) { in rtl8192cu_power_on()
465 pr_info("%s: Enabling LDOV12D (%02x)\n", __func__, val8); in rtl8192cu_power_on()
466 val8 |= LDOV12D_ENABLE; in rtl8192cu_power_on()
467 rtl8xxxu_write8(priv, REG_LDOV12D_CTRL, val8); in rtl8192cu_power_on()
471 val8 = rtl8xxxu_read8(priv, REG_SYS_ISO_CTRL); in rtl8192cu_power_on()
472 val8 &= ~SYS_ISO_MD2PP; in rtl8192cu_power_on()
[all …]
Drtl8xxxu_core.c658 addr, 0, &priv->usb_buf.val8, sizeof(u8), in rtl8xxxu_read8()
660 data = priv->usb_buf.val8; in rtl8xxxu_read8()
715 priv->usb_buf.val8 = val; in rtl8xxxu_write8()
718 addr, 0, &priv->usb_buf.val8, sizeof(u8), in rtl8xxxu_write8()
895 u8 val8; in rtl8xxxu_gen1_h2c_cmd() local
908 val8 = rtl8xxxu_read8(priv, REG_HMTFR); in rtl8xxxu_gen1_h2c_cmd()
909 if (!(val8 & BIT(mbox_nr))) in rtl8xxxu_gen1_h2c_cmd()
945 u8 val8; in rtl8xxxu_gen2_h2c_cmd() local
958 val8 = rtl8xxxu_read8(priv, REG_HMTFR); in rtl8xxxu_gen2_h2c_cmd()
959 if (!(val8 & BIT(mbox_nr))) in rtl8xxxu_gen2_h2c_cmd()
[all …]
/Linux-v5.10/drivers/edac/
Damd8111_edac.c49 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-v5.10/drivers/char/
Dsonypi.c942 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-v5.10/drivers/watchdog/
DiTCO_wdt.c355 unsigned char val8; in iTCO_wdt_set_timeout() local
386 val8 = inb(TCOv1_TMR(p)); in iTCO_wdt_set_timeout()
387 val8 &= 0xc0; in iTCO_wdt_set_timeout()
388 val8 |= (tmrval & 0xff); in iTCO_wdt_set_timeout()
389 outb(val8, TCOv1_TMR(p)); in iTCO_wdt_set_timeout()
390 val8 = inb(TCOv1_TMR(p)); in iTCO_wdt_set_timeout()
393 if ((val8 & 0x3f) != tmrval) in iTCO_wdt_set_timeout()
405 unsigned char val8; in iTCO_wdt_get_timeleft() local
418 val8 = inb(TCO_RLD(p)); in iTCO_wdt_get_timeleft()
419 val8 &= 0x3f; in iTCO_wdt_get_timeleft()
[all …]
/Linux-v5.10/drivers/staging/rtl8723bs/hal/
Dsdio_halinit.c711 u8 val8, bMacPwrCtrlOn = true; in rtl8723bs_hal_init() local
720 val8 = rtw_read8(padapter, SDIO_LOCAL_BASE | SDIO_REG_HRPWM1); in rtl8723bs_hal_init()
721 val8 &= 0x80; in rtl8723bs_hal_init()
722 val8 += 0x80; in rtl8723bs_hal_init()
723 val8 |= BIT(6); in rtl8723bs_hal_init()
724 rtw_write8(padapter, SDIO_LOCAL_BASE | SDIO_REG_HRPWM1, val8); in rtl8723bs_hal_init()
725 DBG_871X("%s: write rpwm =%02x\n", __func__, val8); in rtl8723bs_hal_init()
726 adapter_to_pwrctl(padapter)->tog = (val8 + 0x80) & 0x80; in rtl8723bs_hal_init()
1061 u8 val8 = 0; in rtl8723bs_hal_deinit() local
1068 val8 = rtw_read8(padapter, REG_HMETFR); in rtl8723bs_hal_deinit()
[all …]
Drtl8723b_hal_init.c1937 u8 val8; in rtl8723b_InitBeaconParameters() local
1940 val8 = DIS_TSF_UDT; in rtl8723b_InitBeaconParameters()
1941 val16 = val8 | (val8 << 8); /* port0 and port1 */ in rtl8723b_InitBeaconParameters()
2036 u8 val8; in rtl8723b_SetBeaconRelatedRegisters() local
2090 val8 = rtw_read8(padapter, bcn_ctrl_reg); in rtl8723b_SetBeaconRelatedRegisters()
2091 val8 |= DIS_BCNQ_SUB; in rtl8723b_SetBeaconRelatedRegisters()
2092 rtw_write8(padapter, bcn_ctrl_reg, val8); in rtl8723b_SetBeaconRelatedRegisters()
3317 u8 val8; in hw_var_set_opmode() local
3322 val8 = rtw_read8(padapter, REG_BCN_CTRL); in hw_var_set_opmode()
3323 val8 |= DIS_TSF_UDT; in hw_var_set_opmode()
[all …]
Drtl8723b_cmd.c1933 u8 val8; in rtl8723b_download_rsvd_page() local
1954 val8 = rtw_read8(padapter, REG_BCN_CTRL); in rtl8723b_download_rsvd_page()
1955 val8 &= ~EN_BCN_FUNCTION; in rtl8723b_download_rsvd_page()
1956 val8 |= DIS_TSF_UDT; in rtl8723b_download_rsvd_page()
1957 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_rsvd_page()
2006 val8 = rtw_read8(padapter, REG_BCN_CTRL); in rtl8723b_download_rsvd_page()
2007 val8 |= EN_BCN_FUNCTION; in rtl8723b_download_rsvd_page()
2008 val8 &= ~DIS_TSF_UDT; in rtl8723b_download_rsvd_page()
2009 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_rsvd_page()
2230 u8 val8; in rtl8723b_download_BTCoex_AP_mode_rsvd_page() local
[all …]
/Linux-v5.10/drivers/staging/rtl8188eu/hal/
Dusb_halinit.c628 u8 val8; in RfOnOffDetect() local
632 val8 = usb_read8(adapt, REG_HSISR); in RfOnOffDetect()
633 DBG_88E("pwrdown, 0x5c(BIT(7))=%02x\n", val8); in RfOnOffDetect()
634 rfpowerstate = (val8 & BIT(7)) ? rf_off : rf_on; in RfOnOffDetect()
637 val8 = usb_read8(adapt, REG_GPIO_IO_SEL); in RfOnOffDetect()
638 DBG_88E("GPIO_IN=%02x\n", val8); in RfOnOffDetect()
639 rfpowerstate = (val8 & BIT(3)) ? rf_on : rf_off; in RfOnOffDetect()
877 u8 val8; in CardDisableRTL8188EU() local
882 val8 = usb_read8(Adapter, REG_TX_RPT_CTRL); in CardDisableRTL8188EU()
883 usb_write8(Adapter, REG_TX_RPT_CTRL, val8 & (~BIT(1))); in CardDisableRTL8188EU()
[all …]
/Linux-v5.10/drivers/ptp/
Dptp_clockmatrix.h24 #define SET_U16_LSB(orig, val8) (orig = (0xff00 & (orig)) | (val8)) argument
25 #define SET_U16_MSB(orig, val8) (orig = (0x00ff & (orig)) | (val8 << 8)) argument
/Linux-v5.10/drivers/staging/rtl8723bs/core/
Drtw_pwrctrl.c429 u8 val8; in rtw_set_ps_mode() local
433 rtw_hal_get_hwreg(padapter, HW_VAR_SYS_CLKR, &val8); in rtw_set_ps_mode()
434 if (!(val8 & BIT(4))) { /* 0x08 bit4 = 1 --> in 32k, bit4 = 0 --> leave 32k */ in rtw_set_ps_mode()
477 u8 val8; in rtw_set_ps_mode() local
479 val8 = hal_btcoex_LpsVal(padapter); in rtw_set_ps_mode()
480 if (val8 & BIT(4)) in rtw_set_ps_mode()
905 u8 val8; in rtw_unregister_task_alive() local
907 val8 = hal_btcoex_LpsVal(padapter); in rtw_unregister_task_alive()
908 if (val8 & BIT(4)) in rtw_unregister_task_alive()
1046 u8 val8; in rtw_unregister_tx_alive() local
[all …]
/Linux-v5.10/arch/ia64/kernel/
Dperfmon_mckinley.h81 unsigned long val8 = 0, val14 = 0, val13 = 0; in pfm_mck_pmc_check() local
142 case 8: val8 = *val; in pfm_mck_pmc_check()
147 case 13: val8 = ctx->ctx_pmcs[8]; in pfm_mck_pmc_check()
152 case 14: val8 = ctx->ctx_pmcs[8]; in pfm_mck_pmc_check()
163 && ((val8 & 0x1) == 0) in pfm_mck_pmc_check()
/Linux-v5.10/drivers/media/i2c/smiapp/
Dsmiapp-regs.c125 u32 val8; in ____smiapp_read_8only() local
127 rval = ____smiapp_read(sensor, reg + i, 1, &val8); in ____smiapp_read_8only()
130 *val |= val8 << ((len - i - 1) << 3); in ____smiapp_read_8only()
/Linux-v5.10/drivers/misc/cardreader/
Dalcor_pci.c102 u8 val8; in alcor_pci_find_cap_offset() local
106 pci_read_config_byte(pci, where, &val8); in alcor_pci_find_cap_offset()
107 if (!val8) in alcor_pci_find_cap_offset()
110 where = (int)val8; in alcor_pci_find_cap_offset()
/Linux-v5.10/drivers/input/joystick/
Dwalkera0701.c65 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-v5.10/drivers/misc/cxl/
Dvphb.c121 u8 val8; in cxl_pcie_read_config() local
136 rc = cxl_ops->afu_cr_read8(afu, record, offset, &val8); in cxl_pcie_read_config()
137 *val = val8; in cxl_pcie_read_config()
/Linux-v5.10/drivers/platform/x86/
Dsony-laptop.c4135 u8 val8; in sonypi_misc_ioctl() local
4151 val8 = ((value & 0xff) - 1) << 5; in sonypi_misc_ioctl()
4152 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl()
4160 if (copy_from_user(&val8, argp, sizeof(val8))) { in sonypi_misc_ioctl()
4164 value = (val8 >> 5) + 1; in sonypi_misc_ioctl()
4207 if (ec_read(SONYPI_BAT_FLAGS, &val8)) { in sonypi_misc_ioctl()
4211 val8 &= 0x07; in sonypi_misc_ioctl()
4212 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl()
4216 val8 = spic_dev.bluetooth_power; in sonypi_misc_ioctl()
4217 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl()
[all …]
/Linux-v5.10/drivers/misc/ocxl/
Dconfig.c483 u8 val8; in read_afu_control() local
494 pci_read_config_byte(dev, pos + OCXL_DVSEC_AFU_CTRL_PASID_SUP, &val8); in read_afu_control()
495 afu->pasid_supported_log = EXTRACT_BITS(val8, 0, 4); in read_afu_control()
753 u8 val8; in ocxl_config_set_afu_pasid() local
756 val8 = pasid_count_log & OCXL_DVSEC_PASID_LOG_MASK; in ocxl_config_set_afu_pasid()
757 pci_write_config_byte(dev, pos + OCXL_DVSEC_AFU_CTRL_PASID_EN, val8); in ocxl_config_set_afu_pasid()
/Linux-v5.10/drivers/nvmem/
Dstm32-romem.c74 u8 *buf8 = buf, *val8 = (u8 *)&val; in stm32_bsec_read() local
106 memcpy(&buf8[j], &val8[skip_bytes], size); in stm32_bsec_read()

12