Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/staging/rtl8712/
Dhal_init.c134 u16 tmp16; in rtl8712_dl_fw() local
186 tmp16 = r8712_read16(padapter, TCR); in rtl8712_dl_fw()
187 while (((tmp16 & _IMEM_CODE_DONE) == 0) && (i > 0)) { in rtl8712_dl_fw()
189 tmp16 = r8712_read16(padapter, TCR); in rtl8712_dl_fw()
192 if (i == 0 || (tmp16 & _IMEM_CHK_RPT) == 0) in rtl8712_dl_fw()
214 tmp16 = r8712_read16(padapter, TCR); in rtl8712_dl_fw()
215 while (((tmp16 & _EMEM_CODE_DONE) == 0) && (i > 0)) { in rtl8712_dl_fw()
217 tmp16 = r8712_read16(padapter, TCR); in rtl8712_dl_fw()
220 if (i == 0 || (tmp16 & _EMEM_CHK_RPT) == 0) in rtl8712_dl_fw()
240 tmp16 = r8712_read16(padapter, TCR); in rtl8712_dl_fw()
[all …]
/linux-2.6.39/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-2.6.39/drivers/ata/
Dpata_atiixp.c177 u16 tmp16; in atiixp_bmdma_start() local
179 pci_read_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, &tmp16); in atiixp_bmdma_start()
181 tmp16 |= (1 << dn); in atiixp_bmdma_start()
183 tmp16 &= ~(1 << dn); in atiixp_bmdma_start()
184 pci_write_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, tmp16); in atiixp_bmdma_start()
204 u16 tmp16; in atiixp_bmdma_stop() local
206 pci_read_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, &tmp16); in atiixp_bmdma_stop()
207 tmp16 &= ~(1 << dn); in atiixp_bmdma_stop()
208 pci_write_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, tmp16); in atiixp_bmdma_stop()
Dahci.c465 u16 tmp16; in ahci_pci_reset_controller() local
468 pci_read_config_word(pdev, 0x92, &tmp16); in ahci_pci_reset_controller()
469 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_pci_reset_controller()
470 tmp16 |= hpriv->port_map; in ahci_pci_reset_controller()
471 pci_write_config_word(pdev, 0x92, tmp16); in ahci_pci_reset_controller()
Dlibata-core.c6199 u16 tmp16 = 0; in pci_test_config_bits() local
6200 pci_read_config_word(pdev, bits->reg, &tmp16); in pci_test_config_bits()
6201 tmp = tmp16; in pci_test_config_bits()
/linux-2.6.39/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()
/linux-2.6.39/net/caif/
Dcfctrl.c203 u16 tmp16; in cfctrl_linkup_request() local
241 tmp16 = cpu_to_le16(param->u.utility.fifosize_kb); in cfctrl_linkup_request()
242 cfpkt_add_body(pkt, &tmp16, 2); in cfctrl_linkup_request()
243 tmp16 = cpu_to_le16(param->u.utility.fifosize_bufs); in cfctrl_linkup_request()
244 cfpkt_add_body(pkt, &tmp16, 2); in cfctrl_linkup_request()
381 u16 tmp16; in cfctrl_recv() local
482 cfpkt_extr_head(pkt, &tmp16, 2); in cfctrl_recv()
484 le16_to_cpu(tmp16); in cfctrl_recv()
486 cfpkt_extr_head(pkt, &tmp16, 2); in cfctrl_recv()
488 le16_to_cpu(tmp16); in cfctrl_recv()
/linux-2.6.39/arch/mn10300/kernel/
Dsmp.c156 u16 tmp16; in init_ipi() local
195 tmp16 = GxICR(CALL_FUNCTION_NMI_IPI); in init_ipi()
578 u16 tmp16; in smp_cpu_init() local
615 tmp16 = GxICR(CALL_FUNCTION_NMI_IPI); in smp_cpu_init()
645 u16 tmp16; in smp_prepare_cpu_init() local
649 tmp16 = GxICR(DEBUGGER_NMI_IPI); in smp_prepare_cpu_init()
/linux-2.6.39/drivers/net/
Dcs89x0.c391 u16 tmp16; in readwords() local
393 tmp16 = readword(base_addr, portno); in readwords()
394 *buf8++ = (u8)tmp16; in readwords()
395 *buf8++ = (u8)(tmp16 >> 8); in readwords()
405 u16 tmp16; in writewords() local
407 tmp16 = *buf8++; in writewords()
408 tmp16 |= (*buf8++) << 8; in writewords()
409 writeword(base_addr, portno, tmp16); in writewords()
/linux-2.6.39/drivers/net/tulip/
Dxircom_cb.c207 unsigned short tmp16; in xircom_probe() local
221 pci_read_config_word (pdev,PCI_STATUS, &tmp16); in xircom_probe()
222 pci_write_config_word (pdev, PCI_STATUS,tmp16); in xircom_probe()
/linux-2.6.39/drivers/atm/
Diphase.c1889 u_short tmp16; local
2032 tmp16 = (iadev->seg_ram+CBR_SCHED_TABLE*iadev->memSize)>>17;
2033 IF_INIT(printk("cbr_ptr_base = 0x%x ", tmp16);)
2034 writew(tmp16,iadev->seg_reg+CBR_PTR_BASE);
2039 tmp16 = (CBR_SCHED_TABLE*iadev->memSize) >> 1;
2040 writew(tmp16, iadev->seg_reg+CBR_TAB_BEG);
2041 IF_INIT(printk("cbr_tab_beg = 0x%x in reg = 0x%x \n", tmp16,
2043 writew(tmp16, iadev->seg_reg+CBR_TAB_END+1); // CBR_PTR;
2044 tmp16 = (CBR_SCHED_TABLE*iadev->memSize + iadev->num_vc*6 - 2) >> 1;
2045 writew(tmp16, iadev->seg_reg+CBR_TAB_END);
/linux-2.6.39/drivers/net/wireless/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()
/linux-2.6.39/drivers/staging/westbridge/astoria/arch/arm/mach-omap2/
Dcyashalomap_kernel.c644 u16 tmp16, mux_val; in cy_as_hal_init_user_pads() local
691 tmp16 = *(u16 *)PADCFG_VMA in cy_as_hal_init_user_pads()
696 pad_cfg_tab->pin_num, tmp16, in cy_as_hal_init_user_pads()
/linux-2.6.39/drivers/net/wireless/b43/
Dphy_g.c715 s16 tmp16; in b43_calc_nrssi_threshold() local
722 tmp16 = b43_nrssi_hw_read(dev, 0x20); in b43_calc_nrssi_threshold()
723 if (tmp16 >= 0x20) in b43_calc_nrssi_threshold()
724 tmp16 -= 0x40; in b43_calc_nrssi_threshold()
725 if (tmp16 < 3) { in b43_calc_nrssi_threshold()
Dphy_n.c1386 u16 tmp16; in b43_nphy_workarounds() local
1417 tmp16 = (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) ? in b43_nphy_workarounds()
1419 b43_phy_write(dev, B43_NPHY_ENDROP_TLEN, tmp16); in b43_nphy_workarounds()
/linux-2.6.39/drivers/net/wireless/ipw2x00/
Dipw2100.c3858 u16 tmp16; in show_hardware() local
3869 read_nic_word(dev, nic_data[i].addr, &tmp16); in show_hardware()
3872 tmp16); in show_hardware()