Lines Matching refs:temp

173 	uint32_t temp;  in dwc_otg_write_fifo()  local
176 temp = count & ~3; in dwc_otg_write_fifo()
179 if (temp != 0 && usb_pc_buffer_is_aligned(pc, offset, temp, 3)) { in dwc_otg_write_fifo()
183 count -= temp; in dwc_otg_write_fifo()
190 if (buf_res.length > temp) in dwc_otg_write_fifo()
191 buf_res.length = temp; in dwc_otg_write_fifo()
199 temp -= buf_res.length; in dwc_otg_write_fifo()
200 } while (temp != 0); in dwc_otg_write_fifo()
223 uint32_t temp; in dwc_otg_read_fifo() local
226 temp = count & ~3; in dwc_otg_read_fifo()
229 if (temp != 0 && usb_pc_buffer_is_aligned(pc, offset, temp, 3)) { in dwc_otg_read_fifo()
233 count -= temp; in dwc_otg_read_fifo()
240 if (buf_res.length > temp) in dwc_otg_read_fifo()
241 buf_res.length = temp; in dwc_otg_read_fifo()
250 temp -= buf_res.length; in dwc_otg_read_fifo()
251 } while (temp != 0); in dwc_otg_read_fifo()
276 uint32_t temp; in dwc_otg_tx_fifo_reset() local
282 for (temp = 0; temp != 16; temp++) { in dwc_otg_tx_fifo_reset()
473 uint32_t temp; in dwc_otg_update_host_frame_interval()
476 temp = DWC_OTG_READ_4(sc, DOTG_HFIR) & HFIR_FRINT_MASK; in dwc_otg_update_host_frame_interval()
477 if (temp >= 10000) in dwc_otg_update_host_frame_interval()
478 temp /= 1000; in dwc_otg_update_host_frame_interval()
480 temp /= 125; in dwc_otg_update_host_frame_interval()
483 if (temp >= 54) in dwc_otg_update_host_frame_interval()
484 temp = 60; /* MHz */ in dwc_otg_update_host_frame_interval()
485 else if (temp >= 39) in dwc_otg_update_host_frame_interval()
486 temp = 48; /* MHz */ in dwc_otg_update_host_frame_interval()
488 temp = 30; /* MHz */ in dwc_otg_update_host_frame_interval()
491 temp *= 125; in dwc_otg_update_host_frame_interval()
493 temp *= 1000; in dwc_otg_update_host_frame_interval()
495 DPRINTF("HFIR=0x%08x\n", temp); in dwc_otg_update_host_frame_interval()
497 DWC_OTG_WRITE_4(sc, DOTG_HFIR, temp); in dwc_otg_update_host_frame_interval()
529 uint32_t temp; in dwc_otg_pull_up() local
537 temp = DWC_OTG_READ_4(sc, DOTG_DCTL); in dwc_otg_pull_up()
538 temp &= ~DCTL_SFTDISCON; in dwc_otg_pull_up()
539 DWC_OTG_WRITE_4(sc, DOTG_DCTL, temp); in dwc_otg_pull_up()
546 uint32_t temp; in dwc_otg_pull_down() local
553 temp = DWC_OTG_READ_4(sc, DOTG_DCTL); in dwc_otg_pull_down()
554 temp |= DCTL_SFTDISCON; in dwc_otg_pull_down()
555 DWC_OTG_WRITE_4(sc, DOTG_DCTL, temp); in dwc_otg_pull_down()
629 uint32_t temp; in dwc_otg_wakeup_peer() local
632 temp = DWC_OTG_READ_4(sc, DOTG_DCTL); in dwc_otg_wakeup_peer()
633 temp |= DCTL_RMTWKUPSIG; in dwc_otg_wakeup_peer()
634 DWC_OTG_WRITE_4(sc, DOTG_DCTL, temp); in dwc_otg_wakeup_peer()
639 temp &= ~DCTL_RMTWKUPSIG; in dwc_otg_wakeup_peer()
640 DWC_OTG_WRITE_4(sc, DOTG_DCTL, temp); in dwc_otg_wakeup_peer()
670 uint32_t temp; in dwc_otg_set_address() local
674 temp = DWC_OTG_READ_4(sc, DOTG_DCFG); in dwc_otg_set_address()
675 temp &= ~DCFG_DEVADDR_SET(0x7F); in dwc_otg_set_address()
676 temp |= DCFG_DEVADDR_SET(addr); in dwc_otg_set_address()
677 DWC_OTG_WRITE_4(sc, DOTG_DCFG, temp); in dwc_otg_set_address()
717 uint32_t temp; in dwc_otg_host_check_tx_fifo_empty() local
719 temp = DWC_OTG_READ_4(sc, DOTG_GINTSTS); in dwc_otg_host_check_tx_fifo_empty()
727 if (!(temp & GINTSTS_PTXFEMP)) { in dwc_otg_host_check_tx_fifo_empty()
736 if (!(temp & GINTSTS_NPTXFEMP)) { in dwc_otg_host_check_tx_fifo_empty()
1097 uint32_t temp; in dwc_otg_setup_rx() local
1180 temp = sc->sc_out_ctl[0]; in dwc_otg_setup_rx()
1184 temp | DOEPCTL_STALL); in dwc_otg_setup_rx()
1186 temp = sc->sc_in_ctl[0]; in dwc_otg_setup_rx()
1190 temp | DIEPCTL_STALL); in dwc_otg_setup_rx()
1663 uint32_t temp; in dwc_otg_data_rx() local
1740 temp = sc->sc_out_ctl[td->ep_no]; in dwc_otg_data_rx()
1743 if ((temp & DIEPCTL_EPTYPE_MASK) == in dwc_otg_data_rx()
1746 if (temp & DIEPCTL_SETD1PID) { in dwc_otg_data_rx()
1747 temp &= ~DIEPCTL_SETD1PID; in dwc_otg_data_rx()
1748 temp |= DIEPCTL_SETD0PID; in dwc_otg_data_rx()
1750 temp &= ~DIEPCTL_SETD0PID; in dwc_otg_data_rx()
1751 temp |= DIEPCTL_SETD1PID; in dwc_otg_data_rx()
1753 sc->sc_out_ctl[td->ep_no] = temp; in dwc_otg_data_rx()
1781 temp = sc->sc_out_ctl[td->ep_no]; in dwc_otg_data_rx()
1782 DWC_OTG_WRITE_4(sc, DOTG_DOEPCTL(td->ep_no), temp | in dwc_otg_data_rx()
2133 uint32_t temp; in dwc_otg_data_tx() local
2143 temp = sc->sc_last_rx_status; in dwc_otg_data_tx()
2145 if ((td->ep_no == 0) && (temp != 0) && in dwc_otg_data_tx()
2146 (GRXSTSRD_CHNUM_GET(temp) == 0)) { in dwc_otg_data_tx()
2147 if ((temp & GRXSTSRD_PKTSTS_MASK) != in dwc_otg_data_tx()
2149 (temp & GRXSTSRD_PKTSTS_MASK) != in dwc_otg_data_tx()
2168 temp = DWC_OTG_READ_4(sc, DOTG_DIEPTSIZ(td->ep_no)); in dwc_otg_data_tx()
2171 cpkt = DXEPTSIZ_GET_NPKT(temp); in dwc_otg_data_tx()
2217 temp = DWC_OTG_READ_4(sc, DOTG_DIEPTSIZ(td->ep_no)); in dwc_otg_data_tx()
2219 if (DXEPTSIZ_GET_NPKT(temp) != 0) { in dwc_otg_data_tx()
2222 DXEPTSIZ_GET_NPKT(temp), in dwc_otg_data_tx()
2223 temp, DWC_OTG_READ_4(sc, DOTG_DIEPCTL(td->ep_no))); in dwc_otg_data_tx()
2279 temp = sc->sc_in_ctl[td->ep_no]; in dwc_otg_data_tx()
2282 if ((temp & DIEPCTL_EPTYPE_MASK) == in dwc_otg_data_tx()
2285 if (temp & DIEPCTL_SETD1PID) { in dwc_otg_data_tx()
2286 temp &= ~DIEPCTL_SETD1PID; in dwc_otg_data_tx()
2287 temp |= DIEPCTL_SETD0PID; in dwc_otg_data_tx()
2289 temp &= ~DIEPCTL_SETD0PID; in dwc_otg_data_tx()
2290 temp |= DIEPCTL_SETD1PID; in dwc_otg_data_tx()
2292 sc->sc_in_ctl[td->ep_no] = temp; in dwc_otg_data_tx()
2296 DWC_OTG_WRITE_4(sc, DOTG_DIEPCTL(td->ep_no), temp | in dwc_otg_data_tx()
2318 uint32_t temp; in dwc_otg_data_tx_sync() local
2323 temp = DWC_OTG_READ_4(sc, DOTG_DIEPTSIZ(td->ep_no)); in dwc_otg_data_tx_sync()
2326 if (DXEPTSIZ_GET_NPKT(temp) != 0) { in dwc_otg_data_tx_sync()
2336 temp = sc->sc_last_rx_status; in dwc_otg_data_tx_sync()
2338 if ((td->ep_no == 0) && (temp != 0) && in dwc_otg_data_tx_sync()
2339 (GRXSTSRD_CHNUM_GET(temp) == 0)) { in dwc_otg_data_tx_sync()
2340 if ((temp & GRXSTSRD_PKTSTS_MASK) == in dwc_otg_data_tx_sync()
2342 (temp & GRXSTSRD_PKTSTS_MASK) == in dwc_otg_data_tx_sync()
2494 uint16_t temp; in dwc_otg_update_host_transfer_schedule_locked() local
2497 temp = DWC_OTG_READ_4(sc, DOTG_HFNUM) & DWC_OTG_FRAME_MASK; in dwc_otg_update_host_transfer_schedule_locked()
2499 if (sc->sc_last_frame_num == temp) in dwc_otg_update_host_transfer_schedule_locked()
2502 sc->sc_last_frame_num = temp; in dwc_otg_update_host_transfer_schedule_locked()
2506 if ((temp & 7) == 0) { in dwc_otg_update_host_transfer_schedule_locked()
2535 td->tt_start_slot = temp + slot; in dwc_otg_update_host_transfer_schedule_locked()
2556 td->tt_start_slot = temp; in dwc_otg_update_host_transfer_schedule_locked()
2582 td->tt_start_slot = temp; in dwc_otg_update_host_transfer_schedule_locked()
2602 td->tt_start_slot = temp; in dwc_otg_update_host_transfer_schedule_locked()
2608 if ((temp & 7) < 6) { in dwc_otg_update_host_transfer_schedule_locked()
2622 td->tt_start_slot = temp; in dwc_otg_update_host_transfer_schedule_locked()
2653 if ((temp & 7) == 0) { in dwc_otg_update_host_transfer_schedule_locked()
2655 (int)temp, (int)sc->sc_needsof); in dwc_otg_update_host_transfer_schedule_locked()
2681 uint32_t temp; in dwc_otg_interrupt_poll_locked() local
2707 temp = DWC_OTG_READ_4(sc, DOTG_HCINT(x)); in dwc_otg_interrupt_poll_locked()
2708 DWC_OTG_WRITE_4(sc, DOTG_HCINT(x), temp); in dwc_otg_interrupt_poll_locked()
2709 temp &= ~HCINT_SOFTWARE_ONLY; in dwc_otg_interrupt_poll_locked()
2710 sc->sc_chan_state[x].hcint |= temp; in dwc_otg_interrupt_poll_locked()
2715 temp = DWC_OTG_READ_4(sc, DOTG_GINTSTS); in dwc_otg_interrupt_poll_locked()
2716 if (temp & GINTSTS_RXFLVL) { in dwc_otg_interrupt_poll_locked()
2725 temp = sc->sc_last_rx_status & in dwc_otg_interrupt_poll_locked()
2729 if (temp != GRXSTSRD_STP_DATA && in dwc_otg_interrupt_poll_locked()
2730 temp != GRXSTSRD_STP_COMPLETE && in dwc_otg_interrupt_poll_locked()
2731 temp != GRXSTSRD_OUT_DATA) { in dwc_otg_interrupt_poll_locked()
2733 if (temp == GRXSTSRH_HALTED) { in dwc_otg_interrupt_poll_locked()
2747 temp = GRXSTSRD_BCNT_GET( in dwc_otg_interrupt_poll_locked()
2753 sc->sc_current_rx_bytes = (temp + 3) & ~3; in dwc_otg_interrupt_poll_locked()
2756 DPRINTF("Reading %d bytes from ep %d\n", temp, ep_no); in dwc_otg_interrupt_poll_locked()
2875 uint32_t temp; in dwc_otg_filter_interrupt() local
2879 temp = DWC_OTG_READ_4(sc, DOTG_DIEPINT(x)); in dwc_otg_filter_interrupt()
2885 if (temp != 0) in dwc_otg_filter_interrupt()
2886 DWC_OTG_WRITE_4(sc, DOTG_DIEPINT(x), temp); in dwc_otg_filter_interrupt()
2938 uint32_t temp; in dwc_otg_interrupt() local
2958 temp = DWC_OTG_READ_4(sc, DOTG_DSTS); in dwc_otg_interrupt()
2959 if (DSTS_ENUMSPD_GET(temp) == DSTS_ENUMSPD_HI) in dwc_otg_interrupt()
3065 uint32_t temp; in dwc_otg_interrupt() local
3067 temp = DWC_OTG_READ_4(sc, DOTG_GOTGCTL); in dwc_otg_interrupt()
3069 DPRINTFN(5, "GOTGCTL=0x%08x\n", temp); in dwc_otg_interrupt()
3072 (temp & (GOTGCTL_ASESVLD | GOTGCTL_BSESVLD)) ? 1 : 0); in dwc_otg_interrupt()
3086 dwc_otg_setup_standard_chain_sub(struct dwc_otg_std_temp *temp) in dwc_otg_setup_standard_chain_sub() argument
3091 td = temp->td_next; in dwc_otg_setup_standard_chain_sub()
3092 temp->td = td; in dwc_otg_setup_standard_chain_sub()
3095 temp->td_next = td->obj_next; in dwc_otg_setup_standard_chain_sub()
3098 td->func = temp->func; in dwc_otg_setup_standard_chain_sub()
3099 td->pc = temp->pc; in dwc_otg_setup_standard_chain_sub()
3100 td->offset = temp->offset; in dwc_otg_setup_standard_chain_sub()
3101 td->remainder = temp->len; in dwc_otg_setup_standard_chain_sub()
3106 td->did_stall = temp->did_stall; in dwc_otg_setup_standard_chain_sub()
3107 td->short_pkt = temp->short_pkt; in dwc_otg_setup_standard_chain_sub()
3108 td->alt_next = temp->setup_alt_next; in dwc_otg_setup_standard_chain_sub()
3124 struct dwc_otg_std_temp temp; in dwc_otg_setup_standard_chain() local
3134 temp.max_frame_size = xfer->max_frame_size; in dwc_otg_setup_standard_chain()
3142 temp.pc = NULL; in dwc_otg_setup_standard_chain()
3143 temp.td = NULL; in dwc_otg_setup_standard_chain()
3144 temp.td_next = xfer->td_start[0]; in dwc_otg_setup_standard_chain()
3145 temp.offset = 0; in dwc_otg_setup_standard_chain()
3146 temp.setup_alt_next = xfer->flags_int.short_frames_ok || in dwc_otg_setup_standard_chain()
3148 temp.did_stall = !xfer->flags_int.control_stall; in dwc_otg_setup_standard_chain()
3157 temp.func = &dwc_otg_host_setup_tx; in dwc_otg_setup_standard_chain()
3159 temp.func = &dwc_otg_setup_rx; in dwc_otg_setup_standard_chain()
3161 temp.len = xfer->frlengths[0]; in dwc_otg_setup_standard_chain()
3162 temp.pc = xfer->frbuffers + 0; in dwc_otg_setup_standard_chain()
3163 temp.short_pkt = temp.len ? 1 : 0; in dwc_otg_setup_standard_chain()
3169 temp.setup_alt_next = 0; in dwc_otg_setup_standard_chain()
3172 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3182 temp.func = &dwc_otg_host_data_rx; in dwc_otg_setup_standard_chain()
3185 temp.func = &dwc_otg_data_tx; in dwc_otg_setup_standard_chain()
3190 temp.func = &dwc_otg_host_data_tx; in dwc_otg_setup_standard_chain()
3193 temp.func = &dwc_otg_data_rx; in dwc_otg_setup_standard_chain()
3199 temp.pc = xfer->frbuffers + x; in dwc_otg_setup_standard_chain()
3206 temp.len = xfer->frlengths[x]; in dwc_otg_setup_standard_chain()
3213 temp.setup_alt_next = 0; in dwc_otg_setup_standard_chain()
3216 temp.setup_alt_next = 0; in dwc_otg_setup_standard_chain()
3219 if (temp.len == 0) { in dwc_otg_setup_standard_chain()
3222 temp.short_pkt = 0; in dwc_otg_setup_standard_chain()
3227 temp.short_pkt = (xfer->flags.force_short_xfer ? 0 : 1); in dwc_otg_setup_standard_chain()
3230 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3233 temp.offset += temp.len; in dwc_otg_setup_standard_chain()
3236 temp.pc = xfer->frbuffers + x; in dwc_otg_setup_standard_chain()
3242 temp.pc = xfer->frbuffers + 0; in dwc_otg_setup_standard_chain()
3243 temp.len = 0; in dwc_otg_setup_standard_chain()
3244 temp.short_pkt = 0; in dwc_otg_setup_standard_chain()
3245 temp.setup_alt_next = 0; in dwc_otg_setup_standard_chain()
3250 temp.func = &dwc_otg_data_tx_sync; in dwc_otg_setup_standard_chain()
3251 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3262 temp.func = &dwc_otg_host_data_tx; in dwc_otg_setup_standard_chain()
3265 temp.func = &dwc_otg_data_rx; in dwc_otg_setup_standard_chain()
3270 temp.func = &dwc_otg_host_data_rx; in dwc_otg_setup_standard_chain()
3273 temp.func = &dwc_otg_data_tx; in dwc_otg_setup_standard_chain()
3278 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3281 td = temp.td; in dwc_otg_setup_standard_chain()
3286 temp.func = &dwc_otg_data_tx_sync; in dwc_otg_setup_standard_chain()
3287 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3293 temp.pc = xfer->frbuffers + 0; in dwc_otg_setup_standard_chain()
3294 temp.len = 0; in dwc_otg_setup_standard_chain()
3295 temp.short_pkt = 0; in dwc_otg_setup_standard_chain()
3296 temp.setup_alt_next = 0; in dwc_otg_setup_standard_chain()
3299 temp.func = &dwc_otg_data_tx_sync; in dwc_otg_setup_standard_chain()
3300 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3305 td = temp.td; in dwc_otg_setup_standard_chain()
3653 uint32_t temp; in dwc_otg_set_stall() local
3676 temp = sc->sc_in_ctl[ep_no & UE_ADDR]; in dwc_otg_set_stall()
3679 temp = sc->sc_out_ctl[ep_no & UE_ADDR]; in dwc_otg_set_stall()
3683 DWC_OTG_WRITE_4(sc, reg, temp | DOEPCTL_EPDIS); in dwc_otg_set_stall()
3684 DWC_OTG_WRITE_4(sc, reg, temp | DOEPCTL_STALL); in dwc_otg_set_stall()
3708 uint32_t temp; in dwc_otg_clear_stall_sub_locked() local
3726 temp = DIEPCTL_EPTYPE_SET( in dwc_otg_clear_stall_sub_locked()
3730 temp = DIEPCTL_EPTYPE_SET( in dwc_otg_clear_stall_sub_locked()
3734 temp = DIEPCTL_EPTYPE_SET( in dwc_otg_clear_stall_sub_locked()
3739 temp |= DIEPCTL_MPS_SET(mps); in dwc_otg_clear_stall_sub_locked()
3740 temp |= DIEPCTL_TXFNUM_SET(ep_no); in dwc_otg_clear_stall_sub_locked()
3743 sc->sc_in_ctl[ep_no] = temp; in dwc_otg_clear_stall_sub_locked()
3745 sc->sc_out_ctl[ep_no] = temp; in dwc_otg_clear_stall_sub_locked()
3747 DWC_OTG_WRITE_4(sc, reg, temp | DOEPCTL_EPDIS); in dwc_otg_clear_stall_sub_locked()
3748 DWC_OTG_WRITE_4(sc, reg, temp | DOEPCTL_SETD0PID); in dwc_otg_clear_stall_sub_locked()
3749 DWC_OTG_WRITE_4(sc, reg, temp | DIEPCTL_SNAK); in dwc_otg_clear_stall_sub_locked()
3837 uint32_t temp; in dwc_otg_init() local
3881 temp = DWC_OTG_READ_4(sc, DOTG_GSNPSID); in dwc_otg_init()
3882 DPRINTF("Version = 0x%08x\n", temp); in dwc_otg_init()
3899 temp = GUSBCFG_FORCEDEVMODE; in dwc_otg_init()
3902 temp = GUSBCFG_FORCEHOSTMODE; in dwc_otg_init()
3905 temp = 0; in dwc_otg_init()
3919 GUSBCFG_TRD_TIM_SET(5) | temp); in dwc_otg_init()
3923 temp = DWC_OTG_READ_4(sc, DOTG_GLPMCFG); in dwc_otg_init()
3925 temp & ~GLPMCFG_HSIC_CONN); in dwc_otg_init()
3927 temp | GLPMCFG_HSIC_CONN); in dwc_otg_init()
3932 GUSBCFG_TRD_TIM_SET(5) | temp); in dwc_otg_init()
3935 temp = DWC_OTG_READ_4(sc, DOTG_GLPMCFG); in dwc_otg_init()
3937 temp & ~GLPMCFG_HSIC_CONN); in dwc_otg_init()
3942 GUSBCFG_TRD_TIM_SET(5) | temp); in dwc_otg_init()
3945 temp = DWC_OTG_READ_4(sc, DOTG_GLPMCFG); in dwc_otg_init()
3947 temp & ~GLPMCFG_HSIC_CONN); in dwc_otg_init()
3952 GUSBCFG_TRD_TIM_SET(5) | temp); in dwc_otg_init()
3955 temp = DWC_OTG_READ_4(sc, DOTG_GLPMCFG); in dwc_otg_init()
3957 temp & ~GLPMCFG_HSIC_CONN); in dwc_otg_init()
3959 temp = DWC_OTG_READ_4(sc, DOTG_GGPIO); in dwc_otg_init()
3960 temp &= ~(DOTG_GGPIO_NOVBUSSENS | DOTG_GGPIO_I2CPADEN); in dwc_otg_init()
3961 temp |= (DOTG_GGPIO_VBUSASEN | DOTG_GGPIO_VBUSBSEN | in dwc_otg_init()
3963 DWC_OTG_WRITE_4(sc, DOTG_GGPIO, temp); in dwc_otg_init()
3986 temp = DWC_OTG_READ_4(sc, DOTG_GHWCFG3); in dwc_otg_init()
3988 sc->sc_fifo_size = 4 * GHWCFG3_DFIFODEPTH_GET(temp); in dwc_otg_init()
3990 temp = DWC_OTG_READ_4(sc, DOTG_GHWCFG2); in dwc_otg_init()
3992 sc->sc_dev_ep_max = GHWCFG2_NUMDEVEPS_GET(temp); in dwc_otg_init()
3997 sc->sc_host_ch_max = GHWCFG2_NUMHSTCHNL_GET(temp); in dwc_otg_init()
4002 temp = DWC_OTG_READ_4(sc, DOTG_GHWCFG4); in dwc_otg_init()
4004 sc->sc_dev_in_ep_max = GHWCFG4_NUM_IN_EP_GET(temp); in dwc_otg_init()
4022 temp = DWC_OTG_READ_4(sc, DOTG_GHWCFG2); in dwc_otg_init()
4023 if (temp & GHWCFG2_MPI) { in dwc_otg_init()
4042 temp = DWC_OTG_READ_4(sc, DOTG_HCFG); in dwc_otg_init()
4043 temp &= ~(HCFG_FSLSSUPP | HCFG_FSLSPCLKSEL_MASK); in dwc_otg_init()
4044 temp |= (1 << HCFG_FSLSPCLKSEL_SHIFT); in dwc_otg_init()
4045 DWC_OTG_WRITE_4(sc, DOTG_HCFG, temp); in dwc_otg_init()
4057 temp = DWC_OTG_READ_4(sc, DOTG_GOTGCTL); in dwc_otg_init()
4059 DPRINTFN(5, "GOTCTL=0x%08x\n", temp); in dwc_otg_init()
4062 (temp & (GOTGCTL_ASESVLD | GOTGCTL_BSESVLD)) ? 1 : 0); in dwc_otg_init()
4189 uint32_t temp; in dwc_otg_device_isoc_start() local
4196 temp = DWC_OTG_READ_4(sc, DOTG_HFNUM); in dwc_otg_device_isoc_start()
4199 framenum = (temp & HFNUM_FRNUM_MASK); in dwc_otg_device_isoc_start()
4201 temp = DWC_OTG_READ_4(sc, DOTG_DSTS); in dwc_otg_device_isoc_start()
4204 framenum = DSTS_SOFFN_GET(temp); in dwc_otg_device_isoc_start()