Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/staging/rtl8712/
Dusb_halinit.c38 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 …]
Drtl871x_pwrctrl.c38 void r8712_set_rpwm(struct _adapter *padapter, u8 val8) in r8712_set_rpwm() argument
43 if (pwrpriv->rpwm == val8) { in r8712_set_rpwm()
50 rpwm = val8 | pwrpriv->tog; in r8712_set_rpwm()
51 switch (val8) { in r8712_set_rpwm()
53 pwrpriv->cpwm = val8; in r8712_set_rpwm()
59 pwrpriv->cpwm = val8; in r8712_set_rpwm()
65 pwrpriv->rpwm = val8; in r8712_set_rpwm()
Drtl871x_io.h71 void (*_cmd52w)(struct intf_priv *pintfpriv, u32 addr, u8 val8);
73 void (*_cmdfunc152w)(struct intf_priv *pintfpriv, u32 addr, u8 val8);
Drtl871x_pwrctrl.h125 void r8712_set_rpwm(struct _adapter *padapter, u8 val8);
Drtl871x_mp_ioctl.c289 u8 val8; in oid_rt_pro_start_test_hdl() local
303 val8 = r8712_read8(Adapter, EE_9346CR); in oid_rt_pro_start_test_hdl()
304 if (!(val8 & _9356SEL)) { /*boot from EFUSE*/ in oid_rt_pro_start_test_hdl()
/linux-2.6.39/drivers/edac/
Damd8111_edac.c62 static void edac_pci_read_byte(struct pci_dev *dev, int reg, u8 *val8) in edac_pci_read_byte() argument
66 ret = pci_read_config_byte(dev, reg, val8); in edac_pci_read_byte()
82 static void edac_pci_write_byte(struct pci_dev *dev, int reg, u8 val8) in edac_pci_write_byte() argument
86 ret = pci_write_config_byte(dev, reg, val8); in edac_pci_write_byte()
248 u8 val8; in amd8111_lpc_bridge_init() local
259 val8 = __do_inb(REG_AT_COMPAT); in amd8111_lpc_bridge_init()
260 if (val8 == 0xff) { /* buggy port */ in amd8111_lpc_bridge_init()
268 if (val8 & AT_COMPAT_SERR) in amd8111_lpc_bridge_init()
270 if (val8 & AT_COMPAT_IOCHK) in amd8111_lpc_bridge_init()
278 edac_pci_read_byte(dev, REG_IO_CTRL_1, &val8); in amd8111_lpc_bridge_init()
[all …]
/linux-2.6.39/drivers/char/
Dsonypi.c962 u8 val8; in sonypi_misc_ioctl() local
968 if (sonypi_ec_read(SONYPI_LCD_LIGHT, &val8)) { in sonypi_misc_ioctl()
972 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl()
976 if (copy_from_user(&val8, argp, sizeof(val8))) { in sonypi_misc_ioctl()
980 if (sonypi_ec_write(SONYPI_LCD_LIGHT, val8)) in sonypi_misc_ioctl()
1016 if (sonypi_ec_read(SONYPI_BAT_FLAGS, &val8)) { in sonypi_misc_ioctl()
1020 val8 &= 0x07; in sonypi_misc_ioctl()
1021 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl()
1025 val8 = sonypi_device.bluetooth_power; in sonypi_misc_ioctl()
1026 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl()
[all …]
/linux-2.6.39/drivers/staging/rtl8187se/
Dr8185b_init.c896 u8 val8; in HwConfigureRTL8185() local
899 val8 = read_nic_byte(dev, CW_CONF); in HwConfigureRTL8185()
902 val8 = val8 & 0xfd; in HwConfigureRTL8185()
904 val8 = val8 | 0x02; in HwConfigureRTL8185()
906 write_nic_byte(dev, CW_CONF, val8); in HwConfigureRTL8185()
909 val8 = read_nic_byte(dev, TXAGC_CTL); in HwConfigureRTL8185()
913 val8 = val8 & 0xfe; in HwConfigureRTL8185()
915 val8 = val8 | 0x01 ; in HwConfigureRTL8185()
919 write_nic_byte(dev, TXAGC_CTL, val8); in HwConfigureRTL8185()
922 val8 = read_nic_byte(dev, TXAGC_CTL); in HwConfigureRTL8185()
[all …]
/linux-2.6.39/drivers/watchdog/
DiTCO_wdt.c653 unsigned char val8; in iTCO_wdt_set_heartbeat() local
686 val8 = inb(TCOv1_TMR); in iTCO_wdt_set_heartbeat()
687 val8 &= 0xc0; in iTCO_wdt_set_heartbeat()
688 val8 |= (tmrval & 0xff); in iTCO_wdt_set_heartbeat()
689 outb(val8, TCOv1_TMR); in iTCO_wdt_set_heartbeat()
690 val8 = inb(TCOv1_TMR); in iTCO_wdt_set_heartbeat()
693 if ((val8 & 0x3f) != tmrval) in iTCO_wdt_set_heartbeat()
704 unsigned char val8; in iTCO_wdt_get_timeleft() local
716 val8 = inb(TCO_RLD); in iTCO_wdt_get_timeleft()
717 val8 &= 0x3f; in iTCO_wdt_get_timeleft()
[all …]
/linux-2.6.39/arch/ia64/kernel/
Dperfmon_mckinley.h80 unsigned long val8 = 0, val14 = 0, val13 = 0; in pfm_mck_pmc_check() local
141 case 8: val8 = *val; in pfm_mck_pmc_check()
146 case 13: val8 = ctx->ctx_pmcs[8]; in pfm_mck_pmc_check()
151 case 14: val8 = ctx->ctx_pmcs[8]; in pfm_mck_pmc_check()
162 && ((val8 & 0x1) == 0) in pfm_mck_pmc_check()
/linux-2.6.39/drivers/platform/x86/
Dsony-laptop.c2666 u8 val8; in sonypi_misc_ioctl() local
2681 val8 = ((value & 0xff) - 1) << 5; in sonypi_misc_ioctl()
2682 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl()
2690 if (copy_from_user(&val8, argp, sizeof(val8))) { in sonypi_misc_ioctl()
2695 (val8 >> 5) + 1, NULL)) { in sonypi_misc_ioctl()
2736 if (ec_read(SONYPI_BAT_FLAGS, &val8)) { in sonypi_misc_ioctl()
2740 val8 &= 0x07; in sonypi_misc_ioctl()
2741 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl()
2745 val8 = spic_dev.bluetooth_power; in sonypi_misc_ioctl()
2746 if (copy_to_user(argp, &val8, sizeof(val8))) in sonypi_misc_ioctl()
[all …]
/linux-2.6.39/drivers/input/joystick/
Dwalkera0701.c69 int val1, val2, val3, val4, val5, val6, val7, val8; in walkera0701_parse_frame() local
102 val8 = (w->buf[18] & 1) << 8 | (w->buf[19] << 4) | w->buf[20]; in walkera0701_parse_frame()
103 val8 *= (w->buf[18] & 2) - 1; /*sign */ in walkera0701_parse_frame()
112 val1, val2, val3, val4, val5, val6, val7, val8, magic, in walkera0701_parse_frame()
/linux-2.6.39/drivers/net/
Dpci-skeleton.c526 #define NETDRV_W8(reg, val8) outb((val8), ((unsigned long)ioaddr) + (reg)) argument
549 #define NETDRV_W8_F(reg, val8) \ argument
551 writeb((val8), ioaddr + (reg)); \
569 #define NETDRV_W8(reg, val8) writeb((val8), ioaddr + (reg)) argument
D8139too.c653 #define RTL_W8_F(reg, val8) do { iowrite8 ((val8), ioaddr + (reg)); ioread8 (ioaddr + (reg)); } whi… argument
658 #define RTL_W8(reg, val8) iowrite8 ((val8), ioaddr + (reg)) argument
Dniu.c8357 u8 val8; in niu_pci_vpd_validate() local
8391 val8 = dev->perm_addr[5]; in niu_pci_vpd_validate()
8393 if (dev->perm_addr[5] < val8) in niu_pci_vpd_validate()
8404 u8 val8; in niu_pci_probe_sprom() local
8433 val8 = (val & ESPC_PHY_TYPE_PORT0) >> in niu_pci_probe_sprom()
8437 val8 = (val & ESPC_PHY_TYPE_PORT1) >> in niu_pci_probe_sprom()
8441 val8 = (val & ESPC_PHY_TYPE_PORT2) >> in niu_pci_probe_sprom()
8445 val8 = (val & ESPC_PHY_TYPE_PORT3) >> in niu_pci_probe_sprom()
8454 "SPROM: PHY type %x\n", val8); in niu_pci_probe_sprom()
8456 switch (val8) { in niu_pci_probe_sprom()
[all …]
Dipg.c40 #define ipg_w8(val8, reg) iowrite8((val8), ioaddr + (reg)) argument
Ds2io.c2835 u8 val8 = 0; in s2io_poll_msix() local
2851 val8 = (ring->ring_no == 0) ? 0x3f : 0xbf; in s2io_poll_msix()
2852 writeb(val8, addr); in s2io_poll_msix()
2853 val8 = readb(addr); in s2io_poll_msix()
4324 u8 val8 = 0; in s2io_msix_ring_handle() local
4328 val8 = (ring->ring_no == 0) ? 0x7f : 0xff; in s2io_msix_ring_handle()
4329 writeb(val8, addr); in s2io_msix_ring_handle()
4330 val8 = readb(addr); in s2io_msix_ring_handle()
Dr8169.c91 #define RTL_W8(reg, val8) writeb ((val8), ioaddr + (reg)) argument
/linux-2.6.39/drivers/net/wireless/rtlwifi/
Dwifi.h1786 static inline void rtl_write_byte(struct rtl_priv *rtlpriv, u32 addr, u8 val8) in rtl_write_byte() argument
1788 rtlpriv->io.write8_async(rtlpriv, addr, val8); in rtl_write_byte()
/linux-2.6.39/drivers/net/wireless/iwlegacy/
Diwl-dev.h308 u8 val8; member
/linux-2.6.39/drivers/net/wireless/iwlwifi/
Diwl-dev.h327 u8 val8; member