Lines Matching refs:tmp
2230 u32 tmp; in proc_otg_show() local
2234 tmp = omap_readl(OTG_REV); in proc_otg_show()
2238 tmp >> 4, tmp & 0xf, ctrl_name, trans); in proc_otg_show()
2239 tmp = omap_readw(OTG_SYSCON_1); in proc_otg_show()
2241 FOURBITS "\n", tmp, in proc_otg_show()
2242 trx_mode(USB2_TRX_MODE(tmp), trans & CONF_USB2_UNI_R), in proc_otg_show()
2243 trx_mode(USB1_TRX_MODE(tmp), trans & CONF_USB1_UNI_R), in proc_otg_show()
2244 (USB0_TRX_MODE(tmp) == 0 && !cpu_is_omap1710()) in proc_otg_show()
2246 : trx_mode(USB0_TRX_MODE(tmp), 1), in proc_otg_show()
2247 (tmp & OTG_IDLE_EN) ? " !otg" : "", in proc_otg_show()
2248 (tmp & HST_IDLE_EN) ? " !host" : "", in proc_otg_show()
2249 (tmp & DEV_IDLE_EN) ? " !dev" : "", in proc_otg_show()
2250 (tmp & OTG_RESET_DONE) ? " reset_done" : " reset_active"); in proc_otg_show()
2251 tmp = omap_readl(OTG_SYSCON_2); in proc_otg_show()
2253 " b_ase_brst=%d hmc=%d\n", tmp, in proc_otg_show()
2254 (tmp & OTG_EN) ? " otg_en" : "", in proc_otg_show()
2255 (tmp & USBX_SYNCHRO) ? " synchro" : "", in proc_otg_show()
2257 (tmp & SRP_DATA) ? " srp_data" : "", in proc_otg_show()
2258 (tmp & SRP_VBUS) ? " srp_vbus" : "", in proc_otg_show()
2259 (tmp & OTG_PADEN) ? " otg_paden" : "", in proc_otg_show()
2260 (tmp & HMC_PADEN) ? " hmc_paden" : "", in proc_otg_show()
2261 (tmp & UHOST_EN) ? " uhost_en" : "", in proc_otg_show()
2262 (tmp & HMC_TLLSPEED) ? " tllspeed" : "", in proc_otg_show()
2263 (tmp & HMC_TLLATTACH) ? " tllattach" : "", in proc_otg_show()
2264 B_ASE_BRST(tmp), in proc_otg_show()
2265 OTG_HMC(tmp)); in proc_otg_show()
2266 tmp = omap_readl(OTG_CTRL); in proc_otg_show()
2267 seq_printf(s, "otg_ctrl %06x" EIGHTBITS EIGHTBITS "%s\n", tmp, in proc_otg_show()
2268 (tmp & OTG_ASESSVLD) ? " asess" : "", in proc_otg_show()
2269 (tmp & OTG_BSESSEND) ? " bsess_end" : "", in proc_otg_show()
2270 (tmp & OTG_BSESSVLD) ? " bsess" : "", in proc_otg_show()
2271 (tmp & OTG_VBUSVLD) ? " vbus" : "", in proc_otg_show()
2272 (tmp & OTG_ID) ? " id" : "", in proc_otg_show()
2273 (tmp & OTG_DRIVER_SEL) ? " DEVICE" : " HOST", in proc_otg_show()
2274 (tmp & OTG_A_SETB_HNPEN) ? " a_setb_hnpen" : "", in proc_otg_show()
2275 (tmp & OTG_A_BUSREQ) ? " a_bus" : "", in proc_otg_show()
2276 (tmp & OTG_B_HNPEN) ? " b_hnpen" : "", in proc_otg_show()
2277 (tmp & OTG_B_BUSREQ) ? " b_bus" : "", in proc_otg_show()
2278 (tmp & OTG_BUSDROP) ? " busdrop" : "", in proc_otg_show()
2279 (tmp & OTG_PULLDOWN) ? " down" : "", in proc_otg_show()
2280 (tmp & OTG_PULLUP) ? " up" : "", in proc_otg_show()
2281 (tmp & OTG_DRV_VBUS) ? " drv" : "", in proc_otg_show()
2282 (tmp & OTG_PD_VBUS) ? " pd_vb" : "", in proc_otg_show()
2283 (tmp & OTG_PU_VBUS) ? " pu_vb" : "", in proc_otg_show()
2284 (tmp & OTG_PU_ID) ? " pu_id" : "" in proc_otg_show()
2286 tmp = omap_readw(OTG_IRQ_EN); in proc_otg_show()
2287 seq_printf(s, "otg_irq_en %04x" "\n", tmp); in proc_otg_show()
2288 tmp = omap_readw(OTG_IRQ_SRC); in proc_otg_show()
2289 seq_printf(s, "otg_irq_src %04x" "\n", tmp); in proc_otg_show()
2290 tmp = omap_readw(OTG_OUTCTRL); in proc_otg_show()
2291 seq_printf(s, "otg_outctrl %04x" "\n", tmp); in proc_otg_show()
2292 tmp = omap_readw(OTG_TEST); in proc_otg_show()
2293 seq_printf(s, "otg_test %04x" "\n", tmp); in proc_otg_show()
2299 u32 tmp; in proc_udc_show() local
2313 tmp = omap_readw(UDC_REV) & 0xff; in proc_udc_show()
2317 tmp >> 4, tmp & 0xf, in proc_udc_show()
2334 tmp = omap_readw(UDC_SYSCON1); in proc_udc_show()
2335 seq_printf(s, "\nsyscon1 %04x" EIGHTBITS "\n", tmp, in proc_udc_show()
2336 (tmp & UDC_CFG_LOCK) ? " cfg_lock" : "", in proc_udc_show()
2337 (tmp & UDC_DATA_ENDIAN) ? " data_endian" : "", in proc_udc_show()
2338 (tmp & UDC_DMA_ENDIAN) ? " dma_endian" : "", in proc_udc_show()
2339 (tmp & UDC_NAK_EN) ? " nak" : "", in proc_udc_show()
2340 (tmp & UDC_AUTODECODE_DIS) ? " autodecode_dis" : "", in proc_udc_show()
2341 (tmp & UDC_SELF_PWR) ? " self_pwr" : "", in proc_udc_show()
2342 (tmp & UDC_SOFF_DIS) ? " soff_dis" : "", in proc_udc_show()
2343 (tmp & UDC_PULLUP_EN) ? " PULLUP" : ""); in proc_udc_show()
2347 if (!(tmp & UDC_PULLUP_EN)) { in proc_udc_show()
2353 tmp = omap_readw(UDC_DEVSTAT); in proc_udc_show()
2354 seq_printf(s, "devstat %04x" EIGHTBITS "%s%s\n", tmp, in proc_udc_show()
2355 (tmp & UDC_B_HNP_ENABLE) ? " b_hnp" : "", in proc_udc_show()
2356 (tmp & UDC_A_HNP_SUPPORT) ? " a_hnp" : "", in proc_udc_show()
2357 (tmp & UDC_A_ALT_HNP_SUPPORT) ? " a_alt_hnp" : "", in proc_udc_show()
2358 (tmp & UDC_R_WK_OK) ? " r_wk_ok" : "", in proc_udc_show()
2359 (tmp & UDC_USB_RESET) ? " usb_reset" : "", in proc_udc_show()
2360 (tmp & UDC_SUS) ? " SUS" : "", in proc_udc_show()
2361 (tmp & UDC_CFG) ? " CFG" : "", in proc_udc_show()
2362 (tmp & UDC_ADD) ? " ADD" : "", in proc_udc_show()
2363 (tmp & UDC_DEF) ? " DEF" : "", in proc_udc_show()
2364 (tmp & UDC_ATT) ? " ATT" : ""); in proc_udc_show()
2366 tmp = omap_readw(UDC_IRQ_EN); in proc_udc_show()
2367 seq_printf(s, "irq_en %04x" FOURBITS "%s\n", tmp, in proc_udc_show()
2368 (tmp & UDC_SOF_IE) ? " sof" : "", in proc_udc_show()
2369 (tmp & UDC_EPN_RX_IE) ? " epn_rx" : "", in proc_udc_show()
2370 (tmp & UDC_EPN_TX_IE) ? " epn_tx" : "", in proc_udc_show()
2371 (tmp & UDC_DS_CHG_IE) ? " ds_chg" : "", in proc_udc_show()
2372 (tmp & UDC_EP0_IE) ? " ep0" : ""); in proc_udc_show()
2373 tmp = omap_readw(UDC_IRQ_SRC); in proc_udc_show()
2374 seq_printf(s, "irq_src %04x" EIGHTBITS "%s%s\n", tmp, in proc_udc_show()
2375 (tmp & UDC_TXN_DONE) ? " txn_done" : "", in proc_udc_show()
2376 (tmp & UDC_RXN_CNT) ? " rxn_cnt" : "", in proc_udc_show()
2377 (tmp & UDC_RXN_EOT) ? " rxn_eot" : "", in proc_udc_show()
2378 (tmp & UDC_IRQ_SOF) ? " sof" : "", in proc_udc_show()
2379 (tmp & UDC_EPN_RX) ? " epn_rx" : "", in proc_udc_show()
2380 (tmp & UDC_EPN_TX) ? " epn_tx" : "", in proc_udc_show()
2381 (tmp & UDC_DS_CHG) ? " ds_chg" : "", in proc_udc_show()
2382 (tmp & UDC_SETUP) ? " setup" : "", in proc_udc_show()
2383 (tmp & UDC_EP0_RX) ? " ep0out" : "", in proc_udc_show()
2384 (tmp & UDC_EP0_TX) ? " ep0in" : ""); in proc_udc_show()
2388 tmp = omap_readw(UDC_DMA_IRQ_EN); in proc_udc_show()
2389 seq_printf(s, "dma_irq_en %04x%s" EIGHTBITS "\n", tmp, in proc_udc_show()
2390 (tmp & UDC_TX_DONE_IE(3)) ? " tx2_done" : "", in proc_udc_show()
2391 (tmp & UDC_RX_CNT_IE(3)) ? " rx2_cnt" : "", in proc_udc_show()
2392 (tmp & UDC_RX_EOT_IE(3)) ? " rx2_eot" : "", in proc_udc_show()
2394 (tmp & UDC_TX_DONE_IE(2)) ? " tx1_done" : "", in proc_udc_show()
2395 (tmp & UDC_RX_CNT_IE(2)) ? " rx1_cnt" : "", in proc_udc_show()
2396 (tmp & UDC_RX_EOT_IE(2)) ? " rx1_eot" : "", in proc_udc_show()
2398 (tmp & UDC_TX_DONE_IE(1)) ? " tx0_done" : "", in proc_udc_show()
2399 (tmp & UDC_RX_CNT_IE(1)) ? " rx0_cnt" : "", in proc_udc_show()
2400 (tmp & UDC_RX_EOT_IE(1)) ? " rx0_eot" : ""); in proc_udc_show()
2402 tmp = omap_readw(UDC_RXDMA_CFG); in proc_udc_show()
2403 seq_printf(s, "rxdma_cfg %04x\n", tmp); in proc_udc_show()
2404 if (tmp) { in proc_udc_show()
2406 if ((tmp & (0x0f << (i * 4))) == 0) in proc_udc_show()
2412 tmp = omap_readw(UDC_TXDMA_CFG); in proc_udc_show()
2413 seq_printf(s, "txdma_cfg %04x\n", tmp); in proc_udc_show()
2414 if (tmp) { in proc_udc_show()
2416 if (!(tmp & (0x0f << (i * 4)))) in proc_udc_show()
2424 tmp = omap_readw(UDC_DEVSTAT); in proc_udc_show()
2425 if (tmp & UDC_ATT) { in proc_udc_show()
2427 if (tmp & UDC_ADD) { in proc_udc_show()
2623 unsigned tmp, buf; in omap_udc_setup() local
2657 for (tmp = 1; tmp < 15; tmp++) { in omap_udc_setup()
2658 omap_writew(0, UDC_EP_RX(tmp)); in omap_udc_setup()
2659 omap_writew(0, UDC_EP_TX(tmp)); in omap_udc_setup()
2806 u32 tmp = omap_readl(FUNC_MUX_CTRL_0); in omap_udc_probe() local
2807 tmp &= ~VBUS_CTRL_1510; in omap_udc_probe()
2808 omap_writel(tmp, FUNC_MUX_CTRL_0); in omap_udc_probe()
2809 tmp |= VBUS_MODE_1510; in omap_udc_probe()
2810 tmp &= ~VBUS_CTRL_1510; in omap_udc_probe()
2811 omap_writel(tmp, FUNC_MUX_CTRL_0); in omap_udc_probe()