Lines Matching refs:temp
177 uint32_t temp; in avr32dci_mod_ctrl() local
179 temp = AVR32_READ_4(sc, AVR32_CTRL); in avr32dci_mod_ctrl()
180 temp |= set; in avr32dci_mod_ctrl()
181 temp &= ~clear; in avr32dci_mod_ctrl()
182 AVR32_WRITE_4(sc, AVR32_CTRL, temp); in avr32dci_mod_ctrl()
188 uint32_t temp; in avr32dci_mod_ien() local
190 temp = AVR32_READ_4(sc, AVR32_IEN); in avr32dci_mod_ien()
191 temp |= set; in avr32dci_mod_ien()
192 temp &= ~clear; in avr32dci_mod_ien()
193 AVR32_WRITE_4(sc, AVR32_IEN, temp); in avr32dci_mod_ien()
279 uint32_t temp; in avr32dci_setup_rx() local
285 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_setup_rx()
287 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_setup_rx()
289 if (!(temp & AVR32_EPTSTA_RX_SETUP)) { in avr32dci_setup_rx()
295 count = AVR32_EPTSTA_BYTE_COUNT(temp); in avr32dci_setup_rx()
334 if (temp & AVR32_EPTSTA_RX_SETUP) { in avr32dci_setup_rx()
354 uint32_t temp; in avr32dci_data_rx() local
367 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_data_rx()
369 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_data_rx()
371 if (temp & AVR32_EPTSTA_RX_SETUP) { in avr32dci_data_rx()
387 if (!(temp & AVR32_EPTSTA_RX_BK_RDY)) { in avr32dci_data_rx()
392 count = AVR32_EPTSTA_BYTE_COUNT(temp); in avr32dci_data_rx()
421 (AVR32_EPTSTA_CURRENT_BANK(temp) << td->bank_shift) + in avr32dci_data_rx()
454 uint32_t temp; in avr32dci_data_tx() local
464 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_data_tx()
466 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_data_tx()
468 if (temp & AVR32_EPTSTA_RX_SETUP) { in avr32dci_data_tx()
476 if (temp & AVR32_EPTSTA_TX_PK_RDY) { in avr32dci_data_tx()
495 (AVR32_EPTSTA_CURRENT_BANK(temp) << td->bank_shift) + in avr32dci_data_tx()
525 uint32_t temp; in avr32dci_data_tx_sync() local
531 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_data_tx_sync()
533 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_data_tx_sync()
535 if (temp & AVR32_EPTSTA_RX_SETUP) { in avr32dci_data_tx_sync()
544 if (AVR32_EPTSTA_BUSY_BANK_STA(temp) != 0) { in avr32dci_data_tx_sync()
721 avr32dci_setup_standard_chain_sub(struct avr32dci_std_temp *temp) in avr32dci_setup_standard_chain_sub() argument
726 td = temp->td_next; in avr32dci_setup_standard_chain_sub()
727 temp->td = td; in avr32dci_setup_standard_chain_sub()
730 temp->td_next = td->obj_next; in avr32dci_setup_standard_chain_sub()
733 td->func = temp->func; in avr32dci_setup_standard_chain_sub()
734 td->pc = temp->pc; in avr32dci_setup_standard_chain_sub()
735 td->offset = temp->offset; in avr32dci_setup_standard_chain_sub()
736 td->remainder = temp->len; in avr32dci_setup_standard_chain_sub()
738 td->did_stall = temp->did_stall; in avr32dci_setup_standard_chain_sub()
739 td->short_pkt = temp->short_pkt; in avr32dci_setup_standard_chain_sub()
740 td->alt_next = temp->setup_alt_next; in avr32dci_setup_standard_chain_sub()
746 struct avr32dci_std_temp temp; in avr32dci_setup_standard_chain() local
757 temp.max_frame_size = xfer->max_frame_size; in avr32dci_setup_standard_chain()
765 temp.pc = NULL; in avr32dci_setup_standard_chain()
766 temp.td = NULL; in avr32dci_setup_standard_chain()
767 temp.td_next = xfer->td_start[0]; in avr32dci_setup_standard_chain()
768 temp.offset = 0; in avr32dci_setup_standard_chain()
769 temp.setup_alt_next = xfer->flags_int.short_frames_ok || in avr32dci_setup_standard_chain()
771 temp.did_stall = !xfer->flags_int.control_stall; in avr32dci_setup_standard_chain()
780 temp.func = &avr32dci_setup_rx; in avr32dci_setup_standard_chain()
781 temp.len = xfer->frlengths[0]; in avr32dci_setup_standard_chain()
782 temp.pc = xfer->frbuffers + 0; in avr32dci_setup_standard_chain()
783 temp.short_pkt = temp.len ? 1 : 0; in avr32dci_setup_standard_chain()
788 temp.setup_alt_next = 0; in avr32dci_setup_standard_chain()
790 avr32dci_setup_standard_chain_sub(&temp); in avr32dci_setup_standard_chain()
799 temp.func = &avr32dci_data_tx; in avr32dci_setup_standard_chain()
802 temp.func = &avr32dci_data_rx; in avr32dci_setup_standard_chain()
807 temp.pc = xfer->frbuffers + x; in avr32dci_setup_standard_chain()
814 temp.len = xfer->frlengths[x]; in avr32dci_setup_standard_chain()
821 temp.setup_alt_next = 0; in avr32dci_setup_standard_chain()
824 temp.setup_alt_next = 0; in avr32dci_setup_standard_chain()
827 if (temp.len == 0) { in avr32dci_setup_standard_chain()
830 temp.short_pkt = 0; in avr32dci_setup_standard_chain()
835 temp.short_pkt = (xfer->flags.force_short_xfer) ? 0 : 1; in avr32dci_setup_standard_chain()
838 avr32dci_setup_standard_chain_sub(&temp); in avr32dci_setup_standard_chain()
841 temp.offset += temp.len; in avr32dci_setup_standard_chain()
844 temp.pc = xfer->frbuffers + x; in avr32dci_setup_standard_chain()
850 temp.pc = xfer->frbuffers + 0; in avr32dci_setup_standard_chain()
851 temp.len = 0; in avr32dci_setup_standard_chain()
852 temp.short_pkt = 0; in avr32dci_setup_standard_chain()
853 temp.setup_alt_next = 0; in avr32dci_setup_standard_chain()
858 temp.func = &avr32dci_data_tx_sync; in avr32dci_setup_standard_chain()
859 avr32dci_setup_standard_chain_sub(&temp); in avr32dci_setup_standard_chain()
868 temp.func = &avr32dci_data_rx; in avr32dci_setup_standard_chain()
871 temp.func = &avr32dci_data_tx; in avr32dci_setup_standard_chain()
875 avr32dci_setup_standard_chain_sub(&temp); in avr32dci_setup_standard_chain()
878 temp.func = &avr32dci_data_tx_sync; in avr32dci_setup_standard_chain()
879 avr32dci_setup_standard_chain_sub(&temp); in avr32dci_setup_standard_chain()
884 td = temp.td; in avr32dci_setup_standard_chain()
1100 uint32_t temp; in avr32dci_clear_stall_sub() local
1121 temp = AVR32_EPTCFG_TYPE_BULK; in avr32dci_clear_stall_sub()
1123 temp = AVR32_EPTCFG_TYPE_INTR; in avr32dci_clear_stall_sub()
1125 temp = AVR32_EPTCFG_TYPE_ISOC | in avr32dci_clear_stall_sub()
1129 temp |= AVR32_EPTCFG_EPDIR_IN; in avr32dci_clear_stall_sub()
1138 temp |= AVR32_EPTCFG_EPSIZE(n); in avr32dci_clear_stall_sub()
1142 temp |= AVR32_EPTCFG_NBANK(1); in avr32dci_clear_stall_sub()
1144 temp |= AVR32_EPTCFG_NBANK(2); in avr32dci_clear_stall_sub()
1146 temp |= AVR32_EPTCFG_NBANK(3); in avr32dci_clear_stall_sub()
1148 AVR32_WRITE_4(sc, AVR32_EPTCFG(ep_no), temp); in avr32dci_clear_stall_sub()
1150 temp = AVR32_READ_4(sc, AVR32_EPTCFG(ep_no)); in avr32dci_clear_stall_sub()
1152 if (!(temp & AVR32_EPTCFG_EPT_MAPD)) { in avr32dci_clear_stall_sub()
1479 uint32_t temp; in avr32dci_roothub_exec() local
1793 temp = AVR32_READ_4(sc, AVR32_EPTCFG(0)); in avr32dci_roothub_exec()
1795 if (!(temp & AVR32_EPTCFG_EPT_MAPD)) { in avr32dci_roothub_exec()
1968 uint32_t temp; in avr32dci_xfer_setup() local
1975 temp = pf->max_in_frame_size | pf->max_out_frame_size; in avr32dci_xfer_setup()
1977 while ((temp /= 2)) in avr32dci_xfer_setup()