| /linux/drivers/usb/host/ |
| H A D | ohci-dbg.c | 13 #define edstring(ed_type) ({ char *temp; \ 15 case PIPE_CONTROL: temp = "ctrl"; break; \ 16 case PIPE_BULK: temp = "bulk"; break; \ 17 case PIPE_INTERRUPT: temp = "intr"; break; \ 18 default: temp = "isoc"; break; \ 19 } temp;}) 104 u32 temp; in ohci_dump_status() local 106 temp = ohci_readl (controller, ®s->revision) & 0xff; in ohci_dump_status() 109 0x03 & (temp >> 4), (temp & 0x0f), in ohci_dump_status() 110 (temp & 0x0100) ? "with" : "NO", in ohci_dump_status() [all …]
|
| H A D | ehci-hub.c | 150 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 D | xhci-hub.c | 259 u16 temp; in xhci_common_hub_descriptor() local 264 temp = 0; in xhci_common_hub_descriptor() 267 temp |= HUB_CHAR_INDV_PORT_LPSM; in xhci_common_hub_descriptor() 269 temp |= HUB_CHAR_NO_LPSM; in xhci_common_hub_descriptor() 272 temp |= HUB_CHAR_INDV_PORT_OCPM; in xhci_common_hub_descriptor() 275 desc->wHubCharacteristics = cpu_to_le16(temp); in xhci_common_hub_descriptor() 283 u16 temp; in xhci_usb2_hub_descriptor() local 293 temp = 1 + (ports / 8); in xhci_usb2_hub_descriptor() 294 desc->bDescLength = USB_DT_HUB_NONVAR_SIZE + 2 * temp; in xhci_usb2_hub_descriptor() 650 u32 temp; in xhci_set_port_power() local [all …]
|
| H A D | ohci-hub.c | 105 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/fs/jffs2/ |
| H A D | summary.c | 118 struct jffs2_sum_inode_mem *temp = kmalloc(sizeof(struct jffs2_sum_inode_mem), GFP_KERNEL); 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/gpu/drm/msm/dsi/phy/ |
| H A D | dsi_phy.c | 34 s32 temp; in dsi_dphy_timing_calc_clk_zero() local 37 temp = 300 * coeff - ((timing->clk_prepare >> 1) + 1) * 2 * ui; in dsi_dphy_timing_calc_clk_zero() 38 tmin = S_DIV_ROUND_UP(temp, ui) - 2; in dsi_dphy_timing_calc_clk_zero() 48 temp = (timing->hs_rqst + timing->clk_prepare + clk_z) & 0x7; in dsi_dphy_timing_calc_clk_zero() 49 timing->clk_zero = clk_z + 8 - temp; in dsi_dphy_timing_calc_clk_zero() 64 s32 temp; in msm_dsi_dphy_timing_calc() local 76 temp = lpx / ui; in msm_dsi_dphy_timing_calc() 77 if (temp & 0x1) in msm_dsi_dphy_timing_calc() 78 timing->hs_rqst = temp; in msm_dsi_dphy_timing_calc() 80 timing->hs_rqst = max_t(s32, 0, temp - 2); in msm_dsi_dphy_timing_calc() [all …]
|
| /linux/drivers/usb/gadget/udc/bdc/ |
| H A D | bdc_dbg.c | 15 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 …]
|
| /linux/arch/x86/entry/vdso/ |
| H A D | vgetrandom-chacha.S | 32 .set temp, %xmm0 define 66 movdqa state3,temp 67 pslld $16,temp 69 por temp,state3 74 movdqa state1,temp 75 pslld $12,temp 77 por temp,state1 82 movdqa state3,temp 83 pslld $8,temp 85 por temp,state3 [all …]
|
| /linux/lib/xz/ |
| H A D | xz_dec_stream.c | 128 } temp; member 151 * Fill s->temp by copying data starting from b->in[b->in_pos]. Caller 152 * must have set s->temp.pos to indicate how much data we are supposed 153 * to copy into s->temp.buf. Return true once s->temp.pos has reached 154 * s->temp.size. 159 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp() 161 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp() 163 s->temp.pos += copy_size; in fill_temp() 165 if (s->temp.pos == s->temp.size) { in fill_temp() 166 s->temp.pos = 0; in fill_temp() [all …]
|
| H A D | xz_dec_bcj.c | 75 } temp; member 461 * Flush pending filtered data from temp to the output buffer. 463 * data to the beginning of temp. 469 copy_size = min_t(size_t, s->temp.filtered, b->out_size - b->out_pos); in bcj_flush() 470 memcpy(b->out + b->out_pos, s->temp.buf, copy_size); in bcj_flush() 473 s->temp.filtered -= copy_size; in bcj_flush() 474 s->temp.size -= copy_size; in bcj_flush() 475 memmove(s->temp.buf, s->temp.buf + copy_size, s->temp.size); in bcj_flush() 493 if (s->temp.filtered > 0) { in xz_dec_bcj_run() 495 if (s->temp.filtered > 0) in xz_dec_bcj_run() [all …]
|
| /linux/drivers/char/agp/ |
| H A D | ali-agp.c | 24 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 D | aic7xxx_93cx6.c | 107 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/sound/pci/au88x0/ |
| H A D | au88x0_core.c | 157 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 D | au88x0_mpu401.c | 33 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 D | adt7462.c | 199 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 …]
|
| H A D | stts751.c | 94 int temp; member 166 "I2C read failed (temp H). ret: %x\n", integer1); in stts751_update_temp() 173 "I2C read failed (temp L). ret: %x\n", frac); in stts751_update_temp() 180 "I2C 2nd read failed (temp H). ret: %x\n", integer2); in stts751_update_temp() 189 "I2C 2nd read failed (temp L). ret: %x\n", in stts751_update_temp() 195 priv->temp = stts751_to_deg((integer1 << 8) | frac); in stts751_update_temp() 199 static int stts751_set_temp_reg16(struct stts751_priv *priv, int temp, in stts751_set_temp_reg16() argument 205 hwval = stts751_to_hw(temp); in stts751_set_temp_reg16() 214 static int stts751_set_temp_reg8(struct stts751_priv *priv, int temp, u8 reg) in stts751_set_temp_reg8() argument 218 hwval = stts751_to_hw(temp); in stts751_set_temp_reg8() [all …]
|
| /linux/arch/loongarch/include/asm/ |
| H A D | stackframe.h | 41 .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/drivers/video/fbdev/sis/ |
| H A D | init301.c | 612 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/arch/microblaze/kernel/cpu/ |
| H A D | cpuinfo-pvr-full.c | 31 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 D | i2c-ali15x3.c | 124 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 D | i2c-imx-lpi2c.c | 205 unsigned int temp; in lpi2c_imx_bus_busy() local 208 err = lpi2c_imx_read_msr_poll_timeout(atomic, temp, in lpi2c_imx_bus_busy() 209 temp & (MSR_ALF | MSR_BBF | MSR_MBF)); in lpi2c_imx_bus_busy() 212 if (temp & MSR_ALF) { in lpi2c_imx_bus_busy() 213 writel(temp, lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy() 255 unsigned int temp; in lpi2c_imx_start() local 257 temp = readl(lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_start() 258 temp |= MCR_RRF | MCR_RTF; in lpi2c_imx_start() 259 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_start() 262 temp = i2c_8bit_addr_from_msg(msgs) | (GEN_START << 8); in lpi2c_imx_start() [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-amd8111.c | 100 u8 temp; in amd_gpio_set() local 104 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set() 105 …temp = (temp & AMD_GPIO_DEBOUNCE) | AMD_GPIO_MODE_OUT | (value ? AMD_GPIO_X_OUT_HI : AMD_GPIO_X_OU… in amd_gpio_set() 106 iowrite8(temp, agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set() 109 dev_dbg(&agp->pdev->dev, "Setting gpio %d, value %d, reg=%02x\n", offset, !!value, temp); in amd_gpio_set() 117 u8 temp; in amd_gpio_get() local 119 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_get() 121 dev_dbg(&agp->pdev->dev, "Getting gpio %d, reg=%02x\n", offset, temp); in amd_gpio_get() 123 return (temp & AMD_GPIO_RTIN) ? 1 : 0; in amd_gpio_get() 129 u8 temp; in amd_gpio_dirout() local [all …]
|
| /linux/drivers/acpi/ |
| H A D | acpi_lpat.c | 26 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/drivers/thermal/qcom/ |
| H A D | qcom-spmi-temp-alarm.c | 98 #define TEMP_DAC_TEMP_TO_REG(temp) \ argument 99 (((temp) - TEMP_DAC_MIN) * TEMP_DAC_SCALE_NUM / TEMP_DAC_SCALE_DEN) 139 long temp; member 246 * This function updates the internal temp value based on the 264 chip->temp = qpnp_tm_decode_temp(chip, stage_new) in qpnp_tm_update_temp_no_adc() 268 chip->temp = qpnp_tm_decode_temp(chip, stage_new + 1) in qpnp_tm_update_temp_no_adc() 277 static int qpnp_tm_get_temp(struct thermal_zone_device *tz, int *temp) in qpnp_tm_get_temp() argument 282 if (!temp) in qpnp_tm_get_temp() 286 *temp = DEFAULT_TEMP; in qpnp_tm_get_temp() 301 chip->temp = mili_celsius; in qpnp_tm_get_temp() [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_hwmon.c | 46 static int bnxt_hwrm_temp_query(struct bnxt *bp, u8 *temp) in bnxt_hwrm_temp_query() argument 60 if (temp) { in bnxt_hwrm_temp_query() 61 *temp = resp->temp; in bnxt_hwrm_temp_query() 104 u8 temp = 0; in bnxt_hwmon_read() local 109 rc = bnxt_hwrm_temp_query(bp, &temp); in bnxt_hwmon_read() 111 *val = temp * 1000; in bnxt_hwmon_read() 123 rc = bnxt_hwrm_temp_query(bp, &temp); in bnxt_hwmon_read() 125 *val = temp >= bp->warn_thresh_temp; in bnxt_hwmon_read() 128 rc = bnxt_hwrm_temp_query(bp, &temp); in bnxt_hwmon_read() 130 *val = temp >= bp->crit_thresh_temp; in bnxt_hwmon_read() [all …]
|