Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 200 of 3190) sorted by relevance

12345678910>>...16

/linux-4.1.27/drivers/staging/skein/
Dthreefish_block.c507 u64 tmp; in threefish_decrypt_256() local
513 tmp = b3 ^ b0; in threefish_decrypt_256()
514 b3 = (tmp >> 32) | (tmp << (64 - 32)); in threefish_decrypt_256()
517 tmp = b1 ^ b2; in threefish_decrypt_256()
518 b1 = (tmp >> 32) | (tmp << (64 - 32)); in threefish_decrypt_256()
521 tmp = b1 ^ b0; in threefish_decrypt_256()
522 b1 = (tmp >> 58) | (tmp << (64 - 58)); in threefish_decrypt_256()
525 tmp = b3 ^ b2; in threefish_decrypt_256()
526 b3 = (tmp >> 22) | (tmp << (64 - 22)); in threefish_decrypt_256()
529 tmp = b3 ^ b0; in threefish_decrypt_256()
[all …]
/linux-4.1.27/drivers/staging/fbtft/
Dfb_ssd1331.c133 unsigned long tmp[GAMMA_NUM * GAMMA_LEN]; in set_gamma() local
146 tmp[i] = acc; in set_gamma()
156 tmp[0], tmp[1], tmp[2], tmp[3], tmp[4], tmp[5], tmp[6], tmp[7], in set_gamma()
157 tmp[8], tmp[9], tmp[10], tmp[11], tmp[12], tmp[13], tmp[14], tmp[15], in set_gamma()
158 tmp[16], tmp[17], tmp[18], tmp[19], tmp[20], tmp[21], tmp[22], tmp[23], in set_gamma()
159 tmp[24], tmp[25], tmp[26], tmp[27], tmp[28], tmp[29], tmp[30], tmp[31], in set_gamma()
160 tmp[32], tmp[33], tmp[34], tmp[35], tmp[36], tmp[37], tmp[38], tmp[39], in set_gamma()
161 tmp[40], tmp[41], tmp[42], tmp[43], tmp[44], tmp[45], tmp[46], tmp[47], in set_gamma()
162 tmp[48], tmp[49], tmp[50], tmp[51], tmp[52], tmp[53], tmp[54], tmp[55], in set_gamma()
163 tmp[56], tmp[57], tmp[58], tmp[59], tmp[60], tmp[61], tmp[62]); in set_gamma()
Dfb_ssd1351.c130 unsigned long tmp[GAMMA_NUM * GAMMA_LEN]; in set_gamma() local
143 tmp[i] = acc; in set_gamma()
153 tmp[0], tmp[1], tmp[2], tmp[3], tmp[4], tmp[5], tmp[6], tmp[7], in set_gamma()
154 tmp[8], tmp[9], tmp[10], tmp[11], tmp[12], tmp[13], tmp[14], tmp[15], in set_gamma()
155 tmp[16], tmp[17], tmp[18], tmp[19], tmp[20], tmp[21], tmp[22], tmp[23], in set_gamma()
156 tmp[24], tmp[25], tmp[26], tmp[27], tmp[28], tmp[29], tmp[30], tmp[31], in set_gamma()
157 tmp[32], tmp[33], tmp[34], tmp[35], tmp[36], tmp[37], tmp[38], tmp[39], in set_gamma()
158 tmp[40], tmp[41], tmp[42], tmp[43], tmp[44], tmp[45], tmp[46], tmp[47], in set_gamma()
159 tmp[48], tmp[49], tmp[50], tmp[51], tmp[52], tmp[53], tmp[54], tmp[55], in set_gamma()
160 tmp[56], tmp[57], tmp[58], tmp[59], tmp[60], tmp[61], tmp[62]); in set_gamma()
/linux-4.1.27/drivers/gpu/drm/radeon/
Dvce_v2_0.c36 u32 tmp; in vce_v2_0_set_sw_cg() local
39 tmp = RREG32(VCE_CLOCK_GATING_B); in vce_v2_0_set_sw_cg()
40 tmp |= 0xe70000; in vce_v2_0_set_sw_cg()
41 WREG32(VCE_CLOCK_GATING_B, tmp); in vce_v2_0_set_sw_cg()
43 tmp = RREG32(VCE_UENC_CLOCK_GATING); in vce_v2_0_set_sw_cg()
44 tmp |= 0xff000000; in vce_v2_0_set_sw_cg()
45 WREG32(VCE_UENC_CLOCK_GATING, tmp); in vce_v2_0_set_sw_cg()
47 tmp = RREG32(VCE_UENC_REG_CLOCK_GATING); in vce_v2_0_set_sw_cg()
48 tmp &= ~0x3fc; in vce_v2_0_set_sw_cg()
49 WREG32(VCE_UENC_REG_CLOCK_GATING, tmp); in vce_v2_0_set_sw_cg()
[all …]
Dradeon_clocks.c195 u32 tmp = RREG32_PLL(RADEON_PPLL_REF_DIV); in radeon_get_clock_info() local
198 (tmp & R300_PPLL_REF_DIV_ACC_MASK) >> R300_PPLL_REF_DIV_ACC_SHIFT; in radeon_get_clock_info()
200 p1pll->reference_div = tmp & RADEON_PPLL_REF_DIV_MASK; in radeon_get_clock_info()
388 uint32_t tmp; in radeon_legacy_set_engine_clock() local
395 tmp = RREG32_PLL(RADEON_CLK_PIN_CNTL); in radeon_legacy_set_engine_clock()
396 tmp &= ~RADEON_DONT_USE_XTALIN; in radeon_legacy_set_engine_clock()
397 WREG32_PLL(RADEON_CLK_PIN_CNTL, tmp); in radeon_legacy_set_engine_clock()
399 tmp = RREG32_PLL(RADEON_SCLK_CNTL); in radeon_legacy_set_engine_clock()
400 tmp &= ~RADEON_SCLK_SRC_SEL_MASK; in radeon_legacy_set_engine_clock()
401 WREG32_PLL(RADEON_SCLK_CNTL, tmp); in radeon_legacy_set_engine_clock()
[all …]
Drs400.c62 uint32_t tmp; in rs400_gart_tlb_flush() local
67 tmp = RREG32_MC(RS480_GART_CACHE_CNTRL); in rs400_gart_tlb_flush()
68 if ((tmp & RS480_GART_CACHE_INVALIDATE) == 0) in rs400_gart_tlb_flush()
110 uint32_t tmp; in rs400_gart_enable() local
112 tmp = RREG32_MC(RS690_AIC_CTRL_SCRATCH); in rs400_gart_enable()
113 tmp |= RS690_DIS_OUT_OF_PCI_GART_ACCESS; in rs400_gart_enable()
114 WREG32_MC(RS690_AIC_CTRL_SCRATCH, tmp); in rs400_gart_enable()
149 tmp = REG_SET(RS690_MC_AGP_TOP, rdev->mc.gtt_end >> 16); in rs400_gart_enable()
150 tmp |= REG_SET(RS690_MC_AGP_START, rdev->mc.gtt_start >> 16); in rs400_gart_enable()
152 WREG32_MC(RS690_MCCFG_AGP_LOCATION, tmp); in rs400_gart_enable()
[all …]
Dr600.c251 u32 tmp = 0; in dce3_program_fmt() local
276 tmp |= FMT_SPATIAL_DITHER_EN; in dce3_program_fmt()
278 tmp |= FMT_TRUNCATE_EN; in dce3_program_fmt()
283 tmp |= (FMT_SPATIAL_DITHER_EN | FMT_SPATIAL_DITHER_DEPTH); in dce3_program_fmt()
285 tmp |= (FMT_TRUNCATE_EN | FMT_TRUNCATE_DEPTH); in dce3_program_fmt()
293 WREG32(FMT_BIT_DEPTH_CONTROL + radeon_crtc->crtc_offset, tmp); in dce3_program_fmt()
809 u32 tmp; in r600_hpd_set_polarity() local
815 tmp = RREG32(DC_HPD1_INT_CONTROL); in r600_hpd_set_polarity()
817 tmp &= ~DC_HPDx_INT_POLARITY; in r600_hpd_set_polarity()
819 tmp |= DC_HPDx_INT_POLARITY; in r600_hpd_set_polarity()
[all …]
Dradeon_dp_auxch.c62 uint32_t tmp, ack = 0; in radeon_dp_aux_transfer_native() local
99 tmp = RREG32(chan->rec.mask_clk_reg); in radeon_dp_aux_transfer_native()
100 tmp |= (1 << 16); in radeon_dp_aux_transfer_native()
101 WREG32(chan->rec.mask_clk_reg, tmp); in radeon_dp_aux_transfer_native()
104 tmp = RREG32(AUX_CONTROL + aux_offset[instance]); in radeon_dp_aux_transfer_native()
106 tmp &= AUX_HPD_SEL(0x7); in radeon_dp_aux_transfer_native()
107 tmp |= AUX_HPD_SEL(chan->rec.hpd); in radeon_dp_aux_transfer_native()
108 tmp |= AUX_EN | AUX_LS_READ_EN | AUX_HPD_DISCON(0x1); in radeon_dp_aux_transfer_native()
110 WREG32(AUX_CONTROL + aux_offset[instance], tmp); in radeon_dp_aux_transfer_native()
153 tmp = RREG32(AUX_SW_STATUS + aux_offset[instance]); in radeon_dp_aux_transfer_native()
[all …]
Drs600.c116 u32 tmp = RREG32(AVIVO_D1GRPH_UPDATE + radeon_crtc->crtc_offset); in rs600_page_flip() local
120 tmp |= AVIVO_D1GRPH_UPDATE_LOCK; in rs600_page_flip()
121 WREG32(AVIVO_D1GRPH_UPDATE + radeon_crtc->crtc_offset, tmp); in rs600_page_flip()
138 tmp &= ~AVIVO_D1GRPH_UPDATE_LOCK; in rs600_page_flip()
139 WREG32(AVIVO_D1GRPH_UPDATE + radeon_crtc->crtc_offset, tmp); in rs600_page_flip()
158 u32 tmp = 0; in avivo_program_fmt() local
178 tmp |= AVIVO_TMDS_BIT_DEPTH_CONTROL_SPATIAL_DITHER_EN; in avivo_program_fmt()
180 tmp |= AVIVO_TMDS_BIT_DEPTH_CONTROL_TRUNCATE_EN; in avivo_program_fmt()
185 tmp |= (AVIVO_TMDS_BIT_DEPTH_CONTROL_SPATIAL_DITHER_EN | in avivo_program_fmt()
188 tmp |= (AVIVO_TMDS_BIT_DEPTH_CONTROL_TRUNCATE_EN | in avivo_program_fmt()
[all …]
Dr300.c59 uint32_t tmp; in rv370_pcie_gart_tlb_flush() local
64 tmp = RREG32_PCIE(RADEON_PCIE_TX_GART_CNTL); in rv370_pcie_gart_tlb_flush()
65 WREG32_PCIE(RADEON_PCIE_TX_GART_CNTL, tmp | RADEON_PCIE_TX_GART_INVALIDATE_TLB); in rv370_pcie_gart_tlb_flush()
67 WREG32_PCIE(RADEON_PCIE_TX_GART_CNTL, tmp); in rv370_pcie_gart_tlb_flush()
125 uint32_t tmp; in rv370_pcie_gart_enable() local
136 tmp = RADEON_PCIE_TX_GART_UNMAPPED_ACCESS_DISCARD; in rv370_pcie_gart_enable()
137 WREG32_PCIE(RADEON_PCIE_TX_GART_CNTL, tmp); in rv370_pcie_gart_enable()
139 tmp = rdev->mc.gtt_end & ~RADEON_GPU_PAGE_MASK; in rv370_pcie_gart_enable()
140 WREG32_PCIE(RADEON_PCIE_TX_GART_END_LO, tmp); in rv370_pcie_gart_enable()
150 tmp = RREG32_PCIE(RADEON_PCIE_TX_GART_CNTL); in rv370_pcie_gart_enable()
[all …]
Dradeon_i2c.c336 u32 tmp, reg; in r100_hw_i2c_xfer() local
351 tmp = RREG32(RADEON_BIOS_6_SCRATCH); in r100_hw_i2c_xfer()
352 WREG32(RADEON_BIOS_6_SCRATCH, tmp | ATOM_S6_HW_I2C_BUSY_STATE); in r100_hw_i2c_xfer()
479 tmp = RREG32(i2c_cntl_0); in r100_hw_i2c_xfer()
480 if (tmp & RADEON_I2C_GO) in r100_hw_i2c_xfer()
482 tmp = RREG32(i2c_cntl_0); in r100_hw_i2c_xfer()
483 if (tmp & RADEON_I2C_DONE) in r100_hw_i2c_xfer()
486 DRM_DEBUG("i2c write error 0x%08x\n", tmp); in r100_hw_i2c_xfer()
487 WREG32(i2c_cntl_0, tmp | RADEON_I2C_ABORT); in r100_hw_i2c_xfer()
511 tmp = RREG32(i2c_cntl_0); in r100_hw_i2c_xfer()
[all …]
Dci_smc.c116 u32 tmp = RREG32_SMC(SMC_SYSCON_RESET_CNTL); in ci_start_smc() local
118 tmp &= ~RST_REG; in ci_start_smc()
119 WREG32_SMC(SMC_SYSCON_RESET_CNTL, tmp); in ci_start_smc()
124 u32 tmp = RREG32_SMC(SMC_SYSCON_RESET_CNTL); in ci_reset_smc() local
126 tmp |= RST_REG; in ci_reset_smc()
127 WREG32_SMC(SMC_SYSCON_RESET_CNTL, tmp); in ci_reset_smc()
139 u32 tmp = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0); in ci_stop_smc_clock() local
141 tmp |= CK_DISABLE; in ci_stop_smc_clock()
143 WREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0, tmp); in ci_stop_smc_clock()
148 u32 tmp = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0); in ci_start_smc_clock() local
[all …]
Dsi_smc.c115 u32 tmp = RREG32_SMC(SMC_SYSCON_RESET_CNTL); in si_start_smc() local
117 tmp &= ~RST_REG; in si_start_smc()
119 WREG32_SMC(SMC_SYSCON_RESET_CNTL, tmp); in si_start_smc()
124 u32 tmp; in si_reset_smc() local
131 tmp = RREG32_SMC(SMC_SYSCON_RESET_CNTL); in si_reset_smc()
132 tmp |= RST_REG; in si_reset_smc()
133 WREG32_SMC(SMC_SYSCON_RESET_CNTL, tmp); in si_reset_smc()
145 u32 tmp = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0); in si_stop_smc_clock() local
147 tmp |= CK_DISABLE; in si_stop_smc_clock()
149 WREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0, tmp); in si_stop_smc_clock()
[all …]
Ddce6_afmt.c64 u32 offset, tmp; in dce6_afmt_get_connected_pins() local
68 tmp = RREG32_ENDPOINT(offset, in dce6_afmt_get_connected_pins()
70 if (((tmp & PORT_CONNECTIVITY_MASK) >> PORT_CONNECTIVITY_SHIFT) == 1) in dce6_afmt_get_connected_pins()
111 u32 tmp = 0; in dce6_afmt_write_latency_fields() local
118 tmp = VIDEO_LIPSYNC(connector->video_latency[1]) | in dce6_afmt_write_latency_fields()
121 tmp = VIDEO_LIPSYNC(0) | AUDIO_LIPSYNC(0); in dce6_afmt_write_latency_fields()
124 tmp = VIDEO_LIPSYNC(connector->video_latency[0]) | in dce6_afmt_write_latency_fields()
127 tmp = VIDEO_LIPSYNC(0) | AUDIO_LIPSYNC(0); in dce6_afmt_write_latency_fields()
130 AZ_F0_CODEC_PIN_CONTROL_RESPONSE_LIPSYNC, tmp); in dce6_afmt_write_latency_fields()
139 u32 tmp; in dce6_afmt_hdmi_write_speaker_allocation() local
[all …]
Devergreen.c1226 u32 tmp = 0; in dce4_program_fmt() local
1251 tmp |= (FMT_FRAME_RANDOM_ENABLE | FMT_HIGHPASS_RANDOM_ENABLE | in dce4_program_fmt()
1254 tmp |= FMT_TRUNCATE_EN; in dce4_program_fmt()
1259 tmp |= (FMT_FRAME_RANDOM_ENABLE | FMT_HIGHPASS_RANDOM_ENABLE | in dce4_program_fmt()
1263 tmp |= (FMT_TRUNCATE_EN | FMT_TRUNCATE_DEPTH); in dce4_program_fmt()
1271 WREG32(FMT_BIT_DEPTH_CONTROL + radeon_crtc->crtc_offset, tmp); in dce4_program_fmt()
1347 u32 tmp = RREG32(EVERGREEN_GRPH_UPDATE + radeon_crtc->crtc_offset); in evergreen_page_flip() local
1351 tmp |= EVERGREEN_GRPH_UPDATE_LOCK; in evergreen_page_flip()
1352 WREG32(EVERGREEN_GRPH_UPDATE + radeon_crtc->crtc_offset, tmp); in evergreen_page_flip()
1374 tmp &= ~EVERGREEN_GRPH_UPDATE_LOCK; in evergreen_page_flip()
[all …]
Devergreen_hdmi.c41 u32 tmp = RREG32(AZ_HOT_PLUG_CONTROL); in dce4_audio_enable() local
47 tmp |= AUDIO_ENABLED; in dce4_audio_enable()
49 tmp |= PIN0_AUDIO_ENABLED; in dce4_audio_enable()
51 tmp |= PIN1_AUDIO_ENABLED; in dce4_audio_enable()
53 tmp |= PIN2_AUDIO_ENABLED; in dce4_audio_enable()
55 tmp |= PIN3_AUDIO_ENABLED; in dce4_audio_enable()
57 tmp &= ~(AUDIO_ENABLED | in dce4_audio_enable()
64 WREG32(AZ_HOT_PLUG_CONTROL, tmp); in dce4_audio_enable()
101 u32 tmp = 0; in dce4_afmt_write_latency_fields() local
105 tmp = VIDEO_LIPSYNC(connector->video_latency[1]) | in dce4_afmt_write_latency_fields()
[all …]
Dsi.c1311 u32 tmp; in si_get_xclk() local
1313 tmp = RREG32(CG_CLKPIN_CNTL_2); in si_get_xclk()
1314 if (tmp & MUX_TCLK_TO_XCLK) in si_get_xclk()
1317 tmp = RREG32(CG_CLKPIN_CNTL); in si_get_xclk()
1318 if (tmp & XTALIN_DIVIDE) in si_get_xclk()
1916 u32 tmp, buffer_alloc, i; in dce6_line_buffer_adjust() local
1933 tmp = 0; /* 1/2 */ in dce6_line_buffer_adjust()
1936 tmp = 2; /* whole */ in dce6_line_buffer_adjust()
1940 tmp = 0; in dce6_line_buffer_adjust()
1945 DC_LB_MEMORY_CONFIG(tmp)); in dce6_line_buffer_adjust()
[all …]
Ddce3_1_afmt.c34 u32 tmp; in dce3_2_afmt_hdmi_write_speaker_allocation() local
37 tmp = RREG32_ENDPOINT(0, AZ_F0_CODEC_PIN0_CONTROL_CHANNEL_SPEAKER); in dce3_2_afmt_hdmi_write_speaker_allocation()
38 tmp &= ~(DP_CONNECTION | SPEAKER_ALLOCATION_MASK); in dce3_2_afmt_hdmi_write_speaker_allocation()
40 tmp |= HDMI_CONNECTION; in dce3_2_afmt_hdmi_write_speaker_allocation()
42 tmp |= SPEAKER_ALLOCATION(sadb[0]); in dce3_2_afmt_hdmi_write_speaker_allocation()
44 tmp |= SPEAKER_ALLOCATION(5); /* stereo */ in dce3_2_afmt_hdmi_write_speaker_allocation()
45 WREG32_ENDPOINT(0, AZ_F0_CODEC_PIN0_CONTROL_CHANNEL_SPEAKER, tmp); in dce3_2_afmt_hdmi_write_speaker_allocation()
52 u32 tmp; in dce3_2_afmt_dp_write_speaker_allocation() local
55 tmp = RREG32_ENDPOINT(0, AZ_F0_CODEC_PIN0_CONTROL_CHANNEL_SPEAKER); in dce3_2_afmt_dp_write_speaker_allocation()
56 tmp &= ~(HDMI_CONNECTION | SPEAKER_ALLOCATION_MASK); in dce3_2_afmt_dp_write_speaker_allocation()
[all …]
Drv515.c133 uint32_t tmp; in rv515_mc_wait_for_idle() local
137 tmp = RREG32_MC(MC_STATUS); in rv515_mc_wait_for_idle()
138 if (tmp & MC_STATUS_IDLE) { in rv515_mc_wait_for_idle()
154 unsigned pipe_select_current, gb_pipe_select, tmp; in rv515_gpu_init() local
163 tmp = RREG32(R300_DST_PIPE_CONFIG); in rv515_gpu_init()
164 pipe_select_current = (tmp >> 2) & 3; in rv515_gpu_init()
165 tmp = (1 << pipe_select_current) | in rv515_gpu_init()
167 WREG32_PLL(0x000D, tmp); in rv515_gpu_init()
180 uint32_t tmp; in rv515_vram_get_type() local
184 tmp = RREG32_MC(RV515_MC_CNTL) & MEM_NUM_CHANNELS_MASK; in rv515_vram_get_type()
[all …]
Drv770.c793 u32 tmp = RREG32(CG_CLKPIN_CNTL); in rv770_get_xclk() local
795 if (tmp & MUX_TCLK_TO_XCLK) in rv770_get_xclk()
798 if (tmp & XTALIN_DIVIDE) in rv770_get_xclk()
807 u32 tmp = RREG32(AVIVO_D1GRPH_UPDATE + radeon_crtc->crtc_offset); in rv770_page_flip() local
811 tmp |= AVIVO_D1GRPH_UPDATE_LOCK; in rv770_page_flip()
812 WREG32(AVIVO_D1GRPH_UPDATE + radeon_crtc->crtc_offset, tmp); in rv770_page_flip()
836 tmp &= ~AVIVO_D1GRPH_UPDATE_LOCK; in rv770_page_flip()
837 WREG32(AVIVO_D1GRPH_UPDATE + radeon_crtc->crtc_offset, tmp); in rv770_page_flip()
893 u32 tmp; in rv770_pcie_gart_enable() local
910 tmp = ENABLE_L1_TLB | ENABLE_L1_FRAGMENT_PROCESSING | in rv770_pcie_gart_enable()
[all …]
/linux-4.1.27/drivers/scsi/mvsas/
Dmv_64xx.c47 u32 tmp; in mvs_64xx_enable_xmt() local
49 tmp = mr32(MVS_PCS); in mvs_64xx_enable_xmt()
51 tmp |= 1 << (phy_id + PCS_EN_PORT_XMT_SHIFT); in mvs_64xx_enable_xmt()
53 tmp |= 1 << (phy_id + PCS_EN_PORT_XMT_SHIFT2); in mvs_64xx_enable_xmt()
54 mw32(MVS_PCS, tmp); in mvs_64xx_enable_xmt()
86 u32 reg, tmp; in mvs_64xx_stp_reset() local
97 tmp = reg; in mvs_64xx_stp_reset()
99 tmp |= (1U << phy_id) << PCTL_LINK_OFFS; in mvs_64xx_stp_reset()
101 tmp |= (1U << (phy_id - MVS_SOC_PORTS)) << PCTL_LINK_OFFS; in mvs_64xx_stp_reset()
105 pci_write_config_dword(mvi->pdev, PCR_PHY_CTL, tmp); in mvs_64xx_stp_reset()
[all …]
Dmv_94xx.c54 u32 tmp, setting_0 = 0, setting_1 = 0; in set_phy_tuning() local
97 tmp = mvs_read_port_vsr_data(mvi, phy_id); in set_phy_tuning()
98 tmp &= ~(0xFBE << 16); in set_phy_tuning()
99 tmp |= (((phy_tuning.trans_emp_en << 11) | in set_phy_tuning()
102 mvs_write_port_vsr_data(mvi, phy_id, tmp); in set_phy_tuning()
106 tmp = mvs_read_port_vsr_data(mvi, phy_id); in set_phy_tuning()
107 tmp &= ~(0xC000); in set_phy_tuning()
108 tmp |= (phy_tuning.trans_amp_adj << 14); in set_phy_tuning()
109 mvs_write_port_vsr_data(mvi, phy_id, tmp); in set_phy_tuning()
116 u32 tmp; in set_phy_ffe_tuning() local
[all …]
/linux-4.1.27/drivers/video/fbdev/kyro/
DSTG4000Ramdac.c29 u32 tmp = 0; in InitialiseRamdac() local
35 tmp = STG_READ_REG(SoftwareReset); in InitialiseRamdac()
37 if (tmp & 0x1) { in InitialiseRamdac()
39 STG_WRITE_REG(SoftwareReset, tmp); in InitialiseRamdac()
43 tmp = STG_READ_REG(DACPixelFormat); in InitialiseRamdac()
53 tmp |= _16BPP; in InitialiseRamdac()
60 tmp |= _32BPP; in InitialiseRamdac()
67 STG_WRITE_REG(DACPixelFormat, tmp); in InitialiseRamdac()
76 tmp = STG_READ_REG(DACPrimSize); in InitialiseRamdac()
79 tmp |= in InitialiseRamdac()
[all …]
DSTG4000OverlayDevice.c81 u32 tmp; in ResetOverlayRegisters() local
84 tmp = STG_READ_REG(DACOverlayAddr); in ResetOverlayRegisters()
87 STG_WRITE_REG(DACOverlayAddr, tmp); in ResetOverlayRegisters()
90 tmp = STG_READ_REG(DACOverlayUAddr); in ResetOverlayRegisters()
92 STG_WRITE_REG(DACOverlayUAddr, tmp); in ResetOverlayRegisters()
95 tmp = STG_READ_REG(DACOverlayVAddr); in ResetOverlayRegisters()
97 STG_WRITE_REG(DACOverlayVAddr, tmp); in ResetOverlayRegisters()
100 tmp = STG_READ_REG(DACOverlaySize); in ResetOverlayRegisters()
103 STG_WRITE_REG(DACOverlaySize, tmp); in ResetOverlayRegisters()
106 tmp = STG4000_NO_DECIMATION; in ResetOverlayRegisters()
[all …]
DSTG4000VTG.c19 u32 tmp; in DisableVGA() local
23 tmp = STG_READ_REG(SoftwareReset); in DisableVGA()
25 STG_WRITE_REG(SoftwareReset, tmp); in DisableVGA()
33 tmp = STG_READ_REG(SoftwareReset); in DisableVGA()
34 tmp |= SET_BIT(8); in DisableVGA()
35 STG_WRITE_REG(SoftwareReset, tmp); in DisableVGA()
40 u32 tmp = 0; in StopVTG() local
43 tmp = (STG_READ_REG(DACSyncCtrl)) | SET_BIT(0) | SET_BIT(2); in StopVTG()
45 STG_WRITE_REG(DACSyncCtrl, tmp); in StopVTG()
50 u32 tmp = 0; in StartVTG() local
[all …]
DSTG4000InitDevice.c248 u32 tmp; in SetCoreClockPLL() local
254 tmp = STG_READ_REG(Thread0Enable); in SetCoreClockPLL()
256 STG_WRITE_REG(Thread0Enable, tmp); in SetCoreClockPLL()
259 tmp = STG_READ_REG(Thread1Enable); in SetCoreClockPLL()
261 STG_WRITE_REG(Thread1Enable, tmp); in SetCoreClockPLL()
292 tmp = ((CORE_PLL_MODE_REG_0_7 << 8) | (core_pll & 0x00FF)); in SetCoreClockPLL()
293 pci_write_config_word(pDev, CorePllControl, tmp); in SetCoreClockPLL()
299 tmp |= SET_BIT(14); in SetCoreClockPLL()
300 pci_write_config_word(pDev, CorePllControl, tmp); in SetCoreClockPLL()
304 tmp = in SetCoreClockPLL()
[all …]
/linux-4.1.27/lib/
Dkstrtox.c148 unsigned long long tmp; in kstrtoll() local
152 rv = _kstrtoull(s + 1, base, &tmp); in kstrtoll()
155 if ((long long)(-tmp) >= 0) in kstrtoll()
157 *res = -tmp; in kstrtoll()
159 rv = kstrtoull(s, base, &tmp); in kstrtoll()
162 if ((long long)tmp < 0) in kstrtoll()
164 *res = tmp; in kstrtoll()
173 unsigned long long tmp; in _kstrtoul() local
176 rv = kstrtoull(s, base, &tmp); in _kstrtoul()
179 if (tmp != (unsigned long long)(unsigned long)tmp) in _kstrtoul()
[all …]
Drbtree.c76 struct rb_node *parent = rb_red_parent(node), *gparent, *tmp; in __rb_insert() local
94 tmp = gparent->rb_right; in __rb_insert()
95 if (parent != tmp) { /* parent == gparent->rb_left */ in __rb_insert()
96 if (tmp && rb_is_red(tmp)) { in __rb_insert()
110 rb_set_parent_color(tmp, gparent, RB_BLACK); in __rb_insert()
118 tmp = parent->rb_right; in __rb_insert()
119 if (node == tmp) { in __rb_insert()
132 parent->rb_right = tmp = node->rb_left; in __rb_insert()
134 if (tmp) in __rb_insert()
135 rb_set_parent_color(tmp, parent, in __rb_insert()
[all …]
Dfind_bit.c34 unsigned long tmp; in _find_next_bit() local
39 tmp = addr[start / BITS_PER_LONG] ^ invert; in _find_next_bit()
42 tmp &= BITMAP_FIRST_WORD_MASK(start); in _find_next_bit()
45 while (!tmp) { in _find_next_bit()
50 tmp = addr[start / BITS_PER_LONG] ^ invert; in _find_next_bit()
53 return min(start + __ffs(tmp), nbits); in _find_next_bit()
152 unsigned long tmp; in _find_next_bit_le() local
157 tmp = addr[start / BITS_PER_LONG] ^ invert; in _find_next_bit_le()
160 tmp &= ext2_swab(BITMAP_FIRST_WORD_MASK(start)); in _find_next_bit_le()
163 while (!tmp) { in _find_next_bit_le()
[all …]
/linux-4.1.27/drivers/devfreq/exynos/
Dexynos4_bus.c294 unsigned int tmp; in exynos4210_set_busclk() local
304 tmp = data->dmc_divtable[index]; in exynos4210_set_busclk()
306 __raw_writel(tmp, EXYNOS4_CLKDIV_DMC0); in exynos4210_set_busclk()
309 tmp = __raw_readl(EXYNOS4_CLKDIV_STAT_DMC0); in exynos4210_set_busclk()
310 } while (tmp & 0x11111111); in exynos4210_set_busclk()
313 tmp = data->top_divtable[index]; in exynos4210_set_busclk()
315 __raw_writel(tmp, EXYNOS4_CLKDIV_TOP); in exynos4210_set_busclk()
318 tmp = __raw_readl(EXYNOS4_CLKDIV_STAT_TOP); in exynos4210_set_busclk()
319 } while (tmp & 0x11111); in exynos4210_set_busclk()
322 tmp = __raw_readl(EXYNOS4_CLKDIV_LEFTBUS); in exynos4210_set_busclk()
[all …]
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_audio.c100 uint32_t tmp; in intel_eld_uptodate() local
103 tmp = I915_READ(reg_eldv); in intel_eld_uptodate()
104 tmp &= bits_eldv; in intel_eld_uptodate()
106 if (!tmp) in intel_eld_uptodate()
109 tmp = I915_READ(reg_elda); in intel_eld_uptodate()
110 tmp &= ~bits_elda; in intel_eld_uptodate()
111 I915_WRITE(reg_elda, tmp); in intel_eld_uptodate()
123 uint32_t eldv, tmp; in g4x_audio_codec_disable() local
127 tmp = I915_READ(G4X_AUD_VID_DID); in g4x_audio_codec_disable()
128 if (tmp == INTEL_AUDIO_DEVBLC || tmp == INTEL_AUDIO_DEVCL) in g4x_audio_codec_disable()
[all …]
Di915_gem_batch_pool.c94 struct drm_i915_gem_object *tmp, *next; in i915_gem_batch_pool_get() local
98 list_for_each_entry_safe(tmp, next, in i915_gem_batch_pool_get()
101 if (tmp->active) in i915_gem_batch_pool_get()
105 if (tmp->madv == __I915_MADV_PURGED) { in i915_gem_batch_pool_get()
106 list_del(&tmp->batch_pool_list); in i915_gem_batch_pool_get()
107 drm_gem_object_unreference(&tmp->base); in i915_gem_batch_pool_get()
116 if (tmp->base.size >= size && in i915_gem_batch_pool_get()
117 tmp->base.size <= (2 * size)) { in i915_gem_batch_pool_get()
118 obj = tmp; in i915_gem_batch_pool_get()
/linux-4.1.27/fs/
Dfilesystems.c103 struct file_system_type ** tmp; in unregister_filesystem() local
106 tmp = &file_systems; in unregister_filesystem()
107 while (*tmp) { in unregister_filesystem()
108 if (fs == *tmp) { in unregister_filesystem()
109 *tmp = fs->next; in unregister_filesystem()
115 tmp = &(*tmp)->next; in unregister_filesystem()
127 struct file_system_type * tmp; in fs_index() local
138 for (tmp=file_systems, index=0 ; tmp ; tmp=tmp->next, index++) { in fs_index()
139 if (strcmp(tmp->name, name->name) == 0) { in fs_index()
151 struct file_system_type * tmp; in fs_name() local
[all …]
Dstat.c143 struct __old_kernel_stat tmp; in cp_old_stat() local
154 memset(&tmp, 0, sizeof(struct __old_kernel_stat)); in cp_old_stat()
155 tmp.st_dev = old_encode_dev(stat->dev); in cp_old_stat()
156 tmp.st_ino = stat->ino; in cp_old_stat()
157 if (sizeof(tmp.st_ino) < sizeof(stat->ino) && tmp.st_ino != stat->ino) in cp_old_stat()
159 tmp.st_mode = stat->mode; in cp_old_stat()
160 tmp.st_nlink = stat->nlink; in cp_old_stat()
161 if (tmp.st_nlink != stat->nlink) in cp_old_stat()
163 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat()
164 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat()
[all …]
/linux-4.1.27/drivers/pnp/isapnp/
Dcore.c369 unsigned char tag, tmp[2]; in isapnp_read_tag() local
376 isapnp_peek(tmp, 2); in isapnp_read_tag()
377 *size = (tmp[1] << 8) | tmp[0]; in isapnp_read_tag()
401 unsigned char tmp[6]; in isapnp_parse_device() local
406 isapnp_peek(tmp, size); in isapnp_parse_device()
407 eisa_id = tmp[0] | tmp[1] << 8 | tmp[2] << 16 | tmp[3] << 24; in isapnp_parse_device()
430 unsigned char tmp[3]; in isapnp_parse_irq_resource() local
435 isapnp_peek(tmp, size); in isapnp_parse_irq_resource()
436 bits = (tmp[1] << 8) | tmp[0]; in isapnp_parse_irq_resource()
442 flags = tmp[2]; in isapnp_parse_irq_resource()
[all …]
/linux-4.1.27/drivers/video/fbdev/aty/
Dradeon_pm.c131 u32 tmp; in radeon_pm_disable_dynamic_mode() local
136 tmp = INPLL(pllSCLK_CNTL); in radeon_pm_disable_dynamic_mode()
137 tmp &= ~SCLK_CNTL__DYN_STOP_LAT_MASK; in radeon_pm_disable_dynamic_mode()
138 tmp |= SCLK_CNTL__CP_MAX_DYN_STOP_LAT | SCLK_CNTL__FORCEON_MASK; in radeon_pm_disable_dynamic_mode()
139 OUTPLL(pllSCLK_CNTL, tmp); in radeon_pm_disable_dynamic_mode()
141 tmp = INPLL(pllMCLK_CNTL); in radeon_pm_disable_dynamic_mode()
142 tmp |= (MCLK_CNTL__FORCE_MCLKA | in radeon_pm_disable_dynamic_mode()
148 OUTPLL(pllMCLK_CNTL, tmp); in radeon_pm_disable_dynamic_mode()
153 tmp = INPLL(pllSCLK_CNTL); in radeon_pm_disable_dynamic_mode()
154 tmp |= (SCLK_CNTL__FORCE_CP | SCLK_CNTL__FORCE_HDP | in radeon_pm_disable_dynamic_mode()
[all …]
/linux-4.1.27/drivers/gpu/drm/
Ddrm_rect.c76 int64_t tmp = src->x1 + (int64_t) diff * hscale; in drm_rect_clip_scaled() local
77 src->x1 = clamp_t(int64_t, tmp, INT_MIN, INT_MAX); in drm_rect_clip_scaled()
81 int64_t tmp = src->y1 + (int64_t) diff * vscale; in drm_rect_clip_scaled() local
82 src->y1 = clamp_t(int64_t, tmp, INT_MIN, INT_MAX); in drm_rect_clip_scaled()
86 int64_t tmp = src->x2 - (int64_t) diff * hscale; in drm_rect_clip_scaled() local
87 src->x2 = clamp_t(int64_t, tmp, INT_MIN, INT_MAX); in drm_rect_clip_scaled()
91 int64_t tmp = src->y2 - (int64_t) diff * vscale; in drm_rect_clip_scaled() local
92 src->y2 = clamp_t(int64_t, tmp, INT_MIN, INT_MAX); in drm_rect_clip_scaled()
317 struct drm_rect tmp; in drm_rect_rotate() local
320 tmp = *r; in drm_rect_rotate()
[all …]
/linux-4.1.27/tools/power/cpupower/lib/
Dcpufreq.c80 struct cpufreq_available_governors *tmp, *next; in cpufreq_put_available_governors() local
85 tmp = any->first; in cpufreq_put_available_governors()
86 while (tmp) { in cpufreq_put_available_governors()
87 next = tmp->next; in cpufreq_put_available_governors()
88 if (tmp->governor) in cpufreq_put_available_governors()
89 free(tmp->governor); in cpufreq_put_available_governors()
90 free(tmp); in cpufreq_put_available_governors()
91 tmp = next; in cpufreq_put_available_governors()
104 struct cpufreq_available_frequencies *tmp, *next; in cpufreq_put_available_frequencies() local
109 tmp = any->first; in cpufreq_put_available_frequencies()
[all …]
/linux-4.1.27/arch/metag/include/asm/
Dspinlock_lnkget.h26 int tmp; in arch_spin_lock() local
37 : "=&d" (tmp) in arch_spin_lock()
47 int tmp; in arch_spin_trylock() local
59 : "=&d" (tmp) in arch_spin_trylock()
65 return tmp; in arch_spin_trylock()
88 int tmp; in arch_write_lock() local
99 : "=&d" (tmp) in arch_write_lock()
108 int tmp; in arch_write_trylock() local
120 : "=&d" (tmp) in arch_write_trylock()
126 return tmp; in arch_write_trylock()
[all …]
/linux-4.1.27/drivers/usb/gadget/udc/
Damd5536udc.c213 u32 tmp; in udc_mask_unused_interrupts() local
216 tmp = AMD_BIT(UDC_DEVINT_SVC) | in udc_mask_unused_interrupts()
224 writel(tmp, &dev->regs->irqmsk); in udc_mask_unused_interrupts()
235 u32 tmp; in udc_enable_ep0_interrupts() local
240 tmp = readl(&dev->regs->ep_irqmsk); in udc_enable_ep0_interrupts()
242 tmp &= AMD_UNMASK_BIT(UDC_EPINT_IN_EP0) in udc_enable_ep0_interrupts()
244 writel(tmp, &dev->regs->ep_irqmsk); in udc_enable_ep0_interrupts()
252 u32 tmp; in udc_enable_dev_setup_interrupts() local
257 tmp = readl(&dev->regs->irqmsk); in udc_enable_dev_setup_interrupts()
260 tmp &= AMD_UNMASK_BIT(UDC_DEVINT_SI) in udc_enable_dev_setup_interrupts()
[all …]
Dnet2280.c129 u32 tmp = readl(&ep->dev->regs->pciirqenb0); in enable_pciirqenb() local
132 tmp |= BIT(ep->num); in enable_pciirqenb()
134 tmp |= BIT(ep_bit[ep->num]); in enable_pciirqenb()
135 writel(tmp, &ep->dev->regs->pciirqenb0); in enable_pciirqenb()
145 u32 max, tmp; in net2280_enable() local
201 tmp = (desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK); in net2280_enable()
202 if (tmp == USB_ENDPOINT_XFER_INT) { in net2280_enable()
209 } else if (tmp == USB_ENDPOINT_XFER_BULK) { in net2280_enable()
219 ep->is_iso = (tmp == USB_ENDPOINT_XFER_ISOC); in net2280_enable()
222 tmp <<= ENDPOINT_TYPE; in net2280_enable()
[all …]
Domap_udc.c2230 u32 tmp; in proc_otg_show() local
2234 tmp = omap_readl(OTG_REV); in proc_otg_show()
2238 tmp >> 4, tmp & 0xf, ctrl_name, trans); in proc_otg_show()
2239 tmp = omap_readw(OTG_SYSCON_1); in proc_otg_show()
2241 FOURBITS "\n", tmp, in proc_otg_show()
2242 trx_mode(USB2_TRX_MODE(tmp), trans & CONF_USB2_UNI_R), in proc_otg_show()
2243 trx_mode(USB1_TRX_MODE(tmp), trans & CONF_USB1_UNI_R), in proc_otg_show()
2244 (USB0_TRX_MODE(tmp) == 0 && !cpu_is_omap1710()) in proc_otg_show()
2246 : trx_mode(USB0_TRX_MODE(tmp), 1), in proc_otg_show()
2247 (tmp & OTG_IDLE_EN) ? " !otg" : "", in proc_otg_show()
[all …]
/linux-4.1.27/arch/mips/sgi-ip22/
Dip22-mc.c57 unsigned int tmp = get_bank_config(i); in probe_memory() local
58 if (!(tmp & SGIMC_MCONFIG_BVALID)) in probe_memory()
61 bank[cnt].size = get_bank_size(tmp); in probe_memory()
62 bank[cnt].addr = get_bank_addr(tmp); in probe_memory()
108 u32 tmp; in sgimc_init() local
125 tmp = sgimc->cpuctrl0; in sgimc_init()
126 tmp &= ~SGIMC_CCTRL0_WDOG; in sgimc_init()
127 sgimc->cpuctrl0 = tmp; in sgimc_init()
140 tmp = sgimc->cpuctrl0; in sgimc_init()
142 tmp |= SGIMC_CCTRL0_EPERRGIO | SGIMC_CCTRL0_EPERRMEM; in sgimc_init()
[all …]
Dip22-gio.c64 struct device *tmp; in gio_dev_get() local
68 tmp = get_device(&dev->dev); in gio_dev_get()
69 if (tmp) in gio_dev_get()
70 return to_gio_device(tmp); in gio_dev_get()
228 u32 tmp = sgimc->giopar; in gio_set_master() local
232 tmp |= SGIMC_GIOPAR_MASTERGFX; in gio_set_master()
235 tmp |= SGIMC_GIOPAR_MASTEREXP0; in gio_set_master()
238 tmp |= SGIMC_GIOPAR_MASTEREXP1; in gio_set_master()
241 sgimc->giopar = tmp; in gio_set_master()
247 u32 tmp = sgimc->giopar; in ip22_gio_set_64bit() local
[all …]
/linux-4.1.27/net/6lowpan/
Dnhc_udp.c24 u8 tmp = 0, val = 0; in udp_uncompress() local
29 fail = lowpan_fetch_skb(skb, &tmp, sizeof(tmp)); in udp_uncompress()
32 switch (tmp & LOWPAN_NHC_UDP_CS_P_11) { in udp_uncompress()
60 if (tmp & LOWPAN_NHC_UDP_CS_C) { in udp_uncompress()
93 u8 tmp; in udp_compress() local
101 tmp = LOWPAN_NHC_UDP_CS_P_11; in udp_compress()
102 lowpan_push_hc_data(hc_ptr, &tmp, sizeof(tmp)); in udp_compress()
104 tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_4BIT_PORT + in udp_compress()
106 lowpan_push_hc_data(hc_ptr, &tmp, sizeof(tmp)); in udp_compress()
111 tmp = LOWPAN_NHC_UDP_CS_P_01; in udp_compress()
[all …]
Diphc.c240 u8 tmp, num_context = 0; in lowpan_header_decompress() local
261 if (lowpan_fetch_skb(skb, &tmp, sizeof(tmp))) in lowpan_header_decompress()
266 hdr.priority = ((tmp >> 2) & 0x0f); in lowpan_header_decompress()
267 hdr.flow_lbl[0] = ((tmp >> 2) & 0x30) | (tmp << 6) | in lowpan_header_decompress()
274 if (lowpan_fetch_skb(skb, &tmp, sizeof(tmp))) in lowpan_header_decompress()
277 hdr.priority = ((tmp >> 2) & 0x0f); in lowpan_header_decompress()
278 hdr.flow_lbl[0] = ((tmp << 6) & 0xC0) | ((tmp >> 2) & 0x30); in lowpan_header_decompress()
284 if (lowpan_fetch_skb(skb, &tmp, sizeof(tmp))) in lowpan_header_decompress()
287 hdr.flow_lbl[0] = (skb->data[0] & 0x0F) | ((tmp >> 2) & 0x30); in lowpan_header_decompress()
318 tmp = ((iphc1 & LOWPAN_IPHC_SAM) >> LOWPAN_IPHC_SAM_BIT) & 0x03; in lowpan_header_decompress()
[all …]
/linux-4.1.27/arch/alpha/math-emu/
Dqrnnd.S41 #define tmp $3 macro
52 $loop1: cmplt n0,0,tmp
54 bis n1,tmp,n1
57 subq n1,d,tmp
58 cmovne qb,tmp,n1
60 cmplt n0,0,tmp
62 bis n1,tmp,n1
65 subq n1,d,tmp
66 cmovne qb,tmp,n1
68 cmplt n0,0,tmp
[all …]
/linux-4.1.27/arch/xtensa/include/asm/
Drwsem.h40 int tmp; in __down_read_trylock() local
42 while ((tmp = sem->count) >= 0) { in __down_read_trylock()
43 if (tmp == cmpxchg(&sem->count, tmp, in __down_read_trylock()
44 tmp + RWSEM_ACTIVE_READ_BIAS)) { in __down_read_trylock()
57 int tmp; in __down_write() local
59 tmp = atomic_add_return(RWSEM_ACTIVE_WRITE_BIAS, in __down_write()
61 if (tmp == RWSEM_ACTIVE_WRITE_BIAS) in __down_write()
69 int tmp; in __down_write_trylock() local
71 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
74 return tmp == RWSEM_UNLOCKED_VALUE; in __down_write_trylock()
[all …]
Dspinlock.h39 unsigned long tmp; in arch_spin_lock() local
47 : "=&a" (tmp) in arch_spin_lock()
56 unsigned long tmp; in arch_spin_trylock() local
63 : "=&a" (tmp) in arch_spin_trylock()
67 return tmp == 0 ? 1 : 0; in arch_spin_trylock()
72 unsigned long tmp; in arch_spin_unlock() local
77 : "=&a" (tmp) in arch_spin_unlock()
103 unsigned long tmp; in arch_write_lock() local
112 : "=&a" (tmp) in arch_write_lock()
121 unsigned long tmp; in arch_write_trylock() local
[all …]
Dtlbflush.h66 unsigned long tmp; in itlb_probe() local
67 __asm__ __volatile__("pitlb %0, %1\n\t" : "=a" (tmp) : "a" (addr)); in itlb_probe()
68 return tmp; in itlb_probe()
73 unsigned long tmp; in dtlb_probe() local
74 __asm__ __volatile__("pdtlb %0, %1\n\t" : "=a" (tmp) : "a" (addr)); in dtlb_probe()
75 return tmp; in dtlb_probe()
125 unsigned long tmp; in read_ptevaddr_register() local
126 __asm__ __volatile__("rsr %0, ptevaddr\n\t" : "=a" (tmp)); in read_ptevaddr_register()
127 return tmp; in read_ptevaddr_register()
181 unsigned long tmp; in read_dtlb_virtual() local
[all …]
Dbitops.h105 unsigned long tmp, value; in set_bit() local
116 : "=&a" (tmp), "=&a" (value) in set_bit()
123 unsigned long tmp, value; in clear_bit() local
134 : "=&a" (tmp), "=&a" (value) in clear_bit()
141 unsigned long tmp, value; in change_bit() local
152 : "=&a" (tmp), "=&a" (value) in change_bit()
160 unsigned long tmp, value; in test_and_set_bit() local
171 : "=&a" (tmp), "=&a" (value) in test_and_set_bit()
175 return tmp & mask; in test_and_set_bit()
181 unsigned long tmp, value; in test_and_clear_bit() local
[all …]
/linux-4.1.27/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c81 void fix_up_intel_idle_driver_name(char *tmp, int num) in fix_up_intel_idle_driver_name() argument
84 if (!strncmp(tmp, "NHM-", 4)) { in fix_up_intel_idle_driver_name()
87 strcpy(tmp, "C1"); in fix_up_intel_idle_driver_name()
90 strcpy(tmp, "C3"); in fix_up_intel_idle_driver_name()
93 strcpy(tmp, "C6"); in fix_up_intel_idle_driver_name()
96 } else if (!strncmp(tmp, "SNB-", 4)) { in fix_up_intel_idle_driver_name()
99 strcpy(tmp, "C1"); in fix_up_intel_idle_driver_name()
102 strcpy(tmp, "C3"); in fix_up_intel_idle_driver_name()
105 strcpy(tmp, "C6"); in fix_up_intel_idle_driver_name()
108 strcpy(tmp, "C7"); in fix_up_intel_idle_driver_name()
[all …]
/linux-4.1.27/arch/sparc/include/asm/
Drwsem.h34 long tmp; in __down_read_trylock() local
36 while ((tmp = sem->count) >= 0L) { in __down_read_trylock()
37 if (tmp == cmpxchg(&sem->count, tmp, in __down_read_trylock()
38 tmp + RWSEM_ACTIVE_READ_BIAS)) { in __down_read_trylock()
50 long tmp; in __down_write_nested() local
52 tmp = atomic64_add_return(RWSEM_ACTIVE_WRITE_BIAS, in __down_write_nested()
54 if (unlikely(tmp != RWSEM_ACTIVE_WRITE_BIAS)) in __down_write_nested()
65 long tmp; in __down_write_trylock() local
67 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
69 return tmp == RWSEM_UNLOCKED_VALUE; in __down_write_trylock()
[all …]
Dbackoff.h54 #define BACKOFF_SPIN(reg, tmp, label) \ argument
55 mov reg, tmp; \
61 sllx tmp, 7, tmp; \
62 wr tmp, 0, %asr27; \
63 clr tmp; \
65 brnz,pt tmp, 88b; \
66 sub tmp, 1, tmp; \
67 set BACKOFF_LIMIT, tmp; \
68 cmp reg, tmp; \
81 #define BACKOFF_SPIN(reg, tmp, label) argument
/linux-4.1.27/arch/arm/mach-s5pv210/
Dpm.c45 unsigned long tmp; in s5pv210_cpu_suspend() local
50 tmp = 0; in s5pv210_cpu_suspend()
57 "wfi" : : "r" (tmp)); in s5pv210_cpu_suspend()
65 unsigned int tmp; in s5pv210_pm_prepare() local
74 tmp = __raw_readl(S5P_SLEEP_CFG); in s5pv210_pm_prepare()
75 tmp &= ~(S5P_SLEEP_CFG_OSC_EN | S5P_SLEEP_CFG_USBOSC_EN); in s5pv210_pm_prepare()
76 __raw_writel(tmp, S5P_SLEEP_CFG); in s5pv210_pm_prepare()
79 tmp = __raw_readl(S5P_PWR_CFG); in s5pv210_pm_prepare()
80 tmp &= S5P_CFG_WFI_CLEAN; in s5pv210_pm_prepare()
81 tmp |= S5P_CFG_WFI_SLEEP; in s5pv210_pm_prepare()
[all …]
/linux-4.1.27/arch/sh/include/asm/
Drwsem.h35 int tmp; in __down_read_trylock() local
37 while ((tmp = sem->count) >= 0) { in __down_read_trylock()
38 if (tmp == cmpxchg(&sem->count, tmp, in __down_read_trylock()
39 tmp + RWSEM_ACTIVE_READ_BIAS)) { in __down_read_trylock()
52 int tmp; in __down_write() local
54 tmp = atomic_add_return(RWSEM_ACTIVE_WRITE_BIAS, in __down_write()
56 if (tmp == RWSEM_ACTIVE_WRITE_BIAS) in __down_write()
64 int tmp; in __down_write_trylock() local
66 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
69 return tmp == RWSEM_UNLOCKED_VALUE; in __down_write_trylock()
[all …]
Dspinlock.h39 unsigned long tmp; in arch_spin_lock() local
51 : "=&z" (tmp), "=&r" (oldval) in arch_spin_lock()
59 unsigned long tmp; in arch_spin_unlock() local
64 : "=&z" (tmp) in arch_spin_unlock()
72 unsigned long tmp, oldval; in arch_spin_trylock() local
82 : "=&z" (tmp), "=&r" (oldval) in arch_spin_trylock()
113 unsigned long tmp; in arch_read_lock() local
123 : "=&z" (tmp) in arch_read_lock()
131 unsigned long tmp; in arch_read_unlock() local
139 : "=&z" (tmp) in arch_read_unlock()
[all …]
Dbitops-llsc.h8 unsigned long tmp; in set_bit() local
19 : "=&z" (tmp) in set_bit()
29 unsigned long tmp; in clear_bit() local
40 : "=&z" (tmp) in clear_bit()
50 unsigned long tmp; in change_bit() local
61 : "=&z" (tmp) in change_bit()
71 unsigned long tmp; in test_and_set_bit() local
84 : "=&z" (tmp), "=&r" (retval) in test_and_set_bit()
96 unsigned long tmp; in test_and_clear_bit() local
110 : "=&z" (tmp), "=&r" (retval) in test_and_clear_bit()
[all …]
Dbitops-grb.h8 unsigned long tmp; in set_bit() local
22 : "=&r" (tmp), in set_bit()
32 unsigned long tmp; in clear_bit() local
45 : "=&r" (tmp), in clear_bit()
55 unsigned long tmp; in change_bit() local
68 : "=&r" (tmp), in change_bit()
78 unsigned long tmp; in test_and_set_bit() local
96 : "=&r" (tmp), in test_and_set_bit()
109 unsigned long tmp; in test_and_clear_bit() local
129 : "=&r" (tmp), in test_and_clear_bit()
[all …]
Datomic-grb.h7 int tmp; \
18 : "=&r" (tmp), \
27 int tmp; \
38 : "=&r" (tmp), \
43 return tmp; \
57 int tmp; in ATOMIC_OPS() local
69 : "=&r" (tmp), in ATOMIC_OPS()
77 int tmp; in atomic_set_mask() local
88 : "=&r" (tmp), in atomic_set_mask()
/linux-4.1.27/include/asm-generic/
Drwsem.h42 long tmp; in __down_read_trylock() local
44 while ((tmp = sem->count) >= 0) { in __down_read_trylock()
45 if (tmp == cmpxchg(&sem->count, tmp, in __down_read_trylock()
46 tmp + RWSEM_ACTIVE_READ_BIAS)) { in __down_read_trylock()
58 long tmp; in __down_write_nested() local
60 tmp = atomic_long_add_return(RWSEM_ACTIVE_WRITE_BIAS, in __down_write_nested()
62 if (unlikely(tmp != RWSEM_ACTIVE_WRITE_BIAS)) in __down_write_nested()
73 long tmp; in __down_write_trylock() local
75 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
77 return tmp == RWSEM_UNLOCKED_VALUE; in __down_write_trylock()
[all …]
Dtermios-base.h17 unsigned short tmp; in user_termio_to_kernel_termios() local
19 if (get_user(tmp, &termio->c_iflag) < 0) in user_termio_to_kernel_termios()
21 termios->c_iflag = (0xffff0000 & termios->c_iflag) | tmp; in user_termio_to_kernel_termios()
23 if (get_user(tmp, &termio->c_oflag) < 0) in user_termio_to_kernel_termios()
25 termios->c_oflag = (0xffff0000 & termios->c_oflag) | tmp; in user_termio_to_kernel_termios()
27 if (get_user(tmp, &termio->c_cflag) < 0) in user_termio_to_kernel_termios()
29 termios->c_cflag = (0xffff0000 & termios->c_cflag) | tmp; in user_termio_to_kernel_termios()
31 if (get_user(tmp, &termio->c_lflag) < 0) in user_termio_to_kernel_termios()
33 termios->c_lflag = (0xffff0000 & termios->c_lflag) | tmp; in user_termio_to_kernel_termios()
/linux-4.1.27/arch/mips/include/asm/
Dspinlock.h60 int tmp; in arch_spin_lock() local
94 [ticket] "=&r" (tmp), in arch_spin_lock()
127 [ticket] "=&r" (tmp), in arch_spin_lock()
145 int tmp, tmp2, tmp3; in arch_spin_trylock() local
168 [ticket] "=&r" (tmp), in arch_spin_trylock()
192 [ticket] "=&r" (tmp), in arch_spin_trylock()
200 return tmp; in arch_spin_trylock()
226 unsigned int tmp; in arch_read_lock() local
238 : "=" GCC_OFF_SMALL_ASM() (rw->lock), "=&r" (tmp) in arch_read_lock()
248 : "=" GCC_OFF_SMALL_ASM() (rw->lock), "=&r" (tmp) in arch_read_lock()
[all …]
/linux-4.1.27/arch/arm/mach-davinci/include/mach/
Dentry-macro.S13 .macro get_irqnr_preamble, base, tmp
18 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
20 ldr \tmp, =davinci_intc_type
21 ldr \tmp, [\tmp]
22 cmp \tmp, #DAVINCI_INTC_TYPE_CP_INTC
26 ldr \tmp, [\base, #0x14]
27 movs \tmp, \tmp, lsr #2
28 sub \irqnr, \tmp, #1
33 mov \tmp, \irqnr, lsr #31
35 and \tmp, \tmp, #0x1
[all …]
/linux-4.1.27/drivers/gpu/drm/mgag200/
Dmgag200_mode.c167 u8 tmp; in mga_g200wb_set_plls() local
204 tmp = RREG8(MGAREG_CRTC_DATA); in mga_g200wb_set_plls()
205 if (tmp < 0xff) in mga_g200wb_set_plls()
206 WREG8(MGAREG_CRTC_DATA, tmp+1); in mga_g200wb_set_plls()
211 tmp = RREG8(DAC_DATA); in mga_g200wb_set_plls()
212 tmp |= MGA1064_PIX_CLK_CTL_CLK_DIS; in mga_g200wb_set_plls()
213 WREG8(DAC_DATA, tmp); in mga_g200wb_set_plls()
216 tmp = RREG8(DAC_DATA); in mga_g200wb_set_plls()
217 tmp |= MGA1064_REMHEADCTL_CLKDIS; in mga_g200wb_set_plls()
218 WREG8(DAC_DATA, tmp); in mga_g200wb_set_plls()
[all …]
/linux-4.1.27/sound/pci/ice1712/
Ddelta.c47 static void ap_cs8427_write_byte(struct snd_ice1712 *ice, unsigned char data, unsigned char tmp) in ap_cs8427_write_byte() argument
52 tmp &= ~(ICE1712_DELTA_AP_DOUT|ICE1712_DELTA_AP_CCLK); in ap_cs8427_write_byte()
54 tmp |= ICE1712_DELTA_AP_DOUT; in ap_cs8427_write_byte()
55 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, tmp); in ap_cs8427_write_byte()
57 tmp |= ICE1712_DELTA_AP_CCLK; in ap_cs8427_write_byte()
58 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, tmp); in ap_cs8427_write_byte()
64 static unsigned char ap_cs8427_read_byte(struct snd_ice1712 *ice, unsigned char tmp) in ap_cs8427_read_byte() argument
70 tmp &= ~ICE1712_DELTA_AP_CCLK; in ap_cs8427_read_byte()
71 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, tmp); in ap_cs8427_read_byte()
75 tmp |= ICE1712_DELTA_AP_CCLK; in ap_cs8427_read_byte()
[all …]
Dak4xxx.c58 unsigned int tmp; in snd_ice1712_akm4xxx_write() local
67 tmp = snd_ice1712_gpio_read(ice); in snd_ice1712_akm4xxx_write()
68 tmp |= priv->add_flags; in snd_ice1712_akm4xxx_write()
69 tmp &= ~priv->mask_flags; in snd_ice1712_akm4xxx_write()
72 tmp |= priv->cs_mask; /* start without chip select */ in snd_ice1712_akm4xxx_write()
74 tmp &= ~priv->cs_mask; /* chip select low */ in snd_ice1712_akm4xxx_write()
75 snd_ice1712_gpio_write(ice, tmp); in snd_ice1712_akm4xxx_write()
80 tmp &= ~priv->cs_mask; in snd_ice1712_akm4xxx_write()
81 tmp |= priv->cs_addr; in snd_ice1712_akm4xxx_write()
82 snd_ice1712_gpio_write(ice, tmp); in snd_ice1712_akm4xxx_write()
[all …]
Daureon.c114 unsigned int tmp; in aureon_pca9554_write() local
119 tmp = snd_ice1712_gpio_read(ice); in aureon_pca9554_write()
124 tmp |= AUREON_WM_RW; in aureon_pca9554_write()
125 tmp |= AUREON_CS8415_CS | AUREON_WM_CS; /* disable SPI devices */ in aureon_pca9554_write()
127 tmp &= ~AUREON_SPI_MOSI; in aureon_pca9554_write()
128 tmp &= ~AUREON_SPI_CLK; in aureon_pca9554_write()
129 snd_ice1712_gpio_write(ice, tmp); in aureon_pca9554_write()
136 tmp |= AUREON_SPI_CLK; in aureon_pca9554_write()
137 snd_ice1712_gpio_write(ice, tmp); in aureon_pca9554_write()
139 tmp |= AUREON_SPI_MOSI; in aureon_pca9554_write()
[all …]
Drevo.c55 unsigned char old, tmp, dfs; in revo_set_rate_val() local
76 tmp = snd_akm4xxx_get(ak, 0, reg); in revo_set_rate_val()
77 old = (tmp >> shift) & 0x03; in revo_set_rate_val()
83 tmp = snd_akm4xxx_get(ak, 0, reg); in revo_set_rate_val()
84 tmp &= ~(0x03 << shift); in revo_set_rate_val()
85 tmp |= dfs << shift; in revo_set_rate_val()
87 snd_akm4xxx_set(ak, 0, reg, tmp); /* value is written in reset(0) */ in revo_set_rate_val()
424 unsigned int tmp; in ap192_4wire_start() local
427 tmp = snd_ice1712_gpio_read(ice); in ap192_4wire_start()
428 tmp |= VT1724_REVO_CCLK; /* high at init */ in ap192_4wire_start()
[all …]
Dquartet.c276 unsigned int tmp, orig_dir; in qtet_akm_write() local
290 tmp = ice->gpio.get_data(ice); in qtet_akm_write()
292 tmp |= GPIO_SPI_ALL; in qtet_akm_write()
293 ice->gpio.set_data(ice, tmp); in qtet_akm_write()
298 tmp &= ~GPIO_SPI_CSN1; in qtet_akm_write()
300 tmp &= ~GPIO_SPI_CSN0; in qtet_akm_write()
301 ice->gpio.set_data(ice, tmp); in qtet_akm_write()
309 tmp &= ~GPIO_D5_SPI_CCLK; in qtet_akm_write()
310 ice->gpio.set_data(ice, tmp); in qtet_akm_write()
314 tmp |= GPIO_D4_SPI_CDTO; in qtet_akm_write()
[all …]
/linux-4.1.27/arch/mips/bcm63xx/
Dcpu.c129 unsigned int tmp, mips_pll_fcvo; in detect_cpu_clock() local
131 tmp = bcm_misc_readl(MISC_STRAPBUS_6328_REG); in detect_cpu_clock()
132 mips_pll_fcvo = (tmp & STRAPBUS_6328_FCVO_MASK) in detect_cpu_clock()
164 unsigned int tmp, n1, n2, m1; in detect_cpu_clock() local
167 tmp = bcm_perf_readl(PERF_MIPSPLLCTL_REG); in detect_cpu_clock()
168 n1 = (tmp & MIPSPLLCTL_N1_MASK) >> MIPSPLLCTL_N1_SHIFT; in detect_cpu_clock()
169 n2 = (tmp & MIPSPLLCTL_N2_MASK) >> MIPSPLLCTL_N2_SHIFT; in detect_cpu_clock()
170 m1 = (tmp & MIPSPLLCTL_M1CPU_MASK) >> MIPSPLLCTL_M1CPU_SHIFT; in detect_cpu_clock()
179 unsigned int tmp, n1, n2, m1; in detect_cpu_clock() local
182 tmp = bcm_ddr_readl(DDR_DMIPSPLLCFG_REG); in detect_cpu_clock()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dnv44.c43 u32 tmp[4]; in nv44_vm_fill() local
45 tmp[0] = nv_ro32(pgt, base + 0x0); in nv44_vm_fill()
46 tmp[1] = nv_ro32(pgt, base + 0x4); in nv44_vm_fill()
47 tmp[2] = nv_ro32(pgt, base + 0x8); in nv44_vm_fill()
48 tmp[3] = nv_ro32(pgt, base + 0xc); in nv44_vm_fill()
54 tmp[0] &= ~0x07ffffff; in nv44_vm_fill()
55 tmp[0] |= addr; in nv44_vm_fill()
58 tmp[0] &= ~0xf8000000; in nv44_vm_fill()
59 tmp[0] |= addr << 27; in nv44_vm_fill()
60 tmp[1] &= ~0x003fffff; in nv44_vm_fill()
[all …]
/linux-4.1.27/drivers/char/
Dtlclk.c330 unsigned long tmp; in store_received_ref_clk3a() local
334 sscanf(buf, "%lX", &tmp); in store_received_ref_clk3a()
335 dev_dbg(d, ": tmp = 0x%lX\n", tmp); in store_received_ref_clk3a()
337 val = (unsigned char)tmp; in store_received_ref_clk3a()
352 unsigned long tmp; in store_received_ref_clk3b() local
356 sscanf(buf, "%lX", &tmp); in store_received_ref_clk3b()
357 dev_dbg(d, ": tmp = 0x%lX\n", tmp); in store_received_ref_clk3b()
359 val = (unsigned char)tmp; in store_received_ref_clk3b()
374 unsigned long tmp; in store_enable_clk3b_output() local
378 sscanf(buf, "%lX", &tmp); in store_enable_clk3b_output()
[all …]
Dttyprintk.c45 static char tmp[TPK_STR_SIZE + 4]; in tpk_printk() local
52 tmp[tpk_curr + 0] = '\n'; in tpk_printk()
53 tmp[tpk_curr + 1] = '\0'; in tpk_printk()
54 printk(KERN_INFO "%s%s", tpk_tag, tmp); in tpk_printk()
61 tmp[tpk_curr] = buf[i]; in tpk_printk()
66 tmp[tpk_curr + 0] = '\n'; in tpk_printk()
67 tmp[tpk_curr + 1] = '\0'; in tpk_printk()
68 printk(KERN_INFO "%s%s", tpk_tag, tmp); in tpk_printk()
74 tmp[tpk_curr + 1] = '\0'; in tpk_printk()
75 printk(KERN_INFO "%s%s", tpk_tag, tmp); in tpk_printk()
[all …]
/linux-4.1.27/arch/arm/mm/
Dproc-v7-3level.S129 .macro v7_ttb_setup, zero, ttbr0, ttbr1, tmp
130 ldr \tmp, =swapper_pg_dir @ swapper_pg_dir virtual address
131 mov \tmp, \tmp, lsr #ARCH_PGD_SHIFT
132 cmp \ttbr1, \tmp @ PHYS_OFFSET > PAGE_OFFSET?
133 mrc p15, 0, \tmp, c2, c0, 2 @ TTB control register
134 orr \tmp, \tmp, #TTB_EAE
135 ALT_SMP(orr \tmp, \tmp, #TTB_FLAGS_SMP)
136 ALT_UP(orr \tmp, \tmp, #TTB_FLAGS_UP)
137 ALT_SMP(orr \tmp, \tmp, #TTB_FLAGS_SMP << 16)
138 ALT_UP(orr \tmp, \tmp, #TTB_FLAGS_UP << 16)
[all …]
Dabort-macro.S12 .macro do_thumb_abort, fsr, pc, psr, tmp
15 ldrh \tmp, [\pc] @ Read aborted Thumb instruction
16 and \tmp, \tmp, # 0xfe00 @ Mask opcode field
17 cmp \tmp, # 0x5600 @ Is it ldrsb?
18 orreq \tmp, \tmp, #1 << 11 @ Set L-bit if yes
19 tst \tmp, #1 << 11 @ L = 0 -> write
32 .macro do_ldrd_abort, tmp, insn
35 and \tmp, \insn, #0x000000f0 @ [7:4] == 1101
36 cmp \tmp, #0x000000d0
/linux-4.1.27/tools/power/cpupower/utils/
Dcpuidle-info.c26 char *tmp; in cpuidle_cpu_output() local
39 tmp = sysfs_get_idlestate_name(cpu, idlestate); in cpuidle_cpu_output()
40 if (!tmp) in cpuidle_cpu_output()
42 printf(" %s", tmp); in cpuidle_cpu_output()
43 free(tmp); in cpuidle_cpu_output()
55 tmp = sysfs_get_idlestate_name(cpu, idlestate); in cpuidle_cpu_output()
56 if (!tmp) in cpuidle_cpu_output()
58 printf("%s%s:\n", tmp, (disabled) ? " (DISABLED) " : ""); in cpuidle_cpu_output()
59 free(tmp); in cpuidle_cpu_output()
61 tmp = sysfs_get_idlestate_desc(cpu, idlestate); in cpuidle_cpu_output()
[all …]
/linux-4.1.27/drivers/media/dvb-frontends/
Dstv0297.c137 u64 tmp; in stv0297_get_symbolrate() local
139 tmp = stv0297_readreg(state, 0x55); in stv0297_get_symbolrate()
140 tmp |= stv0297_readreg(state, 0x56) << 8; in stv0297_get_symbolrate()
141 tmp |= stv0297_readreg(state, 0x57) << 16; in stv0297_get_symbolrate()
142 tmp |= stv0297_readreg(state, 0x58) << 24; in stv0297_get_symbolrate()
144 tmp *= STV0297_CLOCK_KHZ; in stv0297_get_symbolrate()
145 tmp >>= 32; in stv0297_get_symbolrate()
147 return (u32) tmp; in stv0297_get_symbolrate()
152 long tmp; in stv0297_set_symbolrate() local
154 tmp = 131072L * srate; /* 131072 = 2^17 */ in stv0297_set_symbolrate()
[all …]
Dhd29l2.c108 u8 tmp; in hd29l2_wr_reg_mask() local
112 ret = hd29l2_rd_regs(priv, reg, &tmp, 1); in hd29l2_wr_reg_mask()
117 tmp &= ~mask; in hd29l2_wr_reg_mask()
118 val |= tmp; in hd29l2_wr_reg_mask()
128 u8 tmp; in hd29l2_rd_reg_mask() local
130 ret = hd29l2_rd_regs(priv, reg, &tmp, 1); in hd29l2_rd_reg_mask()
134 tmp &= mask; in hd29l2_rd_reg_mask()
141 *val = tmp >> i; in hd29l2_rd_reg_mask()
149 u8 tmp; in hd29l2_soft_reset() local
151 ret = hd29l2_rd_reg(priv, 0x26, &tmp); in hd29l2_soft_reset()
[all …]
Dec100.c94 u8 tmp, tmp2; in ec100_set_frontend() local
123 tmp = 0xb7; in ec100_set_frontend()
127 tmp = 0x00; in ec100_set_frontend()
132 tmp = 0x49; in ec100_set_frontend()
136 ret = ec100_write_reg(state, 0x1b, tmp); in ec100_set_frontend()
181 u8 tmp; in ec100_read_status() local
184 ret = ec100_read_reg(state, 0x42, &tmp); in ec100_read_status()
188 if (tmp & 0x80) { in ec100_read_status()
193 ret = ec100_read_reg(state, 0x01, &tmp); in ec100_read_status()
197 if (tmp & 0x10) { in ec100_read_status()
[all …]
Dtda10071.c122 u8 tmp; in tda10071_wr_reg_mask() local
126 ret = tda10071_rd_regs(priv, reg, &tmp, 1); in tda10071_wr_reg_mask()
131 tmp &= ~mask; in tda10071_wr_reg_mask()
132 val |= tmp; in tda10071_wr_reg_mask()
143 u8 tmp; in tda10071_rd_reg_mask() local
145 ret = tda10071_rd_regs(priv, reg, &tmp, 1); in tda10071_rd_reg_mask()
149 tmp &= mask; in tda10071_rd_reg_mask()
156 *val = tmp >> i; in tda10071_rd_reg_mask()
166 u8 tmp; in tda10071_cmd_execute() local
184 for (i = 1000, tmp = 1; i && tmp; i--) { in tda10071_cmd_execute()
[all …]
/linux-4.1.27/arch/arm64/include/asm/
Dassembler.h75 .macro disable_step_tsk, flgs, tmp
77 mrs \tmp, mdscr_el1
78 bic \tmp, \tmp, #1
79 msr mdscr_el1, \tmp
84 .macro enable_step_tsk, flgs, tmp
87 mrs \tmp, mdscr_el1
88 orr \tmp, \tmp, #1
89 msr mdscr_el1, \tmp
172 .macro adr_l, dst, sym, tmp=
173 .ifb \tmp
[all …]
Dspinlock.h36 unsigned int tmp; in arch_spin_lock() local
60 : "=&r" (lockval), "=&r" (newval), "=&r" (tmp), "+Q" (*lock) in arch_spin_lock()
67 unsigned int tmp; in arch_spin_trylock() local
79 : "=&r" (lockval), "=&r" (tmp), "+Q" (*lock) in arch_spin_trylock()
83 return !tmp; in arch_spin_trylock()
124 unsigned int tmp; in arch_write_lock() local
133 : "=&r" (tmp), "+Q" (rw->lock) in arch_write_lock()
140 unsigned int tmp; in arch_write_trylock() local
147 : "=&r" (tmp), "+Q" (rw->lock) in arch_write_trylock()
151 return !tmp; in arch_write_trylock()
[all …]
Dfutex.h25 #define __futex_atomic_op(insn, ret, oldval, uaddr, tmp, oparg) \ argument
42 : "=&r" (ret), "=&r" (oldval), "+Q" (*uaddr), "=&r" (tmp) \
53 int oldval = 0, ret, tmp; in futex_atomic_op_inuser() local
66 ret, oldval, uaddr, tmp, oparg); in futex_atomic_op_inuser()
70 ret, oldval, uaddr, tmp, oparg); in futex_atomic_op_inuser()
74 ret, oldval, uaddr, tmp, oparg); in futex_atomic_op_inuser()
78 ret, oldval, uaddr, tmp, ~oparg); in futex_atomic_op_inuser()
82 ret, oldval, uaddr, tmp, oparg); in futex_atomic_op_inuser()
109 u32 val, tmp; in futex_atomic_cmpxchg_inatomic() local
130 : "+r" (ret), "=&r" (val), "+Q" (*uaddr), "=&r" (tmp) in futex_atomic_cmpxchg_inatomic()
/linux-4.1.27/arch/mips/include/asm/octeon/
Dcvmx-spinlock.h105 unsigned int tmp; in cvmx_spinlock_trylock() local
117 [val] "+m"(lock->value), [tmp] "=&r"(tmp) in cvmx_spinlock_trylock()
120 return tmp != 0; /* normalize to 0 or 1 */ in cvmx_spinlock_trylock()
130 unsigned int tmp; in cvmx_spinlock_lock() local
140 [val] "+m"(lock->value), [tmp] "=&r"(tmp) in cvmx_spinlock_lock()
163 unsigned int tmp; in cvmx_spinlock_bit_lock() local
177 [val] "+m"(*word), [tmp] "=&r"(tmp), [sav] "=&r"(sav) in cvmx_spinlock_bit_lock()
195 unsigned int tmp; in cvmx_spinlock_bit_trylock() local
210 [val] "+m"(*word), [tmp] "=&r"(tmp) in cvmx_spinlock_bit_trylock()
213 return tmp != 0; /* normalize to 0 or 1 */ in cvmx_spinlock_bit_trylock()
/linux-4.1.27/kernel/
Ddelayacct.c88 s64 tmp; in __delayacct_add_tsk() local
91 tmp = (s64)d->cpu_run_real_total; in __delayacct_add_tsk()
92 tmp += cputime_to_nsecs(utime + stime); in __delayacct_add_tsk()
93 d->cpu_run_real_total = (tmp < (s64)d->cpu_run_real_total) ? 0 : tmp; in __delayacct_add_tsk()
96 tmp = (s64)d->cpu_scaled_run_real_total; in __delayacct_add_tsk()
97 tmp += cputime_to_nsecs(utimescaled + stimescaled); in __delayacct_add_tsk()
99 (tmp < (s64)d->cpu_scaled_run_real_total) ? 0 : tmp; in __delayacct_add_tsk()
111 tmp = (s64)d->cpu_delay_total + t2; in __delayacct_add_tsk()
112 d->cpu_delay_total = (tmp < (s64)d->cpu_delay_total) ? 0 : tmp; in __delayacct_add_tsk()
114 tmp = (s64)d->cpu_run_virtual_total + t3; in __delayacct_add_tsk()
[all …]
/linux-4.1.27/drivers/video/fbdev/
Datafb_utils.h92 long tmp; in fb_memclear() local
109 : "=a" (s), "=d" (count), "=d" (tmp) in fb_memclear()
157 long tmp; in fb_memmove() local
175 : "=a" (d), "=a" (s), "=d" (count), "=d" (tmp) in fb_memmove()
189 long tmp; in fb_memmove() local
208 : "=a" (d), "=a" (s), "=d" (count), "=d" (tmp) in fb_memmove()
281 u32 tmp = m[0]; in fill8_col() local
282 dst[0] = tmp; in fill8_col()
283 dst[2] = (tmp >>= 8); in fill8_col()
285 dst[4] = (tmp >>= 8); in fill8_col()
[all …]
/linux-4.1.27/drivers/parport/
Dshare.c280 struct parport *tmp; in parport_register_port() local
285 tmp = kzalloc(sizeof(struct parport), GFP_KERNEL); in parport_register_port()
286 if (!tmp) { in parport_register_port()
292 tmp->base = base; in parport_register_port()
293 tmp->irq = irq; in parport_register_port()
294 tmp->dma = dma; in parport_register_port()
295 tmp->muxport = tmp->daisy = tmp->muxsel = -1; in parport_register_port()
296 tmp->modes = 0; in parport_register_port()
297 INIT_LIST_HEAD(&tmp->list); in parport_register_port()
298 tmp->devices = tmp->cad = NULL; in parport_register_port()
[all …]
/linux-4.1.27/arch/s390/lib/
Dfind.c22 unsigned long tmp; in find_first_bit_inv() local
25 if ((tmp = *(p++))) in find_first_bit_inv()
32 tmp = (*p) & (~0UL << (BITS_PER_LONG - size)); in find_first_bit_inv()
33 if (!tmp) /* Are any bits set? */ in find_first_bit_inv()
36 return result + (__fls(tmp) ^ (BITS_PER_LONG - 1)); in find_first_bit_inv()
45 unsigned long tmp; in find_next_bit_inv() local
52 tmp = *(p++); in find_next_bit_inv()
53 tmp &= (~0UL >> offset); in find_next_bit_inv()
56 if (tmp) in find_next_bit_inv()
62 if ((tmp = *(p++))) in find_next_bit_inv()
[all …]
/linux-4.1.27/drivers/gpu/drm/sti/
Dsti_vtg.c127 u32 tmp; in vtg_set_mode() local
135 tmp = (mode->vtotal - mode->vsync_start + 1) << 16; in vtg_set_mode()
136 tmp |= mode->htotal - mode->hsync_start; in vtg_set_mode()
137 writel(tmp, vtg->regs + VTG_VID_TFO); in vtg_set_mode()
138 writel(tmp, vtg->regs + VTG_VID_BFO); in vtg_set_mode()
140 tmp = (mode->vdisplay + mode->vtotal - mode->vsync_start + 1) << 16; in vtg_set_mode()
141 tmp |= mode->hdisplay + mode->htotal - mode->hsync_start; in vtg_set_mode()
142 writel(tmp, vtg->regs + VTG_VID_TFS); in vtg_set_mode()
143 writel(tmp, vtg->regs + VTG_VID_BFS); in vtg_set_mode()
146 tmp = (mode->hsync_end - mode->hsync_start + HDMI_DELAY) << 16; in vtg_set_mode()
[all …]
/linux-4.1.27/arch/arm/mach-exynos/
Dpm.c59 unsigned long tmp; in exynos_cpu_save_register() local
63 : "=r" (tmp) : : "cc"); in exynos_cpu_save_register()
65 save_arm_register[0] = tmp; in exynos_cpu_save_register()
69 : "=r" (tmp) : : "cc"); in exynos_cpu_save_register()
71 save_arm_register[1] = tmp; in exynos_cpu_save_register()
76 unsigned long tmp; in exynos_cpu_restore_register() local
79 tmp = save_arm_register[0]; in exynos_cpu_restore_register()
82 : : "r" (tmp) in exynos_cpu_restore_register()
86 tmp = save_arm_register[1]; in exynos_cpu_restore_register()
89 : : "r" (tmp) in exynos_cpu_restore_register()
[all …]
Dsuspend.c360 unsigned int tmp; in exynos3250_pm_prepare() local
365 tmp = pmu_raw_readl(EXYNOS3_ARM_L2_OPTION); in exynos3250_pm_prepare()
366 tmp &= ~EXYNOS5_OPTION_USE_RETENTION; in exynos3250_pm_prepare()
367 pmu_raw_writel(tmp, EXYNOS3_ARM_L2_OPTION); in exynos3250_pm_prepare()
377 unsigned int tmp; in exynos5420_pm_prepare() local
401 tmp = pmu_raw_readl(EXYNOS5_ARM_L2_OPTION); in exynos5420_pm_prepare()
402 tmp &= ~EXYNOS5_USE_RETENTION; in exynos5420_pm_prepare()
403 pmu_raw_writel(tmp, EXYNOS5_ARM_L2_OPTION); in exynos5420_pm_prepare()
405 tmp = pmu_raw_readl(EXYNOS5420_SFR_AXI_CGDIS1); in exynos5420_pm_prepare()
406 tmp |= EXYNOS5420_UFS; in exynos5420_pm_prepare()
[all …]
/linux-4.1.27/tools/lib/util/
Dfind_next_bit.c29 unsigned long tmp; in find_next_bit() local
36 tmp = *(p++); in find_next_bit()
37 tmp &= (~0UL << offset); in find_next_bit()
40 if (tmp) in find_next_bit()
46 if ((tmp = *(p++))) in find_next_bit()
53 tmp = *p; in find_next_bit()
56 tmp &= (~0UL >> (BITS_PER_LONG - size)); in find_next_bit()
57 if (tmp == 0UL) /* Are any bits set? */ in find_next_bit()
60 return result + __ffs(tmp); in find_next_bit()
72 unsigned long tmp; in find_first_bit() local
[all …]
/linux-4.1.27/drivers/isdn/hardware/eicon/
Distream.c79 char tmp[4]; in diva_istream_write() local
88 (dword *)&tmp[0], in diva_istream_write()
90 if (tmp[0] & DIVA_DFIFO_READY) { /* No free blocks more */ in diva_istream_write()
109 tmp[1] = (char)to_write; in diva_istream_write()
110 tmp[0] = (tmp[0] & DIVA_DFIFO_WRAP) | in diva_istream_write()
113 if (tmp[0] & DIVA_DFIFO_LAST) { in diva_istream_write()
114 tmp[2] = usr1; in diva_istream_write()
115 tmp[3] = usr2; in diva_istream_write()
123 (dword *)&tmp[0], in diva_istream_write()
125 if (tmp[0] & DIVA_DFIFO_WRAP) { in diva_istream_write()
[all …]
/linux-4.1.27/drivers/rtc/
Drtc-m41t93.c51 int tmp; in m41t93_set_time() local
66 tmp = spi_w8r8(spi, M41T93_REG_FLAGS); in m41t93_set_time()
67 if (tmp < 0) in m41t93_set_time()
68 return tmp; in m41t93_set_time()
70 if (tmp & M41T93_FLAG_OF) { in m41t93_set_time()
72 m41t93_set_reg(spi, M41T93_REG_FLAGS, tmp & ~M41T93_FLAG_OF); in m41t93_set_time()
74 tmp = spi_w8r8(spi, M41T93_REG_FLAGS); in m41t93_set_time()
75 if (tmp < 0) { in m41t93_set_time()
76 return tmp; in m41t93_set_time()
77 } else if (tmp & M41T93_FLAG_OF) { in m41t93_set_time()
[all …]
Drtc-fm3130.c98 int tmp; in fm3130_get_time() local
110 tmp = i2c_transfer(to_i2c_adapter(fm3130->client->dev.parent), in fm3130_get_time()
112 if (tmp != 2) { in fm3130_get_time()
113 dev_err(dev, "%s error %d\n", "read", tmp); in fm3130_get_time()
123 tmp = fm3130->regs[FM3130_RTC_HOURS] & 0x3f; in fm3130_get_time()
124 t->tm_hour = bcd2bin(tmp); in fm3130_get_time()
127 tmp = fm3130->regs[FM3130_RTC_MONTHS] & 0x1f; in fm3130_get_time()
128 t->tm_mon = bcd2bin(tmp) - 1; in fm3130_get_time()
147 int tmp, i; in fm3130_set_time() local
165 tmp = t->tm_year - 100; in fm3130_set_time()
[all …]
Drtc-sh.c107 unsigned int tmp, pending; in __sh_rtc_interrupt() local
109 tmp = readb(rtc->regbase + RCR1); in __sh_rtc_interrupt()
110 pending = tmp & RCR1_CF; in __sh_rtc_interrupt()
111 tmp &= ~RCR1_CF; in __sh_rtc_interrupt()
112 writeb(tmp, rtc->regbase + RCR1); in __sh_rtc_interrupt()
123 unsigned int tmp, pending; in __sh_rtc_alarm() local
125 tmp = readb(rtc->regbase + RCR1); in __sh_rtc_alarm()
126 pending = tmp & RCR1_AF; in __sh_rtc_alarm()
127 tmp &= ~(RCR1_AF | RCR1_AIE); in __sh_rtc_alarm()
128 writeb(tmp, rtc->regbase + RCR1); in __sh_rtc_alarm()
[all …]
/linux-4.1.27/drivers/net/wireless/b43/
Dphy_common.c347 u32 tmp; in b43_phy_put_into_reset() local
352 tmp = bcma_aread32(dev->dev->bdev, BCMA_IOCTL); in b43_phy_put_into_reset()
353 tmp &= ~B43_BCMA_IOCTL_GMODE; in b43_phy_put_into_reset()
354 tmp |= B43_BCMA_IOCTL_PHY_RESET; in b43_phy_put_into_reset()
355 tmp |= BCMA_IOCTL_FGC; in b43_phy_put_into_reset()
356 bcma_awrite32(dev->dev->bdev, BCMA_IOCTL, tmp); in b43_phy_put_into_reset()
359 tmp = bcma_aread32(dev->dev->bdev, BCMA_IOCTL); in b43_phy_put_into_reset()
360 tmp &= ~BCMA_IOCTL_FGC; in b43_phy_put_into_reset()
361 bcma_awrite32(dev->dev->bdev, BCMA_IOCTL, tmp); in b43_phy_put_into_reset()
367 tmp = ssb_read32(dev->dev->sdev, SSB_TMSLOW); in b43_phy_put_into_reset()
[all …]
/linux-4.1.27/arch/arm/mach-imx/
Dclk-pfd.c62 u64 tmp = parent_rate; in clk_pfd_recalc_rate() local
65 tmp *= 18; in clk_pfd_recalc_rate()
66 do_div(tmp, frac); in clk_pfd_recalc_rate()
68 return tmp; in clk_pfd_recalc_rate()
74 u64 tmp = *prate; in clk_pfd_round_rate() local
77 tmp = tmp * 18 + rate / 2; in clk_pfd_round_rate()
78 do_div(tmp, rate); in clk_pfd_round_rate()
79 frac = tmp; in clk_pfd_round_rate()
84 tmp = *prate; in clk_pfd_round_rate()
85 tmp *= 18; in clk_pfd_round_rate()
[all …]
/linux-4.1.27/drivers/clk/mxs/
Dclk-ref.c58 u64 tmp = parent_rate; in clk_ref_recalc_rate() local
61 tmp *= 18; in clk_ref_recalc_rate()
62 do_div(tmp, frac); in clk_ref_recalc_rate()
64 return tmp; in clk_ref_recalc_rate()
71 u64 tmp = parent_rate; in clk_ref_round_rate() local
74 tmp = tmp * 18 + rate / 2; in clk_ref_round_rate()
75 do_div(tmp, rate); in clk_ref_round_rate()
76 frac = tmp; in clk_ref_round_rate()
83 tmp = parent_rate; in clk_ref_round_rate()
84 tmp *= 18; in clk_ref_round_rate()
[all …]
/linux-4.1.27/arch/mips/kernel/
Dptrace32.c62 u32 tmp; in compat_arch_ptrace() local
72 copied = access_process_vm(child, (u64)addrOthers, &tmp, in compat_arch_ptrace()
73 sizeof(tmp), 0); in compat_arch_ptrace()
74 if (copied != sizeof(tmp)) in compat_arch_ptrace()
76 ret = put_user(tmp, (u32 __user *) (unsigned long) data); in compat_arch_ptrace()
84 unsigned int tmp; in compat_arch_ptrace() local
91 tmp = regs->regs[addr]; in compat_arch_ptrace()
96 tmp = -1; in compat_arch_ptrace()
106 tmp = get_fpr32(&fregs[(addr & ~1) - FPR_BASE], in compat_arch_ptrace()
110 tmp = get_fpr32(&fregs[addr - FPR_BASE], 0); in compat_arch_ptrace()
[all …]
/linux-4.1.27/drivers/video/fbdev/via/
Daccel.c58 u32 ge_cmd = 0, tmp, i; in hw_bitblt_1() local
104 tmp = src_x | (src_y << 16); in hw_bitblt_1()
105 writel(tmp, engine + 0x08); in hw_bitblt_1()
113 tmp = dst_x | (dst_y << 16); in hw_bitblt_1()
114 writel(tmp, engine + 0x0C); in hw_bitblt_1()
121 tmp = (width - 1) | ((height - 1) << 16); in hw_bitblt_1()
122 writel(tmp, engine + 0x10); in hw_bitblt_1()
131 tmp = src_mem ? 0 : src_addr; in hw_bitblt_1()
134 "address %X\n", tmp); in hw_bitblt_1()
137 tmp >>= 3; in hw_bitblt_1()
[all …]
/linux-4.1.27/arch/cris/arch-v32/kernel/
Dptrace.c82 unsigned long tmp; in user_enable_single_step() local
90 tmp = get_reg(child, PT_ERP) & ~1; in user_enable_single_step()
91 put_reg(child, PT_SPC, tmp); in user_enable_single_step()
93 tmp = get_reg(child, PT_CCS) | SBIT_USER; in user_enable_single_step()
94 put_reg(child, PT_CCS, tmp); in user_enable_single_step()
102 unsigned long tmp; in user_disable_single_step() local
104 tmp = get_reg(child, PT_CCS) & ~SBIT_USER; in user_disable_single_step()
105 put_reg(child, PT_CCS, tmp); in user_disable_single_step()
137 unsigned long tmp; in arch_ptrace() local
148 tmp = *(unsigned long*)addr; in arch_ptrace()
[all …]
/linux-4.1.27/arch/powerpc/platforms/pseries/
Dreconfig.c152 char *tmp; in parse_next_property() local
156 tmp = strchr(buf, ' '); in parse_next_property()
157 if (!tmp) { in parse_next_property()
162 *tmp = '\0'; in parse_next_property()
164 if (++tmp >= end) { in parse_next_property()
172 *length = simple_strtoul(tmp, &tmp, 10); in parse_next_property()
178 if (*tmp != ' ' || ++tmp >= end) { in parse_next_property()
185 *value = tmp; in parse_next_property()
186 tmp += *length; in parse_next_property()
187 if (tmp > end) { in parse_next_property()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dprng.c113 int rem, tmp; in cfs_get_random_bytes() local
119 get_random_bytes(&tmp, sizeof(tmp)); in cfs_get_random_bytes()
120 tmp ^= cfs_rand(); in cfs_get_random_bytes()
121 memcpy(buf, &tmp, rem); in cfs_get_random_bytes()
127 get_random_bytes(&tmp, sizeof(tmp)); in cfs_get_random_bytes()
128 *p = cfs_rand() ^ tmp; in cfs_get_random_bytes()
134 get_random_bytes(&tmp, sizeof(tmp)); in cfs_get_random_bytes()
135 tmp ^= cfs_rand(); in cfs_get_random_bytes()
136 memcpy(buf, &tmp, size); in cfs_get_random_bytes()
/linux-4.1.27/arch/avr32/include/asm/
Dasm.h44 .macro save_min sr, tmp=lr
46 mfsr \tmp, \sr
48 st.w --sp, \tmp
51 .macro restore_min sr, tmp=lr
52 ld.w \tmp, sp++
53 mtsr \sr, \tmp
57 .macro save_half sr, tmp=lr
61 mfsr \tmp, \sr
62 st.w --sp, \tmp
65 .macro restore_half sr, tmp=lr
[all …]
Dbitops.h32 unsigned long tmp; in set_bit() local
41 : "=&r"(tmp), "=o"(*p) in set_bit()
52 : "=&r"(tmp), "=o"(*p) in set_bit()
71 unsigned long tmp; in clear_bit() local
80 : "=&r"(tmp), "=o"(*p) in clear_bit()
91 : "=&r"(tmp), "=o"(*p) in clear_bit()
110 unsigned long tmp; in change_bit() local
118 : "=&r"(tmp), "=o"(*p) in change_bit()
135 unsigned long tmp, old; in test_and_set_bit() local
145 : "=&r"(tmp), "=o"(*p), "=&r"(old) in test_and_set_bit()
[all …]
/linux-4.1.27/drivers/media/pci/cx25821/
Dcx25821-medusa-video.c39 u32 tmp = 0; in medusa_enable_bluefield_output() local
77 value = cx25821_i2c_read(&dev->i2c_bus[0], out_ctrl, &tmp); in medusa_enable_bluefield_output()
83 value = cx25821_i2c_read(&dev->i2c_bus[0], out_ctrl_ns, &tmp); in medusa_enable_bluefield_output()
95 u32 tmp = 0; in medusa_initialize_ntsc() local
100 MODE_CTRL + (0x200 * i), &tmp); in medusa_initialize_ntsc()
109 HORIZ_TIM_CTRL + (0x200 * i), &tmp); in medusa_initialize_ntsc()
116 VERT_TIM_CTRL + (0x200 * i), &tmp); in medusa_initialize_ntsc()
128 OUT_CTRL_NS + (0x200 * i), &tmp); in medusa_initialize_ntsc()
136 OUT_CTRL1 + (0x200 * i), &tmp); in medusa_initialize_ntsc()
147 MISC_TIM_CTRL + (0x200 * i), &tmp); in medusa_initialize_ntsc()
[all …]
/linux-4.1.27/arch/mn10300/kernel/
Dgdb-io-ttysm.c40 int tmp; in gdbstub_io_init() local
68 tmp = *gdbstub_port->rx_icr; in gdbstub_io_init()
86 tmp = *gdbstub_port->_control; in gdbstub_io_init()
101 unsigned xdiv, tmp; in gdbstub_io_set_baud() local
118 tmxbr = tmp = (ioclk / (baud * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud()
119 if (tmp > 0 && tmp <= 65535) in gdbstub_io_set_baud()
123 tmxbr = tmp = (ioclk / (baud * 8 * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud()
124 if (tmp > 0 && tmp <= 65535) in gdbstub_io_set_baud()
128 tmxbr = tmp = (ioclk / (baud * 32 * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud()
129 if (tmp > 0 && tmp <= 65535) in gdbstub_io_set_baud()
[all …]
Dirq.c44 u16 tmp; in mn10300_cpupic_ack() local
48 tmp = GxICR(irq); in mn10300_cpupic_ack()
56 u16 tmp; in __mask_and_set_icr() local
59 tmp = GxICR(irq); in __mask_and_set_icr()
60 GxICR(irq) = (tmp & mask) | set; in __mask_and_set_icr()
61 tmp = GxICR(irq); in __mask_and_set_icr()
75 u16 tmp; in mn10300_cpupic_mask_ack() local
80 tmp = GxICR(irq); in mn10300_cpupic_mask_ack()
81 GxICR(irq) = (tmp & GxICR_LEVEL) | GxICR_DETECT; in mn10300_cpupic_mask_ack()
82 tmp = GxICR(irq); in mn10300_cpupic_mask_ack()
[all …]
Dmn10300-watchdog.c51 irq_cpustat_t tmp[1]; in check_watchdog() local
55 memcpy(tmp, irq_stat, sizeof(tmp)); in check_watchdog()
60 if (nmi_count(0) - tmp[0].__nmi_count <= 5) { in check_watchdog()
78 unsigned tmp; in setup_watchdog() local
92 tmp = WDCTR; in setup_watchdog()
94 tmp = __muldiv64u(1 << (16 + ctr * 2), 1000000, MN10300_WDCLK); in setup_watchdog()
95 tmp = 1000000000 / tmp; in setup_watchdog()
96 watchdog_hz = (tmp + 500) / 1000; in setup_watchdog()
137 u8 wdt, tmp; in watchdog_interrupt() local
141 tmp = WDCTR; in watchdog_interrupt()
[all …]
/linux-4.1.27/arch/blackfin/include/asm/
Dcmpxchg.h27 unsigned long tmp; in __xchg() local
31 tmp = __raw_xchg_1_asm(ptr, x); in __xchg()
34 tmp = __raw_xchg_2_asm(ptr, x); in __xchg()
37 tmp = __raw_xchg_4_asm(ptr, x); in __xchg()
41 return tmp; in __xchg()
52 unsigned long tmp; in __cmpxchg() local
56 tmp = __raw_cmpxchg_1_asm(ptr, new, old); in __cmpxchg()
59 tmp = __raw_cmpxchg_2_asm(ptr, new, old); in __cmpxchg()
62 tmp = __raw_cmpxchg_4_asm(ptr, new, old); in __cmpxchg()
66 return tmp; in __cmpxchg()
[all …]
/linux-4.1.27/drivers/video/fbdev/mmp/hw/
Dmmp_ctrl.c46 u32 isr, imask, tmp; in ctrl_handle_irq() local
53 tmp = readl_relaxed(ctrl->reg_base + SPU_IRQ_ISR); in ctrl_handle_irq()
54 if (tmp & isr) in ctrl_handle_irq()
134 u32 tmp; in dmafetch_set_fmt() local
136 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_set_fmt()
137 tmp &= ~dma_mask(overlay_is_vid(overlay)); in dmafetch_set_fmt()
138 tmp |= fmt_to_reg(overlay, overlay->win.pix_fmt); in dmafetch_set_fmt()
139 writel_relaxed(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_set_fmt()
176 u32 tmp; in dmafetch_onoff() local
180 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_onoff()
[all …]
Dmmp_spi.c46 u32 tmp; in lcd_spi_write() local
68 tmp = readl_relaxed(reg_base + LCD_SPU_SPI_CTRL); in lcd_spi_write()
69 tmp &= ~CFG_SPI_START_MASK; in lcd_spi_write()
70 tmp |= CFG_SPI_START(1); in lcd_spi_write()
71 writel(tmp, reg_base + LCD_SPU_SPI_CTRL); in lcd_spi_write()
84 tmp = readl_relaxed(reg_base + LCD_SPU_SPI_CTRL); in lcd_spi_write()
85 tmp &= ~CFG_SPI_START_MASK; in lcd_spi_write()
86 tmp |= CFG_SPI_START(0); in lcd_spi_write()
87 writel_relaxed(tmp, reg_base + LCD_SPU_SPI_CTRL); in lcd_spi_write()
98 u32 tmp; in lcd_spi_setup() local
[all …]
/linux-4.1.27/drivers/net/wireless/cw1200/
Dhwio.h172 __le32 tmp; in cw1200_reg_read_16() local
174 i = cw1200_reg_read(priv, addr, &tmp, sizeof(tmp)); in cw1200_reg_read_16()
175 *val = le32_to_cpu(tmp) & 0xfffff; in cw1200_reg_read_16()
182 __le32 tmp = cpu_to_le32((u32)val); in cw1200_reg_write_16() local
183 return cw1200_reg_write(priv, addr, &tmp, sizeof(tmp)); in cw1200_reg_write_16()
189 __le32 tmp; in cw1200_reg_read_32() local
190 int i = cw1200_reg_read(priv, addr, &tmp, sizeof(tmp)); in cw1200_reg_read_32()
191 *val = le32_to_cpu(tmp); in cw1200_reg_read_32()
198 __le32 tmp = cpu_to_le32(val); in cw1200_reg_write_32() local
199 return cw1200_reg_write(priv, addr, &tmp, sizeof(val)); in cw1200_reg_write_32()
[all …]
/linux-4.1.27/arch/mips/mm/
Dsc-mips.c72 unsigned int tmp; in mips_sc_is_activated() local
89 tmp = (config2 >> 4) & 0x0f; in mips_sc_is_activated()
90 if (0 < tmp && tmp <= 7) in mips_sc_is_activated()
91 c->scache.linesz = 2 << tmp; in mips_sc_is_activated()
101 unsigned int tmp; in mips_sc_probe() local
122 tmp = (config2 >> 8) & 0x0f; in mips_sc_probe()
123 if (0 <= tmp && tmp <= 7) in mips_sc_probe()
124 c->scache.sets = 64 << tmp; in mips_sc_probe()
128 tmp = (config2 >> 0) & 0x0f; in mips_sc_probe()
129 if (0 <= tmp && tmp <= 7) in mips_sc_probe()
[all …]
Dtlbex.c647 unsigned int tmp, enum label_id lid, in build_restore_pagemask() argument
653 uasm_i_lui(p, tmp, PM_DEFAULT_MASK >> 16); in build_restore_pagemask()
654 uasm_i_ori(p, tmp, tmp, PM_DEFAULT_MASK & 0xffff); in build_restore_pagemask()
655 uasm_i_mtc0(p, tmp, C0_PAGEMASK); in build_restore_pagemask()
658 uasm_i_ori(p, tmp, 0, PM_DEFAULT_MASK); in build_restore_pagemask()
659 uasm_i_mtc0(p, tmp, C0_PAGEMASK); in build_restore_pagemask()
672 uasm_i_lui(p, tmp, PM_DEFAULT_MASK >> 16); in build_restore_pagemask()
673 uasm_i_ori(p, tmp, tmp, PM_DEFAULT_MASK & 0xffff); in build_restore_pagemask()
675 uasm_i_mtc0(p, tmp, C0_PAGEMASK); in build_restore_pagemask()
677 uasm_i_ori(p, tmp, 0, PM_DEFAULT_MASK); in build_restore_pagemask()
[all …]
/linux-4.1.27/drivers/cpufreq/
Dexynos4210-cpufreq.c60 unsigned int tmp; in exynos4210_set_clkdiv() local
64 tmp = apll_freq_4210[div_index].clk_div_cpu0; in exynos4210_set_clkdiv()
66 __raw_writel(tmp, cpufreq->cmu_regs + EXYNOS4_CLKDIV_CPU); in exynos4210_set_clkdiv()
69 tmp = __raw_readl(cpufreq->cmu_regs + EXYNOS4_CLKDIV_STATCPU); in exynos4210_set_clkdiv()
70 } while (tmp & 0x1111111); in exynos4210_set_clkdiv()
74 tmp = apll_freq_4210[div_index].clk_div_cpu1; in exynos4210_set_clkdiv()
76 __raw_writel(tmp, cpufreq->cmu_regs + EXYNOS4_CLKDIV_CPU1); in exynos4210_set_clkdiv()
79 tmp = __raw_readl(cpufreq->cmu_regs + EXYNOS4_CLKDIV_STATCPU1); in exynos4210_set_clkdiv()
80 } while (tmp & 0x11); in exynos4210_set_clkdiv()
85 unsigned int tmp, freq = apll_freq_4210[index].freq; in exynos4210_set_apll() local
[all …]
Dexynos4x12-cpufreq.c105 unsigned int tmp; in exynos4x12_set_clkdiv() local
109 tmp = apll_freq_4x12[div_index].clk_div_cpu0; in exynos4x12_set_clkdiv()
111 __raw_writel(tmp, cpufreq->cmu_regs + EXYNOS4_CLKDIV_CPU); in exynos4x12_set_clkdiv()
118 tmp = apll_freq_4x12[div_index].clk_div_cpu1; in exynos4x12_set_clkdiv()
120 __raw_writel(tmp, cpufreq->cmu_regs + EXYNOS4_CLKDIV_CPU1); in exynos4x12_set_clkdiv()
124 tmp = __raw_readl(cpufreq->cmu_regs + EXYNOS4_CLKDIV_STATCPU1); in exynos4x12_set_clkdiv()
125 } while (tmp != 0x0); in exynos4x12_set_clkdiv()
130 unsigned int tmp, freq = apll_freq_4x12[index].freq; in exynos4x12_set_apll() local
137 tmp = (__raw_readl(cpufreq->cmu_regs + EXYNOS4_CLKMUX_STATCPU) in exynos4x12_set_apll()
139 tmp &= 0x7; in exynos4x12_set_apll()
[all …]
Dexynos5250-cpufreq.c85 unsigned int tmp; in set_clkdiv() local
89 tmp = apll_freq_5250[div_index].clk_div_cpu0; in set_clkdiv()
91 __raw_writel(tmp, cpufreq->cmu_regs + EXYNOS5_CLKDIV_CPU0); in set_clkdiv()
98 tmp = apll_freq_5250[div_index].clk_div_cpu1; in set_clkdiv()
100 __raw_writel(tmp, cpufreq->cmu_regs + EXYNOS5_CLKDIV_CPU1); in set_clkdiv()
108 unsigned int tmp; in set_apll() local
116 tmp = (__raw_readl(cpufreq->cmu_regs + EXYNOS5_CLKMUX_STATCPU) in set_apll()
118 tmp &= 0x7; in set_apll()
119 } while (tmp != 0x2); in set_apll()
128 tmp = __raw_readl(cpufreq->cmu_regs + EXYNOS5_CLKMUX_STATCPU); in set_apll()
[all …]
/linux-4.1.27/arch/arm/include/asm/
Dvfpmacros.h20 .macro VFPFLDMIA, base, tmp in toolkits()
28 ldr \tmp, =elf_hwcap @ may not have MVFR regs
29 ldr \tmp, [\tmp, #0]
30 tst \tmp, #HWCAP_VFPD32
34 VFPFMRX \tmp, MVFR0 @ Media and VFP Feature Register 0
35 and \tmp, \tmp, #MVFR0_A_SIMD_MASK @ A_SIMD field
36 cmp \tmp, #2 @ 32 x 64bit registers?
44 .macro VFPFSTMIA, base, tmp
52 ldr \tmp, =elf_hwcap @ may not have MVFR regs
53 ldr \tmp, [\tmp, #0]
[all …]
/linux-4.1.27/arch/m68k/include/asm/
Draw_io.h133 unsigned int tmp; in raw_insw() local
136 tmp = (nr & 15) - 1; in raw_insw()
139 : "=a" (buf), "=d" (tmp) in raw_insw()
141 "1" (tmp)); in raw_insw()
144 tmp = (nr >> 4) - 1; in raw_insw()
164 : "=a" (buf), "=d" (tmp) in raw_insw()
166 "1" (tmp)); in raw_insw()
173 unsigned int tmp; in raw_outsw() local
176 tmp = (nr & 15) - 1; in raw_outsw()
179 : "=a" (buf), "=d" (tmp) in raw_outsw()
[all …]
Duaccess_mm.h205 #define __constant_copy_from_user_asm(res, to, from, tmp, n, s1, s2, s3)\ argument
235 : "+d" (res), "+&a" (to), "+a" (from), "=&d" (tmp) \
241 unsigned long res = 0, tmp; in __constant_copy_from_user() local
251 __constant_copy_from_user_asm(res, to, from, tmp, 3, w, b,); in __constant_copy_from_user()
257 __constant_copy_from_user_asm(res, to, from, tmp, 5, l, b,); in __constant_copy_from_user()
260 __constant_copy_from_user_asm(res, to, from, tmp, 6, l, w,); in __constant_copy_from_user()
263 __constant_copy_from_user_asm(res, to, from, tmp, 7, l, w, b); in __constant_copy_from_user()
266 __constant_copy_from_user_asm(res, to, from, tmp, 8, l, l,); in __constant_copy_from_user()
269 __constant_copy_from_user_asm(res, to, from, tmp, 9, l, l, b); in __constant_copy_from_user()
272 __constant_copy_from_user_asm(res, to, from, tmp, 10, l, l, w); in __constant_copy_from_user()
[all …]
/linux-4.1.27/arch/mn10300/unit-asb2364/include/unit/
Dtimex.h46 u16 tmp; in stop_jiffies_counter() local
48 tmp = TMTMD; in stop_jiffies_counter()
53 u32 tmp; in reload_jiffies_counter() local
56 tmp = TMTBR; in reload_jiffies_counter()
60 tmp = TMTMD; in reload_jiffies_counter()
76 u8 tmp; in stop_jiffies_counter1() local
79 tmp = TM4MD; in stop_jiffies_counter1()
80 tmp = TM5MD; in stop_jiffies_counter1()
85 u32 tmp; in reload_jiffies_counter1() local
88 tmp = TM45BR; in reload_jiffies_counter1()
[all …]
/linux-4.1.27/drivers/scsi/
DNCR5380.c917 struct scsi_cmnd *tmp; in NCR5380_queue_command_lck() local
951 …for (tmp = (struct scsi_cmnd *) hostdata->issue_queue; tmp->host_scribble; tmp = (struct scsi_cmnd… in NCR5380_queue_command_lck()
952 LIST(cmd, tmp); in NCR5380_queue_command_lck()
953 tmp->host_scribble = (unsigned char *) cmd; in NCR5380_queue_command_lck()
982 struct scsi_cmnd *tmp, *prev; in DEF_SCSI_QCMD() local
995 …for (tmp = (struct scsi_cmnd *) hostdata->issue_queue, prev = NULL; tmp; prev = tmp, tmp = (struct… in DEF_SCSI_QCMD()
997 if (prev != tmp) in DEF_SCSI_QCMD()
998 …MAIN tmp=%p target=%d busy=%d lun=%llu\n", tmp, tmp->device->id, hostdata->busy[tmp->device->i… in DEF_SCSI_QCMD()
1000 if (!(hostdata->busy[tmp->device->id] & in DEF_SCSI_QCMD()
1001 (1 << (u8)(tmp->device->lun & 0xff)))) { in DEF_SCSI_QCMD()
[all …]
Datari_NCR5380.c831 struct scsi_cmnd *tmp; in NCR5380_queue_command() local
890 for (tmp = (struct scsi_cmnd *)hostdata->issue_queue; in NCR5380_queue_command()
891 NEXT(tmp); tmp = NEXT(tmp)) in NCR5380_queue_command()
893 LIST(cmd, tmp); in NCR5380_queue_command()
894 SET_NEXT(tmp, cmd); in NCR5380_queue_command()
943 struct scsi_cmnd *tmp, *prev; in NCR5380_main() local
984 for (tmp = (struct scsi_cmnd *) hostdata->issue_queue, prev = NULL; in NCR5380_main()
985 tmp && (tmp != prev); prev = tmp, tmp = NEXT(tmp)) in NCR5380_main()
988 if ((tmp == prev) && tmp) in NCR5380_main()
992 for (tmp = (struct scsi_cmnd *) hostdata->issue_queue, in NCR5380_main()
[all …]
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_fs.c227 char *tmp; in qsfp_1_read() local
230 tmp = kmalloc(PAGE_SIZE, GFP_KERNEL); in qsfp_1_read()
231 if (!tmp) in qsfp_1_read()
234 ret = qib_qsfp_dump(dd->pport, tmp, PAGE_SIZE); in qsfp_1_read()
236 ret = simple_read_from_buffer(buf, count, ppos, tmp, ret); in qsfp_1_read()
237 kfree(tmp); in qsfp_1_read()
248 char *tmp; in qsfp_2_read() local
254 tmp = kmalloc(PAGE_SIZE, GFP_KERNEL); in qsfp_2_read()
255 if (!tmp) in qsfp_2_read()
258 ret = qib_qsfp_dump(dd->pport + 1, tmp, PAGE_SIZE); in qsfp_2_read()
[all …]
/linux-4.1.27/drivers/spi/
Dspi-bcm53xx.c44 u32 tmp; in bcm53xxspi_wait() local
49 tmp = bcm53xxspi_read(b53spi, B53SPI_MSPI_SPCR2); in bcm53xxspi_wait()
50 if (!(tmp & B53SPI_MSPI_SPCR2_SPE)) in bcm53xxspi_wait()
55 if (tmp & B53SPI_MSPI_SPCR2_SPE) in bcm53xxspi_wait()
61 tmp = bcm53xxspi_read(b53spi, B53SPI_MSPI_MSPI_STATUS); in bcm53xxspi_wait()
62 if (tmp & B53SPI_MSPI_MSPI_STATUS_SPIF) { in bcm53xxspi_wait()
82 u32 tmp; in bcm53xxspi_buf_write() local
92 tmp = B53SPI_CDRAM_CONT | B53SPI_CDRAM_PCS_DISABLE_ALL | in bcm53xxspi_buf_write()
95 tmp &= ~B53SPI_CDRAM_CONT; in bcm53xxspi_buf_write()
96 tmp &= ~0x1; in bcm53xxspi_buf_write()
[all …]
/linux-4.1.27/drivers/media/common/b2c2/
Dflexcop-eeprom.c63 u8 tmp[8];
66 tmp[0] = mac[0];
67 tmp[1] = mac[1];
68 tmp[2] = mac[2];
69 tmp[3] = mac[5];
70 tmp[4] = mac[6];
71 tmp[5] = mac[7];
73 tmp[0] = mac[0];
74 tmp[1] = mac[1];
75 tmp[2] = mac[2];
[all …]
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_fs.c133 char *tmp; in flash_read() local
150 tmp = kmalloc(count, GFP_KERNEL); in flash_read()
151 if (!tmp) { in flash_read()
157 if (ipath_eeprom_read(dd, pos, tmp, count)) { in flash_read()
163 if (copy_to_user(buf, tmp, count)) { in flash_read()
172 kfree(tmp); in flash_read()
184 char *tmp; in flash_write() local
198 tmp = kmalloc(count, GFP_KERNEL); in flash_write()
199 if (!tmp) { in flash_write()
204 if (copy_from_user(tmp, buf, count)) { in flash_write()
[all …]
/linux-4.1.27/drivers/ssb/
Ddriver_chipcommon.c47 u32 tmp; in ssb_chipco_set_clockmode() local
74 tmp = chipco_read32(cc, SSB_CHIPCO_SLOWCLKCTL); in ssb_chipco_set_clockmode()
75 tmp |= SSB_CHIPCO_SLOWCLKCTL_FSLOW; in ssb_chipco_set_clockmode()
76 chipco_write32(cc, SSB_CHIPCO_SLOWCLKCTL, tmp); in ssb_chipco_set_clockmode()
81 tmp = chipco_read32(cc, SSB_CHIPCO_SLOWCLKCTL); in ssb_chipco_set_clockmode()
82 tmp &= ~SSB_CHIPCO_SLOWCLKCTL_FSLOW; in ssb_chipco_set_clockmode()
83 tmp |= SSB_CHIPCO_SLOWCLKCTL_IPLL; in ssb_chipco_set_clockmode()
84 chipco_write32(cc, SSB_CHIPCO_SLOWCLKCTL, tmp); in ssb_chipco_set_clockmode()
94 tmp = chipco_read32(cc, SSB_CHIPCO_SLOWCLKCTL); in ssb_chipco_set_clockmode()
95 tmp &= ~SSB_CHIPCO_SLOWCLKCTL_FSLOW; in ssb_chipco_set_clockmode()
[all …]
Ddriver_pcicore.c75 u32 tmp; in get_cfgspace_addr() local
86 tmp = SSB_PCICORE_SBTOPCI_CFG0; in get_cfgspace_addr()
87 tmp |= ((1 << (dev + 16)) & SSB_PCICORE_SBTOPCI1_MASK); in get_cfgspace_addr()
88 pcicore_write32(pc, SSB_PCICORE_SBTOPCI1, tmp); in get_cfgspace_addr()
396 u32 tmp; in pcicore_is_in_hostmode() local
417 return !mips_busprobe32(tmp, (bus->mmio + (pc->dev->core_index * SSB_CORE_SIZE))); in pcicore_is_in_hostmode()
427 u16 tmp = pcicore_read16(pc, SSB_PCICORE_SPROM(0)); in ssb_pcicore_fix_sprom_core_index() local
428 if (((tmp & 0xF000) >> 12) != pc->dev->core_index) { in ssb_pcicore_fix_sprom_core_index()
429 tmp &= ~0xF000; in ssb_pcicore_fix_sprom_core_index()
430 tmp |= (pc->dev->core_index << 12); in ssb_pcicore_fix_sprom_core_index()
[all …]
/linux-4.1.27/arch/m68k/kernel/
Dptrace.c128 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS; in singlestep_disable() local
129 put_reg(child, PT_SR, tmp); in singlestep_disable()
143 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS; in user_enable_single_step() local
144 put_reg(child, PT_SR, tmp | T1_BIT); in user_enable_single_step()
151 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS; in user_enable_block_step() local
152 put_reg(child, PT_SR, tmp | T0_BIT); in user_enable_block_step()
164 unsigned long tmp; in arch_ptrace() local
176 tmp = get_reg(child, regno); in arch_ptrace()
178 tmp = child->thread.fp[regno - 21]; in arch_ptrace()
183 tmp = ((tmp & 0xffff0000) << 15) | in arch_ptrace()
[all …]
/linux-4.1.27/fs/ufs/
Dtruncate.c74 unsigned i, tmp; in ufs_trunc_direct() local
112 tmp = ufs_data_ptr_to_cpu(sb, p); in ufs_trunc_direct()
113 if (!tmp ) in ufs_trunc_direct()
118 ufs_free_fragments(inode, tmp + frag1, frag2); in ufs_trunc_direct()
120 frag_to_free = tmp + frag1; in ufs_trunc_direct()
128 tmp = ufs_data_ptr_to_cpu(sb, p); in ufs_trunc_direct()
129 if (!tmp) in ufs_trunc_direct()
134 frag_to_free = tmp; in ufs_trunc_direct()
136 } else if (free_count > 0 && frag_to_free == tmp - free_count) in ufs_trunc_direct()
140 frag_to_free = tmp; in ufs_trunc_direct()
[all …]
/linux-4.1.27/fs/xfs/
Dxfs_bit.c53 uint tmp; in xfs_contig_bits() local
61 tmp = *p++; in xfs_contig_bits()
63 tmp |= (~0U >> (NBWORD-start_bit)); in xfs_contig_bits()
64 if (tmp != ~0U) in xfs_contig_bits()
70 if ((tmp = *p++) != ~0U) in xfs_contig_bits()
77 return result + ffz(tmp) - start_bit; in xfs_contig_bits()
92 uint tmp; in xfs_next_bit() local
101 tmp = *p++; in xfs_next_bit()
103 tmp &= (~0U << start_bit); in xfs_next_bit()
104 if (tmp != 0U) in xfs_next_bit()
[all …]
/linux-4.1.27/arch/arm/mach-omap1/include/mach/
Dentry-macro.S16 .macro get_irqnr_preamble, base, tmp
19 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
22 ldr \tmp, [\base, #IRQ_MIR_REG_OFFSET]
24 bic \tmp, \irqstat, \tmp
25 tst \irqnr, \tmp
29 ldr \tmp, =omap_irq_flags @ irq flags address
30 ldr \tmp, [\tmp, #0] @ irq flags value
33 cmpeq \irqnr, \tmp
/linux-4.1.27/arch/m68k/mm/
Dmemory.c65 unsigned char tmp; in get_pointer_table() local
91 for (tmp = 1, off = 0; (mask & tmp) == 0; tmp <<= 1, off += PTABLE_SIZE) in get_pointer_table()
93 PD_MARKBITS(dp) = mask & ~tmp; in get_pointer_table()
208 int tmp; in cache_clear() local
215 if ((tmp = -paddr & (PAGE_SIZE - 1))) { in cache_clear()
217 if ((len -= tmp) <= 0) in cache_clear()
219 paddr += tmp; in cache_clear()
221 tmp = PAGE_SIZE; in cache_clear()
223 while ((len -= tmp) >= 0) { in cache_clear()
225 paddr += tmp; in cache_clear()
[all …]
/linux-4.1.27/drivers/tty/serial/
Dlpc32xx_hs.c250 u32 tmp; in __serial_uart_flush() local
255 tmp = readl(LPC32XX_HSUART_FIFO(port->membase)); in __serial_uart_flush()
261 unsigned int tmp, flag; in __serial_lpc32xx_rx() local
264 tmp = readl(LPC32XX_HSUART_FIFO(port->membase)); in __serial_lpc32xx_rx()
265 while (!(tmp & LPC32XX_HSU_RX_EMPTY)) { in __serial_lpc32xx_rx()
269 if (tmp & LPC32XX_HSU_ERROR_DATA) { in __serial_lpc32xx_rx()
278 tty_insert_flip_char(tport, (tmp & 0xFF), flag); in __serial_lpc32xx_rx()
280 tmp = readl(LPC32XX_HSUART_FIFO(port->membase)); in __serial_lpc32xx_rx()
291 unsigned int tmp; in __serial_lpc32xx_tx() local
319 tmp = readl(LPC32XX_HSUART_CTRL(port->membase)); in __serial_lpc32xx_tx()
[all …]
/linux-4.1.27/arch/powerpc/kernel/
Dptrace32.c66 u32 tmp; in compat_arch_ptrace() local
76 copied = access_process_vm(child, (u64)addrOthers, &tmp, in compat_arch_ptrace()
77 sizeof(tmp), 0); in compat_arch_ptrace()
78 if (copied != sizeof(tmp)) in compat_arch_ptrace()
80 ret = put_user(tmp, (u32 __user *)data); in compat_arch_ptrace()
87 unsigned long tmp; in compat_arch_ptrace() local
97 ret = ptrace_get_reg(child, index, &tmp); in compat_arch_ptrace()
107 tmp = ((unsigned int *)child->thread.fp_state.fpr) in compat_arch_ptrace()
110 ret = put_user((unsigned int)tmp, (u32 __user *)data); in compat_arch_ptrace()
125 u64 tmp; in compat_arch_ptrace() local
[all …]
/linux-4.1.27/arch/score/kernel/
Dptrace.c178 unsigned int tmp, tmp2; in user_enable_single_step() local
188 tmp = epc_insn & 0xFFE; in user_enable_single_step()
189 epc = (epc & 0xFFFFF000) | tmp; in user_enable_single_step()
192 tmp = (epc_insn & 0xFF) << 1; in user_enable_single_step()
193 tmp = tmp << 23; in user_enable_single_step()
194 tmp = (unsigned int)((int) tmp >> 23); in user_enable_single_step()
195 far_epc = epc + tmp; in user_enable_single_step()
199 tmp = (epc_insn >> 4) & 0xF; in user_enable_single_step()
200 far_epc = regs->regs[tmp]; in user_enable_single_step()
206 tmp = epc_insn & 0x03FFFFFE; in user_enable_single_step()
[all …]
/linux-4.1.27/drivers/media/tuners/
Dfc0013.c197 u8 tmp; in fc0013_set_vhf_track() local
199 ret = fc0013_readreg(priv, 0x1d, &tmp); in fc0013_set_vhf_track()
202 tmp &= 0xe3; in fc0013_set_vhf_track()
204 ret = fc0013_writereg(priv, 0x1d, tmp | 0x1c); in fc0013_set_vhf_track()
206 ret = fc0013_writereg(priv, 0x1d, tmp | 0x18); in fc0013_set_vhf_track()
208 ret = fc0013_writereg(priv, 0x1d, tmp | 0x14); in fc0013_set_vhf_track()
210 ret = fc0013_writereg(priv, 0x1d, tmp | 0x10); in fc0013_set_vhf_track()
212 ret = fc0013_writereg(priv, 0x1d, tmp | 0x0c); in fc0013_set_vhf_track()
214 ret = fc0013_writereg(priv, 0x1d, tmp | 0x08); in fc0013_set_vhf_track()
216 ret = fc0013_writereg(priv, 0x1d, tmp | 0x04); in fc0013_set_vhf_track()
[all …]
/linux-4.1.27/include/linux/unaligned/
Dmemmove.h11 u16 tmp; in __get_unaligned_memmove16() local
12 memmove(&tmp, p, 2); in __get_unaligned_memmove16()
13 return tmp; in __get_unaligned_memmove16()
18 u32 tmp; in __get_unaligned_memmove32() local
19 memmove(&tmp, p, 4); in __get_unaligned_memmove32()
20 return tmp; in __get_unaligned_memmove32()
25 u64 tmp; in __get_unaligned_memmove64() local
26 memmove(&tmp, p, 8); in __get_unaligned_memmove64()
27 return tmp; in __get_unaligned_memmove64()
/linux-4.1.27/drivers/net/wireless/b43legacy/
Dxmit.c375 s32 tmp; in b43legacy_rssi_postprocess() local
380 tmp = in_rssi; in b43legacy_rssi_postprocess()
381 if (tmp > 127) in b43legacy_rssi_postprocess()
382 tmp -= 256; in b43legacy_rssi_postprocess()
383 tmp *= 73; in b43legacy_rssi_postprocess()
384 tmp /= 64; in b43legacy_rssi_postprocess()
386 tmp += 25; in b43legacy_rssi_postprocess()
388 tmp -= 3; in b43legacy_rssi_postprocess()
394 tmp = phy->nrssi_lt[in_rssi]; in b43legacy_rssi_postprocess()
395 tmp = 31 - tmp; in b43legacy_rssi_postprocess()
[all …]
/linux-4.1.27/arch/arm64/mm/
Dproc-macros.S39 .macro dcache_line_size, reg, tmp
40 mrs \tmp, ctr_el0 // read CTR
41 ubfm \tmp, \tmp, #16, #19 // cache line size encoding
43 lsl \reg, \reg, \tmp // actual cache line size
49 .macro icache_line_size, reg, tmp
50 mrs \tmp, ctr_el0 // read CTR
51 and \tmp, \tmp, #0xf // cache line size encoding
53 lsl \reg, \reg, \tmp // actual cache line size
/linux-4.1.27/drivers/mmc/host/
Dsdhci-pxav2.c62 u16 tmp = 0; in pxav2_reset() local
69 tmp = readw(host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP); in pxav2_reset()
71 tmp &= ~(SDCLK_DELAY_MASK << SDCLK_DELAY_SHIFT); in pxav2_reset()
72 tmp |= (pdata->clk_delay_cycles & SDCLK_DELAY_MASK) in pxav2_reset()
74 tmp &= ~(SDCLK_SEL_MASK << SDCLK_SEL_SHIFT); in pxav2_reset()
75 tmp |= (1 & SDCLK_SEL_MASK) << SDCLK_SEL_SHIFT; in pxav2_reset()
77 writew(tmp, host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP); in pxav2_reset()
81 tmp = readw(host->ioaddr + SD_FIFO_PARAM); in pxav2_reset()
82 tmp &= ~CLK_GATE_SETTING_BITS; in pxav2_reset()
83 writew(tmp, host->ioaddr + SD_FIFO_PARAM); in pxav2_reset()
[all …]
/linux-4.1.27/drivers/usb/host/
Dbcma-hcd.c62 u32 tmp; in bcma_hcd_4716wa() local
64 tmp = bcma_cpu_clock(&dev->bus->drv_mips); in bcma_hcd_4716wa()
65 if (tmp >= 480000000) in bcma_hcd_4716wa()
66 tmp = 0x1846b; /* set CDR to 0x11(fast) */ in bcma_hcd_4716wa()
67 else if (tmp == 453000000) in bcma_hcd_4716wa()
68 tmp = 0x1046b; /* set CDR to 0x10(slow) */ in bcma_hcd_4716wa()
70 tmp = 0; in bcma_hcd_4716wa()
75 if (tmp) { in bcma_hcd_4716wa()
79 bcma_write32(dev, 0x524, tmp); in bcma_hcd_4716wa()
93 u32 tmp; in bcma_hcd_init_chip() local
[all …]
/linux-4.1.27/drivers/isdn/i4l/
Disdn_x25iface.c86 ix25_pdata_t *tmp = kmalloc(sizeof(ix25_pdata_t), GFP_KERNEL); in isdn_x25iface_proto_new() local
88 if (tmp) { in isdn_x25iface_proto_new()
89 tmp->magic = ISDN_X25IFACE_MAGIC; in isdn_x25iface_proto_new()
90 tmp->state = WAN_UNCONFIGURED; in isdn_x25iface_proto_new()
93 spin_lock_init(&tmp->priv.lock); in isdn_x25iface_proto_new()
94 tmp->priv.dops = NULL; in isdn_x25iface_proto_new()
95 tmp->priv.net_dev = NULL; in isdn_x25iface_proto_new()
96 tmp->priv.pops = &ix25_pops; in isdn_x25iface_proto_new()
97 tmp->priv.flags = 0; in isdn_x25iface_proto_new()
98 tmp->priv.proto_data = tmp; in isdn_x25iface_proto_new()
[all …]
/linux-4.1.27/arch/arm/kvm/
Dmmio.c34 } tmp; in mmio_write_buf() local
38 tmp.byte = data; in mmio_write_buf()
39 datap = &tmp.byte; in mmio_write_buf()
42 tmp.hword = data; in mmio_write_buf()
43 datap = &tmp.hword; in mmio_write_buf()
46 tmp.word = data; in mmio_write_buf()
47 datap = &tmp.word; in mmio_write_buf()
50 tmp.dword = data; in mmio_write_buf()
51 datap = &tmp.dword; in mmio_write_buf()
65 } tmp; in mmio_read_buf() local
[all …]
/linux-4.1.27/drivers/ata/
Dsata_promise.c366 unsigned int tmp; in pdc_sata_port_start() local
368 tmp = readl(sata_mmio + PDC_PHYMODE4); in pdc_sata_port_start()
369 tmp = (tmp & ~3) | 1; /* set bits 1:0 = 0:1 */ in pdc_sata_port_start()
370 writel(tmp, sata_mmio + PDC_PHYMODE4); in pdc_sata_port_start()
379 u32 tmp; in pdc_fpdma_clear_interrupt_flag() local
381 tmp = readl(sata_mmio + PDC_FPDMA_CTLSTAT); in pdc_fpdma_clear_interrupt_flag()
382 tmp |= PDC_FPDMA_CTLSTAT_DMASETUP_INT_FLAG; in pdc_fpdma_clear_interrupt_flag()
383 tmp |= PDC_FPDMA_CTLSTAT_SETDB_INT_FLAG; in pdc_fpdma_clear_interrupt_flag()
387 writeb(tmp >> 8, sata_mmio + PDC_FPDMA_CTLSTAT + 1); in pdc_fpdma_clear_interrupt_flag()
394 u8 tmp; in pdc_fpdma_reset() local
[all …]
/linux-4.1.27/drivers/staging/olpc_dcon/
Dolpc_dcon_xo_1_5.c52 u_int8_t tmp; in dcon_was_irq() local
55 tmp = inb(VX855_GPI_STATUS_CHG); in dcon_was_irq()
56 return !!(tmp & BIT_GPIO12); in dcon_was_irq()
88 unsigned char tmp; in set_i2c_line() local
93 tmp = inb(0x3c5); in set_i2c_line()
96 tmp |= 0x20; in set_i2c_line()
98 tmp &= ~0x20; in set_i2c_line()
101 tmp |= 0x10; in set_i2c_line()
103 tmp &= ~0x10; in set_i2c_line()
105 tmp |= 0x01; in set_i2c_line()
[all …]
/linux-4.1.27/drivers/gpio/
Dgpio-spear-spics.c67 u32 tmp; in spics_set_value() local
70 tmp = readl_relaxed(spics->base + spics->perip_cfg); in spics_set_value()
73 tmp &= ~(spics->cs_enable_mask << spics->cs_enable_shift); in spics_set_value()
74 tmp |= offset << spics->cs_enable_shift; in spics_set_value()
78 tmp &= ~(0x1 << spics->cs_value_bit); in spics_set_value()
79 tmp |= value << spics->cs_value_bit; in spics_set_value()
80 writel_relaxed(tmp, spics->base + spics->perip_cfg); in spics_set_value()
99 u32 tmp; in spics_request() local
102 tmp = readl_relaxed(spics->base + spics->perip_cfg); in spics_request()
103 tmp |= 0x1 << spics->sw_enable_bit; in spics_request()
[all …]
/linux-4.1.27/arch/arc/include/uapi/asm/
Dswab.h26 unsigned int tmp = x; \
29 : "=r" (tmp) \
30 : "r" (tmp)); \
31 tmp; \
81 unsigned int tmp = x; \
85 : "=r" (tmp) \
86 : "r" (tmp)); \
87 tmp; \
/linux-4.1.27/drivers/gpu/drm/cirrus/
Dcirrus_mode.c110 u8 tmp; in cirrus_set_start_address() local
117 tmp = RREG8(CRT_DATA); in cirrus_set_start_address()
118 tmp &= 0xf2; in cirrus_set_start_address()
119 tmp |= (addr >> 16) & 0x01; in cirrus_set_start_address()
120 tmp |= (addr >> 15) & 0x0c; in cirrus_set_start_address()
121 WREG_CRT(0x1b, tmp); in cirrus_set_start_address()
123 tmp = RREG8(CRT_DATA); in cirrus_set_start_address()
124 tmp &= 0x7f; in cirrus_set_start_address()
125 tmp |= (addr >> 12) & 0x80; in cirrus_set_start_address()
126 WREG_CRT(0x1d, tmp); in cirrus_set_start_address()
[all …]
/linux-4.1.27/drivers/iio/frequency/
Dadf4350.c134 u64 tmp; in adf4350_set_freq() local
179 tmp = freq * (u64)st->r1_mod + (st->fpfd >> 1); in adf4350_set_freq()
180 do_div(tmp, st->fpfd); /* Div round closest (n + d/2)/d */ in adf4350_set_freq()
181 st->r0_fract = do_div(tmp, st->r1_mod); in adf4350_set_freq()
182 st->r0_int = tmp; in adf4350_set_freq()
253 unsigned long tmp; in adf4350_write() local
272 tmp = clk_round_rate(st->clk, readin); in adf4350_write()
273 if (tmp != readin) { in adf4350_write()
277 ret = clk_set_rate(st->clk, tmp); in adf4350_write()
386 unsigned int tmp; in adf4350_parse_dt() local
[all …]
/linux-4.1.27/drivers/watchdog/
Dalim7101_wdt.c95 char tmp; in wdt_timer_ping() local
99 pci_read_config_byte(alim7101_pmu, 0x92, &tmp); in wdt_timer_ping()
101 ALI_7101_WDT, (tmp & ~ALI_WDT_ARM)); in wdt_timer_ping()
103 ALI_7101_WDT, (tmp | ALI_WDT_ARM)); in wdt_timer_ping()
106 ALI_7101_GPIO_O, &tmp); in wdt_timer_ping()
108 ALI_7101_GPIO_O, tmp | 0x20); in wdt_timer_ping()
110 ALI_7101_GPIO_O, tmp & ~0x20); in wdt_timer_ping()
125 char tmp; in wdt_change() local
127 pci_read_config_byte(alim7101_pmu, ALI_7101_WDT, &tmp); in wdt_change()
130 ALI_7101_WDT, (tmp | ALI_WDT_ARM)); in wdt_change()
[all …]
/linux-4.1.27/arch/arm/mach-iop32x/include/mach/
Dentry-macro.S12 .macro get_irqnr_preamble, base, tmp
13 mrc p15, 0, \tmp, c15, c1, 0
14 orr \tmp, \tmp, #(1 << 6)
15 mcr p15, 0, \tmp, c15, c1, 0 @ Enable cp6 access
16 mrc p15, 0, \tmp, c15, c1, 0
17 mov \tmp, \tmp
21 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
/linux-4.1.27/drivers/net/wireless/ti/wl18xx/
Dio.c29 u32 tmp; in wl18xx_top_reg_write() local
36 ret = wlcore_read32(wl, addr, &tmp); in wl18xx_top_reg_write()
40 tmp = (tmp & 0xffff0000) | val; in wl18xx_top_reg_write()
41 ret = wlcore_write32(wl, addr, tmp); in wl18xx_top_reg_write()
43 ret = wlcore_read32(wl, addr - 2, &tmp); in wl18xx_top_reg_write()
47 tmp = (tmp & 0xffff) | (val << 16); in wl18xx_top_reg_write()
48 ret = wlcore_write32(wl, addr - 2, tmp); in wl18xx_top_reg_write()
/linux-4.1.27/drivers/clk/mmp/
Dclk-gate.c33 u32 tmp; in mmp_clk_gate_enable() local
38 tmp = readl(gate->reg); in mmp_clk_gate_enable()
39 tmp &= ~gate->mask; in mmp_clk_gate_enable()
40 tmp |= gate->val_enable; in mmp_clk_gate_enable()
41 writel(tmp, gate->reg); in mmp_clk_gate_enable()
59 u32 tmp; in mmp_clk_gate_disable() local
64 tmp = readl(gate->reg); in mmp_clk_gate_disable()
65 tmp &= ~gate->mask; in mmp_clk_gate_disable()
66 tmp |= gate->val_disable; in mmp_clk_gate_disable()
67 writel(tmp, gate->reg); in mmp_clk_gate_disable()
[all …]
/linux-4.1.27/drivers/clk/at91/
Dclk-smd.c36 u32 tmp; in at91sam9x5_clk_smd_recalc_rate() local
41 tmp = pmc_read(pmc, AT91_PMC_SMD); in at91sam9x5_clk_smd_recalc_rate()
42 smddiv = (tmp & AT91_PMC_SMD_DIV) >> SMD_DIV_SHIFT; in at91sam9x5_clk_smd_recalc_rate()
51 unsigned long tmp; in at91sam9x5_clk_smd_round_rate() local
61 tmp = *parent_rate / (div + 1); in at91sam9x5_clk_smd_round_rate()
62 if (bestrate - rate > rate - tmp) in at91sam9x5_clk_smd_round_rate()
63 bestrate = tmp; in at91sam9x5_clk_smd_round_rate()
70 u32 tmp; in at91sam9x5_clk_smd_set_parent() local
76 tmp = pmc_read(pmc, AT91_PMC_SMD) & ~AT91_PMC_SMDS; in at91sam9x5_clk_smd_set_parent()
78 tmp |= AT91_PMC_SMDS; in at91sam9x5_clk_smd_set_parent()
[all …]
Dclk-main.c86 u32 tmp; in clk_main_osc_prepare() local
88 tmp = pmc_read(pmc, AT91_CKGR_MOR) & ~MOR_KEY_MASK; in clk_main_osc_prepare()
89 if (tmp & AT91_PMC_OSCBYPASS) in clk_main_osc_prepare()
92 if (!(tmp & AT91_PMC_MOSCEN)) { in clk_main_osc_prepare()
93 tmp |= AT91_PMC_MOSCEN | AT91_PMC_KEY; in clk_main_osc_prepare()
94 pmc_write(pmc, AT91_CKGR_MOR, tmp); in clk_main_osc_prepare()
110 u32 tmp = pmc_read(pmc, AT91_CKGR_MOR); in clk_main_osc_unprepare() local
112 if (tmp & AT91_PMC_OSCBYPASS) in clk_main_osc_unprepare()
115 if (!(tmp & AT91_PMC_MOSCEN)) in clk_main_osc_unprepare()
118 tmp &= ~(AT91_PMC_KEY | AT91_PMC_MOSCEN); in clk_main_osc_unprepare()
[all …]
/linux-4.1.27/drivers/staging/i2o/
Ddevice.c229 struct i2o_device *i2o_dev, *tmp; in i2o_device_add() local
253 tmp = i2o_iop_find_device(i2o_dev->iop, i2o_dev->lct_data.user_tid); in i2o_device_add()
254 if (tmp && (tmp != i2o_dev)) { in i2o_device_add()
256 &tmp->device.kobj, "user"); in i2o_device_add()
262 list_for_each_entry(tmp, &c->devices, list) in i2o_device_add()
263 if ((tmp->lct_data.user_tid == i2o_dev->lct_data.tid) in i2o_device_add()
264 && (tmp != i2o_dev)) { in i2o_device_add()
265 rc = sysfs_create_link(&tmp->device.kobj, in i2o_device_add()
272 tmp = i2o_iop_find_device(i2o_dev->iop, i2o_dev->lct_data.parent_tid); in i2o_device_add()
273 if (tmp && (tmp != i2o_dev)) { in i2o_device_add()
[all …]
/linux-4.1.27/arch/arm/mach-iop33x/include/mach/
Dentry-macro.S12 .macro get_irqnr_preamble, base, tmp
13 mrc p15, 0, \tmp, c15, c1, 0
14 orr \tmp, \tmp, #(1 << 6)
15 mcr p15, 0, \tmp, c15, c1, 0 @ Enable cp6 access
16 mrc p15, 0, \tmp, c15, c1, 0
17 mov \tmp, \tmp
21 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
/linux-4.1.27/arch/x86/include/asm/
Drwsem.h82 long result, tmp; in __down_read_trylock() local
93 : "+m" (sem->count), "=&a" (result), "=&r" (tmp) in __down_read_trylock()
104 long tmp; in __down_write_nested() local
114 : "+m" (sem->count), "=d" (tmp) in __down_write_nested()
129 long result, tmp; in __down_write_trylock() local
144 : "+m" (sem->count), "=&a" (result), "=&r" (tmp) in __down_write_trylock()
155 long tmp; in __up_read() local
163 : "+m" (sem->count), "=d" (tmp) in __up_read()
173 long tmp; in __up_write() local
181 : "+m" (sem->count), "=d" (tmp) in __up_write()
/linux-4.1.27/arch/m32r/include/asm/
Dbitops.h49 unsigned long tmp; in set_bit() local
60 : "=&r" (tmp) in set_bit()
85 unsigned long tmp; in clear_bit() local
97 : "=&r" (tmp) in clear_bit()
121 unsigned long tmp; in change_bit() local
132 : "=&r" (tmp) in change_bit()
155 unsigned long tmp; in test_and_set_bit() local
168 : "=&r" (oldbit), "=&r" (tmp) in test_and_set_bit()
190 unsigned long tmp; in test_and_clear_bit() local
205 : "=&r" (oldbit), "=&r" (tmp), "+r" (mask) in test_and_clear_bit()
[all …]
Dcmpxchg.h20 unsigned long tmp = 0; in __xchg() local
30 : "=&r" (tmp) : "r" (x), "r" (ptr) : "memory"); in __xchg()
36 : "=&r" (tmp) : "r" (x), "r" (ptr) : "memory"); in __xchg()
42 : "=&r" (tmp) : "r" (x), "r" (ptr) : "memory"); in __xchg()
50 : "=&r" (tmp) : "r" (x), "r" (ptr) in __xchg()
64 return (tmp); in __xchg()
74 unsigned long tmp = 0; in __xchg_local() local
83 : "=&r" (tmp) : "r" (x), "r" (ptr) : "memory"); in __xchg_local()
89 : "=&r" (tmp) : "r" (x), "r" (ptr) : "memory"); in __xchg_local()
95 : "=&r" (tmp) : "r" (x), "r" (ptr) : "memory"); in __xchg_local()
[all …]
/linux-4.1.27/block/partitions/
Damiga.c75 char tmp[7 + 10 + 1 + 1]; in amiga_partition() local
78 snprintf(tmp, sizeof(tmp), " RDSK (%d)", blksize * 512); in amiga_partition()
79 strlcat(state->pp_buf, tmp, PAGE_SIZE); in amiga_partition()
117 char tmp[42]; in amiga_partition() local
122 snprintf(tmp, sizeof(tmp), " (%c%c%c^%c)", in amiga_partition()
126 snprintf(tmp, sizeof(tmp), " (%c%c%c%c)", in amiga_partition()
129 strlcat(state->pp_buf, tmp, PAGE_SIZE); in amiga_partition()
130 snprintf(tmp, sizeof(tmp), "(res %d spb %d)", in amiga_partition()
133 strlcat(state->pp_buf, tmp, PAGE_SIZE); in amiga_partition()
/linux-4.1.27/arch/ia64/include/asm/
Dspinlock.h62 int tmp = ACCESS_ONCE(lock->lock); in __ticket_spin_trylock() local
64 if (!(((tmp >> TICKET_SHIFT) ^ tmp) & TICKET_MASK)) in __ticket_spin_trylock()
65 return ia64_cmpxchg(acq, &lock->lock, tmp, tmp + 1, sizeof (tmp)) == tmp; in __ticket_spin_trylock()
71 unsigned short *p = (unsigned short *)&lock->lock + 1, tmp; in __ticket_spin_unlock() local
73 asm volatile ("ld2.bias %0=[%1]" : "=r"(tmp) : "r"(p)); in __ticket_spin_unlock()
74 ACCESS_ONCE(*p) = (tmp + 2) & ~1; in __ticket_spin_unlock()
93 long tmp = ACCESS_ONCE(lock->lock); in __ticket_spin_is_locked() local
95 return !!(((tmp >> TICKET_SHIFT) ^ tmp) & TICKET_MASK); in __ticket_spin_is_locked()
100 long tmp = ACCESS_ONCE(lock->lock); in __ticket_spin_is_contended() local
102 return ((tmp - (tmp >> TICKET_SHIFT)) & TICKET_MASK) > 1; in __ticket_spin_is_contended()
/linux-4.1.27/arch/tile/include/asm/
Dirqflags.h209 #define IRQS_DISABLED(tmp) \ argument
210 mfspr tmp, SPR_INTERRUPT_MASK_K; \
211 andi tmp, tmp, 1
228 #define IRQ_DISABLE_ALL(tmp) \ argument
229 movei tmp, -1; \
230 mtspr SPR_INTERRUPT_MASK_SET_K, tmp
250 #define IRQS_DISABLED(tmp) \ argument
251 mfspr tmp, SPR_INTERRUPT_MASK_K_0; \
252 shri tmp, tmp, INT_MEM_ERROR; \
253 andi tmp, tmp, 1
[all …]
/linux-4.1.27/include/linux/
Drbtree_augmented.h140 struct rb_node *child = node->rb_right, *tmp = node->rb_left; in __rb_erase_augmented() local
144 if (!tmp) { in __rb_erase_augmented()
160 tmp = parent; in __rb_erase_augmented()
163 tmp->__rb_parent_color = pc = node->__rb_parent_color; in __rb_erase_augmented()
165 __rb_change_child(node, tmp, parent, root); in __rb_erase_augmented()
167 tmp = parent; in __rb_erase_augmented()
170 tmp = child->rb_left; in __rb_erase_augmented()
171 if (!tmp) { in __rb_erase_augmented()
201 successor = tmp; in __rb_erase_augmented()
202 tmp = tmp->rb_left; in __rb_erase_augmented()
[all …]
/linux-4.1.27/drivers/pci/
Dsearch.c51 struct pci_dev *tmp; in pci_for_each_dma_alias() local
57 tmp = bus->self; in pci_for_each_dma_alias()
68 if (pci_is_pcie(tmp)) { in pci_for_each_dma_alias()
69 switch (pci_pcie_type(tmp)) { in pci_for_each_dma_alias()
75 ret = fn(tmp, in pci_for_each_dma_alias()
76 PCI_DEVID(tmp->subordinate->number, in pci_for_each_dma_alias()
82 ret = fn(tmp, in pci_for_each_dma_alias()
83 PCI_DEVID(tmp->bus->number, in pci_for_each_dma_alias()
84 tmp->devfn), data); in pci_for_each_dma_alias()
90 if (tmp->dev_flags & PCI_DEV_FLAG_PCIE_BRIDGE_ALIAS) in pci_for_each_dma_alias()
[all …]
/linux-4.1.27/arch/sh/kernel/
Dio_trapped.c186 unsigned long long tmp = 0; in copy_word() local
190 tmp = __raw_readb(src_addr); in copy_word()
193 tmp = __raw_readw(src_addr); in copy_word()
196 tmp = __raw_readl(src_addr); in copy_word()
199 tmp = __raw_readq(src_addr); in copy_word()
205 __raw_writeb(tmp, dst_addr); in copy_word()
208 __raw_writew(tmp, dst_addr); in copy_word()
211 __raw_writel(tmp, dst_addr); in copy_word()
214 __raw_writeq(tmp, dst_addr); in copy_word()
218 return tmp; in copy_word()
[all …]
/linux-4.1.27/arch/c6x/include/asm/
Dcmpxchg.h21 unsigned int tmp; in __xchg() local
28 tmp = 0; in __xchg()
29 tmp = *((unsigned char *) ptr); in __xchg()
33 tmp = 0; in __xchg()
34 tmp = *((unsigned short *) ptr); in __xchg()
38 tmp = 0; in __xchg()
39 tmp = *((unsigned int *) ptr); in __xchg()
44 return tmp; in __xchg()
/linux-4.1.27/arch/arm/mach-s3c24xx/
Dpm-s3c2412.c41 unsigned long tmp; in s3c2412_cpu_suspend() local
45 tmp = __raw_readl(S3C2412_PWRCFG); in s3c2412_cpu_suspend()
46 tmp |= S3C2412_PWRCFG_STANDBYWFI_SLEEP; in s3c2412_cpu_suspend()
47 __raw_writel(tmp, S3C2412_PWRCFG); in s3c2412_cpu_suspend()
118 unsigned long tmp; in s3c2412_pm_resume() local
120 tmp = __raw_readl(S3C2412_PWRCFG); in s3c2412_pm_resume()
121 tmp &= ~S3C2412_PWRCFG_STANDBYWFI_MASK; in s3c2412_pm_resume()
122 tmp |= S3C2412_PWRCFG_STANDBYWFI_IDLE; in s3c2412_pm_resume()
123 __raw_writel(tmp, S3C2412_PWRCFG); in s3c2412_pm_resume()
/linux-4.1.27/drivers/video/fbdev/intelfb/
Dintelfbhw.c69 u32 tmp; in intelfbhw_get_chipset() local
92 tmp = 0; in intelfbhw_get_chipset()
95 pci_read_config_dword(pdev, INTEL_85X_CAPID, &tmp); in intelfbhw_get_chipset()
96 switch ((tmp >> INTEL_85X_VARIANT_SHIFT) & in intelfbhw_get_chipset()
177 u16 tmp; in intelfbhw_get_memory() local
190 tmp = 0; in intelfbhw_get_memory()
191 pci_read_config_word(bridge_dev, INTEL_GMCH_CTRL, &tmp); in intelfbhw_get_memory()
211 if ((tmp & INTEL_GMCH_MEM_MASK) == INTEL_GMCH_MEM_64M) in intelfbhw_get_memory()
224 switch (tmp & INTEL_830_GMCH_GMS_MASK) { in intelfbhw_get_memory()
242 tmp & INTEL_830_GMCH_GMS_MASK); in intelfbhw_get_memory()
[all …]
/linux-4.1.27/drivers/staging/comedi/drivers/
Dme4000.c462 unsigned int tmp; in me4000_ai_insn_read() local
524 tmp = inl(dev->iobase + ME4000_AI_CTRL_REG); in me4000_ai_insn_read()
525 tmp &= ~(ME4000_AI_CTRL_BIT_CHANNEL_FIFO | in me4000_ai_insn_read()
528 outl(tmp, dev->iobase + ME4000_AI_CTRL_REG); in me4000_ai_insn_read()
531 tmp &= ~(ME4000_AI_CTRL_BIT_MODE_0 | ME4000_AI_CTRL_BIT_MODE_1 | in me4000_ai_insn_read()
533 outl(tmp, dev->iobase + ME4000_AI_CTRL_REG); in me4000_ai_insn_read()
536 tmp |= ME4000_AI_CTRL_BIT_CHANNEL_FIFO | ME4000_AI_CTRL_BIT_DATA_FIFO; in me4000_ai_insn_read()
537 outl(tmp, dev->iobase + ME4000_AI_CTRL_REG); in me4000_ai_insn_read()
567 unsigned int tmp; in me4000_ai_cancel() local
570 tmp = inl(dev->iobase + ME4000_AI_CTRL_REG); in me4000_ai_cancel()
[all …]
/linux-4.1.27/drivers/hwmon/
Dw83795.c538 int i, tmp; in w83795_update_pwm_config() local
556 for (tmp = PWM_FREQ; tmp <= PWM_STOP_TIME; tmp++) in w83795_update_pwm_config()
557 data->pwm[i][tmp] = in w83795_update_pwm_config()
558 w83795_read(client, W83795_REG_PWM(i, tmp)); in w83795_update_pwm_config()
573 tmp = w83795_read(client, W83795_REG_HT(i)); in w83795_update_pwm_config()
574 data->pwm_temp[i][TEMP_PWM_HCT] = tmp >> 4; in w83795_update_pwm_config()
575 data->pwm_temp[i][TEMP_PWM_HOT] = tmp & 0x0f; in w83795_update_pwm_config()
580 for (tmp = 0; tmp < 7; tmp++) { in w83795_update_pwm_config()
581 data->sf4_reg[i][SF4_TEMP][tmp] = in w83795_update_pwm_config()
583 W83795_REG_SF4_TEMP(i, tmp)); in w83795_update_pwm_config()
[all …]
/linux-4.1.27/drivers/media/pci/ttpci/
Dttpci-eeprom.c52 u16 tmp = 0xffff; in check_mac_tt() local
55 tmp = (tmp << 8) | ((tmp >> 8) ^ buf[i]); in check_mac_tt()
56 tmp ^= (tmp >> 4) & 0x0f; in check_mac_tt()
57 tmp ^= (tmp << 12) ^ ((tmp & 0xff) << 5); in check_mac_tt()
59 tmp ^= 0xffff; in check_mac_tt()
60 return (((tmp >> 8) ^ buf[8]) | ((tmp & 0xff) ^ buf[9])); in check_mac_tt()
/linux-4.1.27/arch/arm/include/asm/hardware/
Dentry-macro-iomd.S14 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
16 ldr \tmp, =irq_prio_h
20 addeq \tmp, \tmp, #256 @ irq_prio_h table size
25 addeq \tmp, \tmp, #256 @ irq_prio_d table size
29 addeq \tmp, \tmp, #256 @ irq_prio_l table size
34 addeq \tmp, \tmp, #256 @ irq_prio_lc table size
37 2406: ldrneb \irqnr, [\tmp, \irqstat] @ get IRQ number
/linux-4.1.27/arch/cris/arch-v10/kernel/
Dptrace.c94 unsigned long tmp; in arch_ptrace() local
100 tmp = get_reg(child, regno); in arch_ptrace()
101 ret = put_user(tmp, datap); in arch_ptrace()
132 unsigned long tmp; in arch_ptrace() local
136 tmp = get_reg(child, i); in arch_ptrace()
138 if (put_user(tmp, datap)) { in arch_ptrace()
152 unsigned long tmp; in arch_ptrace() local
156 if (get_user(tmp, datap)) { in arch_ptrace()
162 tmp &= DCCR_MASK; in arch_ptrace()
163 tmp |= get_reg(child, PT_DCCR) & ~DCCR_MASK; in arch_ptrace()
[all …]
/linux-4.1.27/sound/soc/nuc900/
Dnuc900-ac97.c101 unsigned long tmp, timeout = 0x10000; in nuc900_ac97_write() local
105 tmp = nuc900_checkready(); in nuc900_ac97_write()
106 if (tmp) in nuc900_ac97_write()
116 tmp = AUDIO_READ(nuc900_audio->mmio + ACTL_ACOS0); in nuc900_ac97_write()
117 tmp |= SLOT1_VALID | SLOT2_VALID | VALID_FRAME; in nuc900_ac97_write()
118 AUDIO_WRITE(nuc900_audio->mmio + ACTL_ACOS0, tmp); in nuc900_ac97_write()
130 tmp = AUDIO_READ(nuc900_audio->mmio + ACTL_ACOS0); in nuc900_ac97_write()
131 tmp &= ~(SLOT1_VALID | SLOT2_VALID); in nuc900_ac97_write()
132 AUDIO_WRITE(nuc900_audio->mmio + ACTL_ACOS0, tmp); in nuc900_ac97_write()
213 unsigned long val, tmp; in nuc900_ac97_trigger() local
[all …]
/linux-4.1.27/arch/arm/include/debug/
Domap2plus.S67 .macro addruart, rp, rv, tmp
74 sub \tmp, \rp, \rv @ make it effective
75 ldr \rp, [\tmp, #0] @ omap_uart_phys
76 ldr \rv, [\tmp, #4] @ omap_uart_virt
133 str \rp, [\tmp, #0] @ omap_uart_phys
135 str \rp, [\tmp, #4] @ omap_uart_virt
137 str \rp, [\tmp, #8] @ omap_uart_lsr
143 str \rp, [\tmp, #0] @ omap_uart_phys
146 str \rp, [\tmp, #4] @ omap_uart_virt
148 str \rp, [\tmp, #8] @ omap_uart_lsr
[all …]
/linux-4.1.27/arch/x86/tools/
Dinsn_sanity.c142 char buf[256] = "", *tmp; in read_next_insn() local
145 tmp = fgets(buf, ARRAY_SIZE(buf), input_file); in read_next_insn()
146 if (tmp == NULL || feof(input_file)) in read_next_insn()
150 insn_buf[i] = (unsigned char)strtoul(tmp, &tmp, 16); in read_next_insn()
151 if (*tmp != ' ') in read_next_insn()
178 char *tmp = NULL; in parse_args() local
202 seed = (unsigned int)strtoul(optarg, &tmp, 0); in parse_args()
203 if (*tmp == ',') { in parse_args()
204 optarg = tmp + 1; in parse_args()
205 iter_start = strtoul(optarg, &tmp, 0); in parse_args()
[all …]
/linux-4.1.27/drivers/bcma/
Ddriver_chipcommon_pmu.c341 u32 tmp, div, ndiv, p1, p2, fc; in bcma_pmu_pll_clock() local
351 tmp = bcma_cc_read32(cc, BCMA_CC_CHIPSTAT); in bcma_pmu_pll_clock()
352 if (tmp & 0x40000) in bcma_pmu_pll_clock()
356 tmp = bcma_chipco_pll_read(cc, pll0 + BCMA_CC_PPL_P1P2_OFF); in bcma_pmu_pll_clock()
357 p1 = (tmp & BCMA_CC_PPL_P1_MASK) >> BCMA_CC_PPL_P1_SHIFT; in bcma_pmu_pll_clock()
358 p2 = (tmp & BCMA_CC_PPL_P2_MASK) >> BCMA_CC_PPL_P2_SHIFT; in bcma_pmu_pll_clock()
360 tmp = bcma_chipco_pll_read(cc, pll0 + BCMA_CC_PPL_M14_OFF); in bcma_pmu_pll_clock()
361 div = (tmp >> ((m - 1) * BCMA_CC_PPL_MDIV_WIDTH)) & in bcma_pmu_pll_clock()
364 tmp = bcma_chipco_pll_read(cc, pll0 + BCMA_CC_PPL_NM5_OFF); in bcma_pmu_pll_clock()
365 ndiv = (tmp & BCMA_CC_PPL_NDIV_MASK) >> BCMA_CC_PPL_NDIV_SHIFT; in bcma_pmu_pll_clock()
[all …]
/linux-4.1.27/net/bridge/netfilter/
Debt_mark.c42 int tmp; in ebt_mark_tg_check() local
44 tmp = info->target | ~EBT_VERDICT_BITS; in ebt_mark_tg_check()
45 if (BASE_CHAIN && tmp == EBT_RETURN) in ebt_mark_tg_check()
47 if (tmp < -NUM_STANDARD_TARGETS || tmp >= 0) in ebt_mark_tg_check()
49 tmp = info->target & ~EBT_VERDICT_BITS; in ebt_mark_tg_check()
50 if (tmp != MARK_SET_VALUE && tmp != MARK_OR_VALUE && in ebt_mark_tg_check()
51 tmp != MARK_AND_VALUE && tmp != MARK_XOR_VALUE) in ebt_mark_tg_check()
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dobd_cksum.h69 unsigned int performance = 0, tmp; in cksum_type_pack() local
73 tmp = cfs_crypto_hash_speed(cksum_obd2cfs(OBD_CKSUM_CRC32)); in cksum_type_pack()
74 if (tmp > performance) { in cksum_type_pack()
75 performance = tmp; in cksum_type_pack()
80 tmp = cfs_crypto_hash_speed(cksum_obd2cfs(OBD_CKSUM_CRC32C)); in cksum_type_pack()
81 if (tmp > performance) { in cksum_type_pack()
82 performance = tmp; in cksum_type_pack()
87 tmp = cfs_crypto_hash_speed(cksum_obd2cfs(OBD_CKSUM_ADLER)); in cksum_type_pack()
88 if (tmp > performance) { in cksum_type_pack()
89 performance = tmp; in cksum_type_pack()
/linux-4.1.27/kernel/power/
Dconsole.c47 struct pm_vt_switch *entry, *tmp; in pm_vt_switch_required() local
50 list_for_each_entry(tmp, &pm_vt_switch_list, head) { in pm_vt_switch_required()
51 if (tmp->dev == dev) { in pm_vt_switch_required()
53 tmp->required = required; in pm_vt_switch_required()
79 struct pm_vt_switch *tmp; in pm_vt_switch_unregister() local
82 list_for_each_entry(tmp, &pm_vt_switch_list, head) { in pm_vt_switch_unregister()
83 if (tmp->dev == dev) { in pm_vt_switch_unregister()
84 list_del(&tmp->head); in pm_vt_switch_unregister()
85 kfree(tmp); in pm_vt_switch_unregister()
/linux-4.1.27/arch/sh/boards/mach-x3proto/
Dilsel.c66 unsigned int tmp, shift; in __ilsel_enable() local
77 tmp = __raw_readw(addr); in __ilsel_enable()
78 tmp &= ~(0xf << shift); in __ilsel_enable()
79 tmp |= set << shift; in __ilsel_enable()
80 __raw_writew(tmp, addr); in __ilsel_enable()
147 unsigned int tmp; in ilsel_disable() local
153 tmp = __raw_readw(addr); in ilsel_disable()
154 tmp &= ~(0xf << mk_ilsel_shift(irq)); in ilsel_disable()
155 __raw_writew(tmp, addr); in ilsel_disable()
/linux-4.1.27/arch/arm/mach-lpc32xx/
Dclock.c233 u32 tv, tmp = 0; in local_clk_pll_setup() local
236 tmp |= LPC32XX_CLKPWR_HCLKPLL_POWER_UP; in local_clk_pll_setup()
238 tmp |= LPC32XX_CLKPWR_HCLKPLL_CCO_BYPASS; in local_clk_pll_setup()
240 tmp |= LPC32XX_CLKPWR_HCLKPLL_POSTDIV_BYPASS; in local_clk_pll_setup()
242 tmp |= LPC32XX_CLKPWR_HCLKPLL_FDBK_SEL_FCLK; in local_clk_pll_setup()
248 tmp |= LPC32XX_CLKPWR_HCLKPLL_POSTDIV_2POW(tv); in local_clk_pll_setup()
249 tmp |= LPC32XX_CLKPWR_HCLKPLL_PREDIV_PLUS1(PllSetup->pll_n - 1); in local_clk_pll_setup()
250 tmp |= LPC32XX_CLKPWR_HCLKPLL_PLLM(PllSetup->pll_m - 1); in local_clk_pll_setup()
252 return tmp; in local_clk_pll_setup()
377 u32 reg, tmp = local_clk_pll_setup(pHCLKPllSetup); in local_clk_usbpll_setup() local
[all …]
Dserial.c74 u32 tmp, clkmodes = 0; in lpc32xx_serial_init() local
103 tmp = __raw_readl( in lpc32xx_serial_init()
117 tmp = __raw_readl(LPC32XX_UART_DLL_FIFO(puart)); in lpc32xx_serial_init()
122 tmp = __raw_readl(LPC32XX_UARTCTL_CTRL); in lpc32xx_serial_init()
123 tmp |= LPC32XX_UART_UART6_IRDAMOD_BYPASS; in lpc32xx_serial_init()
124 __raw_writel(tmp, LPC32XX_UARTCTL_CTRL); in lpc32xx_serial_init()
127 tmp = __raw_readl(LPC32XX_UARTCTL_CTRL); in lpc32xx_serial_init()
128 tmp &= ~LPC32XX_UART_U5_ROUTE_TO_USB; in lpc32xx_serial_init()
129 __raw_writel(tmp, LPC32XX_UARTCTL_CTRL); in lpc32xx_serial_init()
/linux-4.1.27/arch/x86/math-emu/
Dfpu_trig.c35 FPU_REG tmp; in trig_arg() local
50 tag = FPU_u_div(st0_ptr, &CONST_PI2, &tmp, PR_64_BITS | RC_CHOP | 0x3f, in trig_arg()
53 FPU_round_to_int(&tmp, tag); /* Fortunately, this can't overflow in trig_arg()
55 q = significand(&tmp); in trig_arg()
58 &significand(&tmp), in trig_arg()
61 setexponent16(&tmp, exponent(&CONST_PI2)); in trig_arg()
62 st0_tag = FPU_normalize(&tmp); in trig_arg()
63 FPU_copy_to_reg0(&tmp, st0_tag); in trig_arg()
81 significand(&tmp) = q + 1; in trig_arg()
82 setexponent16(&tmp, 63); in trig_arg()
[all …]
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
Dboot.c74 u32 scr_pad6, init_data, tmp, elp_cmd, ref_freq; in wl1251_boot_init_seq() local
117 tmp = ((scr_pad6 & 0x0000FF00) << 4) | 0x00004000; in wl1251_boot_init_seq()
118 wl1251_reg_write32(wl, ELP_CFG_MODE, tmp); in wl1251_boot_init_seq()
136 tmp = init_data - 0x21; in wl1251_boot_init_seq()
138 tmp = 0; in wl1251_boot_init_seq()
139 wl1251_reg_write32(wl, CLK_REQ_TIME, tmp); in wl1251_boot_init_seq()
157 tmp = LUT[ref_freq][LUT_PARAM_INTEGER_DIVIDER] | 0x00017000; in wl1251_boot_init_seq()
158 wl1251_reg_write32(wl, 0x00305840, tmp); in wl1251_boot_init_seq()
163 tmp = LUT[ref_freq][LUT_PARAM_FRACTIONAL_DIVIDER]; in wl1251_boot_init_seq()
164 wl1251_reg_write32(wl, 0x00305844, tmp); in wl1251_boot_init_seq()
[all …]
/linux-4.1.27/drivers/usb/gadget/
Dconfig.c127 struct usb_descriptor_header **tmp; in usb_copy_descriptors() local
134 for (bytes = 0, n_desc = 0, tmp = src; *tmp; tmp++, n_desc++) in usb_copy_descriptors()
135 bytes += (*tmp)->bLength; in usb_copy_descriptors()
136 bytes += (n_desc + 1) * sizeof(*tmp); in usb_copy_descriptors()
146 tmp = mem; in usb_copy_descriptors()
148 mem += (n_desc + 1) * sizeof(*tmp); in usb_copy_descriptors()
151 *tmp = mem; in usb_copy_descriptors()
152 tmp++; in usb_copy_descriptors()
156 *tmp = NULL; in usb_copy_descriptors()
/linux-4.1.27/drivers/i2c/busses/
Di2c-jz4780.c263 unsigned short tmp = 0; in jz4780_i2c_set_speed() local
291 tmp = JZ4780_I2C_CTRL_SPDS | JZ4780_I2C_CTRL_REST in jz4780_i2c_set_speed()
293 jz4780_i2c_writew(i2c, JZ4780_I2C_CTRL, tmp); in jz4780_i2c_set_speed()
300 tmp = JZ4780_I2C_CTRL_SPDF | JZ4780_I2C_CTRL_REST in jz4780_i2c_set_speed()
302 jz4780_i2c_writew(i2c, JZ4780_I2C_CTRL, tmp); in jz4780_i2c_set_speed()
366 unsigned short tmp; in jz4780_i2c_cleanup() local
371 tmp = jz4780_i2c_readw(i2c, JZ4780_I2C_CTRL); in jz4780_i2c_cleanup()
372 tmp &= ~JZ4780_I2C_CTRL_STPHLD; in jz4780_i2c_cleanup()
373 jz4780_i2c_writew(i2c, JZ4780_I2C_CTRL, tmp); in jz4780_i2c_cleanup()
383 tmp = jz4780_i2c_readw(i2c, JZ4780_I2C_CTRL); in jz4780_i2c_cleanup()
[all …]
/linux-4.1.27/arch/arm/mach-mv78xx0/include/mach/
Dentry-macro.S13 .macro get_irqnr_preamble, base, tmp
17 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
20 ldr \tmp, [\base, #IRQ_MASK_LOW_OFF]
22 ands \irqstat, \irqstat, \tmp
27 ldr \tmp, [\base, #IRQ_MASK_HIGH_OFF]
29 ands \irqstat, \irqstat, \tmp
34 ldr \tmp, [\base, #IRQ_MASK_ERR_OFF]
36 ands \irqstat, \irqstat, \tmp
/linux-4.1.27/drivers/crypto/vmx/
Daesp8-ppc.pl62 my ($zero,$in0,$in1,$key,$rcon,$mask,$tmp)=map("v$_",(0..6));
143 vsldoi $tmp,$zero,$in0,12 # >>32
151 vxor $in0,$in0,$tmp
152 vsldoi $tmp,$zero,$tmp,12 # >>32
153 vxor $in0,$in0,$tmp
154 vsldoi $tmp,$zero,$tmp,12 # >>32
155 vxor $in0,$in0,$tmp
163 vsldoi $tmp,$zero,$in0,12 # >>32
171 vxor $in0,$in0,$tmp
172 vsldoi $tmp,$zero,$tmp,12 # >>32
[all …]
/linux-4.1.27/drivers/net/ethernet/ibm/ehea/
Dehea_ethtool.c231 int i, k, tmp; in ehea_get_ethtool_stats() local
242 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
243 tmp += port->port_res[k].p_stats.poll_receive_errors; in ehea_get_ethtool_stats()
244 data[i++] = tmp; in ehea_get_ethtool_stats()
246 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
247 tmp += port->port_res[k].p_stats.err_tcp_cksum; in ehea_get_ethtool_stats()
248 data[i++] = tmp; in ehea_get_ethtool_stats()
250 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
251 tmp += port->port_res[k].p_stats.err_ip_cksum; in ehea_get_ethtool_stats()
252 data[i++] = tmp; in ehea_get_ethtool_stats()
[all …]
/linux-4.1.27/fs/affs/
Dfile.c65 u32 lc_shift, lc_mask, tmp, off; in affs_grow_extcache() local
69 tmp = (AFFS_I(inode)->i_extcnt / AFFS_LC_SIZE) >> lc_shift; in affs_grow_extcache()
70 for (; tmp; tmp >>= 1) in affs_grow_extcache()
121 u32 blocknr, tmp; in affs_alloc_extblock() local
141 tmp = be32_to_cpu(AFFS_TAIL(sb, bh)->extension); in affs_alloc_extblock()
142 if (tmp) in affs_alloc_extblock()
143 affs_warning(sb, "alloc_ext", "previous extension set (%x)", tmp); in affs_alloc_extblock()
145 affs_adjust_checksum(bh, blocknr - tmp); in affs_alloc_extblock()
175 u32 tmp, idx; in affs_get_extblock_slow() local
241 tmp = ext; in affs_get_extblock_slow()
[all …]
/linux-4.1.27/drivers/media/usb/dvb-usb-v2/
Dmxl111sf-gpio.c38 u8 tmp; in mxl111sf_set_gpo_state() local
43 ret = mxl111sf_read_reg(state, 0x19, &tmp); in mxl111sf_set_gpo_state()
46 tmp &= ~(1 << (pin - 1)); in mxl111sf_set_gpo_state()
47 tmp |= (val << (pin - 1)); in mxl111sf_set_gpo_state()
48 ret = mxl111sf_write_reg(state, 0x19, tmp); in mxl111sf_set_gpo_state()
54 ret = mxl111sf_read_reg(state, 0x30, &tmp); in mxl111sf_set_gpo_state()
57 tmp &= ~(1 << (pin - 3)); in mxl111sf_set_gpo_state()
58 tmp |= (val << (pin - 3)); in mxl111sf_set_gpo_state()
59 ret = mxl111sf_write_reg(state, 0x30, tmp); in mxl111sf_set_gpo_state()
71 u8 tmp; in mxl111sf_get_gpi_state() local
[all …]
/linux-4.1.27/sound/isa/gus/
Dgus_timer.c35 unsigned char tmp; in snd_gf1_timer1_start() local
42 tmp = (gus->gf1.timer_enabled |= 4); in snd_gf1_timer1_start()
44 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* enable timer 1 IRQ */ in snd_gf1_timer1_start()
45 snd_gf1_adlib_write(gus, 0x04, tmp >> 2); /* timer 2 start */ in snd_gf1_timer1_start()
53 unsigned char tmp; in snd_gf1_timer1_stop() local
58 tmp = (gus->gf1.timer_enabled &= ~4); in snd_gf1_timer1_stop()
59 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* disable timer #1 */ in snd_gf1_timer1_stop()
71 unsigned char tmp; in snd_gf1_timer2_start() local
78 tmp = (gus->gf1.timer_enabled |= 8); in snd_gf1_timer2_start()
80 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* enable timer 2 IRQ */ in snd_gf1_timer2_start()
[all …]
/linux-4.1.27/net/bluetooth/
Decc.c367 u64 tmp[NUM_ECC_DIGITS]; in vli_mmod_fast() local
374 tmp[0] = 0; in vli_mmod_fast()
375 tmp[1] = product[5] & 0xffffffff00000000ull; in vli_mmod_fast()
376 tmp[2] = product[6]; in vli_mmod_fast()
377 tmp[3] = product[7]; in vli_mmod_fast()
378 carry = vli_lshift(tmp, tmp, 1); in vli_mmod_fast()
379 carry += vli_add(result, result, tmp); in vli_mmod_fast()
382 tmp[1] = product[6] << 32; in vli_mmod_fast()
383 tmp[2] = (product[6] >> 32) | (product[7] << 32); in vli_mmod_fast()
384 tmp[3] = product[7] >> 32; in vli_mmod_fast()
[all …]

12345678910>>...16