/Linux-v4.19/drivers/net/usb/ |
D | ax88179_178a.c | 385 u16 tmp16; in ax88179_phy_mmd_indirect() local 388 tmp16 = devad; in ax88179_phy_mmd_indirect() 390 MII_MMD_CTRL, 2, &tmp16); in ax88179_phy_mmd_indirect() 392 tmp16 = prtad; in ax88179_phy_mmd_indirect() 394 MII_MMD_DATA, 2, &tmp16); in ax88179_phy_mmd_indirect() 396 tmp16 = devad | MII_MMD_CTRL_NOINCR; in ax88179_phy_mmd_indirect() 398 MII_MMD_CTRL, 2, &tmp16); in ax88179_phy_mmd_indirect() 407 u16 tmp16; in ax88179_phy_read_mmd_indirect() local 412 MII_MMD_DATA, 2, &tmp16); in ax88179_phy_read_mmd_indirect() 416 return tmp16; in ax88179_phy_read_mmd_indirect() [all …]
|
/Linux-v4.19/drivers/staging/rtl8712/ |
D | hal_init.c | 155 u16 tmp16; in rtl8712_dl_fw() local 206 tmp16 = r8712_read16(padapter, TCR); in rtl8712_dl_fw() 207 while (((tmp16 & _IMEM_CODE_DONE) == 0) && (i > 0)) { in rtl8712_dl_fw() 209 tmp16 = r8712_read16(padapter, TCR); in rtl8712_dl_fw() 212 if (i == 0 || (tmp16 & _IMEM_CHK_RPT) == 0) in rtl8712_dl_fw() 235 tmp16 = r8712_read16(padapter, TCR); in rtl8712_dl_fw() 236 while (((tmp16 & _EMEM_CODE_DONE) == 0) && (i > 0)) { in rtl8712_dl_fw() 238 tmp16 = r8712_read16(padapter, TCR); in rtl8712_dl_fw() 241 if (i == 0 || (tmp16 & _EMEM_CHK_RPT) == 0) in rtl8712_dl_fw() 261 tmp16 = r8712_read16(padapter, TCR); in rtl8712_dl_fw() [all …]
|
/Linux-v4.19/drivers/ata/ |
D | pata_atiixp.c | 217 u16 tmp16; in atiixp_bmdma_start() local 219 pci_read_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, &tmp16); in atiixp_bmdma_start() 221 tmp16 |= (1 << dn); in atiixp_bmdma_start() 223 tmp16 &= ~(1 << dn); in atiixp_bmdma_start() 224 pci_write_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, tmp16); in atiixp_bmdma_start() 244 u16 tmp16; in atiixp_bmdma_stop() local 246 pci_read_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, &tmp16); in atiixp_bmdma_stop() 247 tmp16 &= ~(1 << dn); in atiixp_bmdma_stop() 248 pci_write_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, tmp16); in atiixp_bmdma_stop()
|
D | ahci.c | 653 u16 tmp16; in ahci_pci_reset_controller() local 656 pci_read_config_word(pdev, 0x92, &tmp16); in ahci_pci_reset_controller() 657 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_pci_reset_controller() 658 tmp16 |= hpriv->port_map; in ahci_pci_reset_controller() 659 pci_write_config_word(pdev, 0x92, tmp16); in ahci_pci_reset_controller()
|
/Linux-v4.19/arch/sparc/kernel/ |
D | pci_common.c | 57 u16 tmp16; in sun4u_read_pci_cfg_host() local 70 pci_config_read16((u16 *)align, &tmp16); in sun4u_read_pci_cfg_host() 72 *value = tmp16 >> 8; in sun4u_read_pci_cfg_host() 74 *value = tmp16 & 0xff; in sun4u_read_pci_cfg_host() 83 pci_config_read16((u16 *)addr, &tmp16); in sun4u_read_pci_cfg_host() 84 *value = (u32) tmp16; in sun4u_read_pci_cfg_host() 114 u16 tmp16; in sun4u_read_pci_cfg() local 149 pci_config_read16((u16 *)addr, &tmp16); in sun4u_read_pci_cfg() 150 *value = (u32) tmp16; in sun4u_read_pci_cfg() 179 u16 tmp16; in sun4u_write_pci_cfg_host() local [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | cik.c | 1383 u16 tmp16; in cik_pcie_gen3_enable() local 1433 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable() 1434 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 1436 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable() 1437 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 1461 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_DEVSTA, &tmp16); in cik_pcie_gen3_enable() 1462 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in cik_pcie_gen3_enable() 1482 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable() 1483 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable() 1484 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in cik_pcie_gen3_enable() [all …]
|
D | si.c | 1564 u16 tmp16; in si_pcie_gen3_enable() local 1613 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable() 1614 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 1616 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable() 1617 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 1634 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_DEVSTA, &tmp16); in si_pcie_gen3_enable() 1635 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in si_pcie_gen3_enable() 1654 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in si_pcie_gen3_enable() 1655 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable() 1656 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in si_pcie_gen3_enable() [all …]
|
/Linux-v4.19/drivers/ide/ |
D | atiixp.c | 91 u16 tmp16; in atiixp_set_dma_mode() local 100 pci_read_config_word(dev, ATIIXP_IDE_UDMA_MODE, &tmp16); in atiixp_set_dma_mode() 101 tmp16 &= ~(0x07 << (drive->dn * 4)); in atiixp_set_dma_mode() 102 tmp16 |= ((speed & 0x07) << (drive->dn * 4)); in atiixp_set_dma_mode() 103 pci_write_config_word(dev, ATIIXP_IDE_UDMA_MODE, tmp16); in atiixp_set_dma_mode()
|
/Linux-v4.19/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 353 __le16 tmp16; in pcan_usb_update_ts() local 358 memcpy(&tmp16, mc->ptr, 2); in pcan_usb_update_ts() 360 mc->ts16 = le16_to_cpu(tmp16); in pcan_usb_update_ts() 377 __le16 tmp16; in pcan_usb_decode_ts() local 382 memcpy(&tmp16, mc->ptr, 2); in pcan_usb_decode_ts() 385 mc->ts16 = le16_to_cpu(tmp16); in pcan_usb_decode_ts() 630 __le16 tmp16; in pcan_usb_decode_data() local 635 memcpy(&tmp16, mc->ptr, 2); in pcan_usb_decode_data() 638 cf->can_id = le16_to_cpu(tmp16) >> 5; in pcan_usb_decode_data() 755 __le16 tmp16 = cpu_to_le16((cf->can_id & CAN_ERR_MASK) << 5); in pcan_usb_encode_msg() local [all …]
|
D | pcan_usb_core.c | 746 u16 tmp16; in peak_usb_create_dev() local 813 tmp16 = le16_to_cpu(usb_dev->descriptor.bcdDevice); in peak_usb_create_dev() 814 dev->device_rev = tmp16 >> 8; in peak_usb_create_dev()
|
/Linux-v4.19/drivers/staging/comedi/drivers/ |
D | dt9812.c | 687 __le16 tmp16; in dt9812_reset_device() local 711 ret = dt9812_read_info(dev, 1, &tmp16, sizeof(tmp16)); in dt9812_reset_device() 716 vendor = le16_to_cpu(tmp16); in dt9812_reset_device() 718 ret = dt9812_read_info(dev, 3, &tmp16, sizeof(tmp16)); in dt9812_reset_device() 723 product = le16_to_cpu(tmp16); in dt9812_reset_device() 725 ret = dt9812_read_info(dev, 5, &tmp16, sizeof(tmp16)); in dt9812_reset_device() 730 devpriv->device = le16_to_cpu(tmp16); in dt9812_reset_device()
|
/Linux-v4.19/arch/mips/sgi-ip22/ |
D | ip22-gio.c | 270 u8 tmp16; in ip22_gio_id() local 298 get_dbe(tmp16, ptr16); in ip22_gio_id() 299 if (tmp8 == (tmp16 & 0xff) && in ip22_gio_id() 301 tmp16 == (tmp32 & 0xffff)) { in ip22_gio_id()
|
/Linux-v4.19/net/caif/ |
D | cfctrl.c | 205 u16 tmp16; in cfctrl_linkup_request() local 256 tmp16 = cpu_to_le16(param->u.utility.fifosize_kb); in cfctrl_linkup_request() 257 cfpkt_add_body(pkt, &tmp16, 2); in cfctrl_linkup_request() 258 tmp16 = cpu_to_le16(param->u.utility.fifosize_bufs); in cfctrl_linkup_request() 259 cfpkt_add_body(pkt, &tmp16, 2); in cfctrl_linkup_request()
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | hw.c | 1091 u16 tmp16 = 0; in _rtl8723be_enable_aspm_back_door() local 1097 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x01); in _rtl8723be_enable_aspm_back_door() 1098 if (tmp16 != 0x0663) in _rtl8723be_enable_aspm_back_door() 1101 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x04); in _rtl8723be_enable_aspm_back_door() 1102 if (tmp16 != 0x7544) in _rtl8723be_enable_aspm_back_door() 1105 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x06); in _rtl8723be_enable_aspm_back_door() 1106 if (tmp16 != 0xB880) in _rtl8723be_enable_aspm_back_door() 1109 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x07); in _rtl8723be_enable_aspm_back_door() 1110 if (tmp16 != 0x4000) in _rtl8723be_enable_aspm_back_door() 1113 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x08); in _rtl8723be_enable_aspm_back_door() [all …]
|
/Linux-v4.19/drivers/net/ethernet/cirrus/ |
D | cs89x0.c | 202 u16 tmp16; in readwords() local 204 tmp16 = ioread16(lp->virt_addr + portno); in readwords() 205 *buf8++ = (u8)tmp16; in readwords() 206 *buf8++ = (u8)(tmp16 >> 8); in readwords() 215 u16 tmp16; in writewords() local 217 tmp16 = *buf8++; in writewords() 218 tmp16 |= (*buf8++) << 8; in writewords() 219 iowrite16(tmp16, lp->virt_addr + portno); in writewords()
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | si.c | 7089 u16 tmp16; in si_pcie_gen3_enable() local 7146 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable() 7147 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 7149 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable() 7150 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 7168 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_DEVSTA, &tmp16); in si_pcie_gen3_enable() 7169 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in si_pcie_gen3_enable() 7189 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in si_pcie_gen3_enable() 7190 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable() 7191 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in si_pcie_gen3_enable() [all …]
|
D | cik.c | 9506 u16 tmp16; in cik_pcie_gen3_enable() local 9563 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable() 9564 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 9566 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable() 9567 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 9585 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_DEVSTA, &tmp16); in cik_pcie_gen3_enable() 9586 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in cik_pcie_gen3_enable() 9606 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable() 9607 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable() 9608 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in cik_pcie_gen3_enable() [all …]
|
/Linux-v4.19/drivers/net/ethernet/dec/tulip/ |
D | xircom_cb.c | 197 unsigned short tmp16; in xircom_probe() local 212 pci_read_config_word (pdev,PCI_STATUS, &tmp16); in xircom_probe() 213 pci_write_config_word (pdev, PCI_STATUS,tmp16); in xircom_probe()
|
/Linux-v4.19/drivers/staging/rtlwifi/rtl8822be/ |
D | trx.c | 933 u16 tmp16; in rtl8822be_is_tx_desc_closed() local 942 tmp16 = rtl_read_word( in rtl8822be_is_tx_desc_closed() 946 cur_tx_rp = tmp16 & 0x01ff; in rtl8822be_is_tx_desc_closed()
|
/Linux-v4.19/drivers/net/wireless/broadcom/b43legacy/ |
D | radio.c | 824 s16 tmp16; in b43legacy_calc_nrssi_threshold() local 863 tmp16 = b43legacy_nrssi_hw_read(dev, 0x20); in b43legacy_calc_nrssi_threshold() 864 if (tmp16 >= 0x20) in b43legacy_calc_nrssi_threshold() 865 tmp16 -= 0x40; in b43legacy_calc_nrssi_threshold() 866 if (tmp16 < 3) in b43legacy_calc_nrssi_threshold()
|
/Linux-v4.19/drivers/atm/ |
D | iphase.c | 1911 u_short tmp16; local 2059 tmp16 = (iadev->seg_ram+CBR_SCHED_TABLE*iadev->memSize)>>17; 2060 IF_INIT(printk("cbr_ptr_base = 0x%x ", tmp16);) 2061 writew(tmp16,iadev->seg_reg+CBR_PTR_BASE); 2066 tmp16 = (CBR_SCHED_TABLE*iadev->memSize) >> 1; 2067 writew(tmp16, iadev->seg_reg+CBR_TAB_BEG); 2068 IF_INIT(printk("cbr_tab_beg = 0x%x in reg = 0x%x \n", tmp16, 2070 writew(tmp16, iadev->seg_reg+CBR_TAB_END+1); // CBR_PTR; 2071 tmp16 = (CBR_SCHED_TABLE*iadev->memSize + iadev->num_vc*6 - 2) >> 1; 2072 writew(tmp16, iadev->seg_reg+CBR_TAB_END);
|
/Linux-v4.19/drivers/media/usb/dvb-usb-v2/ |
D | af9035.c | 840 u16 tmp16; in af9035_read_config() local 970 tmp16 = tmp << 0; in af9035_read_config() 972 tmp16 |= tmp << 8; in af9035_read_config() 973 dev_dbg(&intf->dev, "[%d]IF=%d\n", i, tmp16); in af9035_read_config()
|
/Linux-v4.19/drivers/net/wireless/broadcom/b43/ |
D | phy_n.c | 3185 u16 tmp16; in b43_nphy_workarounds_rev3plus() local 3224 tmp16 = (b43_current_band(dev->wl) == NL80211_BAND_2GHZ) ? in b43_nphy_workarounds_rev3plus() 3226 b43_phy_write(dev, B43_NPHY_ENDROP_TLEN, tmp16); in b43_nphy_workarounds_rev3plus() 3283 tmp16 = 0x96; in b43_nphy_workarounds_rev3plus() 3287 tmp16 = 0x89; in b43_nphy_workarounds_rev3plus() 3293 tmp16 = 0x8b; in b43_nphy_workarounds_rev3plus() 3297 tmp16 = 0x70; in b43_nphy_workarounds_rev3plus() 3303 vmid[3] = tmp16; in b43_nphy_workarounds_rev3plus() 6292 u16 tmp16; in b43_nphy_channel_setup() local 6298 tmp16 = b43_read16(dev, B43_MMIO_PSM_PHY_HDR); in b43_nphy_channel_setup() [all …]
|
D | phy_g.c | 716 s16 tmp16; in b43_calc_nrssi_threshold() local 723 tmp16 = b43_nrssi_hw_read(dev, 0x20); in b43_calc_nrssi_threshold() 724 if (tmp16 >= 0x20) in b43_calc_nrssi_threshold() 725 tmp16 -= 0x40; in b43_calc_nrssi_threshold() 726 if (tmp16 < 3) { in b43_calc_nrssi_threshold()
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | hw.c | 1503 u16 count = 0, tmp16; in _rtl8821ae_dynamic_rqpn() local 1519 tmp16 = rtl_read_word(rtlpriv, REG_TXPKT_EMPTY); in _rtl8821ae_dynamic_rqpn() 1520 while ((tmp16 & 0x07FF) != 0x07FF) { in _rtl8821ae_dynamic_rqpn() 1522 tmp16 = rtl_read_word(rtlpriv, REG_TXPKT_EMPTY); in _rtl8821ae_dynamic_rqpn()
|