Lines Matching refs:temp

174 	uint32_t temp;  in dwc_otg_write_fifo()  local
177 temp = count & ~3; in dwc_otg_write_fifo()
180 if (temp != 0 && usb_pc_buffer_is_aligned(pc, offset, temp, 3)) { in dwc_otg_write_fifo()
184 count -= temp; in dwc_otg_write_fifo()
191 if (buf_res.length > temp) in dwc_otg_write_fifo()
192 buf_res.length = temp; in dwc_otg_write_fifo()
200 temp -= buf_res.length; in dwc_otg_write_fifo()
201 } while (temp != 0); in dwc_otg_write_fifo()
224 uint32_t temp; in dwc_otg_read_fifo() local
227 temp = count & ~3; in dwc_otg_read_fifo()
230 if (temp != 0 && usb_pc_buffer_is_aligned(pc, offset, temp, 3)) { in dwc_otg_read_fifo()
234 count -= temp; in dwc_otg_read_fifo()
241 if (buf_res.length > temp) in dwc_otg_read_fifo()
242 buf_res.length = temp; in dwc_otg_read_fifo()
251 temp -= buf_res.length; in dwc_otg_read_fifo()
252 } while (temp != 0); in dwc_otg_read_fifo()
277 uint32_t temp; in dwc_otg_tx_fifo_reset() local
283 for (temp = 0; temp != 16; temp++) { in dwc_otg_tx_fifo_reset()
474 uint32_t temp; in dwc_otg_update_host_frame_interval()
477 temp = DWC_OTG_READ_4(sc, DOTG_HFIR) & HFIR_FRINT_MASK; in dwc_otg_update_host_frame_interval()
478 if (temp >= 10000) in dwc_otg_update_host_frame_interval()
479 temp /= 1000; in dwc_otg_update_host_frame_interval()
481 temp /= 125; in dwc_otg_update_host_frame_interval()
484 if (temp >= 54) in dwc_otg_update_host_frame_interval()
485 temp = 60; /* MHz */ in dwc_otg_update_host_frame_interval()
486 else if (temp >= 39) in dwc_otg_update_host_frame_interval()
487 temp = 48; /* MHz */ in dwc_otg_update_host_frame_interval()
489 temp = 30; /* MHz */ in dwc_otg_update_host_frame_interval()
492 temp *= 125; in dwc_otg_update_host_frame_interval()
494 temp *= 1000; in dwc_otg_update_host_frame_interval()
496 DPRINTF("HFIR=0x%08x\n", temp); in dwc_otg_update_host_frame_interval()
498 DWC_OTG_WRITE_4(sc, DOTG_HFIR, temp); in dwc_otg_update_host_frame_interval()
530 uint32_t temp; in dwc_otg_pull_up() local
538 temp = DWC_OTG_READ_4(sc, DOTG_DCTL); in dwc_otg_pull_up()
539 temp &= ~DCTL_SFTDISCON; in dwc_otg_pull_up()
540 DWC_OTG_WRITE_4(sc, DOTG_DCTL, temp); in dwc_otg_pull_up()
547 uint32_t temp; in dwc_otg_pull_down() local
554 temp = DWC_OTG_READ_4(sc, DOTG_DCTL); in dwc_otg_pull_down()
555 temp |= DCTL_SFTDISCON; in dwc_otg_pull_down()
556 DWC_OTG_WRITE_4(sc, DOTG_DCTL, temp); in dwc_otg_pull_down()
630 uint32_t temp; in dwc_otg_wakeup_peer() local
633 temp = DWC_OTG_READ_4(sc, DOTG_DCTL); in dwc_otg_wakeup_peer()
634 temp |= DCTL_RMTWKUPSIG; in dwc_otg_wakeup_peer()
635 DWC_OTG_WRITE_4(sc, DOTG_DCTL, temp); in dwc_otg_wakeup_peer()
640 temp &= ~DCTL_RMTWKUPSIG; in dwc_otg_wakeup_peer()
641 DWC_OTG_WRITE_4(sc, DOTG_DCTL, temp); in dwc_otg_wakeup_peer()
671 uint32_t temp; in dwc_otg_set_address() local
675 temp = DWC_OTG_READ_4(sc, DOTG_DCFG); in dwc_otg_set_address()
676 temp &= ~DCFG_DEVADDR_SET(0x7F); in dwc_otg_set_address()
677 temp |= DCFG_DEVADDR_SET(addr); in dwc_otg_set_address()
678 DWC_OTG_WRITE_4(sc, DOTG_DCFG, temp); in dwc_otg_set_address()
718 uint32_t temp; in dwc_otg_host_check_tx_fifo_empty() local
720 temp = DWC_OTG_READ_4(sc, DOTG_GINTSTS); in dwc_otg_host_check_tx_fifo_empty()
728 if (!(temp & GINTSTS_PTXFEMP)) { in dwc_otg_host_check_tx_fifo_empty()
737 if (!(temp & GINTSTS_NPTXFEMP)) { in dwc_otg_host_check_tx_fifo_empty()
1098 uint32_t temp; in dwc_otg_setup_rx() local
1181 temp = sc->sc_out_ctl[0]; in dwc_otg_setup_rx()
1185 temp | DOEPCTL_STALL); in dwc_otg_setup_rx()
1187 temp = sc->sc_in_ctl[0]; in dwc_otg_setup_rx()
1191 temp | DIEPCTL_STALL); in dwc_otg_setup_rx()
1664 uint32_t temp; in dwc_otg_data_rx() local
1741 temp = sc->sc_out_ctl[td->ep_no]; in dwc_otg_data_rx()
1744 if ((temp & DIEPCTL_EPTYPE_MASK) == in dwc_otg_data_rx()
1747 if (temp & DIEPCTL_SETD1PID) { in dwc_otg_data_rx()
1748 temp &= ~DIEPCTL_SETD1PID; in dwc_otg_data_rx()
1749 temp |= DIEPCTL_SETD0PID; in dwc_otg_data_rx()
1751 temp &= ~DIEPCTL_SETD0PID; in dwc_otg_data_rx()
1752 temp |= DIEPCTL_SETD1PID; in dwc_otg_data_rx()
1754 sc->sc_out_ctl[td->ep_no] = temp; in dwc_otg_data_rx()
1782 temp = sc->sc_out_ctl[td->ep_no]; in dwc_otg_data_rx()
1783 DWC_OTG_WRITE_4(sc, DOTG_DOEPCTL(td->ep_no), temp | in dwc_otg_data_rx()
2134 uint32_t temp; in dwc_otg_data_tx() local
2144 temp = sc->sc_last_rx_status; in dwc_otg_data_tx()
2146 if ((td->ep_no == 0) && (temp != 0) && in dwc_otg_data_tx()
2147 (GRXSTSRD_CHNUM_GET(temp) == 0)) { in dwc_otg_data_tx()
2148 if ((temp & GRXSTSRD_PKTSTS_MASK) != in dwc_otg_data_tx()
2150 (temp & GRXSTSRD_PKTSTS_MASK) != in dwc_otg_data_tx()
2169 temp = DWC_OTG_READ_4(sc, DOTG_DIEPTSIZ(td->ep_no)); in dwc_otg_data_tx()
2172 cpkt = DXEPTSIZ_GET_NPKT(temp); in dwc_otg_data_tx()
2218 temp = DWC_OTG_READ_4(sc, DOTG_DIEPTSIZ(td->ep_no)); in dwc_otg_data_tx()
2220 if (DXEPTSIZ_GET_NPKT(temp) != 0) { in dwc_otg_data_tx()
2223 DXEPTSIZ_GET_NPKT(temp), in dwc_otg_data_tx()
2224 temp, DWC_OTG_READ_4(sc, DOTG_DIEPCTL(td->ep_no))); in dwc_otg_data_tx()
2280 temp = sc->sc_in_ctl[td->ep_no]; in dwc_otg_data_tx()
2283 if ((temp & DIEPCTL_EPTYPE_MASK) == in dwc_otg_data_tx()
2286 if (temp & DIEPCTL_SETD1PID) { in dwc_otg_data_tx()
2287 temp &= ~DIEPCTL_SETD1PID; in dwc_otg_data_tx()
2288 temp |= DIEPCTL_SETD0PID; in dwc_otg_data_tx()
2290 temp &= ~DIEPCTL_SETD0PID; in dwc_otg_data_tx()
2291 temp |= DIEPCTL_SETD1PID; in dwc_otg_data_tx()
2293 sc->sc_in_ctl[td->ep_no] = temp; in dwc_otg_data_tx()
2297 DWC_OTG_WRITE_4(sc, DOTG_DIEPCTL(td->ep_no), temp | in dwc_otg_data_tx()
2319 uint32_t temp; in dwc_otg_data_tx_sync() local
2324 temp = DWC_OTG_READ_4(sc, DOTG_DIEPTSIZ(td->ep_no)); in dwc_otg_data_tx_sync()
2327 if (DXEPTSIZ_GET_NPKT(temp) != 0) { in dwc_otg_data_tx_sync()
2337 temp = sc->sc_last_rx_status; in dwc_otg_data_tx_sync()
2339 if ((td->ep_no == 0) && (temp != 0) && in dwc_otg_data_tx_sync()
2340 (GRXSTSRD_CHNUM_GET(temp) == 0)) { in dwc_otg_data_tx_sync()
2341 if ((temp & GRXSTSRD_PKTSTS_MASK) == in dwc_otg_data_tx_sync()
2343 (temp & GRXSTSRD_PKTSTS_MASK) == in dwc_otg_data_tx_sync()
2495 uint16_t temp; in dwc_otg_update_host_transfer_schedule_locked() local
2498 temp = DWC_OTG_READ_4(sc, DOTG_HFNUM) & DWC_OTG_FRAME_MASK; in dwc_otg_update_host_transfer_schedule_locked()
2500 if (sc->sc_last_frame_num == temp) in dwc_otg_update_host_transfer_schedule_locked()
2503 sc->sc_last_frame_num = temp; in dwc_otg_update_host_transfer_schedule_locked()
2507 if ((temp & 7) == 0) { in dwc_otg_update_host_transfer_schedule_locked()
2536 td->tt_start_slot = temp + slot; in dwc_otg_update_host_transfer_schedule_locked()
2557 td->tt_start_slot = temp; in dwc_otg_update_host_transfer_schedule_locked()
2583 td->tt_start_slot = temp; in dwc_otg_update_host_transfer_schedule_locked()
2603 td->tt_start_slot = temp; in dwc_otg_update_host_transfer_schedule_locked()
2609 if ((temp & 7) < 6) { in dwc_otg_update_host_transfer_schedule_locked()
2623 td->tt_start_slot = temp; in dwc_otg_update_host_transfer_schedule_locked()
2654 if ((temp & 7) == 0) { in dwc_otg_update_host_transfer_schedule_locked()
2656 (int)temp, (int)sc->sc_needsof); in dwc_otg_update_host_transfer_schedule_locked()
2682 uint32_t temp; in dwc_otg_interrupt_poll_locked() local
2708 temp = DWC_OTG_READ_4(sc, DOTG_HCINT(x)); in dwc_otg_interrupt_poll_locked()
2709 DWC_OTG_WRITE_4(sc, DOTG_HCINT(x), temp); in dwc_otg_interrupt_poll_locked()
2710 temp &= ~HCINT_SOFTWARE_ONLY; in dwc_otg_interrupt_poll_locked()
2711 sc->sc_chan_state[x].hcint |= temp; in dwc_otg_interrupt_poll_locked()
2716 temp = DWC_OTG_READ_4(sc, DOTG_GINTSTS); in dwc_otg_interrupt_poll_locked()
2717 if (temp & GINTSTS_RXFLVL) { in dwc_otg_interrupt_poll_locked()
2726 temp = sc->sc_last_rx_status & in dwc_otg_interrupt_poll_locked()
2730 if (temp != GRXSTSRD_STP_DATA && in dwc_otg_interrupt_poll_locked()
2731 temp != GRXSTSRD_STP_COMPLETE && in dwc_otg_interrupt_poll_locked()
2732 temp != GRXSTSRD_OUT_DATA) { in dwc_otg_interrupt_poll_locked()
2734 if (temp == GRXSTSRH_HALTED) { in dwc_otg_interrupt_poll_locked()
2748 temp = GRXSTSRD_BCNT_GET( in dwc_otg_interrupt_poll_locked()
2754 sc->sc_current_rx_bytes = (temp + 3) & ~3; in dwc_otg_interrupt_poll_locked()
2757 DPRINTF("Reading %d bytes from ep %d\n", temp, ep_no); in dwc_otg_interrupt_poll_locked()
2876 uint32_t temp; in dwc_otg_filter_interrupt() local
2880 temp = DWC_OTG_READ_4(sc, DOTG_DIEPINT(x)); in dwc_otg_filter_interrupt()
2886 if (temp != 0) in dwc_otg_filter_interrupt()
2887 DWC_OTG_WRITE_4(sc, DOTG_DIEPINT(x), temp); in dwc_otg_filter_interrupt()
2939 uint32_t temp; in dwc_otg_interrupt() local
2959 temp = DWC_OTG_READ_4(sc, DOTG_DSTS); in dwc_otg_interrupt()
2960 if (DSTS_ENUMSPD_GET(temp) == DSTS_ENUMSPD_HI) in dwc_otg_interrupt()
3066 uint32_t temp; in dwc_otg_interrupt() local
3068 temp = DWC_OTG_READ_4(sc, DOTG_GOTGCTL); in dwc_otg_interrupt()
3070 DPRINTFN(5, "GOTGCTL=0x%08x\n", temp); in dwc_otg_interrupt()
3073 (temp & (GOTGCTL_ASESVLD | GOTGCTL_BSESVLD)) ? 1 : 0); in dwc_otg_interrupt()
3087 dwc_otg_setup_standard_chain_sub(struct dwc_otg_std_temp *temp) in dwc_otg_setup_standard_chain_sub() argument
3092 td = temp->td_next; in dwc_otg_setup_standard_chain_sub()
3093 temp->td = td; in dwc_otg_setup_standard_chain_sub()
3096 temp->td_next = td->obj_next; in dwc_otg_setup_standard_chain_sub()
3099 td->func = temp->func; in dwc_otg_setup_standard_chain_sub()
3100 td->pc = temp->pc; in dwc_otg_setup_standard_chain_sub()
3101 td->offset = temp->offset; in dwc_otg_setup_standard_chain_sub()
3102 td->remainder = temp->len; in dwc_otg_setup_standard_chain_sub()
3107 td->did_stall = temp->did_stall; in dwc_otg_setup_standard_chain_sub()
3108 td->short_pkt = temp->short_pkt; in dwc_otg_setup_standard_chain_sub()
3109 td->alt_next = temp->setup_alt_next; in dwc_otg_setup_standard_chain_sub()
3125 struct dwc_otg_std_temp temp; in dwc_otg_setup_standard_chain() local
3135 temp.max_frame_size = xfer->max_frame_size; in dwc_otg_setup_standard_chain()
3143 temp.pc = NULL; in dwc_otg_setup_standard_chain()
3144 temp.td = NULL; in dwc_otg_setup_standard_chain()
3145 temp.td_next = xfer->td_start[0]; in dwc_otg_setup_standard_chain()
3146 temp.offset = 0; in dwc_otg_setup_standard_chain()
3147 temp.setup_alt_next = xfer->flags_int.short_frames_ok || in dwc_otg_setup_standard_chain()
3149 temp.did_stall = !xfer->flags_int.control_stall; in dwc_otg_setup_standard_chain()
3158 temp.func = &dwc_otg_host_setup_tx; in dwc_otg_setup_standard_chain()
3160 temp.func = &dwc_otg_setup_rx; in dwc_otg_setup_standard_chain()
3162 temp.len = xfer->frlengths[0]; in dwc_otg_setup_standard_chain()
3163 temp.pc = xfer->frbuffers + 0; in dwc_otg_setup_standard_chain()
3164 temp.short_pkt = temp.len ? 1 : 0; in dwc_otg_setup_standard_chain()
3170 temp.setup_alt_next = 0; in dwc_otg_setup_standard_chain()
3173 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3183 temp.func = &dwc_otg_host_data_rx; in dwc_otg_setup_standard_chain()
3186 temp.func = &dwc_otg_data_tx; in dwc_otg_setup_standard_chain()
3191 temp.func = &dwc_otg_host_data_tx; in dwc_otg_setup_standard_chain()
3194 temp.func = &dwc_otg_data_rx; in dwc_otg_setup_standard_chain()
3200 temp.pc = xfer->frbuffers + x; in dwc_otg_setup_standard_chain()
3207 temp.len = xfer->frlengths[x]; in dwc_otg_setup_standard_chain()
3214 temp.setup_alt_next = 0; in dwc_otg_setup_standard_chain()
3217 temp.setup_alt_next = 0; in dwc_otg_setup_standard_chain()
3220 if (temp.len == 0) { in dwc_otg_setup_standard_chain()
3223 temp.short_pkt = 0; in dwc_otg_setup_standard_chain()
3228 temp.short_pkt = (xfer->flags.force_short_xfer ? 0 : 1); in dwc_otg_setup_standard_chain()
3231 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3234 temp.offset += temp.len; in dwc_otg_setup_standard_chain()
3237 temp.pc = xfer->frbuffers + x; in dwc_otg_setup_standard_chain()
3243 temp.pc = xfer->frbuffers + 0; in dwc_otg_setup_standard_chain()
3244 temp.len = 0; in dwc_otg_setup_standard_chain()
3245 temp.short_pkt = 0; in dwc_otg_setup_standard_chain()
3246 temp.setup_alt_next = 0; in dwc_otg_setup_standard_chain()
3251 temp.func = &dwc_otg_data_tx_sync; in dwc_otg_setup_standard_chain()
3252 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3263 temp.func = &dwc_otg_host_data_tx; in dwc_otg_setup_standard_chain()
3266 temp.func = &dwc_otg_data_rx; in dwc_otg_setup_standard_chain()
3271 temp.func = &dwc_otg_host_data_rx; in dwc_otg_setup_standard_chain()
3274 temp.func = &dwc_otg_data_tx; in dwc_otg_setup_standard_chain()
3279 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3282 td = temp.td; in dwc_otg_setup_standard_chain()
3287 temp.func = &dwc_otg_data_tx_sync; in dwc_otg_setup_standard_chain()
3288 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3294 temp.pc = xfer->frbuffers + 0; in dwc_otg_setup_standard_chain()
3295 temp.len = 0; in dwc_otg_setup_standard_chain()
3296 temp.short_pkt = 0; in dwc_otg_setup_standard_chain()
3297 temp.setup_alt_next = 0; in dwc_otg_setup_standard_chain()
3300 temp.func = &dwc_otg_data_tx_sync; in dwc_otg_setup_standard_chain()
3301 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3306 td = temp.td; in dwc_otg_setup_standard_chain()
3654 uint32_t temp; in dwc_otg_set_stall() local
3677 temp = sc->sc_in_ctl[ep_no & UE_ADDR]; in dwc_otg_set_stall()
3680 temp = sc->sc_out_ctl[ep_no & UE_ADDR]; in dwc_otg_set_stall()
3684 DWC_OTG_WRITE_4(sc, reg, temp | DOEPCTL_EPDIS); in dwc_otg_set_stall()
3685 DWC_OTG_WRITE_4(sc, reg, temp | DOEPCTL_STALL); in dwc_otg_set_stall()
3709 uint32_t temp; in dwc_otg_clear_stall_sub_locked() local
3727 temp = DIEPCTL_EPTYPE_SET( in dwc_otg_clear_stall_sub_locked()
3731 temp = DIEPCTL_EPTYPE_SET( in dwc_otg_clear_stall_sub_locked()
3735 temp = DIEPCTL_EPTYPE_SET( in dwc_otg_clear_stall_sub_locked()
3740 temp |= DIEPCTL_MPS_SET(mps); in dwc_otg_clear_stall_sub_locked()
3741 temp |= DIEPCTL_TXFNUM_SET(ep_no); in dwc_otg_clear_stall_sub_locked()
3744 sc->sc_in_ctl[ep_no] = temp; in dwc_otg_clear_stall_sub_locked()
3746 sc->sc_out_ctl[ep_no] = temp; in dwc_otg_clear_stall_sub_locked()
3748 DWC_OTG_WRITE_4(sc, reg, temp | DOEPCTL_EPDIS); in dwc_otg_clear_stall_sub_locked()
3749 DWC_OTG_WRITE_4(sc, reg, temp | DOEPCTL_SETD0PID); in dwc_otg_clear_stall_sub_locked()
3750 DWC_OTG_WRITE_4(sc, reg, temp | DIEPCTL_SNAK); in dwc_otg_clear_stall_sub_locked()
3838 uint32_t temp; in dwc_otg_init() local
3882 temp = DWC_OTG_READ_4(sc, DOTG_GSNPSID); in dwc_otg_init()
3883 DPRINTF("Version = 0x%08x\n", temp); in dwc_otg_init()
3900 temp = GUSBCFG_FORCEDEVMODE; in dwc_otg_init()
3903 temp = GUSBCFG_FORCEHOSTMODE; in dwc_otg_init()
3906 temp = 0; in dwc_otg_init()
3920 GUSBCFG_TRD_TIM_SET(5) | temp); in dwc_otg_init()
3924 temp = DWC_OTG_READ_4(sc, DOTG_GLPMCFG); in dwc_otg_init()
3926 temp & ~GLPMCFG_HSIC_CONN); in dwc_otg_init()
3928 temp | GLPMCFG_HSIC_CONN); in dwc_otg_init()
3933 GUSBCFG_TRD_TIM_SET(5) | temp); in dwc_otg_init()
3936 temp = DWC_OTG_READ_4(sc, DOTG_GLPMCFG); in dwc_otg_init()
3938 temp & ~GLPMCFG_HSIC_CONN); in dwc_otg_init()
3943 GUSBCFG_TRD_TIM_SET(5) | temp); in dwc_otg_init()
3946 temp = DWC_OTG_READ_4(sc, DOTG_GLPMCFG); in dwc_otg_init()
3948 temp & ~GLPMCFG_HSIC_CONN); in dwc_otg_init()
3953 GUSBCFG_TRD_TIM_SET(5) | temp); in dwc_otg_init()
3956 temp = DWC_OTG_READ_4(sc, DOTG_GLPMCFG); in dwc_otg_init()
3958 temp & ~GLPMCFG_HSIC_CONN); in dwc_otg_init()
3960 temp = DWC_OTG_READ_4(sc, DOTG_GGPIO); in dwc_otg_init()
3961 temp &= ~(DOTG_GGPIO_NOVBUSSENS | DOTG_GGPIO_I2CPADEN); in dwc_otg_init()
3962 temp |= (DOTG_GGPIO_VBUSASEN | DOTG_GGPIO_VBUSBSEN | in dwc_otg_init()
3964 DWC_OTG_WRITE_4(sc, DOTG_GGPIO, temp); in dwc_otg_init()
3987 temp = DWC_OTG_READ_4(sc, DOTG_GHWCFG3); in dwc_otg_init()
3989 sc->sc_fifo_size = 4 * GHWCFG3_DFIFODEPTH_GET(temp); in dwc_otg_init()
3991 temp = DWC_OTG_READ_4(sc, DOTG_GHWCFG2); in dwc_otg_init()
3993 sc->sc_dev_ep_max = GHWCFG2_NUMDEVEPS_GET(temp); in dwc_otg_init()
3998 sc->sc_host_ch_max = GHWCFG2_NUMHSTCHNL_GET(temp); in dwc_otg_init()
4003 temp = DWC_OTG_READ_4(sc, DOTG_GHWCFG4); in dwc_otg_init()
4005 sc->sc_dev_in_ep_max = GHWCFG4_NUM_IN_EP_GET(temp); in dwc_otg_init()
4023 temp = DWC_OTG_READ_4(sc, DOTG_GHWCFG2); in dwc_otg_init()
4024 if (temp & GHWCFG2_MPI) { in dwc_otg_init()
4043 temp = DWC_OTG_READ_4(sc, DOTG_HCFG); in dwc_otg_init()
4044 temp &= ~(HCFG_FSLSSUPP | HCFG_FSLSPCLKSEL_MASK); in dwc_otg_init()
4045 temp |= (1 << HCFG_FSLSPCLKSEL_SHIFT); in dwc_otg_init()
4046 DWC_OTG_WRITE_4(sc, DOTG_HCFG, temp); in dwc_otg_init()
4058 temp = DWC_OTG_READ_4(sc, DOTG_GOTGCTL); in dwc_otg_init()
4060 DPRINTFN(5, "GOTCTL=0x%08x\n", temp); in dwc_otg_init()
4063 (temp & (GOTGCTL_ASESVLD | GOTGCTL_BSESVLD)) ? 1 : 0); in dwc_otg_init()
4190 uint32_t temp; in dwc_otg_device_isoc_start() local
4197 temp = DWC_OTG_READ_4(sc, DOTG_HFNUM); in dwc_otg_device_isoc_start()
4200 framenum = (temp & HFNUM_FRNUM_MASK); in dwc_otg_device_isoc_start()
4202 temp = DWC_OTG_READ_4(sc, DOTG_DSTS); in dwc_otg_device_isoc_start()
4205 framenum = DSTS_SOFFN_GET(temp); in dwc_otg_device_isoc_start()