/kernel/linux/linux-5.10/tools/testing/selftests/resctrl/ |
H A D | resctrl_val.c | 224 char imc_dir[512], *temp; in num_of_imcs() local 233 temp = strstr(ep->d_name, UNCORE_IMC); in num_of_imcs() 234 if (!temp) in num_of_imcs() 244 temp = temp + sizeof(UNCORE_IMC); in num_of_imcs() 251 if (temp[0] >= '0' && temp[0] <= '9') { in num_of_imcs()
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | lm95241.c | 83 u8 temp[ARRAY_SIZE(lm95241_reg_address)]; member 114 data->temp[i] in lm95241_update_device() 151 *val = temp_from_reg_signed(data->temp[channel * 2], in lm95241_read_temp() 152 data->temp[channel * 2 + 1]); in lm95241_read_temp() 154 *val = temp_from_reg_unsigned(data->temp[channel * 2], in lm95241_read_temp() 155 data->temp[channel * 2 + 1]); in lm95241_read_temp() 415 HWMON_CHANNEL_INFO(temp,
|
/kernel/linux/linux-5.10/drivers/iio/common/ms_sensors/ |
H A D | ms_sensors_i2c.c | 562 * ms_sensors_read_temp_and_pressure() - read temp and pressure 578 s32 dt, temp; in ms_sensors_read_temp_and_pressure() local 609 temp = 2000 + (((s64)dt * prom[6]) >> 23); in ms_sensors_read_temp_and_pressure() 612 if (temp < 2000) { in ms_sensors_read_temp_and_pressure() 613 s64 tmp = (s64)temp - 2000; in ms_sensors_read_temp_and_pressure() 619 if (temp < -1500) { in ms_sensors_read_temp_and_pressure() 620 s64 tmp = (s64)temp + 1500; in ms_sensors_read_temp_and_pressure() 640 *temperature = (temp - t2) * 10; in ms_sensors_read_temp_and_pressure()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/fs_enet/ |
H A D | mac-fec.c | 180 int temp, hash_index; in set_multicast_one() local 185 temp = (crc & 0x3f) >> 1; in set_multicast_one() 186 hash_index = ((temp & 0x01) << 4) | in set_multicast_one() 187 ((temp & 0x02) << 2) | in set_multicast_one() 188 ((temp & 0x04)) | in set_multicast_one() 189 ((temp & 0x08) >> 2) | in set_multicast_one() 190 ((temp & 0x10) >> 4); in set_multicast_one()
|
/kernel/linux/linux-5.10/drivers/thermal/ |
H A D | rcar_gen3_thermal.c | 60 #define MCELSIUS(temp) ((temp) * 1000) 109 * [reg] = [temp] * a + b => [temp] = ([reg] - b) / a 156 static int rcar_gen3_thermal_round(int temp) in rcar_gen3_thermal_round() argument 160 round_offs = temp >= 0 ? RCAR3_THERMAL_GRAN / 2 : in rcar_gen3_thermal_round() 162 result = (temp + round_offs) / RCAR3_THERMAL_GRAN; in rcar_gen3_thermal_round() 166 static int rcar_gen3_thermal_get_temp(void *devdata, int *temp) in rcar_gen3_thermal_get_temp() argument 186 *temp = rcar_gen3_thermal_round(mcelsius); in rcar_gen3_thermal_get_temp() 392 * temp windo in rcar_gen3_thermal_probe() [all...] |
/kernel/linux/linux-5.10/drivers/video/fbdev/via/ |
H A D | accel.c | 481 u32 temp, iga_path = viapar->iga_path; in viafb_show_hw_cursor() local 483 temp = readl(viapar->shared->vdev->engine_mmio + VIA_REG_CURSOR_MODE); in viafb_show_hw_cursor() 486 temp |= 0x1; in viafb_show_hw_cursor() 489 temp &= 0xFFFFFFFE; in viafb_show_hw_cursor() 494 temp |= 0x80000000; in viafb_show_hw_cursor() 498 temp &= 0x7FFFFFFF; in viafb_show_hw_cursor() 500 writel(temp, viapar->shared->vdev->engine_mmio + VIA_REG_CURSOR_MODE); in viafb_show_hw_cursor()
|
/kernel/linux/linux-5.10/mm/ |
H A D | dmapool.c | 67 unsigned temp; in show_pools() local 76 temp = scnprintf(next, size, "poolinfo - 0.1\n"); in show_pools() 77 size -= temp; in show_pools() 78 next += temp; in show_pools() 93 temp = scnprintf(next, size, "%-16s %4u %4zu %4zu %2u\n", in show_pools() 97 size -= temp; in show_pools() 98 next += temp; in show_pools()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | dac.c | 244 saved_rtest_ctrl, saved_gpio0 = 0, saved_gpio1 = 0, temp, routput; in nv17_dac_sample_load() local 301 temp = NVReadRAMDAC(dev, 0, NV_PRAMDAC_DACCLK + regoffset); in nv17_dac_sample_load() 302 NVWriteRAMDAC(dev, 0, NV_PRAMDAC_DACCLK + regoffset, temp | 1); in nv17_dac_sample_load() 306 temp = NVReadRAMDAC(dev, head, NV_PRAMDAC_TEST_CONTROL); in nv17_dac_sample_load() 308 temp | NV_PRAMDAC_TEST_CONTROL_TP_INS_EN_ASSERTED); in nv17_dac_sample_load() 315 temp = NVReadRAMDAC(dev, head, NV_PRAMDAC_TEST_CONTROL); in nv17_dac_sample_load() 317 temp & ~NV_PRAMDAC_TEST_CONTROL_TP_INS_EN_ASSERTED); in nv17_dac_sample_load()
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
H A D | intel_menlow.c | 105 unsigned long long temp; in memory_set_cur_bandwidth() local 121 &temp); in memory_set_cur_bandwidth() 272 unsigned long long temp; in sensor_set_auxtrip() local 278 NULL, &temp); in sensor_set_auxtrip() 281 if ((index && value < temp) || (!index && value > temp)) in sensor_set_auxtrip() 286 &args, &temp); in sensor_set_auxtrip()
|
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | twl-core.c | 825 u8 temp; in twl_probe() local 827 twl_i2c_read_u8(TWL4030_MODULE_INTBR, &temp, REG_GPPUPDCTR1); in twl_probe() 828 temp &= ~(SR_I2C_SDA_CTRL_PU | SR_I2C_SCL_CTRL_PU | \ in twl_probe() 830 twl_i2c_write_u8(TWL4030_MODULE_INTBR, temp, REG_GPPUPDCTR1); in twl_probe() 832 twl_i2c_read_u8(TWL_MODULE_PM_RECEIVER, &temp, in twl_probe() 834 temp |= SMARTREFLEX_ENABLE; in twl_probe() 835 twl_i2c_write_u8(TWL_MODULE_PM_RECEIVER, temp, in twl_probe()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/fs_enet/ |
H A D | mac-fec.c | 179 int temp, hash_index; in set_multicast_one() local 184 temp = (crc & 0x3f) >> 1; in set_multicast_one() 185 hash_index = ((temp & 0x01) << 4) | in set_multicast_one() 186 ((temp & 0x02) << 2) | in set_multicast_one() 187 ((temp & 0x04)) | in set_multicast_one() 188 ((temp & 0x08) >> 2) | in set_multicast_one() 189 ((temp & 0x10) >> 4); in set_multicast_one()
|
/kernel/linux/linux-6.6/drivers/acpi/acpica/ |
H A D | dbinput.c | 699 u32 temp; in acpi_db_command_dispatch() local 909 temp = acpi_gbl_db_console_debug_level; in acpi_db_command_dispatch() 914 temp, acpi_gbl_db_console_debug_level); in acpi_db_command_dispatch() 916 temp = acpi_gbl_db_debug_level; in acpi_db_command_dispatch() 921 temp, acpi_gbl_db_debug_level); in acpi_db_command_dispatch() 958 temp = strtoul(acpi_gbl_db_args[2], NULL, 0); in acpi_db_command_dispatch() 959 acpi_db_send_notify(acpi_gbl_db_args[1], temp); in acpi_db_command_dispatch()
|
/kernel/linux/linux-6.6/drivers/thermal/ |
H A D | rcar_gen3_thermal.c | 62 #define MCELSIUS(temp) ((temp) * 1000) 114 * [reg] = [temp] * a + b => [temp] = ([reg] - b) / a 161 static int rcar_gen3_thermal_round(int temp) in rcar_gen3_thermal_round() argument 165 round_offs = temp >= 0 ? RCAR3_THERMAL_GRAN / 2 : in rcar_gen3_thermal_round() 167 result = (temp + round_offs) / RCAR3_THERMAL_GRAN; in rcar_gen3_thermal_round() 171 static int rcar_gen3_thermal_get_temp(struct thermal_zone_device *tz, int *temp) in rcar_gen3_thermal_get_temp() argument 191 *temp = rcar_gen3_thermal_round(mcelsius); in rcar_gen3_thermal_get_temp()
|
/kernel/linux/linux-6.6/drivers/video/fbdev/via/ |
H A D | accel.c | 481 u32 temp, iga_path = viapar->iga_path; in viafb_show_hw_cursor() local 483 temp = readl(viapar->shared->vdev->engine_mmio + VIA_REG_CURSOR_MODE); in viafb_show_hw_cursor() 486 temp |= 0x1; in viafb_show_hw_cursor() 489 temp &= 0xFFFFFFFE; in viafb_show_hw_cursor() 494 temp |= 0x80000000; in viafb_show_hw_cursor() 498 temp &= 0x7FFFFFFF; in viafb_show_hw_cursor() 500 writel(temp, viapar->shared->vdev->engine_mmio + VIA_REG_CURSOR_MODE); in viafb_show_hw_cursor()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_amdkfd_gc_9_4_3.c | 188 uint32_t temp; in kgd_gfx_v9_4_3_hqd_sdma_destroy() local 195 temp = RREG32(sdma_rlc_reg_offset + regSDMA_RLC0_RB_CNTL); in kgd_gfx_v9_4_3_hqd_sdma_destroy() 196 temp = temp & ~SDMA_RLC0_RB_CNTL__RB_ENABLE_MASK; in kgd_gfx_v9_4_3_hqd_sdma_destroy() 197 WREG32(sdma_rlc_reg_offset + regSDMA_RLC0_RB_CNTL, temp); in kgd_gfx_v9_4_3_hqd_sdma_destroy() 200 temp = RREG32(sdma_rlc_reg_offset + regSDMA_RLC0_CONTEXT_STATUS); in kgd_gfx_v9_4_3_hqd_sdma_destroy() 201 if (temp & SDMA_RLC0_CONTEXT_STATUS__IDLE_MASK) in kgd_gfx_v9_4_3_hqd_sdma_destroy()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | dac.c | 244 saved_rtest_ctrl, saved_gpio0 = 0, saved_gpio1 = 0, temp, routput; in nv17_dac_sample_load() local 301 temp = NVReadRAMDAC(dev, 0, NV_PRAMDAC_DACCLK + regoffset); in nv17_dac_sample_load() 302 NVWriteRAMDAC(dev, 0, NV_PRAMDAC_DACCLK + regoffset, temp | 1); in nv17_dac_sample_load() 306 temp = NVReadRAMDAC(dev, head, NV_PRAMDAC_TEST_CONTROL); in nv17_dac_sample_load() 308 temp | NV_PRAMDAC_TEST_CONTROL_TP_INS_EN_ASSERTED); in nv17_dac_sample_load() 315 temp = NVReadRAMDAC(dev, head, NV_PRAMDAC_TEST_CONTROL); in nv17_dac_sample_load() 317 temp & ~NV_PRAMDAC_TEST_CONTROL_TP_INS_EN_ASSERTED); in nv17_dac_sample_load()
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | lm95241.c | 83 u8 temp[ARRAY_SIZE(lm95241_reg_address)]; member 114 data->temp[i] in lm95241_update_device() 151 *val = temp_from_reg_signed(data->temp[channel * 2], in lm95241_read_temp() 152 data->temp[channel * 2 + 1]); in lm95241_read_temp() 154 *val = temp_from_reg_unsigned(data->temp[channel * 2], in lm95241_read_temp() 155 data->temp[channel * 2 + 1]); in lm95241_read_temp() 415 HWMON_CHANNEL_INFO(temp,
|
/kernel/linux/linux-6.6/drivers/iio/common/ms_sensors/ |
H A D | ms_sensors_i2c.c | 608 * ms_sensors_read_temp_and_pressure() - read temp and pressure 624 s32 dt, temp; in ms_sensors_read_temp_and_pressure() local 655 temp = 2000 + (((s64)dt * prom[6]) >> 23); in ms_sensors_read_temp_and_pressure() 658 if (temp < 2000) { in ms_sensors_read_temp_and_pressure() 659 s64 tmp = (s64)temp - 2000; in ms_sensors_read_temp_and_pressure() 665 if (temp < -1500) { in ms_sensors_read_temp_and_pressure() 666 s64 tmp = (s64)temp + 1500; in ms_sensors_read_temp_and_pressure() 686 *temperature = (temp - t2) * 10; in ms_sensors_read_temp_and_pressure()
|
/kernel/linux/linux-6.6/tools/testing/selftests/resctrl/ |
H A D | resctrl_val.c | 224 char imc_dir[512], *temp; in num_of_imcs() local 233 temp = strstr(ep->d_name, UNCORE_IMC); in num_of_imcs() 234 if (!temp) in num_of_imcs() 244 temp = temp + sizeof(UNCORE_IMC); in num_of_imcs() 251 if (temp[0] >= '0' && temp[0] <= '9') { in num_of_imcs()
|
/third_party/ffmpeg/libavcodec/ |
H A D | g729postfilter.c | 435 int temp; in get_tilt_comp() local 450 temp = av_log2(rh0) - 14; in get_tilt_comp() 451 if (temp > 0) { in get_tilt_comp() 452 rh0 >>= temp; in get_tilt_comp() local 453 rh1 >>= temp; in get_tilt_comp() local 465 temp = 0x2000000 / gain_term; // 1.0/gain_term in (0.15) in get_tilt_comp() 467 speech[i] = (speech[i] * temp + 0x4000) >> 15; in get_tilt_comp()
|
/third_party/ffmpeg/libavcodec/mips/ |
H A D | fft_mips.c | 72 float temp, temp1, temp3, temp4; in ff_fft_calc_mips() local 154 "sub.s %[temp], %[pom1], %[tmp8] \n\t" in ff_fft_calc_mips() 158 "swc1 %[temp], 48(%[tmpz]) \n\t" // tmpz[6].re = tmpz[2].re - tmp8; in ff_fft_calc_mips() 173 "lwc1 %[temp], 8(%[tmpz]) \n\t" in ff_fft_calc_mips() 177 "sub.s %[temp4],%[temp], %[tmp1] \n\t" in ff_fft_calc_mips() 179 "add.s %[temp], %[temp], %[tmp1] \n\t" in ff_fft_calc_mips() 187 "swc1 %[temp], 8(%[tmpz]) \n\t" // tmpz[1].re = tmpz[1].re + tmp1; in ff_fft_calc_mips() 195 [tmp6]"=&f"(tmp6), [tmp8]"=&f"(tmp8), [pom3]"=&f"(pom3),[temp]"=&f"(temp), [temp in ff_fft_calc_mips() [all...] |
/third_party/ffmpeg/libavcodec/x86/ |
H A D | cavsdsp.c | 310 #define PUT_OP(a,b,temp, size) "mov" #size " " #a ", " #b " \n\t" 311 #define AVG_3DNOW_OP(a,b,temp, size) \ 312 "mov" #size " " #b ", " #temp " \n\t"\ 313 "pavgusb " #temp ", " #a " \n\t"\ 315 #define AVG_MMXEXT_OP(a, b, temp, size) \ 316 "mov" #size " " #b ", " #temp " \n\t"\ 317 "pavgb " #temp ", " #a " \n\t"\
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_tgsi_info.c | 54 struct lp_tgsi_channel_info temp[32][4]; member 71 if (src->Index < ARRAY_SIZE(ctx->temp)) { in analyse_src() 72 *chan_info = ctx->temp[src->Index][swizzle]; in analyse_src() 304 regs = ctx->temp; in analyse_instruction() 305 max_regs = ARRAY_SIZE(ctx->temp); in analyse_instruction() 460 memset(&ctx->temp, 0, sizeof ctx->temp); in analyse_instruction()
|
/third_party/toybox/toys/pending/ |
H A D | syslogd.c | 411 char *temp, *buffer = (toybuf +2048), *last_buf = (toybuf + 3072); //these two buffs are of 1K each in syslogd_main() local 425 for (temp = strtok(TT.socket, ":"); temp; temp = strtok(NULL, ":")) { in syslogd_main() 426 if (strlen(temp) > 107) temp[108] = '\0'; in syslogd_main() 428 tsd->path = temp; in syslogd_main()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
H A D | distribution_test_util.cc | 218 double temp = q - ai; in BetaIncompleteImpl() local 220 term = term * temp * rx / (p + ai); in BetaIncompleteImpl() 222 temp = std::fabs(term); in BetaIncompleteImpl() 223 if (temp < kErr && temp < kErr * result) { in BetaIncompleteImpl() 229 temp = q - ai; in BetaIncompleteImpl() 234 temp = psq; in BetaIncompleteImpl()
|