Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/net/usb/
H A Dax88179_178a.c355 u16 tmp16; in ax88179_phy_mmd_indirect() local
377 u16 tmp16; in ax88179_phy_read_mmd_indirect() local
410 u16 tmp16; in ax88179_suspend() local
462 u16 tmp16; in ax88179_auto_detach() local
468 if ((tmp16 == 0xFFFF) || (!(tmp16 & 0x0100))) in ax88179_auto_detach()
771 u16 tmp16; in ax88179_disable_eee() local
788 u16 tmp16; in ax88179_enable_eee() local
945 u16 tmp16; in ax88179_change_mtu() local
1329 u16 tmp16; in ax88179_unbind() local
1335 tmp16 = 0; in ax88179_unbind()
[all …]
/openbmc/u-boot/lib/
H A Duuid.c146 uint16_t tmp16; in uuid_str_to_bin() local
162 tmp16 = cpu_to_be16(simple_strtoul(uuid_str + 9, NULL, 16)); in uuid_str_to_bin()
163 memcpy(uuid_bin + 4, &tmp16, 2); in uuid_str_to_bin()
165 tmp16 = cpu_to_be16(simple_strtoul(uuid_str + 14, NULL, 16)); in uuid_str_to_bin()
166 memcpy(uuid_bin + 6, &tmp16, 2); in uuid_str_to_bin()
171 tmp16 = cpu_to_le16(simple_strtoul(uuid_str + 9, NULL, 16)); in uuid_str_to_bin()
172 memcpy(uuid_bin + 4, &tmp16, 2); in uuid_str_to_bin()
174 tmp16 = cpu_to_le16(simple_strtoul(uuid_str + 14, NULL, 16)); in uuid_str_to_bin()
175 memcpy(uuid_bin + 6, &tmp16, 2); in uuid_str_to_bin()
178 tmp16 = cpu_to_be16(simple_strtoul(uuid_str + 19, NULL, 16)); in uuid_str_to_bin()
[all …]
/openbmc/linux/drivers/staging/rtl8712/
H A Dhal_init.c159 u16 tmp16; in rtl8712_dl_fw() local
210 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
213 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
239 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
242 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
265 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
268 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
290 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
293 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
306 tmp16 = r8712_read16(adapter, TCR); in rtl8712_dl_fw()
[all …]
/openbmc/linux/drivers/ata/
H A 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()
H A Dahci.c1670 u16 tmp16; in ahci_intel_pcs_quirk() local
1690 pci_read_config_word(pdev, PCS_6, &tmp16); in ahci_intel_pcs_quirk()
1691 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_intel_pcs_quirk()
1692 tmp16 |= hpriv->port_map; in ahci_intel_pcs_quirk()
1693 pci_write_config_word(pdev, PCS_6, tmp16); in ahci_intel_pcs_quirk()
/openbmc/linux/arch/sparc/kernel/
H A Dpci_common.c58 u16 tmp16; in sun4u_read_pci_cfg_host() local
73 *value = tmp16 >> 8; in sun4u_read_pci_cfg_host()
75 *value = tmp16 & 0xff; in sun4u_read_pci_cfg_host()
85 *value = (u32) tmp16; in sun4u_read_pci_cfg_host()
115 u16 tmp16; in sun4u_read_pci_cfg() local
151 *value = (u32) tmp16; in sun4u_read_pci_cfg()
180 u16 tmp16; in sun4u_write_pci_cfg_host() local
185 tmp16 &= 0x00ff; in sun4u_write_pci_cfg_host()
186 tmp16 |= value << 8; in sun4u_write_pci_cfg_host()
188 tmp16 &= 0xff00; in sun4u_write_pci_cfg_host()
[all …]
/openbmc/u-boot/drivers/usb/eth/
H A Dasix88179.c297 u16 *tmp16; in asix_basic_reset() local
300 tmp16 = (u16 *)buf; in asix_basic_reset()
304 *tmp16 = 0; in asix_basic_reset()
307 *tmp16 = AX_PHYPWR_RSTCTL_IPRL; in asix_basic_reset()
368 u16 *tmp16; in asix_wait_link() local
370 tmp16 = (u16 *)buf; in asix_wait_link()
398 u16 *tmp16, mode; in asix_init_common() local
401 tmp16 = (u16 *)buf; in asix_init_common()
427 GMII_PHY_PHYSR, 2, tmp16); in asix_init_common()
429 if (!(*tmp16 & GMII_PHY_PHYSR_LINK)) { in asix_init_common()
[all …]
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/
H A D0002-FF-A-v15-lib-uuid-introduce-uuid_str_to_le_bin-funct.patch88 + u16 tmp16;
98 + tmp16 = cpu_to_le16(hextoul(uuid_str + 9, NULL));
99 + memcpy(uuid_bin + 4, &tmp16, 2);
101 + tmp16 = cpu_to_le16(hextoul(uuid_str + 14, NULL));
102 + memcpy(uuid_bin + 6, &tmp16, 2);
104 + tmp16 = cpu_to_le16(hextoul(uuid_str + 19, NULL));
105 + memcpy(uuid_bin + 8, &tmp16, 2);
/openbmc/linux/drivers/comedi/drivers/
H A 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()
/openbmc/u-boot/drivers/ata/
H A Dahci.c184 u16 tmp16; in ahci_host_init() local
209 u16 tmp16; in ahci_host_init() local
211 dm_pci_read_config16(dev, 0x92, &tmp16); in ahci_host_init()
212 dm_pci_write_config16(dev, 0x92, tmp16 | 0xf); in ahci_host_init()
218 u16 tmp16; in ahci_host_init() local
219 pci_read_config_word(pdev, 0x92, &tmp16); in ahci_host_init()
220 tmp16 |= 0xf; in ahci_host_init()
221 pci_write_config_word(pdev, 0x92, tmp16); in ahci_host_init()
340 dm_pci_read_config16(dev, PCI_COMMAND, &tmp16); in ahci_host_init()
342 dm_pci_write_config16(dev, PCI_COMMAND, tmp16); in ahci_host_init()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A 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()
1657 tmp16 |= (gpu_cfg2 & in cik_pcie_gen3_enable()
1662 tmp16); in cik_pcie_gen3_enable()
[all …]
H A 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()
2350 tmp16 |= (gpu_cfg2 & in si_pcie_gen3_enable()
2355 tmp16); in si_pcie_gen3_enable()
[all …]
/openbmc/linux/arch/mips/sgi-ip22/
H A 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()
/openbmc/linux/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()
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A 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()
1087 if (tmp16 != 0xB880) in _rtl8723be_enable_aspm_back_door()
1091 if (tmp16 != 0x4000) in _rtl8723be_enable_aspm_back_door()
1095 if (tmp16 != 0x9003) in _rtl8723be_enable_aspm_back_door()
1099 if (tmp16 != 0x0D03) in _rtl8723be_enable_aspm_back_door()
1103 if (tmp16 != 0x4037) in _rtl8723be_enable_aspm_back_door()
[all …]
/openbmc/linux/drivers/net/ethernet/cirrus/
H A Dcs89x0.c203 u16 tmp16; in readwords() local
205 tmp16 = ioread16(lp->virt_addr + portno); in readwords()
206 *buf8++ = (u8)tmp16; in readwords()
207 *buf8++ = (u8)(tmp16 >> 8); in readwords()
216 u16 tmp16; in writewords() local
218 tmp16 = *buf8++; in writewords()
219 tmp16 |= (*buf8++) << 8; in writewords()
220 iowrite16(tmp16, lp->virt_addr + portno); in writewords()
/openbmc/linux/tools/testing/selftests/net/
H A 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()
/openbmc/linux/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()
/openbmc/linux/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_core.c927 u16 tmp16; in peak_usb_create_dev() local
1000 tmp16 = le16_to_cpu(usb_dev->descriptor.bcdDevice); in peak_usb_create_dev()
1001 dev->device_rev = tmp16 >> 8; in peak_usb_create_dev()
/openbmc/linux/drivers/gpu/drm/radeon/
H A 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()
7212 tmp16 |= (gpu_cfg2 & in si_pcie_gen3_enable()
7217 tmp16); in si_pcie_gen3_enable()
[all …]
H A 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()
9611 tmp16 |= (gpu_cfg2 & in cik_pcie_gen3_enable()
9616 tmp16); in cik_pcie_gen3_enable()
[all …]
/openbmc/linux/drivers/atm/
H A 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);
/openbmc/linux/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()
/openbmc/linux/drivers/media/usb/dvb-usb-v2/
H A Daf9035.c832 u16 tmp16; in af9035_read_config() local
967 tmp16 = tmp << 0; in af9035_read_config()
969 tmp16 |= tmp << 8; in af9035_read_config()
970 dev_dbg(&intf->dev, "[%d]IF=%d\n", i, tmp16); in af9035_read_config()
/openbmc/linux/drivers/net/wireless/broadcom/b43/
H A Dphy_n.c3169 u16 tmp16; in b43_nphy_workarounds_rev3plus() local
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()
6241 b43_write16(dev, B43_MMIO_PSM_PHY_HDR, tmp16); in b43_nphy_channel_setup()
6245 tmp16 = b43_read16(dev, B43_MMIO_PSM_PHY_HDR); in b43_nphy_channel_setup()
[all …]

12