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()
2705 u32 temp, hcc_params; in oxu_run() local
2749 temp = HC_VERSION(readl(&oxu->caps->hc_capbase)); in oxu_run()
2752 temp >> 8, temp & 0xff, DRIVER_VERSION, in oxu_run()
3080 u32 temp, mask, status = 0; in oxu_hub_status_data() local
3112 temp = readl(&oxu->regs->port_status[i]); in oxu_hub_status_data()
3121 if (!(temp & PORT_CONNECT)) in oxu_hub_status_data()
3123 if ((temp & mask) != 0 || ((temp & PORT_RESUME) != 0 && in oxu_hub_status_data()
3159 u32 temp, status; in oxu_hub_control() local
3187 temp = readl(status_reg); in oxu_hub_control()
3198 writel(temp & ~PORT_PE, status_reg); in oxu_hub_control()
3201 writel((temp & ~PORT_RWC_BITS) | PORT_PEC, status_reg); in oxu_hub_control()
3204 if (temp & PORT_RESET) in oxu_hub_control()
3206 if (temp & PORT_SUSPEND) { in oxu_hub_control()
3207 if ((temp & PORT_PE) == 0) in oxu_hub_control()
3210 temp &= ~(PORT_RWC_BITS | PORT_WAKE_BITS); in oxu_hub_control()
3211 writel(temp | PORT_RESUME, status_reg); in oxu_hub_control()
3221 writel(temp & ~(PORT_RWC_BITS | PORT_POWER), in oxu_hub_control()
3225 writel((temp & ~PORT_RWC_BITS) | PORT_CSC, status_reg); in oxu_hub_control()
3228 writel((temp & ~PORT_RWC_BITS) | PORT_OCC, status_reg); in oxu_hub_control()
3251 temp = readl(status_reg); in oxu_hub_control()
3254 if (temp & PORT_CSC) in oxu_hub_control()
3256 if (temp & PORT_PEC) in oxu_hub_control()
3258 if ((temp & PORT_OCC) && !ignore_oc) in oxu_hub_control()
3262 if (temp & PORT_RESUME) { in oxu_hub_control()
3281 temp = readl(status_reg); in oxu_hub_control()
3282 writel(temp & ~(PORT_RWC_BITS | PORT_RESUME), in oxu_hub_control()
3292 temp &= ~(PORT_SUSPEND|PORT_RESUME|(3<<10)); in oxu_hub_control()
3297 if ((temp & PORT_RESET) in oxu_hub_control()
3304 writel(temp & ~(PORT_RWC_BITS | PORT_RESET), in oxu_hub_control()
3318 temp = check_reset_complete(oxu, wIndex, status_reg, in oxu_hub_control()
3323 if ((temp & PORT_CONNECT) && in oxu_hub_control()
3325 temp &= ~PORT_RWC_BITS; in oxu_hub_control()
3326 temp |= PORT_OWNER; in oxu_hub_control()
3327 writel(temp, status_reg); in oxu_hub_control()
3329 temp = readl(status_reg); in oxu_hub_control()
3338 if (temp & PORT_CONNECT) { in oxu_hub_control()
3341 status |= oxu_port_speed(oxu, temp); in oxu_hub_control()
3343 if (temp & PORT_PE) in oxu_hub_control()
3345 if (temp & (PORT_SUSPEND|PORT_RESUME)) in oxu_hub_control()
3347 if (temp & PORT_OC) in oxu_hub_control()
3349 if (temp & PORT_RESET) in oxu_hub_control()
3351 if (temp & PORT_POWER) in oxu_hub_control()
3357 dbg_port(oxu, "GetStatus", wIndex + 1, temp); in oxu_hub_control()
3376 temp = readl(status_reg); in oxu_hub_control()
3377 if (temp & PORT_OWNER) in oxu_hub_control()
3380 temp &= ~PORT_RWC_BITS; in oxu_hub_control()
3383 if ((temp & PORT_PE) == 0 in oxu_hub_control()
3384 || (temp & PORT_RESET) != 0) in oxu_hub_control()
3387 temp |= PORT_WAKE_BITS; in oxu_hub_control()
3388 writel(temp | PORT_SUSPEND, status_reg); in oxu_hub_control()
3392 writel(temp | PORT_POWER, status_reg); in oxu_hub_control()
3395 if (temp & PORT_RESUME) in oxu_hub_control()
3402 temp |= PORT_RESET; in oxu_hub_control()
3403 temp &= ~PORT_PE; in oxu_hub_control()
3411 writel(temp, status_reg); in oxu_hub_control()
3425 temp |= selector << 16; in oxu_hub_control()
3426 writel(temp, status_reg); in oxu_hub_control()
3522 u32 temp; in oxu_bus_resume() local
3535 temp = readl(&oxu->regs->intr_enable); in oxu_bus_resume()
3536 oxu_dbg(oxu, "resume root hub%s\n", temp ? "" : " after power loss"); in oxu_bus_resume()
3558 temp = readl(&oxu->regs->port_status[i]); in oxu_bus_resume()
3559 temp &= ~(PORT_RWC_BITS in oxu_bus_resume()
3561 if (test_bit(i, &oxu->bus_suspended) && (temp & PORT_SUSPEND)) { in oxu_bus_resume()
3563 temp |= PORT_RESUME; in oxu_bus_resume()
3565 writel(temp, &oxu->regs->port_status[i]); in oxu_bus_resume()
3570 temp = readl(&oxu->regs->port_status[i]); in oxu_bus_resume()
3571 if (test_bit(i, &oxu->bus_suspended) && (temp & PORT_SUSPEND)) { in oxu_bus_resume()
3572 temp &= ~(PORT_RWC_BITS | PORT_RESUME); in oxu_bus_resume()
3573 writel(temp, &oxu->regs->port_status[i]); in oxu_bus_resume()
3580 temp = 0; in oxu_bus_resume()
3582 temp |= CMD_ASE; in oxu_bus_resume()
3584 temp |= CMD_PSE; in oxu_bus_resume()
3585 if (temp) { in oxu_bus_resume()
3586 oxu->command |= temp; in oxu_bus_resume()