Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/net/usb/
Dax88179_178a.c351 u16 tmp16; in ax88179_phy_mmd_indirect() local
354 tmp16 = devad; in ax88179_phy_mmd_indirect()
356 MII_MMD_CTRL, 2, &tmp16); in ax88179_phy_mmd_indirect()
358 tmp16 = prtad; in ax88179_phy_mmd_indirect()
360 MII_MMD_DATA, 2, &tmp16); in ax88179_phy_mmd_indirect()
362 tmp16 = devad | MII_MMD_CTRL_NOINCR; in ax88179_phy_mmd_indirect()
364 MII_MMD_CTRL, 2, &tmp16); in ax88179_phy_mmd_indirect()
373 u16 tmp16; in ax88179_phy_read_mmd_indirect() local
378 MII_MMD_DATA, 2, &tmp16); in ax88179_phy_read_mmd_indirect()
382 return tmp16; in ax88179_phy_read_mmd_indirect()
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/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.c1627 u16 tmp16; in ahci_intel_pcs_quirk() local
1647 pci_read_config_word(pdev, PCS_6, &tmp16); in ahci_intel_pcs_quirk()
1648 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_intel_pcs_quirk()
1649 tmp16 |= hpriv->port_map; in ahci_intel_pcs_quirk()
1650 pci_write_config_word(pdev, PCS_6, tmp16); in ahci_intel_pcs_quirk()
Dlibata-core.c6017 u16 tmp16 = 0; in pci_test_config_bits() local
6018 pci_read_config_word(pdev, bits->reg, &tmp16); in pci_test_config_bits()
6019 tmp = tmp16; in pci_test_config_bits()
/Linux-v6.1/arch/sparc/kernel/
Dpci_common.c57 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-v6.1/drivers/gpu/drm/amd/amdgpu/
Dcik.c1535 u16 tmp16; in cik_pcie_gen3_enable() local
1582 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
1583 pcie_capability_write_word(root, PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
1585 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
1587 tmp16); in cik_pcie_gen3_enable()
1613 &tmp16); in cik_pcie_gen3_enable()
1614 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in cik_pcie_gen3_enable()
1641 &tmp16); in cik_pcie_gen3_enable()
1642 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
1643 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in cik_pcie_gen3_enable()
[all …]
Dsi.c2238 u16 tmp16; in si_pcie_gen3_enable() local
2284 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
2285 pcie_capability_write_word(root, PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
2287 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
2289 tmp16); in si_pcie_gen3_enable()
2308 &tmp16); in si_pcie_gen3_enable()
2309 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in si_pcie_gen3_enable()
2335 &tmp16); in si_pcie_gen3_enable()
2336 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
2337 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in si_pcie_gen3_enable()
[all …]
/Linux-v6.1/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()
/Linux-v6.1/arch/mips/sgi-ip22/
Dip22-gio.c270 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-v6.1/net/caif/
Dcfctrl.c205 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-v6.1/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dhw.c1068 u16 tmp16 = 0; in _rtl8723be_enable_aspm_back_door() local
1074 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x01); in _rtl8723be_enable_aspm_back_door()
1075 if (tmp16 != 0x0663) in _rtl8723be_enable_aspm_back_door()
1078 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x04); in _rtl8723be_enable_aspm_back_door()
1079 if (tmp16 != 0x7544) in _rtl8723be_enable_aspm_back_door()
1082 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x06); in _rtl8723be_enable_aspm_back_door()
1083 if (tmp16 != 0xB880) in _rtl8723be_enable_aspm_back_door()
1086 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x07); in _rtl8723be_enable_aspm_back_door()
1087 if (tmp16 != 0x4000) in _rtl8723be_enable_aspm_back_door()
1090 tmp16 = _rtl8723be_mdio_read(rtlpriv, 0x08); in _rtl8723be_enable_aspm_back_door()
[all …]
/Linux-v6.1/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()
/Linux-v6.1/drivers/gpu/drm/radeon/
Dsi.c7085 u16 tmp16; in si_pcie_gen3_enable() local
7139 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
7140 pcie_capability_write_word(root, PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
7142 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
7144 tmp16); in si_pcie_gen3_enable()
7164 &tmp16); in si_pcie_gen3_enable()
7165 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in si_pcie_gen3_enable()
7192 &tmp16); in si_pcie_gen3_enable()
7193 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
7194 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in si_pcie_gen3_enable()
[all …]
Dcik.c9488 u16 tmp16; in cik_pcie_gen3_enable() local
9542 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
9543 pcie_capability_write_word(root, PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
9545 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
9547 tmp16); in cik_pcie_gen3_enable()
9567 &tmp16); in cik_pcie_gen3_enable()
9568 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in cik_pcie_gen3_enable()
9595 &tmp16); in cik_pcie_gen3_enable()
9596 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
9597 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in cik_pcie_gen3_enable()
[all …]
/Linux-v6.1/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()
/Linux-v6.1/tools/testing/selftests/net/
Dioam6_parser.c413 __u16 tmp16 = node2.egr_id; in check_ioam_header_and_data() local
421 node2.egr_id = tmp16; in check_ioam_header_and_data()
/Linux-v6.1/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()
/Linux-v6.1/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);
/Linux-v6.1/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()
/Linux-v6.1/drivers/media/usb/dvb-usb-v2/
Daf9035.c826 u16 tmp16; in af9035_read_config() local
961 tmp16 = tmp << 0; in af9035_read_config()
963 tmp16 |= tmp << 8; in af9035_read_config()
964 dev_dbg(&intf->dev, "[%d]IF=%d\n", i, tmp16); in af9035_read_config()
/Linux-v6.1/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()
/Linux-v6.1/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dhw.c1480 u16 count = 0, tmp16; in _rtl8821ae_dynamic_rqpn() local
1496 tmp16 = rtl_read_word(rtlpriv, REG_TXPKT_EMPTY); in _rtl8821ae_dynamic_rqpn()
1497 while ((tmp16 & 0x07FF) != 0x07FF) { in _rtl8821ae_dynamic_rqpn()
1499 tmp16 = rtl_read_word(rtlpriv, REG_TXPKT_EMPTY); in _rtl8821ae_dynamic_rqpn()
/Linux-v6.1/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()