Home
last modified time | relevance | path

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

/drivers/net/usb/
Dax88179_178a.c385 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 …]
/drivers/staging/rtl8712/
Dhal_init.c155 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 …]
/drivers/gpu/drm/amd/amdgpu/
Dsi.c1354 u16 tmp16; in si_pcie_gen3_enable() local
1406 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
1407 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
1409 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
1410 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
1427 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_DEVSTA, &tmp16); in si_pcie_gen3_enable()
1428 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in si_pcie_gen3_enable()
1447 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in si_pcie_gen3_enable()
1448 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
1449 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in si_pcie_gen3_enable()
[all …]
Dcik.c1310 u16 tmp16; in cik_pcie_gen3_enable() local
1360 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
1361 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
1363 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
1364 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
1388 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_DEVSTA, &tmp16); in cik_pcie_gen3_enable()
1389 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in cik_pcie_gen3_enable()
1409 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable()
1410 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
1411 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in cik_pcie_gen3_enable()
[all …]
/drivers/ata/
Dpata_atiixp.c217 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()
Dahci.c632 u16 tmp16; in ahci_pci_reset_controller() local
635 pci_read_config_word(pdev, 0x92, &tmp16); in ahci_pci_reset_controller()
636 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_pci_reset_controller()
637 tmp16 |= hpriv->port_map; in ahci_pci_reset_controller()
638 pci_write_config_word(pdev, 0x92, tmp16); in ahci_pci_reset_controller()
Dlibata-core.c6580 u16 tmp16 = 0; in pci_test_config_bits() local
6581 pci_read_config_word(pdev, bits->reg, &tmp16); in pci_test_config_bits()
6582 tmp = tmp16; in pci_test_config_bits()
/drivers/ide/
Datiixp.c91 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()
/drivers/net/can/usb/peak_usb/
Dpcan_usb.c350 __le16 tmp16; in pcan_usb_update_ts() local
355 memcpy(&tmp16, mc->ptr, 2); in pcan_usb_update_ts()
357 mc->ts16 = le16_to_cpu(tmp16); in pcan_usb_update_ts()
374 __le16 tmp16; in pcan_usb_decode_ts() local
379 memcpy(&tmp16, mc->ptr, 2); in pcan_usb_decode_ts()
382 mc->ts16 = le16_to_cpu(tmp16); in pcan_usb_decode_ts()
628 __le16 tmp16; in pcan_usb_decode_data() local
633 memcpy(&tmp16, mc->ptr, 2); in pcan_usb_decode_data()
636 cf->can_id = le16_to_cpu(tmp16) >> 5; in pcan_usb_decode_data()
754 __le16 tmp16 = cpu_to_le16((cf->can_id & CAN_ERR_MASK) << 5); in pcan_usb_encode_msg() local
[all …]
Dpcan_usb_core.c762 u16 tmp16; in peak_usb_create_dev() local
829 tmp16 = le16_to_cpu(usb_dev->descriptor.bcdDevice); in peak_usb_create_dev()
830 dev->device_rev = tmp16 >> 8; in peak_usb_create_dev()
/drivers/staging/comedi/drivers/
Ddt9812.c696 __le16 tmp16; in dt9812_reset_device() local
720 ret = dt9812_read_info(dev, 1, &tmp16, sizeof(tmp16)); in dt9812_reset_device()
725 vendor = le16_to_cpu(tmp16); in dt9812_reset_device()
727 ret = dt9812_read_info(dev, 3, &tmp16, sizeof(tmp16)); in dt9812_reset_device()
732 product = le16_to_cpu(tmp16); in dt9812_reset_device()
734 ret = dt9812_read_info(dev, 5, &tmp16, sizeof(tmp16)); in dt9812_reset_device()
739 devpriv->device = le16_to_cpu(tmp16); in dt9812_reset_device()
/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dhw.c1088 u16 tmp16 = 0; in _rtl8723be_enable_aspm_back_door() local
1094 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x01); in _rtl8723be_enable_aspm_back_door()
1095 if (tmp16 != 0x0663) in _rtl8723be_enable_aspm_back_door()
1098 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x04); in _rtl8723be_enable_aspm_back_door()
1099 if (tmp16 != 0x7544) in _rtl8723be_enable_aspm_back_door()
1102 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x06); in _rtl8723be_enable_aspm_back_door()
1103 if (tmp16 != 0xB880) in _rtl8723be_enable_aspm_back_door()
1106 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x07); in _rtl8723be_enable_aspm_back_door()
1107 if (tmp16 != 0x4000) in _rtl8723be_enable_aspm_back_door()
1110 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/gpu/drm/radeon/
Dsi.c7509 u16 tmp16; in si_pcie_gen3_enable() local
7565 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
7566 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
7568 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
7569 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
7587 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_DEVSTA, &tmp16); in si_pcie_gen3_enable()
7588 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in si_pcie_gen3_enable()
7608 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in si_pcie_gen3_enable()
7609 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
7610 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in si_pcie_gen3_enable()
[all …]
Dcik.c9515 u16 tmp16; in cik_pcie_gen3_enable() local
9571 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
9572 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
9574 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
9575 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
9593 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_DEVSTA, &tmp16); in cik_pcie_gen3_enable()
9594 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in cik_pcie_gen3_enable()
9614 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable()
9615 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
9616 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in cik_pcie_gen3_enable()
[all …]
/drivers/media/usb/dvb-usb-v2/
Daf9035.c822 u16 tmp16, addr; in af9035_read_config() local
840 tmp16 = 0x00461d; /* eeprom memory mapped location */ in af9035_read_config()
844 tmp16 = 0x00461b; /* eeprom memory mapped location */ in af9035_read_config()
848 ret = af9035_rd_reg(d, tmp16, &tmp); in af9035_read_config()
963 tmp16 = tmp; in af9035_read_config()
969 tmp16 |= tmp << 8; in af9035_read_config()
971 dev_dbg(&intf->dev, "[%d]IF=%d\n", i, tmp16); in af9035_read_config()
/drivers/net/ethernet/dec/tulip/
Dxircom_cb.c198 unsigned short tmp16; in xircom_probe() local
213 pci_read_config_word (pdev,PCI_STATUS, &tmp16); in xircom_probe()
214 pci_write_config_word (pdev, PCI_STATUS,tmp16); in xircom_probe()
/drivers/net/wireless/broadcom/b43legacy/
Dradio.c824 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()
/drivers/atm/
Diphase.c1911 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);
/drivers/net/wireless/broadcom/b43/
Dphy_n.c3185 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 …]
Dphy_g.c716 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()
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dhw.c1514 u16 count = 0, tmp16; in _rtl8821ae_dynamic_rqpn() local
1530 tmp16 = rtl_read_word(rtlpriv, REG_TXPKT_EMPTY); in _rtl8821ae_dynamic_rqpn()
1531 while ((tmp16 & 0x07FF) != 0x07FF) { in _rtl8821ae_dynamic_rqpn()
1533 tmp16 = rtl_read_word(rtlpriv, REG_TXPKT_EMPTY); in _rtl8821ae_dynamic_rqpn()
/drivers/net/wireless/intel/ipw2x00/
Dipw2100.c3839 u16 tmp16; in show_hardware() local
3850 read_nic_word(dev, nic_data[i].addr, &tmp16); in show_hardware()
3853 tmp16); in show_hardware()