/drivers/gpu/drm/i915/display/ |
D | intel_fdi.c | 154 u32 temp; in intel_fdi_normal_train() local 158 temp = intel_de_read(dev_priv, reg); in intel_fdi_normal_train() 160 temp &= ~FDI_LINK_TRAIN_NONE_IVB; in intel_fdi_normal_train() 161 temp |= FDI_LINK_TRAIN_NONE_IVB | FDI_TX_ENHANCE_FRAME_ENABLE; in intel_fdi_normal_train() 163 temp &= ~FDI_LINK_TRAIN_NONE; in intel_fdi_normal_train() 164 temp |= FDI_LINK_TRAIN_NONE | FDI_TX_ENHANCE_FRAME_ENABLE; in intel_fdi_normal_train() 166 intel_de_write(dev_priv, reg, temp); in intel_fdi_normal_train() 169 temp = intel_de_read(dev_priv, reg); in intel_fdi_normal_train() 171 temp &= ~FDI_LINK_TRAIN_PATTERN_MASK_CPT; in intel_fdi_normal_train() 172 temp |= FDI_LINK_TRAIN_NORMAL_CPT; in intel_fdi_normal_train() [all …]
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-417.c | 355 u32 temp; in mc417_register_write() local 358 temp = 0x82 | MCI_REGISTER_DATA_BYTE0 | ((value & 0x000000FF) << 8); in mc417_register_write() 359 temp = temp << 10; in mc417_register_write() 360 status = set_itvc_reg(dev, ITVC_WRITE_DIR, temp); in mc417_register_write() 363 temp = temp | (0x05 << 10); in mc417_register_write() 364 set_itvc_reg(dev, ITVC_WRITE_DIR, temp); in mc417_register_write() 367 temp = 0x82 | MCI_REGISTER_DATA_BYTE1 | (value & 0x0000FF00); in mc417_register_write() 368 temp = temp << 10; in mc417_register_write() 369 set_itvc_reg(dev, ITVC_WRITE_DIR, temp); in mc417_register_write() 370 temp = temp | (0x05 << 10); in mc417_register_write() [all …]
|
/drivers/usb/host/ |
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 …]
|
D | ehci-dbg.c | 377 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 …]
|
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 …]
|
D | xhci-hub.c | 258 u16 temp; in xhci_common_hub_descriptor() local 263 temp = 0; in xhci_common_hub_descriptor() 266 temp |= HUB_CHAR_INDV_PORT_LPSM; in xhci_common_hub_descriptor() 268 temp |= HUB_CHAR_NO_LPSM; in xhci_common_hub_descriptor() 271 temp |= HUB_CHAR_INDV_PORT_OCPM; in xhci_common_hub_descriptor() 274 desc->wHubCharacteristics = cpu_to_le16(temp); in xhci_common_hub_descriptor() 282 u16 temp; in xhci_usb2_hub_descriptor() local 292 temp = 1 + (ports / 8); in xhci_usb2_hub_descriptor() 293 desc->bDescLength = USB_DT_HUB_NONVAR_SIZE + 2 * temp; in xhci_usb2_hub_descriptor() 661 u32 temp; in xhci_set_port_power() local [all …]
|
D | ohci-hub.c | 102 unsigned temp; in ohci_rh_suspend() local 105 temp = ohci_readl(ohci, portstat); in ohci_rh_suspend() 106 if ((temp & (RH_PS_PES | RH_PS_PSS)) == in ohci_rh_suspend() 154 u32 temp, enables; in ohci_rh_resume() local 215 temp = ohci_readl (ohci, &ohci->regs->control); in ohci_rh_resume() 216 temp &= OHCI_CTRL_HCFS; in ohci_rh_resume() 217 if (temp != OHCI_USB_RESUME) { in ohci_rh_resume() 251 temp = ohci->hc_control; in ohci_rh_resume() 252 temp &= OHCI_CTRL_RWC; in ohci_rh_resume() 253 temp |= OHCI_CONTROL_INIT | OHCI_USB_OPER; in ohci_rh_resume() [all …]
|
/drivers/thermal/ |
D | thermal_hwmon.c | 55 struct thermal_hwmon_temp *temp in temp_input_show() local 58 struct thermal_zone_device *tz = temp->tz; in temp_input_show() 73 struct thermal_hwmon_temp *temp in temp_crit_show() local 76 struct thermal_zone_device *tz = temp->tz; in temp_crit_show() 113 struct thermal_hwmon_temp *temp; in thermal_hwmon_lookup_temp() local 116 list_for_each_entry(temp, &hwmon->tz_list, hwmon_node) in thermal_hwmon_lookup_temp() 117 if (temp->tz == tz) { in thermal_hwmon_lookup_temp() 119 return temp; in thermal_hwmon_lookup_temp() 128 int temp; in thermal_zone_crit_temp_valid() local 129 return tz->ops->get_crit_temp && !tz->ops->get_crit_temp(tz, &temp); in thermal_zone_crit_temp_valid() [all …]
|
/drivers/usb/gadget/udc/bdc/ |
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 …]
|
D | bdc_core.c | 52 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 …]
|
/drivers/gpu/drm/msm/dsi/phy/ |
D | dsi_phy.c | 32 s32 temp; in dsi_dphy_timing_calc_clk_zero() local 35 temp = 300 * coeff - ((timing->clk_prepare >> 1) + 1) * 2 * ui; in dsi_dphy_timing_calc_clk_zero() 36 tmin = S_DIV_ROUND_UP(temp, ui) - 2; in dsi_dphy_timing_calc_clk_zero() 46 temp = (timing->hs_rqst + timing->clk_prepare + clk_z) & 0x7; in dsi_dphy_timing_calc_clk_zero() 47 timing->clk_zero = clk_z + 8 - temp; in dsi_dphy_timing_calc_clk_zero() 62 s32 temp; in msm_dsi_dphy_timing_calc() local 74 temp = lpx / ui; in msm_dsi_dphy_timing_calc() 75 if (temp & 0x1) in msm_dsi_dphy_timing_calc() 76 timing->hs_rqst = temp; in msm_dsi_dphy_timing_calc() 78 timing->hs_rqst = max_t(s32, 0, temp - 2); in msm_dsi_dphy_timing_calc() [all …]
|
/drivers/scsi/aic7xxx/ |
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 …]
|
/drivers/i2c/busses/ |
D | i2c-imx-lpi2c.c | 120 unsigned int temp; in lpi2c_imx_bus_busy() local 123 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy() 126 if (temp & MSR_ALF) { in lpi2c_imx_bus_busy() 127 writel(temp, lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy() 131 if (temp & (MSR_BBF | MSR_MBF)) in lpi2c_imx_bus_busy() 166 unsigned int temp; in lpi2c_imx_start() local 168 temp = readl(lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_start() 169 temp |= MCR_RRF | MCR_RTF; in lpi2c_imx_start() 170 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_start() 173 temp = i2c_8bit_addr_from_msg(msgs) | (GEN_START << 8); in lpi2c_imx_start() [all …]
|
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() 185 pci_read_config_byte(ALI15X3_dev, SMBCOM, &temp); in ali15x3_setup() 186 if ((temp & 1) == 0) { in ali15x3_setup() 188 pci_write_config_byte(ALI15X3_dev, SMBCOM, temp | 0x01); in ali15x3_setup() 192 pci_read_config_byte(ALI15X3_dev, SMBHSTCFG, &temp); in ali15x3_setup() 193 if ((temp & 1) == 0) { in ali15x3_setup() [all …]
|
D | i2c-ali1535.c | 131 unsigned char temp; in ali1535_setup() local 175 pci_read_config_byte(dev, SMBCFG, &temp); in ali1535_setup() 176 if ((temp & ALI1535_SMBIO_EN) == 0) { in ali1535_setup() 183 pci_read_config_byte(dev, SMBHSTCFG, &temp); in ali1535_setup() 184 if ((temp & 1) == 0) { in ali1535_setup() 200 pci_read_config_byte(dev, SMBREV, &temp); in ali1535_setup() 201 dev_dbg(&dev->dev, "SMBREV = 0x%X\n", temp); in ali1535_setup() 214 int temp; in ali1535_transaction() local 224 temp = inb_p(SMBHSTSTS); in ali1535_transaction() 228 if (temp & ALI1535_STS_BUSY) { in ali1535_transaction() [all …]
|
D | i2c-isch.c | 60 int temp; in sch_transaction() local 70 temp = inb(SMBHSTSTS) & 0x0f; in sch_transaction() 71 if (temp) { in sch_transaction() 73 if (temp & 0x01) { in sch_transaction() 75 "Clear...\n", temp); in sch_transaction() 77 if (temp & 0x06) { in sch_transaction() 79 "Resetting...\n", temp); in sch_transaction() 81 outb(temp, SMBHSTSTS); in sch_transaction() 82 temp = inb(SMBHSTSTS) & 0x0f; in sch_transaction() 83 if (temp) { in sch_transaction() [all …]
|
D | i2c-imx.c | 304 unsigned int temp; in i2c_imx_clear_irq() local 311 temp = ~i2c_imx->hwdata->i2sr_clr_opcode ^ bits; in i2c_imx_clear_irq() 312 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2SR); in i2c_imx_clear_irq() 461 unsigned int temp; in i2c_imx_bus_busy() local 464 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_bus_busy() 467 if (temp & I2SR_IAL) { in i2c_imx_bus_busy() 472 if (for_busy && (temp & I2SR_IBB)) { in i2c_imx_bus_busy() 476 if (!for_busy && !(temp & I2SR_IBB)) { in i2c_imx_bus_busy() 605 unsigned int temp = 0; in i2c_imx_start() local 620 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_start() [all …]
|
/drivers/video/fbdev/sis/ |
D | init301.c | 613 unsigned short modeflag,index,temp,backupindex; in SiS_GetRatePtr() local 652 temp = LCDRefreshIndex[SiS_GetBIOSLCDResInfo(SiS_Pr)]; in SiS_GetRatePtr() 653 if(index > temp) index = temp; in SiS_GetRatePtr() 679 temp = SiS_Pr->SiS_RefIndex[RRTI + i].Ext_InfoFlag; in SiS_GetRatePtr() 680 temp &= ModeTypeMask; in SiS_GetRatePtr() 681 if(temp < SiS_Pr->SiS_ModeType) break; in SiS_GetRatePtr() 688 temp = SiS_Pr->SiS_RefIndex[RRTI + i - 1].Ext_InfoFlag; in SiS_GetRatePtr() 689 if(temp & InterlaceMode) i++; in SiS_GetRatePtr() 730 unsigned short temp,temp1; in SiS_CR36BIOSWord23b() local 734 temp = 1 << ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4) & 0x0f); in SiS_CR36BIOSWord23b() [all …]
|
/drivers/char/agp/ |
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 …]
|
/drivers/gpu/drm/gma500/ |
D | oaktrail_hdmi_i2c.c | 79 u32 temp; in hdmi_i2c_irq_enable() local 81 temp = HDMI_READ(HDMI_HICR); in hdmi_i2c_irq_enable() 82 temp |= (HDMI_INTR_I2C_ERROR | HDMI_INTR_I2C_FULL | HDMI_INTR_I2C_DONE); in hdmi_i2c_irq_enable() 83 HDMI_WRITE(HDMI_HICR, temp); in hdmi_i2c_irq_enable() 97 u32 temp; in xfer_read() local 105 temp = ((pmsg->len) << 20) | HI2C_EDID_READ | HI2C_ENABLE_TRANSACTION; in xfer_read() 106 HDMI_WRITE(HDMI_HI2CHCR, temp); in xfer_read() 180 u32 temp; in hdmi_i2c_read() local 185 temp = HDMI_READ(HDMI_HI2CRDB0 + (i * 4)); in hdmi_i2c_read() 186 memcpy(buf + (offset + i * 4), &temp, 4); in hdmi_i2c_read() [all …]
|
/drivers/hwmon/ |
D | adt7462.c | 199 u8 temp[ADT7462_TEMP_COUNT]; member 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 835 if (kstrtol(buf, 10, &temp) || !temp_enabled(data, attr->index)) in temp_max_store() [all …]
|
D | tmp108.c | 92 u32 attr, int channel, long *temp) in tmp108_read() argument 107 *temp = 4000; in tmp108_read() 110 *temp = 1000; in tmp108_read() 113 *temp = 250; in tmp108_read() 116 *temp = 63; in tmp108_read() 135 *temp = tmp108_temp_reg_to_mC(regval); in tmp108_read() 143 *temp = tmp108_temp_reg_to_mC(regval); in tmp108_read() 150 *temp = !!(regval & (attr == hwmon_temp_min_alarm ? in tmp108_read() 177 *temp = tmp108_temp_reg_to_mC(regval); in tmp108_read() 179 *temp += hyst; in tmp108_read() [all …]
|
D | tmp401.c | 148 u16 temp[7][3]; member 158 int temp = reg; in tmp401_register_to_temp() local 161 temp -= 64 * 256; in tmp401_register_to_temp() 163 return DIV_ROUND_CLOSEST(temp * 125, 32); in tmp401_register_to_temp() 166 static u16 tmp401_temp_to_register(long temp, u8 config, int zbits) in tmp401_temp_to_register() argument 169 temp = clamp_val(temp, -64000, 191000); in tmp401_temp_to_register() 170 temp += 64000; in tmp401_temp_to_register() 172 temp = clamp_val(temp, 0, 127000); in tmp401_temp_to_register() 174 return DIV_ROUND_CLOSEST(temp * (1 << (8 - zbits)), 1000) << zbits; in tmp401_temp_to_register() 200 data->temp[j][i] = j == 3 ? val << 8 : val; in tmp401_update_device_reg16() [all …]
|
/drivers/gpio/ |
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() 115 u8 temp; in amd_gpio_get() local 117 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_get() 119 dev_dbg(&agp->pdev->dev, "Getting gpio %d, reg=%02x\n", offset, temp); in amd_gpio_get() 121 return (temp & AMD_GPIO_RTIN) ? 1 : 0; in amd_gpio_get() 127 u8 temp; in amd_gpio_dirout() local [all …]
|
/drivers/media/pci/cx23885/ |
D | cx23885-f300.c | 77 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 …]
|