/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtl8xxxu/ |
D | rtl8xxxu_8192c.c | 441 u16 val16; in rtl8192cu_power_on() local 479 val16 = rtl8xxxu_read16(priv, REG_APS_FSMCO); in rtl8192cu_power_on() 480 val16 |= APS_FSMCO_MAC_ENABLE; in rtl8192cu_power_on() 481 rtl8xxxu_write16(priv, REG_APS_FSMCO, val16); in rtl8192cu_power_on() 484 val16 = rtl8xxxu_read16(priv, REG_APS_FSMCO); in rtl8192cu_power_on() 485 if (!(val16 & APS_FSMCO_MAC_ENABLE)) in rtl8192cu_power_on() 496 val16 = APS_FSMCO_HW_SUSPEND | APS_FSMCO_ENABLE_POWERDOWN | in rtl8192cu_power_on() 498 rtl8xxxu_write16(priv, REG_APS_FSMCO, val16); in rtl8192cu_power_on() 503 val16 = rtl8xxxu_read16(priv, REG_SYS_ISO_CTRL); in rtl8192cu_power_on() 504 val16 &= ~SYS_ISO_DIOR; in rtl8192cu_power_on() [all …]
|
D | rtl8xxxu_8192e.c | 688 u16 val16; in rtl8192eu_init_phy_bb() local 690 val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); in rtl8192eu_init_phy_bb() 691 val16 |= SYS_FUNC_BB_GLB_RSTN | SYS_FUNC_BBRSTB | SYS_FUNC_DIO_RF; in rtl8192eu_init_phy_bb() 692 rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); in rtl8192eu_init_phy_bb() 698 val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); in rtl8192eu_init_phy_bb() 699 val16 |= (SYS_FUNC_USBA | SYS_FUNC_USBD | SYS_FUNC_DIO_RF | in rtl8192eu_init_phy_bb() 701 rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); in rtl8192eu_init_phy_bb() 1445 u16 val16; in rtl8192eu_active_to_lps() local 1483 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8192eu_active_to_lps() 1484 val16 &= 0xff00; in rtl8192eu_active_to_lps() [all …]
|
D | rtl8xxxu_8723b.c | 485 u16 val16; in rtl8723bu_init_phy_bb() local 487 val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); in rtl8723bu_init_phy_bb() 488 val16 |= SYS_FUNC_BB_GLB_RSTN | SYS_FUNC_BBRSTB | SYS_FUNC_DIO_RF; in rtl8723bu_init_phy_bb() 489 rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); in rtl8723bu_init_phy_bb() 1213 u16 val16; in rtl8723bu_active_to_emu() local 1221 val16 = rtl8xxxu_read16(priv, REG_GPIO_INTM); in rtl8723bu_active_to_emu() 1222 val16 &= ~GPIO_INTM_EDGE_TRIG_IRQ; in rtl8723bu_active_to_emu() 1223 rtl8xxxu_write16(priv, REG_GPIO_INTM, val16); in rtl8723bu_active_to_emu() 1392 u16 val16; in rtl8723bu_power_on() local 1406 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8723bu_power_on() [all …]
|
D | rtl8xxxu_core.c | 678 addr, 0, &priv->usb_buf.val16, sizeof(u16), in rtl8xxxu_read16() 680 data = le16_to_cpu(priv->usb_buf.val16); in rtl8xxxu_read16() 735 priv->usb_buf.val16 = cpu_to_le16(val); in rtl8xxxu_write16() 738 addr, 0, &priv->usb_buf.val16, sizeof(u16), in rtl8xxxu_write16() 1552 u16 val16; in rtl8xxxu_set_retry() local 1554 val16 = ((short_retry << RETRY_LIMIT_SHORT_SHIFT) & in rtl8xxxu_set_retry() 1559 rtl8xxxu_write16(priv, REG_RETRY_LIMIT, val16); in rtl8xxxu_set_retry() 1565 u16 val16; in rtl8xxxu_set_spec_sifs() local 1567 val16 = ((cck << SPEC_SIFS_CCK_SHIFT) & SPEC_SIFS_CCK_MASK) | in rtl8xxxu_set_spec_sifs() 1570 rtl8xxxu_write16(priv, REG_SPEC_SIFS, val16); in rtl8xxxu_set_spec_sifs() [all …]
|
D | rtl8xxxu_8723a.c | 317 u16 val16; in rtl8723au_power_on() local 343 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8723au_power_on() 344 val16 |= (CR_HCI_TXDMA_ENABLE | CR_HCI_RXDMA_ENABLE | in rtl8723au_power_on() 349 rtl8xxxu_write16(priv, REG_CR, val16); in rtl8723au_power_on()
|
/kernel/linux/linux-5.10/drivers/bcma/ |
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 …]
|
D | driver_pci_host.c | 344 u16 val16; in bcma_core_pci_enable_crs() local 350 bcma_extpci_read_config(pc, 0, 0, root_cap, &val16, sizeof(u16)); in bcma_core_pci_enable_crs() 351 if (val16 & BCMA_CORE_PCI_RC_CRS_VISIBILITY) { in bcma_core_pci_enable_crs() 354 val16 = PCI_EXP_RTCTL_CRSSVE; in bcma_core_pci_enable_crs() 355 bcma_extpci_read_config(pc, 0, 0, root_ctrl, &val16, 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 [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/ |
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()
|
/kernel/linux/linux-5.10/drivers/iio/gyro/ |
D | adis16260.c | 201 s16 val16; in adis16260_read_raw() local 238 ret = adis_read_reg_16(adis, addr, &val16); in adis16260_read_raw() 242 *val = sign_extend32(val16, 11); in adis16260_read_raw() 246 ret = adis_read_reg_16(adis, addr, &val16); in adis16260_read_raw() 250 *val = val16; in adis16260_read_raw() 253 ret = adis_read_reg_16(adis, ADIS16260_SMPL_PRD, &val16); in adis16260_read_raw() 259 *val = (val16 & ADIS16260_SMPL_PRD_TIME_BASE) ? in adis16260_read_raw() 262 *val = (val16 & ADIS16260_SMPL_PRD_TIME_BASE) ? in adis16260_read_raw() 264 *val /= (val16 & ADIS16260_SMPL_PRD_DIV_MASK) + 1; in adis16260_read_raw()
|
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/ |
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()
|
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()
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
D | iTCO_wdt.c | 354 unsigned int val16; in iTCO_wdt_set_timeout() local 375 val16 = inw(TCOv2_TMR(p)); in iTCO_wdt_set_timeout() 376 val16 &= 0xfc00; in iTCO_wdt_set_timeout() 377 val16 |= tmrval; in iTCO_wdt_set_timeout() 378 outw(val16, TCOv2_TMR(p)); in iTCO_wdt_set_timeout() 379 val16 = inw(TCOv2_TMR(p)); in iTCO_wdt_set_timeout() 382 if ((val16 & 0x3ff) != tmrval) in iTCO_wdt_set_timeout() 404 unsigned int val16; in iTCO_wdt_get_timeleft() local 411 val16 = inw(TCO_RLD(p)); in iTCO_wdt_get_timeleft() 412 val16 &= 0x3ff; in iTCO_wdt_get_timeleft() [all …]
|
/kernel/linux/linux-5.10/drivers/ide/ |
D | palm_bk3710.c | 69 u16 val16; in palm_bk3710_setudmamode() local 94 val16 = readw(base + BK3710_UDMACTL) | (1 << dev); in palm_bk3710_setudmamode() 95 writew(val16, base + BK3710_UDMACTL); in palm_bk3710_setudmamode() 104 u16 val16; in palm_bk3710_setdmamode() local 126 val16 = readw(base + BK3710_UDMACTL) & ~(1 << dev); in palm_bk3710_setdmamode() 127 writew(val16, base + BK3710_UDMACTL); in palm_bk3710_setdmamode()
|
/kernel/linux/linux-5.10/drivers/ata/ |
D | pata_bk3710.c | 71 u16 val16; in pata_bk3710_setudmamode() local 97 val16 = ioread16(base + BK3710_UDMACTL) | (1 << dev); in pata_bk3710_setudmamode() 98 iowrite16(val16, base + BK3710_UDMACTL); in pata_bk3710_setudmamode() 108 u16 val16; in pata_bk3710_setmwdmamode() local 129 val16 = ioread16(base + BK3710_UDMACTL) & ~(1 << dev); in pata_bk3710_setmwdmamode() 130 iowrite16(val16, base + BK3710_UDMACTL); in pata_bk3710_setmwdmamode()
|
/kernel/linux/linux-5.10/drivers/staging/iio/accel/ |
D | adis16240.c | 252 s16 val16; in adis16240_read_raw() local 288 ret = adis_read_reg_16(st, addr, &val16); in adis16240_read_raw() 291 *val = sign_extend32(val16, 9); in adis16240_read_raw() 295 ret = adis_read_reg_16(st, addr, &val16); in adis16240_read_raw() 298 *val = sign_extend32(val16, 9); in adis16240_read_raw()
|
D | adis16203.c | 171 s16 val16; in adis16203_read_raw() local 204 ret = adis_read_reg_16(st, addr, &val16); in adis16203_read_raw() 207 *val = sign_extend32(val16, 13); in adis16203_read_raw()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8712/ |
D | ieee80211.c | 210 u16 val16; in r8712_get_wpa_ie() local 222 memcpy((u8 *)&val16, (buf + 6), sizeof(val16)); in r8712_get_wpa_ie() 223 le16_to_cpus(&val16); in r8712_get_wpa_ie() 224 if (val16 != 0x0001) in r8712_get_wpa_ie()
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | xt_l2tp.c | 45 __be16 val16[2]; member 99 flags = ntohs(lh->val16[0]); in l2tp_udp_mt() 126 data.tid = (u32) ntohs(lh->val16[0]); in l2tp_udp_mt() 127 data.sid = (u32) ntohs(lh->val16[1]); in l2tp_udp_mt()
|
/kernel/linux/linux-5.10/drivers/char/ |
D | sonypi.c | 943 u16 val16; in sonypi_misc_ioctl() local 964 if (ec_read16(SONYPI_BAT1_FULL, &val16)) { in sonypi_misc_ioctl() 968 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl() 972 if (ec_read16(SONYPI_BAT1_LEFT, &val16)) { in sonypi_misc_ioctl() 976 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl() 980 if (ec_read16(SONYPI_BAT2_FULL, &val16)) { in sonypi_misc_ioctl() 984 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl() 988 if (ec_read16(SONYPI_BAT2_LEFT, &val16)) { in sonypi_misc_ioctl() 992 if (copy_to_user(argp, &val16, sizeof(val16))) in sonypi_misc_ioctl()
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
D | i5k_amb.c | 455 u16 val16; in i5k_channel_probe() local 463 pci_read_config_word(pcidev, I5K_REG_CHAN0_PRESENCE_ADDR, &val16); in i5k_channel_probe() 464 if (val16 == (u16)~0) in i5k_channel_probe() 466 amb_present[0] = val16; in i5k_channel_probe() 468 pci_read_config_word(pcidev, I5K_REG_CHAN1_PRESENCE_ADDR, &val16); in i5k_channel_probe() 469 if (val16 == (u16)~0) in i5k_channel_probe() 471 amb_present[1] = val16; in i5k_channel_probe()
|
/kernel/linux/linux-5.10/drivers/iio/accel/ |
D | adis16201.c | 109 s16 val16; in adis16201_read_raw() local 169 ret = adis_read_reg_16(st, addr, &val16); in adis16201_read_raw() 173 *val = sign_extend32(val16, bits - 1); in adis16201_read_raw()
|
D | adis16209.c | 141 s16 val16; in adis16209_read_raw() local 205 ret = adis_read_reg_16(st, addr, &val16); in adis16209_read_raw() 209 *val = sign_extend32(val16, bits - 1); in adis16209_read_raw()
|
/kernel/linux/linux-5.10/drivers/regulator/ |
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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_format_helper.c | 142 u16 val16; in drm_fb_xrgb8888_to_rgb565_line() local 145 val16 = ((sbuf[x] & 0x00F80000) >> 8) | in drm_fb_xrgb8888_to_rgb565_line() 149 dbuf[x] = swab16(val16); in drm_fb_xrgb8888_to_rgb565_line() 151 dbuf[x] = val16; in drm_fb_xrgb8888_to_rgb565_line()
|
/kernel/linux/linux-5.10/drivers/misc/cxl/ |
D | vphb.c | 122 u16 val16; in cxl_pcie_read_config() local 140 rc = cxl_ops->afu_cr_read16(afu, record, offset, &val16); in cxl_pcie_read_config() 141 *val = val16; in cxl_pcie_read_config()
|