/Linux-v6.6/drivers/net/wireless/realtek/rtl8xxxu/ |
D | rtl8xxxu_8192c.c | 484 u16 val16; in rtl8192cu_power_on() local 522 val16 = rtl8xxxu_read16(priv, REG_APS_FSMCO); in rtl8192cu_power_on() 523 val16 |= APS_FSMCO_MAC_ENABLE; in rtl8192cu_power_on() 524 rtl8xxxu_write16(priv, REG_APS_FSMCO, val16); in rtl8192cu_power_on() 527 val16 = rtl8xxxu_read16(priv, REG_APS_FSMCO); in rtl8192cu_power_on() 528 if (!(val16 & APS_FSMCO_MAC_ENABLE)) in rtl8192cu_power_on() 539 val16 = APS_FSMCO_HW_SUSPEND | APS_FSMCO_ENABLE_POWERDOWN | in rtl8192cu_power_on() 541 rtl8xxxu_write16(priv, REG_APS_FSMCO, val16); in rtl8192cu_power_on() 546 val16 = rtl8xxxu_read16(priv, REG_SYS_ISO_CTRL); in rtl8192cu_power_on() 547 val16 &= ~SYS_ISO_DIOR; in rtl8192cu_power_on() [all …]
|
D | rtl8xxxu_8188e.c | 601 u16 val16; in rtl8188eu_init_phy_bb() local 603 val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); in rtl8188eu_init_phy_bb() 604 val16 |= SYS_FUNC_BB_GLB_RSTN | SYS_FUNC_BBRSTB | SYS_FUNC_DIO_RF; in rtl8188eu_init_phy_bb() 605 rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); in rtl8188eu_init_phy_bb() 1011 u16 val16; in rtl8188e_disabled_to_emu() local 1013 val16 = rtl8xxxu_read16(priv, REG_APS_FSMCO); in rtl8188e_disabled_to_emu() 1014 val16 &= ~(APS_FSMCO_HW_SUSPEND | APS_FSMCO_PCIE); in rtl8188e_disabled_to_emu() 1015 rtl8xxxu_write16(priv, REG_APS_FSMCO, val16); in rtl8188e_disabled_to_emu() 1022 u16 val16; in rtl8188e_emu_to_active() local 1050 val16 = rtl8xxxu_read16(priv, REG_APS_FSMCO); in rtl8188e_emu_to_active() [all …]
|
D | rtl8xxxu_8192e.c | 671 u16 val16; in rtl8192eu_init_phy_bb() local 673 val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); in rtl8192eu_init_phy_bb() 674 val16 |= SYS_FUNC_BB_GLB_RSTN | SYS_FUNC_BBRSTB | SYS_FUNC_DIO_RF; in rtl8192eu_init_phy_bb() 675 rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); in rtl8192eu_init_phy_bb() 681 val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); in rtl8192eu_init_phy_bb() 682 val16 |= (SYS_FUNC_USBA | SYS_FUNC_USBD | SYS_FUNC_DIO_RF | in rtl8192eu_init_phy_bb() 684 rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); in rtl8192eu_init_phy_bb() 1457 u16 val16; in rtl8192eu_active_to_lps() local 1495 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8192eu_active_to_lps() 1496 val16 &= 0xff00; in rtl8192eu_active_to_lps() [all …]
|
D | rtl8xxxu_8188f.c | 755 u16 val16; in rtl8188fu_init_phy_bb() local 758 val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); in rtl8188fu_init_phy_bb() 759 val16 |= SYS_FUNC_BB_GLB_RSTN | SYS_FUNC_BBRSTB | SYS_FUNC_DIO_RF; in rtl8188fu_init_phy_bb() 760 rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); in rtl8188fu_init_phy_bb() 1456 u16 val16; in rtl8188fu_active_to_lps() local 1501 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8188fu_active_to_lps() 1502 val16 |= 0x3f; in rtl8188fu_active_to_lps() 1503 val16 &= ~(CR_MAC_TX_ENABLE | CR_MAC_RX_ENABLE | CR_SECURITY_ENABLE); in rtl8188fu_active_to_lps() 1504 rtl8xxxu_write16(priv, REG_CR, val16); in rtl8188fu_active_to_lps() 1517 u16 val16; in rtl8188fu_power_on() local [all …]
|
D | rtl8xxxu_8723b.c | 517 u16 val16; in rtl8723bu_init_phy_bb() local 519 val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC); in rtl8723bu_init_phy_bb() 520 val16 |= SYS_FUNC_BB_GLB_RSTN | SYS_FUNC_BBRSTB | SYS_FUNC_DIO_RF; in rtl8723bu_init_phy_bb() 521 rtl8xxxu_write16(priv, REG_SYS_FUNC, val16); in rtl8723bu_init_phy_bb() 1245 u16 val16; in rtl8723bu_active_to_emu() local 1253 val16 = rtl8xxxu_read16(priv, REG_GPIO_INTM); in rtl8723bu_active_to_emu() 1254 val16 &= ~GPIO_INTM_EDGE_TRIG_IRQ; in rtl8723bu_active_to_emu() 1255 rtl8xxxu_write16(priv, REG_GPIO_INTM, val16); in rtl8723bu_active_to_emu() 1424 u16 val16; in rtl8723bu_power_on() local 1438 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8723bu_power_on() [all …]
|
D | rtl8xxxu_8710b.c | 701 u16 val16; in rtl8710bu_config_channel() local 723 val16 = rtl8xxxu_read16(priv, REG_WMAC_TRXPTCL_CTL); in rtl8710bu_config_channel() 724 val16 &= ~WMAC_TRXPTCL_CTL_BW_MASK; in rtl8710bu_config_channel() 726 val16 |= WMAC_TRXPTCL_CTL_BW_40; in rtl8710bu_config_channel() 727 rtl8xxxu_write16(priv, REG_WMAC_TRXPTCL_CTL, val16); in rtl8710bu_config_channel() 1571 u16 val16; in rtl8710bu_active_to_lps() local 1611 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8710bu_active_to_lps() 1612 val16 &= 0xff00; in rtl8710bu_active_to_lps() 1613 val16 |= CR_HCI_RXDMA_ENABLE | CR_HCI_TXDMA_ENABLE; in rtl8710bu_active_to_lps() 1614 val16 &= ~CR_SECURITY_ENABLE; in rtl8710bu_active_to_lps() [all …]
|
D | rtl8xxxu_8192f.c | 1621 u16 val16; in rtl8192fu_emu_to_active() local 1635 val16 = APS_FSMCO_PCIE | APS_FSMCO_HW_SUSPEND | APS_FSMCO_SW_LPS; in rtl8192fu_emu_to_active() 1636 rtl8xxxu_write16_clear(priv, REG_APS_FSMCO, val16); in rtl8192fu_emu_to_active() 1783 u16 val16; in rtl8192fu_emu_to_disabled() local 1789 val16 = rtl8xxxu_read16(priv, REG_APS_FSMCO); in rtl8192fu_emu_to_disabled() 1790 val16 &= ~APS_FSMCO_PCIE; in rtl8192fu_emu_to_disabled() 1791 val16 |= APS_FSMCO_HW_SUSPEND; in rtl8192fu_emu_to_disabled() 1792 rtl8xxxu_write16(priv, REG_APS_FSMCO, val16); in rtl8192fu_emu_to_disabled() 1803 u16 val16; in rtl8192fu_active_to_lps() local 1835 val16 = rtl8xxxu_read16(priv, REG_CR); in rtl8192fu_active_to_lps() [all …]
|
D | rtl8xxxu_core.c | 689 addr, 0, &priv->usb_buf.val16, sizeof(u16), in rtl8xxxu_read16() 691 data = le16_to_cpu(priv->usb_buf.val16); in rtl8xxxu_read16() 755 priv->usb_buf.val16 = cpu_to_le16(val); in rtl8xxxu_write16() 758 addr, 0, &priv->usb_buf.val16, sizeof(u16), in rtl8xxxu_write16() 810 u16 val16; in rtl8xxxu_write16_set() local 812 val16 = rtl8xxxu_read16(priv, addr); in rtl8xxxu_write16_set() 813 val16 |= bits; in rtl8xxxu_write16_set() 814 return rtl8xxxu_write16(priv, addr, val16); in rtl8xxxu_write16_set() 819 u16 val16; in rtl8xxxu_write16_clear() local 821 val16 = rtl8xxxu_read16(priv, addr); in rtl8xxxu_write16_clear() [all …]
|
/Linux-v6.6/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 …]
|
/Linux-v6.6/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()
|
/Linux-v6.6/drivers/iio/gyro/ |
D | adis16260.c | 196 s16 val16; in adis16260_read_raw() local 233 ret = adis_read_reg_16(adis, addr, &val16); in adis16260_read_raw() 237 *val = sign_extend32(val16, 11); in adis16260_read_raw() 241 ret = adis_read_reg_16(adis, addr, &val16); in adis16260_read_raw() 245 *val = val16; in adis16260_read_raw() 248 ret = adis_read_reg_16(adis, ADIS16260_SMPL_PRD, &val16); in adis16260_read_raw() 254 *val = (val16 & ADIS16260_SMPL_PRD_TIME_BASE) ? in adis16260_read_raw() 257 *val = (val16 & ADIS16260_SMPL_PRD_TIME_BASE) ? in adis16260_read_raw() 259 *val /= (val16 & ADIS16260_SMPL_PRD_DIV_MASK) + 1; in adis16260_read_raw()
|
/Linux-v6.6/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()
|
/Linux-v6.6/drivers/watchdog/ |
D | iTCO_wdt.c | 351 unsigned int val16; in iTCO_wdt_set_timeout() local 372 val16 = inw(TCOv2_TMR(p)); in iTCO_wdt_set_timeout() 373 val16 &= 0xfc00; in iTCO_wdt_set_timeout() 374 val16 |= tmrval; in iTCO_wdt_set_timeout() 375 outw(val16, TCOv2_TMR(p)); in iTCO_wdt_set_timeout() 376 val16 = inw(TCOv2_TMR(p)); in iTCO_wdt_set_timeout() 379 if ((val16 & 0x3ff) != tmrval) in iTCO_wdt_set_timeout() 401 unsigned int val16; in iTCO_wdt_get_timeleft() local 408 val16 = inw(TCO_RLD(p)); in iTCO_wdt_get_timeleft() 409 val16 &= 0x3ff; in iTCO_wdt_get_timeleft() [all …]
|
/Linux-v6.6/drivers/gpu/drm/ |
D | drm_format_helper.c | 328 u16 val16; in drm_fb_xrgb8888_to_rgb565_line() local 333 val16 = ((pix & 0x00F80000) >> 8) | in drm_fb_xrgb8888_to_rgb565_line() 336 dbuf16[x] = cpu_to_le16(val16); in drm_fb_xrgb8888_to_rgb565_line() 347 u16 val16; in drm_fb_xrgb8888_to_rgb565_swab_line() local 352 val16 = ((pix & 0x00F80000) >> 8) | in drm_fb_xrgb8888_to_rgb565_swab_line() 355 dbuf16[x] = cpu_to_le16(swab16(val16)); in drm_fb_xrgb8888_to_rgb565_swab_line() 404 u16 val16; in drm_fb_xrgb8888_to_xrgb1555_line() local 409 val16 = ((pix & 0x00f80000) >> 9) | in drm_fb_xrgb8888_to_xrgb1555_line() 412 dbuf16[x] = cpu_to_le16(val16); in drm_fb_xrgb8888_to_xrgb1555_line() 455 u16 val16; in drm_fb_xrgb8888_to_argb1555_line() local [all …]
|
/Linux-v6.6/drivers/staging/iio/accel/ |
D | adis16240.c | 246 s16 val16; in adis16240_read_raw() local 282 ret = adis_read_reg_16(st, addr, &val16); in adis16240_read_raw() 285 *val = sign_extend32(val16, 9); in adis16240_read_raw() 289 ret = adis_read_reg_16(st, addr, &val16); in adis16240_read_raw() 292 *val = sign_extend32(val16, 9); in adis16240_read_raw()
|
D | adis16203.c | 165 s16 val16; in adis16203_read_raw() local 198 ret = adis_read_reg_16(st, addr, &val16); in adis16203_read_raw() 201 *val = sign_extend32(val16, 13); in adis16203_read_raw()
|
/Linux-v6.6/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()
|
/Linux-v6.6/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()
|
/Linux-v6.6/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()
|
/Linux-v6.6/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()
|
/Linux-v6.6/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()
|
/Linux-v6.6/drivers/iio/accel/ |
D | adis16201.c | 106 s16 val16; in adis16201_read_raw() local 166 ret = adis_read_reg_16(st, addr, &val16); in adis16201_read_raw() 170 *val = sign_extend32(val16, bits - 1); in adis16201_read_raw()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
D | vlan_mangle.c | 18 u16 val16 = act->vlan.vid & VLAN_VID_MASK; in mlx5e_tc_act_vlan_add_rewrite_action() local 24 .mangle.val = (u32)be16_to_cpu(*(__be16 *)&val16), in mlx5e_tc_act_vlan_add_rewrite_action()
|