Lines Matching refs:temp

176 	uint32_t temp;  in avr32dci_mod_ctrl()  local
178 temp = AVR32_READ_4(sc, AVR32_CTRL); in avr32dci_mod_ctrl()
179 temp |= set; in avr32dci_mod_ctrl()
180 temp &= ~clear; in avr32dci_mod_ctrl()
181 AVR32_WRITE_4(sc, AVR32_CTRL, temp); in avr32dci_mod_ctrl()
187 uint32_t temp; in avr32dci_mod_ien() local
189 temp = AVR32_READ_4(sc, AVR32_IEN); in avr32dci_mod_ien()
190 temp |= set; in avr32dci_mod_ien()
191 temp &= ~clear; in avr32dci_mod_ien()
192 AVR32_WRITE_4(sc, AVR32_IEN, temp); in avr32dci_mod_ien()
278 uint32_t temp; in avr32dci_setup_rx() local
284 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_setup_rx()
286 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_setup_rx()
288 if (!(temp & AVR32_EPTSTA_RX_SETUP)) { in avr32dci_setup_rx()
294 count = AVR32_EPTSTA_BYTE_COUNT(temp); in avr32dci_setup_rx()
333 if (temp & AVR32_EPTSTA_RX_SETUP) { in avr32dci_setup_rx()
353 uint32_t temp; in avr32dci_data_rx() local
366 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_data_rx()
368 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_data_rx()
370 if (temp & AVR32_EPTSTA_RX_SETUP) { in avr32dci_data_rx()
386 if (!(temp & AVR32_EPTSTA_RX_BK_RDY)) { in avr32dci_data_rx()
391 count = AVR32_EPTSTA_BYTE_COUNT(temp); in avr32dci_data_rx()
420 (AVR32_EPTSTA_CURRENT_BANK(temp) << td->bank_shift) + in avr32dci_data_rx()
453 uint32_t temp; in avr32dci_data_tx() local
463 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_data_tx()
465 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_data_tx()
467 if (temp & AVR32_EPTSTA_RX_SETUP) { in avr32dci_data_tx()
475 if (temp & AVR32_EPTSTA_TX_PK_RDY) { in avr32dci_data_tx()
494 (AVR32_EPTSTA_CURRENT_BANK(temp) << td->bank_shift) + in avr32dci_data_tx()
524 uint32_t temp; in avr32dci_data_tx_sync() local
530 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_data_tx_sync()
532 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_data_tx_sync()
534 if (temp & AVR32_EPTSTA_RX_SETUP) { in avr32dci_data_tx_sync()
543 if (AVR32_EPTSTA_BUSY_BANK_STA(temp) != 0) { in avr32dci_data_tx_sync()
720 avr32dci_setup_standard_chain_sub(struct avr32dci_std_temp *temp) in avr32dci_setup_standard_chain_sub() argument
725 td = temp->td_next; in avr32dci_setup_standard_chain_sub()
726 temp->td = td; in avr32dci_setup_standard_chain_sub()
729 temp->td_next = td->obj_next; in avr32dci_setup_standard_chain_sub()
732 td->func = temp->func; in avr32dci_setup_standard_chain_sub()
733 td->pc = temp->pc; in avr32dci_setup_standard_chain_sub()
734 td->offset = temp->offset; in avr32dci_setup_standard_chain_sub()
735 td->remainder = temp->len; in avr32dci_setup_standard_chain_sub()
737 td->did_stall = temp->did_stall; in avr32dci_setup_standard_chain_sub()
738 td->short_pkt = temp->short_pkt; in avr32dci_setup_standard_chain_sub()
739 td->alt_next = temp->setup_alt_next; in avr32dci_setup_standard_chain_sub()
745 struct avr32dci_std_temp temp; in avr32dci_setup_standard_chain() local
756 temp.max_frame_size = xfer->max_frame_size; in avr32dci_setup_standard_chain()
764 temp.pc = NULL; in avr32dci_setup_standard_chain()
765 temp.td = NULL; in avr32dci_setup_standard_chain()
766 temp.td_next = xfer->td_start[0]; in avr32dci_setup_standard_chain()
767 temp.offset = 0; in avr32dci_setup_standard_chain()
768 temp.setup_alt_next = xfer->flags_int.short_frames_ok || in avr32dci_setup_standard_chain()
770 temp.did_stall = !xfer->flags_int.control_stall; in avr32dci_setup_standard_chain()
779 temp.func = &avr32dci_setup_rx; in avr32dci_setup_standard_chain()
780 temp.len = xfer->frlengths[0]; in avr32dci_setup_standard_chain()
781 temp.pc = xfer->frbuffers + 0; in avr32dci_setup_standard_chain()
782 temp.short_pkt = temp.len ? 1 : 0; in avr32dci_setup_standard_chain()
787 temp.setup_alt_next = 0; in avr32dci_setup_standard_chain()
789 avr32dci_setup_standard_chain_sub(&temp); in avr32dci_setup_standard_chain()
798 temp.func = &avr32dci_data_tx; in avr32dci_setup_standard_chain()
801 temp.func = &avr32dci_data_rx; in avr32dci_setup_standard_chain()
806 temp.pc = xfer->frbuffers + x; in avr32dci_setup_standard_chain()
813 temp.len = xfer->frlengths[x]; in avr32dci_setup_standard_chain()
820 temp.setup_alt_next = 0; in avr32dci_setup_standard_chain()
823 temp.setup_alt_next = 0; in avr32dci_setup_standard_chain()
826 if (temp.len == 0) { in avr32dci_setup_standard_chain()
829 temp.short_pkt = 0; in avr32dci_setup_standard_chain()
834 temp.short_pkt = (xfer->flags.force_short_xfer) ? 0 : 1; in avr32dci_setup_standard_chain()
837 avr32dci_setup_standard_chain_sub(&temp); in avr32dci_setup_standard_chain()
840 temp.offset += temp.len; in avr32dci_setup_standard_chain()
843 temp.pc = xfer->frbuffers + x; in avr32dci_setup_standard_chain()
849 temp.pc = xfer->frbuffers + 0; in avr32dci_setup_standard_chain()
850 temp.len = 0; in avr32dci_setup_standard_chain()
851 temp.short_pkt = 0; in avr32dci_setup_standard_chain()
852 temp.setup_alt_next = 0; in avr32dci_setup_standard_chain()
857 temp.func = &avr32dci_data_tx_sync; in avr32dci_setup_standard_chain()
858 avr32dci_setup_standard_chain_sub(&temp); in avr32dci_setup_standard_chain()
867 temp.func = &avr32dci_data_rx; in avr32dci_setup_standard_chain()
870 temp.func = &avr32dci_data_tx; in avr32dci_setup_standard_chain()
874 avr32dci_setup_standard_chain_sub(&temp); in avr32dci_setup_standard_chain()
877 temp.func = &avr32dci_data_tx_sync; in avr32dci_setup_standard_chain()
878 avr32dci_setup_standard_chain_sub(&temp); in avr32dci_setup_standard_chain()
883 td = temp.td; in avr32dci_setup_standard_chain()
1099 uint32_t temp; in avr32dci_clear_stall_sub() local
1120 temp = AVR32_EPTCFG_TYPE_BULK; in avr32dci_clear_stall_sub()
1122 temp = AVR32_EPTCFG_TYPE_INTR; in avr32dci_clear_stall_sub()
1124 temp = AVR32_EPTCFG_TYPE_ISOC | in avr32dci_clear_stall_sub()
1128 temp |= AVR32_EPTCFG_EPDIR_IN; in avr32dci_clear_stall_sub()
1137 temp |= AVR32_EPTCFG_EPSIZE(n); in avr32dci_clear_stall_sub()
1141 temp |= AVR32_EPTCFG_NBANK(1); in avr32dci_clear_stall_sub()
1143 temp |= AVR32_EPTCFG_NBANK(2); in avr32dci_clear_stall_sub()
1145 temp |= AVR32_EPTCFG_NBANK(3); in avr32dci_clear_stall_sub()
1147 AVR32_WRITE_4(sc, AVR32_EPTCFG(ep_no), temp); in avr32dci_clear_stall_sub()
1149 temp = AVR32_READ_4(sc, AVR32_EPTCFG(ep_no)); in avr32dci_clear_stall_sub()
1151 if (!(temp & AVR32_EPTCFG_EPT_MAPD)) { in avr32dci_clear_stall_sub()
1478 uint32_t temp; in avr32dci_roothub_exec() local
1792 temp = AVR32_READ_4(sc, AVR32_EPTCFG(0)); in avr32dci_roothub_exec()
1794 if (!(temp & AVR32_EPTCFG_EPT_MAPD)) { in avr32dci_roothub_exec()
1967 uint32_t temp; in avr32dci_xfer_setup() local
1974 temp = pf->max_in_frame_size | pf->max_out_frame_size; in avr32dci_xfer_setup()
1976 while ((temp /= 2)) in avr32dci_xfer_setup()