Home
last modified time | relevance | path

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

123

/drivers/media/common/b2c2/
Dflexcop-sram.c239 u8 tmp1, tmp2;
245 tmp2 = 0xa5;
248 sram_write(adapter, addr, &tmp2, 1);
251 tmp2 = 0;
254 sram_read(adapter, addr, &tmp2, 1);
255 sram_read(adapter, addr, &tmp2, 1);
257 dprintk("%s: wrote 0xa5, read 0x%2x\n", __func__, tmp2);
259 if (tmp2 != 0xa5)
262 tmp2 = 0x5a;
265 sram_write(adapter, addr, &tmp2, 1);
[all …]
/drivers/media/dvb-frontends/
Dec100.c94 u8 tmp, tmp2; in ec100_set_frontend() local
124 tmp2 = 0x55; in ec100_set_frontend()
128 tmp2 = 0x64; in ec100_set_frontend()
133 tmp2 = 0x72; in ec100_set_frontend()
139 ret = ec100_write_reg(state, 0x1c, tmp2); in ec100_set_frontend()
217 u8 tmp, tmp2; in ec100_read_ber() local
225 ret = ec100_read_reg(state, 0x66, &tmp2); in ec100_read_ber()
229 ber2 = (tmp2 << 8) | tmp; in ec100_read_ber()
Dtda1004x.c1139 int tmp2; in tda1004x_read_ucblocks() local
1155 tmp2 = tda1004x_read_byte(state, TDA1004X_UNCOR); in tda1004x_read_ucblocks()
1156 if (tmp2 < 0) in tda1004x_read_ucblocks()
1158 tmp2 &= 0x7f; in tda1004x_read_ucblocks()
1159 if ((tmp2 < tmp) || (tmp2 == 0)) in tda1004x_read_ucblocks()
/drivers/cpufreq/
Dgx-suspmod.c338 u8 tmp1, tmp2; in cpufreq_gx_verify() local
353 tmp_freq = gx_validate_speed(policy->min, &tmp1, &tmp2); in cpufreq_gx_verify()
359 tmp_freq = gx_validate_speed(policy->max, &tmp1, &tmp2); in cpufreq_gx_verify()
379 u8 tmp1, tmp2; in cpufreq_gx_target() local
387 tmp_freq = gx_validate_speed(target_freq, &tmp1, &tmp2); in cpufreq_gx_target()
390 tmp_freq = gx_validate_speed(tmp_freq, &tmp1, &tmp2); in cpufreq_gx_target()
394 tmp_freq = gx_validate_speed(tmp_freq, &tmp1, &tmp2); in cpufreq_gx_target()
/drivers/ide/
Daec62xx.c91 u8 tmp0 = 0, tmp1 = 0, tmp2 = 0; in aec6210_set_mode() local
103 tmp2 = 0x00; in aec6210_set_mode()
107 tmp2 = ((ultra_conf << (2*drive->dn)) | (tmp1 & ~(3 << (2*drive->dn)))); in aec6210_set_mode()
108 pci_write_config_byte(dev, 0x54, tmp2); in aec6210_set_mode()
118 u8 tmp1 = 0, tmp2 = 0; in aec6260_set_mode() local
132 tmp2 = ((ultra_conf << (4*unit)) | (tmp1 & ~(7 << (4*unit)))); in aec6260_set_mode()
133 pci_write_config_byte(dev, (0x44|hwif->channel), tmp2); in aec6260_set_mode()
/drivers/watchdog/
Dbooke_wdt.c62 unsigned long tmp2 = ppc_tb_freq; in period_to_sec() local
67 tmp2 = tmp2 / 5 * 2; in period_to_sec()
69 do_div(tmp, tmp2); in period_to_sec()
/drivers/net/
Dmii.c170 u32 advert2 = 0, tmp2 = 0; in mii_ethtool_sset() local
185 tmp2 = advert2 & ~(ADVERTISE_1000HALF | ADVERTISE_1000FULL); in mii_ethtool_sset()
190 tmp2 |= in mii_ethtool_sset()
196 if ((mii->supports_gmii) && (advert2 != tmp2)) in mii_ethtool_sset()
197 mii->mdio_write(dev, mii->phy_id, MII_CTRL1000, tmp2); in mii_ethtool_sset()
/drivers/video/fbdev/i810/
Di810_accel.c438 u32 tmp1, tmp2; in i810fb_init_ringbuffer() local
447 tmp2 = i810_readl(IRING + 8, mmio) & ~RBUFFER_START_MASK; in i810fb_init_ringbuffer()
449 i810_writel(IRING + 8, mmio, tmp2 | tmp1); in i810fb_init_ringbuffer()
453 tmp2 = (par->iring.size - I810_PAGESIZE) & RBUFFER_SIZE_MASK; in i810fb_init_ringbuffer()
454 i810_writel(IRING + 12, mmio, tmp1 | tmp2); in i810fb_init_ringbuffer()
Di810_main.c232 u32 tmp1, tmp2; in i810_load_pll() local
236 tmp2 = i810_readl(DCLK_2D, mmio); in i810_load_pll()
237 tmp2 &= ~MN_MASK; in i810_load_pll()
238 i810_writel(DCLK_2D, mmio, tmp1 | tmp2); in i810_load_pll()
241 tmp2 = i810_readl(DCLK_0DS, mmio); in i810_load_pll()
242 tmp2 &= ~(P_OR << 16); in i810_load_pll()
243 i810_writel(DCLK_0DS, mmio, (tmp1 << 16) | tmp2); in i810_load_pll()
463 u32 tmp1, tmp2; in i810_restore_pll() local
467 tmp2 = i810_readl(DCLK_2D, mmio); in i810_restore_pll()
469 tmp2 &= MN_MASK; in i810_restore_pll()
[all …]
/drivers/net/wireless/broadcom/b43/
Dphy_lp.c214 u16 tmp, tmp2; in lpphy_baseband_rev0_1_init() local
344 tmp2 = (tmp & 0x03E0) >> 5; in lpphy_baseband_rev0_1_init()
345 tmp2 |= tmp2 << 5; in lpphy_baseband_rev0_1_init()
346 b43_phy_write(dev, B43_LPPHY_4C3, tmp2); in lpphy_baseband_rev0_1_init()
348 tmp2 = (tmp & 0x1F00) >> 8; in lpphy_baseband_rev0_1_init()
349 tmp2 |= tmp2 << 5; in lpphy_baseband_rev0_1_init()
350 b43_phy_write(dev, B43_LPPHY_4C4, tmp2); in lpphy_baseband_rev0_1_init()
352 tmp2 = tmp & 0x00FF; in lpphy_baseband_rev0_1_init()
353 tmp2 |= tmp << 8; in lpphy_baseband_rev0_1_init()
354 b43_phy_write(dev, B43_LPPHY_4C5, tmp2); in lpphy_baseband_rev0_1_init()
[all …]
/drivers/gpu/drm/
Ddrm_modes.c236 int tmp1, tmp2; in drm_cvt_mode() local
246 tmp2 = (vdisplay_rnd + 2 * vmargin + CVT_MIN_V_PORCH) * 2 + in drm_cvt_mode()
248 hperiod = tmp1 * 2 / (tmp2 * vfieldrate); in drm_cvt_mode()
302 int tmp1, tmp2; in drm_cvt_mode() local
306 tmp2 = vdisplay_rnd + 2 * vmargin; in drm_cvt_mode()
307 hperiod = tmp1 / (tmp2 * vfieldrate); in drm_cvt_mode()
398 unsigned int tmp1, tmp2; in drm_gtf_mode_complex() local
444 tmp2 = (vdisplay_rnd + 2 * top_margin + GTF_MIN_V_PORCH) * in drm_gtf_mode_complex()
446 hfreq_est = (tmp2 * 1000 * vfieldrate_rqd) / tmp1; in drm_gtf_mode_complex()
/drivers/staging/lustre/lnet/lnet/
Dconfig.c671 struct list_head *tmp2; in lnet_parse_route() local
712 tmp2 = &nets; /* expanding nets */ in lnet_parse_route()
718 tmp2 = &gateways; /* expanding gateways */ in lnet_parse_route()
727 list_add_tail(tmp1, tmp2); in lnet_parse_route()
729 while (tmp1 != tmp2) { in lnet_parse_route()
778 list_for_each(tmp2, &gateways) { in lnet_parse_route()
779 ltb = list_entry(tmp2, struct lnet_text_buf, ltb_list); in lnet_parse_route()
/drivers/scsi/sym53c8xx_2/
Dsym_fw.c367 u32 opcode, new, old, tmp1, tmp2; in sym_fw_bind_script() local
426 tmp2 = cur[2]; in sym_fw_bind_script()
427 if ((tmp1 ^ tmp2) & 3) { in sym_fw_bind_script()
/drivers/net/ethernet/amd/
Dam79c961a.c105 register unsigned int tmp asm("r2"), tmp2 asm("r3"); in am_writebuffer()
108 : "+r" (buf), "=&r" (tmp), "=&r" (tmp2)); in am_writebuffer()
117 : "+r" (offset), "=&r" (tmp), "=&r" (tmp2)); in am_writebuffer()
143 register unsigned int tmp asm("r2"), tmp2 asm("r3"), tmp3; in am_readbuffer()
152 : "=&r" (offset), "=&r" (buf), "=r" (tmp), "=r" (tmp2), "=r" (tmp3) in am_readbuffer()
Dsun3lance.c314 unsigned short tmp1, tmp2; in lance_probe() local
329 tmp2 = ioaddr_probe[1]; in lance_probe()
336 ioaddr_probe[1] = tmp2; in lance_probe()
/drivers/gpu/drm/amd/amdgpu/
Duvd_v4_2.c616 u32 tmp, tmp2; in uvd_v4_2_set_dcm() local
626 tmp2 = UVD_CGC_CTRL2__DYN_OCLK_RAMP_EN_MASK | in uvd_v4_2_set_dcm()
631 tmp2 = 0; in uvd_v4_2_set_dcm()
635 WREG32_UVD_CTX(ixUVD_CGC_CTRL2, tmp2); in uvd_v4_2_set_dcm()
/drivers/target/iscsi/
Discsi_target_parameters.c924 char *tmp1 = NULL, *tmp2 = NULL; in iscsi_check_valuelist_for_support() local
943 tmp2 = strchr(acceptor_values, ','); in iscsi_check_valuelist_for_support()
944 if (tmp2) in iscsi_check_valuelist_for_support()
945 *tmp2 = '\0'; in iscsi_check_valuelist_for_support()
947 if (tmp2) in iscsi_check_valuelist_for_support()
948 *tmp2 = ','; in iscsi_check_valuelist_for_support()
951 if (tmp2) in iscsi_check_valuelist_for_support()
952 *tmp2++ = ','; in iscsi_check_valuelist_for_support()
954 acceptor_values = tmp2; in iscsi_check_valuelist_for_support()
/drivers/video/fbdev/aty/
Dmach64_ct.c284 u8 tmp, tmp2; in aty_set_pll_ct() local
316 tmp2 = par->clk_wr_offset << 1; in aty_set_pll_ct()
318 tmp &= ~(0x03U << tmp2); in aty_set_pll_ct()
319 tmp |= ((pll->ct.vclk_post_div & 0x03U) << tmp2); in aty_set_pll_ct()
Dradeon_pm.c1434 u32 tmp, tmp2; in radeon_pm_reset_pad_ctlr_strength() local
1443 tmp2 = INREG(PAD_CTLR_STRENGTH); in radeon_pm_reset_pad_ctlr_strength()
1444 if (tmp != tmp2) { in radeon_pm_reset_pad_ctlr_strength()
1445 tmp = tmp2; in radeon_pm_reset_pad_ctlr_strength()
2215 u32 tmp, tmp2;
2410 tmp2 = INREG(TMDS_TRANSMITTER_CNTL);
2416 OUTREG(TMDS_TRANSMITTER_CNTL, tmp2);
2492 tmp2 = INREG(FP_GEN_CNTL);
2500 tmp2 &= ~2;
2501 tmp2 |= FP_TMDS_EN;
[all …]
/drivers/platform/x86/
Dhp-wmi.c507 long unsigned int tmp2; in set_postcode() local
509 ret = kstrtoul(buf, 10, &tmp2); in set_postcode()
510 if (ret || tmp2 != 1) in set_postcode()
514 tmp = (u32) tmp2; in set_postcode()
/drivers/iio/frequency/
Dad9523.c412 long tmp1, tmp2; in ad9523_set_clock_provider() local
421 tmp2 = st->vco_out_freq[AD9523_VCO2] / freq; in ad9523_set_clock_provider()
423 tmp2 *= freq; in ad9523_set_clock_provider()
424 use_alt_clk_src = (abs(tmp1 - freq) > abs(tmp2 - freq)); in ad9523_set_clock_provider()
/drivers/net/ethernet/cavium/liquidio/
Docteon_droq.c745 struct list_head *tmp, *tmp2; in octeon_droq_process_packets() local
768 list_for_each_safe(tmp, tmp2, &droq->dispatch_list) { in octeon_droq_process_packets()
795 struct list_head *tmp, *tmp2; in octeon_droq_process_poll_pkts() local
825 list_for_each_safe(tmp, tmp2, &droq->dispatch_list) { in octeon_droq_process_poll_pkts()
/drivers/scsi/csiostor/
Dcsio_lnode.c140 struct list_head *tmp1, *tmp2; in csio_ln_lookup_by_vnpi() local
159 list_for_each(tmp2, &sln->cln_head) { in csio_ln_lookup_by_vnpi()
160 cln = (struct csio_lnode *) tmp2; in csio_ln_lookup_by_vnpi()
180 struct list_head *tmp1, *tmp2; in csio_lnode_lookup_by_wwpn() local
199 list_for_each(tmp2, &sln->cln_head) { in csio_lnode_lookup_by_wwpn()
200 cln = (struct csio_lnode *) tmp2; in csio_lnode_lookup_by_wwpn()
/drivers/net/ethernet/microchip/
Denc28j60.c826 u16 tmp1, tmp2; in enc28j60_dump_tsv() local
833 tmp2 = tsv[5]; in enc28j60_dump_tsv()
834 tmp2 <<= 8; in enc28j60_dump_tsv()
835 tmp2 |= tsv[4]; in enc28j60_dump_tsv()
838 " TotByteOnWire: %d\n", tmp1, tsv[2] & 0x0f, tmp2); in enc28j60_dump_tsv()
/drivers/staging/rtl8188eu/hal/
Dphy.c949 s32 tmp1 = 0, tmp2 = 0; in simularity_compare() local
961 tmp2 = resulta[c2][i] | 0xFFFFFC00; in simularity_compare()
963 tmp2 = resulta[c2][i]; in simularity_compare()
966 tmp2 = resulta[c2][i]; in simularity_compare()
969 diff = abs(tmp1 - tmp2); in simularity_compare()

123