Home
last modified time | relevance | path

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

/drivers/net/usb/
Dax88179_178a.c354 u16 tmp16; in ax88179_phy_mmd_indirect() local
357 tmp16 = devad; in ax88179_phy_mmd_indirect()
359 MII_MMD_CTRL, 2, &tmp16); in ax88179_phy_mmd_indirect()
361 tmp16 = prtad; in ax88179_phy_mmd_indirect()
363 MII_MMD_DATA, 2, &tmp16); in ax88179_phy_mmd_indirect()
365 tmp16 = devad | MII_MMD_CTRL_NOINCR; in ax88179_phy_mmd_indirect()
367 MII_MMD_CTRL, 2, &tmp16); in ax88179_phy_mmd_indirect()
376 u16 tmp16; in ax88179_phy_read_mmd_indirect() local
381 MII_MMD_DATA, 2, &tmp16); in ax88179_phy_read_mmd_indirect()
385 return tmp16; in ax88179_phy_read_mmd_indirect()
[all …]
/drivers/staging/rtl8712/
Dhal_init.c159 u16 tmp16; in rtl8712_dl_fw() local
210 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
211 while (((tmp16 & _IMEM_CODE_DONE) == 0) && (i > 0)) { in rtl8712_dl_fw()
213 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
216 if (i == 0 || (tmp16 & _IMEM_CHK_RPT) == 0) in rtl8712_dl_fw()
239 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
240 while (((tmp16 & _EMEM_CODE_DONE) == 0) && (i > 0)) { in rtl8712_dl_fw()
242 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
245 if (i == 0 || (tmp16 & _EMEM_CHK_RPT) == 0) in rtl8712_dl_fw()
265 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
[all …]
/drivers/ata/
Dpata_atiixp.c219 u16 tmp16; in atiixp_bmdma_start() local
221 pci_read_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, &tmp16); in atiixp_bmdma_start()
223 tmp16 |= (1 << dn); in atiixp_bmdma_start()
225 tmp16 &= ~(1 << dn); in atiixp_bmdma_start()
226 pci_write_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, tmp16); in atiixp_bmdma_start()
246 u16 tmp16; in atiixp_bmdma_stop() local
248 pci_read_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, &tmp16); in atiixp_bmdma_stop()
249 tmp16 &= ~(1 << dn); in atiixp_bmdma_stop()
250 pci_write_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, tmp16); in atiixp_bmdma_stop()
Dahci.c1676 u16 tmp16; in ahci_intel_pcs_quirk() local
1696 pci_read_config_word(pdev, PCS_6, &tmp16); in ahci_intel_pcs_quirk()
1697 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_intel_pcs_quirk()
1698 tmp16 |= hpriv->port_map; in ahci_intel_pcs_quirk()
1699 pci_write_config_word(pdev, PCS_6, tmp16); in ahci_intel_pcs_quirk()
Dlibata-core.c6150 u16 tmp16 = 0; in pci_test_config_bits() local
6151 pci_read_config_word(pdev, bits->reg, &tmp16); in pci_test_config_bits()
6152 tmp = tmp16; in pci_test_config_bits()
/drivers/comedi/drivers/
Ddt9812.c743 __le16 tmp16; in dt9812_reset_device() local
767 ret = dt9812_read_info(dev, 1, &tmp16, sizeof(tmp16)); in dt9812_reset_device()
772 vendor = le16_to_cpu(tmp16); in dt9812_reset_device()
774 ret = dt9812_read_info(dev, 3, &tmp16, sizeof(tmp16)); in dt9812_reset_device()
779 product = le16_to_cpu(tmp16); in dt9812_reset_device()
781 ret = dt9812_read_info(dev, 5, &tmp16, sizeof(tmp16)); in dt9812_reset_device()
786 devpriv->device = le16_to_cpu(tmp16); in dt9812_reset_device()
/drivers/gpu/drm/amd/amdgpu/
Dcik.c1535 u16 tmp16; in cik_pcie_gen3_enable() local
1604 &tmp16); in cik_pcie_gen3_enable()
1605 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in cik_pcie_gen3_enable()
1642 &tmp16); in cik_pcie_gen3_enable()
1643 tmp16 &= ~(PCI_EXP_LNKCTL2_ENTER_COMP | in cik_pcie_gen3_enable()
1645 tmp16 |= (bridge_cfg2 & in cik_pcie_gen3_enable()
1650 tmp16); in cik_pcie_gen3_enable()
1654 &tmp16); in cik_pcie_gen3_enable()
1655 tmp16 &= ~(PCI_EXP_LNKCTL2_ENTER_COMP | in cik_pcie_gen3_enable()
1657 tmp16 |= (gpu_cfg2 & in cik_pcie_gen3_enable()
[all …]
Dsi.c2238 u16 tmp16; in si_pcie_gen3_enable() local
2299 &tmp16); in si_pcie_gen3_enable()
2300 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in si_pcie_gen3_enable()
2335 &tmp16); in si_pcie_gen3_enable()
2336 tmp16 &= ~(PCI_EXP_LNKCTL2_ENTER_COMP | in si_pcie_gen3_enable()
2338 tmp16 |= (bridge_cfg2 & in si_pcie_gen3_enable()
2343 tmp16); in si_pcie_gen3_enable()
2347 &tmp16); in si_pcie_gen3_enable()
2348 tmp16 &= ~(PCI_EXP_LNKCTL2_ENTER_COMP | in si_pcie_gen3_enable()
2350 tmp16 |= (gpu_cfg2 & in si_pcie_gen3_enable()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dhw.c1072 u16 tmp16 = 0; in _rtl8723be_enable_aspm_back_door() local
1078 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x01); in _rtl8723be_enable_aspm_back_door()
1079 if (tmp16 != 0x0663) in _rtl8723be_enable_aspm_back_door()
1082 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x04); in _rtl8723be_enable_aspm_back_door()
1083 if (tmp16 != 0x7544) in _rtl8723be_enable_aspm_back_door()
1086 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x06); in _rtl8723be_enable_aspm_back_door()
1087 if (tmp16 != 0xB880) in _rtl8723be_enable_aspm_back_door()
1090 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x07); in _rtl8723be_enable_aspm_back_door()
1091 if (tmp16 != 0x4000) in _rtl8723be_enable_aspm_back_door()
1094 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x08); in _rtl8723be_enable_aspm_back_door()
[all …]
/drivers/net/ethernet/cirrus/
Dcs89x0.c202 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()
/drivers/net/can/usb/peak_usb/
Dpcan_usb_core.c838 u16 tmp16; in peak_usb_create_dev() local
908 tmp16 = le16_to_cpu(usb_dev->descriptor.bcdDevice); in peak_usb_create_dev()
909 dev->device_rev = tmp16 >> 8; in peak_usb_create_dev()
/drivers/gpu/drm/radeon/
Dsi.c7089 u16 tmp16; in si_pcie_gen3_enable() local
7159 &tmp16); in si_pcie_gen3_enable()
7160 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in si_pcie_gen3_enable()
7197 &tmp16); in si_pcie_gen3_enable()
7198 tmp16 &= ~(PCI_EXP_LNKCTL2_ENTER_COMP | in si_pcie_gen3_enable()
7200 tmp16 |= (bridge_cfg2 & in si_pcie_gen3_enable()
7205 tmp16); in si_pcie_gen3_enable()
7209 &tmp16); in si_pcie_gen3_enable()
7210 tmp16 &= ~(PCI_EXP_LNKCTL2_ENTER_COMP | in si_pcie_gen3_enable()
7212 tmp16 |= (gpu_cfg2 & in si_pcie_gen3_enable()
[all …]
Dcik.c9488 u16 tmp16; in cik_pcie_gen3_enable() local
9558 &tmp16); in cik_pcie_gen3_enable()
9559 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in cik_pcie_gen3_enable()
9596 &tmp16); in cik_pcie_gen3_enable()
9597 tmp16 &= ~(PCI_EXP_LNKCTL2_ENTER_COMP | in cik_pcie_gen3_enable()
9599 tmp16 |= (bridge_cfg2 & in cik_pcie_gen3_enable()
9604 tmp16); in cik_pcie_gen3_enable()
9608 &tmp16); in cik_pcie_gen3_enable()
9609 tmp16 &= ~(PCI_EXP_LNKCTL2_ENTER_COMP | in cik_pcie_gen3_enable()
9611 tmp16 |= (gpu_cfg2 & in cik_pcie_gen3_enable()
[all …]
/drivers/net/ethernet/dec/tulip/
Dxircom_cb.c197 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()
/drivers/atm/
Diphase.c1913 u_short tmp16; local
2061 tmp16 = (iadev->seg_ram+CBR_SCHED_TABLE*iadev->memSize)>>17;
2062 IF_INIT(printk("cbr_ptr_base = 0x%x ", tmp16);)
2063 writew(tmp16,iadev->seg_reg+CBR_PTR_BASE);
2068 tmp16 = (CBR_SCHED_TABLE*iadev->memSize) >> 1;
2069 writew(tmp16, iadev->seg_reg+CBR_TAB_BEG);
2070 IF_INIT(printk("cbr_tab_beg = 0x%x in reg = 0x%x \n", tmp16,
2072 writew(tmp16, iadev->seg_reg+CBR_TAB_END+1); // CBR_PTR;
2073 tmp16 = (CBR_SCHED_TABLE*iadev->memSize + iadev->num_vc*6 - 2) >> 1;
2074 writew(tmp16, iadev->seg_reg+CBR_TAB_END);
/drivers/net/wireless/broadcom/b43legacy/
Dradio.c807 s16 tmp16; in b43legacy_calc_nrssi_threshold() local
846 tmp16 = b43legacy_nrssi_hw_read(dev, 0x20); in b43legacy_calc_nrssi_threshold()
847 if (tmp16 >= 0x20) in b43legacy_calc_nrssi_threshold()
848 tmp16 -= 0x40; in b43legacy_calc_nrssi_threshold()
849 if (tmp16 < 3) in b43legacy_calc_nrssi_threshold()
/drivers/net/wireless/broadcom/b43/
Dphy_n.c3169 u16 tmp16; in b43_nphy_workarounds_rev3plus() local
3208 tmp16 = (b43_current_band(dev->wl) == NL80211_BAND_2GHZ) ? in b43_nphy_workarounds_rev3plus()
3210 b43_phy_write(dev, B43_NPHY_ENDROP_TLEN, tmp16); in b43_nphy_workarounds_rev3plus()
3267 tmp16 = 0x96; in b43_nphy_workarounds_rev3plus()
3271 tmp16 = 0x89; in b43_nphy_workarounds_rev3plus()
3277 tmp16 = 0x8b; in b43_nphy_workarounds_rev3plus()
3281 tmp16 = 0x70; in b43_nphy_workarounds_rev3plus()
3287 vmid[3] = tmp16; in b43_nphy_workarounds_rev3plus()
6230 u16 tmp16; in b43_nphy_channel_setup() local
6236 tmp16 = b43_read16(dev, B43_MMIO_PSM_PHY_HDR); in b43_nphy_channel_setup()
[all …]
Dphy_g.c703 s16 tmp16; in b43_calc_nrssi_threshold() local
710 tmp16 = b43_nrssi_hw_read(dev, 0x20); in b43_calc_nrssi_threshold()
711 if (tmp16 >= 0x20) in b43_calc_nrssi_threshold()
712 tmp16 -= 0x40; in b43_calc_nrssi_threshold()
713 if (tmp16 < 3) { in b43_calc_nrssi_threshold()
/drivers/media/usb/dvb-usb-v2/
Daf9035.c833 u16 tmp16; in af9035_read_config() local
968 tmp16 = tmp << 0; in af9035_read_config()
970 tmp16 |= tmp << 8; in af9035_read_config()
971 dev_dbg(&intf->dev, "[%d]IF=%d\n", i, tmp16); in af9035_read_config()
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dhw.c1484 u16 count = 0, tmp16; in _rtl8821ae_dynamic_rqpn() local
1500 tmp16 = rtl_read_word(rtlpriv, REG_TXPKT_EMPTY); in _rtl8821ae_dynamic_rqpn()
1501 while ((tmp16 & 0x07FF) != 0x07FF) { in _rtl8821ae_dynamic_rqpn()
1503 tmp16 = rtl_read_word(rtlpriv, REG_TXPKT_EMPTY); in _rtl8821ae_dynamic_rqpn()
/drivers/net/wireless/intel/ipw2x00/
Dipw2100.c3822 u16 tmp16; in hardware_show() local
3833 read_nic_word(dev, nic_data[i].addr, &tmp16); in hardware_show()
3836 tmp16); in hardware_show()