Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/drivers/net/usb/
H A Dax88179_178a.c374 u16 tmp16; in ax88179_phy_mmd_indirect() local
377 tmp16 = devad; in ax88179_phy_mmd_indirect()
379 MII_MMD_CTRL, 2, &tmp16); in ax88179_phy_mmd_indirect()
381 tmp16 = prtad; in ax88179_phy_mmd_indirect()
383 MII_MMD_DATA, 2, &tmp16); in ax88179_phy_mmd_indirect()
385 tmp16 = devad | MII_MMD_CTRL_NOINCR; in ax88179_phy_mmd_indirect()
387 MII_MMD_CTRL, 2, &tmp16); in ax88179_phy_mmd_indirect()
396 u16 tmp16; in ax88179_phy_read_mmd_indirect() local
401 MII_MMD_DATA, 2, &tmp16); in ax88179_phy_read_mmd_indirect()
405 return tmp16; in ax88179_phy_read_mmd_indirect()
[all …]
/OK3568_Linux_fs/u-boot/lib/
H A Duuid.c147 uint16_t tmp16; in uuid_str_to_bin() local
163 tmp16 = cpu_to_be16(simple_strtoul(uuid_str + 9, NULL, 16)); in uuid_str_to_bin()
164 memcpy(uuid_bin + 4, &tmp16, 2); in uuid_str_to_bin()
166 tmp16 = cpu_to_be16(simple_strtoul(uuid_str + 14, NULL, 16)); in uuid_str_to_bin()
167 memcpy(uuid_bin + 6, &tmp16, 2); in uuid_str_to_bin()
172 tmp16 = cpu_to_le16(simple_strtoul(uuid_str + 9, NULL, 16)); in uuid_str_to_bin()
173 memcpy(uuid_bin + 4, &tmp16, 2); in uuid_str_to_bin()
175 tmp16 = cpu_to_le16(simple_strtoul(uuid_str + 14, NULL, 16)); in uuid_str_to_bin()
176 memcpy(uuid_bin + 6, &tmp16, 2); in uuid_str_to_bin()
179 tmp16 = cpu_to_be16(simple_strtoul(uuid_str + 19, NULL, 16)); in uuid_str_to_bin()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/rtl8712/
H A Dhal_init.c160 u16 tmp16; in rtl8712_dl_fw() local
211 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
212 while (((tmp16 & _IMEM_CODE_DONE) == 0) && (i > 0)) { in rtl8712_dl_fw()
214 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
217 if (i == 0 || (tmp16 & _IMEM_CHK_RPT) == 0) in rtl8712_dl_fw()
240 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
241 while (((tmp16 & _EMEM_CODE_DONE) == 0) && (i > 0)) { in rtl8712_dl_fw()
243 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
246 if (i == 0 || (tmp16 & _EMEM_CHK_RPT) == 0) in rtl8712_dl_fw()
266 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
[all …]
/OK3568_Linux_fs/kernel/arch/sparc/kernel/
H A 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 …]
/OK3568_Linux_fs/u-boot/drivers/usb/eth/
H A Dasix88179.c298 u16 *tmp16; in asix_basic_reset() local
301 tmp16 = (u16 *)buf; in asix_basic_reset()
305 *tmp16 = 0; in asix_basic_reset()
306 asix_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in asix_basic_reset()
308 *tmp16 = AX_PHYPWR_RSTCTL_IPRL; in asix_basic_reset()
309 asix_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in asix_basic_reset()
339 *tmp16 = AX_RX_CTL_DROPCRCERR | AX_RX_CTL_IPE | AX_RX_CTL_START | in asix_basic_reset()
341 asix_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, tmp16); in asix_basic_reset()
348 *tmp16 = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | in asix_basic_reset()
351 asix_write_cmd(dev, AX_ACCESS_MAC, AX_MEDIUM_STATUS_MODE, 2, 2, tmp16); in asix_basic_reset()
[all …]
/OK3568_Linux_fs/kernel/drivers/ata/
H A Dpata_atiixp.c218 u16 tmp16; in atiixp_bmdma_start() local
220 pci_read_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, &tmp16); in atiixp_bmdma_start()
222 tmp16 |= (1 << dn); in atiixp_bmdma_start()
224 tmp16 &= ~(1 << dn); in atiixp_bmdma_start()
225 pci_write_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, tmp16); in atiixp_bmdma_start()
245 u16 tmp16; in atiixp_bmdma_stop() local
247 pci_read_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, &tmp16); in atiixp_bmdma_stop()
248 tmp16 &= ~(1 << dn); in atiixp_bmdma_stop()
249 pci_write_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, tmp16); in atiixp_bmdma_stop()
H A Dahci.c1625 u16 tmp16; in ahci_intel_pcs_quirk() local
1645 pci_read_config_word(pdev, PCS_6, &tmp16); in ahci_intel_pcs_quirk()
1646 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_intel_pcs_quirk()
1647 tmp16 |= hpriv->port_map; in ahci_intel_pcs_quirk()
1648 pci_write_config_word(pdev, PCS_6, tmp16); in ahci_intel_pcs_quirk()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A Dcik.c1470 u16 tmp16; in cik_pcie_gen3_enable() local
1517 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
1518 pcie_capability_write_word(root, PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
1520 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
1522 tmp16); in cik_pcie_gen3_enable()
1548 &tmp16); in cik_pcie_gen3_enable()
1549 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in cik_pcie_gen3_enable()
1576 &tmp16); in cik_pcie_gen3_enable()
1577 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
1578 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in cik_pcie_gen3_enable()
[all …]
H A Dsi.c2121 u16 tmp16; in si_pcie_gen3_enable() local
2167 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
2168 pcie_capability_write_word(root, PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
2170 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
2172 tmp16); in si_pcie_gen3_enable()
2191 &tmp16); in si_pcie_gen3_enable()
2192 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in si_pcie_gen3_enable()
2218 &tmp16); in si_pcie_gen3_enable()
2219 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
2220 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in si_pcie_gen3_enable()
[all …]
/OK3568_Linux_fs/kernel/drivers/ide/
H A Datiixp.c92 u16 tmp16; in atiixp_set_dma_mode() local
101 pci_read_config_word(dev, ATIIXP_IDE_UDMA_MODE, &tmp16); in atiixp_set_dma_mode()
102 tmp16 &= ~(0x07 << (drive->dn * 4)); in atiixp_set_dma_mode()
103 tmp16 |= ((speed & 0x07) << (drive->dn * 4)); in atiixp_set_dma_mode()
104 pci_write_config_word(dev, ATIIXP_IDE_UDMA_MODE, tmp16); in atiixp_set_dma_mode()
/OK3568_Linux_fs/kernel/drivers/net/can/usb/peak_usb/
H A Dpcan_usb.c394 __le16 tmp16; in pcan_usb_update_ts() local
399 memcpy(&tmp16, mc->ptr, 2); in pcan_usb_update_ts()
401 mc->ts16 = le16_to_cpu(tmp16); in pcan_usb_update_ts()
418 __le16 tmp16; in pcan_usb_decode_ts() local
423 memcpy(&tmp16, mc->ptr, 2); in pcan_usb_decode_ts()
426 mc->ts16 = le16_to_cpu(tmp16); in pcan_usb_decode_ts()
728 __le16 tmp16; in pcan_usb_decode_data() local
733 memcpy(&tmp16, mc->ptr, 2); in pcan_usb_decode_data()
736 cf->can_id = le16_to_cpu(tmp16) >> 5; in pcan_usb_decode_data()
855 __le16 tmp16 = cpu_to_le16((cf->can_id & CAN_ERR_MASK) << 5); in pcan_usb_encode_msg() local
[all …]
H A Dpcan_usb_core.c779 u16 tmp16; in peak_usb_create_dev() local
846 tmp16 = le16_to_cpu(usb_dev->descriptor.bcdDevice); in peak_usb_create_dev()
847 dev->device_rev = tmp16 >> 8; in peak_usb_create_dev()
/OK3568_Linux_fs/kernel/drivers/staging/comedi/drivers/
H A Ddt9812.c744 __le16 tmp16; in dt9812_reset_device() local
768 ret = dt9812_read_info(dev, 1, &tmp16, sizeof(tmp16)); in dt9812_reset_device()
773 vendor = le16_to_cpu(tmp16); in dt9812_reset_device()
775 ret = dt9812_read_info(dev, 3, &tmp16, sizeof(tmp16)); in dt9812_reset_device()
780 product = le16_to_cpu(tmp16); in dt9812_reset_device()
782 ret = dt9812_read_info(dev, 5, &tmp16, sizeof(tmp16)); in dt9812_reset_device()
787 devpriv->device = le16_to_cpu(tmp16); in dt9812_reset_device()
/OK3568_Linux_fs/u-boot/drivers/ata/
H A Dahci.c179 u16 tmp16; in ahci_host_init() local
204 u16 tmp16; in ahci_host_init() local
206 dm_pci_read_config16(dev, 0x92, &tmp16); in ahci_host_init()
207 dm_pci_write_config16(dev, 0x92, tmp16 | 0xf); in ahci_host_init()
213 u16 tmp16; in ahci_host_init() local
214 pci_read_config_word(pdev, 0x92, &tmp16); in ahci_host_init()
215 tmp16 |= 0xf; in ahci_host_init()
216 pci_write_config_word(pdev, 0x92, tmp16); in ahci_host_init()
334 dm_pci_read_config16(dev, PCI_COMMAND, &tmp16); in ahci_host_init()
336 dm_pci_write_config16(dev, PCI_COMMAND, tmp16); in ahci_host_init()
[all …]
/OK3568_Linux_fs/kernel/arch/mips/sgi-ip22/
H A Dip22-gio.c271 u8 tmp16; in ip22_gio_id() local
299 get_dbe(tmp16, ptr16); in ip22_gio_id()
300 if (tmp8 == (tmp16 & 0xff) && in ip22_gio_id()
302 tmp16 == (tmp32 & 0xffff)) { in ip22_gio_id()
/OK3568_Linux_fs/kernel/net/caif/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/cirrus/
H A 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/radeon/
H A Dsi.c7092 u16 tmp16; in si_pcie_gen3_enable() local
7146 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
7147 pcie_capability_write_word(root, PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
7149 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
7151 tmp16); in si_pcie_gen3_enable()
7171 &tmp16); in si_pcie_gen3_enable()
7172 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in si_pcie_gen3_enable()
7199 &tmp16); in si_pcie_gen3_enable()
7200 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in si_pcie_gen3_enable()
7201 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in si_pcie_gen3_enable()
[all …]
H A Dcik.c9505 u16 tmp16; in cik_pcie_gen3_enable() local
9559 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
9560 pcie_capability_write_word(root, PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
9562 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
9564 tmp16); in cik_pcie_gen3_enable()
9584 &tmp16); in cik_pcie_gen3_enable()
9585 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in cik_pcie_gen3_enable()
9612 &tmp16); in cik_pcie_gen3_enable()
9613 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
9614 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in cik_pcie_gen3_enable()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/dec/tulip/
H A 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()
/OK3568_Linux_fs/kernel/drivers/atm/
H A Diphase.c1912 u_short tmp16; local
2060 tmp16 = (iadev->seg_ram+CBR_SCHED_TABLE*iadev->memSize)>>17;
2061 IF_INIT(printk("cbr_ptr_base = 0x%x ", tmp16);)
2062 writew(tmp16,iadev->seg_reg+CBR_PTR_BASE);
2067 tmp16 = (CBR_SCHED_TABLE*iadev->memSize) >> 1;
2068 writew(tmp16, iadev->seg_reg+CBR_TAB_BEG);
2069 IF_INIT(printk("cbr_tab_beg = 0x%x in reg = 0x%x \n", tmp16,
2071 writew(tmp16, iadev->seg_reg+CBR_TAB_END+1); // CBR_PTR;
2072 tmp16 = (CBR_SCHED_TABLE*iadev->memSize + iadev->num_vc*6 - 2) >> 1;
2073 writew(tmp16, iadev->seg_reg+CBR_TAB_END);
/OK3568_Linux_fs/kernel/drivers/net/wireless/broadcom/b43legacy/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/wireless/broadcom/b43/
H A Dphy_n.c3173 u16 tmp16; in b43_nphy_workarounds_rev3plus() local
3212 tmp16 = (b43_current_band(dev->wl) == NL80211_BAND_2GHZ) ? in b43_nphy_workarounds_rev3plus()
3214 b43_phy_write(dev, B43_NPHY_ENDROP_TLEN, tmp16); in b43_nphy_workarounds_rev3plus()
3271 tmp16 = 0x96; in b43_nphy_workarounds_rev3plus()
3275 tmp16 = 0x89; in b43_nphy_workarounds_rev3plus()
3281 tmp16 = 0x8b; in b43_nphy_workarounds_rev3plus()
3285 tmp16 = 0x70; in b43_nphy_workarounds_rev3plus()
3291 vmid[3] = tmp16; in b43_nphy_workarounds_rev3plus()
6281 u16 tmp16; in b43_nphy_channel_setup() local
6287 tmp16 = b43_read16(dev, B43_MMIO_PSM_PHY_HDR); in b43_nphy_channel_setup()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/usb/dvb-usb-v2/
H A Daf9035.c825 u16 tmp16; in af9035_read_config() local
960 tmp16 = tmp << 0; in af9035_read_config()
962 tmp16 |= tmp << 8; in af9035_read_config()
963 dev_dbg(&intf->dev, "[%d]IF=%d\n", i, tmp16); in af9035_read_config()

12