/drivers/usb/host/ |
D | xhci-dbg.c | 31 u32 temp; in xhci_dbg_regs() local 35 temp = readl(&xhci->cap_regs->hc_capbase); in xhci_dbg_regs() 37 &xhci->cap_regs->hc_capbase, temp); in xhci_dbg_regs() 39 (unsigned int) HC_LENGTH(temp)); in xhci_dbg_regs() 41 (unsigned int) HC_VERSION(temp)); in xhci_dbg_regs() 45 temp = readl(&xhci->cap_regs->run_regs_off); in xhci_dbg_regs() 48 (unsigned int) temp & RTSOFF_MASK); in xhci_dbg_regs() 51 temp = readl(&xhci->cap_regs->db_off); in xhci_dbg_regs() 52 xhci_dbg(xhci, "// @%p = 0x%x DBOFF\n", &xhci->cap_regs->db_off, temp); in xhci_dbg_regs() 58 u32 temp; in xhci_print_cap_regs() local [all …]
|
D | ohci-dbg.c | 12 #define edstring(ed_type) ({ char *temp; \ 14 case PIPE_CONTROL: temp = "ctrl"; break; \ 15 case PIPE_BULK: temp = "bulk"; break; \ 16 case PIPE_INTERRUPT: temp = "intr"; break; \ 17 default: temp = "isoc"; break; \ 18 } temp;}) 103 u32 temp; in ohci_dump_status() local 105 temp = ohci_readl (controller, ®s->revision) & 0xff; in ohci_dump_status() 108 0x03 & (temp >> 4), (temp & 0x0f), in ohci_dump_status() 109 (temp & 0x0100) ? "with" : "NO", in ohci_dump_status() [all …]
|
D | ehci-dbg.c | 387 unsigned temp; in qh_lines() local 408 temp = scnprintf(next, size, in qh_lines() 422 size -= temp; in qh_lines() 423 next += temp; in qh_lines() 456 temp = scnprintf(next, size, in qh_lines() 465 size -= temp; in qh_lines() 466 next += temp; in qh_lines() 467 if (temp == size) in qh_lines() 471 temp = scnprintf(next, size, "\n"); in qh_lines() 472 size -= temp; in qh_lines() [all …]
|
D | xhci-hub.c | 71 u32 temp; in xhci_create_usb3_bos_desc() local 102 temp = readl(&xhci->cap_regs->hcc_params); in xhci_create_usb3_bos_desc() 103 if (HCC_LTC(temp)) in xhci_create_usb3_bos_desc() 108 temp = readl(&xhci->cap_regs->hcs_params3); in xhci_create_usb3_bos_desc() 109 buf[12] = HCS_U1_LATENCY(temp); in xhci_create_usb3_bos_desc() 110 put_unaligned_le16(HCS_U2_LATENCY(temp), &buf[13]); in xhci_create_usb3_bos_desc() 175 u16 temp; in xhci_common_hub_descriptor() local 181 temp = 0; in xhci_common_hub_descriptor() 184 temp |= HUB_CHAR_INDV_PORT_LPSM; in xhci_common_hub_descriptor() 186 temp |= HUB_CHAR_NO_LPSM; in xhci_common_hub_descriptor() [all …]
|
D | ehci-hub.c | 164 u32 temp; in ehci_adjust_port_wakeup_flags() local 182 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags() 183 ehci_writel(ehci, temp & ~HOSTPC_PHCD, hostpc_reg); in ehci_adjust_port_wakeup_flags() 214 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags() 215 ehci_writel(ehci, temp | HOSTPC_PHCD, hostpc_reg); in ehci_adjust_port_wakeup_flags() 390 u32 temp; in ehci_bus_resume() local 440 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_bus_resume() 441 if ((temp & PORT_PE) && in ehci_bus_resume() 442 !(temp & (PORT_SUSPEND | PORT_RESUME))) { in ehci_bus_resume() 443 ehci_dbg(ehci, "Port status(0x%x) is wrong\n", temp); in ehci_bus_resume() [all …]
|
D | ehci-tegra.c | 134 u32 temp; in tegra_ehci_internal_port_reset() local 151 temp = ehci_readl(ehci, portsc_reg); in tegra_ehci_internal_port_reset() 152 temp |= PORT_RESET; in tegra_ehci_internal_port_reset() 153 ehci_writel(ehci, temp, portsc_reg); in tegra_ehci_internal_port_reset() 155 temp &= ~PORT_RESET; in tegra_ehci_internal_port_reset() 156 ehci_writel(ehci, temp, portsc_reg); in tegra_ehci_internal_port_reset() 167 temp = ehci_readl(ehci, portsc_reg); in tegra_ehci_internal_port_reset() 168 } while (!(temp & PORT_PE) && tries--); in tegra_ehci_internal_port_reset() 169 if (temp & PORT_PE) in tegra_ehci_internal_port_reset() 179 if (temp & PORT_CSC) in tegra_ehci_internal_port_reset() [all …]
|
/drivers/staging/comedi/ |
D | comedi_compat32.c | 108 } temp; in compat_chaninfo() local 119 err |= __get_user(temp.uint, &chaninfo32->subdev); in compat_chaninfo() 120 err |= __put_user(temp.uint, &chaninfo->subdev); in compat_chaninfo() 121 err |= __get_user(temp.uptr, &chaninfo32->maxdata_list); in compat_chaninfo() 122 err |= __put_user(compat_ptr(temp.uptr), &chaninfo->maxdata_list); in compat_chaninfo() 123 err |= __get_user(temp.uptr, &chaninfo32->flaglist); in compat_chaninfo() 124 err |= __put_user(compat_ptr(temp.uptr), &chaninfo->flaglist); in compat_chaninfo() 125 err |= __get_user(temp.uptr, &chaninfo32->rangelist); in compat_chaninfo() 126 err |= __put_user(compat_ptr(temp.uptr), &chaninfo->rangelist); in compat_chaninfo() 142 } temp; in compat_rangeinfo() local [all …]
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-417.c | 367 u32 temp; in mc417_register_write() local 370 temp = 0x82 | MCI_REGISTER_DATA_BYTE0 | ((value & 0x000000FF) << 8); in mc417_register_write() 371 temp = temp << 10; in mc417_register_write() 372 status = set_itvc_reg(dev, ITVC_WRITE_DIR, temp); in mc417_register_write() 375 temp = temp | (0x05 << 10); in mc417_register_write() 376 set_itvc_reg(dev, ITVC_WRITE_DIR, temp); in mc417_register_write() 379 temp = 0x82 | MCI_REGISTER_DATA_BYTE1 | (value & 0x0000FF00); in mc417_register_write() 380 temp = temp << 10; in mc417_register_write() 381 set_itvc_reg(dev, ITVC_WRITE_DIR, temp); in mc417_register_write() 382 temp = temp | (0x05 << 10); in mc417_register_write() [all …]
|
/drivers/thermal/ |
D | thermal_hwmon.c | 76 struct thermal_hwmon_temp *temp in temp_input_show() local 79 struct thermal_zone_device *tz = temp->tz; in temp_input_show() 94 struct thermal_hwmon_temp *temp in temp_crit_show() local 97 struct thermal_zone_device *tz = temp->tz; in temp_crit_show() 130 struct thermal_hwmon_temp *temp; in thermal_hwmon_lookup_temp() local 133 list_for_each_entry(temp, &hwmon->tz_list, hwmon_node) in thermal_hwmon_lookup_temp() 134 if (temp->tz == tz) { in thermal_hwmon_lookup_temp() 136 return temp; in thermal_hwmon_lookup_temp() 145 int temp; in thermal_zone_crit_temp_valid() local 146 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 | 20 u32 temp; in bdc_dbg_regs() local 23 temp = bdc_readl(bdc->regs, BDC_BDCCFG0); in bdc_dbg_regs() 24 dev_vdbg(bdc->dev, "bdccfg0:0x%08x\n", temp); in bdc_dbg_regs() 25 temp = bdc_readl(bdc->regs, BDC_BDCCFG1); in bdc_dbg_regs() 26 dev_vdbg(bdc->dev, "bdccfg1:0x%08x\n", temp); in bdc_dbg_regs() 27 temp = bdc_readl(bdc->regs, BDC_BDCCAP0); in bdc_dbg_regs() 28 dev_vdbg(bdc->dev, "bdccap0:0x%08x\n", temp); in bdc_dbg_regs() 29 temp = bdc_readl(bdc->regs, BDC_BDCCAP1); in bdc_dbg_regs() 30 dev_vdbg(bdc->dev, "bdccap1:0x%08x\n", temp); in bdc_dbg_regs() 31 temp = bdc_readl(bdc->regs, BDC_USPC); in bdc_dbg_regs() [all …]
|
D | bdc_core.c | 61 u32 temp; in bdc_stop() local 64 temp = bdc_readl(bdc->regs, BDC_BDCSC); in bdc_stop() 66 if (BDC_CSTS(temp) == BDC_HLT) { in bdc_stop() 70 temp &= ~BDC_COP_MASK; in bdc_stop() 71 temp |= BDC_COS|BDC_COP_STP; in bdc_stop() 72 bdc_writel(bdc->regs, BDC_BDCSC, temp); in bdc_stop() 84 u32 temp; in bdc_reset() local 93 temp = bdc_readl(bdc->regs, BDC_BDCSC); in bdc_reset() 94 temp &= ~BDC_COP_MASK; in bdc_reset() 95 temp |= BDC_COS|BDC_COP_RST; in bdc_reset() [all …]
|
/drivers/staging/xgifb/ |
D | vb_setmode.c | 52 unsigned char temp; in InitTo330Pointer() local 60 temp = xgifb_reg_get(pVBInfo->P3c4, 0x3B); in InitTo330Pointer() 62 if (((temp & 0x88) == 0x80) || ((temp & 0x88) == 0x08)) in InitTo330Pointer() 249 unsigned short sync, temp; in XGI_SetSync() local 254 temp = 0x2F; in XGI_SetSync() 255 temp |= sync; in XGI_SetSync() 256 outb(temp, pVBInfo->P3c2); /* Set Misc(3c2) */ in XGI_SetSync() 584 unsigned char temp; in XGI_SetXG27FPBits() local 587 temp = xgifb_reg_get(pVBInfo->P3d4, 0x37); in XGI_SetXG27FPBits() 588 temp = (temp & 3) << 6; in XGI_SetXG27FPBits() [all …]
|
D | vb_util.h | 19 u8 temp; in xgifb_reg_and_or() local 21 temp = xgifb_reg_get(port, index); in xgifb_reg_and_or() 22 temp = (u8)((temp & data_and) | data_or); in xgifb_reg_and_or() 23 xgifb_reg_set(port, index, temp); in xgifb_reg_and_or() 29 u8 temp; in xgifb_reg_and() local 31 temp = xgifb_reg_get(port, index); in xgifb_reg_and() 32 temp = (u8)(temp & data_and); in xgifb_reg_and() 33 xgifb_reg_set(port, index, temp); in xgifb_reg_and() 39 u8 temp; in xgifb_reg_or() local 41 temp = xgifb_reg_get(port, index); in xgifb_reg_or() [all …]
|
/drivers/scsi/aic7xxx/ |
D | aic7xxx_93cx6.c | 113 uint8_t temp; in send_seeprom_cmd() local 117 temp = sd->sd_MS ^ sd->sd_CS; in send_seeprom_cmd() 118 SEEPROM_OUTB(sd, temp ^ sd->sd_CK); in send_seeprom_cmd() 123 temp ^= sd->sd_DO; in send_seeprom_cmd() 124 SEEPROM_OUTB(sd, temp); in send_seeprom_cmd() 126 SEEPROM_OUTB(sd, temp ^ sd->sd_CK); in send_seeprom_cmd() 129 temp ^= sd->sd_DO; in send_seeprom_cmd() 139 uint8_t temp; in reset_seeprom() local 141 temp = sd->sd_MS; in reset_seeprom() 142 SEEPROM_OUTB(sd, temp); in reset_seeprom() [all …]
|
/drivers/i2c/busses/ |
D | i2c-imx-lpi2c.c | 133 unsigned int temp; in lpi2c_imx_bus_busy() local 136 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy() 139 if (temp & MSR_ALF) { in lpi2c_imx_bus_busy() 140 writel(temp, lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy() 144 if (temp & (MSR_BBF | MSR_MBF)) in lpi2c_imx_bus_busy() 179 unsigned int temp; in lpi2c_imx_start() local 182 temp = readl(lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_start() 183 temp |= MCR_RRF | MCR_RTF; in lpi2c_imx_start() 184 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_start() 188 temp = (msgs->addr << 1 | read) | (GEN_START << 8); in lpi2c_imx_start() [all …]
|
D | i2c-ali15x3.c | 132 unsigned char temp; in ali15x3_setup() local 145 pci_read_config_byte(ALI15X3_dev, SMBATPC, &temp); in ali15x3_setup() 146 if (temp & ALI15X3_LOCK) { in ali15x3_setup() 147 temp &= ~ALI15X3_LOCK; in ali15x3_setup() 148 pci_write_config_byte(ALI15X3_dev, SMBATPC, temp); in ali15x3_setup() 193 pci_read_config_byte(ALI15X3_dev, SMBCOM, &temp); in ali15x3_setup() 194 if ((temp & 1) == 0) { in ali15x3_setup() 196 pci_write_config_byte(ALI15X3_dev, SMBCOM, temp | 0x01); in ali15x3_setup() 200 pci_read_config_byte(ALI15X3_dev, SMBHSTCFG, &temp); in ali15x3_setup() 201 if ((temp & 1) == 0) { in ali15x3_setup() [all …]
|
D | i2c-imx.c | 418 unsigned int temp; in i2c_imx_bus_busy() local 423 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_bus_busy() 426 if (temp & I2SR_IAL) { in i2c_imx_bus_busy() 427 temp &= ~I2SR_IAL; in i2c_imx_bus_busy() 428 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2SR); in i2c_imx_bus_busy() 432 if (for_busy && (temp & I2SR_IBB)) in i2c_imx_bus_busy() 434 if (!for_busy && !(temp & I2SR_IBB)) in i2c_imx_bus_busy() 516 unsigned int temp = 0; in i2c_imx_start() local 532 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_start() 533 temp |= I2CR_MSTA; in i2c_imx_start() [all …]
|
D | i2c-ali1535.c | 140 unsigned char temp; in ali1535_setup() local 184 pci_read_config_byte(dev, SMBCFG, &temp); in ali1535_setup() 185 if ((temp & ALI1535_SMBIO_EN) == 0) { in ali1535_setup() 192 pci_read_config_byte(dev, SMBHSTCFG, &temp); in ali1535_setup() 193 if ((temp & 1) == 0) { in ali1535_setup() 209 pci_read_config_byte(dev, SMBREV, &temp); in ali1535_setup() 210 dev_dbg(&dev->dev, "SMBREV = 0x%X\n", temp); in ali1535_setup() 223 int temp; in ali1535_transaction() local 233 temp = inb_p(SMBHSTSTS); in ali1535_transaction() 237 if (temp & ALI1535_STS_BUSY) { in ali1535_transaction() [all …]
|
D | i2c-isch.c | 68 int temp; in sch_transaction() local 78 temp = inb(SMBHSTSTS) & 0x0f; in sch_transaction() 79 if (temp) { in sch_transaction() 81 if (temp & 0x01) { in sch_transaction() 83 "Clear...\n", temp); in sch_transaction() 85 if (temp & 0x06) { in sch_transaction() 87 "Resetting...\n", temp); in sch_transaction() 89 outb(temp, SMBHSTSTS); in sch_transaction() 90 temp = inb(SMBHSTSTS) & 0x0f; in sch_transaction() 91 if (temp) { in sch_transaction() [all …]
|
/drivers/video/fbdev/sis/ |
D | init301.c | 287 unsigned short modeflag,index,temp,backupindex; in SiS_GetRatePtr() local 326 temp = LCDRefreshIndex[SiS_GetBIOSLCDResInfo(SiS_Pr)]; in SiS_GetRatePtr() 327 if(index > temp) index = temp; in SiS_GetRatePtr() 353 temp = SiS_Pr->SiS_RefIndex[RRTI + i].Ext_InfoFlag; in SiS_GetRatePtr() 354 temp &= ModeTypeMask; in SiS_GetRatePtr() 355 if(temp < SiS_Pr->SiS_ModeType) break; in SiS_GetRatePtr() 362 temp = SiS_Pr->SiS_RefIndex[RRTI + i - 1].Ext_InfoFlag; in SiS_GetRatePtr() 363 if(temp & InterlaceMode) i++; in SiS_GetRatePtr() 404 unsigned short temp,temp1; in SiS_CR36BIOSWord23b() local 408 temp = 1 << ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4) & 0x0f); in SiS_CR36BIOSWord23b() [all …]
|
/drivers/gpu/drm/msm/dsi/phy/ |
D | dsi_phy.c | 38 s32 temp; in dsi_dphy_timing_calc_clk_zero() local 41 temp = 300 * coeff - ((timing->clk_prepare >> 1) + 1) * 2 * ui; in dsi_dphy_timing_calc_clk_zero() 42 tmin = S_DIV_ROUND_UP(temp, ui) - 2; in dsi_dphy_timing_calc_clk_zero() 52 temp = (timing->hs_rqst + timing->clk_prepare + clk_z) & 0x7; in dsi_dphy_timing_calc_clk_zero() 53 timing->clk_zero = clk_z + 8 - temp; in dsi_dphy_timing_calc_clk_zero() 68 s32 temp; in msm_dsi_dphy_timing_calc() local 80 temp = lpx / ui; in msm_dsi_dphy_timing_calc() 81 if (temp & 0x1) in msm_dsi_dphy_timing_calc() 82 timing->hs_rqst = temp; in msm_dsi_dphy_timing_calc() 84 timing->hs_rqst = max_t(s32, 0, temp - 2); in msm_dsi_dphy_timing_calc() [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/soc/fsl/qe/ |
D | qe_ic.c | 204 u32 temp; in qe_ic_unmask_irq() local 208 temp = qe_ic_read(qe_ic->regs, qe_ic_info[src].mask_reg); in qe_ic_unmask_irq() 210 temp | qe_ic_info[src].mask); in qe_ic_unmask_irq() 220 u32 temp; in qe_ic_mask_irq() local 224 temp = qe_ic_read(qe_ic->regs, qe_ic_info[src].mask_reg); in qe_ic_mask_irq() 226 temp & ~qe_ic_info[src].mask); in qe_ic_mask_irq() 326 u32 temp = 0, ret, high_active = 0; in qe_ic_init() local 359 temp |= CICR_GWCC; in qe_ic_init() 361 temp |= CICR_GXCC; in qe_ic_init() 363 temp |= CICR_GYCC; in qe_ic_init() [all …]
|
/drivers/gpio/ |
D | gpio-amd8111.c | 103 u8 temp; in amd_gpio_set() local 107 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set() 108 …temp = (temp & AMD_GPIO_DEBOUNCE) | AMD_GPIO_MODE_OUT | (value ? AMD_GPIO_X_OUT_HI : AMD_GPIO_X_OU… in amd_gpio_set() 109 iowrite8(temp, agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set() 112 dev_dbg(&agp->pdev->dev, "Setting gpio %d, value %d, reg=%02x\n", offset, !!value, temp); in amd_gpio_set() 118 u8 temp; in amd_gpio_get() local 120 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_get() 122 dev_dbg(&agp->pdev->dev, "Getting gpio %d, reg=%02x\n", offset, temp); in amd_gpio_get() 124 return (temp & AMD_GPIO_RTIN) ? 1 : 0; in amd_gpio_get() 130 u8 temp; in amd_gpio_dirout() local [all …]
|