Lines Matching refs:temp

342 	u32	temp = readl(&oxu->regs->status);  in ehci_halt()  local
347 if ((temp & STS_HALT) != 0) in ehci_halt()
350 temp = readl(&oxu->regs->command); in ehci_halt()
351 temp &= ~CMD_RUN; in ehci_halt()
352 writel(temp, &oxu->regs->command); in ehci_halt()
394 u32 temp; in ehci_quiesce() local
402 temp = readl(&oxu->regs->command) << 10; in ehci_quiesce()
403 temp &= STS_ASS | STS_PSS; in ehci_quiesce()
405 temp, 16 * 125) != 0) { in ehci_quiesce()
411 temp = readl(&oxu->regs->command); in ehci_quiesce()
412 temp &= ~(CMD_ASE | CMD_IAAD | CMD_PSE); in ehci_quiesce()
413 writel(temp, &oxu->regs->command); in ehci_quiesce()
446 u16 temp; in ehci_hub_descriptor() local
453 temp = 1 + (ports / 8); in ehci_hub_descriptor()
454 desc->bDescLength = 7 + 2 * temp; in ehci_hub_descriptor()
457 memset(&desc->u.hs.DeviceRemovable[0], 0, temp); in ehci_hub_descriptor()
458 memset(&desc->u.hs.DeviceRemovable[temp], 0xff, temp); in ehci_hub_descriptor()
460 temp = HUB_CHAR_INDV_PORT_OCPM; /* per-port overcurrent reporting */ in ehci_hub_descriptor()
462 temp |= HUB_CHAR_INDV_PORT_LPSM; /* per-port power control */ in ehci_hub_descriptor()
464 temp |= HUB_CHAR_NO_LPSM; /* no power switching */ in ehci_hub_descriptor()
465 desc->wHubCharacteristics = (__force __u16)cpu_to_le16(temp); in ehci_hub_descriptor()
1180 struct list_head *entry, *temp; in qtd_list_free() local
1182 list_for_each_safe(entry, temp, qtd_list) { in qtd_list_free()
1772 int temp; in scan_async() local
1781 temp = qh_completions(oxu, qh); in scan_async()
1783 if (temp != 0) in scan_async()
2297 union ehci_shadow temp; in scan_periodic() local
2304 temp.qh = qh_get(q.qh); in scan_periodic()
2307 modified = qh_completions(oxu, temp.qh); in scan_periodic()
2308 if (unlikely(list_empty(&temp.qh->qtd_list))) in scan_periodic()
2309 intr_deschedule(oxu, temp.qh); in scan_periodic()
2310 qh_put(temp.qh); in scan_periodic()
2596 u32 temp; in oxu_hcd_init() local
2642 temp = 1 << (16 + log2_irq_thresh); in oxu_hcd_init()
2653 temp |= CMD_PARK; in oxu_hcd_init()
2654 temp |= park << 8; in oxu_hcd_init()
2660 temp &= ~(3 << 2); in oxu_hcd_init()
2661 temp |= (EHCI_TUNE_FLS << 2); in oxu_hcd_init()
2663 oxu->command = temp; in oxu_hcd_init()
2710 u32 temp, hcc_params; in oxu_run() local
2754 temp = HC_VERSION(readl(&oxu->caps->hc_capbase)); in oxu_run()
2757 temp >> 8, temp & 0xff, DRIVER_VERSION, in oxu_run()
3085 u32 temp, mask, status = 0; in oxu_hub_status_data() local
3117 temp = readl(&oxu->regs->port_status[i]); in oxu_hub_status_data()
3126 if (!(temp & PORT_CONNECT)) in oxu_hub_status_data()
3128 if ((temp & mask) != 0 || ((temp & PORT_RESUME) != 0 && in oxu_hub_status_data()
3164 u32 temp, status; in oxu_hub_control() local
3192 temp = readl(status_reg); in oxu_hub_control()
3203 writel(temp & ~PORT_PE, status_reg); in oxu_hub_control()
3206 writel((temp & ~PORT_RWC_BITS) | PORT_PEC, status_reg); in oxu_hub_control()
3209 if (temp & PORT_RESET) in oxu_hub_control()
3211 if (temp & PORT_SUSPEND) { in oxu_hub_control()
3212 if ((temp & PORT_PE) == 0) in oxu_hub_control()
3215 temp &= ~(PORT_RWC_BITS | PORT_WAKE_BITS); in oxu_hub_control()
3216 writel(temp | PORT_RESUME, status_reg); in oxu_hub_control()
3226 writel(temp & ~(PORT_RWC_BITS | PORT_POWER), in oxu_hub_control()
3230 writel((temp & ~PORT_RWC_BITS) | PORT_CSC, status_reg); in oxu_hub_control()
3233 writel((temp & ~PORT_RWC_BITS) | PORT_OCC, status_reg); in oxu_hub_control()
3256 temp = readl(status_reg); in oxu_hub_control()
3259 if (temp & PORT_CSC) in oxu_hub_control()
3261 if (temp & PORT_PEC) in oxu_hub_control()
3263 if ((temp & PORT_OCC) && !ignore_oc) in oxu_hub_control()
3267 if (temp & PORT_RESUME) { in oxu_hub_control()
3286 temp = readl(status_reg); in oxu_hub_control()
3287 writel(temp & ~(PORT_RWC_BITS | PORT_RESUME), in oxu_hub_control()
3297 temp &= ~(PORT_SUSPEND|PORT_RESUME|(3<<10)); in oxu_hub_control()
3302 if ((temp & PORT_RESET) in oxu_hub_control()
3309 writel(temp & ~(PORT_RWC_BITS | PORT_RESET), in oxu_hub_control()
3323 temp = check_reset_complete(oxu, wIndex, status_reg, in oxu_hub_control()
3328 if ((temp & PORT_CONNECT) && in oxu_hub_control()
3330 temp &= ~PORT_RWC_BITS; in oxu_hub_control()
3331 temp |= PORT_OWNER; in oxu_hub_control()
3332 writel(temp, status_reg); in oxu_hub_control()
3334 temp = readl(status_reg); in oxu_hub_control()
3343 if (temp & PORT_CONNECT) { in oxu_hub_control()
3346 status |= oxu_port_speed(oxu, temp); in oxu_hub_control()
3348 if (temp & PORT_PE) in oxu_hub_control()
3350 if (temp & (PORT_SUSPEND|PORT_RESUME)) in oxu_hub_control()
3352 if (temp & PORT_OC) in oxu_hub_control()
3354 if (temp & PORT_RESET) in oxu_hub_control()
3356 if (temp & PORT_POWER) in oxu_hub_control()
3362 dbg_port(oxu, "GetStatus", wIndex + 1, temp); in oxu_hub_control()
3381 temp = readl(status_reg); in oxu_hub_control()
3382 if (temp & PORT_OWNER) in oxu_hub_control()
3385 temp &= ~PORT_RWC_BITS; in oxu_hub_control()
3388 if ((temp & PORT_PE) == 0 in oxu_hub_control()
3389 || (temp & PORT_RESET) != 0) in oxu_hub_control()
3392 temp |= PORT_WAKE_BITS; in oxu_hub_control()
3393 writel(temp | PORT_SUSPEND, status_reg); in oxu_hub_control()
3397 writel(temp | PORT_POWER, status_reg); in oxu_hub_control()
3400 if (temp & PORT_RESUME) in oxu_hub_control()
3407 temp |= PORT_RESET; in oxu_hub_control()
3408 temp &= ~PORT_PE; in oxu_hub_control()
3416 writel(temp, status_reg); in oxu_hub_control()
3430 temp |= selector << 16; in oxu_hub_control()
3431 writel(temp, status_reg); in oxu_hub_control()
3527 u32 temp; in oxu_bus_resume() local
3540 temp = readl(&oxu->regs->intr_enable); in oxu_bus_resume()
3541 oxu_dbg(oxu, "resume root hub%s\n", temp ? "" : " after power loss"); in oxu_bus_resume()
3563 temp = readl(&oxu->regs->port_status[i]); in oxu_bus_resume()
3564 temp &= ~(PORT_RWC_BITS in oxu_bus_resume()
3566 if (test_bit(i, &oxu->bus_suspended) && (temp & PORT_SUSPEND)) { in oxu_bus_resume()
3568 temp |= PORT_RESUME; in oxu_bus_resume()
3570 writel(temp, &oxu->regs->port_status[i]); in oxu_bus_resume()
3575 temp = readl(&oxu->regs->port_status[i]); in oxu_bus_resume()
3576 if (test_bit(i, &oxu->bus_suspended) && (temp & PORT_SUSPEND)) { in oxu_bus_resume()
3577 temp &= ~(PORT_RWC_BITS | PORT_RESUME); in oxu_bus_resume()
3578 writel(temp, &oxu->regs->port_status[i]); in oxu_bus_resume()
3585 temp = 0; in oxu_bus_resume()
3587 temp |= CMD_ASE; in oxu_bus_resume()
3589 temp |= CMD_PSE; in oxu_bus_resume()
3590 if (temp) { in oxu_bus_resume()
3591 oxu->command |= temp; in oxu_bus_resume()