Home
last modified time | relevance | path

Searched full:temp (Results 1 – 25 of 1304) sorted by relevance

12345678910>>...53

/linux/fs/jffs2/
H A Dsummary.c118 struct jffs2_sum_inode_mem *temp = kmalloc_obj(struct jffs2_sum_inode_mem); in jffs2_sum_add_inode_mem() local
120 if (!temp) in jffs2_sum_add_inode_mem()
123 temp->nodetype = ri->nodetype; in jffs2_sum_add_inode_mem()
124 temp->inode = ri->ino; in jffs2_sum_add_inode_mem()
125 temp->version = ri->version; in jffs2_sum_add_inode_mem()
126 temp->offset = cpu_to_je32(ofs); /* relative offset from the beginning of the jeb */ in jffs2_sum_add_inode_mem()
127 temp->totlen = ri->totlen; in jffs2_sum_add_inode_mem()
128 temp->next = NULL; in jffs2_sum_add_inode_mem()
130 return jffs2_sum_add_mem(s, (union jffs2_sum_mem *)temp); in jffs2_sum_add_inode_mem()
136 struct jffs2_sum_dirent_mem *temp = in jffs2_sum_add_dirent_mem() local
[all …]
/linux/drivers/thermal/
H A Dthermal_hwmon.c57 struct thermal_hwmon_temp *temp in temp_input_show() local
60 struct thermal_zone_device *tz = temp->tz; in temp_input_show()
75 struct thermal_hwmon_temp *temp in temp_crit_show() local
78 struct thermal_zone_device *tz = temp->tz; in temp_crit_show()
110 int temp; in thermal_zone_crit_temp_valid() local
111 return tz->ops.get_crit_temp && !tz->ops.get_crit_temp(tz, &temp); in thermal_zone_crit_temp_valid()
117 struct thermal_hwmon_temp *temp; in thermal_add_hwmon_sysfs() local
146 temp = kzalloc_obj(*temp); in thermal_add_hwmon_sysfs()
147 if (!temp) { in thermal_add_hwmon_sysfs()
152 temp->tz = tz; in thermal_add_hwmon_sysfs()
[all …]
/linux/drivers/usb/gadget/udc/bdc/
H A Dbdc_dbg.c15 u32 temp; in bdc_dbg_regs() local
18 temp = bdc_readl(bdc->regs, BDC_BDCCFG0); in bdc_dbg_regs()
19 dev_vdbg(bdc->dev, "bdccfg0:0x%08x\n", temp); in bdc_dbg_regs()
20 temp = bdc_readl(bdc->regs, BDC_BDCCFG1); in bdc_dbg_regs()
21 dev_vdbg(bdc->dev, "bdccfg1:0x%08x\n", temp); in bdc_dbg_regs()
22 temp = bdc_readl(bdc->regs, BDC_BDCCAP0); in bdc_dbg_regs()
23 dev_vdbg(bdc->dev, "bdccap0:0x%08x\n", temp); in bdc_dbg_regs()
24 temp = bdc_readl(bdc->regs, BDC_BDCCAP1); in bdc_dbg_regs()
25 dev_vdbg(bdc->dev, "bdccap1:0x%08x\n", temp); in bdc_dbg_regs()
26 temp = bdc_readl(bdc->regs, BDC_USPC); in bdc_dbg_regs()
[all …]
H A Dbdc_core.c52 u32 temp; in bdc_stop() local
55 temp = bdc_readl(bdc->regs, BDC_BDCSC); in bdc_stop()
57 if (BDC_CSTS(temp) == BDC_HLT) { in bdc_stop()
61 temp &= ~BDC_COP_MASK; in bdc_stop()
62 temp |= BDC_COS|BDC_COP_STP; in bdc_stop()
63 bdc_writel(bdc->regs, BDC_BDCSC, temp); in bdc_stop()
75 u32 temp; in bdc_reset() local
84 temp = bdc_readl(bdc->regs, BDC_BDCSC); in bdc_reset()
85 temp &= ~BDC_COP_MASK; in bdc_reset()
86 temp |= BDC_COS|BDC_COP_RST; in bdc_reset()
[all …]
/linux/drivers/usb/host/
H A Dehci-dbg.c377 unsigned temp; in qh_lines() local
398 temp = scnprintf(next, size, in qh_lines()
412 size -= temp; in qh_lines()
413 next += temp; in qh_lines()
446 temp = scnprintf(next, size, in qh_lines()
455 size -= temp; in qh_lines()
456 next += temp; in qh_lines()
457 if (temp == size) in qh_lines()
461 temp = scnprintf(next, size, "\n"); in qh_lines()
462 size -= temp; in qh_lines()
[all …]
H A Dehci-hub.c150 u32 temp; in ehci_adjust_port_wakeup_flags() local
168 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags()
169 ehci_writel(ehci, temp & ~HOSTPC_PHCD, hostpc_reg); in ehci_adjust_port_wakeup_flags()
200 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags()
201 ehci_writel(ehci, temp | HOSTPC_PHCD, hostpc_reg); in ehci_adjust_port_wakeup_flags()
379 u32 temp; in ehci_bus_resume() local
429 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_bus_resume()
430 if ((temp & PORT_PE) && in ehci_bus_resume()
431 !(temp & (PORT_SUSPEND | PORT_RESUME))) { in ehci_bus_resume()
432 ehci_dbg(ehci, "Port status(0x%x) is wrong\n", temp); in ehci_bus_resume()
[all …]
H A Dohci-hub.c105 unsigned temp; in ohci_rh_suspend() local
108 temp = ohci_readl(ohci, portstat); in ohci_rh_suspend()
109 if ((temp & (RH_PS_PES | RH_PS_PSS)) == in ohci_rh_suspend()
157 u32 temp, enables; in ohci_rh_resume() local
218 temp = ohci_readl (ohci, &ohci->regs->control); in ohci_rh_resume()
219 temp &= OHCI_CTRL_HCFS; in ohci_rh_resume()
220 if (temp != OHCI_USB_RESUME) { in ohci_rh_resume()
254 temp = ohci->hc_control; in ohci_rh_resume()
255 temp &= OHCI_CTRL_RWC; in ohci_rh_resume()
256 temp |= OHCI_CONTROL_INIT | OHCI_USB_OPER; in ohci_rh_resume()
[all …]
/linux/drivers/char/agp/
H A Dali-agp.c24 u32 temp; in ali_fetch_size() local
27 pci_read_config_dword(agp_bridge->dev, ALI_ATTBASE, &temp); in ali_fetch_size()
28 temp &= ~(0xfffffff0); in ali_fetch_size()
32 if (temp == values[i].size_value) { in ali_fetch_size()
45 u32 temp; in ali_tlbflush() local
47 pci_read_config_dword(agp_bridge->dev, ALI_TLBCTRL, &temp); in ali_tlbflush()
48 temp &= 0xfffffff0; in ali_tlbflush()
49 temp |= (1<<0 | 1<<1); in ali_tlbflush()
50 pci_write_config_dword(agp_bridge->dev, ALI_TAGCTRL, temp); in ali_tlbflush()
56 u32 temp; in ali_cleanup() local
[all …]
/linux/drivers/scsi/aic7xxx/
H A Daic7xxx_93cx6.c107 uint8_t temp; in send_seeprom_cmd() local
111 temp = sd->sd_MS ^ sd->sd_CS; in send_seeprom_cmd()
112 SEEPROM_OUTB(sd, temp ^ sd->sd_CK); in send_seeprom_cmd()
117 temp ^= sd->sd_DO; in send_seeprom_cmd()
118 SEEPROM_OUTB(sd, temp); in send_seeprom_cmd()
120 SEEPROM_OUTB(sd, temp ^ sd->sd_CK); in send_seeprom_cmd()
123 temp ^= sd->sd_DO; in send_seeprom_cmd()
133 uint8_t temp; in reset_seeprom() local
135 temp = sd->sd_MS; in reset_seeprom()
136 SEEPROM_OUTB(sd, temp); in reset_seeprom()
[all …]
/linux/arch/loongarch/include/asm/
H A Dstackframe.h41 .macro SETUP_TWINS temp
51 .macro SETUP_MODES temp
53 li.w \temp, 0xb0 # PLV=0, IE=0, PG=1
54 csrwr \temp, LOONGARCH_CSR_CRMD
55 li.w \temp, 0x04 # PLV=0, PIE=1, PWE=0
56 csrwr \temp, LOONGARCH_CSR_PRMD
57 li.w \temp, 0x00 # FPE=0, SXE=0, ASXE=0, BTE=0
58 csrwr \temp, LOONGARCH_CSR_EUEN
61 .macro SETUP_DMWINS temp
62 PTR_LI \temp, CSR_DMW0_INIT # SUC, PLV0, LA32: 0x8xxx xxxx, LA64: 0x8000 xxxx xxxx xxxx
[all …]
/linux/sound/pci/au88x0/
H A Dau88x0_core.c157 int addr, temp;
163 temp = hwread(vortex->mmio, VORTEX_MIX_ENIN + addr);
164 return ((temp >> (mixin & 3)) & 1);
171 int temp; in vortex_mix_setvolumebyte() local
174 temp = hwread(vortex->mmio, VORTEX_MIX_VOL_B + (mix << 2)); in vortex_mix_setvolumebyte()
175 if ((temp != 0x80) || (vol == 0x80)) in vortex_mix_setvolumebyte()
185 int temp; in vortex_mix_setinputvolumebyte() local
190 temp = in vortex_mix_setinputvolumebyte()
193 if ((temp != 0x80) || (vol == 0x80)) in vortex_mix_setinputvolumebyte()
203 int temp, addr; in vortex_mix_setenablebit() local
[all …]
H A Dau88x0_mpu401.c33 int temp, mode; in snd_vortex_midi() local
41 temp = in snd_vortex_midi()
44 hwwrite(vortex->mmio, VORTEX_CTRL, temp); in snd_vortex_midi()
47 temp = in snd_vortex_midi()
50 hwwrite(vortex->mmio, VORTEX_CTRL, temp); in snd_vortex_midi()
54 temp = hwread(vortex->mmio, VORTEX_CTRL2) & 0xffff00cf; in snd_vortex_midi()
55 temp |= (MIDI_CLOCK_DIV << 8) | ((mode >> 24) & 0xff) << 4; in snd_vortex_midi()
56 hwwrite(vortex->mmio, VORTEX_CTRL2, temp); in snd_vortex_midi()
60 temp = hwread(vortex->mmio, VORTEX_MIDI_DATA); in snd_vortex_midi()
61 if (temp != MPU401_ACK /*0xfe */ ) { in snd_vortex_midi()
[all …]
/linux/drivers/hwmon/
H A Dadt7462.c199 u8 temp[ADT7462_TEMP_COUNT]; member
200 /* bits 6-7 are quarter pieces of temp */
692 data->temp[i] = i2c_smbus_read_byte_data(client, in adt7462_update_device()
797 long temp; in temp_min_store() local
799 if (kstrtol(buf, 10, &temp) || !temp_enabled(data, attr->index)) in temp_min_store()
802 temp = clamp_val(temp, -64000, 191000); in temp_min_store()
803 temp = DIV_ROUND_CLOSEST(temp, 1000) + 64; in temp_min_store()
806 data->temp_min[attr->index] = temp; in temp_min_store()
808 temp); in temp_min_store()
833 long temp; in temp_max_store() local
[all …]
/linux/drivers/gpu/drm/gma500/
H A Doaktrail_hdmi_i2c.c82 u32 temp; in hdmi_i2c_irq_enable() local
84 temp = HDMI_READ(HDMI_HICR); in hdmi_i2c_irq_enable()
85 temp |= (HDMI_INTR_I2C_ERROR | HDMI_INTR_I2C_FULL | HDMI_INTR_I2C_DONE); in hdmi_i2c_irq_enable()
86 HDMI_WRITE(HDMI_HICR, temp); in hdmi_i2c_irq_enable()
100 u32 temp; in xfer_read() local
109 temp = ((pmsg->len) << 20) | HI2C_EDID_READ | HI2C_ENABLE_TRANSACTION; in xfer_read()
110 HDMI_WRITE(HDMI_HI2CHCR, temp); in xfer_read()
193 u32 temp; in hdmi_i2c_read() local
198 temp = HDMI_READ(HDMI_HI2CRDB0 + (i * 4)); in hdmi_i2c_read()
199 memcpy(buf + (offset + i * 4), &temp, 4); in hdmi_i2c_read()
[all …]
/linux/arch/microblaze/kernel/cpu/
H A Dcpuinfo-pvr-full.c31 u32 temp; /* for saving temp value */ in set_cpuinfo_pvr_full() local
40 temp = PVR_USE_BARREL(pvr) | PVR_USE_MSR_INSTR(pvr) | in set_cpuinfo_pvr_full()
42 if (ci->use_instr != temp) in set_cpuinfo_pvr_full()
44 ci->use_instr = temp; in set_cpuinfo_pvr_full()
46 temp = PVR_USE_HW_MUL(pvr) | PVR_USE_MUL64(pvr); in set_cpuinfo_pvr_full()
47 if (ci->use_mult != temp) in set_cpuinfo_pvr_full()
49 ci->use_mult = temp; in set_cpuinfo_pvr_full()
51 temp = PVR_USE_FPU(pvr) | PVR_USE_FPU2(pvr); in set_cpuinfo_pvr_full()
52 if (ci->use_fpu != temp) in set_cpuinfo_pvr_full()
54 ci->use_fpu = temp; in set_cpuinfo_pvr_full()
[all …]
/linux/drivers/i2c/busses/
H A Di2c-ali15x3.c124 unsigned char temp; in ali15x3_setup() local
137 pci_read_config_byte(ALI15X3_dev, SMBATPC, &temp); in ali15x3_setup()
138 if (temp & ALI15X3_LOCK) { in ali15x3_setup()
139 temp &= ~ALI15X3_LOCK; in ali15x3_setup()
140 pci_write_config_byte(ALI15X3_dev, SMBATPC, temp); in ali15x3_setup()
186 pci_read_config_byte(ALI15X3_dev, SMBCOM, &temp); in ali15x3_setup()
187 if ((temp & 1) == 0) { in ali15x3_setup()
189 pci_write_config_byte(ALI15X3_dev, SMBCOM, temp | 0x01); in ali15x3_setup()
193 pci_read_config_byte(ALI15X3_dev, SMBHSTCFG, &temp); in ali15x3_setup()
194 if ((temp & 1) == 0) { in ali15x3_setup()
[all …]
H A Di2c-imx.c381 unsigned int temp; in i2c_imx_clear_irq() local
388 temp = ~i2c_imx->hwdata->i2sr_clr_opcode ^ bits; in i2c_imx_clear_irq()
389 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2SR); in i2c_imx_clear_irq()
540 unsigned int temp; in i2c_imx_bus_busy() local
543 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_bus_busy()
546 if (multi_master && (temp & I2SR_IAL)) { in i2c_imx_bus_busy()
551 if (for_busy && (!multi_master || (temp & I2SR_IBB))) { in i2c_imx_bus_busy()
555 if (!for_busy && !(temp & I2SR_IBB)) { in i2c_imx_bus_busy()
698 unsigned int temp = 0; in i2c_imx_start() local
713 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
[all …]
/linux/drivers/video/fbdev/sis/
H A Dinit301.c612 unsigned short modeflag,index,temp,backupindex; in SiS_GetRatePtr() local
651 temp = LCDRefreshIndex[SiS_GetBIOSLCDResInfo(SiS_Pr)]; in SiS_GetRatePtr()
652 if(index > temp) index = temp; in SiS_GetRatePtr()
678 temp = SiS_Pr->SiS_RefIndex[RRTI + i].Ext_InfoFlag; in SiS_GetRatePtr()
679 temp &= ModeTypeMask; in SiS_GetRatePtr()
680 if(temp < SiS_Pr->SiS_ModeType) break; in SiS_GetRatePtr()
687 temp = SiS_Pr->SiS_RefIndex[RRTI + i - 1].Ext_InfoFlag; in SiS_GetRatePtr()
688 if(temp & InterlaceMode) i++; in SiS_GetRatePtr()
729 unsigned short temp,temp1; in SiS_CR36BIOSWord23b() local
733 temp = 1 << ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4) & 0x0f); in SiS_CR36BIOSWord23b()
[all …]
/linux/drivers/acpi/
H A Dacpi_lpat.c26 int i, delta_temp, delta_raw, temp; in acpi_lpat_raw_to_temp() local
38 delta_temp = lpat[i+1].temp - lpat[i].temp; in acpi_lpat_raw_to_temp()
40 temp = lpat[i].temp + (raw - lpat[i].raw) * delta_temp / delta_raw; in acpi_lpat_raw_to_temp()
42 return temp; in acpi_lpat_raw_to_temp()
51 * @temp: the temperature, used as a key to get the raw value from the
58 int temp) in acpi_lpat_temp_to_raw() argument
64 if (temp >= lpat[i].temp && temp <= lpat[i+1].temp) in acpi_lpat_temp_to_raw()
71 delta_temp = lpat[i+1].temp - lpat[i].temp; in acpi_lpat_temp_to_raw()
73 raw = lpat[i].raw + (temp - lpat[i].temp) * delta_raw / delta_temp; in acpi_lpat_temp_to_raw()
/linux/Documentation/hwmon/
H A Dtmp464.rst43 **temp[1-9]_input**
45 **temp[1-9]_max**
47 **temp[1-9]_max_hyst**
49 **temp[1-9]_max_alarm**
51 **temp[1-9]_crit**
53 **temp[1-9]_crit_alarm**
55 **temp[1-9]_crit_hyst**
57 **temp[2-9]_offset**
59 **temp[2-9]_fault**
64 **temp[1-9]_enable**
[all …]
/linux/drivers/media/pci/cx23885/
H A Dcx23885-f300.c77 u8 i, temp, ret = 0; in f300_xfer() local
79 temp = buf[0]; in f300_xfer()
81 temp += buf[i + 1]; in f300_xfer()
82 temp = (~temp + 1);/* get check sum */ in f300_xfer()
83 buf[1 + buf[0]] = temp; in f300_xfer()
98 temp = buf[0]; in f300_xfer()
99 temp += 2; in f300_xfer()
100 for (i = 0; i < temp; i++) in f300_xfer()
107 temp = 0; in f300_xfer()
108 for (i = 0; ((i < 8) & (temp == 0)); i++) { in f300_xfer()
[all …]
/linux/drivers/hwmon/peci/
H A Dcputemp.c65 } temp; member
93 if (!peci_sensor_need_update(&priv->temp.target.state)) in update_temp_target()
100 priv->temp.target.tjmax = in update_temp_target()
105 priv->temp.target.tcontrol = priv->temp.target.tjmax - tcontrol_margin; in update_temp_target()
108 priv->temp.target.tthrottle = priv->temp.target.tjmax - tthrottle_offset; in update_temp_target()
110 peci_sensor_mark_updated(&priv->temp.target.state); in update_temp_target()
125 *val = priv->temp.target.tcontrol; in get_temp_target()
128 *val = priv->temp.target.tthrottle; in get_temp_target()
131 *val = priv->temp.target.tjmax; in get_temp_target()
134 *val = priv->temp.target.tcontrol; in get_temp_target()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_i2c.c44 uint32_t temp; in amdgpu_i2c_pre_xfer() local
50 temp = RREG32(rec->mask_clk_reg); in amdgpu_i2c_pre_xfer()
51 temp &= ~(1 << 16); in amdgpu_i2c_pre_xfer()
52 WREG32(rec->mask_clk_reg, temp); in amdgpu_i2c_pre_xfer()
56 temp = RREG32(rec->a_clk_reg) & ~rec->a_clk_mask; in amdgpu_i2c_pre_xfer()
57 WREG32(rec->a_clk_reg, temp); in amdgpu_i2c_pre_xfer()
59 temp = RREG32(rec->a_data_reg) & ~rec->a_data_mask; in amdgpu_i2c_pre_xfer()
60 WREG32(rec->a_data_reg, temp); in amdgpu_i2c_pre_xfer()
63 temp = RREG32(rec->en_clk_reg) & ~rec->en_clk_mask; in amdgpu_i2c_pre_xfer()
64 WREG32(rec->en_clk_reg, temp); in amdgpu_i2c_pre_xfer()
[all …]
/linux/arch/microblaze/kernel/
H A Dkgdb.c41 int temp; in pt_regs_to_gdb_regs() local
48 __asm__ __volatile__ ("mfs %0, rbtr;" : "=r"(temp) : ); in pt_regs_to_gdb_regs()
49 gdb_regs[GDB_BTR] = temp; in pt_regs_to_gdb_regs()
56 __asm__ __volatile__ ("mfs %0, redr;" : "=r"(temp) : ); in pt_regs_to_gdb_regs()
57 gdb_regs[GDB_REDR] = temp; in pt_regs_to_gdb_regs()
58 __asm__ __volatile__ ("mfs %0, rpid;" : "=r"(temp) : ); in pt_regs_to_gdb_regs()
59 gdb_regs[GDB_RPID] = temp; in pt_regs_to_gdb_regs()
60 __asm__ __volatile__ ("mfs %0, rzpr;" : "=r"(temp) : ); in pt_regs_to_gdb_regs()
61 gdb_regs[GDB_RZPR] = temp; in pt_regs_to_gdb_regs()
62 __asm__ __volatile__ ("mfs %0, rtlbx;" : "=r"(temp) : ); in pt_regs_to_gdb_regs()
[all …]
/linux/drivers/thermal/samsung/
H A Dexynos_tmu.c190 void (*tmu_set_low_temp)(struct exynos_tmu_data *data, u8 temp);
191 void (*tmu_set_high_temp)(struct exynos_tmu_data *data, u8 temp);
192 void (*tmu_set_crit_temp)(struct exynos_tmu_data *data, u8 temp);
198 void (*tmu_set_emulation)(struct exynos_tmu_data *data, int temp);
206 static int temp_to_code(struct exynos_tmu_data *data, u8 temp) in temp_to_code() argument
209 return temp + data->temp_error1 - EXYNOS_FIRST_POINT_TRIM; in temp_to_code()
211 return (temp - EXYNOS_FIRST_POINT_TRIM) * in temp_to_code()
284 int ret, temp; in exynos_thermal_zone_configure() local
286 ret = thermal_zone_get_crit_temp(tzd, &temp); in exynos_thermal_zone_configure()
300 data->tmu_set_crit_temp(data, temp / MCELSIUS); in exynos_thermal_zone_configure()
[all …]

12345678910>>...53