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()
477 uint32_t temp; in dwc_otg_update_host_frame_interval()
480 temp = DWC_OTG_READ_4(sc, DOTG_HFIR) & HFIR_FRINT_MASK; in dwc_otg_update_host_frame_interval()
481 if (temp >= 10000) in dwc_otg_update_host_frame_interval()
482 temp /= 1000; in dwc_otg_update_host_frame_interval()
484 temp /= 125; in dwc_otg_update_host_frame_interval()
487 if (temp >= 54) in dwc_otg_update_host_frame_interval()
488 temp = 60; /* MHz */ in dwc_otg_update_host_frame_interval()
489 else if (temp >= 39) in dwc_otg_update_host_frame_interval()
490 temp = 48; /* MHz */ in dwc_otg_update_host_frame_interval()
492 temp = 30; /* MHz */ in dwc_otg_update_host_frame_interval()
495 temp *= 125; in dwc_otg_update_host_frame_interval()
497 temp *= 1000; in dwc_otg_update_host_frame_interval()
499 DPRINTF("HFIR=0x%08x\n", temp); in dwc_otg_update_host_frame_interval()
501 DWC_OTG_WRITE_4(sc, DOTG_HFIR, temp); in dwc_otg_update_host_frame_interval()
535 uint32_t temp; in dwc_otg_pull_up() local
543 temp = DWC_OTG_READ_4(sc, DOTG_DCTL); in dwc_otg_pull_up()
544 temp &= ~DCTL_SFTDISCON; in dwc_otg_pull_up()
545 DWC_OTG_WRITE_4(sc, DOTG_DCTL, temp); in dwc_otg_pull_up()
552 uint32_t temp; in dwc_otg_pull_down() local
559 temp = DWC_OTG_READ_4(sc, DOTG_DCTL); in dwc_otg_pull_down()
560 temp |= DCTL_SFTDISCON; in dwc_otg_pull_down()
561 DWC_OTG_WRITE_4(sc, DOTG_DCTL, temp); in dwc_otg_pull_down()
635 uint32_t temp; in dwc_otg_wakeup_peer() local
638 temp = DWC_OTG_READ_4(sc, DOTG_DCTL); 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()
645 temp &= ~DCTL_RMTWKUPSIG; in dwc_otg_wakeup_peer()
646 DWC_OTG_WRITE_4(sc, DOTG_DCTL, temp); in dwc_otg_wakeup_peer()
676 uint32_t temp; in dwc_otg_set_address() local
680 temp = DWC_OTG_READ_4(sc, DOTG_DCFG); in dwc_otg_set_address()
681 temp &= ~DCFG_DEVADDR_SET(0x7F); in dwc_otg_set_address()
682 temp |= DCFG_DEVADDR_SET(addr); in dwc_otg_set_address()
683 DWC_OTG_WRITE_4(sc, DOTG_DCFG, temp); in dwc_otg_set_address()
723 uint32_t temp; in dwc_otg_host_check_tx_fifo_empty() local
725 temp = DWC_OTG_READ_4(sc, DOTG_GINTSTS); in dwc_otg_host_check_tx_fifo_empty()
733 if (!(temp & GINTSTS_PTXFEMP)) { in dwc_otg_host_check_tx_fifo_empty()
742 if (!(temp & GINTSTS_NPTXFEMP)) { in dwc_otg_host_check_tx_fifo_empty()
1103 uint32_t temp; in dwc_otg_setup_rx() local
1186 temp = sc->sc_out_ctl[0]; in dwc_otg_setup_rx()
1190 temp | DOEPCTL_STALL); in dwc_otg_setup_rx()
1192 temp = sc->sc_in_ctl[0]; in dwc_otg_setup_rx()
1196 temp | DIEPCTL_STALL); in dwc_otg_setup_rx()
1669 uint32_t temp; in dwc_otg_data_rx() local
1746 temp = sc->sc_out_ctl[td->ep_no]; in dwc_otg_data_rx()
1749 if ((temp & DIEPCTL_EPTYPE_MASK) == in dwc_otg_data_rx()
1752 if (temp & DIEPCTL_SETD1PID) { in dwc_otg_data_rx()
1753 temp &= ~DIEPCTL_SETD1PID; in dwc_otg_data_rx()
1754 temp |= DIEPCTL_SETD0PID; in dwc_otg_data_rx()
1756 temp &= ~DIEPCTL_SETD0PID; in dwc_otg_data_rx()
1757 temp |= DIEPCTL_SETD1PID; in dwc_otg_data_rx()
1759 sc->sc_out_ctl[td->ep_no] = temp; in dwc_otg_data_rx()
1787 temp = sc->sc_out_ctl[td->ep_no]; in dwc_otg_data_rx()
1788 DWC_OTG_WRITE_4(sc, DOTG_DOEPCTL(td->ep_no), temp | in dwc_otg_data_rx()
2140 uint32_t temp; in dwc_otg_data_tx() local
2150 temp = sc->sc_last_rx_status; in dwc_otg_data_tx()
2152 if ((td->ep_no == 0) && (temp != 0) && in dwc_otg_data_tx()
2153 (GRXSTSRD_CHNUM_GET(temp) == 0)) { in dwc_otg_data_tx()
2155 if ((temp & GRXSTSRD_PKTSTS_MASK) != in dwc_otg_data_tx()
2157 (temp & GRXSTSRD_PKTSTS_MASK) != in dwc_otg_data_tx()
2178 temp = DWC_OTG_READ_4(sc, DOTG_DIEPTSIZ(td->ep_no)); in dwc_otg_data_tx()
2181 cpkt = DXEPTSIZ_GET_NPKT(temp); in dwc_otg_data_tx()
2227 temp = DWC_OTG_READ_4(sc, DOTG_DIEPTSIZ(td->ep_no)); in dwc_otg_data_tx()
2229 if (DXEPTSIZ_GET_NPKT(temp) != 0) { in dwc_otg_data_tx()
2233 DXEPTSIZ_GET_NPKT(temp), in dwc_otg_data_tx()
2234 temp, DWC_OTG_READ_4(sc, DOTG_DIEPCTL(td->ep_no))); in dwc_otg_data_tx()
2291 temp = sc->sc_in_ctl[td->ep_no]; in dwc_otg_data_tx()
2294 if ((temp & DIEPCTL_EPTYPE_MASK) == in dwc_otg_data_tx()
2297 if (temp & DIEPCTL_SETD1PID) { in dwc_otg_data_tx()
2298 temp &= ~DIEPCTL_SETD1PID; in dwc_otg_data_tx()
2299 temp |= DIEPCTL_SETD0PID; in dwc_otg_data_tx()
2301 temp &= ~DIEPCTL_SETD0PID; in dwc_otg_data_tx()
2302 temp |= DIEPCTL_SETD1PID; in dwc_otg_data_tx()
2304 sc->sc_in_ctl[td->ep_no] = temp; in dwc_otg_data_tx()
2308 DWC_OTG_WRITE_4(sc, DOTG_DIEPCTL(td->ep_no), temp | in dwc_otg_data_tx()
2330 uint32_t temp; in dwc_otg_data_tx_sync() local
2335 temp = DWC_OTG_READ_4(sc, DOTG_DIEPTSIZ(td->ep_no)); in dwc_otg_data_tx_sync()
2338 if (DXEPTSIZ_GET_NPKT(temp) != 0) { in dwc_otg_data_tx_sync()
2348 temp = sc->sc_last_rx_status; in dwc_otg_data_tx_sync()
2350 if ((td->ep_no == 0) && (temp != 0) && in dwc_otg_data_tx_sync()
2351 (GRXSTSRD_CHNUM_GET(temp) == 0)) { in dwc_otg_data_tx_sync()
2353 if ((temp & GRXSTSRD_PKTSTS_MASK) == in dwc_otg_data_tx_sync()
2355 (temp & GRXSTSRD_PKTSTS_MASK) == in dwc_otg_data_tx_sync()
2507 uint16_t temp; in dwc_otg_update_host_transfer_schedule_locked() local
2510 temp = DWC_OTG_READ_4(sc, DOTG_HFNUM) & DWC_OTG_FRAME_MASK; in dwc_otg_update_host_transfer_schedule_locked()
2512 if (sc->sc_last_frame_num == temp) in dwc_otg_update_host_transfer_schedule_locked()
2515 sc->sc_last_frame_num = temp; in dwc_otg_update_host_transfer_schedule_locked()
2519 if ((temp & 7) == 0) { in dwc_otg_update_host_transfer_schedule_locked()
2549 td->tt_start_slot = temp + slot; in dwc_otg_update_host_transfer_schedule_locked()
2570 td->tt_start_slot = temp; in dwc_otg_update_host_transfer_schedule_locked()
2596 td->tt_start_slot = temp; in dwc_otg_update_host_transfer_schedule_locked()
2616 td->tt_start_slot = temp; in dwc_otg_update_host_transfer_schedule_locked()
2622 if ((temp & 7) < 6) { in dwc_otg_update_host_transfer_schedule_locked()
2636 td->tt_start_slot = temp; in dwc_otg_update_host_transfer_schedule_locked()
2667 if ((temp & 7) == 0) { in dwc_otg_update_host_transfer_schedule_locked()
2670 (int)temp, (int)sc->sc_needsof); in dwc_otg_update_host_transfer_schedule_locked()
2696 uint32_t temp; in dwc_otg_interrupt_poll_locked() local
2722 temp = DWC_OTG_READ_4(sc, DOTG_HCINT(x)); in dwc_otg_interrupt_poll_locked()
2723 DWC_OTG_WRITE_4(sc, DOTG_HCINT(x), temp); in dwc_otg_interrupt_poll_locked()
2724 temp &= ~HCINT_SOFTWARE_ONLY; in dwc_otg_interrupt_poll_locked()
2725 sc->sc_chan_state[x].hcint |= temp; in dwc_otg_interrupt_poll_locked()
2731 temp = DWC_OTG_READ_4(sc, DOTG_GINTSTS); in dwc_otg_interrupt_poll_locked()
2732 if (temp & GINTSTS_RXFLVL) { in dwc_otg_interrupt_poll_locked()
2742 temp = sc->sc_last_rx_status & in dwc_otg_interrupt_poll_locked()
2746 if (temp != GRXSTSRD_STP_DATA && in dwc_otg_interrupt_poll_locked()
2747 temp != GRXSTSRD_STP_COMPLETE && in dwc_otg_interrupt_poll_locked()
2748 temp != GRXSTSRD_OUT_DATA) { in dwc_otg_interrupt_poll_locked()
2750 if (temp == GRXSTSRH_HALTED) { in dwc_otg_interrupt_poll_locked()
2764 temp = GRXSTSRD_BCNT_GET( in dwc_otg_interrupt_poll_locked()
2770 sc->sc_current_rx_bytes = (temp + 3) & ~3; in dwc_otg_interrupt_poll_locked()
2773 DPRINTF("Reading %d bytes from ep %d\n", temp, ep_no); in dwc_otg_interrupt_poll_locked()
2893 uint32_t temp; in dwc_otg_filter_interrupt() local
2897 temp = DWC_OTG_READ_4(sc, DOTG_DIEPINT(x)); in dwc_otg_filter_interrupt()
2903 if (temp != 0) in dwc_otg_filter_interrupt()
2904 DWC_OTG_WRITE_4(sc, DOTG_DIEPINT(x), temp); in dwc_otg_filter_interrupt()
2958 uint32_t temp; in dwc_otg_interrupt() local
2978 temp = DWC_OTG_READ_4(sc, DOTG_DSTS); in dwc_otg_interrupt()
2979 if (DSTS_ENUMSPD_GET(temp) == DSTS_ENUMSPD_HI) in dwc_otg_interrupt()
3087 uint32_t temp; in dwc_otg_interrupt() local
3089 temp = DWC_OTG_READ_4(sc, DOTG_GOTGCTL); in dwc_otg_interrupt()
3091 DPRINTFN(5, "GOTGCTL=0x%08x\n", temp); in dwc_otg_interrupt()
3094 (temp & (GOTGCTL_ASESVLD | GOTGCTL_BSESVLD)) ? 1 : 0); in dwc_otg_interrupt()
3108 dwc_otg_setup_standard_chain_sub(struct dwc_otg_std_temp *temp) in dwc_otg_setup_standard_chain_sub() argument
3113 td = temp->td_next; in dwc_otg_setup_standard_chain_sub()
3114 temp->td = td; in dwc_otg_setup_standard_chain_sub()
3117 temp->td_next = td->obj_next; in dwc_otg_setup_standard_chain_sub()
3120 td->func = temp->func; in dwc_otg_setup_standard_chain_sub()
3121 td->pc = temp->pc; in dwc_otg_setup_standard_chain_sub()
3122 td->offset = temp->offset; in dwc_otg_setup_standard_chain_sub()
3123 td->remainder = temp->len; in dwc_otg_setup_standard_chain_sub()
3128 td->did_stall = temp->did_stall; in dwc_otg_setup_standard_chain_sub()
3129 td->short_pkt = temp->short_pkt; in dwc_otg_setup_standard_chain_sub()
3130 td->alt_next = temp->setup_alt_next; in dwc_otg_setup_standard_chain_sub()
3146 struct dwc_otg_std_temp temp; in dwc_otg_setup_standard_chain() local
3156 temp.max_frame_size = xfer->max_frame_size; in dwc_otg_setup_standard_chain()
3164 temp.pc = NULL; in dwc_otg_setup_standard_chain()
3165 temp.td = NULL; in dwc_otg_setup_standard_chain()
3166 temp.td_next = xfer->td_start[0]; in dwc_otg_setup_standard_chain()
3167 temp.offset = 0; in dwc_otg_setup_standard_chain()
3168 temp.setup_alt_next = xfer->flags_int.short_frames_ok || in dwc_otg_setup_standard_chain()
3170 temp.did_stall = !xfer->flags_int.control_stall; in dwc_otg_setup_standard_chain()
3180 temp.func = &dwc_otg_host_setup_tx; in dwc_otg_setup_standard_chain()
3182 temp.func = &dwc_otg_setup_rx; in dwc_otg_setup_standard_chain()
3184 temp.len = xfer->frlengths[0]; in dwc_otg_setup_standard_chain()
3185 temp.pc = xfer->frbuffers + 0; in dwc_otg_setup_standard_chain()
3186 temp.short_pkt = temp.len ? 1 : 0; in dwc_otg_setup_standard_chain()
3192 temp.setup_alt_next = 0; in dwc_otg_setup_standard_chain()
3195 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3205 temp.func = &dwc_otg_host_data_rx; in dwc_otg_setup_standard_chain()
3208 temp.func = &dwc_otg_data_tx; in dwc_otg_setup_standard_chain()
3213 temp.func = &dwc_otg_host_data_tx; in dwc_otg_setup_standard_chain()
3216 temp.func = &dwc_otg_data_rx; in dwc_otg_setup_standard_chain()
3222 temp.pc = xfer->frbuffers + x; in dwc_otg_setup_standard_chain()
3230 temp.len = xfer->frlengths[x]; in dwc_otg_setup_standard_chain()
3237 temp.setup_alt_next = 0; in dwc_otg_setup_standard_chain()
3240 temp.setup_alt_next = 0; in dwc_otg_setup_standard_chain()
3243 if (temp.len == 0) { in dwc_otg_setup_standard_chain()
3247 temp.short_pkt = 0; in dwc_otg_setup_standard_chain()
3253 temp.short_pkt = (xfer->flags.force_short_xfer ? 0 : 1); in dwc_otg_setup_standard_chain()
3256 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3259 temp.offset += temp.len; in dwc_otg_setup_standard_chain()
3262 temp.pc = xfer->frbuffers + x; in dwc_otg_setup_standard_chain()
3269 temp.pc = xfer->frbuffers + 0; in dwc_otg_setup_standard_chain()
3270 temp.len = 0; in dwc_otg_setup_standard_chain()
3271 temp.short_pkt = 0; in dwc_otg_setup_standard_chain()
3272 temp.setup_alt_next = 0; in dwc_otg_setup_standard_chain()
3277 temp.func = &dwc_otg_data_tx_sync; in dwc_otg_setup_standard_chain()
3278 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3290 temp.func = &dwc_otg_host_data_tx; in dwc_otg_setup_standard_chain()
3293 temp.func = &dwc_otg_data_rx; in dwc_otg_setup_standard_chain()
3298 temp.func = &dwc_otg_host_data_rx; in dwc_otg_setup_standard_chain()
3301 temp.func = &dwc_otg_data_tx; in dwc_otg_setup_standard_chain()
3306 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3309 td = temp.td; in dwc_otg_setup_standard_chain()
3314 temp.func = &dwc_otg_data_tx_sync; in dwc_otg_setup_standard_chain()
3315 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3322 temp.pc = xfer->frbuffers + 0; in dwc_otg_setup_standard_chain()
3323 temp.len = 0; in dwc_otg_setup_standard_chain()
3324 temp.short_pkt = 0; in dwc_otg_setup_standard_chain()
3325 temp.setup_alt_next = 0; in dwc_otg_setup_standard_chain()
3328 temp.func = &dwc_otg_data_tx_sync; in dwc_otg_setup_standard_chain()
3329 dwc_otg_setup_standard_chain_sub(&temp); in dwc_otg_setup_standard_chain()
3334 td = temp.td; in dwc_otg_setup_standard_chain()
3687 uint32_t temp; in dwc_otg_set_stall() local
3710 temp = sc->sc_in_ctl[ep_no & UE_ADDR]; in dwc_otg_set_stall()
3713 temp = sc->sc_out_ctl[ep_no & UE_ADDR]; in dwc_otg_set_stall()
3717 DWC_OTG_WRITE_4(sc, reg, temp | DOEPCTL_EPDIS); in dwc_otg_set_stall()
3718 DWC_OTG_WRITE_4(sc, reg, temp | DOEPCTL_STALL); in dwc_otg_set_stall()
3743 uint32_t temp; in dwc_otg_clear_stall_sub_locked() local
3761 temp = DIEPCTL_EPTYPE_SET( in dwc_otg_clear_stall_sub_locked()
3765 temp = DIEPCTL_EPTYPE_SET( in dwc_otg_clear_stall_sub_locked()
3769 temp = DIEPCTL_EPTYPE_SET( in dwc_otg_clear_stall_sub_locked()
3774 temp |= DIEPCTL_MPS_SET(mps); in dwc_otg_clear_stall_sub_locked()
3775 temp |= DIEPCTL_TXFNUM_SET(ep_no); in dwc_otg_clear_stall_sub_locked()
3778 sc->sc_in_ctl[ep_no] = temp; in dwc_otg_clear_stall_sub_locked()
3780 sc->sc_out_ctl[ep_no] = temp; in dwc_otg_clear_stall_sub_locked()
3782 DWC_OTG_WRITE_4(sc, reg, temp | DOEPCTL_EPDIS); in dwc_otg_clear_stall_sub_locked()
3783 DWC_OTG_WRITE_4(sc, reg, temp | DOEPCTL_SETD0PID); in dwc_otg_clear_stall_sub_locked()
3784 DWC_OTG_WRITE_4(sc, reg, temp | DIEPCTL_SNAK); in dwc_otg_clear_stall_sub_locked()
3874 uint32_t temp; in dwc_otg_init() local
3890 temp = DWC_OTG_READ_4(sc, DOTG_GSNPSID); in dwc_otg_init()
3891 DPRINTF("Version = 0x%08x\n", temp); in dwc_otg_init()
3908 temp = GUSBCFG_FORCEDEVMODE; in dwc_otg_init()
3911 temp = GUSBCFG_FORCEHOSTMODE; in dwc_otg_init()
3914 temp = 0; in dwc_otg_init()
3928 GUSBCFG_TRD_TIM_SET(5) | temp); in dwc_otg_init()
3932 temp = DWC_OTG_READ_4(sc, DOTG_GLPMCFG); in dwc_otg_init()
3934 temp & ~GLPMCFG_HSIC_CONN); in dwc_otg_init()
3936 temp | GLPMCFG_HSIC_CONN); in dwc_otg_init()
3941 GUSBCFG_TRD_TIM_SET(5) | temp); in dwc_otg_init()
3944 temp = DWC_OTG_READ_4(sc, DOTG_GLPMCFG); in dwc_otg_init()
3946 temp & ~GLPMCFG_HSIC_CONN); in dwc_otg_init()
3951 GUSBCFG_TRD_TIM_SET(5) | temp); in dwc_otg_init()
3954 temp = DWC_OTG_READ_4(sc, DOTG_GLPMCFG); in dwc_otg_init()
3956 temp & ~GLPMCFG_HSIC_CONN); in dwc_otg_init()
3961 GUSBCFG_TRD_TIM_SET(5) | temp); in dwc_otg_init()
3964 temp = DWC_OTG_READ_4(sc, DOTG_GLPMCFG); in dwc_otg_init()
3966 temp & ~GLPMCFG_HSIC_CONN); in dwc_otg_init()
3968 temp = DWC_OTG_READ_4(sc, DOTG_GGPIO); in dwc_otg_init()
3969 temp &= ~(DOTG_GGPIO_NOVBUSSENS | DOTG_GGPIO_I2CPADEN); in dwc_otg_init()
3970 temp |= (DOTG_GGPIO_VBUSASEN | DOTG_GGPIO_VBUSBSEN | in dwc_otg_init()
3972 DWC_OTG_WRITE_4(sc, DOTG_GGPIO, temp); in dwc_otg_init()
3995 temp = DWC_OTG_READ_4(sc, DOTG_GHWCFG3); in dwc_otg_init()
3997 sc->sc_fifo_size = 4 * GHWCFG3_DFIFODEPTH_GET(temp); in dwc_otg_init()
3999 temp = DWC_OTG_READ_4(sc, DOTG_GHWCFG2); in dwc_otg_init()
4001 sc->sc_dev_ep_max = GHWCFG2_NUMDEVEPS_GET(temp); in dwc_otg_init()
4006 sc->sc_host_ch_max = GHWCFG2_NUMHSTCHNL_GET(temp); in dwc_otg_init()
4011 temp = DWC_OTG_READ_4(sc, DOTG_GHWCFG4); in dwc_otg_init()
4013 sc->sc_dev_in_ep_max = GHWCFG4_NUM_IN_EP_GET(temp); in dwc_otg_init()
4032 temp = DWC_OTG_READ_4(sc, DOTG_GHWCFG2); in dwc_otg_init()
4033 if (temp & GHWCFG2_MPI) { in dwc_otg_init()
4052 temp = DWC_OTG_READ_4(sc, DOTG_HCFG); in dwc_otg_init()
4053 temp &= ~(HCFG_FSLSSUPP | HCFG_FSLSPCLKSEL_MASK); in dwc_otg_init()
4054 temp |= (1 << HCFG_FSLSPCLKSEL_SHIFT); in dwc_otg_init()
4055 DWC_OTG_WRITE_4(sc, DOTG_HCFG, temp); in dwc_otg_init()
4067 temp = DWC_OTG_READ_4(sc, DOTG_GOTGCTL); in dwc_otg_init()
4069 DPRINTFN(5, "GOTCTL=0x%08x\n", temp); in dwc_otg_init()
4072 (temp & (GOTGCTL_ASESVLD | GOTGCTL_BSESVLD)) ? 1 : 0); in dwc_otg_init()
4199 uint32_t temp; in dwc_otg_device_isoc_start() local
4208 temp = DWC_OTG_READ_4(sc, DOTG_HFNUM); in dwc_otg_device_isoc_start()
4211 framenum = (temp & HFNUM_FRNUM_MASK); in dwc_otg_device_isoc_start()
4213 temp = DWC_OTG_READ_4(sc, DOTG_DSTS); in dwc_otg_device_isoc_start()
4216 framenum = DSTS_SOFFN_GET(temp); in dwc_otg_device_isoc_start()
4240 temp = (framenum - xfer->endpoint->isoc_next) & DWC_OTG_FRAME_MASK; in dwc_otg_device_isoc_start()
4242 if ((xfer->endpoint->is_synced == 0) || (temp < msframes)) { in dwc_otg_device_isoc_start()
4257 temp = (xfer->endpoint->isoc_next - framenum) & DWC_OTG_FRAME_MASK; in dwc_otg_device_isoc_start()
4263 usb_isoc_time_expand(&sc->sc_bus, framenum) + temp + msframes; in dwc_otg_device_isoc_start()